safe-read: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2
3         safe-read: Move AC_LIBOBJ invocations to module description.
4         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6         of gl_SAFE_READ.
7         (Makefile.am): Augment lib_SOURCES.
8
9 2011-05-23  Bruno Haible  <bruno@clisp.org>
10
11         safe-alloc: Move AC_LIBOBJ invocations to module description.
12         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14
15 2011-05-23  Bruno Haible  <bruno@clisp.org>
16
17         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
18         * m4/rijndael.m4: Remove file.
19         * modules/crypto/rijndael (Files): Remove it.
20         (configure.ac): Remove gl_RIJNDAEL call.
21         (Makefile.am): Augment lib_SOURCES.
22
23 2011-05-23  Bruno Haible  <bruno@clisp.org>
24
25         readtokens: Move AC_LIBOBJ invocations to module description.
26         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
27         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
28
29 2011-05-23  Bruno Haible  <bruno@clisp.org>
30
31         read-file: Move AC_LIBOBJ invocations to module description.
32         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
33         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
34         of gl_FUNC_READ_FILE.
35         (Makefile.am): Augment lib_SOURCES.
36
37 2011-05-23  Bruno Haible  <bruno@clisp.org>
38
39         quotearg: Move AC_LIBOBJ invocations to module description.
40         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
41         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
42
43 2011-05-23  Bruno Haible  <bruno@clisp.org>
44
45         quote: Move AC_LIBOBJ invocations to module description.
46         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
47         * modules/quote (Makefile.am): Augment lib_SOURCES.
48
49 2011-05-23  Bruno Haible  <bruno@clisp.org>
50
51         posixver: Move AC_LIBOBJ invocations to module description.
52         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
53         * modules/posixver (Makefile.am): Augment lib_SOURCES.
54
55 2011-05-23  Bruno Haible  <bruno@clisp.org>
56
57         posixtm: Move AC_LIBOBJ invocations to module description.
58         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
59         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
60
61 2011-05-23  Bruno Haible  <bruno@clisp.org>
62
63         physmem: Move AC_LIBOBJ invocations to module description.
64         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
65         * modules/physmem (Makefile.am): Augment lib_SOURCES.
66
67 2011-05-23  Bruno Haible  <bruno@clisp.org>
68
69         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
70         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
71         invocation.
72         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
73
74 2011-05-23  Bruno Haible  <bruno@clisp.org>
75
76         mpsort: Move AC_LIBOBJ invocations to module description.
77         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
78         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
79
80 2011-05-23  Bruno Haible  <bruno@clisp.org>
81
82         modechange: Move AC_LIBOBJ invocations to module description.
83         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
84         * modules/modechange (Makefile.am): Augment lib_SOURCES.
85
86 2011-05-23  Bruno Haible  <bruno@clisp.org>
87
88         mkdir-p: Move AC_LIBOBJ invocations to module description.
89         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
90         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
91
92 2011-05-23  Bruno Haible  <bruno@clisp.org>
93
94         mkancesdirs: Move AC_LIBOBJ invocations to module description.
95         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
96         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
97
98 2011-05-23  Bruno Haible  <bruno@clisp.org>
99
100         mgetgroups: Move AC_LIBOBJ invocations to module description.
101         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
102         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
103
104 2011-05-23  Bruno Haible  <bruno@clisp.org>
105
106         memxor: Move AC_LIBOBJ invocations to module description.
107         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
108         * modules/memxor (Makefile.am): Augment lib_SOURCES.
109
110 2011-05-23  Bruno Haible  <bruno@clisp.org>
111
112         memcoll: Move AC_LIBOBJ invocations to module description.
113         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
114         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
115
116 2011-05-23  Bruno Haible  <bruno@clisp.org>
117
118         memcasecmp: Move AC_LIBOBJ invocations to module description.
119         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
120         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
121
122 2011-05-23  Bruno Haible  <bruno@clisp.org>
123
124         crypto/md5: Move AC_LIBOBJ invocations to module description.
125         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
126         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
127
128 2011-05-23  Bruno Haible  <bruno@clisp.org>
129
130         crypto/md4: Move AC_LIBOBJ invocations to module description.
131         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
132         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
133
134 2011-05-23  Bruno Haible  <bruno@clisp.org>
135
136         crypto/md2: Move AC_LIBOBJ invocations to module description.
137         * m4/md2.m4: Remove file.
138         * modules/crypto/md2 (Files): Remove it.
139         (configure.ac): Remove gl_MD2 call.
140         (Makefile.am): Augment lib_SOURCES.
141
142 2011-05-23  Bruno Haible  <bruno@clisp.org>
143
144         long-options: Move AC_LIBOBJ invocations to module description.
145         * m4/long-options.m4: Remove file.
146         * modules/long-options (Files): Remove it.
147         (configure.ac): Remove gl_LONG_OPTIONS call.
148         (Makefile.am): Augment lib_SOURCES.
149
150 2011-05-23  Bruno Haible  <bruno@clisp.org>
151
152         i-ring: Move AC_LIBOBJ invocations to module description.
153         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
154         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
155
156 2011-05-23  Bruno Haible  <bruno@clisp.org>
157
158         idcache: Move AC_LIBOBJ invocations to module description.
159         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
160         * modules/idcache (Makefile.am): Augment lib_SOURCES.
161
162 2011-05-23  Bruno Haible  <bruno@clisp.org>
163
164         human: Move AC_LIBOBJ invocations to module description.
165         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
166         * modules/human (Makefile.am): Augment lib_SOURCES.
167
168 2011-05-23  Bruno Haible  <bruno@clisp.org>
169
170         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
171         * m4/hmac-sha1.m4: Remove file.
172         * modules/crypto/hmac-sha1 (Files): Remove it.
173         (configure.ac): Remove gl_HMAC_SHA1 call.
174         (Makefile.am): Augment lib_SOURCES.
175
176 2011-05-23  Bruno Haible  <bruno@clisp.org>
177
178         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
179         * m4/hmac-md5.m4: Remove file.
180         * modules/crypto/hmac-md5 (Files): Remove it.
181         (configure.ac): Remove gl_HMAC_MD5 call.
182         (Makefile.am): Augment lib_SOURCES.
183
184 2011-05-23  Bruno Haible  <bruno@clisp.org>
185
186         hash: Move AC_LIBOBJ invocations to module description.
187         * m4/hash.m4: Remove file.
188         * modules/hash (Files): Remove it.
189         (configure.ac): Remove gl_HASH call.
190         (Makefile.am): Augment lib_SOURCES.
191
192 2011-05-23  Bruno Haible  <bruno@clisp.org>
193
194         hard-locale: Move AC_LIBOBJ invocations to module description.
195         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
196         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
197
198 2011-05-23  Bruno Haible  <bruno@clisp.org>
199
200         getugroups: Move AC_LIBOBJ invocations to module description.
201         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
202         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
203
204 2011-05-23  Bruno Haible  <bruno@clisp.org>
205
206         gettime: Move AC_LIBOBJ invocations to module description.
207         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
208         * modules/gettime (Makefile.am): Augment lib_SOURCES.
209
210 2011-05-23  Bruno Haible  <bruno@clisp.org>
211
212         getndelim2: Move AC_LIBOBJ invocations to module description.
213         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
214         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
215
216 2011-05-23  Bruno Haible  <bruno@clisp.org>
217
218         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
219         * m4/gc-pbkdf2-sha1.m4: Remove file.
220         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
221         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
222         (Makefile.am): Augment lib_SOURCES.
223
224 2011-05-23  Bruno Haible  <bruno@clisp.org>
225
226         fts: Move AC_LIBOBJ invocations to module description.
227         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
228         * modules/fts (configure.ac): ... to here.
229
230 2011-05-23  Bruno Haible  <bruno@clisp.org>
231
232         file-type: Move AC_LIBOBJ invocations to module description.
233         * m4/file-type.m4: Remove file.
234         * modules/file-type (Files): Remove it.
235         (configure.ac): Remove gl_FILE_TYPE call.
236         (Makefile.am): Augment lib_SOURCES.
237
238 2011-05-23  Bruno Haible  <bruno@clisp.org>
239
240         filenamecat*: Respect rules for use of AC_LIBOBJ.
241         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
242         Remove AC_LIBOBJ invocation.
243         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
244         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
245
246 2011-05-23  Bruno Haible  <bruno@clisp.org>
247
248         filemode: Move AC_LIBOBJ invocations to module description.
249         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
250         * modules/filemode (Makefile.am): Augment lib_SOURCES.
251
252 2011-05-23  Bruno Haible  <bruno@clisp.org>
253
254         openat-safer: Move AC_LIBOBJ invocations to module description.
255         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
256         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
257
258 2011-05-23  Bruno Haible  <bruno@clisp.org>
259
260         fcntl-safer: Move AC_LIBOBJ invocations to module description.
261         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
262         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
263
264 2011-05-23  Bruno Haible  <bruno@clisp.org>
265
266         exclude: Move AC_LIBOBJ invocations to module description.
267         * m4/exclude.m4: Remove file.
268         * modules/exclude (Files): Remove it.
269         (configure.ac): Remove gl_EXCLUDE call.
270         (Makefile.am): Augment lib_SOURCES.
271
272 2011-05-23  Bruno Haible  <bruno@clisp.org>
273
274         dirname*: Respect rules for use of AC_LIBOBJ.
275         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
276         invocations.
277         * modules/dirname (Makefile.am): Augment lib_SOURCES.
278         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
279
280 2011-05-23  Bruno Haible  <bruno@clisp.org>
281
282         dirent-safer: Move AC_LIBOBJ invocations to module description.
283         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
284         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
285
286 2011-05-23  Bruno Haible  <bruno@clisp.org>
287
288         crypto/des: Move AC_LIBOBJ invocations to module description.
289         * m4/des.m4: Remove file.
290         * modules/crypto/des (Files): Remove it.
291         (configure.ac): Remove gl_DES call.
292         (Makefile.am): Augment lib_SOURCES.
293
294 2011-05-23  Bruno Haible  <bruno@clisp.org>
295
296         cycle-check: Move AC_LIBOBJ invocations to module description.
297         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
298         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
299
300 2011-05-23  Bruno Haible  <bruno@clisp.org>
301
302         c-strtold: Move AC_LIBOBJ invocations to module description.
303         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
304         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
305
306 2011-05-23  Bruno Haible  <bruno@clisp.org>
307
308         c-strtod: Move AC_LIBOBJ invocations to module description.
309         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
310         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
311
312 2011-05-23  Bruno Haible  <bruno@clisp.org>
313
314         crc: Move AC_LIBOBJ invocations to module description.
315         * m4/crc.m4: Remove file.
316         * modules/crc (Files): Remove it.
317         (configure.ac): Remove gl_CRC call.
318         (Makefile.am): Augment lib_SOURCES.
319
320 2011-05-23  Bruno Haible  <bruno@clisp.org>
321
322         close-stream: Move AC_LIBOBJ invocations to module description.
323         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
324         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
325
326 2011-05-23  Bruno Haible  <bruno@clisp.org>
327
328         closeout: Move AC_LIBOBJ invocations to module description.
329         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
330         * modules/closeout (Makefile.am): Augment lib_SOURCES.
331
332 2011-05-23  Bruno Haible  <bruno@clisp.org>
333
334         closein: Move AC_LIBOBJ invocations to module description.
335         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
336         * modules/closein (Makefile.am): Augment lib_SOURCES.
337
338 2011-05-23  Bruno Haible  <bruno@clisp.org>
339
340         cloexec: Move AC_LIBOBJ invocations to module description.
341         * m4/cloexec.m4: Remove file.
342         * modules/cloexec (Files): Remove it.
343         (configure.ac): Remove gl_CLOEXEC call.
344         (Makefile.am): Augment lib_SOURCES.
345
346 2011-05-23  Bruno Haible  <bruno@clisp.org>
347
348         check-version: Move AC_LIBOBJ invocations to module description.
349         * m4/check-version.m4: Remove file.
350         * modules/check-version (Files): Remove it.
351         (configure.ac): Remove gl_CHECK_VERSION call.
352         (Makefile.am): Augment lib_SOURCES.
353
354 2011-05-23  Bruno Haible  <bruno@clisp.org>
355
356         chdir-safer: Move AC_LIBOBJ invocations to module description.
357         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
358         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
359
360 2011-05-23  Bruno Haible  <bruno@clisp.org>
361
362         canonicalize: Move AC_LIBOBJ invocations to module description.
363         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
364         AC_LIBOBJ invocation.
365         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
366
367 2011-05-23  Bruno Haible  <bruno@clisp.org>
368
369         canon-host: Move AC_LIBOBJ invocations to module description.
370         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
371         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
372         instead of gl_CANON_HOST.
373         (Makefile.am): Augment lib_SOURCES.
374
375 2011-05-23  Bruno Haible  <bruno@clisp.org>
376
377         backupfile: Move AC_LIBOBJ invocations to module description.
378         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
379         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
380
381 2011-05-23  Bruno Haible  <bruno@clisp.org>
382
383         argmatch: Move AC_LIBOBJ invocations to module description.
384         * m4/argmatch.m4: Remove file.
385         * modules/argmatch (Files): Remove it.
386         (configure.ac): Remove gl_ARGMATCH call.
387         (Makefile.am): Augment lib_SOURCES.
388
389 2011-05-23  Bruno Haible  <bruno@clisp.org>
390
391         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
392         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
393         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
394
395 2011-05-23  Bruno Haible  <bruno@clisp.org>
396
397         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
398         * m4/arcfour.m4: Remove file.
399         * modules/crypto/arcfour (Files): Remove it.
400         (configure.ac): Remove gl_ARCFOUR call.
401         (Makefile.am): Augment lib_SOURCES.
402
403 2011-05-22  Bruno Haible  <bruno@clisp.org>
404
405         write: Move AC_LIBOBJ invocations to module description.
406         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
407         * modules/write (configure.ac): ... to here.
408
409 2011-05-22  Bruno Haible  <bruno@clisp.org>
410
411         wmemset: Move AC_LIBOBJ invocations to module description.
412         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
413         here...
414         * modules/wmemset (configure.ac): ... to here.
415
416 2011-05-22  Bruno Haible  <bruno@clisp.org>
417
418         wmemmove: Move AC_LIBOBJ invocations to module description.
419         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
420         here...
421         * modules/wmemmove (configure.ac): ... to here.
422
423 2011-05-22  Bruno Haible  <bruno@clisp.org>
424
425         wmemcpy: Move AC_LIBOBJ invocations to module description.
426         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
427         here...
428         * modules/wmemcpy (configure.ac): ... to here.
429
430 2011-05-22  Bruno Haible  <bruno@clisp.org>
431
432         wmemcmp: Move AC_LIBOBJ invocations to module description.
433         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
434         here...
435         * modules/wmemcmp (configure.ac): ... to here.
436
437 2011-05-22  Bruno Haible  <bruno@clisp.org>
438
439         wmemchr: Move AC_LIBOBJ invocations to module description.
440         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
441         here...
442         * modules/wmemchr (configure.ac): ... to here.
443
444 2011-05-22  Bruno Haible  <bruno@clisp.org>
445
446         wcswidth: Move AC_LIBOBJ invocations to module description.
447         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
448         here...
449         * modules/wcswidth (configure.ac): ... to here.
450
451 2011-05-22  Bruno Haible  <bruno@clisp.org>
452
453         wcwidth: Respect rules for use of AC_LIBOBJ.
454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
455         invocation from here...
456         * modules/wcwidth (configure.ac): ... to here.
457         (Depends-on): Update conditions.
458
459 2011-05-22  Bruno Haible  <bruno@clisp.org>
460
461         wctype: Move AC_LIBOBJ invocations to module description.
462         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
463         invocation from here...
464         * modules/wctype (configure.ac): ... to here.
465         (Depends-on): Update conditions.
466
467 2011-05-22  Bruno Haible  <bruno@clisp.org>
468
469         wctrans: Move AC_LIBOBJ invocations to module description.
470         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
471         invocation from here...
472         * modules/wctrans (configure.ac): ... to here.
473
474 2011-05-22  Bruno Haible  <bruno@clisp.org>
475
476         wctomb: Move AC_LIBOBJ invocations to module description.
477         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
478         invocations from here...
479         * modules/wctomb (configure.ac): ... to here.
480
481 2011-05-22  Bruno Haible  <bruno@clisp.org>
482
483         wctob: Move AC_LIBOBJ invocations to module description.
484         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
485         gl_PREREQ_WCTOB invocations from here...
486         * modules/wctob (configure.ac): ... to here.
487         (Depends-on): Update conditions.
488
489 2011-05-22  Bruno Haible  <bruno@clisp.org>
490
491         wcsxfrm: Move AC_LIBOBJ invocations to module description.
492         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
493         here...
494         * modules/wcsxfrm (configure.ac): ... to here.
495
496 2011-05-22  Bruno Haible  <bruno@clisp.org>
497
498         wcstok: Move AC_LIBOBJ invocations to module description.
499         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
500         * modules/wcstok (configure.ac): ... to here.
501
502 2011-05-22  Bruno Haible  <bruno@clisp.org>
503
504         wcsstr: Move AC_LIBOBJ invocations to module description.
505         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
506         * modules/wcsstr (configure.ac): ... to here.
507
508 2011-05-22  Bruno Haible  <bruno@clisp.org>
509
510         wcsspn: Move AC_LIBOBJ invocations to module description.
511         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
512         * modules/wcsspn (configure.ac): ... to here.
513
514 2011-05-22  Bruno Haible  <bruno@clisp.org>
515
516         wcsrtombs: Move AC_LIBOBJ invocations to module description.
517         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
518         gl_PREREQ_WCSRTOMBS invocations from here...
519         * modules/wcsrtombs (configure.ac): ... to here.
520
521 2011-05-22  Bruno Haible  <bruno@clisp.org>
522
523         wcsrchr: Move AC_LIBOBJ invocations to module description.
524         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
525         here...
526         * modules/wcsrchr (configure.ac): ... to here.
527
528 2011-05-22  Bruno Haible  <bruno@clisp.org>
529
530         wcspbrk: Move AC_LIBOBJ invocations to module description.
531         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
532         here...
533         * modules/wcspbrk (configure.ac): ... to here.
534
535 2011-05-22  Bruno Haible  <bruno@clisp.org>
536
537         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
538         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
539         gl_PREREQ_WCSNRTOMBS invocations from here...
540         * modules/wcsnrtombs (configure.ac): ... to here.
541
542 2011-05-22  Bruno Haible  <bruno@clisp.org>
543
544         wcsnlen: Move AC_LIBOBJ invocations to module description.
545         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
546         here...
547         * modules/wcsnlen (configure.ac): ... to here.
548
549 2011-05-22  Bruno Haible  <bruno@clisp.org>
550
551         wcsncpy: Move AC_LIBOBJ invocations to module description.
552         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
553         here...
554         * modules/wcsncpy (configure.ac): ... to here.
555
556 2011-05-22  Bruno Haible  <bruno@clisp.org>
557
558         wcsncmp: Move AC_LIBOBJ invocations to module description.
559         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
560         here...
561         * modules/wcsncmp (configure.ac): ... to here.
562
563 2011-05-22  Bruno Haible  <bruno@clisp.org>
564
565         wcsncat: Move AC_LIBOBJ invocations to module description.
566         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
567         here...
568         * modules/wcsncat (configure.ac): ... to here.
569
570 2011-05-22  Bruno Haible  <bruno@clisp.org>
571
572         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
573         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
574         from here...
575         * modules/wcsncasecmp (configure.ac): ... to here.
576
577 2011-05-22  Bruno Haible  <bruno@clisp.org>
578
579         wcslen: Move AC_LIBOBJ invocations to module description.
580         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
581         * modules/wcslen (configure.ac): ... to here.
582
583 2011-05-22  Bruno Haible  <bruno@clisp.org>
584
585         wcsdup: Move AC_LIBOBJ invocations to module description.
586         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
587         * modules/wcsdup (configure.ac): ... to here.
588
589 2011-05-22  Bruno Haible  <bruno@clisp.org>
590
591         wcscspn: Move AC_LIBOBJ invocations to module description.
592         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
593         here...
594         * modules/wcscspn (configure.ac): ... to here.
595
596 2011-05-22  Bruno Haible  <bruno@clisp.org>
597
598         wcscpy: Move AC_LIBOBJ invocations to module description.
599         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
600         * modules/wcscpy (configure.ac): ... to here.
601
602 2011-05-22  Bruno Haible  <bruno@clisp.org>
603
604         wcscoll: Move AC_LIBOBJ invocations to module description.
605         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
606         here...
607         * modules/wcscoll (configure.ac): ... to here.
608
609 2011-05-22  Bruno Haible  <bruno@clisp.org>
610
611         wcscmp: Move AC_LIBOBJ invocations to module description.
612         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
613         * modules/wcscmp (configure.ac): ... to here.
614
615 2011-05-22  Bruno Haible  <bruno@clisp.org>
616
617         wcschr: Move AC_LIBOBJ invocations to module description.
618         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
619         * modules/wcschr (configure.ac): ... to here.
620
621 2011-05-22  Bruno Haible  <bruno@clisp.org>
622
623         wcscat: Move AC_LIBOBJ invocations to module description.
624         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
625         * modules/wcscat (configure.ac): ... to here.
626
627 2011-05-22  Bruno Haible  <bruno@clisp.org>
628
629         wcscasecmp: Move AC_LIBOBJ invocations to module description.
630         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
631         here...
632         * modules/wcscasecmp (configure.ac): ... to here.
633
634 2011-05-22  Bruno Haible  <bruno@clisp.org>
635
636         wcrtomb: Move AC_LIBOBJ invocations to module description.
637         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
638         invocations from here...
639         * modules/wcrtomb (configure.ac): ... to here.
640
641 2011-05-22  Bruno Haible  <bruno@clisp.org>
642
643         wcpncpy: Move AC_LIBOBJ invocations to module description.
644         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
645         here...
646         * modules/wcpncpy (configure.ac): ... to here.
647
648 2011-05-22  Bruno Haible  <bruno@clisp.org>
649
650         wcpcpy: Move AC_LIBOBJ invocations to module description.
651         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
652         * modules/wcpcpy (configure.ac): ... to here.
653
654 2011-05-22  Bruno Haible  <bruno@clisp.org>
655
656         waitpid: Move AC_LIBOBJ invocations to module description.
657         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
658         invocation from here...
659         * modules/waitpid (configure.ac): ... to here.
660
661 2011-05-22  Bruno Haible  <bruno@clisp.org>
662
663         utimensat: Move AC_LIBOBJ invocations to module description.
664         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
665         here...
666         * modules/utimensat (configure.ac): ... to here.
667
668 2011-05-22  Bruno Haible  <bruno@clisp.org>
669
670         usleep: Move AC_LIBOBJ invocations to module description.
671         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
672         here...
673         * modules/usleep (configure.ac): ... to here.
674
675 2011-05-22  Bruno Haible  <bruno@clisp.org>
676
677         unlockpt: Move AC_LIBOBJ invocations to module description.
678         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
679         gl_PREREQ_UNLOCKPT invocations from here...
680         * modules/unlockpt (configure.ac): ... to here.
681
682 2011-05-22  Bruno Haible  <bruno@clisp.org>
683
684         unlink: Respect rules for use of AC_LIBOBJ.
685         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
686         * modules/unlink (configure.ac): ... to here.
687
688 2011-05-22  Bruno Haible  <bruno@clisp.org>
689
690         uname: Move AC_LIBOBJ invocations to module description.
691         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
693         here...
694         * modules/uname (configure.ac): ... to here.
695
696 2011-05-22  Bruno Haible  <bruno@clisp.org>
697
698         ttyname_r: Move AC_LIBOBJ invocations to module description.
699         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
700         gl_PREREQ_TTYNAME_R invocations from here...
701         * modules/ttyname_r (configure.ac): ... to here.
702
703 2011-05-22  Bruno Haible  <bruno@clisp.org>
704
705         tsearch: Move AC_LIBOBJ invocations to module description.
706         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
707         invocations from here...
708         * modules/tsearch (configure.ac): ... to here.
709
710 2011-05-22  Bruno Haible  <bruno@clisp.org>
711
712         towctrans: Move AC_LIBOBJ invocations to module description.
713         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
714         AC_LIBOBJ invocation from here...
715         * modules/towctrans (configure.ac): ... to here.
716
717 2011-05-22  Bruno Haible  <bruno@clisp.org>
718
719         tmpfile: Move AC_LIBOBJ invocations to module description.
720         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
721         invocations from here...
722         * modules/tmpfile (configure.ac): ... to here.
723
724 2011-05-22  Bruno Haible  <bruno@clisp.org>
725
726         times: Move AC_LIBOBJ invocations to module description.
727         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
728         * modules/times (configure.ac): ... to here.
729
730 2011-05-22  Bruno Haible  <bruno@clisp.org>
731
732         time_r: Move AC_LIBOBJ invocations to module description.
733         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
734         invocations from here...
735         * modules/time_r (configure.ac): ... to here.
736
737 2011-05-22  Bruno Haible  <bruno@clisp.org>
738
739         timegm: Move AC_LIBOBJ invocations to module description.
740         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
741         invocations from here...
742         * modules/timegm (configure.ac): ... to here.
743
744 2011-05-22  Bruno Haible  <bruno@clisp.org>
745
746         tcgetsid: Move AC_LIBOBJ invocations to module description.
747         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
748         and gl_PREREQ_TCGETSID invocations from here...
749         * modules/tcgetsid (configure.ac): ... to here.
750         (Depends-on): Update conditions.
751
752 2011-05-22  Bruno Haible  <bruno@clisp.org>
753
754         symlinkat: Move AC_LIBOBJ invocations to module description.
755         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
756         here...
757         * modules/symlinkat (configure.ac): ... to here.
758
759 2011-05-22  Bruno Haible  <bruno@clisp.org>
760
761         symlink: Move AC_LIBOBJ invocations to module description.
762         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
763         here...
764         * modules/symlink (configure.ac): ... to here.
765
766 2011-05-22  Bruno Haible  <bruno@clisp.org>
767
768         strverscmp: Move AC_LIBOBJ invocations to module description.
769         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
770         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
771         from here...
772         * modules/strverscmp (configure.ac): ... to here.
773
774 2011-05-22  Bruno Haible  <bruno@clisp.org>
775
776         strtok_r: Move AC_LIBOBJ invocations to module description.
777         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
778         and gl_PREREQ_STRTOK_R invocations from here...
779         * modules/strtok_r (configure.ac): ... to here.
780         (Depends-on): Update conditions.
781
782 2011-05-22  Bruno Haible  <bruno@clisp.org>
783
784         strtoumax: Move AC_LIBOBJ invocations to module description.
785         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
786         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
787         from here...
788         * modules/strtoumax (configure.ac): ... to here.
789
790 2011-05-22  Bruno Haible  <bruno@clisp.org>
791
792         strtoimax: Move AC_LIBOBJ invocations to module description.
793         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
795         from here...
796         * modules/strtoimax (configure.ac): ... to here.
797
798 2011-05-22  Bruno Haible  <bruno@clisp.org>
799
800         strtoull: Move AC_LIBOBJ invocations to module description.
801         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
802         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
803         from here...
804         * modules/strtoull (configure.ac): ... to here.
805
806 2011-05-22  Bruno Haible  <bruno@clisp.org>
807
808         strtoll: Move AC_LIBOBJ invocations to module description.
809         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
810         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
811         here...
812         * modules/strtoll (configure.ac): ... to here.
813
814 2011-05-22  Bruno Haible  <bruno@clisp.org>
815
816         strtoul: Move AC_LIBOBJ invocations to module description.
817         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
818         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
819         * modules/strtoul (configure.ac): ... to here.
820
821 2011-05-22  Bruno Haible  <bruno@clisp.org>
822
823         strtol: Move AC_LIBOBJ invocations to module description.
824         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
825         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
826         * modules/strtol (configure.ac): ... to here.
827
828 2011-05-22  Bruno Haible  <bruno@clisp.org>
829
830         strtod: Move AC_LIBOBJ invocations to module description.
831         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
832         invocations from here...
833         * modules/strtod (configure.ac): ... to here.
834
835 2011-05-22  Bruno Haible  <bruno@clisp.org>
836
837         strstr*: Move AC_LIBOBJ invocations to module description.
838         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
839         invocations from here...
840         * modules/strstr-simple (configure.ac): ... to here.
841         * modules/strstr (configure.ac): ... and here.
842
843 2011-05-22  Bruno Haible  <bruno@clisp.org>
844
845         strsignal: Move AC_LIBOBJ invocations to module description.
846         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
847         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
848         * modules/strsignal (configure.ac): ... to here.
849         (Depends-on): Update conditions.
850
851 2011-05-22  Bruno Haible  <bruno@clisp.org>
852
853         strsep: Move AC_LIBOBJ invocations to module description.
854         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
855         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
856         here...
857         * modules/strsep (configure.ac): ... to here.
858
859 2011-05-22  Bruno Haible  <bruno@clisp.org>
860
861         strptime: Move AC_LIBOBJ invocations to module description.
862         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
863         gl_PREREQ_STRPTIME invocations from here...
864         * modules/strptime (configure.ac): ... to here.
865
866 2011-05-22  Bruno Haible  <bruno@clisp.org>
867
868         strpbrk: Move AC_LIBOBJ invocations to module description.
869         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
870         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
871         here...
872         * modules/strpbrk (configure.ac): ... to here.
873
874 2011-05-22  Bruno Haible  <bruno@clisp.org>
875
876         strnlen: Move AC_LIBOBJ invocations to module description.
877         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
878         invocations from here...
879         * modules/strnlen (configure.ac): ... to here.
880
881 2011-05-22  Bruno Haible  <bruno@clisp.org>
882
883         strndup: Move AC_LIBOBJ invocations to module description.
884         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
885         invocations from here...
886         * modules/strndup (configure.ac): ... to here.
887         (Depends-on): Update conditions.
888
889 2011-05-22  Bruno Haible  <bruno@clisp.org>
890
891         strncat: Move AC_LIBOBJ invocations to module description.
892         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
893         invocations from here...
894         * modules/strncat (configure.ac): ... to here.
895
896 2011-05-22  Bruno Haible  <bruno@clisp.org>
897
898         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
899         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
900         invocations from here...
901         * modules/strdup (configure.ac): ... to here.
902         * modules/strdup-posix (configure.ac): ... and here.
903
904 2011-05-22  Bruno Haible  <bruno@clisp.org>
905
906         strcspn: Move AC_LIBOBJ invocations to module description.
907         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
908         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
909         here...
910         * modules/strcspn (configure.ac): ... to here.
911
912 2011-05-22  Bruno Haible  <bruno@clisp.org>
913
914         strchrnul: Move AC_LIBOBJ invocations to module description.
915         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
916         gl_PREREQ_STRCHRNUL invocations from here...
917         * modules/strchrnul (configure.ac): ... to here.
918
919 2011-05-22  Bruno Haible  <bruno@clisp.org>
920
921         strcasestr*: Move AC_LIBOBJ invocations to module description.
922         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
923         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
924         * modules/strcasestr-simple (configure.ac): ... to here.
925         * modules/strcasestr (configure.ac): ... and here.
926
927 2011-05-22  Bruno Haible  <bruno@clisp.org>
928
929         strcase: Move AC_LIBOBJ invocations to module description.
930         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
931         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
932         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
933         gl_PREREQ_STRNCASECMP invocations from here...
934         * modules/strcase (configure.ac): ... to here.
935
936 2011-05-22  Bruno Haible  <bruno@clisp.org>
937
938         stpncpy: Move AC_LIBOBJ invocations to module description.
939         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
940         here...
941         * modules/stpncpy (configure.ac): ... to here.
942
943 2011-05-22  Bruno Haible  <bruno@clisp.org>
944
945         stpcpy: Move AC_LIBOBJ invocations to module description.
946         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
947         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
948         here...
949         * modules/stpcpy (configure.ac): ... to here.
950
951 2011-05-21  Bruno Haible  <bruno@clisp.org>
952
953         stat: Move AC_LIBOBJ invocations to module description.
954         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
955         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
956         here...
957         * modules/stat (configure.ac): ... to here.
958
959 2011-05-21  Bruno Haible  <bruno@clisp.org>
960
961         sleep: Move AC_LIBOBJ invocations to module description.
962         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
963         * modules/sleep (configure.ac): ... to here.
964
965 2011-05-21  Bruno Haible  <bruno@clisp.org>
966
967         signbit: Move AC_LIBOBJ invocations to module description.
968         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
969         * modules/signbit (configure.ac): ... to here.
970
971 2011-05-21  Bruno Haible  <bruno@clisp.org>
972
973         sigprocmask: Move AC_LIBOBJ invocations to module description.
974         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
975         gl_PREREQ_SIGPROMASK invocations from here...
976         * modules/sigprocmask (configure.ac): ... to here.
977
978 2011-05-21  Bruno Haible  <bruno@clisp.org>
979
980         sigaction: Move AC_LIBOBJ invocations to module description.
981         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
982         gl_PREREQ_SIGACTION invocations from here...
983         * modules/sigaction (configure.ac): ... to here.
984
985 2011-05-21  Bruno Haible  <bruno@clisp.org>
986
987         sig2str: Move AC_LIBOBJ invocations to module description.
988         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
989         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
990         here...
991         * modules/sig2str (configure.ac): ... to here.
992
993 2011-05-21  Bruno Haible  <bruno@clisp.org>
994
995         setlocale: Move AC_LIBOBJ invocations to module description.
996         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
997         gl_PREREQ_SETLOCALE invocations from here...
998         * modules/setlocale (configure.ac): ... to here.
999
1000 2011-05-21  Bruno Haible  <bruno@clisp.org>
1001
1002         unsetenv: Move AC_LIBOBJ invocations to module description.
1003         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
1004         and gl_PREREQ_UNSETENV invocations from here...
1005         * modules/unsetenv (configure.ac): ... to here.
1006         (Depends-on): Update.
1007
1008 2011-05-21  Bruno Haible  <bruno@clisp.org>
1009
1010         setenv: Move AC_LIBOBJ invocations to module description.
1011         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
1012         here...
1013         * modules/setenv (configure.ac): ... to here.
1014
1015 2011-05-21  Bruno Haible  <bruno@clisp.org>
1016
1017         selinux-h: Move AC_LIBOBJ invocations to module description.
1018         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
1019         AC_LIBOBJ invocation from here...
1020         * modules/selinux-h (configure.ac): ... to here.
1021
1022 2011-05-21  Bruno Haible  <bruno@clisp.org>
1023
1024         select: Respect rules for use of AC_LIBOBJ.
1025         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
1026         here...
1027         * modules/select (configure.ac): ... to here.
1028
1029 2011-05-21  Bruno Haible  <bruno@clisp.org>
1030
1031         scandir: Move AC_LIBOBJ invocations to module description.
1032         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
1033         invocations from here...
1034         * modules/scandir (configure.ac): ... to here.
1035
1036 2011-05-21  Bruno Haible  <bruno@clisp.org>
1037
1038         rpmatch: Move AC_LIBOBJ invocations to module description.
1039         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
1040         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
1041         here...
1042         * modules/rpmatch (configure.ac): ... to here.
1043
1044 2011-05-21  Bruno Haible  <bruno@clisp.org>
1045
1046         rmdir: Respect rules for use of AC_LIBOBJ.
1047         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
1048         * modules/rmdir (configure.ac): ... to here.
1049
1050 2011-05-21  Bruno Haible  <bruno@clisp.org>
1051
1052         renameat: Move AC_LIBOBJ invocations to module description.
1053         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
1054         here...
1055         * modules/renameat (configure.ac): ... to here.
1056
1057 2011-05-21  Bruno Haible  <bruno@clisp.org>
1058
1059         rename: Respect rules for use of AC_LIBOBJ.
1060         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
1061         here...
1062         * modules/rename (configure.ac): ... to here.
1063
1064 2011-05-21  Bruno Haible  <bruno@clisp.org>
1065
1066         remove: Move AC_LIBOBJ invocations to module description.
1067         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
1068         here...
1069         * modules/remove (configure.ac): ... to here.
1070
1071 2011-05-21  Bruno Haible  <bruno@clisp.org>
1072
1073         relocatable-lib: Move AC_LIBOBJ invocations to module description.
1074         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
1075         macro.
1076         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
1077         * modules/relocatable-lib (configure.ac): ... to here.
1078         * modules/relocatable-prog-wrapper (configure.ac): Invoke
1079         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
1080
1081 2011-05-21  Bruno Haible  <bruno@clisp.org>
1082
1083         relocatable-prog: Move AC_LIBOBJ invocations to module description.
1084         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
1085         here...
1086         * modules/relocatable-prog (configure.ac): ... to here.
1087
1088 2011-05-21  Bruno Haible  <bruno@clisp.org>
1089
1090         regex: Move AC_LIBOBJ invocations to module description.
1091         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
1092         invocations from here...
1093         * modules/regex (configure.ac): ... to here.
1094
1095 2011-05-21  Bruno Haible  <bruno@clisp.org>
1096
1097         realloc-*: Move AC_LIBOBJ invocations to module description.
1098         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
1099         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
1100         AC_LIBOBJ invocations from here...
1101         * modules/realloc-gnu (configure.ac): ... to here.
1102         * modules/realloc-posix (configure.ac): ... and here.
1103
1104 2011-05-21  Bruno Haible  <bruno@clisp.org>
1105
1106         readutmp: Move AC_LIBOBJ invocations to module description.
1107         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
1108         * modules/readutmp (configure.ac): ... to here.
1109
1110 2011-05-21  Bruno Haible  <bruno@clisp.org>
1111
1112         readlinkat: Move AC_LIBOBJ invocations to module description.
1113         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
1114         here...
1115         * modules/readlinkat (configure.ac): ... to here.
1116
1117 2011-05-21  Bruno Haible  <bruno@clisp.org>
1118
1119         readlink: Move AC_LIBOBJ invocations to module description.
1120         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
1121         gl_PREREQ_READLINK invocations from here...
1122         * modules/readlink (configure.ac): ... to here.
1123
1124 2011-05-21  Bruno Haible  <bruno@clisp.org>
1125
1126         readline: Move AC_LIBOBJ invocations to module description.
1127         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
1128         gl_PREREQ_READLINE invocations from here...
1129         * modules/readline (configure.ac): ... to here.
1130
1131 2011-05-21  Bruno Haible  <bruno@clisp.org>
1132
1133         read: Move AC_LIBOBJ invocations to module description.
1134         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
1135         * modules/read (configure.ac): ... to here.
1136
1137 2011-05-21  Bruno Haible  <bruno@clisp.org>
1138
1139         rawmemchr: Move AC_LIBOBJ invocations to module description.
1140         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
1141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
1142         from here...
1143         * modules/rawmemchr (configure.ac): ... to here.
1144
1145 2011-05-21  Bruno Haible  <bruno@clisp.org>
1146
1147         random_r: Move AC_LIBOBJ invocations to module description.
1148         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
1149         gl_PREREQ_RANDOM_R invocations from here...
1150         * modules/random_r (configure.ac): ... to here.
1151
1152 2011-05-21  Bruno Haible  <bruno@clisp.org>
1153
1154         pwrite: Move AC_LIBOBJ invocations to module description.
1155         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
1156         * modules/pwrite (configure.ac): ... to here.
1157
1158 2011-05-21  Bruno Haible  <bruno@clisp.org>
1159
1160         putenv: Move AC_LIBOBJ invocations to module description.
1161         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
1162         * modules/putenv (configure.ac): ... to here.
1163
1164 2011-05-21  Bruno Haible  <bruno@clisp.org>
1165
1166         login_tty: Move AC_LIBOBJ invocations to module description.
1167         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
1168         * modules/login_tty (configure.ac): ... to here.
1169
1170 2011-05-21  Bruno Haible  <bruno@clisp.org>
1171
1172         openpty: Move AC_LIBOBJ invocations to module description.
1173         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
1174         * modules/openpty (configure.ac): ... to here.
1175
1176 2011-05-21  Bruno Haible  <bruno@clisp.org>
1177
1178         forkpty: Move AC_LIBOBJ invocations to module description.
1179         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
1180         * modules/forkpty (configure.ac): ... to here.
1181
1182 2011-05-21  Bruno Haible  <bruno@clisp.org>
1183
1184         ptsname: Move AC_LIBOBJ invocations to module description.
1185         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
1186         invocations from here...
1187         * modules/ptsname (configure.ac): ... to here.
1188
1189 2011-05-21  Bruno Haible  <bruno@clisp.org>
1190
1191         pread: Move AC_LIBOBJ invocations to module description.
1192         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
1193         * modules/pread (configure.ac): ... to here.
1194
1195 2011-05-21  Bruno Haible  <bruno@clisp.org>
1196
1197         posix_spawn*: Move AC_LIBOBJ invocations to module description.
1198         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
1199         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
1200         * modules/posix_spawn (configure.ac): ... to here.
1201         * modules/posix_spawnp (configure.ac): ... and here.
1202
1203 2011-05-21  Bruno Haible  <bruno@clisp.org>
1204
1205         popen: Move AC_LIBOBJ invocations to module description.
1206         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
1207         invocations from here...
1208         * modules/popen (configure.ac): ... to here.
1209
1210 2011-05-21  Bruno Haible  <bruno@clisp.org>
1211
1212         poll: Move AC_LIBOBJ invocations to module description.
1213         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
1214         invocations from here...
1215         * modules/poll (configure.ac): ... to here.
1216
1217 2011-05-21  Bruno Haible  <bruno@clisp.org>
1218
1219         pipe-posix: Move AC_LIBOBJ invocations to module description.
1220         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
1221         * modules/pipe-posix (configure.ac): ... to here.
1222
1223 2011-05-21  Bruno Haible  <bruno@clisp.org>
1224
1225         openat: Respect rules for use of AC_LIBOBJ.
1226         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
1227         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1228         * modules/openat (configure.ac): ... to here.
1229
1230 2011-05-21  Bruno Haible  <bruno@clisp.org>
1231
1232         obstack-printf*: Move AC_LIBOBJ invocations to module description.
1233         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
1234         invocation from here...
1235         * modules/obstack-printf (configure.ac): ... to here.
1236         * modules/obstack-printf-posix (configure.ac): ... and here.
1237
1238 2011-05-21  Bruno Haible  <bruno@clisp.org>
1239
1240         nl_langinfo: Move AC_LIBOBJ invocations to module description.
1241         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
1242         from here...
1243         * modules/nl_langinfo (configure.ac): ... to here.
1244
1245 2011-05-21  Bruno Haible  <bruno@clisp.org>
1246
1247         nanosleep: Move AC_LIBOBJ invocations to module description.
1248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
1249         gl_PREREQ_NANOSLEEP invocations from here...
1250         * modules/nanosleep (configure.ac): ... to here.
1251
1252 2011-05-21  Bruno Haible  <bruno@clisp.org>
1253
1254         mountlist: Move AC_LIBOBJ invocations to module description.
1255         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
1256         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
1257         * modules/mountlist (configure.ac): ... to here.
1258
1259 2011-05-21  Bruno Haible  <bruno@clisp.org>
1260
1261         mktime: Respect rules for use of AC_LIBOBJ.
1262         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
1263         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
1264         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
1265         (gl_FUNC_MKTIME_INTERNAL): ... and here...
1266         * modules/mktime (configure.ac): ... to here.
1267         * modules/mktime-internal (configure.ac): ... and here.
1268         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
1269
1270 2011-05-21  Bruno Haible  <bruno@clisp.org>
1271
1272         mkstemps: Move AC_LIBOBJ invocations to module description.
1273         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
1274         here...
1275         * modules/mkstemps (configure.ac): ... to here.
1276
1277 2011-05-21  Bruno Haible  <bruno@clisp.org>
1278
1279         mkstemp: Move AC_LIBOBJ invocations to module description.
1280         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
1281         gl_PREREQ_MKSTEMP invocations from here...
1282         * modules/mkstemp (configure.ac): ... to here.
1283
1284 2011-05-21  Bruno Haible  <bruno@clisp.org>
1285
1286         mkostemps: Move AC_LIBOBJ invocations to module description.
1287         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
1288         here...
1289         * modules/mkostemps (configure.ac): ... to here.
1290
1291 2011-05-21  Bruno Haible  <bruno@clisp.org>
1292
1293         mkostemp: Move AC_LIBOBJ invocations to module description.
1294         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
1295         gl_PREREQ_MKOSTEMP invocations from here...
1296         * modules/mkostemp (configure.ac): ... to here.
1297
1298 2011-05-21  Bruno Haible  <bruno@clisp.org>
1299
1300         mknod: Move AC_LIBOBJ invocations to module description.
1301         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
1302         * modules/mknod (configure.ac): ... to here.
1303
1304 2011-05-21  Bruno Haible  <bruno@clisp.org>
1305
1306         mkfifoat: Move AC_LIBOBJ invocations to module description.
1307         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
1308         here...
1309         * modules/mkfifoat (configure.ac): ... to here.
1310
1311 2011-05-21  Bruno Haible  <bruno@clisp.org>
1312
1313         mkfifo: Respect rules for use of AC_LIBOBJ.
1314         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
1315         here...
1316         * modules/mkfifo (configure.ac): ... to here.
1317
1318 2011-05-21  Bruno Haible  <bruno@clisp.org>
1319
1320         mkdtemp: Move AC_LIBOBJ invocations to module description.
1321         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
1322         invocations from here...
1323         * modules/mkdtemp (configure.ac): ... to here.
1324
1325 2011-05-21  Bruno Haible  <bruno@clisp.org>
1326
1327         mkdir: Move AC_LIBOBJ invocations to module description.
1328         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
1329         * modules/mkdir (configure.ac): ... to here.
1330
1331 2011-05-21  Bruno Haible  <bruno@clisp.org>
1332
1333         memset: Move AC_LIBOBJ invocations to module description.
1334         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
1335         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
1336         here...
1337         * modules/memset (configure.ac): ... to here.
1338
1339 2011-05-21  Bruno Haible  <bruno@clisp.org>
1340
1341         memrchr: Move AC_LIBOBJ invocations to module description.
1342         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
1343         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
1344         here...
1345         * modules/memrchr (configure.ac): ... to here.
1346
1347 2011-05-21  Bruno Haible  <bruno@clisp.org>
1348
1349         mempcpy: Move AC_LIBOBJ invocations to module description.
1350         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
1351         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
1352         here...
1353         * modules/mempcpy (configure.ac): ... to here.
1354
1355 2011-05-21  Bruno Haible  <bruno@clisp.org>
1356
1357         memmove: Move AC_LIBOBJ invocations to module description.
1358         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
1359         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
1360         here...
1361         * modules/memmove (configure.ac): ... to here.
1362
1363 2011-05-21  Bruno Haible  <bruno@clisp.org>
1364
1365         memmem*: Move AC_LIBOBJ invocations to module description.
1366         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
1367         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
1368         here...
1369         (gl_FUNC_MEMMEM): ... and here...
1370         * modules/memmem-simple (configure.ac): ... to here.
1371         * modules/memmem (configure.ac): ... and here.
1372
1373 2011-05-21  Bruno Haible  <bruno@clisp.org>
1374
1375         memcpy: Move AC_LIBOBJ invocations to module description.
1376         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
1377         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
1378         here...
1379         * modules/memcpy (configure.ac): ... to here.
1380
1381 2011-05-21  Bruno Haible  <bruno@clisp.org>
1382
1383         memcmp: Simplify autoconf macro.
1384         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
1385         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
1386         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
1387
1388 2011-05-21  Bruno Haible  <bruno@clisp.org>
1389
1390         memcmp: Move AC_LIBOBJ invocations to module description.
1391         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
1392         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
1393         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
1394         * modules/memcmp (configure.ac): ... to here.
1395         (Depends-on): Update conditions.
1396
1397 2011-05-21  Bruno Haible  <bruno@clisp.org>
1398
1399         memchr: Respect rules for use of AC_LIBOBJ.
1400         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
1401         invocations from here...
1402         * modules/memchr (configure.ac): ... to here.
1403
1404 2011-05-21  Bruno Haible  <bruno@clisp.org>
1405
1406         mbtowc: Move AC_LIBOBJ invocations to module description.
1407         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1408         invocations from here...
1409         * modules/mbtowc (configure.ac): ... to here.
1410
1411 2011-05-21  Bruno Haible  <bruno@clisp.org>
1412
1413         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1414         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1415         gl_PREREQ_MBSRTOWCS invocations from here...
1416         * modules/mbsrtowcs (configure.ac): ... to here.
1417
1418 2011-05-21  Bruno Haible  <bruno@clisp.org>
1419
1420         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1421         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1422         gl_PREREQ_MBSNRTOWCS invocations from here...
1423         * modules/mbsnrtowcs (configure.ac): ... to here.
1424
1425 2011-05-21  Bruno Haible  <bruno@clisp.org>
1426
1427         mbsinit: Move AC_LIBOBJ invocations to module description.
1428         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1429         invocations from here...
1430         * modules/mbsinit (configure.ac): ... to here.
1431
1432 2011-05-21  Bruno Haible  <bruno@clisp.org>
1433
1434         mbrlen: Move AC_LIBOBJ invocations to module description.
1435         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1436         invocations from here...
1437         * modules/mbrlen (configure.ac): ... to here.
1438
1439 2011-05-21  Bruno Haible  <bruno@clisp.org>
1440
1441         mbrtowc: Respect rules for use of AC_LIBOBJ.
1442         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1443         invocations from here...
1444         * modules/mbrtowc (configure.ac): ... to here.
1445
1446 2011-05-21  Bruno Haible  <bruno@clisp.org>
1447
1448         malloc-*: Move AC_LIBOBJ invocations to module description.
1449         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1450         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1451         AC_LIBOBJ invocations from here...
1452         * modules/malloc-gnu (configure.ac): ... to here.
1453         * modules/malloc-posix (configure.ac): ... and here.
1454
1455 2011-05-21  Bruno Haible  <bruno@clisp.org>
1456
1457         lstat, openat: Respect rules for use of AC_LIBOBJ.
1458         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1459         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1460         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1461         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1462         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1463         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1464         here.
1465         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1466
1467 2011-05-21  Bruno Haible  <bruno@clisp.org>
1468
1469         lseek: Move AC_LIBOBJ invocations to module description.
1470         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1471         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1472         * modules/lseek (configure.ac): ... to here.
1473
1474 2011-05-21  Bruno Haible  <bruno@clisp.org>
1475
1476         linkat: Move AC_LIBOBJ invocations to module description.
1477         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1478         here...
1479         * modules/linkat (configure.ac): ... to here.
1480
1481 2011-05-21  Bruno Haible  <bruno@clisp.org>
1482
1483         link: Respect rules for use of AC_LIBOBJ.
1484         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1485         * modules/link (configure.ac): ... to here.
1486
1487 2011-05-21  Bruno Haible  <bruno@clisp.org>
1488
1489         lchown: Move AC_LIBOBJ invocations to module description.
1490         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1491         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1492         * modules/lchown (configure.ac): ... to here.
1493
1494 2011-05-21  Bruno Haible  <bruno@clisp.org>
1495
1496         iswctype: Move AC_LIBOBJ invocations to module description.
1497         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1498         here...
1499         * modules/iswctype (configure.ac): ... to here.
1500
1501 2011-05-21  Bruno Haible  <bruno@clisp.org>
1502
1503         iswblank: Move AC_LIBOBJ invocations to module description.
1504         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1505         here...
1506         * modules/iswblank (configure.ac): ... to here.
1507
1508 2011-05-21  Bruno Haible  <bruno@clisp.org>
1509
1510         atanl: Move AC_LIBOBJ invocations to module description.
1511         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1512         * modules/atanl (configure.ac): ... to here.
1513
1514 2011-05-21  Bruno Haible  <bruno@clisp.org>
1515
1516         acosl: Move AC_LIBOBJ invocations to module description.
1517         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1518         * modules/acosl (configure.ac): ... to here.
1519
1520 2011-05-21  Bruno Haible  <bruno@clisp.org>
1521
1522         asinl: Respect rules for use of AC_LIBOBJ.
1523         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1524         * modules/asinl (configure.ac): ... to here.
1525
1526 2011-05-21  Bruno Haible  <bruno@clisp.org>
1527
1528         tanl: Move AC_LIBOBJ invocations to module description.
1529         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1530         * modules/tanl (configure.ac): ... to here.
1531
1532 2011-05-21  Bruno Haible  <bruno@clisp.org>
1533
1534         cosl: Move AC_LIBOBJ invocations to module description.
1535         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1536         * modules/cosl (configure.ac): ... to here.
1537
1538 2011-05-21  Bruno Haible  <bruno@clisp.org>
1539
1540         sinl: Move AC_LIBOBJ invocations to module description.
1541         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1542         * modules/sinl (configure.ac): ... to here.
1543
1544 2011-05-21  Bruno Haible  <bruno@clisp.org>
1545
1546         logl: Move AC_LIBOBJ invocations to module description.
1547         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1548         * modules/logl (configure.ac): ... to here.
1549
1550 2011-05-21  Bruno Haible  <bruno@clisp.org>
1551
1552         expl: Move AC_LIBOBJ invocations to module description.
1553         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1554         * modules/expl (configure.ac): ... to here.
1555
1556 2011-05-21  Bruno Haible  <bruno@clisp.org>
1557
1558         roundl: Move AC_LIBOBJ invocations to module description.
1559         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1560         * modules/roundl (configure.ac): ... to here.
1561
1562 2011-05-21  Bruno Haible  <bruno@clisp.org>
1563
1564         round: Move AC_LIBOBJ invocations to module description.
1565         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1566         * modules/round (configure.ac): ... to here.
1567
1568 2011-05-21  Bruno Haible  <bruno@clisp.org>
1569
1570         roundf: Move AC_LIBOBJ invocations to module description.
1571         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1572         * modules/roundf (configure.ac): ... to here.
1573
1574 2011-05-21  Bruno Haible  <bruno@clisp.org>
1575
1576         truncl: Move AC_LIBOBJ invocations to module description.
1577         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1578         * modules/truncl (configure.ac): ... to here.
1579
1580 2011-05-21  Bruno Haible  <bruno@clisp.org>
1581
1582         trunc: Move AC_LIBOBJ invocations to module description.
1583         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1584         * modules/trunc (configure.ac): ... to here.
1585
1586 2011-05-21  Bruno Haible  <bruno@clisp.org>
1587
1588         truncf: Move AC_LIBOBJ invocations to module description.
1589         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1590         * modules/truncf (configure.ac): ... to here.
1591
1592 2011-05-21  Bruno Haible  <bruno@clisp.org>
1593
1594         ceill: Move AC_LIBOBJ invocations to module description.
1595         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1596         * modules/ceill (configure.ac): ... to here.
1597
1598 2011-05-21  Bruno Haible  <bruno@clisp.org>
1599
1600         ceil: Move AC_LIBOBJ invocations to module description.
1601         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1602         * modules/ceil (configure.ac): ... to here.
1603
1604 2011-05-21  Bruno Haible  <bruno@clisp.org>
1605
1606         ceilf: Move AC_LIBOBJ invocations to module description.
1607         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1608         * modules/ceilf (configure.ac): ... to here.
1609
1610 2011-05-21  Bruno Haible  <bruno@clisp.org>
1611
1612         floorl: Respect rules for use of AC_LIBOBJ.
1613         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1614         * modules/floorl (configure.ac): ... to here.
1615
1616 2011-05-21  Bruno Haible  <bruno@clisp.org>
1617
1618         floor: Respect rules for use of AC_LIBOBJ.
1619         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1620         * modules/floor (configure.ac): ... to here.
1621
1622 2011-05-21  Bruno Haible  <bruno@clisp.org>
1623
1624         floorf: Move AC_LIBOBJ invocations to module description.
1625         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1626         * modules/floorf (configure.ac): ... to here.
1627
1628 2011-05-20  Bruno Haible  <bruno@clisp.org>
1629
1630         sqrtl: Respect rules for use of AC_LIBOBJ.
1631         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1632         * modules/sqrtl (configure.ac): ... to here.
1633
1634 2011-05-20  Bruno Haible  <bruno@clisp.org>
1635
1636         ldexpl: Respect rules for use of AC_LIBOBJ.
1637         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1638         * modules/ldexpl (configure.ac): ... to here.
1639
1640 2011-05-20  Bruno Haible  <bruno@clisp.org>
1641
1642         frexpl*: Respect rules for use of AC_LIBOBJ.
1643         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1644         invocation from here...
1645         * modules/frexpl (configure.ac): ... to here.
1646         * modules/frexpl-nolibm (configure.ac): ... and here.
1647
1648 2011-05-20  Bruno Haible  <bruno@clisp.org>
1649
1650         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1651         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1652         invocation from here...
1653         * modules/frexp (configure.ac): ... to here.
1654         * modules/frexp-nolibm (configure.ac): ... and here.
1655
1656 2011-05-20  Bruno Haible  <bruno@clisp.org>
1657
1658         isnan: Respect rules for use of AC_LIBOBJ.
1659         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1660         invocations here.
1661         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1662         REPLACE_ISNAN.
1663         * modules/isnand (configure.ac): Likewise.
1664         * modules/isnanl (configure.ac): Likewise.
1665
1666 2011-05-20  Bruno Haible  <bruno@clisp.org>
1667
1668         isnanl*: Respect rules for use of AC_LIBOBJ.
1669         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1670         invocation from here...
1671         * modules/isnanl (configure.ac): ... to here.
1672         * modules/isnanl-nolibm (configure.ac): ... and here.
1673
1674 2011-05-20  Bruno Haible  <bruno@clisp.org>
1675
1676         isnand*: Move AC_LIBOBJ invocations to module description.
1677         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1678         invocation from here...
1679         * modules/isnand (configure.ac): ... to here.
1680         * modules/isnand-nolibm (configure.ac): ... and here.
1681
1682 2011-05-20  Bruno Haible  <bruno@clisp.org>
1683
1684         isnanf*: Move AC_LIBOBJ invocations to module description.
1685         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1686         invocation from here...
1687         * modules/isnanf (configure.ac): ... to here.
1688         * modules/isnanf-nolibm (configure.ac): ... and here.
1689
1690 2011-05-20  Bruno Haible  <bruno@clisp.org>
1691
1692         isnan*: Separate the AC_LIBOBJ invocations.
1693         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1694         AC_LIBOBJ invocation.
1695         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1696         here.
1697         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1698         AC_LIBOBJ invocation.
1699         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1700         here.
1701         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1702         AC_LIBOBJ invocation.
1703         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1704         here.
1705         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1706
1707 2011-05-08  Bruno Haible  <bruno@clisp.org>
1708
1709         isinf: Move AC_LIBOBJ invocations to module description.
1710         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1711         * modules/isinf (configure.ac): ... to here.
1712
1713 2011-05-08  Bruno Haible  <bruno@clisp.org>
1714
1715         isfinite: Move AC_LIBOBJ invocations to module description.
1716         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1717         * modules/isfinite (configure.ac): ... to here.
1718
1719 2011-05-08  Bruno Haible  <bruno@clisp.org>
1720
1721         isblank: Move AC_LIBOBJ invocations to module description.
1722         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1723         here...
1724         * modules/isblank (configure.ac): ... to here.
1725
1726 2011-05-08  Bruno Haible  <bruno@clisp.org>
1727
1728         isapipe: Move AC_LIBOBJ invocations to module description.
1729         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1730         gl_PREREQ_ISAPIPE invocations from here...
1731         * modules/isapipe (configure.ac): ... to here.
1732         (Depends-on): Update condition.
1733
1734 2011-05-08  Bruno Haible  <bruno@clisp.org>
1735
1736         ioctl: Move AC_LIBOBJ invocations to module description.
1737         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1738         invocations from here...
1739         * modules/ioctl (configure.ac): ... to here.
1740         (Depends-on): Update condition.
1741
1742 2011-05-08  Bruno Haible  <bruno@clisp.org>
1743
1744         imaxdiv: Move AC_LIBOBJ invocations to module description.
1745         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1746         invocations from here...
1747         * modules/imaxdiv (configure.ac): ... to here.
1748
1749 2011-05-08  Bruno Haible  <bruno@clisp.org>
1750
1751         imaxabs: Move AC_LIBOBJ invocations to module description.
1752         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1753         invocations from here...
1754         * modules/imaxabs (configure.ac): ... to here.
1755
1756 2011-05-08  Bruno Haible  <bruno@clisp.org>
1757
1758         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1759         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1760         AC_LIBOBJ invocations from here...
1761         * modules/getaddrinfo (configure.ac): ... to here.
1762         (Depends-on): Add conditions.
1763
1764 2011-05-08  Bruno Haible  <bruno@clisp.org>
1765
1766         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1767         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1768         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1769         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1770         (gl_PREREQ_INET_PTON): ... from here.
1771         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1772         gl_PREREQ_INET_PTON here.
1773         (Depends-on): Update condition.
1774
1775 2011-05-08  Bruno Haible  <bruno@clisp.org>
1776
1777         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1778         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1779         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1780         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1781         (gl_PREREQ_INET_NTOP): ... from here.
1782         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1783         gl_PREREQ_INET_NTOP here.
1784         (Depends-on): Update condition.
1785
1786 2011-05-08  Bruno Haible  <bruno@clisp.org>
1787
1788         iconv_open: Move AC_LIBOBJ invocations to module description.
1789         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1790         AC_LIBOBJ invocations from here...
1791         * modules/iconv_open (configure.ac): ... to here.
1792
1793 2011-05-08  Bruno Haible  <bruno@clisp.org>
1794
1795         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1796         If module 'iconv_open' is among the main modules and module
1797         'iconv_open-utf' is among the tests dependencies, then
1798         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1799         return the special iconv_t values. Therefore iconv() and iconv_close()
1800         must support these special iconv_t values, already in lib, not only in
1801         tests.
1802         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1803         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1804         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1805         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1806         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1807         (Depends-on): Add the dependencies of iconv_open-utf.
1808         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1809         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1810         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1811
1812 2011-05-08  Bruno Haible  <bruno@clisp.org>
1813
1814         group-member: Move AC_LIBOBJ invocations to module description.
1815         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1816         gl_PREREQ_GROUP_MEMBER invocations from here...
1817         * modules/group-member (configure.ac): ... to here.
1818
1819 2011-05-08  Bruno Haible  <bruno@clisp.org>
1820
1821         grantpt: Move AC_LIBOBJ invocations to module description.
1822         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1823         invocations from here...
1824         * modules/grantpt (configure.ac): ... to here.
1825
1826 2011-05-08  Bruno Haible  <bruno@clisp.org>
1827
1828         glob: Move AC_LIBOBJ invocations to module description.
1829         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1830         from here...
1831         * modules/glob (configure.ac): ... to here.
1832
1833 2011-05-08  Bruno Haible  <bruno@clisp.org>
1834
1835         getusershell: Move AC_LIBOBJ invocations to module description.
1836         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1837         Move AC_LIBOBJ invocation from here...
1838         * modules/getusershell (configure.ac): ... to here.
1839         (Depends-on): Update condition.
1840
1841 2011-05-08  Bruno Haible  <bruno@clisp.org>
1842
1843         gettimeofday: Move AC_LIBOBJ invocations to module description.
1844         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1845         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1846         gl_PREREQ_GETTIMEOFDAY invocations from here...
1847         * modules/gettimeofday (configure.ac): ... to here.
1848
1849 2011-05-08  Bruno Haible  <bruno@clisp.org>
1850
1851         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1852         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1853         just gl_FUNC_TZSET.
1854         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1855         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1856         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1857         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1858
1859 2011-05-08  Bruno Haible  <bruno@clisp.org>
1860
1861         getsubopt: Move AC_LIBOBJ invocations to module description.
1862         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1863         gl_PREREQ_GETSUBOPT invocations from here...
1864         * modules/getsubopt (configure.ac): ... to here.
1865
1866 2011-05-08  Bruno Haible  <bruno@clisp.org>
1867
1868         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1869         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1870         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1871         * modules/getpass-gnu (configure.ac): ... to here.
1872
1873 2011-05-08  Bruno Haible  <bruno@clisp.org>
1874
1875         getpass: Move AC_LIBOBJ invocations to module description.
1876         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1877         gl_PREREQ_GETPASS invocations from here...
1878         * modules/getpass (configure.ac): ... to here.
1879
1880 2011-05-08  Bruno Haible  <bruno@clisp.org>
1881
1882         getpagesize: Move AC_LIBOBJ invocations to module description.
1883         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1884         from here...
1885         * modules/getpagesize (configure.ac): ... to here.
1886
1887 2011-05-08  Bruno Haible  <bruno@clisp.org>
1888
1889         getopt: Move AC_LIBOBJ invocations to module description.
1890         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1891         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1892         invocations from here...
1893         * modules/getopt-gnu (configure.ac): ... to here.
1894         * modules/getopt-posix (configure.ac): ... and here.
1895         (Depends-on): Update condition.
1896
1897 2011-05-08  Bruno Haible  <bruno@clisp.org>
1898
1899         getopt, argp: Respect rules for use of AC_LIBOBJ.
1900         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1901         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1902         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1903         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1904
1905 2011-05-08  Bruno Haible  <bruno@clisp.org>
1906
1907         getlogin_r: Move AC_LIBOBJ invocations to module description.
1908         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1909         gl_PREREQ_GETLOGIN_R invocations from here...
1910         * modules/getlogin_r (configure.ac): ... to here.
1911
1912 2011-05-08  Bruno Haible  <bruno@clisp.org>
1913
1914         getlogin: Move AC_LIBOBJ invocations to module description.
1915         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1916         here...
1917         * modules/getlogin (configure.ac): ... to here.
1918
1919 2011-05-08  Bruno Haible  <bruno@clisp.org>
1920
1921         getloadavg: Move AC_LIBOBJ invocations to module description.
1922         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1923         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1924         * modules/getloadavg (configure.ac): ... to here.
1925
1926 2011-05-08  Bruno Haible  <bruno@clisp.org>
1927
1928         gethrxtime: Move AC_LIBOBJ invocations to module description.
1929         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1930         LIB_GETHRXTIME from here...
1931         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1932         invocations from here...
1933         * modules/gethrxtime (configure.ac): ... to here.
1934
1935 2011-05-08  Bruno Haible  <bruno@clisp.org>
1936
1937         gethostname: Move AC_LIBOBJ invocations to module description.
1938         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1939         gl_PREREQ_GETHOSTNAME invocations from here...
1940         * modules/gethostname (configure.ac): ... to here.
1941
1942 2011-05-08  Bruno Haible  <bruno@clisp.org>
1943
1944         getgroups: Move AC_LIBOBJ invocations to module description.
1945         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1946         here...
1947         * modules/getgroups (configure.ac): ... to here.
1948
1949 2011-05-08  Bruno Haible  <bruno@clisp.org>
1950
1951         getdtablesize: Move AC_LIBOBJ invocations to module description.
1952         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1953         invocation from here...
1954         * modules/getdtablesize (configure.ac): ... to here.
1955
1956 2011-05-08  Bruno Haible  <bruno@clisp.org>
1957
1958         getdomainname: Move AC_LIBOBJ invocations to module description.
1959         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1960         gl_PREREQ_GETDOMAINNAME invocations from here...
1961         * modules/getdomainname (configure.ac): ... to here.
1962
1963 2011-05-08  Bruno Haible  <bruno@clisp.org>
1964
1965         getline: Move AC_LIBOBJ invocations to module description.
1966         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1967         invocations from here...
1968         * modules/getline (configure.ac): ... to here.
1969
1970 2011-05-08  Bruno Haible  <bruno@clisp.org>
1971
1972         getline: Simplify.
1973         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1974         It's already handled through the module dependency.
1975
1976 2011-05-08  Bruno Haible  <bruno@clisp.org>
1977
1978         getdelim: Move AC_LIBOBJ invocations to module description.
1979         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1980         and gl_PREREQ_GETDELIM invocations from here...
1981         * modules/getdelim (configure.ac): ... to here.
1982         (Depends-on): Fix condition.
1983
1984 2011-05-08  Bruno Haible  <bruno@clisp.org>
1985
1986         getcwd: Move AC_LIBOBJ invocations to module description.
1987         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1988         invocations from here...
1989         * modules/getcwd (configure.ac): ... to here.
1990
1991 2011-05-08  Bruno Haible  <bruno@clisp.org>
1992
1993         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1994         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1995         here...
1996         * modules/getcwd-lgpl (configure.ac): ... to here.
1997
1998 2011-05-07  Bruno Haible  <bruno@clisp.org>
1999
2000         crypto/gc: Move AC_LIBOBJ invocations to module description.
2001         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
2002         * modules/crypto/gc (configure.ac): ... to here.
2003
2004 2011-05-07  Bruno Haible  <bruno@clisp.org>
2005
2006         fwriting: Move AC_LIBOBJ invocations to module description.
2007         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
2008         here...
2009         * modules/fwriting (configure.ac): ... to here.
2010
2011 2011-05-07  Bruno Haible  <bruno@clisp.org>
2012
2013         fwritable: Move AC_LIBOBJ invocations to module description.
2014         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
2015         here...
2016         * modules/fwritable (configure.ac): ... to here.
2017
2018 2011-05-07  Bruno Haible  <bruno@clisp.org>
2019
2020         futimens: Move AC_LIBOBJ invocations to module description.
2021         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
2022         here...
2023         * modules/futimens (configure.ac): ... to here.
2024
2025 2011-05-07  Bruno Haible  <bruno@clisp.org>
2026
2027         ftruncate: Move AC_LIBOBJ invocations to module description.
2028         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
2029         gl_PREREQ_FTRUNCATE invocations from here...
2030         * modules/ftruncate (configure.ac): ... to here.
2031
2032 2011-05-07  Bruno Haible  <bruno@clisp.org>
2033
2034         fsync: Move AC_LIBOBJ invocations to module description.
2035         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
2036         invocations from here...
2037         * modules/fsync (configure.ac): ... to here.
2038
2039 2011-05-07  Bruno Haible  <bruno@clisp.org>
2040
2041         fsusage: Move AC_LIBOBJ invocations to module description.
2042         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
2043         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
2044         * modules/fsusage (configure.ac): ... to here.
2045
2046 2011-05-07  Bruno Haible  <bruno@clisp.org>
2047
2048         freopen: Move AC_LIBOBJ invocations to module description.
2049         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
2050         invocations from here...
2051         * modules/freopen (configure.ac): ... to here.
2052
2053 2011-05-07  Bruno Haible  <bruno@clisp.org>
2054
2055         free: Move AC_LIBOBJ invocations to module description.
2056         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
2057         invocations from here...
2058         * modules/free (configure.ac): ... to here.
2059
2060 2011-05-07  Bruno Haible  <bruno@clisp.org>
2061
2062         freadable: Move AC_LIBOBJ invocations to module description.
2063         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
2064         here...
2065         * modules/freadable (configure.ac): ... to here.
2066
2067 2011-05-07  Bruno Haible  <bruno@clisp.org>
2068
2069         fpurge: Move AC_LIBOBJ invocations to module description.
2070         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
2071         invocations from here...
2072         * modules/fpurge (configure.ac): ... to here.
2073
2074 2011-05-07  Bruno Haible  <bruno@clisp.org>
2075
2076         fpending: Move AC_LIBOBJ invocations to module description.
2077         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
2078         gl_FUNC_FPENDING.
2079         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
2080         invocations from here...
2081         * modules/fpending (configure.ac): ... to here.
2082
2083 2011-05-07  Bruno Haible  <bruno@clisp.org>
2084
2085         fopen: Move AC_LIBOBJ invocations to module description.
2086         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
2087         invocations from here...
2088         * modules/fopen (configure.ac): ... to here.
2089
2090 2011-05-07  Bruno Haible  <bruno@clisp.org>
2091
2092         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
2093         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
2094         gl_FUNC_FNMATCH_POSIX.
2095         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
2096         invocations from here...
2097         * modules/fnmatch (configure.ac): ... to here.
2098         * modules/fnmatch-gnu (configure.ac): ... and here.
2099
2100 2011-05-07  Bruno Haible  <bruno@clisp.org>
2101
2102         flock: Move AC_LIBOBJ invocations to module description.
2103         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
2104         invocations from here...
2105         * modules/flock (configure.ac): ... to here.
2106
2107 2011-05-07  Bruno Haible  <bruno@clisp.org>
2108
2109         fileblocks: Move AC_LIBOBJ invocations to module description.
2110         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
2111         gl_PREREQ_FILEBLOCKS invocations from here...
2112         * modules/fileblocks (configure.ac): ... to here.
2113
2114 2011-05-06  Bruno Haible  <bruno@clisp.org>
2115
2116         fflush: Move AC_LIBOBJ invocations to module description.
2117         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
2118         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
2119         invocations from here...
2120         * modules/fflush (configure.ac): ... to here.
2121
2122 2011-05-06  Bruno Haible  <bruno@clisp.org>
2123
2124         fdopendir: Move AC_LIBOBJ invocations to module description.
2125         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
2126         here...
2127         * modules/fdopendir (configure.ac): ... to here.
2128         (Depends-on): Improve conditions.
2129
2130 2011-05-06  Bruno Haible  <bruno@clisp.org>
2131
2132         _Exit: Move AC_LIBOBJ invocations to module description.
2133         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
2134         invocations from here...
2135         * modules/_Exit (configure.ac): ... to here.
2136
2137 2011-05-21  Bruno Haible  <bruno@clisp.org>
2138
2139         euidaccess: Respect rules for use of AC_LIBOBJ.
2140         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
2142         from here...
2143         * modules/euidaccess (configure.ac): ... to here.
2144
2145 2011-05-06  Bruno Haible  <bruno@clisp.org>
2146
2147         error: Move AC_LIBOBJ invocations to module description.
2148         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
2149         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
2150         invocations from here...
2151         * modules/error (configure.ac): ... to here.
2152
2153 2011-05-06  Bruno Haible  <bruno@clisp.org>
2154
2155         duplocale: Move AC_LIBOBJ invocations to module description.
2156         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
2157         gl_PREREQ_DUPLOCALE invocations from here...
2158         * modules/duplocale (configure.ac): ... to here.
2159
2160 2011-05-05  Bruno Haible  <bruno@clisp.org>
2161
2162         dirfd: Move AC_LIBOBJ invocations to module description.
2163         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
2164         gl_FUNC_DIRFD.
2165         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
2166         here...
2167         * modules/dirfd (configure.ac): ... to here.
2168         (Depends-on): Fix condition.
2169
2170 2011-05-05  Bruno Haible  <bruno@clisp.org>
2171
2172         chown: Respect rules for use of AC_LIBOBJ.
2173         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
2174         * modules/chown (configure.ac): ... to here.
2175
2176 2011-05-05  Bruno Haible  <bruno@clisp.org>
2177
2178         chdir-long: Move AC_LIBOBJ invocations to module description.
2179         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
2180         gl_PREREQ_CHDIR_LONG invocations from here...
2181         * modules/chdir-long (configure.ac): ... to here.
2182
2183 2011-05-05  Bruno Haible  <bruno@clisp.org>
2184
2185         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
2186         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
2187         from here...
2188         * modules/canonicalize-lgpl (configure.ac): ... to here.
2189
2190 2011-05-05  Bruno Haible  <bruno@clisp.org>
2191
2192         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
2193         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
2194         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
2195         REPLACE_CALLOC.
2196         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
2197         * modules/calloc-gnu (configure.ac): Likewise.
2198
2199 2011-05-05  Bruno Haible  <bruno@clisp.org>
2200
2201         btowc: Move AC_LIBOBJ invocations to module description.
2202         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
2203         invocations from here...
2204         * modules/btowc (configure.ac): ... to here.
2205
2206 2011-05-21  Bruno Haible  <bruno@clisp.org>
2207
2208         atexit: Move AC_LIBOBJ invocations to module description.
2209         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
2210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
2211         here...
2212         * modules/atexit (configure.ac): ... to here.
2213
2214 2011-05-05  Bruno Haible  <bruno@clisp.org>
2215
2216         atoll: Move AC_LIBOBJ invocations to module description.
2217         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
2218         invocations from here...
2219         * modules/atoll (configure.ac): ... to here.
2220
2221 2011-05-05  Bruno Haible  <bruno@clisp.org>
2222
2223         argz: Move AC_LIBOBJ invocations to module description.
2224         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
2225         * modules/argz (configure.ac): ... to here.
2226
2227 2011-05-05  Bruno Haible  <bruno@clisp.org>
2228
2229         alphasort: Move AC_LIBOBJ invocations to module description.
2230         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
2231         gl_PREREQ_ALPHASORT invocations from here...
2232         * modules/alphasort (configure.ac): ... to here.
2233
2234 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2235
2236         verify: new macro verify_expr; verify_true deprecated
2237         * NEWS: Mention this.
2238         * doc/verify.texi (Compile-time Assertions): Document this.
2239         * lib/verify.h (verify_true): Deprecate.
2240         (verify_expr): New macro.
2241         * tests/test-verify.c (function): Test verify_expr.
2242
2243 2011-06-14  Jim Meyering  <meyering@redhat.com>
2244
2245         init.sh: give more portable redirection-related advice in a comment
2246         * tests/init.sh (stderr_fileno_): Update the advice in comments.
2247         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
2248         for lots of discussion.  Stefano Lattarini suggested the solution
2249         of putting "9>&2" after the command.  Reported by Bruno Haible.
2250
2251 2011-06-13  Bruno Haible  <bruno@clisp.org>
2252
2253         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
2254         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
2255         'none'.
2256
2257 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2258
2259         ftoastr: use strtof only if HAVE_STRTOF
2260         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
2261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
2262         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
2263         * modules/ftoastr (configure.ac): Check for strtof.
2264
2265 2011-06-13  Bruno Haible  <bruno@clisp.org>
2266
2267         gnulib-tool: Addendum to 2011-06-08 commit.
2268         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
2269         and --witness-c-macro have been given, augment AM_CPPFLAGS.
2270
2271 2011-06-13  Bruno Haible  <bruno@clisp.org>
2272
2273         fseeko: Provide a non-inline replacement of fseek().
2274         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
2275         * modules/fseeko (Depends-on): Add fseek.
2276         * modules/fseek (License): Change to LGPLv2+.
2277
2278 2011-06-13  Bruno Haible  <bruno@clisp.org>
2279
2280         ftello: Provide a non-inline replacement of ftell().
2281         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
2282         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
2283         not have ftello() (such as on mingw).
2284         * modules/ftello (Depends-on): Add ftell.
2285         * modules/ftell (License): Change to LGPLv2+.
2286
2287 2011-05-07  Bruno Haible  <bruno@clisp.org>
2288
2289         ftell: Move AC_LIBOBJ invocations to module description.
2290         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
2291         * modules/ftell (configure.ac): ... to here.
2292
2293 2011-05-07  Bruno Haible  <bruno@clisp.org>
2294
2295         ftello: Respect rules for use of AC_LIBOBJ.
2296         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
2297         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
2298         here...
2299         * modules/ftello (configure.ac): ... to here.
2300
2301 2011-05-07  Bruno Haible  <bruno@clisp.org>
2302
2303         fseeko: Simplify.
2304         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
2305         (gl_FUNC_FSEEKO): Inline it here.
2306
2307 2011-05-07  Bruno Haible  <bruno@clisp.org>
2308
2309         fseek: Move AC_LIBOBJ invocations to module description.
2310         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
2311         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2312         * modules/fseek (configure.ac): ... to here.
2313
2314 2011-05-07  Bruno Haible  <bruno@clisp.org>
2315
2316         fseek: Respect rules for use of AC_LIBOBJ.
2317         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
2318         here...
2319         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
2320
2321 2011-05-07  Bruno Haible  <bruno@clisp.org>
2322
2323         fseeko: Respect rules for use of AC_LIBOBJ.
2324         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
2325         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
2326         here...
2327         * modules/fseeko (configure.ac): ... to here.
2328
2329 2011-06-13  Bruno Haible  <bruno@clisp.org>
2330
2331         gnulib-tool: Allow comments in the 'Depends-on' section.
2332         * doc/gnulib.texi (Module description): Mention comment syntax in the
2333         Depends-on section.
2334         * gnulib-tool (func_get_dependencies): Filter out comment lines.
2335
2336 2011-06-13  Bruno Haible  <bruno@clisp.org>
2337
2338         file-set.h: guard __attibute__ use, now that it's not always defined
2339         * lib/file-set.h (record_file): Use __attribute__ only with compiler
2340         versions that support it.  This fixes a coreutils build failure with
2341         the vendor cc on HP-UX 11.31.
2342
2343 2011-06-12  Bruno Haible  <bruno@clisp.org>
2344
2345         acl: Add support for HP-UX >= 11.11 JFS ACLs.
2346         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
2347         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
2348         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
2349         (acl, aclsort): New declarations.
2350         (aclv_nontrivial): New declaration.
2351         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
2352         (file_has_acl): Read also the second kind of HP-UX ACLs.
2353         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
2354         kind of HP-UX ACLs if the first kind fails.
2355         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
2356         second kind of HP-UX ACLs.
2357         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
2358         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
2359         agree.
2360         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2361         hpuxjfs.
2362         Handle hpuxjfs.
2363         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2364         hpuxjfs.
2365         Handle hpuxjfs.
2366         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2367         (func_test_same_acls): Use both lsacl and getacl.
2368         Handle hpuxjfs.
2369         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2370         (func_test_same_acls): Use both lsacl and getacl.
2371         Handle hpuxjfs.
2372
2373 2011-06-12  Bruno Haible  <bruno@clisp.org>
2374
2375         acl: Complete the 2010-08-10 fix.
2376         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
2377         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
2378         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
2379         explicitly.
2380         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
2381         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
2382
2383 2011-06-12  Bruno Haible  <bruno@clisp.org>
2384
2385         spawn-pipe tests: Comments.
2386         * tests/test-spawn-pipe-child.c (main): Update comment.
2387         Reported by James Youngman <jay@gnu.org>.
2388
2389 2011-06-11  James Youngman  <jay@gnu.org>
2390
2391         New module 'stat-size'.
2392         * modules/stat-size: New module.  Provides macros for accessing
2393         file size information in instances of struct stat.  Depends on the
2394         fileblocks module because it calls st_blocks.
2395         * lib/stat-size.h: New file, adapted from coreutils' system.h.
2396         * doc/gnulib.texi: Include stat-size.texi.
2397         * doc/stat-size.texi: Documentation for this module.
2398         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
2399         * m4/fileblocks.m4: Mention that stat-size depends on the call to
2400         AC_STRUCT_ST_BLOCKS.
2401
2402 2011-06-09  Bruno Haible  <bruno@clisp.org>
2403
2404         thread: Support pthreads-win32.
2405         * lib/glthread/thread.h (gl_thread_self): Define differently on
2406         pthreads-win32.
2407         (gl_null_thread): New declaration.
2408         (gl_thread_self_pointer): New macro.
2409         * lib/glthread/thread.c (gl_null_thread): New constant.
2410         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2411         gl_thread_self.
2412         * tests/test-tls.c: Likewise.
2413         Suggested by Paul Eggert. Reported by Eric Blake.
2414
2415 2011-06-09  Bruno Haible  <bruno@clisp.org>
2416
2417         thread: Fix confusion between NULL and 0.
2418         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2419         Reported by Paul Eggert.
2420
2421 2011-06-09  Bruno Haible  <bruno@clisp.org>
2422
2423         spawn-pipe tests: Avoid test failure on HP-UX 11.
2424         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2425         is closed.
2426
2427 2011-06-09  Bruno Haible  <bruno@clisp.org>
2428
2429         acl tests: Fix compilation error on HP-UX 11.
2430         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2431
2432 2011-06-09  Bruno Haible  <bruno@clisp.org>
2433
2434         rmdir: Avoid test failure on HP-UX 10.20.
2435         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2436         EEXIST.
2437
2438 2011-06-08  Eric Blake  <eblake@redhat.com>
2439
2440         perror: fix test on mingw
2441         * modules/perror-tests (Depends-on): Add dup2.
2442
2443         strerror_r-posix: fix on MacOS
2444         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2445         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2446         logic bug.
2447         * lib/strerror_r.c (strerror_r): Fix the bug.
2448         * lib/strerror.c (strerror): Likewise.
2449         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2450         problem.
2451         * doc/posix-functions/strerror.texi (strerror): Likewise.
2452         * doc/posix-functions/perror.texi (perror): Likewise.
2453         * tests/test-strerror.c (main): Enhance test.
2454         * tests/test-strerror_r.c (main): Likewise.
2455
2456 2011-06-08  Bruno Haible  <bruno@clisp.org>
2457
2458         gnulib-tool: Better isolation between different gnulib-tool invocations.
2459         * gnulib-tool: New option --witness-c-macro.
2460         (witness_c_macro): New variable.
2461         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2462         AM_CPPFLAGS define it as a C macro.
2463         (func_emit_tests_Makefile_am): Likewise.
2464         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2465         read it from there.
2466         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2467         m4_define, not AC_DEFUN.
2468         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2469         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2470         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2471         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2472         s|...|...|, to substitute the values of the GNULIB_* module indicator
2473         variables.
2474         * modules/dirent (Makefile.am): Likewise.
2475         * modules/fcntl-h (Makefile.am): Likewise.
2476         * modules/iconv-h (Makefile.am): Likewise.
2477         * modules/langinfo (Makefile.am): Likewise.
2478         * modules/locale (Makefile.am): Likewise.
2479         * modules/math (Makefile.am): Likewise.
2480         * modules/netdb (Makefile.am): Likewise.
2481         * modules/poll-h (Makefile.am): Likewise.
2482         * modules/pty (Makefile.am): Likewise.
2483         * modules/search (Makefile.am): Likewise.
2484         * modules/signal (Makefile.am): Likewise.
2485         * modules/spawn (Makefile.am): Likewise.
2486         * modules/stdio (Makefile.am): Likewise.
2487         * modules/stdlib (Makefile.am): Likewise.
2488         * modules/string (Makefile.am): Likewise.
2489         * modules/sys_ioctl (Makefile.am): Likewise.
2490         * modules/sys_select (Makefile.am): Likewise.
2491         * modules/sys_socket (Makefile.am): Likewise.
2492         * modules/sys_stat (Makefile.am): Likewise.
2493         * modules/sys_times (Makefile.am): Likewise.
2494         * modules/sys_utsname (Makefile.am): Likewise.
2495         * modules/sys_wait (Makefile.am): Likewise.
2496         * modules/termios (Makefile.am): Likewise.
2497         * modules/time (Makefile.am): Likewise.
2498         * modules/unistd (Makefile.am): Likewise.
2499         * modules/wchar (Makefile.am): Likewise.
2500
2501 2011-06-08  Eric Blake  <eblake@redhat.com>
2502
2503         strerror: simplify replacement
2504         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2505         * modules/strerror (configure.ac): No prereqs needed here...
2506         * modules/strerror-override (configure.ac): ...but this needs it.
2507         (Files): Add file for needed prereq macro.
2508
2509 2011-06-08  Bruno Haible  <bruno@clisp.org>
2510
2511         strerror_r-posix: Tweaks.
2512         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2513         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2514         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2515         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2516         (gl_FUNC_STRERROR_R): ... to here.
2517         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2518
2519 2011-06-07  Eric Blake  <eblake@redhat.com>
2520
2521         perror: document fixed bugs
2522         * doc/posix-functions/perror.texi (perror): Document recent
2523         patches.
2524
2525 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2526
2527         stat-time: get_stat_birthtime failure is better-defined
2528         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2529         return a timestamp whose tv_sec and tv_nsec values are both -1.
2530         Previously, the spec said only that the tv_nsec value was negative.
2531         This upward-compatible change simplifies GNU tar a bit.
2532
2533 2011-06-07  Eric Blake  <eblake@redhat.com>
2534
2535         strerror_r-posix: work around cygwin 1.7.9
2536         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2537         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2538         bug without replacing strerror_r.
2539         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2540         strerror_r is buggy, but without requiring strerror_r compilation.
2541         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2542
2543         test-perror: relax test to ignore cygwin bug
2544         * tests/test-perror2.c (main): Relax test on requiring detection
2545         of stream errors, and use unbuffered stream.
2546         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2547         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2548         * doc/posix-functions/fputc.texi (fputc): Likewise.
2549         * doc/posix-functions/fputs.texi (fputs): Likewise.
2550         * doc/posix-functions/fputws.texi (fputws): Likewise.
2551         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2552         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2553         * doc/posix-functions/getopt.texi (getopt): Likewise.
2554         * doc/posix-functions/perror.texi (perror): Likewise.
2555         * doc/posix-functions/printf.texi (printf): Likewise.
2556         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2557         * doc/posix-functions/psignal.texi (psignal): Likewise.
2558         * doc/posix-functions/putc.texi (putc): Likewise.
2559         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2560         Likewise.
2561         * doc/posix-functions/putchar.texi (putchar): Likewise.
2562         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2563         Likewise.
2564         * doc/posix-functions/puts.texi (puts): Likewise.
2565         * doc/posix-functions/putwc.texi (putwc): Likewise.
2566         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2567         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2568         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2569         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2570         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2571         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2572         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2573         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2574
2575 2011-05-22  Bruno Haible  <bruno@clisp.org>
2576
2577         strerror: Move AC_LIBOBJ invocations to module description.
2578         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2579         gl_PREREQ_STRERROR invocations from here...
2580         * modules/strerror (configure.ac): ... to here.
2581
2582 2011-05-21  Bruno Haible  <bruno@clisp.org>
2583
2584         perror: Use common idiom.
2585         * modules/perror (configure.ac): Reorder statements.
2586
2587 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2588
2589         tests: fix usage message in 'mktempd_'
2590         * tests/init.sh (mktempd_): In the usage message, use literal
2591         'mktempd_', not '$ME' (which is even undefined), as the name of
2592         the subroutine.
2593
2594 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2595
2596         tests init: new function 'fatal_', for hard errors
2597         Before this patch, the only way offered by tests/init.sh to
2598         properly signal a hard error was the `framework_failure_'
2599         function.  But the error message issued by that function,
2600         as its name would suggest, refers to a set-up failure in the
2601         testsuite, while hard errors can obviously also be due to
2602         other reasons.  The best way to fix this inconsistency is to
2603         introduce a new function with a more general error message.
2604         * tests/init.sh (fatal_): New function.
2605
2606 2011-06-06  Eric Blake  <eblake@redhat.com>
2607
2608         canonicalize-lgpl: use common idiom
2609         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2610         over newer POSIX -Rf.
2611         Reported by Bruno Haible.
2612
2613         canonicalize-lgpl: work around AIX realpath bug
2614         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2615         * doc/posix-functions/realpath.texi (realpath): Document it.
2616         Reported by Bruno Haible.
2617
2618         strerror: work around FreeBSD bug
2619         * lib/strerror.c (strerror): Special case 0.
2620         Reported by Bruno Haible.
2621
2622         strerror-override: avoid bloating errno module
2623         * modules/errno (Files, configure.ac): Move replacement strings...
2624         * modules/strerror-override: ...to new module.
2625         * modules/strerror (Depends-on): Add strerror-override.
2626         * modules/strerror_r-posix (Depends-on): Likewise.
2627         * MODULES.html.sh: Document new module.
2628         Reported by Bruno Haible.
2629
2630 2011-06-06  Bruno Haible  <bruno@clisp.org>
2631
2632         spawn-pipe tests: Rename program.
2633         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2634         * tests/test-spawn-pipe-child.c: Update comment.
2635         * tests/test-spawn-pipe.sh: Update.
2636         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2637
2638         spawn-pipe tests: Link the child program only against libc.
2639         * tests/test-spawn-pipe-child.c: New file, extracted from
2640         tests/test-spawn-pipe.c.
2641         (main): Expect only one argument.
2642         (is_open): New function, copied from tests/test-pipe.c.
2643         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2644         (child_main): Remove function.
2645         (test_pipe): Pass only one argument to the child program.
2646         (main): Remove child process code. Expect the child program's name as
2647         first argument.
2648         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2649         argument.
2650         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2651         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2652         test-spawn-pipe-child against no libraries.
2653
2654 2011-06-06  Bruno Haible  <bruno@clisp.org>
2655
2656         careadlinkat: Avoid mismatch between ssize_t and int.
2657         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2658         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2659
2660 2011-06-06  Jim Meyering  <meyering@redhat.com>
2661
2662         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2663         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2664         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2665
2666 2011-06-05  Bruno Haible  <bruno@clisp.org>
2667
2668         ansi-c++-opt: Interoperability with libtool.
2669         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2670         set the variable to "no", not to ":".
2671         * NEWS: Mention the change.
2672
2673 2011-06-05  Bruno Haible  <bruno@clisp.org>
2674
2675         acl: Fix test failure on AIX 7.
2676         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2677         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2678
2679 2011-06-05  Bruno Haible  <bruno@clisp.org>
2680
2681         pipe-filter-ii: Fix test failure on AIX and IRIX.
2682         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2683         with EAGAIN, retry with a smaller buffer size.
2684
2685 2011-06-05  Bruno Haible  <bruno@clisp.org>
2686
2687         localename: Fix link dependencies.
2688         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2689         * modules/localename-tests (Makefile.am): Link test-localename with
2690         $(LIBTHREAD).
2691
2692 2011-06-05  Bruno Haible  <bruno@clisp.org>
2693
2694         error: Avoid gcc warning.
2695         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2696
2697 2011-06-05  Bruno Haible  <bruno@clisp.org>
2698
2699         unsetenv: Avoid gcc warning.
2700         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2701
2702 2011-06-05  Bruno Haible  <bruno@clisp.org>
2703
2704         setenv: Avoid gcc warning.
2705         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2706
2707 2011-06-05  Bruno Haible  <bruno@clisp.org>
2708
2709         sys_select: Ensure memset is declared also on AIX 7.
2710         * lib/sys_select.in.h: Include <string.h> also on AIX.
2711         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2712         self-contained also on AIX 7.1.
2713
2714 2011-06-04  Jim Meyering  <meyering@redhat.com>
2715
2716         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2717         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2718         function name, "error".
2719         (_gl_translatable_diag_func_re): New configurable variable.
2720
2721 2011-06-04  Bruno Haible  <bruno@clisp.org>
2722
2723         getopt: Avoid gcc warning.
2724         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2725
2726 2011-06-04  Bruno Haible  <bruno@clisp.org>
2727
2728         strerror_r: Fix comments.
2729         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2730         commit.
2731
2732 2011-06-04  Bruno Haible  <bruno@clisp.org>
2733
2734         perror: Fix compilation error.
2735         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2736         Undefine fprintf, not sprintf.
2737         * modules/perror (Depends-on): Remove intprops, verify.
2738
2739 2011-06-04  Bruno Haible  <bruno@clisp.org>
2740
2741         setlocale: Enable replacement on Cygwin 1.5.
2742         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2743         Cygwin 1.5.x.
2744         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2745         LC_CTYPE category also exists on Cygwin 1.5.x.
2746
2747 2011-06-04  Bruno Haible  <bruno@clisp.org>
2748
2749         strerror-override: Don't disable symbol renamings.
2750         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2751         * lib/strerror-override.c: Include config.h.
2752         (strerror_override): Don't undefine.
2753
2754 2011-06-03  Bruno Haible  <bruno@clisp.org>
2755
2756         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2757         * lib/localename.h: Update copyright header.
2758         * lib/localename.c: Likewise.
2759         * lib/relocatable.h: Likewise.
2760         * lib/relocatable.c: Likewise.
2761
2762 2011-06-02  Bruno Haible  <bruno@clisp.org>
2763
2764         doc: Fix a module name.
2765         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2766
2767 2011-06-02  Bruno Haible  <bruno@clisp.org>
2768
2769         pipe2: Remove dependency on 'nonblocking' module.
2770         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2771         O_NONBLOCK is defined by gnulib.
2772         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2773         is zero.
2774         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2775         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2776         defined by gnulib.
2777         (get_nonblocking_flag): New function.
2778         (main): Test O_NONBLOCK flag only if it is nonzero.
2779         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2780
2781 2011-06-03  Jim Meyering  <meyering@redhat.com>
2782
2783         maint: three new prohibit-header-without-use rules
2784         Prohibit use of cloexec.h, posixver.h, same.h without use.
2785         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2786         (sc_prohibit_posixver_without_use): Likewise.
2787         (sc_prohibit_same_without_use): Likewise.
2788
2789 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2790
2791         allocator: 'die' routine is now given requested size
2792         * lib/allocator.h (struct allocator.die): New size arg.
2793         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2794         If the actual problem is an ssize_t limitation, not a size_t or
2795         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2796
2797 2011-06-01  Eric Blake  <eblake@redhat.com>
2798
2799         strerror: drop strerror_r dependency
2800         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2801         * lib/strerror-override.c (strerror_override): ...to new file.
2802         * lib/strerror-override.h: Add prototype.
2803         * lib/strerror-impl.h: Delete.
2804         * lib/strerror.c (strerror): New implementation.
2805         * modules/errno (Files): Add new files.
2806         (configure.ac): Compile new file as appropriate.
2807         * modules/strerror (Files): Drop unused file.
2808         (Depends-on): Drop strerror_r-posix.
2809         * MODULES.html.sh: Document strerror_r-posix.
2810         Requested by Sam Steingold.
2811
2812         perror: call strerror_r directly
2813         * modules/perror (Files): Drop strerror-impl.h.
2814         * lib/perror.c (perror): Use our own stack buffer, rather than
2815         calling a wrapper that uses static storage.
2816         * doc/posix-functions/perror.texi (perror): Document a limitation
2817         of our replacement.
2818
2819         strerror_r: fix includes for FreeBSD
2820         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2821         since we use abort on some platforms.
2822         Reported by Matthias Bolte.
2823
2824 2011-05-31  Bruno Haible  <bruno@clisp.org>
2825
2826         Fix link errors in tests: openat-die uses gettext-h.
2827         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2828         against $(LIBINTL).
2829         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2830         against $(LIBINTL).
2831         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2832         $(LIBINTL).
2833         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2834         against $(LIBINTL).
2835         * modules/linkat-tests (Makefile.am): Link test-linkat against
2836         $(LIBINTL).
2837         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2838         $(LIBINTL).
2839         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2840         against $(LIBINTL).
2841         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2842         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2843         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2844         $(LIBINTL).
2845         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2846         $(LIBINTL).
2847         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2848         $(LIBINTL).
2849         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2850
2851 2011-05-31  Bruno Haible  <bruno@clisp.org>
2852
2853         Fix link errors in tests: wait-process uses gettext-h.
2854         * modules/nonblocking-pipe-tests (Makefile.am): Set
2855         test_nonblocking_pipe_main_LDADD.
2856         * modules/nonblocking-socket-tests (Makefile.am): Link
2857         test-nonblocking-socket-main against $(LIBINTL).
2858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2859
2860 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2861
2862         assert-h: work around 'verify' incompatibility
2863         * lib/verify.h: Use @...@ directives, not ifdef.
2864         * modules/assert-h (assert.h): Implement the directives.
2865         (assert.h): Substitute the symbol-prefix more consistently.
2866
2867 2011-05-29  Jim Meyering  <meyering@redhat.com>
2868
2869         trim: remove three superfluous assignments
2870         * lib/trim.c (trim2): Remove three superfluous assignments
2871         and correct brace positioning.
2872
2873 2011-05-29  Bruno Haible  <bruno@clisp.org>
2874
2875         wctype-h: Avoid namespace pollution on Solaris 2.6.
2876         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2877         identifiers.
2878         * doc/posix-headers/wctype.texi: Mention the problem.
2879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2880
2881 2011-05-28  Jim Meyering  <meyering@redhat.com>
2882
2883         parse-datetime.y: accommodate -Wstrict-overflow
2884         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2885         placate -Wstrict-overflow.
2886
2887         trim: avoid a warning from -O2 -Wstrict-overflow
2888         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2889
2890 2011-05-29  Bruno Haible  <bruno@clisp.org>
2891
2892         gnulib-tool: Fix bug in yesterday's commit.
2893         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2894         twice.
2895
2896 2011-05-29  Bruno Haible  <bruno@clisp.org>
2897
2898         Allow multiple gnulib generated include files to be combined.
2899         * gnulib-tool (func_compute_include_guard_prefix): New function.
2900         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2901         ${gl_include_guard_prefix} references.
2902         (func_import, func_create_testdir): Invoke
2903         func_compute_include_guard_prefix.
2904         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2905         * lib/ctype.in.h: Likewise.
2906         * lib/dirent.in.h: Likewise.
2907         * lib/errno.in.h: Likewise.
2908         * lib/fcntl.in.h: Likewise.
2909         * lib/float.in.h: Likewise.
2910         * lib/getopt.in.h: Likewise.
2911         * lib/iconv.in.h: Likewise.
2912         * lib/langinfo.in.h: Likewise.
2913         * lib/locale.in.h: Likewise.
2914         * lib/math.in.h: Likewise.
2915         * lib/netdb.in.h: Likewise.
2916         * lib/netinet_in.in.h: Likewise.
2917         * lib/poll.in.h: Likewise.
2918         * lib/pthread.in.h: Likewise.
2919         * lib/pty.in.h: Likewise.
2920         * lib/sched.in.h: Likewise.
2921         * lib/se-selinux.in.h: Likewise.
2922         * lib/search.in.h: Likewise.
2923         * lib/signal.in.h: Likewise.
2924         * lib/spawn.in.h: Likewise.
2925         * lib/stdarg.in.h: Likewise.
2926         * lib/stddef.in.h: Likewise.
2927         * lib/stdint.in.h: Likewise.
2928         * lib/stdio.in.h: Likewise.
2929         * lib/stdlib.in.h: Likewise.
2930         * lib/string.in.h: Likewise.
2931         * lib/strings.in.h: Likewise.
2932         * lib/sys_file.in.h: Likewise.
2933         * lib/sys_ioctl.in.h: Likewise.
2934         * lib/sys_select.in.h: Likewise.
2935         * lib/sys_socket.in.h: Likewise.
2936         * lib/sys_stat.in.h: Likewise.
2937         * lib/sys_time.in.h: Likewise.
2938         * lib/sys_times.in.h: Likewise.
2939         * lib/sys_uio.in.h: Likewise.
2940         * lib/sys_utsname.in.h: Likewise.
2941         * lib/sys_wait.in.h: Likewise.
2942         * lib/sysexits.in.h: Likewise.
2943         * lib/termios.in.h: Likewise.
2944         * lib/time.in.h: Likewise.
2945         * lib/unistd.in.h: Likewise.
2946         * lib/wchar.in.h: Likewise.
2947         * lib/wctype.in.h: Likewise.
2948         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2949         * modules/ctype (Makefile.am): Likewise.
2950         * modules/dirent (Makefile.am): Likewise.
2951         * modules/errno (Makefile.am): Likewise.
2952         * modules/fcntl-h (Makefile.am): Likewise.
2953         * modules/float (Makefile.am): Likewise.
2954         * modules/getopt-posix (Makefile.am): Likewise.
2955         * modules/iconv-h (Makefile.am): Likewise.
2956         * modules/langinfo (Makefile.am): Likewise.
2957         * modules/locale (Makefile.am): Likewise.
2958         * modules/math (Makefile.am): Likewise.
2959         * modules/netdb (Makefile.am): Likewise.
2960         * modules/netinet_in (Makefile.am): Likewise.
2961         * modules/poll-h (Makefile.am): Likewise.
2962         * modules/pthread (Makefile.am): Likewise.
2963         * modules/pty (Makefile.am): Likewise.
2964         * modules/sched (Makefile.am): Likewise.
2965         * modules/search (Makefile.am): Likewise.
2966         * modules/selinux-h (Makefile.am): Likewise.
2967         * modules/signal (Makefile.am): Likewise.
2968         * modules/spawn (Makefile.am): Likewise.
2969         * modules/stdarg (Makefile.am): Likewise.
2970         * modules/stddef (Makefile.am): Likewise.
2971         * modules/stdint (Makefile.am): Likewise.
2972         * modules/stdio (Makefile.am): Likewise.
2973         * modules/stdlib (Makefile.am): Likewise.
2974         * modules/string (Makefile.am): Likewise.
2975         * modules/strings (Makefile.am): Likewise.
2976         * modules/sys_file (Makefile.am): Likewise.
2977         * modules/sys_ioctl (Makefile.am): Likewise.
2978         * modules/sys_select (Makefile.am): Likewise.
2979         * modules/sys_socket (Makefile.am): Likewise.
2980         * modules/sys_stat (Makefile.am): Likewise.
2981         * modules/sys_time (Makefile.am): Likewise.
2982         * modules/sys_times (Makefile.am): Likewise.
2983         * modules/sys_uio (Makefile.am): Likewise.
2984         * modules/sys_utsname (Makefile.am): Likewise.
2985         * modules/sys_wait (Makefile.am): Likewise.
2986         * modules/sysexits (Makefile.am): Likewise.
2987         * modules/termios (Makefile.am): Likewise.
2988         * modules/time (Makefile.am): Likewise.
2989         * modules/unistd (Makefile.am): Likewise.
2990         * modules/wchar (Makefile.am): Likewise.
2991         * modules/wctype-h (Makefile.am): Likewise.
2992         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2993
2994 2011-05-29  Bruno Haible  <bruno@clisp.org>
2995
2996         assert-h: Allow multiple gnulib generated replacements to coexist.
2997         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2998
2999 2011-05-29  Bruno Haible  <bruno@clisp.org>
3000
3001         argp: Allow coexistence with strerror_r-posix module.
3002         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
3003         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
3004         by gnulib's <string.h> replacement), assume it has the POSIX signature,
3005         not the glibc signature.
3006
3007 2011-05-28  Bruno Haible  <bruno@clisp.org>
3008
3009         gnulib-tool: Alternative structure of testdirs, similar to --import.
3010         * gnulib-tool: New option --single-configure.
3011         (func_usage): Document it.
3012         (single_configure): New variable.
3013         (func_modules_transitive_closure_separately,
3014         func_modules_transitive_closure_separately,
3015         func_determine_use_libtests, func_modules_add_dummy_separately,
3016         func_modules_to_filelist_separately): New functions, extracted from
3017         func_import.
3018         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
3019         (func_import): Use the new functions.
3020         (func_create_testdir): Set final_modules. Handle $single_configure =
3021         true case.
3022
3023 2011-05-28  Bruno Haible  <bruno@clisp.org>
3024
3025         getloadavg: Remove an unreliable safety check.
3026         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
3027         getloadavg.c is in place.
3028         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
3029         Reported by Sam Steingold <sds@gnu.org>.
3030
3031 2011-05-28  Bruno Haible  <bruno@clisp.org>
3032
3033         doc: Cleanup yet another file produced by texinfo.tex.
3034         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
3035
3036 2011-05-28  Bruno Haible  <bruno@clisp.org>
3037
3038         Finish the conditional dependencies mechanism.
3039         * gnulib-tool: New option --no-conditional-dependencies.
3040         (func_usage): Document it. Don't mark --conditional-dependencies as
3041         experimental.
3042         (cond_dependencies): The possible values can now be true, false, empty.
3043         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
3044         (func_import): Store setting in gnulib-cache.m4 and read it from there.
3045         * doc/gnulib-tool.texi (Conditional dependencies): New section.
3046
3047 2011-05-28  Bruno Haible  <bruno@clisp.org>
3048
3049         doc: Use a recent texinfo.tex.
3050         * doc/Makefile (tex_opts): New variable.
3051         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
3052
3053 2011-05-28  Jim Meyering  <meyering@redhat.com>
3054
3055         intprops.h: adjust comment to match code change
3056         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
3057         only once, it *may* have side effects.  Also fix an unrelated typo.
3058         (_GL_INT_SIGNED): Likewise.
3059
3060 2011-05-26  Simon Josefsson  <simon@josefsson.org>
3061
3062         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
3063
3064 2011-05-26  Bruno Haible  <bruno@clisp.org>
3065
3066         mbsrchr: Avoid collision with system function on Interix.
3067         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
3068         Reported by Markus Duft <mduft@gentoo.org>.
3069
3070 2011-05-15  James Youngman  <jay@gnu.org>
3071
3072         getopt: for ambiguous options, enumerate the possibilities.
3073         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
3074         the ambiguous options when an ambiguous prefix is given. This was
3075         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
3076         glibc change was
3077         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
3078
3079 2011-05-25  Eric Blake  <eblake@redhat.com>
3080
3081         getcwd: work around mingw bug
3082         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
3083         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3084         Reported by Matthias Bolte.
3085
3086 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3087
3088         test-intprops: disable -Wtype-limits diagnostics
3089         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
3090         diagnostics.  Otherwise, the integer overflow macros generate many
3091         diagnostics.  Reported by Jim Meyering in
3092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3093
3094         intprops: shorten, to pacify gcc -Woverlength-strings
3095         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
3096         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
3097         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
3098         likely to run afoul of C compiler limits for string constant lengths.
3099         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3100
3101 2011-05-24  Eric Blake  <eblake@redhat.com>
3102
3103         docs: document recently fixed glibc printf bug
3104         * doc/posix-functions/fprintf.texi (fprintf): Document it.
3105         * doc/posix-functions/printf.texi (printf): Likewise.
3106         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3107         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3108
3109         closein-tests: convert to init.sh
3110         * modules/closein-tests (Files): Add init.sh
3111         * tests/test-closein.sh Use it.
3112
3113         yesno-tests: convert to init.sh
3114         * modules/yesno-tests (Files): Add init.sh.
3115         * tests/test-yesno.sh: Use it.
3116
3117         atexit-tests: ensure reliable exit status
3118         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
3119         Reported by Bruno Haible.
3120
3121 2011-05-24  Bruno Haible  <bruno@clisp.org>
3122
3123         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
3124         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
3125         gl_PREREQ_STRERROR_R invocations from here...
3126         * modules/strerror_r-posix (configure.ac): ... to here.
3127
3128 2011-05-24  Eric Blake  <eblake@redhat.com>
3129
3130         strerror_r: fix missing header
3131         * lib/strerror_r.c: Avoid compiler warning about snprintf.
3132
3133         strerror_r: fix AIX test failures
3134         * lib/strerror_r.c (strerror_r): Convert silent truncation to
3135         ERANGE failure.
3136
3137         strerror_r: fix Solaris test failures
3138         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
3139         failures.
3140         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3141
3142         strerror_r: enforce POSIX recommendations
3143         * lib/strerror_r.c (safe_copy): New helper method.
3144         (strerror_r): Guarantee a non-empty string.
3145         * tests/test-strerror_r.c (main): Enhance tests to incorporate
3146         recent POSIX rulings and to match our strerror guarantees.
3147         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3148
3149 2011-05-24  Jim Meyering  <meyering@redhat.com>
3150
3151         test-perror2.c: avoid warning about unused variable
3152         * tests/test-perror2.c (main): Remove declaration of unused "fp".
3153
3154 2011-05-24  Eric Blake  <eblake@redhat.com>
3155
3156         perror: avoid spurious test failure on HP-UX
3157         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
3158
3159         tests: fix logic bug in init.sh
3160         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
3161         shell.
3162
3163 2011-05-24  Jim Meyering  <meyering@redhat.com>
3164
3165         utimensat: do not reference an out-of-scope buffer
3166         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
3167         declared in an inner scope, yet "times" would be dereferenced outside
3168         the scope in which "ts" was valid.
3169         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
3170         of ts[2] "out/up", so that the use of aliased "times" (via
3171         "times = ts;") does not end up referencing an out-of-scope "ts"
3172
3173         opendir-safer.c: don't clobber errno; don't close negative FD
3174         * lib/opendir-safer.c (opendir_safer):
3175         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
3176         file descriptor, and more importantly, don't clobber the
3177         offending errno value with EINVAL.  Before, upon failure
3178         of dup_safer, we would pass the negative file descriptor to
3179         fdopendir, which would clobber errno.
3180
3181 2011-05-23  Bruno Haible  <bruno@clisp.org>
3182
3183         idcache: Fix module description.
3184         * modules/idcache (Include): Set to "idcache.h".
3185
3186 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3187
3188         gnulib-tool: fix portability problem with MacOS sed
3189         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
3190         before the "}".  Problem reported by Leo in
3191         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
3192         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
3193         sed_extract_condition1, sed_extract_condition2.
3194
3195 2011-05-23  Bruno Haible  <bruno@clisp.org>
3196
3197         hash: Simplify autoconf macro.
3198         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
3199
3200 2011-05-23  Bruno Haible  <bruno@clisp.org>
3201
3202         getugroups: Fix module description.
3203         * modules/getugroups (Include): Set to "getugroups.h".
3204
3205 2011-05-23  Bruno Haible  <bruno@clisp.org>
3206
3207         linkat: Simplify autoconf macro.
3208         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
3209
3210 2011-05-23  Bruno Haible  <bruno@clisp.org>
3211             Eric Blake  <eblake@redhat.com>
3212
3213         linkat, renameat: Update dependencies.
3214         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
3215         * modules/linkat (Depends-on): Likewise. Remove also readlink,
3216         symlinkat.
3217
3218 2011-05-23  Jim Meyering  <meyering@redhat.com>
3219
3220         maint.mk: more tight_scope improvements
3221         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
3222         (_gl_TS_headers): Define only in if-0'd block.
3223         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
3224         sometimes we must *not* use it.  Adjust uses accordingly.
3225         (sc_tight_scope): Use much simpler grep-based test to determine
3226         whether we skip this rule.
3227
3228         maint.mk: generalize/improve the tight-scope rule
3229         * top/maint.mk: Emit a warning when the test is skipped.
3230         (_gl_TS_dir): Add $(srcdir)/ prefix.
3231         (_gl_TS_function_match): Simplify, rather than trying
3232         to enumerate common types.  Otherwise, it would fail to match an
3233         "extern unsigned char const *" declaration in idutils.
3234         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
3235         a way to support use of that type of macro.
3236         (_gl_TS_var_match): Simplify regexp.
3237         (_gl_TS_obj_files): New configurable variable.
3238         (_gl_TS_headers): Likewise.
3239
3240 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3241
3242         verify: fix bug when gnulib <assert.h> is also included
3243         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
3244         is defined, not if _GL_STATIC_ASSERT_H is not defined.
3245         Perhaps there's a better way, but this fixes the immediate problem.
3246         Problem reported by Bruno Haible in
3247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
3248
3249 2011-05-22  Bruno Haible  <bruno@clisp.org>
3250
3251         xgetcwd: Simplify autoconf macro.
3252         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
3253
3254 2011-05-22  Bruno Haible  <bruno@clisp.org>
3255
3256         New module 'mktime-internal'.
3257         * modules/mktime-internal: New file.
3258         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
3259         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
3260         mktime_internal as a C macro if libc has __mktime_internal.
3261         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
3262         conditions.
3263         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
3264
3265 2011-05-22  Bruno Haible  <bruno@clisp.org>
3266
3267         timegm: Correct mktime replacement statements.
3268         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
3269         defining mktime as a C macro. This completes a 2009-07-28 commit.
3270
3271 2011-05-22  Bruno Haible  <bruno@clisp.org>
3272
3273         timegm: Simplify autoconf macro.
3274         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
3275
3276 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3277
3278         clock-time: change to LGPLv2+.
3279         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
3280         BSD-like but we have no mark for that; this is good enough for now.
3281
3282 2011-05-21  Bruno Haible  <bruno@clisp.org>
3283
3284         strerror_r: Fix comments.
3285         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
3286
3287 2011-05-21  Bruno Haible  <bruno@clisp.org>
3288
3289         relocatable-prog-wrapper: Fix possible link error.
3290         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
3291         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
3292         (gl_FUNC_SETENV): ... to here.
3293         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
3294         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
3295
3296 2011-05-21  Bruno Haible  <bruno@clisp.org>
3297
3298         relocatable-prog-wrapper: Assume strerror() exists.
3299         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
3300         m4/strerror.m4.
3301         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
3302         * lib/relocwrapper.c: Remove mention of strerror module.
3303         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
3304         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
3305         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
3306         C macro.
3307
3308 2011-05-21  Bruno Haible  <bruno@clisp.org>
3309
3310         select: Simplify replacement idiom.
3311         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
3312         Win32 platforms.
3313         * lib/sys_select.in.h (select): Simplify accordingly.
3314         * modules/select (Depends-on): Likewise.
3315
3316 2011-05-21  Bruno Haible  <bruno@clisp.org>
3317
3318         mkdir-p: Simplify autoconf macro.
3319         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
3320         gl_FUNC_LCHOWN.
3321
3322 2011-05-21  Eric Blake  <eblake@redhat.com>
3323
3324         strerror_r: avoid clobbering strerror on cygwin
3325         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
3326         fall back instead to sys_errlist.
3327         * modules/strerror (configure.ac): Add witness.
3328         * tests/test-strerror_r.c (main): Enhance test.
3329         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3330         * tests/test-perror2.c (main): Free memory before exit.
3331
3332 2011-05-21  Bruno Haible  <bruno@clisp.org>
3333
3334         mkdtemp: Use gnulib naming conventions.
3335         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
3336         * modules/mkdtemp (configure.ac): Update.
3337
3338 2011-05-20  Eric Blake  <eblake@redhat.com>
3339
3340         strerror_r: avoid corrupting errno on Solaris
3341         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
3342         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3343
3344         strerror_r: avoid compiler warning
3345         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
3346
3347         strerror_r: simplify AIX code
3348         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
3349
3350         test-perror: avoid spurious failure on FreeBSD
3351         * modules/perror-tests (Depends-on): Add strerror, now that
3352         strerror_r no longer pulls it in.
3353
3354 2011-05-20  Bruno Haible  <bruno@clisp.org>
3355
3356         strerror_r-posix: Remove unused dependencies.
3357         * modules/strerror_r-posix (Depends-on): Remove strerror.
3358         Reported by Eric Blake.
3359
3360 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3361
3362         intprops: remove assumption about A|B representation
3363         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
3364         is a valid integer if both A and B are.  Although this is true for
3365         all known practical hosts, the C standard doesn't guarantee it,
3366         and the code need not assume it.  Also, this change may work around
3367         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
3368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
3369
3370 2011-05-20  Eric Blake  <eblake@redhat.com>
3371
3372         perror: work around FreeBSD bug
3373         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
3374         is broken.  Move AC_LIBOBJ...
3375         * modules/perror (configure.ac): Here.
3376         * doc/posix-functions/perror.texi (perror): Document this.
3377         * tests/test-perror2.c (main): Enhance test.
3378
3379         test-perror: check for strerror interactions
3380         * tests/macros.h (STREQ): Add macro.
3381         * modules/perror-tests (Files): Add second test.
3382         * tests/test-perror2.c (main): New file.
3383         * doc/posix-functions/perror.texi (perror): Document glibc bug.
3384
3385         test-perror: rewrite to use init script
3386         * modules/perror-tests (Files): Add init.sh.
3387         * tests/test-perror.sh: Use temporary directory.
3388
3389 2011-05-20  Jim Meyering  <meyering@redhat.com>
3390
3391         maint: replace misused "a" with "an"
3392         * doc/intprops.texi: "a integer"
3393         * doc/regex.texi: "a explanation"
3394         * lib/alignof.h: "a object"
3395         * lib/argmatch.h: "a explanation"
3396         * lib/argp-help.c: "a option" and "a OPTION_DOC"
3397         * lib/stdint.in.h: "a integer"
3398         * lib/userspec.c: "a owner"
3399         * doc/gnulib.texi: Fix "a idea", and reword.
3400
3401 2011-05-19  Jim Meyering  <meyering@redhat.com>
3402
3403         maint: correct misuse of "a" and "an"
3404         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3405         * lib/argp-help.c: "an docum...": s/an/a/
3406         * lib/argp-parse.c: "An vector": s/An/A/
3407         * lib/execute.c: "an native": s/an/a/
3408         * lib/spawn-pipe.c: Likewise.
3409         * lib/gc.h: "an Gc_rc": s/an/a/
3410         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3411         * lib/fts.c: "an stat.st_dev": s/an/a/
3412
3413 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3414
3415         intprops-tests: work around HP-UX 11.23 cc bug with constants
3416         * tests/test-intprops.c (VERIFY): New macro.
3417         (main): Use it, instead of verify, to work around the compiler bug; see
3418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3419
3420         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3421         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3422         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3423         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3424         (_GL_REMAINDER_OVERFLOW): Use it.
3425
3426         intprops-tests: revert unsigned part of previous change
3427         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3428         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3429         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3431
3432 2011-05-19  Bruno Haible  <bruno@clisp.org>
3433
3434         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3435         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3436         strerror_r() returned without filling the buffer.
3437         Reported by Eric Blake.
3438
3439 2011-05-19  Eric Blake  <eblake@redhat.com>
3440
3441         strerror_r: guarantee unchanged errno
3442         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3443         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3444         failure.
3445         * tests/test-strerror_r.c (main): Enhance test.
3446
3447 2011-05-19  Bruno Haible  <bruno@clisp.org>
3448
3449         strerror_r: Reorder #if blocks.
3450         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3451         for consistency with the previous commit.
3452
3453 2011-05-19  Bruno Haible  <bruno@clisp.org>
3454
3455         perror: Avoid clobbering the strerror buffer when possible.
3456         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3457         * lib/strerror.c: Include it.
3458         * modules/strerror (Files): Add lib/strerror-impl.h.
3459         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3460         (my_strerror): New function, defined through lib/strerror-impl.h.
3461         (perror): Use it instead of strerror.
3462         * modules/perror (Files): Add lib/strerror-impl.h.
3463         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3464
3465 2011-05-19  Eric Blake  <eblake@redhat.com>
3466
3467         strerror_r: fix on newer cygwin
3468         * lib/strerror_r.c (strerror_r): Cygwin now has
3469         __xpg_strerror_r, use it.
3470
3471 2011-05-19  Bruno Haible  <bruno@clisp.org>
3472
3473         strerror_r: Avoid clobbering the strerror buffer when possible.
3474         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3475         (sys_nerr, sys_errlist): New declarations.
3476         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3477         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3478         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3479
3480 2011-05-19  Bruno Haible  <bruno@clisp.org>
3481
3482         strerror_r: Fix test failure on mingw.
3483         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3484         EXTEND_STRERROR_R.
3485         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3486         macros from errno.in.h instead.
3487
3488 2011-05-19  Eric Blake  <eblake@redhat.com>
3489
3490         strerror: relax test for Solaris
3491         * tests/test-strerror.c (main): Permit Solaris behavior.
3492         * tests/test-strerror_r.c (main): Likewise.
3493
3494         strerror: enforce POSIX ruling on strerror(0)
3495         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3496         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3497         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3498         * doc/posix-functions/strerror.texi (strerror): Document it.
3499         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3500         * tests/test-strerror.c (main): Strengthen test.
3501         * tests/test-strerror_r.c (main): Likewise.
3502
3503 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3504
3505         intprop-tests: port to older and more-pedantic compilers
3506         * modules/intprops-tests (Files): Add tests/macros.h.
3507         * tests/test-intprops.c: Include macros.h.
3508         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3509         it's no longer documented to expand to an integer constant expression.
3510         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3511         argument is floating point, as it's no longer documented to expand
3512         to an integer constant expression in that case.
3513         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3514         compiler bugs reported by Bruno Haible.  See
3515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3516         (U0, U1): New constants, to work around the same bugs.  Also,
3517         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3518
3519         intprops: work around C compiler bugs
3520         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3521         bug in Sun C 5.11 2010/08/13 and other compilers; see
3522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3523
3524         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3525         * doc/intprops.texi (Integer Type Determination): Fix
3526         documentation for TYPE_IS_INTEGER: it returns an constant
3527         expression, not an integer constant expression.  Fix doc for
3528         TYPE_SIGNED: it returns an integer constant expression only if its
3529         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3530         hardly worth documented that way....)
3531
3532 2011-05-18  Bruno Haible  <bruno@clisp.org>
3533
3534         strerror_r: Avoid clobbering the strerror buffer when possible.
3535         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3536         Handle gnulib defined errno values here. When strerror() returns NULL
3537         or an empty string, return EINVAL.
3538         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3539         gnulib defined errno values here.
3540         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3541
3542 2011-05-18  Eric Blake  <eblake@redhat.com>
3543
3544         fnmatch: avoid compiler warning
3545         * lib/fnmatch_loop.c (FCT): Use correct type.
3546         Reported by Matthias Bolte.
3547
3548 2011-05-13  Jim Meyering  <meyering@redhat.com>
3549
3550         maint.mk: three new prohibit_<HDR>_without_use rules
3551         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3552         (sc_prohibit_stdio-safer_without_use): Likewise.
3553         (sc_prohibit_xfreopen_without_use): Likewise.
3554
3555 2011-05-17  Jim Meyering  <meyering@redhat.com>
3556
3557         announce-gen: fail if the NEWS delta is empty
3558         If there's nothing noteworthy in NEWS, then either you forgot
3559         or you shouldn't be releasing.
3560         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3561
3562 2011-05-17  Pádraig Brady <P@draigBrady.com>
3563
3564         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3565         reserved symbols starting with double underscore from the check.
3566
3567 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3568
3569         intprops: add doc
3570         * doc/intprops.texi: New file, documenting intprops.
3571         * doc/gnulib.texi (Particular Modules): Include it.
3572
3573         verify: add doc to gnulib manual and fix example
3574         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3575         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3576         (Compile-time Assertions): Fix example so it can't overflow.
3577
3578 2011-05-17  Jim Meyering  <meyering@redhat.com>
3579
3580         warnings.m4: don't usurp save_CPPFLAGS variable name
3581         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3582
3583         doc: fix typo
3584         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3585
3586 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3587             Bruno Haible  <bruno@clisp.org>
3588
3589         doc: Tweak recent change.
3590         * README (Portability guidelines): Tweak new text.
3591         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3592         Interix 6.1.
3593
3594 2011-05-16  Eric Blake  <eblake@redhat.com>
3595
3596         inttypes: avoid autoconf warning
3597         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3598         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3599
3600 2011-05-16  Sam Steingold <sds@gnu.org>
3601         and Eric Blake  <eblake@redhat.com>
3602
3603         vc-list-files: accept multiple directory operands
3604         * build-aux/vc-list-files: Iterate over all remaining operands.
3605
3606 2011-05-16  Bruno Haible  <bruno@clisp.org>
3607
3608         Fix confusion regarding deprecated modules.
3609         * modules/calloc (Status, Notice): Mark module as deprecated, not
3610         obsolete.
3611         * modules/fnmatch-posix (Status, Notice): Likewise.
3612         * modules/getdate (Status, Notice): Likewise.
3613         * modules/getopt (Status, Notice): Likewise.
3614         * modules/malloc (Status, Notice): Likewise.
3615         * modules/pipe (Status, Notice): Likewise.
3616         * modules/realloc (Status, Notice): Likewise.
3617         * modules/rename-dest-slash (Status, Notice): Likewise.
3618         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3619         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3620         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3621         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3622         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3623
3624 2011-05-16  Bruno Haible  <bruno@clisp.org>
3625
3626         doc: List the target platforms.
3627         * doc/gnulib-intro.texi (Target Platforms): New section.
3628         * doc/gnulib.texi (Introduction): Update menu.
3629         * README (Portability guidelines): Refer to the new section. Update
3630         statement about oldest supported environment. Remove rationale why
3631         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3632         unportable C89 function.
3633         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3634         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3635
3636 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3637
3638         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3639
3640 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3641
3642         intprops-tests: new module
3643         * modules/intprops-tests, tests/test-intprops.c: New files.
3644
3645         intprops: add safe, portable integer overflow checking
3646         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3647         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3648         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3649         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3650         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3651         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3652         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3653         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3654         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3655         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3656         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3657
3658 2011-05-12  James Youngman  <jay@gnu.org>
3659
3660         Add a test for glibc's Bugzilla bug #12378.
3661         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3662         doesn't allow the literal matching of a lone "[" (which is
3663         required by POSIX).
3664         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3665
3666 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3667
3668         Sync glibc change fixing Bugzilla bug #12378.
3669         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3670         beginning and fall back to matching as normal character if the
3671         string ends before the matching ']' is found.  This is what POSIX
3672         requires.
3673
3674 2011-05-13  Eric Blake  <eblake@redhat.com>
3675
3676         getcwd-lgpl: relax test for FreeBSD
3677         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3678         issue.
3679         * tests/test-getcwd-lgpl.c (main): Relax test.
3680         Reported by Matthias Bolte.
3681
3682 2011-05-11  Eric Blake  <eblake@redhat.com>
3683
3684         test-fflush: silence compiler warning
3685         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3686
3687 2011-05-11  Bruno Haible  <bruno@clisp.org>
3688
3689         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3690         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3691         * modules/canonicalize (Depends-on): Add 'nocrash'.
3692         * modules/canonicalize-lgpl (Depends-on): Likewise.
3693         * doc/posix-functions/realpath.texi: Update platforms list.
3694         Reported by Ryan Schmidt <ryandesign@macports.org>.
3695
3696 2011-05-11  Bruno Haible  <bruno@clisp.org>
3697
3698         group-member: Declare function in <unistd.h>.
3699         * lib/unistd.in.h (group_member): New declaration.
3700         * lib/group-member.h: Remove file.
3701         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3702         * tests/test-unistd-c++.cc: Check signature of group_member.
3703         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3704         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3705         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3706         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3707         HAVE_GROUP_MEMBER.
3708         * modules/group-member (Files): Remove lib/group-member.h.
3709         (Depends-on): Add unistd. Specify conditions.
3710         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3711         (Include): Change to <unistd.h>.
3712         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3713         HAVE_GROUP_MEMBER.
3714         * NEWS: Mention the change.
3715         * lib/euidaccess.c: Don't include group-member.h.
3716
3717 2011-05-11  Bruno Haible  <bruno@clisp.org>
3718
3719         group-member: Document module.
3720         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3721         module.
3722
3723 2011-05-11  Bruno Haible  <bruno@clisp.org>
3724
3725         fclose: Fix mistake earlier today.
3726         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3727
3728 2011-05-11  Eric Blake  <eblake@redhat.com>
3729
3730         fclose: preserve fflush errors
3731         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3732         Reported by Jim Meyering.
3733
3734         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3735         * build-aux/bootstrap (check_versions): When no specific version
3736         is required, merely check that the app produces an exit status
3737         that indicates its existence.
3738
3739         maint.mk: drop redundant check
3740         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3741         the same but better.
3742
3743 2011-05-11  Bruno Haible  <bruno@clisp.org>
3744
3745         fclose: Fix possible link error.
3746         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3747         unregister_shadow_fd. Improve comments.
3748         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3749         Eric Blake.
3750
3751 2011-05-11  Jim Meyering  <meyering@redhat.com>
3752
3753         maint.mk: improve "can not" detection and generalize rule name
3754         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3755         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3756         Use the same technique as in sc_prohibit_doubled_word, so that
3757         we recognize "can not" also when the words are separated by a newline.
3758         Suggested by Eric Blake.
3759         (perl_filename_lineno_text_): Define.  Factored out of...
3760         (prohibit_doubled_word_): ...here.  Use the new definition.
3761         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3762         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3763         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3764
3765 2011-05-10  Eric Blake  <eblake@redhat.com>
3766
3767         fclose: avoid double close race when possible
3768         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3769         all but WINDOWS_SOCKETS.
3770
3771 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3772
3773         openat: correct new comment
3774         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3775
3776 2011-05-10  Jim Meyering  <meyering@redhat.com>
3777
3778         openat: add comments
3779         * lib/openat-proc.c (openat_proc_name): Add comments,
3780         mostly from Eric Blake.
3781
3782 2011-05-09  Eric Blake  <eblake@redhat.com>
3783
3784         openat: reduce syscalls in first probe of /proc
3785         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3786         be a directory.  Simplify the probe for .. bugs.
3787         * modules/openat (Depends-on): Drop same-inode.
3788         Reported by Bastien ROUCARIES.
3789
3790 2011-05-09  Jim Meyering  <meyering@redhat.com>
3791
3792         maint.mk: change semantics/name of tight_scope variables
3793         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3794         Rename variables to align with semantics that make them more useful.
3795
3796         maint.mk: tweak new rule's name not to impinge
3797         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3798         (sc_tight_scope): Use new rule name rather than $@-0.
3799
3800         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3801         * top/maint.mk (sc_tight_scope): New rule.
3802         (sc_tight_scope-0): New rule, ifdef'd out.
3803         (_gl_TS_dir): Default.
3804         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3805         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3806
3807 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3808
3809         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3810         Haible <bruno@clisp.org>.
3811
3812 2011-05-08  Bruno Haible  <bruno@clisp.org>
3813
3814         Comments.
3815         * m4/isnanf.m4: Add comment.
3816         * m4/isnanl.m4: Likewise.
3817
3818 2011-05-08  Bruno Haible  <bruno@clisp.org>
3819
3820         glob: Remove obsolete macro.
3821         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3822
3823 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3824
3825         intprops: Sun C 5.11 supports __typeof__
3826         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3827         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3828         which is new.
3829         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3830
3831         intprops: switch to usual gnulib indenting and naming
3832         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3833         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3834
3835         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3836
3837 2011-05-08  Jim Meyering  <meyering@redhat.com>
3838
3839         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3840         * top/maint.mk (release-prep): Use make's --no-print-directory
3841         option when generating the announcement.  This eliminates the
3842         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3843         generated announcement template.
3844
3845 2011-05-08  Bruno Haible  <bruno@clisp.org>
3846
3847         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3848         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3849         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3850
3851 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3852
3853         ignore-value, verify: Omit include files from lib_SOURCES.
3854         * modules/ignore-value, modules/verify (Makefile.am):
3855         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3856         that leads Automake to duplicate use of am__objects_... variables
3857         in Makefile.in.  See
3858         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3859
3860 2011-05-07  Bruno Haible  <bruno@clisp.org>
3861
3862         fclose: Simplify autoconf macro.
3863         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3864         defined.
3865
3866 2011-05-07  Bruno Haible  <bruno@clisp.org>
3867
3868         canonicalize-lgpl: Fix autoconf macro ordering bug.
3869         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3870         gl_STDLIB_H_DEFAULTS.
3871
3872 2011-05-06  Eric Blake  <eblake@redhat.com>
3873
3874         maintainer-makefile: make sc_po_check easier to tune
3875         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3876         to probe for strings, such as an alternate location for gnulib.
3877
3878         fclose: guarantee behavior on seekable stdin
3879         * modules/fclose (Depends-on): Add fflush.
3880         * doc/posix-functions/fclose.texi (fclose): Document this.
3881         * tests/test-fclose.c (main): Make test for this unconditional.
3882
3883 2011-05-06  Bruno Haible  <bruno@clisp.org>
3884
3885         fflush, fpurge: Relicense under LGPLv2+.
3886         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3887         * modules/fpurge (License): Likewise.
3888         With permission from Eric Blake and Jim Meyering.
3889         Suggested by Eric Blake.
3890
3891 2011-05-06  Karl Berry  <karl@gnu.org>
3892
3893         * MODULES.html.sh (func_all_modules): remove exit.
3894
3895 2011-05-06  Jim Meyering  <meyering@redhat.com>
3896
3897         maint.mk: use info-gnu@ as the default only for a stable release
3898         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3899         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3900         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3901         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3902
3903 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3904
3905         assert-h: new module, which supports C1X-style static_assert
3906         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3907         * lib/verify.h: Revamp so that this can be copied into assert.h,
3908         while retaining the ability to use it standalone as before.
3909         Rename private identifiers so as not to encroach on the
3910         standard C namespace, since this is now used by assert.h.
3911         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3912         the old verify_true.
3913         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3914         the old verify_true.  Use _GL_VERIFY_TYPE.
3915         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3916         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3917         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3918         defined when this file is copied into the replacement assert.h.
3919         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3920         and _Static_assert is not built in.
3921         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3922         defined, and use the new macros mentioned above.
3923         * doc/posix-headers/assert.texi: Document this.
3924
3925 2011-05-05  Bruno Haible  <bruno@clisp.org>
3926
3927         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3928         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3929         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3930         gl_REPLACE_FCLOSE here.
3931         * modules/fflush (Depends-on): Remove fclose.
3932         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3933         combination with module 'fclose'.
3934
3935 2011-05-05  Bruno Haible  <bruno@clisp.org>
3936
3937         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3938         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3939         gl_FUNC_FFLUSH.
3940         (gl_FUNC_FFLUSH): Use it.
3941         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3942         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3943         gl_REPLACE_FSEEKO here.
3944
3945 2011-05-05  Bruno Haible  <bruno@clisp.org>
3946
3947         tzset: Relicense under LGPL.
3948         * modules/tzset (License): Change to LGPL.
3949         No agreement needed; it's a no-op.
3950
3951         strtoimax, strtoumax: Relicense under LGPL.
3952         * modules/strtoimax (License): Change to LGPL.
3953         * modules/strtoumax (License): Likewise.
3954         With permission from Jim Meyering, Paul Eggert:
3955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3957
3958         getgroups: Relicense under LGPL.
3959         * modules/getgroups (License): Change to LGPL.
3960         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3964
3965         nanosleep: Relicense under LGPL.
3966         * modules/nanosleep (License): Change to LGPL.
3967         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3968         Haible:
3969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3973
3974         futimens: Relicense under LGPL.
3975         * modules/futimens (License): Change to LGPL.
3976         With permission from Eric Blake:
3977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3978
3979         fflush: Relicense under LGPL.
3980         * modules/fflush (License): Change to LGPL.
3981         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3985
3986         tmpfile: Relicense under LGPL.
3987         * modules/tmpfile (License): Change to LGPL.
3988         With permission from Ben Pfaff:
3989         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3990
3991         isfinite: Relicense under LGPL.
3992         * modules/isfinite (License): Change to LGPL.
3993         With permission from Ben Pfaff, Bruno Haible:
3994         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3996
3997         acosl..tanl: Relicense under LGPL.
3998         * modules/acosl (License): Change to LGPL.
3999         * modules/asinl (License): Likewise.
4000         * modules/atanl (License): Likewise.
4001         * modules/cosl (License): Likewise.
4002         * modules/expl (License): Likewise.
4003         * modules/logl (License): Likewise.
4004         * modules/sinl (License): Likewise.
4005         * modules/sqrtl (License): Likewise.
4006         * modules/tanl (License): Likewise.
4007         Source code originally from glibc and Paolo Bonzini. Agreements:
4008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
4009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
4010
4011 2011-05-05  Bruno Haible  <bruno@clisp.org>
4012
4013         signal: Define sighandler_t.
4014         * lib/signal.in.h (sighandler_t): New type.
4015         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
4016         whether sighandler_t is defined.
4017         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
4018         * modules/signal (Depends-on): Add extensions.
4019         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
4020         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
4021         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
4022
4023 2011-05-05  Eric Blake  <eblake@redhat.com>
4024
4025         maint: remove useless REPLACE_*_H macros
4026         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
4027         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4028         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4029         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
4030         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4031         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4032         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
4033         * m4/btowc.m4: Update callers.
4034         * m4/dirfd.m4: Likewise.
4035         * m4/duplocale.m4: Likewise.
4036         * m4/fchdir.m4: Likewise.
4037         * m4/fdopendir.m4: Likewise.
4038         * m4/inet_ntop.m4: Likewise.
4039         * m4/inet_pton.m4: Likewise.
4040         * m4/ioctl.m4: Likewise.
4041         * m4/mbrlen.m4: Likewise.
4042         * m4/mbrtowc.m4: Likewise.
4043         * m4/mbsinit.m4: Likewise.
4044         * m4/mbsnrtowcs.m4: Likewise.
4045         * m4/mbsrtowcs.m4: Likewise.
4046         * m4/poll.m4: Likewise.
4047         * m4/setlocale.m4: Likewise.
4048         * m4/wcrtomb.m4: Likewise.
4049         * m4/wcsnrtombs.m4: Likewise.
4050         * m4/wcsrtombs.m4: Likewise.
4051         * m4/wctob.m4: Likewise.
4052         * m4/wcwidth.m4: Likewise.
4053         * modules/posix_spawn: Likewise.
4054         * modules/posix_spawn_file_actions_addclose: Likewise.
4055         * modules/posix_spawn_file_actions_adddup2: Likewise.
4056         * modules/posix_spawn_file_actions_addopen: Likewise.
4057         * modules/posix_spawn_file_actions_destroy: Likewise.
4058         * modules/posix_spawn_file_actions_init: Likewise.
4059         * modules/posix_spawnattr_destroy: Likewise.
4060         * modules/posix_spawnattr_getflags: Likewise.
4061         * modules/posix_spawnattr_getpgroup: Likewise.
4062         * modules/posix_spawnattr_getschedparam: Likewise.
4063         * modules/posix_spawnattr_getschedpolicy: Likewise.
4064         * modules/posix_spawnattr_getsigdefault: Likewise.
4065         * modules/posix_spawnattr_getsigmask: Likewise.
4066         * modules/posix_spawnattr_init: Likewise.
4067         * modules/posix_spawnattr_setflags: Likewise.
4068         * modules/posix_spawnattr_setpgroup: Likewise.
4069         * modules/posix_spawnattr_setschedparam: Likewise.
4070         * modules/posix_spawnattr_setschedpolicy: Likewise.
4071         * modules/posix_spawnattr_setsigdefault: Likewise.
4072         * modules/posix_spawnattr_setsigmask: Likewise.
4073         * modules/posix_spawnp: Likewise.
4074
4075 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
4076
4077         Add option to do-release-commit-and-tag to specify branch.
4078         * build-aux/do-release-commit-and-tag: Add --branch.
4079
4080 2011-05-03  Bruno Haible  <bruno@clisp.org>
4081
4082         Avoid unnecessary compilation units, through conditional dependencies.
4083         * modules/accept (Depends-on): Add conditions to the dependencies.
4084         * modules/acosl (Depends-on): Likewise.
4085         * modules/argz (Depends-on): Likewise.
4086         * modules/asinl (Depends-on): Likewise.
4087         * modules/atanl (Depends-on): Likewise.
4088         * modules/atoll (Depends-on): Likewise.
4089         * modules/bind (Depends-on): Likewise.
4090         * modules/btowc (Depends-on): Likewise.
4091         * modules/canonicalize-lgpl (Depends-on): Likewise.
4092         * modules/ceil (Depends-on): Likewise.
4093         * modules/ceilf (Depends-on): Likewise.
4094         * modules/ceill (Depends-on): Likewise.
4095         * modules/chdir-long (Depends-on): Likewise.
4096         * modules/chown (Depends-on): Likewise.
4097         * modules/close (Depends-on): Likewise.
4098         * modules/connect (Depends-on): Likewise.
4099         * modules/cosl (Depends-on): Likewise.
4100         * modules/dirfd (Depends-on): Likewise.
4101         * modules/dprintf (Depends-on): Likewise.
4102         * modules/dprintf-posix (Depends-on): Likewise.
4103         * modules/error (Depends-on): Likewise.
4104         * modules/euidaccess (Depends-on): Likewise.
4105         * modules/expl (Depends-on): Likewise.
4106         * modules/faccessat (Depends-on): Likewise.
4107         * modules/fchdir (Depends-on): Likewise.
4108         * modules/fclose (Depends-on): Likewise.
4109         * modules/fcntl (Depends-on): Likewise.
4110         * modules/fdopendir (Depends-on): Likewise.
4111         * modules/fflush (Depends-on): Likewise.
4112         * modules/floor (Depends-on): Likewise.
4113         * modules/floorf (Depends-on): Likewise.
4114         * modules/floorl (Depends-on): Likewise.
4115         * modules/fnmatch (Depends-on): Likewise.
4116         * modules/fopen (Depends-on): Likewise.
4117         * modules/fprintf-posix (Depends-on): Likewise.
4118         * modules/frexp (Depends-on): Likewise.
4119         * modules/frexp-nolibm (Depends-on): Likewise.
4120         * modules/frexpl (Depends-on): Likewise.
4121         * modules/frexpl-nolibm (Depends-on): Likewise.
4122         * modules/fseek (Depends-on): Likewise.
4123         * modules/fsusage (Depends-on): Likewise.
4124         * modules/ftell (Depends-on): Likewise.
4125         * modules/ftello (Depends-on): Likewise.
4126         * modules/futimens (Depends-on): Likewise.
4127         * modules/getcwd (Depends-on): Likewise.
4128         * modules/getcwd-lgpl (Depends-on): Likewise.
4129         * modules/getdelim (Depends-on): Likewise.
4130         * modules/getdomainname (Depends-on): Likewise.
4131         * modules/getgroups (Depends-on): Likewise.
4132         * modules/gethostname (Depends-on): Likewise.
4133         * modules/getline (Depends-on): Likewise.
4134         * modules/getlogin_r (Depends-on): Likewise.
4135         * modules/getopt-posix (Depends-on): Likewise.
4136         * modules/getpeername (Depends-on): Likewise.
4137         * modules/getsockname (Depends-on): Likewise.
4138         * modules/getsockopt (Depends-on): Likewise.
4139         * modules/getsubopt (Depends-on): Likewise.
4140         * modules/getusershell (Depends-on): Likewise.
4141         * modules/glob (Depends-on): Likewise.
4142         * modules/grantpt (Depends-on): Likewise.
4143         * modules/iconv_open (Depends-on): Likewise.
4144         * modules/iconv_open-utf (Depends-on): Likewise.
4145         * modules/inet_ntop (Depends-on): Likewise.
4146         * modules/inet_pton (Depends-on): Likewise.
4147         * modules/ioctl (Depends-on): Likewise.
4148         * modules/isapipe (Depends-on): Likewise.
4149         * modules/isfinite (Depends-on): Likewise.
4150         * modules/isinf (Depends-on): Likewise.
4151         * modules/lchown (Depends-on): Likewise.
4152         * modules/ldexpl (Depends-on): Likewise.
4153         * modules/link (Depends-on): Likewise.
4154         * modules/linkat (Depends-on): Likewise.
4155         * modules/listen (Depends-on): Likewise.
4156         * modules/logl (Depends-on): Likewise.
4157         * modules/lstat (Depends-on): Likewise.
4158         * modules/mbrlen (Depends-on): Likewise.
4159         * modules/mbrtowc (Depends-on): Likewise.
4160         * modules/mbsinit (Depends-on): Likewise.
4161         * modules/mbsnrtowcs (Depends-on): Likewise.
4162         * modules/mbsrtowcs (Depends-on): Likewise.
4163         * modules/mbtowc (Depends-on): Likewise.
4164         * modules/memcmp (Depends-on): Likewise.
4165         * modules/mkdir (Depends-on): Likewise.
4166         * modules/mkdtemp (Depends-on): Likewise.
4167         * modules/mkfifo (Depends-on): Likewise.
4168         * modules/mkfifoat (Depends-on): Likewise.
4169         * modules/mknod (Depends-on): Likewise.
4170         * modules/mkostemp (Depends-on): Likewise.
4171         * modules/mkostemps (Depends-on): Likewise.
4172         * modules/mkstemp (Depends-on): Likewise.
4173         * modules/mkstemps (Depends-on): Likewise.
4174         * modules/mktime (Depends-on): Likewise.
4175         * modules/nanosleep (Depends-on): Likewise.
4176         * modules/open (Depends-on): Likewise.
4177         * modules/openat (Depends-on): Likewise.
4178         * modules/perror (Depends-on): Likewise.
4179         * modules/poll (Depends-on): Likewise.
4180         * modules/popen (Depends-on): Likewise.
4181         * modules/posix_spawn (Depends-on): Likewise.
4182         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
4183         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
4184         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
4185         * modules/posix_spawnp (Depends-on): Likewise.
4186         * modules/pread (Depends-on): Likewise.
4187         * modules/printf-posix (Depends-on): Likewise.
4188         * modules/ptsname (Depends-on): Likewise.
4189         * modules/putenv (Depends-on): Likewise.
4190         * modules/pwrite (Depends-on): Likewise.
4191         * modules/readline (Depends-on): Likewise.
4192         * modules/readlink (Depends-on): Likewise.
4193         * modules/readlinkat (Depends-on): Likewise.
4194         * modules/recv (Depends-on): Likewise.
4195         * modules/recvfrom (Depends-on): Likewise.
4196         * modules/regex (Depends-on): Likewise.
4197         * modules/remove (Depends-on): Likewise.
4198         * modules/rename (Depends-on): Likewise.
4199         * modules/renameat (Depends-on): Likewise.
4200         * modules/rmdir (Depends-on): Likewise.
4201         * modules/round (Depends-on): Likewise.
4202         * modules/roundf (Depends-on): Likewise.
4203         * modules/roundl (Depends-on): Likewise.
4204         * modules/rpmatch (Depends-on): Likewise.
4205         * modules/select (Depends-on): Likewise.
4206         * modules/send (Depends-on): Likewise.
4207         * modules/sendto (Depends-on): Likewise.
4208         * modules/setenv (Depends-on): Likewise.
4209         * modules/setlocale (Depends-on): Likewise.
4210         * modules/setsockopt (Depends-on): Likewise.
4211         * modules/shutdown (Depends-on): Likewise.
4212         * modules/sigaction (Depends-on): Likewise.
4213         * modules/signbit (Depends-on): Likewise.
4214         * modules/sigprocmask (Depends-on): Likewise.
4215         * modules/sinl (Depends-on): Likewise.
4216         * modules/sleep (Depends-on): Likewise.
4217         * modules/snprintf (Depends-on): Likewise.
4218         * modules/snprintf-posix (Depends-on): Likewise.
4219         * modules/socket (Depends-on): Likewise.
4220         * modules/sprintf-posix (Depends-on): Likewise.
4221         * modules/sqrtl (Depends-on): Likewise.
4222         * modules/stat (Depends-on): Likewise.
4223         * modules/strchrnul (Depends-on): Likewise.
4224         * modules/strdup-posix (Depends-on): Likewise.
4225         * modules/strerror (Depends-on): Likewise.
4226         * modules/strerror_r-posix (Depends-on): Likewise.
4227         * modules/strndup (Depends-on): Likewise.
4228         * modules/strnlen (Depends-on): Likewise.
4229         * modules/strptime (Depends-on): Likewise.
4230         * modules/strsep (Depends-on): Likewise.
4231         * modules/strsignal (Depends-on): Likewise.
4232         * modules/strstr-simple (Depends-on): Likewise.
4233         * modules/strtod (Depends-on): Likewise.
4234         * modules/strtoimax (Depends-on): Likewise.
4235         * modules/strtok_r (Depends-on): Likewise.
4236         * modules/strtoumax (Depends-on): Likewise.
4237         * modules/symlink (Depends-on): Likewise.
4238         * modules/symlinkat (Depends-on): Likewise.
4239         * modules/tanl (Depends-on): Likewise.
4240         * modules/tcgetsid (Depends-on): Likewise.
4241         * modules/tmpfile (Depends-on): Likewise.
4242         * modules/trunc (Depends-on): Likewise.
4243         * modules/truncf (Depends-on): Likewise.
4244         * modules/truncl (Depends-on): Likewise.
4245         * modules/uname (Depends-on): Likewise.
4246         * modules/unlink (Depends-on): Likewise.
4247         * modules/unlockpt (Depends-on): Likewise.
4248         * modules/unsetenv (Depends-on): Likewise.
4249         * modules/usleep (Depends-on): Likewise.
4250         * modules/utimensat (Depends-on): Likewise.
4251         * modules/vasprintf (Depends-on): Likewise.
4252         * modules/vdprintf (Depends-on): Likewise.
4253         * modules/vdprintf-posix (Depends-on): Likewise.
4254         * modules/vfprintf-posix (Depends-on): Likewise.
4255         * modules/vprintf-posix (Depends-on): Likewise.
4256         * modules/vsnprintf (Depends-on): Likewise.
4257         * modules/vsnprintf-posix (Depends-on): Likewise.
4258         * modules/vsprintf-posix (Depends-on): Likewise.
4259         * modules/wcrtomb (Depends-on): Likewise.
4260         * modules/wcscasecmp (Depends-on): Likewise.
4261         * modules/wcscspn (Depends-on): Likewise.
4262         * modules/wcsdup (Depends-on): Likewise.
4263         * modules/wcsncasecmp (Depends-on): Likewise.
4264         * modules/wcsnrtombs (Depends-on): Likewise.
4265         * modules/wcspbrk (Depends-on): Likewise.
4266         * modules/wcsrtombs (Depends-on): Likewise.
4267         * modules/wcsspn (Depends-on): Likewise.
4268         * modules/wcsstr (Depends-on): Likewise.
4269         * modules/wcstok (Depends-on): Likewise.
4270         * modules/wcswidth (Depends-on): Likewise.
4271         * modules/wctob (Depends-on): Likewise.
4272         * modules/wctomb (Depends-on): Likewise.
4273         * modules/wctype (Depends-on): Likewise.
4274         * modules/wcwidth (Depends-on): Likewise.
4275         * modules/write (Depends-on): Likewise.
4276
4277 2011-05-03  Bruno Haible  <bruno@clisp.org>
4278
4279         Support for conditional dependencies.
4280         * doc/gnulib.texi (Module description): Document the syntax of
4281         conditional dependencies.
4282         * gnulib-tool: New option --conditional-dependencies.
4283         (func_usage): Document it.
4284         (cond_dependencies): New variable.
4285         (func_get_automake_snippet_conditional,
4286         func_get_automake_snippet_unconditional): New functions, extracted from
4287         func_get_automake_snippet.
4288         (func_get_automake_snippet): Use them.
4289         (sed_first_32_chars): New variable.
4290         (func_module_shellfunc_name): New function.
4291         (func_module_shellvar_name): New function.
4292         (func_module_conditional_name): New function.
4293         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
4294         func_cond_module_condition): New functions.
4295         (func_modules_transitive_closure): Add support for conditional
4296         dependencies.
4297         (func_emit_lib_Makefile_am): For a conditional module, enclose the
4298         conditional automake snippet in an automake conditional.
4299         (func_emit_autoconf_snippets): Emit shell functions that contain the
4300         code for conditional modules.
4301         (func_import, func_create_testdir): Update specification.
4302
4303 2011-05-03  Eric Blake  <eblake@redhat.com>
4304
4305         test-getaddrinfo: report error information
4306         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
4307
4308 2011-05-03  Jim Meyering  <meyering@redhat.com>
4309
4310         bootstrap: avoid build failure when $GZIP is set
4311         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
4312         program name.  If defined at all, it is supposed to list gzip options.
4313         Reported by Alan Curry in http://debbugs.gnu.org/8609
4314
4315 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
4316
4317         readme-release: new module with release instructions
4318         * modules/readme-release: New module.
4319         * top/README-release: New file, from coreutils, grep, diffutils.
4320         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4321
4322 2011-05-02  Eric Blake  <eblake@redhat.com>
4323
4324         fflush: also replace fclose when fixing fflush
4325         * modules/fflush (Depends-on): Add fclose.
4326         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
4327         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
4328         memstreams with no backing fd.
4329         * doc/posix-functions/fclose.texi (fclose): Document the use of
4330         fflush module to fix the bug.
4331         * tests/test-fclose.c (main): Relax test when fclose is used in
4332         isolation.
4333
4334         fclose: add some tests
4335         * modules/fclose-tests: New test module.
4336         * tests/test-fclose.c: New file.
4337         * doc/posix-functions/fclose.texi (fclose): Document the bug.
4338
4339         fclose: reduced dependencies
4340         * modules/fclose (Depends-on): Switch from fflush/fseeko to
4341         simpler lseek.
4342         * lib/fclose.c (rpl_fclose): Likewise.
4343         Reported by Simon Josefsson.
4344
4345         exit: drop remaining clients
4346         * modules/argmatch (Depends-on): Replace exit with stdlib.
4347         * modules/copy-file (Depends-on): Likewise.
4348         * modules/execute (Depends-on): Likewise.
4349         * modules/exitfail (Depends-on): Likewise.
4350         * modules/obstack (Depends-on): Likewise.
4351         * modules/pagealign_alloc (Depends-on): Likewise.
4352         * modules/pipe-filter-gi (Depends-on): Likewise.
4353         * modules/pipe-filter-ii (Depends-on): Likewise.
4354         * modules/savewd (Depends-on): Likewise.
4355         * modules/spawn-pipe (Depends-on): Likewise.
4356         * modules/wait-process (Depends-on): Likewise.
4357         * modules/xsetenv (Depends-on): Likewise.
4358         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
4359         * modules/git-merge-changelog (Depends-on): Likewise.
4360         * modules/long-options (Depends-on): Likewise.
4361         * modules/pt_chown (Depends-on): Likewise.
4362         * modules/sysexits (Depends-on): Likewise.
4363
4364         freading: relax license from LGPLv3+ to LGPLv2+
4365         * modules/freading (License): Relax LGPL version.
4366
4367 2011-05-02  Bruno Haible  <bruno@clisp.org>
4368
4369         fchdir: Remove unused dependencies.
4370         * modules/fchdir (Depends-on): Remove include_next.
4371
4372 2011-05-02  Bruno Haible  <bruno@clisp.org>
4373
4374         gnulib-tool: Refactor.
4375         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
4376         from func_emit_autoconf_snippets.
4377         (func_emit_autoconf_snippets): Use it.
4378
4379 2011-05-02  Simon Josefsson  <simon@josefsson.org>
4380
4381         * NEWS: Document removal of 'exit'.
4382         * modules/exit: Remove file.
4383
4384 2011-05-01  Bruno Haible  <bruno@clisp.org>
4385
4386         Update DEPENDENCIES.
4387         * DEPENDENCIES (gettext): Recommend the newest release.
4388         Reported by Simon Josefsson.
4389
4390 2011-05-01  Bruno Haible  <bruno@clisp.org>
4391
4392         gnulib-tool: Reduce code duplication.
4393         * gnulib-tool (func_emit_autoconf_snippets): New function.
4394         (func_import, func_create_testdir): Use it.
4395
4396 2011-04-30  Eric Blake  <eblake@redhat.com>
4397
4398         fclose: don't fail on non-seekable input stream
4399         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
4400         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
4401         since fflush is allowed to fail in that case.
4402
4403 2011-04-30  Bruno Haible  <bruno@clisp.org>
4404
4405         dup3: cleanup
4406         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4407
4408 2011-04-30  Bruno Haible  <bruno@clisp.org>
4409
4410         netdb: Make it work in C++ mode.
4411         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4412         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4413         module.
4414         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4415         gl_MODULE_INDICATOR_FOR_TESTS.
4416         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4417         * modules/netdb-c++-tests: New file.
4418         * tests/test-netdb-c++.cc: New file.
4419
4420 2011-04-30  Bruno Haible  <bruno@clisp.org>
4421
4422         New modules 'vfscanf', 'vscanf'.
4423         * modules/vfscanf: New file.
4424         * modules/vscanf: New file.
4425         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4426         here.
4427         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4428         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4429
4430 2011-04-30  Bruno Haible  <bruno@clisp.org>
4431
4432         passfd: Add comments.
4433         * lib/passfd.c: Add comments about platforms.
4434
4435 2011-04-30  Bruno Haible  <bruno@clisp.org>
4436
4437         sys_uio: Make <sys/uio.h> self-contained.
4438         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4439         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4440
4441 2011-04-30  Bruno Haible  <bruno@clisp.org>
4442
4443         sys_socket: Ensure 'struct iovec' definition.
4444         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4445         <sys/socket.h>.
4446         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4447
4448 2011-04-30  Bruno Haible  <bruno@clisp.org>
4449
4450         sys_uio: Protect definition of 'struct iovec'.
4451         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4452         it as a C struct.
4453
4454 2011-04-30  Bruno Haible  <bruno@clisp.org>
4455
4456         manywarnings: fix indentation
4457         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4458
4459 2011-04-30  Pádraig Brady <P@draigBrady.com>
4460
4461         manywarnings: add -Wno-missing-field-initializers if needed.
4462         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4463         option if it's needed to allow initialization with { 0, }
4464
4465 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4466
4467         announce-gen: cosmetic improvement
4468         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4469
4470 2011-04-29  Jim Meyering  <meyering@redhat.com>
4471
4472         vc-list-files: indent with spaces, not TABs
4473         * build-aux/vc-list-files: Convert leading TABs to spaces,
4474         to match the style of most other files in gnulib.
4475
4476         announce-gen: indent with spaces, not TABs
4477         * build-aux/announce-gen: Convert all TABs to spaces, to match
4478         the style of most other files in gnulib.
4479
4480 2011-04-29  Eric Blake  <eblake@redhat.com>
4481
4482         quotearg: avoid uninitialized variable use
4483         * lib/quotearg.c (quoting_options_from_style): Initialize
4484         remaining fields, and ensure that custom styles are only used via
4485         quoting_options rather than quoting_style.
4486
4487 2011-04-29  Jim Meyering  <meyering@redhat.com>
4488
4489         maint.mk: remove unused VC-tag variable
4490         * top/maint.mk (VC-tag): Remove unused variable.
4491
4492 2011-04-29  Bruno Haible  <bruno@clisp.org>
4493
4494         netdb: fix gai_strerror replacements
4495         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4496         * modules/netdb: Substitute it.
4497
4498 2011-04-29  Jim Meyering  <meyering@redhat.com>
4499
4500         test-getcwd.c: avoid new set-but-not-used warning
4501         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4502         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4503         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4504         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4505
4506         test-hash.c: avoid a new shadowing warning
4507         * tests/test-hash.c (main): Don't shadow "dup".
4508
4509 2011-04-28  Eric Blake  <eblake@redhat.com>
4510
4511         getaddrinfo: fix gai_strerror signature
4512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4513         and work around mingw with UNICODE defined.
4514         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4515         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4516         * modules/netdb (Makefile.am): Substitute it.
4517         * lib/netdb.in.h (gai_strerror): Declare replacement.
4518         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4519         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4520         the fix.
4521
4522         getsockopt: avoid compiler warning
4523         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4524         Reported by Matthias Bolte.
4525
4526         tests: drop unused link dependency
4527         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4528         * modules/dirent-safer-tests (Makefile.am): Likewise.
4529         * modules/fdopendir-tests (Makefile.am): Likewise.
4530         * modules/mkfifoat-tests (Makefile.am): Likewise.
4531         * modules/openat-safer-tests (Makefile.am): Likewise.
4532         * modules/openat-tests (Makefile.am): Likewise.
4533         * modules/readlinkat-tests (Makefile.am): Likewise.
4534         * modules/symlinkat-tests (Makefile.am): Likewise.
4535         * modules/linkat-tests (Makefile.am): Likewise.
4536         (Depends-on): Switch to filenamecat-lgpl.
4537         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4538         LIBINTL.
4539         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4540         * tests/test-linkat.c (main): Don't require xalloc.
4541
4542         hash, mgetgroups: drop xalloc dependency
4543         * lib/hash.c (includes): Adjust includes.
4544         * lib/mgetgroups.c (includes): Likewise.
4545         (xgetgroups): Move...
4546         * lib/xgetgroups.c: ...to new file.
4547         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4548         * modules/xgetgroups: New file, split from...
4549         * modules/mgetgroups: ...here.
4550         (Depends-on): Add xalloc-oversized.
4551         * modules/hash (Depends-on): Likewise.
4552         * modules/hash-tests (Depends-on): Drop xalloc.
4553         (test_hash_LDADD): Drop unused library.
4554         * tests/test-hash.c (main): Break xalloc dependency.
4555         (includes): Drop unused include.
4556
4557         xalloc-oversized: new module
4558         * modules/xalloc-oversized: New module.
4559         * modules/xalloc (Depends-on): Add it.
4560         * lib/xalloc.h (xalloc_oversized): Move...
4561         * lib/xalloc-oversized.h: ...into new file.
4562
4563         utimecmp: drop dependency on xmalloc
4564         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4565         due to memory pressure.
4566         * modules/utimecmp (Depends-on): Drop xalloc.
4567
4568 2011-04-27  Eric Blake  <eblake@redhat.com>
4569
4570         getcwd: fix mingw bugs
4571         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4572         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4573         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4574
4575 2011-04-27  Bruno Haible  <bruno@clisp.org>
4576
4577         mkstemps: Ensure declaration on MacOS X 10.5.
4578         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4579         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4580         MacOS X.
4581
4582 2011-04-27  Bruno Haible  <bruno@clisp.org>
4583
4584         mkstemp: More documentation.
4585         * doc/posix-functions/mkstemp.texi: Document header file problem on
4586         MacOS X.
4587
4588 2011-04-27  Bruno Haible  <bruno@clisp.org>
4589
4590         mkstemp: Tweak configure message when cross-compiling.
4591         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4592         result as a guess.
4593
4594 2011-04-27  Bruno Haible  <bruno@clisp.org>
4595
4596         clean-temp: Clarify what it does.
4597         * lib/clean-temp.h: Add more comments.
4598         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4599         module.
4600         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4601         * doc/glibc-functions/mkstemps.texi: Likewise.
4602         * doc/glibc-functions/mkostemps.texi: Likewise.
4603
4604 2011-04-27  Eric Blake  <eblake@redhat.com>
4605
4606         fchdir: avoid extra chdir and fix test
4607         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4608         getcwd-lgpl.
4609         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4610         have to be canonical.
4611         (canonicalize_file_name): Drop unused macro.
4612         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4613
4614         filenamecat-lgpl: fix licence
4615         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4616         when it was first created.
4617
4618         linkat, renameat: add missing dependency
4619         * modules/linkat (Depends-on): Require getcwd-lgpl.
4620         * modules/renameat (Depends-on): Likewise.
4621
4622         tests: reduce dependencies
4623         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4624         * tests/test-renameat.c (main): Likewise.
4625         * modules/linkat-tests (Depends-on): Relax dependency.
4626         * modules/renameat-tests (Depends-on): Likewise.
4627         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4628         dependency explicit.
4629
4630         save-cwd: reduce default dependency
4631         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4632         * lib/save-cwd.c: Update comments.
4633         * NEWS: Document the semantic change.
4634
4635         getcwd: enhance tests
4636         * tests/test-getcwd-lgpl.c: New file, taken from...
4637         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4638         repeat long path stress tests from m4 probe.
4639         * modules/getcwd-lgpl-tests: New module.
4640         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4641         * m4/getcwd-abort-bug.m4: Update comment.
4642         * m4/getcwd-path-max.m4: Likewise.
4643
4644         getcwd-lgpl: new module
4645         * modules/getcwd-lgpl: New module.
4646         * lib/getcwd-lgpl.c: New file.
4647         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4648         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4649         * modules/getcwd (configure.ac): Set C witness.
4650         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4651
4652         getcwd: tweak comments
4653         * m4/getcwd-abort-bug.m4: Fix comments.
4654         * m4/getcwd-path-max.m4: Likewise.
4655         * m4/getcwd.m4: Likewise.
4656
4657 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4658         and Eric Blake  <eblake@redhat.com>
4659
4660         mkstemp: replace if system version uses wrong permissions
4661         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4662         read/write mode bits set in file created by mkstemp.
4663         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4664
4665 2011-04-27  Eric Blake  <eblake@redhat.com>
4666
4667         passfd: avoid compiler warning
4668         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4669         Reported by Laine Stump.
4670
4671 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4672
4673         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4674         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4675
4676 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4677         and Eric Blake  <eblake@redhat.com>
4678
4679         mkstemp: mention clean-temp module
4680         * lib/mkstemp.c: Add comment.
4681         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4682
4683 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4684
4685         inttypes: also provide default values for 32-bit tests
4686         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4687         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4688
4689 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4690
4691         strtoumax: remove dependency on strtoimax
4692         This is like the strtoull change of yesterday.
4693         * modules/strtoumax (Files): Add lib/strtoimax.c.
4694         (Depends-on): Remove strtoimax and add verify.
4695
4696         inttypes-incomplete: new module
4697         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4698         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4699         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4700         of gl_INTTYPES_H.
4701         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4702         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4703         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4704         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4705         * modules/strtoumax, modules/xstrtol (Depends-on):
4706         Depend on inttypes-incomplete, not inttypes.
4707         * modules/inttypes-incomplete: New module, containing the contents
4708         of the old modules/inttypes module, except that the Files: section
4709         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4710         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4711         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4712         (Depends-on): Depend only on inttypes-incomplete.
4713         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4714
4715         inttypes: omit now-redundant strtoimax and strtoumax work
4716         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4717         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4718
4719         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4720         This supports apps that need pointers to strtoimax and strtoumax,
4721         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4722         nonexistent functions.  See
4723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4724         et seq.
4725         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4726         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4727         a macro.
4728         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4729
4730 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4731
4732         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4733
4734 2011-04-25  Bruno Haible  <bruno@clisp.org>
4735
4736         strtol, strtoul: Mark modules as obsolete.
4737         * modules/strtol (Status, Notice): New sections.
4738         * modules/strtoul (Status, Notice): New sections.
4739
4740 2011-04-25  Bruno Haible  <bruno@clisp.org>
4741
4742         strtod: Remove check for strtod, unless supporting old platforms.
4743         * modules/strtod-obsolete: New file.
4744         * m4/strtod-obsolete.m4: New file.
4745         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4746         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4747         * modules/strtod (Depends-on): Add strtod-obsolete.
4748         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4749
4750 2011-04-25  Bruno Haible  <bruno@clisp.org>
4751
4752         strcase: Make module obsolete.
4753         * modules/strcase (Status, Notice): New sections.
4754
4755 2011-04-25  Bruno Haible  <bruno@clisp.org>
4756
4757         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4758         * modules/dup2-obsolete: New file.
4759         * m4/dup2-obsolete.m4: New file.
4760         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4761         gl_FUNC_DUP2_OBSOLETE is not also defined.
4762         * modules/dup2 (Depends-on): Add dup2-obsolete.
4763         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4764
4765 2011-04-25  Bruno Haible  <bruno@clisp.org>
4766
4767         strnlen: Avoid memchr related link error on old obsolete platforms.
4768         * modules/memchr-obsolete: New file.
4769         * m4/memchr-obsolete.m4: New file.
4770         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4771         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4772         * modules/memchr (Depends-on): Add memchr-obsolete.
4773         * modules/strnlen (Depends-on): Likewise.
4774         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4775
4776 2011-04-25  Jim Meyering  <meyering@redhat.com>
4777
4778         maint.mk: makefile_at_at_check extend and clean up
4779         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4780         in addition to */Makefile.am.
4781         Exempt legitimate uses of @VAR@ notation, e.g.,
4782         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4783         Remove obsolete coreutils-specific comment.
4784         Prompted by discussion here:
4785         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4786
4787 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4788
4789         strtoul: remove dependency on strtol
4790         This is so that 'configure' need not check for strtol merely because
4791         the application needs strtoul.
4792         * modules/strtoul (Files): Add lib/strtol.c.
4793         (Depends-on): Remove strtol.
4794
4795         strtoull: remove dependency on strtoul
4796         This is like the strtoll change.
4797         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4798         (Depends-on): Remove strtoul.
4799
4800         strtoll: remove dependency on strtol
4801         This is so that 'configure' need not check for strtol merely because
4802         the application needs strtoll.
4803         * modules/strtoll (Files): Add lib/strtol.c.
4804         (Depends-on): Remove strtol.
4805
4806 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4807
4808         inttypes: Move some configure check to module 'imaxdiv'.
4809         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4810         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4811         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4812
4813 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4814
4815         inttypes: Move some configure check to module 'imaxabs'.
4816         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4817         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4818         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4819
4820 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4821
4822         inttypes: Remove configure tests that are not needed since 2009-12-31.
4823         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4824         gl_cv_header_working_inttypes_h.
4825
4826 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4827
4828         * modules/strnlen (Depends-on): Remove memchr.
4829         The strnlen implementation doesn't need the memchr module's fixes; see
4830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4831
4832         strtol: remove dependency on wchar
4833         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4834         * modules/strtol (Depends-on): Remove wchar.
4835
4836 2011-04-21  Eric Blake  <eblake@redhat.com>
4837
4838         passfd: fix test regression on Linux
4839         * modules/passfd-tests (configure.ac): Correct socketpair check.
4840
4841         passfd: speed up configure and drop unused code
4842         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4843         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4844         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4845         Instead of probing at configure for unix_scm_rights_bsd44_way,
4846         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4847         check to a struct member probe.
4848         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4849         (sendfd, recvfd): Update preprocessor checks.
4850         * modules/passfd (Files): Reflect rename, and drop unused file.
4851         (Depends-on): Drop unused dependency.
4852
4853         passfd: allow compilation on mingw
4854         * modules/sys_socket (Depends-on): Add sys_uio.
4855         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4856         iovec and a minimal struct msghdr.
4857         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4858         * tests/test-sys_socket.c (main): Enhance test.
4859         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4860         guaranteed to provide what we need.
4861         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4862         * modules/passfd-tests (Depends-on): Add sys_wait.
4863         * tests/test-passfd.c (main): Skip test on mingw, for now.
4864         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4865         partial 'struct msghdr' implementation.
4866
4867         sys_uio: new module
4868         * modules/sys_uio: New module.
4869         * modules/sys_uio-tests: Likewise.
4870         * lib/sys_uio.in.h: New file.
4871         * m4/sys_uio_h.m4: Likewise.
4872         * tests/test-sys_uio.c: Likewise.
4873         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4874         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4875
4876 2011-04-20  Jim Meyering  <meyering@redhat.com>
4877
4878         useless-if-before-free: avoid false-positive
4879         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4880         disjunct so that it too requires a terminating ";".  Without that,
4881         this script would identify as useless one statement from gcc that
4882         was not:
4883           if (aligned_ptr)
4884             free (((void **) aligned_ptr) [-1]);
4885
4886 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4887
4888         doc: update users.txt.
4889         * users.txt: Add barcode.
4890
4891 2011-04-19  Bruno Haible  <bruno@clisp.org>
4892
4893         ioctl: Remove link dependency on native Windows.
4894         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4895         (gl_close_fn, gl_ioctl_fn): New types.
4896         (struct fd_hook): Renamed from struct close_hook. Change type of
4897         private_close_fn field. Add private_ioctl_fn field.
4898         (close_hook_fn): Add parameter for primary close method.
4899         (execute_close_hooks, execute_all_close_hooks): Likewise.
4900         (ioctl_hook_fn): New type.
4901         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4902         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4903         argument.
4904         (unregister_fd_hook): Renamed from unregister_close_hook.
4905         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4906         Don't include <unistd.h>.
4907         (close): Remove undef.
4908         (anchor): Update.
4909         (execute_close_hooks): Add argument for primary close method.
4910         (execute_all_close_hooks): Likewise.
4911         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4912         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4913         argument. Allow each argument to be NULL.
4914         (unregister_fd_hook): Renamed from unregister_close_hook.
4915         * lib/close.c (rpl_close): Pass 'close' function pointer to
4916         execute_all_close_hooks.
4917         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4918         (primary_ioctl): New function.
4919         (ioctl): Don't call ioctlsocket here. Instead, call
4920         execute_all_ioctl_hooks.
4921         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4922         close method.
4923         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4924         (fd_sockets_hook): Renamed from close_sockets_hook.
4925         (gl_sockets_startup, gl_sockets_cleanup): Update.
4926         * modules/fd-hook: Renamed from modules/close-hook. Update.
4927         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4928         * modules/sockets (Depends-on): Likewise.
4929         * modules/ioctl (Depends-on): Add fd-hook.
4930         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4931         GNULIB_SOCKET.
4932
4933 2011-04-19  Bruno Haible  <bruno@clisp.org>
4934
4935         Move the support of O_NONBLOCK in open() to the 'open' module.
4936         * modules/nonblocking (Depends-on): Remove 'open'.
4937         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4938         gl_cv_have_open_O_NONBLOCK.
4939         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4940         O_NONBLOCK support.
4941         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4942
4943 2011-04-17  Bruno Haible  <bruno@clisp.org>
4944
4945         pipe2: Simplify code.
4946         * lib/pipe2.c (pipe2): Reduce code duplication.
4947
4948 2011-04-17  Bruno Haible  <bruno@clisp.org>
4949
4950         nonblocking: Add comment.
4951         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4952
4953 2011-04-17  Bruno Haible  <bruno@clisp.org>
4954
4955         nonblocking: Add tests for sockets.
4956         * tests/test-nonblocking-socket.sh: New file.
4957         * tests/test-nonblocking-socket-main.c: New file.
4958         * tests/test-nonblocking-socket-child.c: New file.
4959         * tests/test-nonblocking-socket.h: New file.
4960         * tests/socket-server.h: New file.
4961         * tests/socket-client.h: New file.
4962         * modules/nonblocking-socket-tests: New file.
4963         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4964
4965 2011-04-17  Bruno Haible  <bruno@clisp.org>
4966
4967         nonblocking: Add tests for pipes.
4968         * tests/test-nonblocking-pipe.sh: New file.
4969         * tests/test-nonblocking-pipe-main.c: New file.
4970         * tests/test-nonblocking-pipe-child.c: New file.
4971         * tests/test-nonblocking-pipe.h: New file.
4972         * tests/test-nonblocking-writer.h: New file.
4973         * tests/test-nonblocking-reader.h: New file.
4974         * tests/test-nonblocking-misc.h: New file.
4975         * modules/nonblocking-pipe-tests: New file.
4976         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4977
4978 2011-04-16  Bruno Haible  <bruno@clisp.org>
4979
4980         gettext: Clarify the needed programmer actions.
4981         * modules/gettext (Notice): New field.
4982         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4983
4984 2011-04-16  Bruno Haible  <bruno@clisp.org>
4985
4986         strchrnul: Tweak last commit.
4987         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4988         bug.
4989         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4990         as in _GL_FUNCDECL_SYS.
4991         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4992         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4993
4994 2011-04-15  Eric Blake  <eblake@redhat.com>
4995
4996         strchrnul: work around cygwin bug
4997         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4998         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
5000         * modules/string (Makefile.am): Substitute it.
5001         * lib/string.in.h (strchrnul): Use it.
5002
5003 2011-04-15  Bruno Haible  <bruno@clisp.org>
5004
5005         Don't require lib/stdio-write.c when only module 'stdio' is used.
5006         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
5007         invocation.
5008         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
5009
5010 2011-04-14  Bruno Haible  <bruno@clisp.org>
5011
5012         Support non-blocking pipe I/O in read() on native Windows.
5013         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
5014         (read): New declaration.
5015         * lib/read.c: New file.
5016         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
5017         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
5018         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
5019         vscanf): New declarations.
5020         * lib/stdio-read.c: New file.
5021         * m4/read.m4: New file.
5022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
5023         REPLACE_READ.
5024         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
5025         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5026         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
5027         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
5028         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
5029         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5030         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5031         * modules/read: New file.
5032         * modules/nonblocking (Files): Add lib/stdio-read.c.
5033         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
5034         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
5035         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5036         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5037         * modules/pread (Depends-on): Add read.
5038         * modules/safe-read (Depends-on): Likewise.
5039         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
5040         gets, scanf, vfscanf, vscanf): Verify signatures.
5041         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
5042         problem with non-blocking pipes.
5043         * doc/posix-functions/fgetc.texi: Likewise.
5044         * doc/posix-functions/fgets.texi: Likewise.
5045         * doc/posix-functions/fread.texi: Likewise.
5046         * doc/posix-functions/fscanf.texi: Likewise.
5047         * doc/posix-functions/getc.texi: Likewise.
5048         * doc/posix-functions/getchar.texi: Likewise.
5049         * doc/posix-functions/gets.texi: Likewise.
5050         * doc/posix-functions/scanf.texi: Likewise.
5051         * doc/posix-functions/vfscanf.texi: Likewise.
5052         * doc/posix-functions/vscanf.texi: Likewise.
5053
5054 2011-04-14  Bruno Haible  <bruno@clisp.org>
5055
5056         Support non-blocking pipe I/O in write() on native Windows.
5057         * lib/write.c (rpl_write): Split a write request that failed merely
5058         because the byte count was larger than the pipe buffer's size.
5059         * doc/posix-functions/write.texi: Mention the problem with large byte
5060         counts.
5061
5062 2011-04-14  Bruno Haible  <bruno@clisp.org>
5063
5064         wchar: Ensure that wchar_t gets defined on uClibc.
5065         * lib/wchar.in.h: On uClibc, include <stddef.h>.
5066         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
5067
5068 2011-04-13  Bruno Haible  <bruno@clisp.org>
5069
5070         safe-write, full-read: Avoid unnecessary compilation units.
5071         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
5072         (Depends-on): Remove safe-read. Add ssize_t.
5073         * modules/full-read (Files): Add lib/full-write.c.
5074         (Depends-on): Add full-write.
5075
5076 2011-04-13  Bruno Haible  <bruno@clisp.org>
5077
5078         Support non-blocking pipe I/O and SIGPIPE in pwrite().
5079         * modules/pwrite (Depends-on): Add 'write'.
5080
5081 2011-04-13  Bruno Haible  <bruno@clisp.org>
5082
5083         Support non-blocking pipe I/O in write() on native Windows.
5084         * lib/unistd.in.h (write): Enable replacement also if
5085         GNULIB_UNISTD_H_NONBLOCKING is 1.
5086         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
5087         (rpl_write): When failing to write on a non-blocking pipe, change
5088         errno from ENOSPC to EAGAIN.
5089         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
5090         putchar, puts, vfprintf, vprintf): Enable replacement also if
5091         GNULIB_STDIO_H_NONBLOCKING is 1.
5092         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
5093         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
5094         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
5095         CALL_WITH_SIGPIPE_EMULATION.
5096         (CALL_WITH_SIGPIPE_EMULATION): Use them.
5097         * m4/nonblocking.m4: New file.
5098         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
5099         for non-blocking I/O support.
5100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5101         GNULIB_UNISTD_H_NONBLOCKING.
5102         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
5103         required for non-blocking I/O support.
5104         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
5105         * modules/nonblocking (Files): Add m4/nonblocking.m4,
5106         lib/stdio-write.c, m4/asm-underscore.m4.
5107         (Depends-on): Add stdio, unistd.
5108         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
5109         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
5110         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
5111         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
5112         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
5113         problem with non-blocking pipes.
5114         * doc/posix-functions/fputc.texi: Likewise.
5115         * doc/posix-functions/fputs.texi: Likewise.
5116         * doc/posix-functions/fwrite.texi: Likewise.
5117         * doc/posix-functions/printf.texi: Likewise.
5118         * doc/posix-functions/putc.texi: Likewise.
5119         * doc/posix-functions/putchar.texi: Likewise.
5120         * doc/posix-functions/puts.texi: Likewise.
5121         * doc/posix-functions/vfprintf.texi: Likewise.
5122         * doc/posix-functions/vprintf.texi: Likewise.
5123         * doc/posix-functions/write.texi: Likewise.
5124
5125 2011-04-10  Jim Meyering  <meyering@redhat.com>
5126
5127         maint.mk: prohibit doubled words
5128         Detect them also when they're separated by a newline.
5129         There are 3 ways to customize it:
5130           - disable the test on a per file basis, as usual with rules using
5131             $(VC_LIST_EXCEPT)
5132           - replace the default doubled-word-selecting regexp (affects all files)
5133           - ignore a particular file-vs-doubled-word match
5134         I nearly used that last one to ignore the "is is" match in
5135         coreutils' NEWS file, since the text was "ls -is is ..."
5136         To do that, I would have added this line to cfg.mk:
5137           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
5138         but it would have ignored any "is is" match in NEWS.
5139         Low probability, but still...
5140         Instead, I changed the text, slightly:
5141           -  ls -is is now consistent with ls -lis in ignoring values returned
5142           +  "ls -is" is now consistent with ls -lis in ignoring values returned
5143         * top/maint.mk (prohibit_double_word_RE_): Provide default.
5144         (prohibit_doubled_word_): Define.
5145         (sc_prohibit_doubled_word): New rule.
5146         (sc_prohibit_the_the): Remove.  Subsumed by the above.
5147
5148 2011-04-10  Jim Meyering  <meyering@redhat.com>
5149
5150         maint: fix doubled-word typo in comment
5151         * m4/gethostname.m4: s/is is/it is/
5152         * m4/getdomainname.m4: Likewise.
5153
5154 2011-04-10  Jim Meyering  <meyering@redhat.com>
5155
5156         maint: remove doubled word: s/it it/it/
5157         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
5158
5159 2011-04-10  Jim Meyering  <meyering@redhat.com>
5160
5161         maint.mk: remove useless semicolon and backslash
5162         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
5163         semicolon and backslash.
5164
5165 2011-04-10  Bruno Haible  <bruno@clisp.org>
5166
5167         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
5168         * modules/stdint-tests (Depends-on): Add wchar.
5169
5170 2011-04-10  Jim Meyering  <meyering@redhat.com>
5171
5172         maint: remove doubled words in comments, e.g., s/a a/a/
5173         * lib/strptime.c (day_of_the_week): s/the the/the/
5174         * tests/test-chown.h (test_chown): s/a a/a/
5175
5176         test-chown.h: correct a cast
5177         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5178         when the destination is a stat.st_gid.
5179
5180 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
5181
5182         getaddrinfo: Fix test for sa_len member.
5183         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
5184         include <sys/types.h> before <sys/socket.h>.
5185
5186 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5187
5188         maint: change "can not" to "cannot"
5189         * doc/posix-functions/iconv.texi (iconv): This one crossed line
5190         boundaries.
5191
5192 2011-04-09  Jim Meyering  <meyering@redhat.com>
5193
5194         maint: change "a a" to "a"
5195         * tests/test-lchown.h (test_lchown): s/a a/a/
5196
5197         maint.mk: prohibit \<the the\>
5198         * top/maint.mk (sc_prohibit_the_the): New rule.
5199
5200         maint: fix "the the" in comment
5201         * lib/count-one-bits.h: s/the the/the/
5202
5203         maint: change "can not" to "cannot"
5204         But do not change the occurrences in maintain.texi or in
5205         build-aux/po/Makefile.in.in, which I presume comes from gettext.
5206         * doc/gnulib-tool.texi: s/can not/cannot/
5207         * doc/posix-functions/accept.texi (accept): Likewise.
5208         * doc/posix-functions/socket.texi (socket): Likewise.
5209         * lib/mbrtowc.c: Likewise.
5210
5211         maint.mk: prohibit use of "can not"
5212         * top/maint.mk (sc_prohibit_can_not): New rule.
5213         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
5214
5215 2011-04-09  Bruno Haible  <bruno@clisp.org>
5216
5217         careadlinkat: Guard against misuse of careadlinkatcwd.
5218         * lib/careadlinkat.c: Include <stdlib.h>.
5219         (careadlinkatcwd): Check that the fd argument is as expected.
5220
5221 2011-04-09  Bruno Haible  <bruno@clisp.org>
5222
5223         careadlinkat: Use common coding style.
5224         * lib/careadlinkat.c: Move gnulib includes after system includes.
5225
5226 2011-04-09  Bruno Haible  <bruno@clisp.org>
5227
5228         careadlinkat: Clarify specification.
5229         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
5230         (careadlinkatcwd): Add comment.
5231         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
5232
5233 2011-04-09  Bruno Haible  <bruno@clisp.org>
5234
5235         areadlinkat: Avoid link error on many platforms.
5236         * modules/areadlinkat (Depends-on): Add areadlink.
5237
5238 2011-04-09  Bruno Haible  <bruno@clisp.org>
5239
5240         allocator, careadlinkat: Fix double-inclusion guard.
5241         * lib/allocator.h: Fix double-inclusion guard.
5242         * lib/careadlinkat.h: Likewise.
5243
5244 2011-04-09  Bruno Haible  <bruno@clisp.org>
5245
5246         relocatable-prog-wrapper: Update after module 'areadlink' changed.
5247         * lib/relocwrapper.c: Update dependencies hierarchy.
5248         * build-aux/install-reloc: Update list of files to be compiled.
5249         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
5250         lib/allocator.[hc].
5251
5252 2011-04-08  Eric Blake  <eblake@redhat.com>
5253
5254         strftime: silence gnulib-tool warning
5255         * modules/strftime-tests (Depends-on): Drop automatic dependency.
5256
5257 2011-04-08  Bruno Haible  <bruno@clisp.org>
5258
5259         verify: Fix syntax error with GCC 4.6 in C++ mode.
5260         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
5261         (HAVE_STATIC_ASSERT): New macro.
5262         (verify_true, verify): Use 'static_assert' if it is supported and
5263         '_Static_assert' is not supported.
5264
5265 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5266
5267         allocator: New module.
5268         * modules/allocator, lib/allocator.c: New files.
5269         * lib/allocator.h (stdlib_allocator): New decl.
5270         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
5271         Remove.  Do not include <stdlib.h>.
5272         (careadlinkat): Use stdlib_allocator instead of rolling our own.
5273         * modules/careadlinkat (Files): Remove lib/allocator.h.
5274         (Depends-on): Add allocator.
5275
5276         stdlib: let modules use system malloc, realloc
5277         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
5278         if !_GL_USE_STDLIB_ALLOC.
5279         (malloc, realloc): Limit this change to a smaller scope.
5280
5281         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
5282         (malloc, realloc): Don't #undef; no longer needed.
5283         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5284         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5285         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5286         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5287         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5288         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5289         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5290         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5291
5292         careadlinkat: rename members to avoid problem
5293         * lib/allocator.h (struct allocator): Rename members from
5294         malloc/realloc to allocate/reallocate, to avoid problems if malloc
5295         and realloc are #define'd.  Reported by Eric Blake in
5296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
5297         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
5298
5299 2011-04-08  Eric Blake  <eblake@redhat.com>
5300
5301         nonblocking: reduce dependency
5302         * tests/test-nonblocking.c: Only test sockets when in use.
5303         * modules/nonblocking-tests (Depends-on): Drop socket.
5304         (Makefile.am): Link even if sockets are not present.
5305         * modules/pipe2-tests (Makefile.am): Likewise.
5306         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
5307
5308         pipe2: fix O_NONBLOCK support on mingw
5309         * modules/pipe2 (Depends-on): Add nonblocking.
5310         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
5311         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
5312         * tests/test-nonblocking.c (main): Likewise.
5313         * modules/pipe2-tests (Makefile.am): Avoid link failure.
5314
5315         fcntl-h: fix O_ACCMODE on cygwin
5316         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
5317         * lib/fcntl.in.h (O_ACCMODE): Fix it.
5318
5319         pipe-filter: drop O_NONBLOCK workarounds
5320         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
5321         * modules/pipe-filter-ii (Depends-on): Likewise.
5322         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
5323
5324         nonblocking: provide O_NONBLOCK for mingw
5325         * modules/nonblocking (Depends-on): Add open.
5326         (configure.ac): Set new witness macro.
5327         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
5328         * modules/fcntl-h (Makefile.am): Substitute it.
5329         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
5330         nonblocking module is in use.
5331         * lib/nonblocking.c: Adjust portability test.
5332         * lib/open.c (open): Don't let native open see gnulib flag.
5333         * tests/test-fcntl-h.c (main): Enhance test.
5334         * tests/test-open.h (test_open): Likewise.
5335         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
5336
5337         careadlinkat: fix compilation error on mingw
5338         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
5339         within struct allocator.
5340
5341 2011-04-06  Eric Blake  <eblake@redhat.com>
5342
5343         binary-io: relicense under LGPLv2+
5344         * modules/binary-io (License): Relax to LGPLv2+.
5345         Requested for libvirt, and required by pipe2.
5346
5347 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5348
5349         verify: use _Static_assert if available
5350         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
5351         (verify_true, verify): Use it if available.  This generates better
5352         diagnostics with GCC 4.6.0 and later.
5353
5354 2011-04-05  Bruno Haible  <bruno@clisp.org>
5355
5356         Remove leftover generated .h files after config.status changed.
5357
5358         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
5359         GL_GENERATE_ALLOCA_H.
5360         * modules/alloca-opt (Makefile.am): Remove alloca.h if
5361         GL_GENERATE_ALLOCA_H evaluates to false.
5362
5363         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
5364         GL_GENERATE_ARGZ_H.
5365         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
5366         evaluates to false.
5367
5368         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
5369         GL_GENERATE_BYTESWAP_H.
5370         * modules/byteswap (Makefile.am): Remove byteswap.h if
5371         GL_GENERATE_BYTESWAP_H evaluates to false.
5372
5373         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
5374         GL_GENERATE_ERRNO_H.
5375         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
5376         evaluates to false.
5377
5378         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
5379         GL_GENERATE_FLOAT_H.
5380         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
5381         evaluates to false.
5382
5383         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
5384         GL_GENERATE_FNMATCH_H.
5385         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
5386         GL_GENERATE_FNMATCH_H evaluates to false.
5387
5388         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
5389         GL_GENERATE_GLOB_H.
5390         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
5391         evaluates to false.
5392
5393         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
5394         automake conditional GL_GENERATE_ICONV_H.
5395         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
5396         evaluates to false.
5397
5398         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
5399         GL_GENERATE_NETINET_IN_H.
5400         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
5401         GL_GENERATE_NETINET_IN_H evaluates to false.
5402
5403         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5404         conditional GL_GENERATE_PTHREAD_H.
5405         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5406         * modules/pthread (Makefile.am): Remove pthread.h if
5407         GL_GENERATE_PTHREAD_H evaluates to false.
5408
5409         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5410         GL_GENERATE_SCHED_H.
5411         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5412         evaluates to false.
5413
5414         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5415         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5416         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5417         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5418
5419         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5420         GL_GENERATE_STDARG_H.
5421         * modules/stdarg (Makefile.am): Remove stdarg.h if
5422         GL_GENERATE_STDARG_H evaluates to false.
5423
5424         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5425         GL_GENERATE_STDBOOL_H.
5426         * modules/stdbool (Makefile.am): Remove stdbool.h if
5427         GL_GENERATE_STDBOOL_H evaluates to false.
5428
5429         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5430         conditional GL_GENERATE_STDDEF_H.
5431         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5432         * modules/stddef (Makefile.am): Remove stddef.h if
5433         GL_GENERATE_STDDEF_H evaluates to false.
5434
5435         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5436         GL_GENERATE_STDINT_H.
5437         * modules/stdint (Makefile.am): Remove stdint.h if
5438         GL_GENERATE_STDINT_H evaluates to false.
5439
5440         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5441         GL_GENERATE_SYSEXITS_H.
5442         * modules/sysexits (Makefile.am): Remove sysexits.h if
5443         GL_GENERATE_SYSEXITS_H evaluates to false.
5444
5445         Reported by Karl Berry and Ralf Wildenhues.
5446
5447 2011-04-05  Bruno Haible  <bruno@clisp.org>
5448
5449         Ensure to rebuild generated .h files when config.status has changed.
5450         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5451         config.status.
5452         * modules/ctype (Makefile.am): Likewise.
5453         * modules/dirent (Makefile.am): Likewise.
5454         * modules/errno (Makefile.am): Likewise.
5455         * modules/fcntl-h (Makefile.am): Likewise.
5456         * modules/float (Makefile.am): Likewise.
5457         * modules/getopt-posix (Makefile.am): Likewise.
5458         * modules/glob (Makefile.am): Likewise.
5459         * modules/iconv-h (Makefile.am): Likewise.
5460         * modules/inttypes (Makefile.am): Likewise.
5461         * modules/langinfo (Makefile.am): Likewise.
5462         * modules/locale (Makefile.am): Likewise.
5463         * modules/math (Makefile.am): Likewise.
5464         * modules/netdb (Makefile.am): Likewise.
5465         * modules/netinet_in (Makefile.am): Likewise.
5466         * modules/poll-h (Makefile.am): Likewise.
5467         * modules/pthread (Makefile.am): Likewise.
5468         * modules/pty (Makefile.am): Likewise.
5469         * modules/sched (Makefile.am): Likewise.
5470         * modules/search (Makefile.am): Likewise.
5471         * modules/selinux-h (Makefile.am): Likewise.
5472         * modules/signal (Makefile.am): Likewise.
5473         * modules/spawn (Makefile.am): Likewise.
5474         * modules/stdarg (Makefile.am): Likewise.
5475         * modules/stdbool (Makefile.am): Likewise.
5476         * modules/stddef (Makefile.am): Likewise.
5477         * modules/stdint (Makefile.am): Likewise.
5478         * modules/stdio (Makefile.am): Likewise.
5479         * modules/stdlib (Makefile.am): Likewise.
5480         * modules/string (Makefile.am): Likewise.
5481         * modules/strings (Makefile.am): Likewise.
5482         * modules/sys_file (Makefile.am): Likewise.
5483         * modules/sys_ioctl (Makefile.am): Likewise.
5484         * modules/sys_select (Makefile.am): Likewise.
5485         * modules/sys_socket (Makefile.am): Likewise.
5486         * modules/sys_stat (Makefile.am): Likewise.
5487         * modules/sys_time (Makefile.am): Likewise.
5488         * modules/sys_times (Makefile.am): Likewise.
5489         * modules/sys_utsname (Makefile.am): Likewise.
5490         * modules/sys_wait (Makefile.am): Likewise.
5491         * modules/sysexits (Makefile.am): Likewise.
5492         * modules/termios (Makefile.am): Likewise.
5493         * modules/time (Makefile.am): Likewise.
5494         * modules/unistd (Makefile.am): Likewise.
5495         * modules/wchar (Makefile.am): Likewise.
5496         * modules/wctype-h (Makefile.am): Likewise.
5497         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5498
5499 2011-04-05  Bruno Haible  <bruno@clisp.org>
5500
5501         pipe2: Relicense under LGPLv2+.
5502         * modules/pipe2 (License): Change to LGPLv2+.
5503         Requested by Eric Blake, for libvirt.
5504
5505 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5506
5507         bootstrap: compute gnulib_extra_files after updating build_aux
5508         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5509         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5510
5511 2011-04-05  Eric Blake  <eblake@redhat.com>
5512
5513         bootstrap: preserve git whitelist item sorting
5514         * build-aux/bootstrap (sort_patterns): New function.
5515         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5516
5517 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5518
5519         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5520         sc_space_tab check.
5521
5522 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5523
5524         areadlink, areadlinkat: rewrite in terms of careadlinkat
5525         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5526         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5527         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5528         (malloc, realloc): Remove #undefs.
5529         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5530         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5531         readlink, ssize_t, stdint, unistd.
5532         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5533         areadlink, stdint.
5534
5535         careadlinkat: new module
5536         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5537         * modules/careadlinkat: New files, written by me with
5538         a review and feedback from Ben Pfaff in
5539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5540
5541 2011-04-01  Bruno Haible  <bruno@clisp.org>
5542
5543         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5544         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5545         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5546         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5547         Reported by Bruce Korb <bruce.korb@gmail.com>.
5548
5549 2011-04-01  Bruno Haible  <bruno@clisp.org>
5550
5551         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5552         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5553         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5554         * modules/wcpcpy (Depends-on): Add extensions.
5555         * modules/wcpncpy (Depends-on): Likewise.
5556         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5557         systems.
5558         * doc/posix-functions/wcpncpy.texi: Likewise.
5559         * doc/posix-functions/wcwidth.texi: Likewise.
5560
5561 2011-03-31  Eric Blake  <eblake@redhat.com>
5562
5563         nonblocking: fix mingw test failures
5564         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5565         non-blocking flag on regular file.
5566         (get_nonblocking_flag): Set errno on invalid fd.
5567         * tests/test-nonblocking.c (main): Avoid test failure on
5568         directories if fchdir is not active.
5569         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5570
5571 2011-03-31  Bruno Haible  <bruno@clisp.org>
5572
5573         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5574         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5575         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5576         Reported by Simon Josefsson <simon@josefsson.org>.
5577
5578 2011-03-31  Bruno Haible  <bruno@clisp.org>
5579         and Eric Blake  <eblake@redhat.com>
5580
5581         nonblocking: new module
5582         * modules/nonblocking: New module.
5583         * modules/nonblocking-tests: Likewise.
5584         * lib/nonblocking.h: New file.
5585         * lib/nonblocking.c: Likewise.
5586         * tests/test-nonblocking.c: New test.
5587         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5588
5589 2011-03-30  Bruno Haible  <bruno@clisp.org>
5590
5591         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5592         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5593         instead of 'printf' format for GCC >= 4.4.
5594         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5595         (fprintf, printf, vfprintf, vprintf): Declare with
5596         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5597         the system's vfprintf() function.
5598         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5599
5600 2011-03-30  Eric Blake  <eblake@redhat.com>
5601
5602         passfd: fix scoping bug
5603         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5604         before sendmsg/recvmsg.
5605
5606         passfd: standardize coding conventions
5607         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5608         can be learned at compile time.
5609         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5610         ifdefs.
5611         (sendfd, recvfd): Follow gnulib code conventions.
5612
5613         passfd: fix incorrect sendmsg arguments
5614         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5615         incorrect msg_controllen value.
5616         * modules/passfd-tests (Depends-on): Check for alarm.
5617         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5618         Reported by Bastien ROUCARIES.
5619
5620 2011-03-30  Bruno Haible  <bruno@clisp.org>
5621
5622         c-strcasestr: Relicense under LGPLv2+.
5623         * modules/c-strcasestr (License): Change to LGPLv2+.
5624         Requested by Eric Blake, for libvirt.
5625
5626 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5627
5628         * users.txt: Add libidn2.  Fix libtasn1 link.
5629
5630 2011-03-30  Jim Meyering  <meyering@redhat.com>
5631
5632         tests: readlink* ("",... fails with EINVAL on newer kernels
5633         readlink and readlinkat have typically failed with ENOENT for
5634         the invalid, empty file name,  "".  However, with the advent
5635         of linux-2.6.39, they fail with EINVAL.
5636         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5637         when operating on the empty file name.
5638         * tests/test-readlink.h (test_readlink): Likewise.
5639
5640 2011-03-29  Bruno Haible  <bruno@clisp.org>
5641
5642         Relicense some modules under LGPLv2+, for libidn2.
5643         * modules/array-mergesort (License): Change to LGPLv2+.
5644         * modules/c-strcaseeq (License): Likewise.
5645         * modules/striconveh (License): Likewise.
5646         * modules/striconveha (License): Likewise.
5647         * modules/uniconv/base (License): Likewise.
5648         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5649         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5650         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5651         * modules/unictype/base (License): Likewise.
5652         * modules/unictype/bidiclass-of (License): Likewise.
5653         * modules/unictype/category-M (License): Likewise.
5654         * modules/unictype/category-none (License): Likewise.
5655         * modules/unictype/category-of (License): Likewise.
5656         * modules/unictype/category-test (License): Likewise.
5657         * modules/unictype/category-test-withtable (License): Likewise.
5658         * modules/unictype/combining-class (License): Likewise.
5659         * modules/unictype/joiningtype-of (License): Likewise.
5660         * modules/unictype/scripts (License): Likewise.
5661         * modules/uninorm/base (License): Likewise.
5662         * modules/uninorm/canonical-decomposition (License): Likewise.
5663         * modules/uninorm/composition (License): Likewise.
5664         * modules/uninorm/decompose-internal (License): Likewise.
5665         * modules/uninorm/decomposition-table (License): Likewise.
5666         * modules/uninorm/nfc (License): Likewise.
5667         * modules/uninorm/nfd (License): Likewise.
5668         * modules/uninorm/u32-normalize (License): Likewise.
5669         * modules/unistr/base (License): Likewise.
5670         * modules/unistr/u32-cpy (License): Likewise.
5671         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5672         * modules/unistr/u32-to-u8 (License): Likewise.
5673         * modules/unistr/u32-uctomb (License): Likewise.
5674         * modules/unistr/u8-check (License): Likewise.
5675         * modules/unistr/u8-mblen (License): Likewise.
5676         * modules/unistr/u8-mbtouc (License): Likewise.
5677         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5678         * modules/unistr/u8-mbtoucr (License): Likewise.
5679         * modules/unistr/u8-prev (License): Likewise.
5680         * modules/unistr/u8-strlen (License): Likewise.
5681         * modules/unistr/u8-to-u32 (License): Likewise.
5682         * modules/unistr/u8-uctomb (License): Likewise.
5683         * modules/unitypes (License): Likewise.
5684         Requested by Simon Josefsson.
5685
5686 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5687
5688         lib-symbol-visibility: Add a notice.
5689         * modules/lib-symbol-visibility (Notice): New field.
5690
5691 2011-03-29  Bruno Haible  <bruno@clisp.org>
5692
5693         getaddrinfo: Doc fix.
5694         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5695         section "fixed in Gnulib".
5696
5697 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5698
5699         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5700         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5701
5702 2011-03-26  Bruno Haible  <bruno@clisp.org>
5703
5704         unictype/property-byname: Reduce the number of load-time relocations.
5705         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5706         (UC_PROPERTY_INDEX_*): New enumeration values.
5707         (uc_property_byname): Convert an index from the lookup table to an
5708         uc_property_t.
5709         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5710         values.
5711
5712 2011-03-26  Bruno Haible  <bruno@clisp.org>
5713
5714         unictype/property-byname: Allow omitted word separators and aliases.
5715         * lib/unictype/pr_byname.gperf: Add property names without word
5716         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5717         for 'space'.
5718
5719 2011-03-26  Bruno Haible  <bruno@clisp.org>
5720
5721         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5722         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5723         also hyphens to space.
5724         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5725         without spaces.
5726         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5727
5728 2011-03-26  Bruno Haible  <bruno@clisp.org>
5729
5730         unictype/joiningtype-byname: Recognize long names as well.
5731         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5732         a long name.
5733         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5734         unictype/joiningtype_byname.h.
5735         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5736         * lib/unictype/joiningtype_byname.gperf: New file.
5737         * modules/unictype/joiningtype-byname (Files): Add
5738         lib/unictype/joiningtype_byname.gperf.
5739         (Depends-on): Add gperf.
5740         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5741         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5742         long names.
5743
5744         Tests for module 'unictype/joiningtype-longname'.
5745         * modules/unictype/joiningtype-longname-tests: New file.
5746         * tests/unictype/test-joiningtype_longname.c: New file.
5747
5748         New module 'unictype/joiningtype-longname'.
5749         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5750         * lib/unictype/joiningtype_longname.c: New file.
5751         * modules/unictype/joiningtype-longname: New file.
5752         * modules/unictype/joiningtype-all (Depends-on): Add
5753         unictype/joiningtype-longname.
5754
5755 2011-03-26  Bruno Haible  <bruno@clisp.org>
5756
5757         unictype/bidiclass-byname: Recognize long names as well.
5758         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5759         name.
5760         * lib/unictype/bidi_byname.c: Include <string.h>,
5761         unictype/bidi_byname.h.
5762         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5763         * lib/unictype/bidi_byname.gperf: New file.
5764         * modules/unictype/bidiclass-byname (Files): Add
5765         lib/unictype/bidi_byname.gperf.
5766         (Depends-on): Add gperf.
5767         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5768         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5769         long names.
5770
5771         Tests for module 'unictype/bidiclass-longname'.
5772         * modules/unictype/bidiclass-longname-tests: New file.
5773         * tests/unictype/test-bidi_longname.c: New file.
5774
5775         New module 'unictype/bidiclass-longname'.
5776         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5777         * lib/unictype/bidi_longname.c: New file.
5778         * modules/unictype/bidiclass-longname: New file.
5779         * modules/unictype/bidiclass-all (Depends-on): Add
5780         unictype/bidiclass-longname.
5781
5782 2011-03-26  Bruno Haible  <bruno@clisp.org>
5783
5784         unictype/bidi*: Rename modules.
5785         * modules/unictype/bidiclass-all: Renamed from
5786         modules/unictype/bidicategory-all.
5787         * modules/unictype/bidiclass-name: Renamed from
5788         modules/unictype/bidiclass-name.
5789         (Description): Update.
5790         * modules/unictype/bidiclass-name-tests: Renamed from
5791         modules/unictype/bidicategory-name-tests.
5792         * modules/unictype/bidiclass-byname: Renamed from
5793         modules/unictype/bidicategory-byname.
5794         (Description): Update.
5795         * modules/unictype/bidiclass-byname-tests: Renamed from
5796         modules/unictype/bidicategory-byname-tests.
5797         * modules/unictype/bidiclass-of: Renamed from
5798         modules/unictype/bidicategory-of.
5799         (Description): Update.
5800         * modules/unictype/bidiclass-of-tests: Renamed from
5801         modules/unictype/bidicategory-of-tests.
5802         * modules/unictype/bidiclass-test: Renamed from
5803         modules/unictype/bidicategory-test.
5804         (Description): Update.
5805         * modules/unictype/bidiclass-test-tests: Renamed from
5806         modules/unictype/bidicategory-test-tests.
5807         * modules/unictype/bidicategory-all: New file, a simple redirection.
5808         * modules/unictype/bidicategory-name: Likewise.
5809         * modules/unictype/bidicategory-byname: Likewise.
5810         * modules/unictype/bidicategory-of: Likewise.
5811         * modules/unictype/bidicategory-test: Likewise.
5812         * modules/unictype/property-bidi-* (Dependencies): Update.
5813         * lib/unictype/bidi_*.c: Update comment.
5814
5815 2011-03-26  Bruno Haible  <bruno@clisp.org>
5816
5817         unictype/bidi*: Rename functions, part 2.
5818         * modules/unictype/bidicategory-name (configure.ac): Update required
5819         libunistring version.
5820         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5821
5822 2011-03-25  Bruno Haible  <bruno@clisp.org>
5823
5824         New module 'unictype/combining-class-all'.
5825         * modules/unictype/combining-class-all: New file.
5826
5827         Tests for module 'unictype/combining-class-byname'.
5828         * modules/unictype/combining-class-byname-tests: New file.
5829         * tests/unictype/test-combiningclass_byname.c: New file.
5830
5831         New module 'unictype/combining-class-byname'.
5832         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5833         * lib/unictype/combiningclass_byname.c: New file.
5834         * lib/unictype/combiningclass_byname.gperf: New file.
5835         * modules/unictype/combining-class-byname: New file.
5836
5837         Tests for module 'unictype/combining-class-longname'.
5838         * modules/unictype/combining-class-longname-tests: New file.
5839         * tests/unictype/test-combiningclass_longname.c: New file.
5840
5841         New module 'unictype/combining-class-longname'.
5842         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5843         * lib/unictype/combiningclass_longname.c: New file.
5844         * modules/unictype/combining-class-longname: New file.
5845
5846         Tests for module 'unictype/combining-class-name'.
5847         * modules/unictype/combining-class-name-tests: New file.
5848         * tests/unictype/test-combiningclass_name.c: New file.
5849
5850         New module 'unictype/combining-class-name'.
5851         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5852         * lib/unictype/combiningclass_name.c: New file.
5853         * modules/unictype/combining-class-name: New file.
5854
5855 2011-03-25  Bruno Haible  <bruno@clisp.org>
5856
5857         unictype/combining-class: Rename source files.
5858         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5859         of unictype/combining.h.
5860         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5861         Update.
5862         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5863         * modules/unictype/combining-class (Description): Fix.
5864         (Files, Makefile.am): Update.
5865         * tests/unictype/test-combiningclass.c: Renamed from
5866         tests/unictype/test-combining.c.
5867         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5868
5869 2011-03-25  Bruno Haible  <bruno@clisp.org>
5870
5871         unictype: Update list of canonical combining classes.
5872         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5873
5874 2011-03-25  Bruno Haible  <bruno@clisp.org>
5875
5876         unictype/category-byname: Recognize long names as well.
5877         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5878         a long name.
5879         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5880         unictype/categ_byname.h.
5881         (UC_CATEGORY_INDEX_*): New enumeration values.
5882         (uc_general_category_byname): Use uc_general_category_lookup and
5883         convert from index to value.
5884         * lib/unictype/categ_byname.gperf: New file.
5885         * modules/unictype/category-byname (Files): Add
5886         lib/unictype/categ_byname.gperf.
5887         (Depends-on): Add gperf.
5888         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5889         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5890         long names.
5891
5892         Tests for module 'unictype/category-longname'.
5893         * modules/unictype/category-longname-tests: New file.
5894         * tests/unictype/test-categ_longname.c: New file.
5895
5896         New module 'unictype/category-longname'.
5897         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5898         * lib/unictype/categ_longname.c: New file.
5899         * modules/unictype/category-longname: New file.
5900         * modules/unictype/category-all (Depends-on): Add it.
5901
5902 2011-03-25  Bruno Haible  <bruno@clisp.org>
5903
5904         Tests for module 'unictype/category-LC'.
5905         * modules/unictype/category-LC-tests: New file.
5906         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5907
5908         New module 'unictype/category-LC'.
5909         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5910         (UC_CATEGORY_LC): New declaration.
5911         (UC_CASED_LETTER): New macro.
5912         * lib/gen-uni-tables.c (is_category_LC): New function.
5913         (output_categories): Also handle category LC.
5914         (UC_CATEGORY_MASK_LC): New enumeration value.
5915         (general_category_byname): Also handle category LC.
5916         * lib/unictype/categ_LC.c: New file.
5917         * lib/unictype/categ_LC.h: New file, automatically generated.
5918         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5919         category LC.
5920         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5921         * modules/unictype/category-LC: New file.
5922         * modules/unictype/category-byname (Depends-on): Add
5923         unictype/category-LC.
5924         * modules/unictype/category-all (Depends-on): Likewise.
5925
5926 2011-03-25  Eric Blake  <eblake@redhat.com>
5927
5928         xmalloc: revert yesterday's regression
5929         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5930         realloc's underlying behavior (allowing allocation of zero-size
5931         objects, especially if malloc-gnu is also in use).
5932
5933 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5934
5935         maint.mk: add missing version to VC-tag
5936         * top/maint.mk: git tag was missing actual tag name; add it.
5937
5938         valgrind: do leak checking, and exit with code 1 on error (not 0)
5939         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5940         to VALGRIND.
5941
5942 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5943
5944         posix-modules: say what it does.
5945         * posix-modules: Add a line to the --help output saying what it does.
5946
5947 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5948
5949         xmalloc: Do not leak if underlying realloc is C99 compatible.
5950         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5951         This avoids a leak on C99-based systems.  See
5952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5953
5954 2011-03-24  Eric Blake  <eblake@redhat.com>
5955
5956         realloc: document portability problem
5957         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5958         passing 0 size to realloc.
5959
5960 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5961
5962         doc: update users.txt
5963         * users.txt: Add cvsps, tmpwatch
5964
5965 2011-03-23  Matt Rice  <ratmice@gmail.com>
5966
5967         doc: update users.txt
5968         * users.txt: Add gdb.
5969
5970 2011-03-23  Jim Meyering  <meyering@redhat.com>
5971
5972         doc: update users.txt
5973         Looking through matches up to the following URL (there are still
5974         several more pages), I found several projects that use gnulib:
5975         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5976         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5977         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5978
5979 2011-03-22  Bruno Haible  <bruno@clisp.org>
5980
5981         unictype/bidi*: Rename functions.
5982         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5983         uc_bidi_class, uc_is_bidi_class): New declarations.
5984         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5985         uc_bidi_category_byname.
5986         (uc_bidi_category_byname): New function.
5987         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5988         u_bidi_category_name.
5989         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5990         (uc_bidi_category_name): New function.
5991         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5992         uc_bidi_category.
5993         (uc_bidi_category): New function.
5994         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5995         uc_is_bidi_category. Invoke uc_bidi_class.
5996         (uc_is_bidi_category): New function.
5997         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5998         instead of uc_bidi_category_byname.
5999         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
6000         instead of uc_bidi_category_name.
6001         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
6002         uc_bidi_category.
6003         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
6004         instead of uc_is_bidi_category.
6005
6006 2011-03-21  Bruno Haible  <bruno@clisp.org>
6007
6008         New module 'unictype/joininggroup-all'.
6009         * modules/unictype/joininggroup-all: New file.
6010
6011         Tests for module 'unictype/joininggroup-of'.
6012         * modules/unictype/joininggroup-of-tests: New file.
6013         * tests/unictype/test-joininggroup_of.c: New file.
6014         * tests/unictype/test-joininggroup_of.h: New file, automatically
6015         generated by gen-uni-tables.
6016
6017         New module 'unictype/joininggroup-of'.
6018         * modules/unictype/joininggroup-of: New file.
6019         * lib/unictype/joininggroup_of.c: New file.
6020         * lib/unictype/joininggroup_of.h: New file, automatically generated by
6021         gen-uni-tables.
6022
6023         Tests for module 'unictype/joininggroup-byname'.
6024         * modules/unictype/joininggroup-byname-tests: New file.
6025         * tests/unictype/test-joininggroup_byname.c: New file.
6026
6027         New module 'unictype/joininggroup-byname'.
6028         * modules/unictype/joininggroup-byname: New file.
6029         * lib/unictype/joininggroup_byname.c: New file.
6030         * lib/unictype/joininggroup_byname.gperf: New file.
6031
6032         Tests for module 'unictype/joininggroup-name'.
6033         * modules/unictype/joininggroup-name-tests: New file.
6034         * tests/unictype/test-joininggroup_name.c: New file.
6035
6036         New module 'unictype/joininggroup-name'.
6037         * modules/unictype/joininggroup-name: New file.
6038         * lib/unictype/joininggroup_name.c: New file.
6039         * lib/unictype/joininggroup_name.h: New file.
6040
6041         New module 'unictype/joiningtype-all'.
6042         * modules/unictype/joiningtype-all: New file.
6043
6044         Tests for module 'unictype/joiningtype-of'.
6045         * modules/unictype/joiningtype-of-tests: New file.
6046         * tests/unictype/test-joiningtype_of.c: New file.
6047         * tests/unictype/test-joiningtype_of.h: New file, automatically
6048         generated by gen-uni-tables.
6049
6050         New module 'unictype/joiningtype-of'.
6051         * modules/unictype/joiningtype-of: New file.
6052         * lib/unictype/joiningtype_of.c: New file.
6053         * lib/unictype/joiningtype_of.h: New file, automatically generated by
6054         gen-uni-tables.
6055
6056         Tests for module 'unictype/joiningtype-byname'.
6057         * modules/unictype/joiningtype-byname-tests: New file.
6058         * tests/unictype/test-joiningtype_byname.c: New file.
6059
6060         New module 'unictype/joiningtype-byname'.
6061         * modules/unictype/joiningtype-byname: New file.
6062         * lib/unictype/joiningtype_byname.c: New file.
6063
6064         Tests for module 'unictype/joiningtype-name'.
6065         * modules/unictype/joiningtype-name-tests: New file.
6066         * tests/unictype/test-joiningtype_name.c: New file.
6067
6068         New module 'unictype/joiningtype-name'.
6069         * modules/unictype/joiningtype-name: New file.
6070         * lib/unictype/joiningtype_name.c: New file.
6071
6072         unictype: Add support for Arabic shaping properties.
6073         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
6074         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
6075         declarations.
6076         (UC_JOINING_GROUP_*): New enumeration values.
6077         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
6078         declarations.
6079         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
6080         (unicode_joining_type): New variable.
6081         (UC_JOINING_GROUP_*): New enumeration values.
6082         (unicode_joining_group): New variable.
6083         (fill_arabicshaping, joining_type_as_c_identifier,
6084         output_joining_type_test, output_joining_type,
6085         joining_group_as_c_identifier, output_joining_group_test,
6086         output_joining_group): New functions.
6087         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
6088         fill_arabicshaping and output_joining_type_test, output_joining_type,
6089         output_joining_group_test, output_joining_group.
6090         Reported by Simon Josefsson.
6091
6092 2011-03-21  Jim Meyering  <meyering@redhat.com>
6093
6094         strftime: fix a bug in yesterday's change
6095         * lib/strftime.c (add): Accommodate width's initial value of -1.
6096         Otherwise, nstrftime would copy uninitialized data into
6097         the result buffer.
6098
6099 2011-03-21  Jim Meyering  <meyering@redhat.com>
6100
6101         tests: add strftime-tests module
6102         * tests/test-strftime.c: New file.
6103         * modules/strftime-tests: New module.
6104
6105 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6106
6107         strftime: don't assume a byte count fits in 'int'
6108         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
6109         found this problem by static analysis, using gcc -Wstrict-overflow
6110         (GCC 4.5.2, x86-64).  This reported an optimization that depended
6111         on an integer overflow having undefined behavior, but it turns out
6112         that the argument is a size, which might not fit in 'int' anyway,
6113
6114 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6115
6116         stdio: don't require ignore_value around fwrite
6117
6118         This patch works around libc bug 11959
6119         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
6120         Without this patch, applications must often write
6121         ignore_value (fwrite (...)) even though the ignore_value is
6122         not helpful here.  It's common to write many objects, using
6123         fwrite/printf/etc., and then use ferror to detect output error.
6124
6125         I considered making this patch optional, but decided against it,
6126         because libc is obviously being inconsistent here: there is no
6127         reason libc should insist that user code must inspect fwrite
6128         return's value without also insisting that it inspect printf's,
6129         putchar's, etc.  If user code wants to have a strict style where
6130         all these functions' values are checked (so that ferror need not
6131         be checked), we could add support for that style in a new gnulib
6132         module, but in the meantime it's better to be consistent and to
6133         support common usage.
6134
6135         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
6136         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
6137         that we are compiling in checking mode, and if not C++, and
6138         if not already wrapping fwrite for some other reason.
6139         (fwrite): #define to rpl_fwrite if the latter is defined.
6140
6141 2011-03-20  Bruno Haible  <bruno@clisp.org>
6142
6143         verror: Fix compilation error introduced on 2011-02-13.
6144         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
6145         instead of __attribute__.
6146         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6147
6148 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6149             Bruno Haible  <bruno@clisp.org>
6150
6151         socklen: do not depend on sys_socket
6152         While trying to modify Emacs to use gnulib's socklen module,
6153         I discovered a circular dependency: socklen depends on sys_socket
6154         and vice versa.  Emacs can use socklen, but it does not need
6155         sys_socket because it has its own substitute for sys/socket.h.
6156         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
6157         gl_TYPE_SOCKLEN_T.
6158         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
6159         gl_PREREQ_SYS_H_SOCKET.
6160         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
6161         gl_PREREQ_SYS_H_SOCKET.
6162         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
6163         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
6164         * modules/socklen (Depends-on): Do not depend on sys_socket.
6165         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
6166
6167 2011-03-20  Jim Meyering  <meyering@redhat.com>
6168
6169         maint.mk: sort file names *after* new transformation
6170         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
6171         prefix would have led to an unwarranted failure in GNU parted.
6172         Sort after that transformation.
6173
6174 2011-03-19  Jim Meyering  <meyering@redhat.com>
6175
6176         maint.mk: fix po-file syntax-check rule
6177         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
6178         Patch by Bruno Haible.
6179
6180 2011-03-19  Bruno Haible  <bruno@clisp.org>
6181
6182         socklen: Update comment.
6183         * m4/socklen.m4: Update comment about platforms.
6184
6185 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6186             Bruno Haible  <bruno@clisp.org>
6187
6188         inet_ntop, inet_pton: Simplify.
6189         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
6190         documented to provide socklen_t and we already depend on sys_socket.
6191         * modules/inet_pton (Depends-on): Likewise.
6192         * lib/arpa_inet.in.h: Adjust comment.
6193
6194 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6195             Bruno Haible  <bruno@clisp.org>
6196
6197         netdb: Simplify.
6198         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
6199         documented to provide socklen_t and we already depend on sys_socket.
6200         * lib/netdb.in.h: Adjust comment.
6201
6202 2011-03-19  Bruno Haible  <bruno@clisp.org>
6203
6204         sys_socket, netdb: Document problem with socklen_t.
6205         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
6206         platforms.
6207         * doc/posix-headers/netdb.texi: Likewise.
6208
6209 2011-03-18  Eric Blake  <eblake@redhat.com>
6210
6211         maint.mk: let po check work in VPATH build
6212         * top/maint.mk (po_file): Allow cfg.mk override.
6213         (sc_po_check): Allow VPATH use.
6214         Reported by Jiri Denemark.
6215
6216 2011-03-16  Jim Meyering  <meyering@redhat.com>
6217
6218         maint.mk: allow fine-grained syntax-check exclusion via Make variables
6219         Before, you would have had to create one .x-sc_ file per rule in order
6220         to exempt offending files.  Now, you may instead use a Make variable --
6221         usually defined in cfg.mk -- whose name identifies the affected rule.
6222         * top/maint.mk (_sc_excl): Define.
6223         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
6224         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
6225
6226 2011-03-13  Bruno Haible  <bruno@clisp.org>
6227
6228         ignore-value tests: Avoid warnings.
6229         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
6230         empty for gcc < 3.4.
6231
6232 2011-03-13  Bruno Haible  <bruno@clisp.org>
6233
6234         passfd: Fix link error on Solaris.
6235         * modules/passfd (Description): Correct.
6236         (Depends-on): Add socketlib.
6237         (Link): New section.
6238         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
6239
6240 2011-03-13  Bruno Haible  <bruno@clisp.org>
6241
6242         passfd: Fix link error on AIX 5.2.
6243         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
6244
6245 2011-03-13  Bruno Haible  <bruno@clisp.org>
6246
6247         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
6248         * lib/sys_socket.in.h: Include <stddef.h>.
6249         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
6250         CMSG_FIRSTHDR. Remove unused variable.
6251
6252 2011-03-13  Bruno Haible  <bruno@clisp.org>
6253
6254         passfd: Fix compilation error on OpenBSD.
6255         * lib/passfd.c: Include <sys/uio.h>.
6256
6257 2011-03-13  Bruno Haible  <bruno@clisp.org>
6258
6259         passfd test: Fix warnings.
6260         * tests/test-passfd.c: Include <sys/wait.h>.
6261         (main): Fix typo.
6262
6263 2011-03-13  Bruno Haible  <bruno@clisp.org>
6264
6265         passfd module, part 4, tweaks.
6266         * tests/test-passfd.c: Reorder includes.
6267         (main): Fix perror and printf calls.
6268
6269 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6270
6271         passfd module, part 4.
6272         * modules/passfd-tests: New file.
6273         * tests/test-passfd.c: New file.
6274
6275 2011-03-13  Jim Meyering  <meyering@redhat.com>
6276
6277         Makefile: rely on GNU make; derive syntax-check rule names
6278         Rather than requiring that each sc_ rule be listed as a dependent
6279         of "check", use features of GNU make to derive the list.
6280         * Makefile (syntax-check-rules): Define.
6281         (check): Depend on the new variable, not the hard-coded list.
6282
6283 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
6284             Bruno Haible  <bruno@clisp.org>
6285
6286         passfd module, part 3.
6287         * lib/passfd.h (recvfd): Add a flags argument.
6288         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
6289         (recvfd): Add a flags argument.
6290         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
6291         exists.
6292         * modules/passfd (Depends-on): Add cloexec.
6293         Suggested by Eric Blake.
6294
6295 2011-03-13  Bruno Haible  <bruno@clisp.org>
6296
6297         passfd module, part 2, tweaks.
6298         * modules/passfd (Files): Reorder.
6299         (Depends-on): Remove errno.
6300         (Include): Remove <sys/socket.h>, <sys/un.h>.
6301         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
6302         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
6303         specification header. Include <sys/socket.h> always. Don't include
6304         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
6305         (sendfd): Clarify that it sets errno when it fails.
6306         (recvfd): Fix specification.
6307
6308 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6309
6310         passfd module, part 2.
6311         * modules/passfd: New file.
6312         * lib/passfd.h: New file.
6313         * lib/passfd.c: New file.
6314
6315 2011-03-12  Bruno Haible  <bruno@clisp.org>
6316
6317         wcswidth, mbswidth: Avoid integer overflow.
6318         * lib/wcswidth.c: Include <limits.h>.
6319         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
6320         * lib/mbswidth.c: Include <limits.h>.
6321         (mbsnwidth): Avoid 'int' overflow.
6322         Reported by Jim Meyering.
6323
6324 2011-03-12  Bruno Haible  <bruno@clisp.org>
6325
6326         futimens, utimensat: Avoid endless recursion on Solaris 10.
6327         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
6328         Solaris.
6329         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
6330         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
6331
6332 2011-03-11  Jim Meyering  <meyering@redhat.com>
6333
6334         maint.mk: relax a regexp to accommodate other formatting styles
6335         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
6336         between "ngettext" and the following "(".
6337
6338 2011-03-11  Pádraig Brady <P@draigBrady.com>
6339
6340         maint.mk: suppress a false positive warning
6341         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
6342         diagnostics are marked with ngettext.
6343
6344 2011-03-10  Eric Blake  <eblake@redhat.com>
6345
6346         wchar: add explicit dependencies, for Tru64
6347         * modules/mbmemcasecoll (Depends-on): Add wchar.
6348         * modules/mbtowc (Depends-on): Likewise.
6349         * modules/vasnprintf (Depends-on): Likewise.
6350         * modules/unistdio/u-printf-args (Depends-on): Likewise.
6351         * modules/wctomb (Depends-on): Likewise.
6352         Reported by Peter O'Gorman.
6353
6354 2011-03-08  Bruno Haible  <bruno@clisp.org>
6355
6356         passfd module, part 1, tweaks.
6357         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
6358         Improve indentation. Improve AC_MSG_CHECKING messages.
6359         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
6360         gl_SOCKET_FAMILIES.
6361
6362 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6363
6364         passfd module, part 1.
6365         * m4/afunix.m4: New file.
6366         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
6367         sockets.
6368
6369 2011-03-08  Bruno Haible  <bruno@clisp.org>
6370
6371         regex-quote: New API.
6372         * lib/regex-quote.h: Include <stdbool.h>.
6373         (struct regex_quote_spec): New type.
6374         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6375         New declarations.
6376         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6377         'const struct regex_quote_spec *' argument.
6378         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
6379         (pcre_special): New constant.
6380         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6381         New functions.
6382         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6383         'const struct regex_quote_spec *' argument.
6384         * modules/regex-quote (Depends-on): Add stdbool.
6385         * tests/test-regex-quote.c (check): Update for new API. Add test for
6386         anchored results.
6387         * NEWS: Mention the API change.
6388         Reported by Reuben Thomas and Eric Blake.
6389
6390 2011-03-06  Bruno Haible  <bruno@clisp.org>
6391
6392         regex-quote: Fix creation of POSIX extended regular expressions.
6393         * lib/regex-quote.c (ere_special): Add grouping and alternation
6394         operators.
6395
6396 2011-03-05  Bruno Haible  <bruno@clisp.org>
6397
6398         doc: Improve doc regarding autopoint vs. gnulib.
6399         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
6400         disable autopoint while running autoreconf.
6401         Suggested by Ralf Wildenhues.
6402
6403 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6404
6405         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6406         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6407
6408 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6409
6410         parse-duration: remove xalloc.h dependency
6411         * lib/parse-duration.c (parse_period): handle NULL return from
6412         strdup instead of calling xstrdup().
6413         * modules/parse-duration: remove "xalloc" dependency
6414
6415 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6416
6417         bootstrap: honor m4_base when running aclocal
6418         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6419
6420 2011-03-02  Jim Meyering  <meyering@redhat.com>
6421
6422         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6423         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6424         on request from Matt Booth.
6425
6426 2011-03-01  Eric Blake  <eblake@redhat.com>
6427
6428         test-link: work on Hurd
6429         * tests/test-link.h (test_link): Hurd rejects linking directories
6430         with EISDIR instead of the POSIX-mandated EPERM.
6431
6432 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6433
6434         stdio: simplify by moving files to printf-posix, sigpipe
6435         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6436         since this symbol is needed only if printf is replaced.
6437         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6438         Require gl_ASM_SYMBOL_PREFIX.
6439         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6440         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6441         (Depends-on): Add 'raise'.
6442         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6443         * modules/stdio (Files): Remove lib/stdio-write.c,
6444         m4/asm-underscore.m4.
6445         (Depends-on): Remove 'raise'.
6446
6447         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6448         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6449         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6450         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6451
6452 2011-02-28  Bruno Haible  <bruno@clisp.org>
6453
6454         localcharset: Assume ANSI C behaviour of free().
6455         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6456         calling free().
6457         Suggested by Simon Josefsson <simon@josefsson.org>.
6458
6459 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6460             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6461             Bruno Haible  <bruno@clisp.org>  (tiny change)
6462
6463         On Cygwin, use /proc file system instead of win32 API.
6464         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6465         Win32 file names.
6466         (DllMain): Simplify by removing Cygwin specific code.
6467         (find_shared_library_fullname): Use Linux specific implementation also
6468         for Cygwin.
6469         (get_shared_library_fullname): Update accordingly.
6470         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6471         Win32 file names.
6472         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6473         Cygwin specific code.
6474
6475 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6476             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6477
6478         Fix OpenMP flag detection for various Fortran compilers.
6479         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6480         OpenMP-conditional compilation construct, to force compile
6481         failure with missing OpenMP flag.
6482         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6483
6484 2011-02-25  Eric Blake  <eblake@redhat.com>
6485
6486         strstr: expand test coverage
6487         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6488         compilation.
6489         * tests/test-memmem.c (main): Duplicate tests.
6490         * tests/test-strcasestr.c (main): Likewise.
6491         * tests/test-c-strcasestr.c (main): Likewise.
6492
6493 2011-02-25  Jim Meyering  <meyering@redhat.com>
6494
6495         maint.mk: detect missing-NL-at-EOF, too
6496         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6497         it also detects when a file lacks a newline at EOF.
6498         (require_exactly_one_NL_at_EOF_): Renamed from
6499         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6500         since people may well have .x-sc_... file names tied to the
6501         existing name.  Suggested by Eric Blake.
6502
6503 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6504
6505         dirname: move m4/dos.m4 functionality into lib/dosname.h
6506
6507         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6508         extracts symbols from it, puts them into config.h; but it's much
6509         easier to use the symbols directly.  filename.h already does this,
6510         but it disagrees with dos.m4 in some respects.  This patch
6511         introduces a different include file dosname.h that packages up
6512         dos.m4, and then later we can work on merging filename.h and
6513         dosname.h.  Applications that need only the easy-to-configure
6514         symbols should consider including dosname.h rather than dirname.h.
6515         * NEWS: Mention incompatible changes.
6516         * m4/dos.m4: Remove.
6517         * lib/dosname.h, modules/dosname: New files.
6518         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6519         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6520         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6521         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6522         Include dosname.h, not dirname.h.
6523         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6524         Include dosname.h, for definitions of symbols like ISSLASH
6525         that used to be in config.h.
6526         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6527         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6528         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6529         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6530         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6531         * modules/rmdir (Files): Likewise.
6532         * modules/stat (Files): Likewise.
6533         * modules/unlink (Files): Likewise.
6534         * modules/dirname-lgpl (Depends-on): Add dosname.
6535         * modules/lstat (Depends-on): Likewise.
6536         * modules/openat (Depends-on): Likewise.
6537         * modules/rmdir (Depends-on): Likewise.
6538         * modules/savewd (Depends-on): Likewise.
6539         * modules/stat (Depends-on): Likewise.
6540         * modules/unlink (Depends-on): Likewise.
6541         * modules/openat (Depends-on): Remove dirname-lgpl.
6542         * modules/savewd (Depends-on): Likewise.
6543         * tests/test-dirname.c: Do not use removed symbols like
6544         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6545         the remaining symbols, e.g., ISSLASH ('\\').
6546
6547 2011-02-25  Eric Blake  <eblake@redhat.com>
6548
6549         strstr: revert patches that introduced bug and pessimization
6550         * lib/str-two-way.h: Add another reference.
6551         (two_way_short_needle, two_way_long_needle): Revert changes from
6552         2011-02-24; they pessimize search speed.
6553         (critical_factorization): Partially revert changes from
6554         2010-06-22; they violate the requirement that the left half of the
6555         needle be smaller than the period of the needle.
6556
6557 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6558
6559         filenamecat: remove unnecessary dependency on dirname-lgpl
6560         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6561         is no direct dependency, just an indirect one via filenamecat-lgpl.
6562
6563         remove: remove unnecessary use of m4/dos.m4
6564         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6565         * modules/remove (FILES): Remove m4/dos.m4.
6566
6567         * lib/openat-proc.c: Don't include dirname.h; not needed.
6568
6569         backupfile: remove unnecessary use of m4/dos.m4
6570         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6571         of its symbols are used by the backupfile code.  backupfile.c does
6572         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6573         for the rare case of programs that want all their backup file
6574         names to live within 8+3 limits, and dos.m4 doesn't address that.
6575         * modules/backupfile (Files): Remove m4/dos.m4.
6576
6577 2011-02-24  Jim Meyering  <meyering@redhat.com>
6578
6579         strstr: fix a bug whereby strstr would mistakenly return NULL
6580         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6581         in period calculation.
6582         (two_way_long_needle): Likewise.
6583         The original problem was reported by Mike Stump in
6584         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6585         Ralf Wildenhues provided the short needle and haystack.
6586         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6587         Add a more involved test to trigger the bug in two_way_long_needle.
6588
6589 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6590
6591         gnulib-tool: remove use of bold display in help screen
6592         * gnulib-tool (func_usage): Do not use bold display anymore in the
6593         help screen.  That was just meant to be a temporary emphasis for a
6594         backward-incompatible change.
6595
6596 2011-02-23  Bruno Haible  <bruno@clisp.org>
6597
6598         Fix misindentation of preprocessor directives.
6599         * lib/argp-namefrob.h: Reindent preprocessor directives.
6600         * lib/getopt_int.h (struct _getopt_data): Likewise.
6601         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6602         * lib/vasnprintf.c (decode_long_double): Likewise.
6603         * tests/test-argmatch.c: Insert blank lines, for clarity.
6604         * tests/test-exclude.c: Likewise.
6605
6606 2011-02-22  Bruno Haible  <bruno@clisp.org>
6607
6608         ioctl: Fix for MacOS X in 64-bit mode.
6609         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6610         value.
6611         Suggested by Eric Blake.
6612         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6613
6614 2011-02-22  Jim Meyering  <meyering@redhat.com>
6615
6616         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6617         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6618         in lib/.
6619
6620 2011-02-22  Eric Blake  <eblake@redhat.com>
6621
6622         maint: avoid any CDPATH issue
6623         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6624
6625         maint: adjust cpp indentation for my modules, as well
6626         * Makefile (sc_cpp_indent_check): Add my name.
6627         * lib/fbufmode.c: Filter through cppi.
6628         * lib/fpurge.c: Likewise.
6629         * lib/freadable.c: Likewise.
6630         * lib/freading.c: Likewise.
6631         * lib/fwritable.c: Likewise.
6632         * lib/fwriting.c: Likewise.
6633         * lib/sigaction.c: Likewise.
6634
6635 2011-02-22  Jim Meyering  <meyering@redhat.com>
6636
6637         maint: adjust cpp indentation to reflect nesting depth
6638         I.e., in a block of code that begins with an unnested "#if",
6639         put one space between the "#" in column 1 and following token.
6640         For example,
6641         -#include <sys/vfs.h>
6642         +# include <sys/vfs.h>
6643         Do this only in .c files that are part of a module I maintain.
6644         * lib/linkat.c: Filter through cppi.
6645         * lib/nanosleep.c: Likewise.
6646         * lib/openat.c: Likewise.
6647         * lib/openat-die.c: Likewise.
6648         * lib/dup3.c: Likewise.
6649         * lib/fchownat.c: Likewise.
6650         * lib/flock.c: Likewise.
6651         * lib/fsync.c: Likewise.
6652         * lib/fts.c: Likewise.
6653         * lib/getpass.c: Likewise.
6654         * lib/gettimeofday.c: Likewise.
6655         * lib/userspec.c: Likewise.
6656         * Makefile (sc_cpp_indent_check): New rule, to check this.
6657
6658 2011-02-22  Bruno Haible  <bruno@clisp.org>
6659
6660         New module 'wctomb'.
6661         * lib/stdlib.in.h (wctomb): New declaration.
6662         * lib/wctomb.c: New file.
6663         * lib/wctomb-impl.h: New file.
6664         * m4/wctomb.m4: New file.
6665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6666         REPLACE_WCTOMB.
6667         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6668         REPLACE_WCTOMB.
6669         * modules/wctomb: New file.
6670         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6671         * doc/posix-functions/wctomb.texi: Mention the new module.
6672         * modules/wctob (Depends-on): Add wctomb.
6673
6674 2011-02-22  Bruno Haible  <bruno@clisp.org>
6675
6676         New module 'mbtowc'.
6677         * lib/stdlib.in.h (mbtowc): New declaration.
6678         * lib/mbtowc.c: New file.
6679         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6680         * m4/mbtowc.m4: New file.
6681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6682         REPLACE_MBTOWC.
6683         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6684         REPLACE_MBTOWC.
6685         * modules/mbtowc: New file.
6686         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6687         * doc/posix-functions/mbtowc.texi: Mention the new module.
6688         * modules/btowc (Depends-on): Add mbtowc.
6689
6690 2011-02-22  Bruno Haible  <bruno@clisp.org>
6691
6692         wcrtomb: Add more tests for native Windows platforms.
6693         * tests/test-wcrtomb-w32-1.sh: New file.
6694         * tests/test-wcrtomb-w32-2.sh: New file.
6695         * tests/test-wcrtomb-w32-3.sh: New file.
6696         * tests/test-wcrtomb-w32-4.sh: New file.
6697         * tests/test-wcrtomb-w32-5.sh: New file.
6698         * tests/test-wcrtomb-w32.c: New file.
6699         * modules/wcrtomb-tests (Files): Add them.
6700         (Makefile.am): Arrange to run these tests.
6701         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6702         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6703
6704 2011-02-20  Bruno Haible  <bruno@clisp.org>
6705
6706         wcrtomb: Enhance test.
6707         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6708
6709 2011-02-20  Bruno Haible  <bruno@clisp.org>
6710
6711         mbrtowc: Tiny optimization.
6712         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6713
6714 2011-02-20  Jim Meyering  <meyering@redhat.com>
6715
6716         test-exclude.c: remove unmatched #endif
6717         * tests/test-exclude.c: Remove stray #endif, left over from
6718         the change of a week ago.
6719
6720 2011-02-19  Jim Meyering  <meyering@redhat.com>
6721
6722         git-version-gen: skip "-dirty" check when appropriate
6723         * build-aux/git-version-gen: Don't run any git commands when the
6724         version string comes from .tarball-version.  Prior to this, we
6725         would run git update-index --refresh even from a just-unpacked
6726         tarball directory, and that could affect a .git/ directory in a
6727         parent of the build directory.  Reported by Mike Frysinger.
6728
6729 2011-02-19  Bruno Haible  <bruno@clisp.org>
6730
6731         unictype/property-byname: Reduce the size of the 'data' segment.
6732         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6733
6734 2011-02-19  Bruno Haible  <bruno@clisp.org>
6735
6736         unictype/scripts: Reduce the size of the 'data' segment.
6737         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6738         '%pic'.
6739         * lib/unictype/scripts_byname.gperf: Regenerated.
6740
6741 2011-02-19  Bruno Haible  <bruno@clisp.org>
6742
6743         stdint: Update documentation.
6744         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6745
6746 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6747
6748         stdint: omit redundant check for wchar.h
6749         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6750         always tests whether wchar.h exists, so remove the now-redundant test.
6751
6752 2011-02-18  Bruno Haible  <bruno@clisp.org>
6753
6754         stdint: Cut dependency to module 'wchar'.
6755         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6756         include the necessary prerequisites.
6757         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6758         * modules/stdint (Depends-on): Remove wchar.
6759         (Makefile.am): Substitute HAVE_WCHAR_H.
6760         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6761
6762 2011-02-18  Eric Blake  <eblake@redhat.com>
6763
6764         longlong: skip, rather than fail, on cross-compilation
6765         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6766         when cross-compiling; regression from 2011-02-16.
6767
6768 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6769
6770         * NEWS: Mention 2011-02-08 change to stdlib.
6771
6772 2011-02-17  Bruno Haible  <bruno@clisp.org>
6773
6774         getloadavg: Add comments about platforms.
6775         * m4/getloadavg.m4: Add comment.
6776         * lib/getloadavg.c: Likewise.
6777
6778 2011-02-17  Bruno Haible  <bruno@clisp.org>
6779
6780         getloadavg: Fix link error on Solaris 2.6.
6781         * modules/getloadavg (Link): New section.
6782         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6783         linking test-getloadavg.
6784         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6785         getloadavg.
6786
6787 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6788
6789         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6790         It was 'int', but this doesn't match the IRIX 6.5 manual.
6791         Suggested by Bruno Haible in
6792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6793
6794 2011-02-17  Bruno Haible  <bruno@clisp.org>
6795
6796         havelib: Fix comments.
6797         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6798         change.
6799
6800 2011-02-17  Bruno Haible  <bruno@clisp.org>
6801
6802         havelib: Update config.rpath.
6803         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6804
6805 2011-02-17  Bruno Haible  <bruno@clisp.org>
6806
6807         getloadavg test: Add some plausibility checks.
6808         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6809         is improbable.
6810
6811 2011-02-16  Eric Blake  <eblake@redhat.com>
6812
6813         maintainer-makefile: make syntax-check a no-op from tarballs
6814         * top/maint.mk (no-vc-detected): New rule.
6815         (local-checks-available): Use it to avoid hanging if someone tries
6816         'make syntax-check' from a tarball.  Also append to any non-syntax
6817         checks already defined in cfg.mk.
6818
6819 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6820
6821         longlong: tune, particularly for common case of c99
6822
6823         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6824         or running anything if c99, or if unsigned long long int does not
6825         work.  In either case, we know the answer without further tests.
6826         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6827         it at most once, and use its results for both long long int and
6828         unsigned long long int.  This is more likely to be efficient in
6829         the common case where the program wants to check for both long
6830         long int and unsigned long long int.
6831         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6832         since the answer is already known.
6833
6834 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6835
6836         getloadavg: set errno
6837         * lib/getloadavg.c: Set errno when returning -1.  If no other
6838         error number looks appropriate, set it to ENOSYS if the getloadavg
6839         looks like it can't possibly ever work, ENOTSUP otherwise.
6840         Suggested by Bruno Haible in
6841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6842
6843         getloadavg: trim unused parts and speed up 'configure'
6844         * NEWS: Document this.
6845         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6846         always compiled if getloadavg is absent.
6847         Move test code to ...
6848         * tests/test-getloadavg.c: New file, containing previous
6849         contents of test from lib/getloadavg.c.  It also contains
6850         suggestions by Bruno Haible in
6851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6852         * modules/getloadavg-tests: New file.
6853         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6854         Do tests in the same order as they're needed for getloadavg.c.
6855         Omit setgid-related tests that generate symbols KMEM_GROUP,
6856         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6857         Do only the tests that are needed to see whether the system has
6858         getloadavg, moving the other tests into ...
6859         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6860         NLIST_NAME_UNION; nobody should be using it.  Do not define
6861         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6862         relevant, as the user of this module shouldn't care how getloadavg
6863         is implemented.
6864
6865         getloadavg: omit unused var
6866         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6867
6868 2011-02-15  Jim Meyering  <meyering@redhat.com>
6869
6870         doc: update users.txt
6871         * users.txt: Update iwhd's URL.
6872
6873 2011-02-13  Bruno Haible  <bruno@clisp.org>
6874
6875         Consistent macro naming for macros that use GCC __attribute__.
6876         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6877         _ATTRIBUTE_NONNULL_.
6878         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6879         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6880         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6881         ATTRIBUTE_DEPRECATED.
6882         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6883         ATTRIBUTE_NORETURN.
6884         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6885         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6886         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6887         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6888         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6889         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6890         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6891         ATTRIBUTE_SENTINEL.
6892         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6893         ATTRIBUTE_RETURN_CHECK.
6894         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6895         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6896         ATTRIBUTE_NORETURN.
6897         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6898         Reported by Paul Eggert.
6899
6900 2011-02-13  Bruno Haible  <bruno@clisp.org>
6901
6902         Don't interfere with a program's definition of __attribute__.
6903         * lib/argp.h (__attribute__): Remove definition.
6904         (_GL_ATTRIBUTE_FORMAT): New macro.
6905         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6906         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6907         (_GL_ATTRIBUTE_FORMAT): New macro.
6908         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6909         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6910         GCC 3 or newer.
6911         * lib/error.h (__attribute__): Remove definition.
6912         (_GL_ATTRIBUTE_FORMAT): New macro.
6913         (error, error_at_line): Use it.
6914         * lib/hash.h (__attribute__): Remove definition.
6915         (ATTRIBUTE_WUR): Update definition. Define always.
6916         * lib/openat.h (__attribute__): Remove definition.
6917         (ATTRIBUTE_NORETURN): Update definition. Define always.
6918         * lib/sigpipe-die.h (__attribute__): Remove definition.
6919         (ATTRIBUTE_NORETURN): Update definition. Define always.
6920         * lib/vasnprintf.h (__attribute__): Remove definition.
6921         (_GL_ATTRIBUTE_FORMAT): New macro.
6922         (asnprintf, vasnprintf): Use it.
6923         * lib/xalloc.h (__attribute__): Remove definition.
6924         (ATTRIBUTE_NORETURN): Update definition. Define always.
6925         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6926         * lib/xmemdup0.h (__attribute__): Remove definition.
6927         (ATTRIBUTE_NORETURN): Update definition. Define always.
6928         * lib/xprintf.h (__attribute__): Remove definition.
6929         (_GL_ATTRIBUTE_FORMAT): New macro.
6930         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6931         * lib/xstrtol.h (__attribute__): Remove definition.
6932         (ATTRIBUTE_NORETURN): Update definition. Define always.
6933         * lib/xvasprintf.h (__attribute__): Remove definition.
6934         (_GL_ATTRIBUTE_FORMAT): New macro.
6935         (xasprintf, xvasprintf): Use it.
6936         * tests/test-argmatch.c (__attribute__): Remove definition.
6937         (ATTRIBUTE_NORETURN): Update definition. Define always.
6938         * tests/test-exclude.c (__attribute__): Remove definition.
6939         (ATTRIBUTE_NORETURN): Update definition. Define always.
6940         Reported by Paul Eggert.
6941
6942 2011-02-13  Bruno Haible  <bruno@clisp.org>
6943
6944         mbrtowc: Add more tests for native Windows platforms.
6945         * tests/test-mbrtowc-w32-1.sh: New file.
6946         * tests/test-mbrtowc-w32-2.sh: New file.
6947         * tests/test-mbrtowc-w32-3.sh: New file.
6948         * tests/test-mbrtowc-w32-4.sh: New file.
6949         * tests/test-mbrtowc-w32-5.sh: New file.
6950         * tests/test-mbrtowc-w32.c: New file.
6951         * modules/mbrtowc-tests (Files): Add them.
6952         (Makefile.am): Arrange to run these tests.
6953         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6954         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6955
6956 2011-02-13  Bruno Haible  <bruno@clisp.org>
6957
6958         mbrtowc: Work around native Windows bug.
6959         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6960         guess when no suitable locale for testing was found.
6961         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6962
6963 2011-02-13  Bruno Haible  <bruno@clisp.org>
6964
6965         mbsinit: Work around mingw bug.
6966         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6967         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6968         Windows.
6969         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6970
6971 2011-02-13  Bruno Haible  <bruno@clisp.org>
6972
6973         mbsinit: Don't crash for a NULL argument.
6974         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6975         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6976
6977 2011-02-13  Bruno Haible  <bruno@clisp.org>
6978
6979         Don't interfere with a program's definition of __attribute__.
6980         * lib/stdio.in.h (__attribute__): Remove definition.
6981         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6982         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6983         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6984         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6985         * lib/string.in.h (__attribute__): Remove definition.
6986         Reported by Paul Eggert.
6987
6988 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6989
6990         stdlib: don't get in the way of non-GCC __attribute__
6991         See thread starting at
6992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6993         Revert previous stdlib change, installing the following instead:
6994         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6995         to get in the way of a non-GCC compiler that supports __attribute__.
6996         (_GL_ATTRIBUTE_RETURN): New macro.
6997         (_Exit): Use it instead of __attribute__.
6998
6999 2011-02-12  Bruno Haible  <bruno@clisp.org>
7000
7001         quotearg test: Avoid test failure on mingw.
7002         * tests/test-quotearg.sh: Convert the locale identifier from native
7003         Windows syntax to Unix syntax.
7004
7005 2011-02-12  Bruno Haible  <bruno@clisp.org>
7006
7007         setlocale: Prefer gnulib's override over libintl's override.
7008         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
7009         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
7010         GNULIB_defined_setlocale is set.
7011
7012 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7013
7014         stdlib: support non-GCC __attribute__
7015
7016         Fix a serious and tricky problem encountered when attempting to
7017         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
7018         5.5, but it crashed due to memory corruption on Solaris 10 with
7019         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
7020         bits that are otherwise zero.  This tagging is optional inside
7021         Emacs but is preferred and is used when __attribute__ ((__aligned
7022         (8))) works, as it does with both recent-enough GCC and with Sun C
7023         5.11.  However, Sun C 5.11 is not GCC and does not #define
7024         __GNUC__ and __GNUC_MINOR__.
7025
7026         When I added the getloadavg module to Emacs, it brought in
7027         stdlib.in.h, which contained this fragment:
7028
7029            #ifndef __attribute__
7030            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
7031            #  define __attribute__(Spec)   /* empty */
7032            # endif
7033            #endif
7034
7035         When files that include <stdlib.h> were compiled with Sun C 5.11,
7036         the above code disabled __attribute__ ((__aligned (8))), which
7037         caused variables to not be properly aligned, which eventually led
7038         to the pointer corruption mentioned above.  (This was a bit hard
7039         to diagnose, unfortunately.)
7040
7041         Several "#define __attribute__(X) /* empty */" code snippets need
7042         to be eradicated from Gnulib to work with non-GCC compilers that
7043         support __attribute__.  The Autoconf way to do this is to test for
7044         each kind of attribute that we want support for, and selectively
7045         enable that in source code.
7046
7047         Fix this problem just for stdlib.h, by adding a test for the
7048         __noreturn__ attribute, and change stdlib.in.h to use that test
7049         when needed.  This technique can be easily generalized to the
7050         other *.in.h files and attributes, and a similar technique can be
7051         used for *.h and *.c files.  This patch is enough to solve the
7052         problem for Emacs + getloadavg, and I thought I'd publish it for
7053         feedback before undertaking further, similar fixes in other
7054         modules.
7055
7056         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
7057         because it's not needed for stdlib.h.  It merely substitutes the
7058         value directly into stdlib.h.  We may well need to #define it, or
7059         similar symbols, for other modules, but it's nice to also have an
7060         option to not #define it for applications like Emacs that do not
7061         need it.
7062
7063         * lib/stdlib.in.h (__attribute__): Do not #define.
7064         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
7065         be defined only if the _Exit module is also used.
7066         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
7067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
7068         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
7069         platforms.
7070         * modules/_Exit (Files): Add m4/attribute.m4.
7071         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
7072         * m4/attribute.m4: New file.
7073
7074 2011-02-12  Bruno Haible  <bruno@clisp.org>
7075
7076         wcsrtombs: Work around bug on native Windows.
7077         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
7078         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
7079         instead of len.
7080         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
7081
7082 2011-02-12  Bruno Haible  <bruno@clisp.org>
7083
7084         mbsrtowcs: Work around bug on native Windows.
7085         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
7086         against mingw bug.
7087         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
7088
7089 2011-02-12  Bruno Haible  <bruno@clisp.org>
7090
7091         Avoid setlocale bugs in tests.
7092         * modules/btowc (Dependencies): Add setlocale.
7093         * modules/c-strcase (Dependencies): Likewise.
7094         * modules/mbmemcasecmp (Dependencies): Likewise.
7095         * modules/mbmemcasecoll (Dependencies): Likewise.
7096         * modules/mbrtowc (Dependencies): Likewise.
7097         * modules/mbscasecmp (Dependencies): Likewise.
7098         * modules/mbscasestr (Dependencies): Likewise.
7099         * modules/mbschr (Dependencies): Likewise.
7100         * modules/mbscspn (Dependencies): Likewise.
7101         * modules/mbsinit (Dependencies): Likewise.
7102         * modules/mbsncasecmp (Dependencies): Likewise.
7103         * modules/mbsnrtowcs (Dependencies): Likewise.
7104         * modules/mbspbrk (Dependencies): Likewise.
7105         * modules/mbspcasecmp (Dependencies): Likewise.
7106         * modules/mbsrchr (Dependencies): Likewise.
7107         * modules/mbsrtowcs (Dependencies): Likewise.
7108         * modules/mbsspn (Dependencies): Likewise.
7109         * modules/mbsstr (Dependencies): Likewise.
7110         * modules/nl_langinfo (Dependencies): Likewise.
7111         * modules/quotearg (Dependencies): Likewise.
7112         * modules/unicase/locale-language (Dependencies): Likewise.
7113         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
7114         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
7115         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
7116         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
7117         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
7118         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
7119         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
7120         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
7121         * modules/vasnprintf-posix (Dependencies): Likewise.
7122         * modules/wcrtomb (Dependencies): Likewise.
7123         * modules/wcsnrtombs (Dependencies): Likewise.
7124         * modules/wcsrtombs (Dependencies): Likewise.
7125
7126 2011-02-12  Bruno Haible  <bruno@clisp.org>
7127
7128         setlocale: Workaround native Windows bug.
7129         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
7130         succeeds but sets LC_CTYPE to "C", report a failure.
7131         * tests/test-setlocale2.sh: New file.
7132         * tests/test-setlocale2.c: New file.
7133         * modules/setlocale-tests (Files): Add the new files.
7134         (Makefile.am): Enable test-setlocale2.sh test.
7135         * doc/posix-functions/setlocale.texi: Mention workaround.
7136
7137 2011-02-11  Bruno Haible  <bruno@clisp.org>
7138
7139         Tests for module 'setlocale'.
7140         * modules/setlocale-tests: New file.
7141         * tests/test-setlocale1.sh: New file.
7142         * tests/test-setlocale1.c: New file.
7143
7144         New module 'setlocale'.
7145         * lib/locale.in.h (setlocale): New declaration.
7146         * lib/setlocale.c: New file, based on
7147         gettext/gettext-runtime/intl/setlocale.c.
7148         * m4/setlocale.m4: New file.
7149         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
7150         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
7151         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
7152         REPLACE_SETLOCALE.
7153         * modules/setlocale: New file.
7154         * tests/test-locale-c++.cc: Test the declaration of setlocale.
7155         * doc/posix-functions/setlocale.texi: Mention the new module.
7156
7157 2011-02-11  Bruno Haible  <bruno@clisp.org>
7158
7159         Prepare for locale dependent tests on mingw.
7160         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
7161         because it has the wrong locale encoding.
7162         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
7163         French_France.1252 instead of "fr".
7164         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
7165         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
7166         because it has the wrong locale encoding.
7167         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
7168         native Windows, try Turkish_Turkey.65001.
7169         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
7170         Chinese_China.54936.
7171
7172         Prepare for locale dependent tests on mingw.
7173         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
7174         differently.
7175         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
7176         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
7177         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7178         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7179
7180 2011-02-11  Eric Blake  <eblake@redhat.com>
7181
7182         strptime: avoid compiler warnings
7183         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
7184         compiler warnings about dead code.
7185         Reported by Daniel P. Berrange.
7186
7187 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
7188
7189         doc: update users.txt
7190         * users.txt: Add rcs.
7191
7192 2011-02-10  John W. Eaton  <jwe@gnu.org>
7193
7194         doc: update users.txt
7195         * users.txt: Add octave.
7196
7197 2011-02-10  Jim Meyering  <meyering@redhat.com>
7198
7199         doc: update users.txt
7200         * users.txt: Add iwhd.
7201
7202 2011-02-09  Bruno Haible  <bruno@clisp.org>
7203
7204         gnulib-tool: Make copyright notice adjustment more robust.
7205         * gnulib-tool (func_import): In sed_transform_main_lib_file,
7206         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
7207         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
7208         License".
7209         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
7210
7211 2011-02-06  Bruno Haible  <bruno@clisp.org>
7212
7213         New module 'towctrans'.
7214         * modules/towctrans: New file.
7215         * lib/wctype.in.h (towctrans): New declaration.
7216         * lib/towctrans.c: New file.
7217         * lib/towctrans-impl.h: New file.
7218         * m4/towctrans.m4: New file.
7219         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
7220         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
7221         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
7222         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
7223         * doc/posix-functions/towctrans.texi: Mention the new module.
7224
7225 2011-02-06  Bruno Haible  <bruno@clisp.org>
7226
7227         New module 'wctrans'.
7228         * modules/wctrans: New file.
7229         * lib/wctype.in.h (wctrans): New declaration.
7230         * lib/wctrans.c: New file.
7231         * lib/wctrans-impl.h: New file.
7232         * m4/wctrans.m4: New file.
7233         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
7234         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
7235         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
7236         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
7237         * doc/posix-functions/wctrans.texi: Mention the new module.
7238
7239 2011-02-06  Bruno Haible  <bruno@clisp.org>
7240
7241         New module 'iswctype'.
7242         * modules/iswctype: New file.
7243         * lib/wctype.in.h (iswctype): New declaration.
7244         * lib/iswctype.c: New file.
7245         * lib/iswctype-impl.h: New file.
7246         * m4/iswctype.m4: New file.
7247         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
7248         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
7249         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
7250         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
7251         * doc/posix-functions/iswctype.texi: Mention the new module and the
7252         HP-UX 11.00 problem.
7253
7254 2011-02-06  Bruno Haible  <bruno@clisp.org>
7255
7256         New module 'wctype'.
7257         * modules/wctype: Change to represent the wctype() substitute.
7258         * lib/wctype.in.h (wctype): New declaration.
7259         * lib/wctype.c: New file.
7260         * lib/wctype-impl.h: New file.
7261         * m4/wctype.m4: New file.
7262         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
7263         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
7264         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
7265         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
7266         * doc/posix-functions/wctype.texi: Mention the new module and the
7267         HP-UX 11.00 problem.
7268
7269 2011-02-06  Bruno Haible  <bruno@clisp.org>
7270
7271         wctype-h: Ensure wctype_t and wctrans_t are defined.
7272         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
7273         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7274         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7275         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
7276         HAVE_WCTRANS_T.
7277         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
7278
7279 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7280
7281         flock: fix license typo
7282
7283         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
7284         omitted.
7285
7286 2011-02-08  Bruno Haible  <bruno@clisp.org>
7287
7288         Split large sed scripts, for HP-UX sed.
7289         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
7290         to avoid HP-UX limit of 99 commands, in the near future.
7291         * modules/stdlib (Makefile.am): Likewise.
7292         * modules/unistd (Makefile.am): Likewise.
7293         * modules/wchar (Makefile.am): Likewise.
7294         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7295         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
7296         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
7297
7298 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7299             Bruno Haible  <bruno@clisp.org>
7300
7301         stdlib: improve random_r modularization
7302         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
7303         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
7304         you also need the random_r module to get this material right.
7305         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
7306         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
7307         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
7308
7309 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7310
7311         stdlib: don't depend on stdint
7312         * lib/stdlib.in.h: Don't include <stdint.h> merely because
7313         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
7314         be independent of whether stdint.h is needed.
7315         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
7316         here, instead of ...
7317         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
7318         struct random_data should be using the random_r module, not just
7319         the stdlib module (which wouldn't make sense: what package needs
7320         just struct random_data without also needing random_r?).
7321         * modules/stdlib (Depends-on): Remove stdint.
7322
7323         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
7324         See the thread rooted at
7325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
7326         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
7327         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
7328         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
7329         __VMS)); previously it was always included (via fcntl--.h).
7330         (getloadavg): Do not use c_strtod.  Instead, approximate it by
7331         hand; this is good enough for load averages.  Also, do not use
7332         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
7333         flags directly if available and don't bother otherwise.  (Packages
7334         that need the extra reliability should use the modules that define
7335         these flags on older platforms that lack them.)
7336         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
7337         fcntl-safer.
7338
7339 2011-02-08  Jim Meyering  <meyering@redhat.com>
7340
7341         di-set.h, ino-map.h: add multiple-inclusion guard
7342         Technically, the guard is required only for ino-map.h, due to its
7343         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
7344         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
7345         * lib/ino-map.h: Likewise.
7346
7347 2011-02-06  Bruno Haible  <bruno@clisp.org>
7348
7349         iswblank: Ensure declaration on glibc systems.
7350         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
7351         * modules/iswblank (Dependencies): Add 'extensions'.
7352         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7353
7354 2011-02-06  Bruno Haible  <bruno@clisp.org>
7355
7356         New module 'iswblank'.
7357         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
7358         * modules/iswblank: New file.
7359         * modules/wctype-h (Files): Remove lib/iswblank.c.
7360         (Makefile.am): Substitute GNULIB_ISWBLANK.
7361         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
7362         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
7363         (gl_WCTYPE_H_DEFAULTS): New macro.
7364         (gl_WCTYPE_H): Require it. Remove iswblank related code.
7365         * modules/iswblank-tests: New file.
7366         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
7367         * tests/test-wctype-h.c (main): Remove iswblank tests.
7368         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
7369         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
7370         of 'wctype-h'.
7371         * NEWS: Mention the change.
7372         * modules/mbchar (Depends-on): Add iswblank.
7373
7374 2011-02-08  Bruno Haible  <bruno@clisp.org>
7375
7376         di-set tests: Refactor.
7377         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
7378         unnecessary includes.
7379         (ASSERT): Remove macro.
7380         (main): Make C90 compliant by avoiding variable declaration after
7381         statement.
7382         * modules/di-set-tests (Files): Add tests/macros.h.
7383
7384 2011-02-08  Bruno Haible  <bruno@clisp.org>
7385
7386         ino-map tests: Refactor.
7387         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
7388         unnecessary includes.
7389         (ASSERT): Remove macro.
7390         (main): Make C90 compliant by avoiding variable declaration after
7391         statement.
7392         * modules/ino-map-tests (Files): Add tests/macros.h.
7393
7394 2011-02-08  Jim Meyering  <meyering@redhat.com>
7395
7396         di-set: add "const" to a cast
7397         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
7398         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
7399
7400 2011-02-06  Bruno Haible  <bruno@clisp.org>
7401
7402         Rename module 'wctype' to 'wctype-h'.
7403         * modules/wctype-h: Renamed from modules/wctype.
7404         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7405         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7406         (Files, Depends-on, Makefile.am): Update.
7407         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7408         (Files, Makefile.am): Update.
7409         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7410         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7411         * doc/posix-headers/wctype.texi: Update.
7412         * doc/posix-functions/iswalnum.texi: Update.
7413         * doc/posix-functions/iswalpha.texi: Update.
7414         * doc/posix-functions/iswblank.texi: Update.
7415         * doc/posix-functions/iswcntrl.texi: Update.
7416         * doc/posix-functions/iswdigit.texi: Update.
7417         * doc/posix-functions/iswgraph.texi: Update.
7418         * doc/posix-functions/iswlower.texi: Update.
7419         * doc/posix-functions/iswprint.texi: Update.
7420         * doc/posix-functions/iswpunct.texi: Update.
7421         * doc/posix-functions/iswspace.texi: Update.
7422         * doc/posix-functions/iswupper.texi: Update.
7423         * doc/posix-functions/iswxdigit.texi: Update.
7424         * doc/posix-functions/towlower.texi: Update.
7425         * doc/posix-functions/towupper.texi: Update.
7426         * NEWS: Mention the change.
7427         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7428         * modules/mbchar (Dependencies): Likewise.
7429         * modules/mbswidth (Dependencies): Likewise.
7430         * modules/quotearg (Dependencies): Likewise.
7431         * modules/regex (Dependencies): Likewise.
7432         * modules/wcscasecmp (Dependencies): Likewise.
7433         * modules/wcsncasecmp (Dependencies): Likewise.
7434         * modules/wcwidth (Dependencies): Likewise.
7435
7436 2011-02-06  Bruno Haible  <bruno@clisp.org>
7437
7438         New module 'wcswidth'.
7439         * modules/wcswidth: New file.
7440         * lib/wchar.in.h (wcswidth): New declaration.
7441         * lib/wcswidth.c: New file.
7442         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7443         * m4/wcswidth.m4: New file.
7444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7446         REPLACE_WCSWIDTH.
7447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7448         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7449         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7450         * doc/posix-functions/wcswidth.texi: Mention the new module.
7451
7452 2011-02-06  Bruno Haible  <bruno@clisp.org>
7453
7454         New module 'wcstok'.
7455         * modules/wcstok: New file.
7456         * lib/wchar.in.h (wcstok): New declaration.
7457         * lib/wcstok.c: New file.
7458         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7459         * m4/wcstok.m4: New file.
7460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7463         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7464         * doc/posix-functions/wcstok.texi: Mention the new module.
7465
7466 2011-02-06  Bruno Haible  <bruno@clisp.org>
7467
7468         New module 'wcsstr'.
7469         * modules/wcsstr: New file.
7470         * lib/wchar.in.h (wcsstr): New declaration.
7471         * lib/wcsstr.c: New file.
7472         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7473         * m4/wcsstr.m4: New file.
7474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7477         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7478         * doc/posix-functions/wcsstr.texi: Mention the new module.
7479
7480 2011-02-06  Bruno Haible  <bruno@clisp.org>
7481
7482         New module 'wcspbrk'.
7483         * modules/wcspbrk: New file.
7484         * lib/wchar.in.h (wcspbrk): New declaration.
7485         * lib/wcspbrk.c: New file.
7486         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7487         * m4/wcspbrk.m4: New file.
7488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7490         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7491         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7492         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7493
7494 2011-02-06  Bruno Haible  <bruno@clisp.org>
7495
7496         New module 'wcsspn'.
7497         * modules/wcsspn: New file.
7498         * lib/wchar.in.h (wcsspn): New declaration.
7499         * lib/wcsspn.c: New file.
7500         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7501         * m4/wcsspn.m4: New file.
7502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7505         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7506         * doc/posix-functions/wcsspn.texi: Mention the new module.
7507
7508 2011-02-06  Bruno Haible  <bruno@clisp.org>
7509
7510         New module 'wcscspn'.
7511         * modules/wcscspn: New file.
7512         * lib/wchar.in.h (wcscspn): New declaration.
7513         * lib/wcscspn.c: New file.
7514         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7515         * m4/wcscspn.m4: New file.
7516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7519         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7520         * doc/posix-functions/wcscspn.texi: Mention the new module.
7521
7522 2011-02-06  Bruno Haible  <bruno@clisp.org>
7523
7524         New module 'wcsrchr'.
7525         * modules/wcsrchr: New file.
7526         * lib/wchar.in.h (wcsrchr): New declaration.
7527         * lib/wcsrchr.c: New file.
7528         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7529         * m4/wcsrchr.m4: New file.
7530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7533         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7534         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7535
7536 2011-02-06  Bruno Haible  <bruno@clisp.org>
7537
7538         New module 'wcschr'.
7539         * modules/wcschr: New file.
7540         * lib/wchar.in.h (wcschr): New declaration.
7541         * lib/wcschr.c: New file.
7542         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7543         * m4/wcschr.m4: New file.
7544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7547         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7548         * doc/posix-functions/wcschr.texi: Mention the new module.
7549
7550 2011-02-06  Bruno Haible  <bruno@clisp.org>
7551
7552         New module 'wcsdup'.
7553         * modules/wcsdup: New file.
7554         * lib/wchar.in.h (wcsdup): New declaration.
7555         * lib/wcsdup.c: New file.
7556         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7557         * m4/wcsdup.m4: New file.
7558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7561         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7562         * doc/posix-functions/wcsdup.texi: Mention the new module.
7563
7564 2011-02-06  Bruno Haible  <bruno@clisp.org>
7565
7566         New module 'wcsxfrm'.
7567         * modules/wcsxfrm: New file.
7568         * lib/wchar.in.h (wcsxfrm): New declaration.
7569         * lib/wcsxfrm.c: New file.
7570         * lib/wcsxfrm-impl.h: New file.
7571         * m4/wcsxfrm.m4: New file.
7572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7575         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7576         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7577
7578 2011-02-06  Bruno Haible  <bruno@clisp.org>
7579
7580         New module 'wcscoll'.
7581         * modules/wcscoll: New file.
7582         * lib/wchar.in.h (wcscoll): New declaration.
7583         * lib/wcscoll.c: New file.
7584         * lib/wcscoll-impl.h: New file.
7585         * m4/wcscoll.m4: New file.
7586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7589         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7590         * doc/posix-functions/wcscoll.texi: Mention the new module.
7591
7592 2011-02-06  Bruno Haible  <bruno@clisp.org>
7593
7594         New module 'wcsncasecmp'.
7595         * modules/wcsncasecmp: New file.
7596         * lib/wchar.in.h (wcsncasecmp): New declaration.
7597         * lib/wcsncasecmp.c: New file.
7598         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7599         * m4/wcsncasecmp.m4: New file.
7600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7603         HAVE_WCSNCASECMP.
7604         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7605         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7606
7607 2011-02-06  Bruno Haible  <bruno@clisp.org>
7608
7609         New module 'wcscasecmp'.
7610         * modules/wcscasecmp: New file.
7611         * lib/wchar.in.h (wcscasecmp): New declaration.
7612         * lib/wcscasecmp.c: New file.
7613         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7614         * m4/wcscasecmp.m4: New file.
7615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7618         HAVE_WCSCASECMP.
7619         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7620         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7621
7622 2011-02-05  Bruno Haible  <bruno@clisp.org>
7623
7624         New module 'wcsncmp'.
7625         * modules/wcsncmp: New file.
7626         * lib/wchar.in.h (wcsncmp): New declaration.
7627         * lib/wcsncmp.c: New file.
7628         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7629         * m4/wcsncmp.m4: New file.
7630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7633         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7634         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7635
7636 2011-02-05  Bruno Haible  <bruno@clisp.org>
7637
7638         New module 'wcscmp'.
7639         * modules/wcscmp: New file.
7640         * lib/wchar.in.h (wcscmp): New declaration.
7641         * lib/wcscmp.c: New file.
7642         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7643         * m4/wcscmp.m4: New file.
7644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7647         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7648         * doc/posix-functions/wcscmp.texi: Mention the new module.
7649
7650 2011-02-05  Bruno Haible  <bruno@clisp.org>
7651
7652         New module 'wcsncat'.
7653         * modules/wcsncat: New file.
7654         * lib/wchar.in.h (wcsncat): New declaration.
7655         * lib/wcsncat.c: New file.
7656         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7657         * m4/wcsncat.m4: New file.
7658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7661         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7662         * doc/posix-functions/wcsncat.texi: Mention the new module.
7663
7664 2011-02-05  Bruno Haible  <bruno@clisp.org>
7665
7666         New module 'wcscat'.
7667         * modules/wcscat: New file.
7668         * lib/wchar.in.h (wcscat): New declaration.
7669         * lib/wcscat.c: New file.
7670         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7671         * m4/wcscat.m4: New file.
7672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7675         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7676         * doc/posix-functions/wcscat.texi: Mention the new module.
7677
7678 2011-02-05  Bruno Haible  <bruno@clisp.org>
7679
7680         New module 'wcpncpy'.
7681         * modules/wcpncpy: New file.
7682         * lib/wchar.in.h (wcpncpy): New declaration.
7683         * lib/wcpncpy.c: New file.
7684         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7685         * m4/wcpncpy.m4: New file.
7686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7688         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7689         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7690         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7691
7692 2011-02-05  Bruno Haible  <bruno@clisp.org>
7693
7694         New module 'wcsncpy'.
7695         * modules/wcsncpy: New file.
7696         * lib/wchar.in.h (wcsncpy): New declaration.
7697         * lib/wcsncpy.c: New file.
7698         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7699         * m4/wcsncpy.m4: New file.
7700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7703         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7704         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7705
7706 2011-02-05  Bruno Haible  <bruno@clisp.org>
7707
7708         New module 'wcpcpy'.
7709         * modules/wcpcpy: New file.
7710         * lib/wchar.in.h (wcpcpy): New declaration.
7711         * lib/wcpcpy.c: New file.
7712         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7713         * m4/wcpcpy.m4: New file.
7714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7716         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7717         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7718         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7719
7720 2011-02-05  Bruno Haible  <bruno@clisp.org>
7721
7722         New module 'wcscpy'.
7723         * modules/wcscpy: New file.
7724         * lib/wchar.in.h (wcscpy): New declaration.
7725         * lib/wcscpy.c: New file.
7726         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7727         * m4/wcscpy.m4: New file.
7728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7731         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7732         * doc/posix-functions/wcscpy.texi: Mention the new module.
7733
7734 2011-02-05  Bruno Haible  <bruno@clisp.org>
7735
7736         New module 'wcsnlen'.
7737         * modules/wcsnlen: New file.
7738         * lib/wchar.in.h (wcsnlen): New declaration.
7739         * lib/wcsnlen.c: New file.
7740         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7741         * m4/wcsnlen.m4: New file.
7742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7745         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7746         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7747
7748 2011-02-05  Bruno Haible  <bruno@clisp.org>
7749
7750         New module 'wcslen'.
7751         * modules/wcslen: New file.
7752         * lib/wchar.in.h (wcslen): New declaration.
7753         * lib/wcslen.c: New file.
7754         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7755         * m4/wcslen.m4: New file.
7756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7759         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7760         * doc/posix-functions/wcslen.texi: Mention the new module.
7761
7762 2011-02-05  Bruno Haible  <bruno@clisp.org>
7763
7764         New module 'wmemset'.
7765         * modules/wmemset: New file.
7766         * lib/wchar.in.h (wmemset): New declaration.
7767         * lib/wmemset.c: New file.
7768         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7769         * m4/wmemset.m4: New file.
7770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7772         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7773         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7774         * doc/posix-functions/wmemset.texi: Mention the new module.
7775
7776 2011-02-05  Bruno Haible  <bruno@clisp.org>
7777
7778         New module 'wmemmove'.
7779         * modules/wmemmove: New file.
7780         * lib/wchar.in.h (wmemmove): New declaration.
7781         * lib/wmemmove.c: New file.
7782         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7783         * m4/wmemmove.m4: New file.
7784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7786         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7787         HAVE_WMEMMOVE.
7788         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7789         * doc/posix-functions/wmemmove.texi: Mention the new module.
7790
7791 2011-02-05  Bruno Haible  <bruno@clisp.org>
7792
7793         New module 'wmemcpy'.
7794         * modules/wmemcpy: New file.
7795         * lib/wchar.in.h (wmemcpy): New declaration.
7796         * lib/wmemcpy.c: New file.
7797         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7798         * m4/wmemcpy.m4: New file.
7799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7801         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7802         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7803         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7804
7805 2011-02-05  Bruno Haible  <bruno@clisp.org>
7806
7807         New module 'wmemcmp'.
7808         * modules/wmemcmp: New file.
7809         * lib/wchar.in.h (wmemcmp): New declaration.
7810         * lib/wmemcmp.c: New file.
7811         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7812         * m4/wmemcmp.m4: New file.
7813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7815         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7816         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7817         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7818
7819 2011-02-07  Jim Meyering  <meyering@redhat.com>
7820
7821         di-set, ino-map: new modules, from coreutils
7822         * lib/di-set.c: New file.
7823         * lib/di-set.h: Likewise.
7824         * lib/ino-map.c: Likewise.
7825         * lib/ino-map.h: Likewise.
7826         * modules/di-set: Likewise.
7827         * modules/di-set-tests: Likewise.
7828         * modules/ino-map: Likewise.
7829         * modules/ino-map-tests: Likewise.
7830         * tests/test-di-set.c: Likewise.
7831         * tests/test-ino-map.c: Likewise.
7832
7833 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7834
7835         getloadavg: merge minor changes from Emacs
7836
7837         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7838         (getloadavg): Use memset, not bzero.
7839
7840         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7841         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7842         clash (bug#86).
7843
7844 2010-11-14  Bruno Haible  <bruno@clisp.org>
7845
7846         Allow multiple gnulib generated replacements to coexist.
7847         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7848         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7849         * lib/langinfo.in.h (nl_item): Likewise.
7850         * lib/math.in.h (_NaN, NAN): Likewise.
7851         * lib/netdb.in.h (struct addrinfo): Likewise.
7852         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7853         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7854         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7855         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7856         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7857         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7858         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7859         pthread_mutexattr_init, pthread_mutexattr_settype,
7860         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7861         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7862         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7863         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7864         * lib/sched.in.h (struct sched_param): Likewise.
7865         * lib/se-selinux.in.h (security_class_t, security_context_t,
7866         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7867         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7868         lsetfilecon, fsetfilecon, security_check_context,
7869         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7870         Likewise.
7871         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7872         Likewise.
7873         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7874         _gl_function_taking_int_returning_void_t, union sigval,
7875         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7876         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7877         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7878         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7879         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7880         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7881         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7882         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7883         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7884         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7885         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7886         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7887         socklen_t, rpl_fd_isset): Likewise.
7888         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7889         * lib/sys_time.in.h (struct timeval): Likewise.
7890         * lib/sys_times.in.h (struct tms): Likewise.
7891         * lib/sys_utsname.in.h (struct utsname):
7892         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7893         * lib/unistd.in.h (getpagesize): Likewise.
7894         * lib/wchar.in.h (mbstate_t): Likewise.
7895         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7896         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7897         towlower, towupper): Likewise.
7898         Reported by Sam Steingold <sds@gnu.org>.
7899
7900 2011-02-05  Eric Blake  <eblake@redhat.com>
7901
7902         unsetenv: work around Haiku issues
7903         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7904         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7905
7906 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7907
7908         libposix: avoid calling error() within libposix
7909         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7910         is defined.
7911
7912 2011-02-05  Eric Blake  <eblake@redhat.com>
7913
7914         strerror_r-posix: port to cygwin
7915         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7916         implementation.
7917         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7918         * tests/test-strerror_r.c (main): Fix test.
7919         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7920         issue.
7921
7922 2011-02-05  Bruno Haible  <bruno@clisp.org>
7923
7924         New module 'wmemchr'.
7925         * modules/wmemchr: New file.
7926         * lib/wchar.in.h (wmemchr): New declaration.
7927         * lib/wmemchr.c: New file.
7928         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7929         * m4/wmemchr.m4: New file.
7930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7932         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7933         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7934         * doc/posix-functions/wmemchr.texi: Mention the new module.
7935
7936 2011-02-04  Eric Blake  <eblake@redhat.com>
7937
7938         fdopendir: detect FreeBSD bug
7939         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7940         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7941
7942 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7943
7944         stdbool: do not define HAVE_STDBOOL_H
7945         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7946         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7947         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7948         imported from the latest Autoconf git.  It was motivated by Emacs,
7949         which uses gnulib but does not need HAVE_STDBOOL_H.
7950
7951 2011-02-04  Bruno Haible  <bruno@clisp.org>
7952
7953         wcsnrtombs: Prepare for new module wwcsnrtombs.
7954         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7955         * lib/wcsnrtombs.c: Include it.
7956         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7957
7958         wcsrtombs: Prepare for new module wwcsrtombs.
7959         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7960         * lib/wcsrtombs.c: Include it.
7961         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7962
7963         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7964         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7965         * lib/mbsnrtowcs.c: Include it.
7966         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7967
7968         mbsrtowcs: Prepare for new module mbsrtowwcs.
7969         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7970         * lib/mbsrtowcs.c: Include it.
7971         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7972
7973 2011-02-04  Bruno Haible  <bruno@clisp.org>
7974
7975         vasnprintf: Reduce use of malloc for small format strings.
7976         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7977         (arguments): Add room for the first 7 arguments.
7978         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7979         (char_directives, u8_directives, u16_directives, u32_directives): Add
7980         room for the first 7 directives.
7981         * lib/printf-parse.c: Include <string.h>.
7982         (PRINTF_PARSE): Change memory handling code so that it uses the first
7983         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7984         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7985         Reported by Pádraig Brady <P@draigbrady.com>.
7986
7987 2011-01-31  Eric Blake  <eblake@redhat.com>
7988
7989         dup2: work around Haiku bug
7990         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7991         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7992         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7993         * tests/test-dup2.c (main): Enhance test.
7994
7995 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7996
7997         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7998         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7999         declared by eglibc 2.11.2.
8000         * lib/stdio.in.h: Likewise.
8001
8002 2011-01-31  Eric Blake  <eblake@redhat.com>
8003
8004         ignore-value: add missing test dependency
8005         * tests/test-ignore-value.c: Revert previous change; stdio.h
8006         provides off_t.
8007         * modules/ignore-value-tests (Depends-on): Add missing dependency.
8008
8009 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8010
8011         mktime: clarify long_int width checking
8012         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
8013         the top level, to make it clearer that the assumption about
8014         long_int width is being checked.  See
8015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
8016
8017 2011-01-30  Simon Josefsson  <simon@josefsson.org>
8018
8019         ignore-value: Fix self-test.
8020         * tests/test-ignore-value.c: Include sys/types.h for off_t.
8021
8022 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8023
8024         TYPE_MAXIMUM: avoid theoretically undefined behavior
8025         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
8026         negative number, which the C Standard says has undefined behavior.
8027         In practice this is not a problem, but might as well do it by the book.
8028         Reported by Rich Felker and Eric Blake; see
8029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
8030         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
8031         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8033         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
8034         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8035         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
8036
8037         mktime: #undef mktime before #defining it
8038         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
8039
8040         mktime: systematically normalize tm_isdst comparisons
8041         * lib/mktime.c (isdst_differ): New function.
8042         (__mktime_internal): Use it systematically for all isdst comparisons.
8043         This completes the fix for libc BZ #6723, and removes the need for
8044         normalizing tm_isdst.  See
8045         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
8046         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
8047
8048         mktime: fix some integer overflow issues and sidestep the rest
8049
8050         This was prompted by a bug report by Benjamin Lindner for MinGW
8051         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
8052         His bug is due to signed integer overflow (0 - INT_MIN), and I
8053         I scanned through mktime.c looking for other integer overflow
8054         problems, fixing all the bugs I found.
8055
8056         Although the C Standard says the resulting code is still not safe
8057         in the presence of integer overflow, in practice it should be good
8058         enough for all real-world two's-complement implementations, except
8059         for debugging environments that deliberately trap on integer
8060         overflow (e.g., gcc -ftrapv).
8061
8062         * lib/mktime.c (WRAPV): New macro.
8063         (SHR): Also check that long_int and time_t shift right in the
8064         usual way, before using the fast-but-unportable method.
8065         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
8066         used.  The code already assumed two's complement, so there's
8067         no need to test for alternatives.  All uses removed.
8068         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
8069         the C standard.  Problem reported by Rich Felker in
8070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
8071         (twos_complement_arithmetic): Also check long_int and time_t.
8072         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
8073         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
8074         (__mktime_internal): Avoid integer overflow with unary subtraction
8075         in two instances where -1 - X is an adequate replacement for -X,
8076         since the calculations are approximate.
8077
8078 2011-01-29  Eric Blake  <eblake@redhat.com>
8079
8080         mktime: avoid infinite loop
8081         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
8082         type; behavior is still undefined but portable to all known targets.
8083         Reported by Rich Felker.
8084
8085 2011-01-29  Simon Josefsson  <simon@josefsson.org>
8086
8087         rename, unlink, same-inode: Relicense.
8088         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
8089         * modules/unlink (License): Likewise.
8090         * modules/same-inode (License): Likewise.
8091
8092 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8093
8094         mktime: avoid problems on NetBSD 5 / i386
8095         * lib/mktime.c (long_int): New type.  This works around a problem
8096         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
8097         but time_t is 64 bits, and where I expect the existing code is
8098         wrong in some cases.
8099         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
8100         (ydhms_diff): Bring back the compile-time check for wide-enough
8101         year and yday.
8102
8103         mktime: fix misspelling in comment
8104         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
8105         This merges all recent glibc changes of importance.
8106
8107 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8108
8109         move-if-change: cope with concurrent mv of identical file.
8110         * build-aux/move-if-change (CMPPROG): Accept environment
8111         variable as an override for `cmp'.
8112         (usage): Document CMPPROG.
8113         Adjust comparison to drop stdout.  Cope with failure of mv if
8114         the target file exists and is identical to the source, for
8115         parallel builds.
8116         Report from H.J. Lu against binutils in PR binutils/12283.
8117
8118 2011-01-28  Bruce Korb  <bkorb@gnu.org>
8119
8120         * users.txt: Mention sharutils.
8121
8122 2011-01-28  Simon Josefsson  <simon@josefsson.org>
8123
8124         * users.txt: Mention OATH Toolkit.
8125
8126 2011-01-27  Bruno Haible  <bruno@clisp.org>
8127
8128         Prepare for supporting FreeBSD 10.
8129         * build-aux/config.libpath: Remove handling of freebsd1*.
8130
8131 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
8132
8133         Prepare for supporting FreeBSD 10.
8134         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
8135         match FreeBSD 10.0.
8136
8137 2011-01-27  Bruno Haible  <bruno@clisp.org>
8138
8139         vma-iter, get-rusage-as: Add OpenBSD support.
8140         * modules/vma-iter (configure.ac): Test for mquery.
8141         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
8142         * lib/vma-iter.c: Include <sys/mman.h>.
8143         (vma_iterate): Add an implementation based on mquery().
8144         * lib/resource-ext.h (get_rusage_as): Update comments.
8145         * lib/get-rusage-as.c: Likewise.
8146         * lib/get-rusage-data.c: Likewise.
8147
8148 2011-01-26  Karl Berry  <karl@gnu.org>
8149
8150         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
8151         variables to make it easier to override the makeinfo program used.
8152
8153 2011-01-26  Eric Blake  <eblake@redhat.com>
8154
8155         fcntl: work around Haiku F_DUPFD bugs
8156         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
8157         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
8158         cloexec bit on duplication.
8159         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
8160
8161 2011-01-26  Bruno Haible  <bruno@clisp.org>
8162
8163         Enable memory leak tests on AIX.
8164         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
8165         * tests/test-fprintf-posix3.c (main): Likewise.
8166
8167 2011-01-26  Bruno Haible  <bruno@clisp.org>
8168
8169         Tests for module 'get-rusage-data'.
8170         * modules/get-rusage-data-tests: New file.
8171         * tests/test-get-rusage-data.c: New file.
8172
8173         New module 'get-rusage-data'.
8174         * lib/resource-ext.h (get_rusage_data): New declaration.
8175         * lib/get-rusage-data.c: New file.
8176         * modules/get-rusage-data: New file.
8177
8178 2011-01-25  Bruno Haible  <bruno@clisp.org>
8179
8180         get-rusage-as: Allow for easier testing.
8181         * lib/resource-ext.h (get_rusage_as): Add comment.
8182         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
8183         (main): New function for interactive testing.
8184
8185 2011-01-25  Bruno Haible  <bruno@clisp.org>
8186
8187         vma-iter: Treat Haiku like BeOS.
8188         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
8189         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
8190
8191 2011-01-25  Eric Blake  <eblake@redhat.com>
8192
8193         c-stack: fix regression on cygwin when libsigsegv is present
8194         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
8195
8196 2011-01-24  Bruno Haible  <bruno@clisp.org>
8197
8198         vma-iter: Avoid empty intervals.
8199         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
8200         on an empty interval.
8201
8202 2011-01-24  Jim Meyering  <meyering@redhat.com>
8203
8204         u64: remove unnecessary #include
8205         * lib/u64.h: Don't include <stddef.h>.  It was not used.
8206
8207 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8208
8209         Allow the user to avoid the HAVE_RAW_DECL_* macros.
8210         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
8211
8212 2011-01-23  Bruno Haible  <bruno@clisp.org>
8213
8214         New module 'vma-iter'.
8215         * lib/vma-iter.h: New file.
8216         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
8217         * modules/vma-iter: New file.
8218         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
8219         for get_rusage_as_via_iterator.
8220         (vma_iterate_callback): New function.
8221         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
8222         * modules/get-rusage-as (Depends-on): Add vma-iter.
8223
8224 2011-01-23  Bruno Haible  <bruno@clisp.org>
8225
8226         uninorm: Tweak includes.
8227         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
8228         Reported by Jim Meyering.
8229
8230 2011-01-23  Bruno Haible  <bruno@clisp.org>
8231
8232         get-rusage-as: Improve on NetBSD.
8233         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
8234         /proc, like on FreeBSD.
8235
8236 2011-01-23  Jim Meyering  <meyering@redhat.com>
8237
8238         xreadlink.h: remove unnecessary #include
8239         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
8240
8241         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
8242         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
8243
8244 2011-01-23  Bruno Haible  <bruno@clisp.org>
8245
8246         get-rusage-as: Fix bug.
8247         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
8248         original limit when aborting the first loop.
8249
8250 2011-01-23  Bruno Haible  <bruno@clisp.org>
8251
8252         wctype: Ensure valid C syntax.
8253         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
8254         unconditionally, instead of gl_NEXT_HEADERS conditionally.
8255
8256 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8257
8258         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
8259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
8260         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
8261         as they are needed only for configure's test case.
8262         This removes two unnecessary symbols from config.h.
8263
8264         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
8265         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
8266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
8267         AC_CHECK_HEADERS_ONCE on a header that we also invoke
8268         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
8269         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
8270         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
8271         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8272         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8273         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8274         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8275         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8276         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8277         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8278         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8279         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8280         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8281         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8282
8283 2011-01-21  Eric Blake  <eblake@redhat.com>
8284
8285         maintainer-makefile: work with older git for submodule check
8286         * top/maint.mk (public-submodule-commit): Rewrite to avoid
8287         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
8288         Reported by Matthias Bolte.
8289
8290         bootstrap: minor portability fixes
8291         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
8292         (usage): Omit leading capital and trailing . on help phrases, per
8293         GNU Coding Standards.
8294         (check_versions, top level): Prefix messages with script name.
8295
8296 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
8297
8298         bootstrap: support --no-git option
8299         * build-aux/bootstrap: Add --no-git option, to be used when
8300         --gnulib-srcdir points to the exact desired checkout.
8301
8302 2011-01-21  Eric Blake  <eblake@redhat.com>
8303
8304         strerror_r-posix: work with glibc 2.13
8305         * lib/strerror_r.c (strerror_r): Fix return type.
8306
8307 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8308             Bruno Haible  <bruno@clisp.org>
8309
8310         uN_strstr: New unit tests.
8311         * modules/unistr/u8-strstr-tests: New file.
8312         * modules/unistr/u16-strstr-tests: New file.
8313         * modules/unistr/u32-strstr-tests: New file.
8314         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
8315         * tests/unistr/test-u8-strstr.c: New file.
8316         * tests/unistr/test-u16-strstr.c: New file.
8317         * tests/unistr/test-u32-strstr.c: New file.
8318
8319 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8320             Bruno Haible  <bruno@clisp.org>
8321
8322         Make uN_strstr functions O(n) worst-case.
8323         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
8324         16-bit and 32-bit unit cases, use the unibyte algorithm from
8325         lib/mbsstr.c.
8326         * lib/unistr/u8-strstr.c: Include <string.h>.
8327         (UNIT_IS_UINT8_T): New macro.
8328         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
8329         (U_STRLEN, U_STRNLEN): New macros.
8330         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
8331         (U_STRLEN, U_STRNLEN): New macros.
8332         * modules/unistr/u8-strstr (Depends-on): Add strstr.
8333         (configure.ac): Update required libunistring version.
8334         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
8335         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
8336         malloca.
8337         (configure.ac): Update required libunistring version.
8338         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
8339         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
8340         malloca.
8341         (configure.ac): Update required libunistring version.
8342
8343 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8344             Bruno Haible  <bruno@clisp.org>
8345
8346         Prepare for faster uN_strstr functions.
8347         * lib/str-kmp.h: Support definable UNITs.
8348         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
8349         needle_len argument.
8350         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
8351         * lib/mbscasestr.c (mbscasestr): Likewise.
8352
8353 2011-01-21  Pádraig Brady <P@draigBrady.com>
8354
8355         malloca-tests: make faster by unsetting MALLOC_PERTURB_
8356         * tests/test-malloca.c (main): Unset the environment variable
8357         to greatly speed up the test.
8358         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
8359         * modules/malloca-tests: Depend on unsetenv.
8360
8361 2011-01-21  Pádraig Brady <P@draigBrady.com>
8362
8363         ignore-value: remove stdint dependency
8364         * lib/ignore-value.h: Remove <stdint.h>
8365         * modules/ignore-value: Remove stdint dependency.
8366
8367 2011-01-21  Jim Meyering  <meyering@redhat.com>
8368
8369         maint.mk: adjust variable name to be consistent with other gl_ vars
8370         * top/maint.mk (gl_public_submodule_commit): Rename the variable
8371         to be lower case.
8372
8373 2011-01-20  Jim Meyering  <meyering@redhat.com>
8374
8375         maint.mk: make "check" depend on public-submodule-commit by default
8376         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
8377
8378 2011-01-20  Bruno Haible  <bruno@clisp.org>
8379
8380         mbfile, mbiter: Complete change from 2008-12-21.
8381         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
8382         * m4/mbiter.m4 (gl_MBITER): Likewise.
8383
8384 2011-01-20  Jim Meyering  <meyering@redhat.com>
8385
8386         init.sh: insert space between each function name and "()"
8387         * tests/init.sh: Make it a little easier to see that a function's
8388         name is "warn_", and not "warn" when looking at the first part of
8389         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
8390
8391 2011-01-20  Jim Meyering  <meyering@redhat.com>
8392
8393         mountlist: clean up code formatting
8394         * lib/mountlist.c (read_file_system_list): Split a long line,
8395         correct bracing style, use NULL in place of "(struct statfs *)0",
8396         don't parenthesize return value, add spaces around "=" and after
8397         ";-in-for-stmt".
8398
8399 2011-01-14  Markus Duft <mduft@gentoo.org>
8400
8401         mountlist: add support for Interix
8402         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8403         Apply statvfs to all entries of /dev/fs.
8404         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8405         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8406
8407 2011-01-20  Jim Meyering  <meyering@redhat.com>
8408
8409         maint.mk: improve the public-submodule-commit rule
8410         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8411         to suppress printing of its commands... unless V=1.
8412         Add git submodule's --quiet option to suppress printing of e.g.,
8413         "Entering gnulib" output.
8414         "cd" into $(srcdir) before running git submodule.
8415
8416 2011-01-20  Bruno Haible  <bruno@clisp.org>
8417
8418         include_next: Fix bug introduced on 2011-01-18.
8419         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8420         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8421         ac_cv_header_... variable if the second argument is not 'check'.
8422         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8423         gl_NEXT_HEADERS_INTERNAL.
8424
8425 2011-01-20  Bruno Haible  <bruno@clisp.org>
8426
8427         Allow the user to avoid the GNULIB_TEST_* macros.
8428         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8429         Suggested by Paul Eggert.
8430
8431 2011-01-14  Jim Meyering  <meyering@redhat.com>
8432
8433         bootstrap: avoid failure when there is no .gitmodules file
8434         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8435         has been assigned to, even when its value is the empty string.
8436         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8437         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8438         Reported by John W. Eaton <jwe@gnu.org>.
8439
8440 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8441
8442         assume <ctype.h>, ..., <time.h> exist
8443         For years gnulib has been assuming the existence of the headers
8444         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8445         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8446         them, since they don't appear to be needed.
8447         * README (Portability guidelines): Document this.
8448         * lib/flock.c: Assume <fcntl.h> exists.
8449         * lib/regex_internal.h: Assume <locale.h> exists.
8450         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8451         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8452         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8453         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8454         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8455         * m4/regex.m4 (gl_REGEX): Likewise.
8456         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8457         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8458         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8459         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8460         * tests/test-argp.c: Likewise.
8461         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8462
8463         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8464         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8465         AA_APPLE_UNIVERSAL_BUILD.  See
8466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8467         * NEWS: Document this.
8468
8469 2011-01-19  Eric Blake  <eblake@redhat.com>
8470
8471         c-stack: assume stack overflow if SA_SIGINFO unsupported
8472         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8473         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8474         sigaction will work.
8475         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8476         behavior match Linux.
8477         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8478
8479         stdbool-tests: accomodate Haiku
8480         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8481
8482         binary-io: fix O_TEXT on Haiku
8483         * modules/binary-io (Depends-on): Add fcntl-h.
8484         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8485         than blindly undefining O_TEXT.
8486         Reported by Scott McCreary.
8487
8488 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8489
8490         include_next: do not check for standard headers like stddef.h
8491
8492         I found this problem when modifying Emacs to use gnulib.
8493         I noticed that it added HAVE_STDDEF_H to config.h, even though
8494         gnulib always assumes <stddef.h> exists as per README and this
8495         symbol is unnecessary.
8496         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8497         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8498         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8499         faster for headers like stddef.h that are known to exist.
8500         (gl_CHECK_NEXT_HEADERS): Use it.
8501         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8502         rather than gl_CHECK_NEXT_HEADERS.
8503         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8504         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8505
8506 2011-01-18  Eric Blake  <eblake@redhat.com>
8507
8508         ansi-c++-opt: skip C++ dependency style if C++ is unused
8509         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8510         tests when we know C++ compilation is not desired.
8511         Reported by Scott McCreary.
8512
8513 2011-01-18  Bruno Haible  <bruno@clisp.org>
8514
8515         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8516         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8517         (main): Perform test also when getrlimit and setrlimit don't exist or
8518         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8519         limiting the address space size using setrlimit, compare the address
8520         space size before and after the the test.
8521         * tests/test-dprintf-posix2.c: Likewise.
8522         * tests/test-fprintf-posix3.sh: Update skip messages.
8523         * tests/test-dprintf-posix2.sh: Likewise.
8524         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8525         * modules/dprintf-posix-tests (Depends-on): Likewise.
8526         Reported by Bruce Korb <bkorb@gnu.org> and
8527         Gary V. Vaughan <gary@gnu.org>.
8528
8529 2011-01-18  Bruno Haible  <bruno@clisp.org>
8530
8531         get-rusage-as: Improvement for Cygwin.
8532         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8533         areas that are merely reserved.
8534
8535 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8536
8537         strftime: remove dependencies on multibyte modules
8538
8539         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8540         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8541         only if __osf__ is defined, and I suspect OSF doesn't need these
8542         other modules.  If my guess is wrong, we'll need to come up with a
8543         variant of strftime that doesn't need the multibyte modules.
8544
8545         I discovered this problem when attempting modify Emacs to use the
8546         strftime module.  With the previous gnulib, this caused Emacs to
8547         need 31 new files, ranging from lib/config.charset to
8548         m4/wint_t.m4.  This was overkill and I expect would be offputting
8549         to the Emacs maintainers.  After this change, only 6 new files are
8550         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8551         stdbool.m4, and tm_gmtoff.m4.
8552
8553         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8554         Suggested by Bruno Haible in
8555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8556         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8557         and do not check for wchar.h.
8558         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8559         (Depends-on): Remove mbrlen, mbsinit, wchar.
8560
8561 2011-01-18  Bruno Haible  <bruno@clisp.org>
8562
8563         Tests for module 'get-rusage-as'.
8564         * modules/get-rusage-as-tests: New file.
8565         * tests/test-get-rusage-as.c: New file.
8566
8567         New module 'get-rusage-as'.
8568         * modules/get-rusage-as: New file.
8569         * lib/resource-ext.h: New file.
8570         * lib/get-rusage-as.c: New file.
8571
8572 2011-01-17  Eric Blake  <eblake@redhat.com>
8573
8574         sigaction: relax license from LGPLv3+ to LGPLv2+
8575         * modules/sigaction (License): Relax to LGPLv2+.
8576
8577 2011-01-14  Bruno Haible  <bruno@clisp.org>
8578
8579         filemode: Make function declarations usable in C++ mode.
8580         * lib/filemode.h: Enclose function declarations in extern "C" block.
8581         Reported by John W. Eaton <jwe@gnu.org>.
8582
8583 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8584
8585         save-cwd: no longer include "xgetcwd.h"
8586         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8587         This avoids a compilation failure in projects that use save-cwd
8588         without also using the xgetcwd module.
8589
8590 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8591
8592         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8593         This is so that a program like Emacs, which needs only dtoastr,
8594         does not have to bother with distributing and compiling ftoastr
8595         and ldtoastr.
8596         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8597         * modules/dtoastr, modules/ldtoastr: New files.
8598         * modules/ftoastr: Now works just for 'float'.
8599         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8600         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8601         dtoastr.c, ldtoastr.c.
8602
8603 2011-01-11  Jim Meyering  <meyering@redhat.com>
8604
8605         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8606         There is no need to work around the lack of the fchdir function,
8607         since gnulib can now provide a replacement when required.
8608         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8609         * modules/save-cwd (Depends-on): Add fchdir.
8610
8611 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8612
8613         openat, save-cwd: avoid xmalloc
8614
8615         This removes a direct (but undocumented) dependency of openat on
8616         xalloc, along with an indirect dependency via save-cwd.  It also
8617         removes a dependency of save-cwd on xgetcwd, and thereby
8618         indirectly on xalloc.  This change causes the openat substitute
8619         to fall back on save_cwd when memory is tight, and for save_cwd to
8620         fail instead of dying when memory is tight, but that's good enough.
8621         Problem and initial idea for fix reported by Bastien Roucaries in
8622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8623
8624         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8625         xalloc.h (for xmalloc).
8626         (openat_proc_name): Use malloc, not xmalloc.
8627         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8628         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8629
8630         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8631         This avoids heap allocation for file names whose lengths are in
8632         the range 512..1023, with the upper bound increasing to at most
8633         4031 depending on the platform's PATH_MAX.  (We do not want
8634         pathmax.h here as it might supply a non-constant PATH_MAX.)
8635         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8636         Perhaps they should be moved to malloca.h?
8637         (OPENAT_BUFFER_SIZE): Use them.
8638
8639 2011-01-10  Bruno Haible  <bruno@clisp.org>
8640
8641         doc: Update users.txt.
8642         * users.txt: Add recutils.
8643
8644 2011-01-09  Karl Berry  <karl@gnu.org>
8645
8646         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8647
8648         * doc/configmake.texi: New file.
8649         * doc/gnulib.texi: Include it.
8650         * modules/configmake: Move documentation from here.
8651
8652 2011-01-09  Bruno Haible  <bruno@clisp.org>
8653
8654         Update to Unicode 6.0.0.
8655         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8656         (get_lbp): Update for Unicode 6.0.0.
8657         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8658         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8659         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8660         U+11001, U+11038..U+11046. Remove U+06DE.
8661         (uc_width): Fix bounds of planes.
8662         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8663         lib/uniwidth/width.c.
8664         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8665         trailing whitespace removed.
8666         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8667         without comments, but with the original copyright notice.
8668         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8669         * lib/unicase/ignorable.h: Likewise.
8670         * lib/unicase/tocasefold.h: Likewise.
8671         * lib/unicase/tolower.h: Likewise.
8672         * lib/unicase/totitle.h: Likewise.
8673         * lib/unicase/toupper.h: Likewise.
8674         * lib/unictype/bidi_of.h: Likewise.
8675         * lib/unictype/blocks.h: Likewise.
8676         * lib/unictype/categ_C.h: Likewise.
8677         * lib/unictype/categ_Cn.h: Likewise.
8678         * lib/unictype/categ_L.h: Likewise.
8679         * lib/unictype/categ_Ll.h: Likewise.
8680         * lib/unictype/categ_Lm.h: Likewise.
8681         * lib/unictype/categ_Lo.h: Likewise.
8682         * lib/unictype/categ_Lu.h: Likewise.
8683         * lib/unictype/categ_M.h: Likewise.
8684         * lib/unictype/categ_Mc.h: Likewise.
8685         * lib/unictype/categ_Me.h: Likewise.
8686         * lib/unictype/categ_Mn.h: Likewise.
8687         * lib/unictype/categ_N.h: Likewise.
8688         * lib/unictype/categ_Nd.h: Likewise.
8689         * lib/unictype/categ_No.h: Likewise.
8690         * lib/unictype/categ_P.h: Likewise.
8691         * lib/unictype/categ_Po.h: Likewise.
8692         * lib/unictype/categ_S.h: Likewise.
8693         * lib/unictype/categ_Sc.h: Likewise.
8694         * lib/unictype/categ_Sk.h: Likewise.
8695         * lib/unictype/categ_Sm.h: Likewise.
8696         * lib/unictype/categ_So.h: Likewise.
8697         * lib/unictype/categ_of.h: Likewise.
8698         * lib/unictype/combining.h: Likewise.
8699         * lib/unictype/ctype_alnum.h: Likewise.
8700         * lib/unictype/ctype_alpha.h: Likewise.
8701         * lib/unictype/ctype_graph.h: Likewise.
8702         * lib/unictype/ctype_lower.h: Likewise.
8703         * lib/unictype/ctype_print.h: Likewise.
8704         * lib/unictype/ctype_punct.h: Likewise.
8705         * lib/unictype/ctype_upper.h: Likewise.
8706         * lib/unictype/decdigit.h: Likewise.
8707         * lib/unictype/digit.h: Likewise.
8708         * lib/unictype/numeric.h: Likewise.
8709         * lib/unictype/pr_alphabetic.h: Likewise.
8710         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8711         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8712         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8713         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8714         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8715         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8716         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8717         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8718         * lib/unictype/pr_case_ignorable.h: Likewise.
8719         * lib/unictype/pr_cased.h: Likewise.
8720         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8721         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8722         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8723         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8724         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8725         * lib/unictype/pr_combining.h: Likewise.
8726         * lib/unictype/pr_composite.h: Likewise.
8727         * lib/unictype/pr_currency_symbol.h: Likewise.
8728         * lib/unictype/pr_decimal_digit.h: Likewise.
8729         * lib/unictype/pr_deprecated.h: Likewise.
8730         * lib/unictype/pr_format_control.h: Likewise.
8731         * lib/unictype/pr_grapheme_base.h: Likewise.
8732         * lib/unictype/pr_grapheme_extend.h: Likewise.
8733         * lib/unictype/pr_grapheme_link.h: Likewise.
8734         * lib/unictype/pr_id_continue.h: Likewise.
8735         * lib/unictype/pr_id_start.h: Likewise.
8736         * lib/unictype/pr_ideographic.h: Likewise.
8737         * lib/unictype/pr_lowercase.h: Likewise.
8738         * lib/unictype/pr_math.h: Likewise.
8739         * lib/unictype/pr_numeric.h: Likewise.
8740         * lib/unictype/pr_other_alphabetic.h: Likewise.
8741         * lib/unictype/pr_other_id_continue.h: Likewise.
8742         * lib/unictype/pr_other_math.h: Likewise.
8743         * lib/unictype/pr_punctuation.h: Likewise.
8744         * lib/unictype/pr_sentence_terminal.h: Likewise.
8745         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8746         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8747         * lib/unictype/pr_unified_ideograph.h: Likewise.
8748         * lib/unictype/pr_uppercase.h: Likewise.
8749         * lib/unictype/pr_xid_continue.h: Likewise.
8750         * lib/unictype/pr_xid_start.h: Likewise.
8751         * lib/unictype/scripts.h: Likewise.
8752         * lib/unictype/scripts_byname.gperf: Likewise.
8753         * lib/unictype/sy_java_ident.h: Likewise.
8754         * lib/unigbrk/gbrkprop.h: Likewise.
8755         * lib/unilbrk/lbrkprop1.h: Likewise.
8756         * lib/unilbrk/lbrkprop2.h: Likewise.
8757         * lib/uninorm/decomposition-table2.h: Likewise.
8758         * lib/uniwbrk/wbrkprop.h: Likewise.
8759         * tests/unicase/test-cased.c: Likewise.
8760         * tests/unicase/test-ignorable.c: Likewise.
8761         * tests/unicase/test-uc_tolower.c: Likewise.
8762         * tests/unicase/test-uc_totitle.c: Likewise.
8763         * tests/unicase/test-uc_toupper.c: Likewise.
8764         * tests/unictype/test-categ_C.c: Likewise.
8765         * tests/unictype/test-categ_Cn.c: Likewise.
8766         * tests/unictype/test-categ_L.c: Likewise.
8767         * tests/unictype/test-categ_Ll.c: Likewise.
8768         * tests/unictype/test-categ_Lm.c: Likewise.
8769         * tests/unictype/test-categ_Lo.c: Likewise.
8770         * tests/unictype/test-categ_Lu.c: Likewise.
8771         * tests/unictype/test-categ_M.c: Likewise.
8772         * tests/unictype/test-categ_Mc.c: Likewise.
8773         * tests/unictype/test-categ_Me.c: Likewise.
8774         * tests/unictype/test-categ_Mn.c: Likewise.
8775         * tests/unictype/test-categ_N.c: Likewise.
8776         * tests/unictype/test-categ_Nd.c: Likewise.
8777         * tests/unictype/test-categ_No.c: Likewise.
8778         * tests/unictype/test-categ_P.c: Likewise.
8779         * tests/unictype/test-categ_Po.c: Likewise.
8780         * tests/unictype/test-categ_S.c: Likewise.
8781         * tests/unictype/test-categ_Sc.c: Likewise.
8782         * tests/unictype/test-categ_Sk.c: Likewise.
8783         * tests/unictype/test-categ_Sm.c: Likewise.
8784         * tests/unictype/test-categ_So.c: Likewise.
8785         * tests/unictype/test-ctype_alnum.c: Likewise.
8786         * tests/unictype/test-ctype_alpha.c: Likewise.
8787         * tests/unictype/test-ctype_graph.c: Likewise.
8788         * tests/unictype/test-ctype_lower.c: Likewise.
8789         * tests/unictype/test-ctype_print.c: Likewise.
8790         * tests/unictype/test-ctype_punct.c: Likewise.
8791         * tests/unictype/test-ctype_upper.c: Likewise.
8792         * tests/unictype/test-decdigit.h: Likewise.
8793         * tests/unictype/test-digit.h: Likewise.
8794         * tests/unictype/test-numeric.h: Likewise.
8795         * tests/unictype/test-pr_alphabetic.c: Likewise.
8796         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8797         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8798         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8799         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8800         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8801         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8802         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8803         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8804         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8805         * tests/unictype/test-pr_cased.c: Likewise.
8806         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8807         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8808         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8809         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8810         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8811         * tests/unictype/test-pr_combining.c: Likewise.
8812         * tests/unictype/test-pr_composite.c: Likewise.
8813         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8814         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8815         * tests/unictype/test-pr_deprecated.c: Likewise.
8816         * tests/unictype/test-pr_format_control.c: Likewise.
8817         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8818         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8819         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8820         * tests/unictype/test-pr_id_continue.c: Likewise.
8821         * tests/unictype/test-pr_id_start.c: Likewise.
8822         * tests/unictype/test-pr_ideographic.c: Likewise.
8823         * tests/unictype/test-pr_lowercase.c: Likewise.
8824         * tests/unictype/test-pr_math.c: Likewise.
8825         * tests/unictype/test-pr_numeric.c: Likewise.
8826         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8827         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8828         * tests/unictype/test-pr_other_math.c: Likewise.
8829         * tests/unictype/test-pr_punctuation.c: Likewise.
8830         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8831         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8832         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8833         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8834         * tests/unictype/test-pr_uppercase.c: Likewise.
8835         * tests/unictype/test-pr_xid_continue.c: Likewise.
8836         * tests/unictype/test-pr_xid_start.c: Likewise.
8837         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8838         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8839         changes.
8840         * lib/unictype/categ_Cc.h: Likewise.
8841         * lib/unictype/categ_Cf.h: Likewise.
8842         * lib/unictype/categ_Co.h: Likewise.
8843         * lib/unictype/categ_Cs.h: Likewise.
8844         * lib/unictype/categ_Lt.h: Likewise.
8845         * lib/unictype/categ_Nl.h: Likewise.
8846         * lib/unictype/categ_Pc.h: Likewise.
8847         * lib/unictype/categ_Pd.h: Likewise.
8848         * lib/unictype/categ_Pe.h: Likewise.
8849         * lib/unictype/categ_Pf.h: Likewise.
8850         * lib/unictype/categ_Pi.h: Likewise.
8851         * lib/unictype/categ_Ps.h: Likewise.
8852         * lib/unictype/categ_Z.h: Likewise.
8853         * lib/unictype/categ_Zl.h: Likewise.
8854         * lib/unictype/categ_Zp.h: Likewise.
8855         * lib/unictype/categ_Zs.h: Likewise.
8856         * lib/unictype/ctype_blank.h: Likewise.
8857         * lib/unictype/ctype_cntrl.h: Likewise.
8858         * lib/unictype/ctype_digit.h: Likewise.
8859         * lib/unictype/ctype_space.h: Likewise.
8860         * lib/unictype/ctype_xdigit.h: Likewise.
8861         * lib/unictype/mirror.h: Likewise.
8862         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8863         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8864         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8865         * lib/unictype/pr_bidi_control.h: Likewise.
8866         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8867         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8868         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8869         * lib/unictype/pr_bidi_pdf.h: Likewise.
8870         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8871         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8872         * lib/unictype/pr_dash.h: Likewise.
8873         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8874         * lib/unictype/pr_diacritic.h: Likewise.
8875         * lib/unictype/pr_extender.h: Likewise.
8876         * lib/unictype/pr_hex_digit.h: Likewise.
8877         * lib/unictype/pr_hyphen.h: Likewise.
8878         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8879         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8880         * lib/unictype/pr_ignorable_control.h: Likewise.
8881         * lib/unictype/pr_iso_control.h: Likewise.
8882         * lib/unictype/pr_join_control.h: Likewise.
8883         * lib/unictype/pr_left_of_pair.h: Likewise.
8884         * lib/unictype/pr_line_separator.h: Likewise.
8885         * lib/unictype/pr_logical_order_exception.h: Likewise.
8886         * lib/unictype/pr_non_break.h: Likewise.
8887         * lib/unictype/pr_not_a_character.h: Likewise.
8888         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8889         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8890         * lib/unictype/pr_other_id_start.h: Likewise.
8891         * lib/unictype/pr_other_lowercase.h: Likewise.
8892         * lib/unictype/pr_other_uppercase.h: Likewise.
8893         * lib/unictype/pr_paired_punctuation.h: Likewise.
8894         * lib/unictype/pr_paragraph_separator.h: Likewise.
8895         * lib/unictype/pr_pattern_syntax.h: Likewise.
8896         * lib/unictype/pr_pattern_white_space.h: Likewise.
8897         * lib/unictype/pr_private_use.h: Likewise.
8898         * lib/unictype/pr_quotation_mark.h: Likewise.
8899         * lib/unictype/pr_radical.h: Likewise.
8900         * lib/unictype/pr_soft_dotted.h: Likewise.
8901         * lib/unictype/pr_space.h: Likewise.
8902         * lib/unictype/pr_titlecase.h: Likewise.
8903         * lib/unictype/pr_variation_selector.h: Likewise.
8904         * lib/unictype/pr_white_space.h: Likewise.
8905         * lib/unictype/pr_zero_width.h: Likewise.
8906         * lib/unictype/sy_c_ident.h: Likewise.
8907         * lib/unictype/sy_c_whitespace.h: Likewise.
8908         * lib/unictype/sy_java_whitespace.h: Likewise.
8909         * lib/uninorm/composition-table.gperf: Likewise.
8910         * lib/uninorm/decomposition-table1.h: Likewise.
8911         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8912         LB8.
8913         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8914         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8915         * modules/unictype/*: Bump version number of expected libunistring
8916         version.
8917
8918 2011-01-09  Bruno Haible  <bruno@clisp.org>
8919
8920         Update to Unicode 5.2.0.
8921         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8922         trailing whitespace removed.
8923
8924 2011-01-09  Bruno Haible  <bruno@clisp.org>
8925
8926         New Unicode character properties, from Unicode 5.2.0.
8927         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8928         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8929         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8930         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8931         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8932         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8933         uc_is_property_cased, uc_is_property_case_ignorable,
8934         uc_is_property_changes_when_lowercased,
8935         uc_is_property_changes_when_uppercased,
8936         uc_is_property_changes_when_titlecased,
8937         uc_is_property_changes_when_casefolded,
8938         uc_is_property_changes_when_casemapped): New declarations.
8939         * lib/unictype/pr_byname.gperf: Add the new properties.
8940         * modules/unictype/property-byname (Depends-on): Depend on the new
8941         properties modules.
8942         * modules/unictype/property-all (Depends-on): Likewise.
8943         * MODULES.html.sh (Unicode string functions): Add
8944         unictype/property-case-ignorable, unictype/property-cased,
8945         unictype/property-changes-when-casefolded,
8946         unictype/property-changes-when-casemapped,
8947         unictype/property-changes-when-lowercased,
8948         unictype/property-changes-when-titlecased,
8949         unictype/property-changes-when-uppercased.
8950
8951         New module 'unictype/property-changes-when-casemapped'.
8952         * modules/unictype/property-changes-when-casemapped: New file.
8953         * lib/unictype/pr_changes_when_casemapped.c: New file.
8954         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8955         generated by gen-uni-tables.
8956         * modules/unictype/property-changes-when-casemapped-tests: New file.
8957         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8958         automatically generated by gen-uni-tables.
8959
8960         New module 'unictype/property-changes-when-casefolded'.
8961         * modules/unictype/property-changes-when-casefolded: New file.
8962         * lib/unictype/pr_changes_when_casefolded.c: New file.
8963         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8964         generated by gen-uni-tables.
8965         * modules/unictype/property-changes-when-casefolded-tests: New file.
8966         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8967         automatically generated by gen-uni-tables.
8968
8969         New module 'unictype/property-changes-when-titlecased'.
8970         * modules/unictype/property-changes-when-titlecased: New file.
8971         * lib/unictype/pr_changes_when_titlecased.c: New file.
8972         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8973         generated by gen-uni-tables.
8974         * modules/unictype/property-changes-when-titlecased-tests: New file.
8975         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8976         automatically generated by gen-uni-tables.
8977
8978         New module 'unictype/property-changes-when-uppercased'.
8979         * modules/unictype/property-changes-when-uppercased: New file.
8980         * lib/unictype/pr_changes_when_uppercased.c: New file.
8981         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8982         generated by gen-uni-tables.
8983         * modules/unictype/property-changes-when-uppercased-tests: New file.
8984         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8985         automatically generated by gen-uni-tables.
8986
8987         New module 'unictype/property-changes-when-lowercased'.
8988         * modules/unictype/property-changes-when-lowercased: New file.
8989         * lib/unictype/pr_changes_when_lowercased.c: New file.
8990         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8991         generated by gen-uni-tables.
8992         * modules/unictype/property-changes-when-lowercased-tests: New file.
8993         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8994         automatically generated by gen-uni-tables.
8995
8996         New module 'unictype/property-case-ignorable'.
8997         * modules/unictype/property-case-ignorable: New file.
8998         * lib/unictype/pr_case_ignorable.c: New file.
8999         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
9000         by gen-uni-tables.
9001         * modules/unictype/property-case-ignorable-tests: New file.
9002         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
9003         generated by gen-uni-tables.
9004
9005         New module 'unictype/property-cased'.
9006         * modules/unictype/property-cased: New file.
9007         * lib/unictype/pr_cased.c: New file.
9008         * lib/unictype/pr_cased.h: New file, automatically generated by
9009         gen-uni-tables.
9010         * modules/unictype/property-cased-tests: New file.
9011         * tests/unictype/test-pr_cased.c: New file, automatically generated by
9012         gen-uni-tables.
9013
9014 2011-01-09  Bruno Haible  <bruno@clisp.org>
9015
9016         Update to Unicode 5.2.0.
9017         * lib/gen-uni-tables.c (output_predicate, output_category,
9018         output_combclass, output_bidi_category, output_decimal_digit_test,
9019         output_decimal_digit, output_digit_test, output_digit,
9020         output_numeric_test, output_numeric, output_mirror, output_scripts,
9021         output_scripts_byname, output_blocks, output_ident_category): Fix
9022         comment header.
9023         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
9024         get_wbp.
9025         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
9026         items.
9027         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
9028         Changes_When_Lowercased, Changes_When_Uppercased,
9029         Changes_When_Titlecased, Changes_When_Casefolded,
9030         Changes_When_Casemapped.
9031         (is_property_alphabetic, is_property_default_ignorable_code_point):
9032         Update for Unicode 5.2.0.
9033         (is_property_cased, is_property_case_ignorable,
9034         is_property_changes_when_lowercased,
9035         is_property_changes_when_uppercased,
9036         is_property_changes_when_titlecased,
9037         is_property_changes_when_casefolded,
9038         is_property_changes_when_casemapped): New functions.
9039         (output_properties): Output also the properties cased, case_ignorable,
9040         changes_when_lowercased, changes_when_uppercased,
9041         changes_when_titlecased, changes_when_casefolded,
9042         changes_when_casemapped.
9043         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
9044         Unicode TR#11 revision 17 -> 19.
9045         (LBP_CP): New enumeration value.
9046         (LBP_*): Adjust values accordingly.
9047         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9048         TR#14 revision 22 -> 24.
9049         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
9050         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
9051         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9052         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
9053         is_WBP_MIDLETTER.
9054         (output_composition_tables): Allow for 24 bits instead of 16 bits in
9055         the code1 and code2 of each composition rule.
9056         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
9057         * lib/unicase/ignorable.h: Likewise.
9058         * lib/unicase/tocasefold.h: Likewise.
9059         * lib/unicase/tolower.h: Likewise.
9060         * lib/unicase/totitle.h: Likewise.
9061         * lib/unicase/toupper.h: Likewise.
9062         * lib/unictype/bidi_of.h: Likewise.
9063         * lib/unictype/blocks.h: Likewise.
9064         * lib/unictype/categ_C.h: Likewise.
9065         * lib/unictype/categ_Cf.h: Likewise.
9066         * lib/unictype/categ_Cn.h: Likewise.
9067         * lib/unictype/categ_L.h: Likewise.
9068         * lib/unictype/categ_Ll.h: Likewise.
9069         * lib/unictype/categ_Lm.h: Likewise.
9070         * lib/unictype/categ_Lo.h: Likewise.
9071         * lib/unictype/categ_Lu.h: Likewise.
9072         * lib/unictype/categ_M.h: Likewise.
9073         * lib/unictype/categ_Mc.h: Likewise.
9074         * lib/unictype/categ_Mn.h: Likewise.
9075         * lib/unictype/categ_N.h: Likewise.
9076         * lib/unictype/categ_Nd.h: Likewise.
9077         * lib/unictype/categ_Nl.h: Likewise.
9078         * lib/unictype/categ_No.h: Likewise.
9079         * lib/unictype/categ_P.h: Likewise.
9080         * lib/unictype/categ_Pd.h: Likewise.
9081         * lib/unictype/categ_Po.h: Likewise.
9082         * lib/unictype/categ_S.h: Likewise.
9083         * lib/unictype/categ_Sc.h: Likewise.
9084         * lib/unictype/categ_So.h: Likewise.
9085         * lib/unictype/categ_of.h: Likewise.
9086         * lib/unictype/combining.h: Likewise.
9087         * lib/unictype/ctype_alnum.h: Likewise.
9088         * lib/unictype/ctype_alpha.h: Likewise.
9089         * lib/unictype/ctype_graph.h: Likewise.
9090         * lib/unictype/ctype_lower.h: Likewise.
9091         * lib/unictype/ctype_print.h: Likewise.
9092         * lib/unictype/ctype_punct.h: Likewise.
9093         * lib/unictype/ctype_upper.h: Likewise.
9094         * lib/unictype/decdigit.h: Likewise.
9095         * lib/unictype/digit.h: Likewise.
9096         * lib/unictype/numeric.h: Likewise.
9097         * lib/unictype/pr_alphabetic.h: Likewise.
9098         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9099         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9100         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9101         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9102         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9103         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9104         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9105         * lib/unictype/pr_combining.h: Likewise.
9106         * lib/unictype/pr_composite.h: Likewise.
9107         * lib/unictype/pr_currency_symbol.h: Likewise.
9108         * lib/unictype/pr_dash.h: Likewise.
9109         * lib/unictype/pr_decimal_digit.h: Likewise.
9110         * lib/unictype/pr_deprecated.h: Likewise.
9111         * lib/unictype/pr_diacritic.h: Likewise.
9112         * lib/unictype/pr_extender.h: Likewise.
9113         * lib/unictype/pr_grapheme_base.h: Likewise.
9114         * lib/unictype/pr_grapheme_extend.h: Likewise.
9115         * lib/unictype/pr_grapheme_link.h: Likewise.
9116         * lib/unictype/pr_id_continue.h: Likewise.
9117         * lib/unictype/pr_id_start.h: Likewise.
9118         * lib/unictype/pr_ideographic.h: Likewise.
9119         * lib/unictype/pr_ignorable_control.h: Likewise.
9120         * lib/unictype/pr_logical_order_exception.h: Likewise.
9121         * lib/unictype/pr_lowercase.h: Likewise.
9122         * lib/unictype/pr_numeric.h: Likewise.
9123         * lib/unictype/pr_other_alphabetic.h: Likewise.
9124         * lib/unictype/pr_punctuation.h: Likewise.
9125         * lib/unictype/pr_sentence_terminal.h: Likewise.
9126         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9127         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9128         * lib/unictype/pr_unified_ideograph.h: Likewise.
9129         * lib/unictype/pr_uppercase.h: Likewise.
9130         * lib/unictype/pr_xid_continue.h: Likewise.
9131         * lib/unictype/pr_xid_start.h: Likewise.
9132         * lib/unictype/pr_zero_width.h: Likewise.
9133         * lib/unictype/scripts.h: Likewise.
9134         * lib/unictype/scripts_byname.gperf: Likewise.
9135         * lib/unictype/sy_java_ident.h: Likewise.
9136         * lib/unigbrk/gbrkprop.h: Likewise.
9137         * lib/unilbrk/lbrkprop1.h: Likewise.
9138         * lib/unilbrk/lbrkprop2.h: Likewise.
9139         * lib/unilbrk/lbrktables.h: Likewise.
9140         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
9141         LBP_CP. Implement rule LB30.
9142         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
9143         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
9144         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
9145         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
9146         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
9147         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
9148         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
9149         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
9150         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
9151         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
9152         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
9153         bits instead of 16 bits in the code1 and code2 of each composition
9154         rule.
9155         (uc_composition): Update for Unicode 5.2.0.
9156         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
9157         * lib/uninorm/decomposition-table2.h: Likewise.
9158         * lib/uniwbrk/wbrkprop.h: Likewise.
9159         * tests/unicase/test-cased.c: Likewise.
9160         * tests/unicase/test-ignorable.c: Likewise.
9161         * tests/unicase/test-uc_tolower.c: Likewise.
9162         * tests/unicase/test-uc_totitle.c: Likewise.
9163         * tests/unicase/test-uc_toupper.c: Likewise.
9164         * tests/unictype/test-categ_C.c: Likewise.
9165         * tests/unictype/test-categ_Cf.c: Likewise.
9166         * tests/unictype/test-categ_Cn.c: Likewise.
9167         * tests/unictype/test-categ_L.c: Likewise.
9168         * tests/unictype/test-categ_Ll.c: Likewise.
9169         * tests/unictype/test-categ_Lm.c: Likewise.
9170         * tests/unictype/test-categ_Lo.c: Likewise.
9171         * tests/unictype/test-categ_Lu.c: Likewise.
9172         * tests/unictype/test-categ_M.c: Likewise.
9173         * tests/unictype/test-categ_Mc.c: Likewise.
9174         * tests/unictype/test-categ_Mn.c: Likewise.
9175         * tests/unictype/test-categ_N.c: Likewise.
9176         * tests/unictype/test-categ_Nd.c: Likewise.
9177         * tests/unictype/test-categ_Nl.c: Likewise.
9178         * tests/unictype/test-categ_No.c: Likewise.
9179         * tests/unictype/test-categ_P.c: Likewise.
9180         * tests/unictype/test-categ_Pd.c: Likewise.
9181         * tests/unictype/test-categ_Po.c: Likewise.
9182         * tests/unictype/test-categ_S.c: Likewise.
9183         * tests/unictype/test-categ_Sc.c: Likewise.
9184         * tests/unictype/test-categ_So.c: Likewise.
9185         * tests/unictype/test-ctype_alnum.c: Likewise.
9186         * tests/unictype/test-ctype_alpha.c: Likewise.
9187         * tests/unictype/test-ctype_graph.c: Likewise.
9188         * tests/unictype/test-ctype_lower.c: Likewise.
9189         * tests/unictype/test-ctype_print.c: Likewise.
9190         * tests/unictype/test-ctype_punct.c: Likewise.
9191         * tests/unictype/test-ctype_upper.c: Likewise.
9192         * tests/unictype/test-decdigit.h: Likewise.
9193         * tests/unictype/test-digit.h: Likewise.
9194         * tests/unictype/test-numeric.h: Likewise.
9195         * tests/unictype/test-pr_alphabetic.c: Likewise.
9196         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9197         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9198         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9199         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9200         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9201         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9202         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9203         * tests/unictype/test-pr_combining.c: Likewise.
9204         * tests/unictype/test-pr_composite.c: Likewise.
9205         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9206         * tests/unictype/test-pr_dash.c: Likewise.
9207         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9208         * tests/unictype/test-pr_deprecated.c: Likewise.
9209         * tests/unictype/test-pr_diacritic.c: Likewise.
9210         * tests/unictype/test-pr_extender.c: Likewise.
9211         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9212         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9213         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9214         * tests/unictype/test-pr_id_continue.c: Likewise.
9215         * tests/unictype/test-pr_id_start.c: Likewise.
9216         * tests/unictype/test-pr_ideographic.c: Likewise.
9217         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9218         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9219         * tests/unictype/test-pr_lowercase.c: Likewise.
9220         * tests/unictype/test-pr_numeric.c: Likewise.
9221         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9222         * tests/unictype/test-pr_punctuation.c: Likewise.
9223         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9224         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9225         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9226         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9227         * tests/unictype/test-pr_uppercase.c: Likewise.
9228         * tests/unictype/test-pr_xid_continue.c: Likewise.
9229         * tests/unictype/test-pr_xid_start.c: Likewise.
9230         * tests/unictype/test-pr_zero_width.c: Likewise.
9231         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9232         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
9233         changed behaviour: line breaking is now disallowed between a letter
9234         or '=' and '('.
9235         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9236         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9237         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9238         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
9239         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9240         lib/uniwidth/width.c.
9241         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
9242         without comments, but with the original copyright notice.
9243         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9244         changes.
9245         * lib/unictype/categ_Cc.h: Likewise.
9246         * lib/unictype/categ_Co.h: Likewise.
9247         * lib/unictype/categ_Cs.h: Likewise.
9248         * lib/unictype/categ_Lt.h: Likewise.
9249         * lib/unictype/categ_Me.h: Likewise.
9250         * lib/unictype/categ_Pc.h: Likewise.
9251         * lib/unictype/categ_Pe.h: Likewise.
9252         * lib/unictype/categ_Pf.h: Likewise.
9253         * lib/unictype/categ_Pi.h: Likewise.
9254         * lib/unictype/categ_Ps.h: Likewise.
9255         * lib/unictype/categ_Sk.h: Likewise.
9256         * lib/unictype/categ_Sm.h: Likewise.
9257         * lib/unictype/categ_Z.h: Likewise.
9258         * lib/unictype/categ_Zl.h: Likewise.
9259         * lib/unictype/categ_Zp.h: Likewise.
9260         * lib/unictype/categ_Zs.h: Likewise.
9261         * lib/unictype/ctype_blank.h: Likewise.
9262         * lib/unictype/ctype_cntrl.h: Likewise.
9263         * lib/unictype/ctype_digit.h: Likewise.
9264         * lib/unictype/ctype_space.h: Likewise.
9265         * lib/unictype/ctype_xdigit.h: Likewise.
9266         * lib/unictype/mirror.h: Likewise.
9267         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9268         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9269         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9270         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9271         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9272         * lib/unictype/pr_bidi_control.h: Likewise.
9273         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9274         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9275         * lib/unictype/pr_bidi_pdf.h: Likewise.
9276         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9277         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9278         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9279         * lib/unictype/pr_format_control.h: Likewise.
9280         * lib/unictype/pr_hex_digit.h: Likewise.
9281         * lib/unictype/pr_hyphen.h: Likewise.
9282         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9283         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9284         * lib/unictype/pr_iso_control.h: Likewise.
9285         * lib/unictype/pr_join_control.h: Likewise.
9286         * lib/unictype/pr_left_of_pair.h: Likewise.
9287         * lib/unictype/pr_line_separator.h: Likewise.
9288         * lib/unictype/pr_math.h: Likewise.
9289         * lib/unictype/pr_non_break.h: Likewise.
9290         * lib/unictype/pr_not_a_character.h: Likewise.
9291         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9292         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9293         * lib/unictype/pr_other_id_continue.h: Likewise.
9294         * lib/unictype/pr_other_id_start.h: Likewise.
9295         * lib/unictype/pr_other_lowercase.h: Likewise.
9296         * lib/unictype/pr_other_math.h: Likewise.
9297         * lib/unictype/pr_other_uppercase.h: Likewise.
9298         * lib/unictype/pr_paired_punctuation.h: Likewise.
9299         * lib/unictype/pr_paragraph_separator.h: Likewise.
9300         * lib/unictype/pr_pattern_syntax.h: Likewise.
9301         * lib/unictype/pr_pattern_white_space.h: Likewise.
9302         * lib/unictype/pr_private_use.h: Likewise.
9303         * lib/unictype/pr_quotation_mark.h: Likewise.
9304         * lib/unictype/pr_radical.h: Likewise.
9305         * lib/unictype/pr_soft_dotted.h: Likewise.
9306         * lib/unictype/pr_space.h: Likewise.
9307         * lib/unictype/pr_titlecase.h: Likewise.
9308         * lib/unictype/pr_variation_selector.h: Likewise.
9309         * lib/unictype/pr_white_space.h: Likewise.
9310         * lib/unictype/sy_c_ident.h: Likewise.
9311         * lib/unictype/sy_c_whitespace.h: Likewise.
9312         * lib/unictype/sy_java_whitespace.h: Likewise.
9313         * modules/uni*/*: Bump version number of expected libunistring version.
9314         Reported by Simon Josefsson.
9315
9316 2011-01-09  Karl Heuer  <kwzh@gnu.org>
9317
9318         useless-if-before-free: fix typo in --help and make the internal,
9319         automatic version date update process work once again.
9320         --help output contained a NUL character instead of the
9321         backslash-zero that was intended.  Also, the "must lie within
9322         the first 8 lines" line is on line 9, and hence not getting
9323         automatically updated.
9324         * build-aux/useless-if-before-free: Fix the former by adding a
9325         backslash, and the latter by condensing the three lines of what-it-does
9326         to a single line, leaving one line of slack for the future.
9327
9328 2011-01-09  Bruno Haible  <bruno@clisp.org>
9329
9330         uniwidth/width: Fix width of U+1D173..U+1D17A.
9331         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
9332         symbolic_width, output_width_property_test): New functions.
9333         (main): Invoke output_nonspacing_property, output_width_property_test.
9334         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
9335         U+1D173..U+1D17A.
9336         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
9337         1.
9338         * modules/uniwidth/*: Bump version number of expected libunistring
9339         version.
9340         * modules/unilbrk/*: Likewise.
9341
9342 2011-01-08  Bruno Haible  <bruno@clisp.org>
9343
9344         uninorm tests: Preserve copyright of Unicode data file.
9345         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
9346         Mention modifications.
9347
9348 2011-01-08  Bruno Haible  <bruno@clisp.org>
9349
9350         gen-uni-tables: Prepare for Unicode 5.2.0.
9351         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
9352         (debug_output_lbp, output_lbp): Update.
9353
9354 2011-01-08  Bruno Haible  <bruno@clisp.org>
9355
9356         unilbrk: Clarify gen-uni-tables.c code.
9357         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
9358         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
9359         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
9360
9361 2011-01-07  Bruno Haible  <bruno@clisp.org>
9362
9363         strtod: Restore errno when successfully parsing Infinity or NaN.
9364         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
9365         restore the original errno.
9366
9367 2011-01-07  Bruno Haible  <bruno@clisp.org>
9368
9369         remove test: Avoid failure on HP-UX 11.
9370         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
9371
9372 2011-01-07  Bruno Haible  <bruno@clisp.org>
9373
9374         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
9375         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
9376         error code.
9377
9378 2011-01-07  Pádraig Brady <P@draigBrady.com>
9379
9380         ignore-value: fixup comments, and add Eric Blake
9381         as an author since he rewrote the macros.
9382         * lib/ignore-value.h (ignore_value):  State that
9383         we now support aggregates.  Also specify exactly
9384         when the GCC warn_unused_result feature was added.
9385
9386 2011-01-06  Eric Blake  <eblake@redhat.com>
9387
9388         ignore-value: support aggregate types
9389         * lib/ignore-value.h (ignore_value): Provide separate gcc
9390         definition.
9391         * modules/ignore-value-tests: New test module.
9392         * tests/test-ignore-value.c: New test.
9393
9394         maint.mk: improve sc_prohibit_strcmp regex
9395         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
9396         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
9397         definition of STRNEQ.
9398
9399         signal: work around Haiku issue with SIGBUS
9400         * lib/siglist.h: Add comment.
9401         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9402         strsignal's favoring of SIGSEGV.
9403         * tests/test-signal.c (main): Avoid test failure.
9404         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9405         Reported by Scott McCreary.
9406
9407         maint.mk: add pre-release check to ensure submodule commits are public
9408         * top/maint.mk (public-submodule-commit): New rule.
9409         (submodule-checks): New variable.
9410         (alpha beta stable): Depend on the variable.
9411
9412 2011-01-05  Pádraig Brady <P@draigBrady.com>
9413         and Jim Meyering  <meyering@redhat.com>
9414
9415         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9416         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9417         (ATTRIBUTE_DEPRECATED): Define.
9418         (_ignore_case): New function.
9419         (ignore_value): New macro, to replace the old function.
9420         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9421         * modules/ignore-value (Depends-on): Add stdint.
9422
9423 2011-01-04  Eric Blake  <eblake@redhat.com>
9424
9425         doc: regenerate INSTALL
9426         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9427         @firstparagraphindent support, now that autoconf dropped it.
9428         (INSTALL_PRELUDE): Reinstate old macro.
9429         * doc/install.texi: Resync from autoconf.
9430         * doc/INSTALL: Reflect recent autoconf update.
9431         * doc/INSTALL.ISO: Likewise.
9432         * doc/INSTALL.UTF-8: Likewise.
9433         Reported by Karl Berry.
9434
9435 2011-01-04  Bruce Korb  <address@hidden>
9436
9437         git-version-gen: avoid a sub-shell
9438         * build-aux/git-version-gen: Redirect stderr in `...` via
9439         "exec 2>...", rather than via an added sub-shell.
9440
9441 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9442
9443         git-version-gen: use (...) rather than sh -c '...'
9444         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9445         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9446
9447 2011-01-03  Jim Meyering  <meyering@redhat.com>
9448
9449         git-version-gen: convert leading TABs to spaces
9450         * build-aux/git-version-gen: Expand leading TABs.
9451
9452         git-version-gen: handle failed "git rev-list"
9453         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9454         from git and proceeding as if it had succeeded but printed no SHA1
9455         checksums, suppress the diagnostic and handle the failure.
9456         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9457
9458         git-version-gen: include command name in one more diagnostic
9459         * build-aux/git-version-gen: When the required .tarball-version file
9460         was missing or unreadable, you might see the diagnostic from "cat",
9461         but no trace of the name of the invoking script.  Now, you still see
9462         the diagnostic from cat, but also get one from "git-version-gen: ".
9463         Inspired by a patch from Bruce Korb.
9464
9465         update-copyright: adjust test to match changed code
9466         * tests/test-update-copyright.sh: Change test's expected output
9467         to match new actual output.
9468
9469 2011-01-02  Bruno Haible  <bruno@clisp.org>
9470
9471         getlogin_r: Avoid test failure on HP-UX 11.
9472         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9473         ERANGE when the second argument is zero.
9474         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9475         portability problem.
9476
9477 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9478
9479         * build-aux/update-copyright: doc Simon's changes
9480
9481 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9482
9483         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9484         environment variable.
9485
9486 2011-01-02  Bruno Haible  <bruno@clisp.org>
9487
9488         unigbrk: Avoid gcc warnings.
9489         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9490         unused variable.
9491         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9492         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9493         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9494         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9495         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9496         Change type of first argument to 'const char *'.
9497         (main): Remove unused variable.
9498         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9499         type of first argument to 'const char *'.
9500         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9501         Likewise.
9502         (main): Change type of variable 's'.
9503         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9504         to 'int'.
9505
9506 2011-01-02  Bruno Haible  <bruno@clisp.org>
9507
9508         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9509         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9510         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9511         bug.
9512         * lib/pwrite.c: Undo 2010-12-31 patch.
9513         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9514
9515 2011-01-02  Bruno Haible  <bruno@clisp.org>
9516
9517         pread: Fix test whether it works.
9518         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9519
9520 2011-01-02  Bruno Haible  <bruno@clisp.org>
9521
9522         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9523         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9524         ends in "6". Don't require a specific month name. Try also the locale
9525         names found on HP-UX 11 and Solaris 7.
9526
9527 2011-01-02  Bruno Haible  <bruno@clisp.org>
9528
9529         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9530         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9531         C linkage.
9532         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9533
9534 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9535
9536         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9537         for consistency, since the "cluster" term is not used elsewhere.
9538         * lib/unigbrk.in.h: Update name.
9539         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9540         * lib/unigbrk/u16-grapheme-next.c: Update name.
9541         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9542         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9543         * lib/unigbrk/u32-grapheme-next.c: Update name.
9544         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9545         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9546         * lib/unigbrk/u8-grapheme-next.c: Update name.
9547         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9548         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9549         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9550         Suggested by Bruno Haible.
9551
9552 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9553
9554         Remove module 'u8-grapheme-len' as too redundant with
9555         'u8-grapheme-next'.
9556         * modules/unigbrk/u8-grapheme-len: Delete file.
9557         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9558         * lib/unigbrk.in.h: Remove prototype for deleted function.
9559         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9560         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9561
9562         Remove module 'u16-grapheme-len' as too redundant with
9563         'u16-grapheme-next'.
9564         * modules/unigbrk/u16-grapheme-len: Delete file.
9565         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9566         * lib/unigbrk.in.h: Remove prototype for deleted function.
9567         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9568         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9569
9570         Remove module 'u32-grapheme-len' as too redundant with
9571         'u32-grapheme-next'.
9572         * modules/unigbrk/u32-grapheme-len: Delete file.
9573         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9574         * lib/unigbrk.in.h: Remove prototype for deleted function.
9575         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9576         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9577
9578         Suggested by Bruno Haible.
9579
9580 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9581
9582         * unigbrk.in.h: Fix typo: "ben" => "been".
9583         Reported by Bruno Haible.
9584
9585 2011-01-01  Jim Meyering  <meyering@redhat.com>
9586
9587         maint: update almost all copyright ranges to include 2011
9588         Run the new "make update-copyright" rule.
9589
9590 2011-01-01  Jim Meyering  <meyering@redhat.com>
9591
9592         maint: update-copyright: exempt doc/INSTALL*
9593         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9594         since they are generated.  Suggested by Bruno Haible.
9595
9596 2011-01-01  Jim Meyering  <meyering@redhat.com>
9597
9598         maint: refine the update-copyright rule
9599         * Makefile (update-copyright): Also exclude any file that includes
9600         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9601         code that merely generates the comment.
9602
9603 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9604
9605         New module 'u8-grapheme-len'.
9606         * modules/unigbrk/u8-grapheme-len: New file.
9607         * modules/unigbrk/u8-grapheme-len-tests: New file.
9608         * lib/unigbrk.in.h: Add prototype for new function.
9609         * lib/unigbrk/u8-grapheme-len.c: New file.
9610         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9611
9612         New module 'u16-grapheme-len'.
9613         * modules/unigbrk/u16-grapheme-len: New file.
9614         * modules/unigbrk/u16-grapheme-len-tests: New file.
9615         * lib/unigbrk.in.h: Add prototype for new function.
9616         * lib/unigbrk/u16-grapheme-len.c: New file.
9617         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9618
9619         New module 'u32-grapheme-len'.
9620         * modules/unigbrk/u32-grapheme-len: New file.
9621         * modules/unigbrk/u32-grapheme-len-tests: New file.
9622         * lib/unigbrk.in.h: Add prototype for new function.
9623         * lib/unigbrk/u32-grapheme-len.c: New file.
9624         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9625
9626         New module 'u8-grapheme-next'.
9627         * modules/unigbrk/u8-grapheme-next: New file.
9628         * modules/unigbrk/u8-grapheme-next-tests: New file.
9629         * lib/unigbrk.in.h: Add prototype for new function.
9630         * lib/unigbrk/u8-grapheme-next.c: New file.
9631         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9632
9633         New module 'u16-grapheme-next'.
9634         * modules/unigbrk/u16-grapheme-next: New file.
9635         * modules/unigbrk/u16-grapheme-next-tests: New file.
9636         * lib/unigbrk.in.h: Add prototype for new function.
9637         * lib/unigbrk/u16-grapheme-next.c: New file.
9638         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9639
9640         New module 'u32-grapheme-next'.
9641         * modules/unigbrk/u32-grapheme-next: New file.
9642         * modules/unigbrk/u32-grapheme-next-tests: New file.
9643         * lib/unigbrk.in.h: Add prototype for new function.
9644         * lib/unigbrk/u32-grapheme-next.c: New file.
9645         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9646
9647         New module 'u8-grapheme-prev'.
9648         * modules/unigbrk/u8-grapheme-prev: New file.
9649         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9650         * lib/unigbrk.in.h: Add prototype for new function.
9651         * lib/unigbrk/u8-grapheme-prev.c: New file.
9652         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9653
9654         New module 'u16-grapheme-prev'.
9655         * modules/unigbrk/u16-grapheme-prev: New file.
9656         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9657         * lib/unigbrk.in.h: Add prototype for new function.
9658         * lib/unigbrk/u16-grapheme-prev.c: New file.
9659         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9660
9661         New module 'u32-grapheme-prev'.
9662         * modules/unigbrk/u32-grapheme-prev: New file.
9663         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9664         * lib/unigbrk.in.h: Add prototype for new function.
9665         * lib/unigbrk/u32-grapheme-prev.c: New file.
9666         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9667
9668         New module 'u8-grapheme-breaks'.
9669         * modules/unigbrk/u8-grapheme-breaks: New file.
9670         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9671         * lib/unigbrk.in.h: Add prototype for new function.
9672         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9673         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9674
9675         New module 'u16-grapheme-breaks'.
9676         * modules/unigbrk/u16-grapheme-breaks: New file.
9677         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9678         * lib/unigbrk.in.h: Add prototype for new function.
9679         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9680         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9681
9682         New module 'u32-grapheme-breaks'.
9683         * modules/unigbrk/u32-grapheme-breaks: New file.
9684         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9685         * lib/unigbrk.in.h: Add prototype for new function.
9686         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9687         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9688
9689         New module 'ulc-grapheme-breaks'.
9690         * modules/unigbrk/ulc-grapheme-breaks: New file.
9691         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9692         * m4/locale-ar.m4: New file.
9693         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9694         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9695         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9696
9697 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9698
9699         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9700         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9701         modified how this file was generated before I initially submitted
9702         the module, but failed to regenerate it.  This meant that several
9703         of the level2 entries were wrong.
9704         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9705         Remove the division-by-2 that is folded into the table now that
9706         gbrkprop.h has been regenerated properly.  Now -1 entries are
9707         handled correctly.
9708
9709         New module 'unigbrk/uc-gbrk-prop-tests'.
9710         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9711         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9712         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9713         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9714
9715 2011-01-01  Bruno Haible  <bruno@clisp.org>
9716
9717         Avoid use of hexadecimal escapes.
9718         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9719         instead of hexadecimal escapes.
9720
9721 2011-01-01  Jim Meyering  <meyering@redhat.com>
9722
9723         maint: new rule to update copyright year ranges
9724         * Makefile (update-copyright): New rule.
9725
9726         maint: indent with TABs in Makefile
9727         * Makefile: Expand leading sequences of spaces to TABs
9728
9729         version-etc: update the copyright year it reports
9730         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9731
9732 2010-12-31  Bruno Haible  <bruno@clisp.org>
9733
9734         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9735         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9736         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9737         zero.
9738
9739 2010-12-31  Bruno Haible  <bruno@clisp.org>
9740
9741         pwrite: Work around HP-UX 11.11 bug.
9742         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9743         works and set REPLACE_PWRITE if not.
9744         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9745         function.
9746         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9747
9748 2010-12-31  Bruno Haible  <bruno@clisp.org>
9749
9750         pread: Work around HP-UX 11 bugs.
9751         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9752         and set REPLACE_PREAD if not.
9753         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9754
9755 2010-12-31  Eric Blake  <eblake@redhat.com>
9756
9757         nl_langinfo: fix YESEXPR on Irix 6.5
9758         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9759         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9760         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9761         it.
9762
9763 2010-12-31  Bruno Haible  <bruno@clisp.org>
9764
9765         iconv: Document HP-UX 11 bug.
9766         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9767
9768 2010-12-31  Bruno Haible  <bruno@clisp.org>
9769
9770         ldexpl: Fix link error on HP-UX 11.
9771         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9772         LDEXPL_LIBM, using $ISNANL_LIBM.
9773
9774 2010-12-31  Eric Blake  <eblake@redhat.com>
9775
9776         ftello: avoid compilation failure with SunStudio c89
9777         * lib/ftello.c (ftello): Use lseek, not llseek.
9778
9779         tests: avoid failing coreutils tests on cygwin
9780         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9781         (create_exe_shims_): Return 0 when skipping.
9782
9783 2010-12-31  Bruno Haible  <bruno@clisp.org>
9784
9785         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9786         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9787
9788 2010-12-31  Bruno Haible  <bruno@clisp.org>
9789
9790         waitpid: Fix link error in C++ mode.
9791         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9792
9793 2010-12-31  Bruno Haible  <bruno@clisp.org>
9794
9795         isnan: Use GCC built-ins when possible.
9796         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9797         __builtin_isnan.
9798         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9799         (isnan): Define using GCC built-ins for GCC >= 4.0.
9800
9801 2010-12-31  Bruno Haible  <bruno@clisp.org>
9802
9803         isnand: Fix mistake.
9804         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9805         __builtin_isnand.
9806
9807 2010-12-31  Bruno Haible  <bruno@clisp.org>
9808
9809         open: Avoid C++ error on HP-UX 11.
9810         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9811
9812 2010-12-31  Bruno Haible  <bruno@clisp.org>
9813
9814         time_r: Add missing declarations on HP-UX 11.
9815         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9816         instead of HAVE_LOCALTIME_R.
9817         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9818         HAVE_LOCALTIME_R always.
9819         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9820         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9821         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9822         HAVE_LOCALTIME_R.
9823         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9824         * doc/posix-functions/localtime_r.texi: Likewise.
9825
9826 2010-12-29  Eric Blake  <eblake@redhat.com>
9827
9828         mountlist: tweak previous commit
9829         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9830         Reported by Paul Eggert.
9831
9832         mountlist: fix local drive detection on cygwin
9833         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9834         that works for cygwin.
9835
9836 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9837
9838         ftoastr, snprintf: ftoastr + snprintf module
9839         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9840         since the snprintf module now should be good enough here.
9841         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9842         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9843         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9844         GNULIB_SNPRINTF only for the test directory, and the latter
9845         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9846         seems to suffice by itself.
9847
9848 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9849
9850         alloca: one step towards thread-safety
9851         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9852         need for a static variable.  All callers changed.  This does not
9853         make the alloca replacement thread-safe, but it's one step.
9854
9855         tests: minor indenting change
9856         * tests/init.sh: Sync from coreutils housekeeping patch
9857         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9858         to keep lines within 80 columns.
9859
9860 2010-12-28  Jim Meyering  <meyering@redhat.com>
9861
9862         regex: don't infloop on persistent failing calloc
9863         * lib/regexec.c (build_trtable): Return failure indication upon
9864         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9865         In glibc, this was fixed for version 2.13:
9866         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9867
9868 2010-12-28  Bruno Haible  <bruno@clisp.org>
9869             Paul Eggert <eggert@cs.ucla.edu>
9870
9871         linkat: Make implementation robust against system behaviour variations.
9872         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9873         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9874         way, and to -2 if it needs a generic runtime test.
9875         * lib/linkat.c (solaris_optimized_link_immediate,
9876         solaris_optimized_link_follow): New functions.
9877         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9878         (check_same_link): Use it.
9879
9880 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9881
9882         New module 'unigbrk/base'.
9883         * modules/unigbrk/base: New file.
9884         * lib/unigbrk.in.h: New file.
9885
9886         New module 'unigbrk/uc-gbrk-prop'.
9887         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9888         * modules/unigbrk/uc-gbrk-prop: New file.
9889         * lib/unigbrk/gbrkprop.h: New file.
9890         * lib/unigbrk/uc-gbrk-prop.c: New file.
9891
9892         New module 'unigbrk/uc-is-grapheme-break'.
9893         * modules/unigbrk/uc-is-grapheme-break: New file.
9894         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9895         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9896         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9897         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9898         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9899
9900         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9901
9902 2010-12-27  Bruno Haible  <bruno@clisp.org>
9903
9904         linkat test: Avoid failure on Solaris 11 2010-11.
9905         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9906
9907 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9908
9909         utimens: work around glibc rounding bug on more platforms
9910         * lib/utimens.c (fdutimens): Work around rounding bug even if
9911         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9912         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9913
9914 2010-12-27  Bruno Haible  <bruno@clisp.org>
9915
9916         select tests: Improve comments.
9917         * tests/test-select.c (do_select): Add comments.
9918
9919 2010-12-27  Bruno Haible  <bruno@clisp.org>
9920
9921         select tests: Safer way of handling timeout.
9922         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9923         at every invocation.
9924
9925 2010-12-27  Bruno Haible  <bruno@clisp.org>
9926
9927         select tests: Use 'bool' where appropriate.
9928         * tests/test-select.c (connect_to_socket): Change argument type to
9929         'bool'.
9930
9931 2010-12-27  Bruno Haible  <bruno@clisp.org>
9932
9933         select tests: Use existing modules.
9934         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9935         (configure.ac): Don't test for unistd.h.
9936         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9937         declared in <unistd.h>.
9938
9939 2010-12-27  Bruno Haible  <bruno@clisp.org>
9940
9941         mbrtowc: Work around a Solaris 7 bug.
9942         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9943         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9944         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9945         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9946         MBRTOWC_NULL_ARG1_BUG.
9947         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9948         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9949         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9950         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9951
9952 2010-12-27  Jim Meyering  <meyering@redhat.com>
9953
9954         read-file.c: tweak syntax
9955         * lib/read-file.c (fread_file): Remove space after "*" in function
9956         definitions.
9957
9958 2010-12-27  Bruno Haible  <bruno@clisp.org>
9959
9960         times test: Avoid gcc warnings on OSF/1.
9961         * tests/test-times.c (main): Cast printf arguments from clock_t to
9962         'long int'.
9963
9964 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9965
9966         utimens: work around glibc rounding bug on older Linux kernels
9967         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9968         on Linux with a glibc whose utimes might not work, then work
9969         around a longstanding glibc bug involving rounding rather than
9970         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9971         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9972
9973 2010-12-26  Bruno Haible  <bruno@clisp.org>
9974
9975         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9976         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9977         _GL_CXXALIAS_SYS.
9978         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9979
9980 2010-12-26  Bruno Haible  <bruno@clisp.org>
9981
9982         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9983         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9984         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9985         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9986         looking for the declaration.
9987         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9988         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9989         problem.
9990         * doc/posix-functions/inet_pton.texi: Likewise.
9991
9992 2010-12-26  Bruno Haible  <bruno@clisp.org>
9993
9994         arpa_inet: Use the common idioms with C++ support.
9995         * lib/arpa_inet.in.h: Include c++defs.h.
9996         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9997         support.
9998         * modules/arpa_inet (Depends-on): Add c++defs.
9999         (Makefile.am): Substitute the contents of c++defs.h.
10000         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
10001         * modules/arpa_inet-c++-tests: New file.
10002         * tests/test-arpa_inet-c++.cc: New file.
10003
10004 2010-12-25  Bruno Haible  <bruno@clisp.org>
10005
10006         Fix more C++ link errors on Solaris 8.
10007         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
10008         $(LIB_EACCESS).
10009         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
10010         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
10011         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
10012         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
10013         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
10014
10015 2010-12-25  Bruno Haible  <bruno@clisp.org>
10016
10017         printf-posix: Fix link error when a non-GCC compiler is used.
10018         * lib/stdio.in.h (printf): When not using GCC, override printf
10019         correctly.
10020         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10021
10022 2010-12-25  Bruno Haible  <bruno@clisp.org>
10023
10024         strerror_r-posix: Update doc.
10025         * doc/posix-functions/strerror_r.texi: Update doc about the return
10026         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
10027
10028 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10029
10030         utimens: simplify the logic of the previous change
10031         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
10032         This should not affect whether the test succeeds or fails.
10033
10034         utimens: configure better on hosts with NFS clock skew
10035         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
10036         uses the clock of the local host.  It might use the clock of the
10037         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
10038         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10039
10040 2010-12-25  Bruno Haible  <bruno@clisp.org>
10041
10042         ptsname test: Avoid failure on Solaris.
10043         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
10044         open a pseudo-terminal; don't use BSD-style ptys.
10045         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
10046
10047 2010-12-25  Bruno Haible  <bruno@clisp.org>
10048
10049         ptsname: Avoid ERANGE failure on some systems.
10050         * lib/ptsname.c (buffer): Increase size.
10051
10052 2010-12-25  Bruno Haible  <bruno@clisp.org>
10053
10054         rename, renameat: Avoid test failures at NFS mounted locations.
10055         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
10056         so that subsequent mkdir calls succeed.
10057
10058 2010-12-25  Bruno Haible  <bruno@clisp.org>
10059
10060         iswblank: Fix C++ link error on Solaris 8.
10061         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
10062         _GL_FUNCDECL_SYS.
10063
10064 2010-12-25  Bruno Haible  <bruno@clisp.org>
10065
10066         unistd: Fix C++ link error on Solaris 8.
10067         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
10068
10069 2010-12-25  Bruno Haible  <bruno@clisp.org>
10070
10071         readlink doc: Mention an old glibc bug.
10072         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
10073
10074 2010-12-25  Bruno Haible  <bruno@clisp.org>
10075
10076         fcntl-h: Fix for use of C++ on glibc systems.
10077         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10078         also on glibc systems in C++ mode.
10079         Reported by Gary V. Vaughan <gary@gnu.org>.
10080
10081 2010-12-25  Bruno Haible  <bruno@clisp.org>
10082
10083         roundl-ieee: Make it work on OSF/1 5.1 with cc.
10084         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
10085
10086 2010-12-25  Bruno Haible  <bruno@clisp.org>
10087
10088         truncl-ieee: Make it work on OSF/1 5.1 with cc.
10089         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
10090         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
10091         test whether truncl works according to ISO C 99 with IEC 60559.
10092         * m4/truncl-ieee.m4: New file.
10093         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
10094         m4/signbit.m4.
10095         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
10096
10097 2010-12-25  Bruno Haible  <bruno@clisp.org>
10098
10099         ceill-ieee: Make it work on OSF/1 5.1 with cc.
10100         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
10101         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
10102         test whether ceill works according to ISO C 99 with IEC 60559.
10103         * m4/ceill-ieee.m4: New file.
10104         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
10105         m4/signbit.m4.
10106         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
10107
10108 2010-12-25  Bruno Haible  <bruno@clisp.org>
10109
10110         Ensure all prerequisites of <wchar.h> are included.
10111         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
10112         before <wchar.h>.
10113         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10114         gl_MBRLEN_NUL_RETVAL): Likewise.
10115         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10116         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10117         AC_FUNC_MBRTOWC): Likewise.
10118         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10119         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10120         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10121         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10122         Likewise.
10123         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10124         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
10125         (gl_WCHAR_H): Improve comments.
10126         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10127
10128 2010-12-25  Bruno Haible  <bruno@clisp.org>
10129
10130         strtok_r: Fix C syntax error in autoconf macro.
10131         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
10132         characters in test program.
10133
10134 2010-12-24  Bruno Haible  <bruno@clisp.org>
10135
10136         ceil, trunc, round: Fix gcc warnings.
10137         * lib/ceil.c (MIN): Undefine before redefining.
10138         * lib/trunc.c (MIN): Likewise.
10139         * lib/round.c (MIN): Likewise.
10140         Include <math.h> first.
10141
10142 2010-12-24  Bruno Haible  <bruno@clisp.org>
10143
10144         select tests: Avoid failures on OSF/1 5.1.
10145         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
10146         failure of closing the last socket; it may fail with ECONNRESET.
10147
10148 2010-12-24  Eric Blake  <eblake@redhat.com>
10149
10150         stdint: avoid HP-UX 10.20 preprocessor bug
10151         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
10152         than #if.
10153         * tests/test-floor2.c (main): Likewise.
10154         Reported by Peter O'Gorman.
10155
10156         pipe: make obsoletion transition easier
10157         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
10158         * modules/pipe (Files): Include revived file.
10159         (Include): Drop reference, to mirror getdate's behavior.
10160
10161 2010-12-24  Bruno Haible  <bruno@clisp.org>
10162
10163         sys_socket: Hide mismatch of declarations on NonStop Kernel.
10164         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
10165         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10166         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10167
10168 2010-12-24  Bruno Haible  <bruno@clisp.org>
10169
10170         gethostname: Ensure declaration on NonStop Kernel.
10171         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
10172         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10173
10174 2010-12-24  Bruno Haible  <bruno@clisp.org>
10175
10176         sys_select: Ensure all necessary types on NonStop Kernel.
10177         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
10178         include <sys/time.h>.
10179         * doc/posix-headers/sys_select.texi: Mention that it's missing on
10180         NonStop Kernel.
10181         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10182
10183 2010-12-24  Bruno Haible  <bruno@clisp.org>
10184
10185         sys_select: Remove unneeded include.
10186         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
10187         have <sys/select.h>.
10188
10189 2010-12-24  Bruno Haible  <bruno@clisp.org>
10190
10191         gethostname: Provide a fallback for HOST_NAME_MAX.
10192         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
10193         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
10194         instead.
10195         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10196
10197 2010-12-24  Bruno Haible  <bruno@clisp.org>
10198
10199         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
10200         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
10201         (SA_RESTART): Likewise.
10202         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10203
10204 2010-12-24  Bruno Haible  <bruno@clisp.org>
10205
10206         signal: Define NSIG.
10207         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
10208         * tests/test-signal.c (nsig): New variable.
10209         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10210
10211 2010-12-24  Bruno Haible  <bruno@clisp.org>
10212
10213         rename, renameat: Avoid test failures on OSF/1 5.1.
10214         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
10215         alternative error codes.
10216         * tests/test-renameat.c (main): Likewise.
10217
10218 2010-12-24  Bruno Haible  <bruno@clisp.org>
10219
10220         *printf: Detect large precisions bug on Solaris 10/SPARC.
10221         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
10222         by Paul Eggert.
10223         * tests/test-snprintf-posix.h (test_function): Add this test code here
10224         too.
10225         * tests/test-sprintf-posix.h (test_function): Likewise.
10226         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10227         * tests/test-vasprintf-posix.c (test_function): Likewise.
10228         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
10229         around by gnulib.
10230         * doc/posix-functions/printf.texi: Likewise.
10231         * doc/posix-functions/snprintf.texi: Likewise.
10232         * doc/posix-functions/sprintf.texi: Likewise.
10233         * doc/posix-functions/vfprintf.texi: Likewise.
10234         * doc/posix-functions/vprintf.texi: Likewise.
10235         * doc/posix-functions/vsnprintf.texi: Likewise.
10236         * doc/posix-functions/vsprintf.texi: Likewise.
10237         * doc/posix-functions/dprintf.texi: Undo last commit.
10238         * doc/posix-functions/vdprintf.texi: Likewise.
10239
10240 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10241
10242         tests: port test-fdutimensat.c to Solaris 8
10243         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
10244         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
10245         On Solaris 8, it fails with errno == ENOSYS, because there is no
10246         futimens (so it can't use the fd), and there is no lutimens (so it
10247         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
10248
10249         vsnprintf: make more consistent with snprintf; doc fixes
10250
10251         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
10252         the byte count return problem was promoted from the snprintf-posix
10253         to the snprintf module.
10254         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10255         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10256         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
10257         * tests/test-snprintf.c (main): Check the byte count returned.
10258         * tests/test-vsnprintf.c (main): Likewise.
10259
10260 2010-12-23  Eric Blake  <eblake@redhat.com>
10261
10262         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
10263         * modules/sigpipe (License): Relax license.
10264
10265 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10266
10267         doc: document Solaris printf bug with large float precisions
10268         * doc/posix-functions/dprintf.texi (dprintf):
10269         * doc/posix-functions/fprintf.texi (fprintf):
10270         * doc/posix-functions/printf.texi (printf):
10271         * doc/posix-functions/snprintf.texi (snprintf):
10272         * doc/posix-functions/sprintf.texi (sprintf):
10273         * doc/posix-functions/vdprintf.texi (vdprintf):
10274         * doc/posix-functions/vfprintf.texi (vfprintf):
10275         * doc/posix-functions/vprintf.texi (vprintf):
10276         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10277         * doc/posix-functions/vsprintf.texi (vsprintf):
10278         Mention that these functions mishandle large floating point
10279         precisions on Solaris 10.  The same bug is also present in Solaris
10280         8, and I assume earlier.  This causes "cd gnulib-tests; make
10281         check" to fail on Solaris 8 (and I assume, later) when building
10282         the latest coreutils, in test-vasprintf-posix's call to
10283         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
10284         the wide flavors (e.g., wprintf) so this patch just updates the
10285         documentation for the narrow ones.
10286
10287         test-posixtm.c: add two tests
10288         * tests/test-posixtm.c: Add two tests, to highlight the
10289         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
10290         around this bug; this is merely to document it.
10291
10292 2010-12-22  Bruno Haible  <bruno@clisp.org>
10293
10294         getlogin_r: Work around portability problem on OSF/1.
10295         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
10296         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
10297         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
10298         test for a truncated result.
10299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
10300         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
10301         * modules/getlogin_r (Depends-on): Add memchr.
10302         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
10303
10304 2010-12-22  Bruno Haible  <bruno@clisp.org>
10305
10306         ptsname: Avoid test failure on OSF/1 5.1.
10307         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
10308         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
10309         (same_slave): New function.
10310         (main): Use it to compare ptsname's result with the expected file name.
10311
10312 2010-12-22  Bruno Haible  <bruno@clisp.org>
10313
10314         Port extended stdio modules to HP NonStop Kernel.
10315         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
10316         macros.
10317         * lib/fbufmode.c: Update comments.
10318         * lib/fflush.c: Likewise.
10319         * lib/fpurge.c: Likewise.
10320         * lib/freadable.c: Likewise.
10321         * lib/freadahead.c: Likewise.
10322         * lib/freading.c: Likewise.
10323         * lib/freadptr.c: Likewise.
10324         * lib/freadseek.c: Likewise.
10325         * lib/fseeko.c: Likewise.
10326         * lib/fseterr.c: Likewise.
10327         * lib/fwritable.c: Likewise.
10328         * lib/fwriting.c: Likewise.
10329         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10330
10331 2010-12-22  Bruno Haible  <bruno@clisp.org>
10332
10333         ttyname_r: Work around bug on OSF/1 5.1.
10334         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
10335         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
10336         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
10337         present.
10338         * lib/ttyname_r.c (ttyname_r): Update comments.
10339
10340 2010-12-22  Bruno Haible  <bruno@clisp.org>
10341
10342         round: Implement result sign according to IEEE 754.
10343         * lib/round.c (MIN, MINUS_ZERO): New macros.
10344         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
10345         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
10346         * tests/test-round-ieee.c (main): Likewise.
10347         * tests/test-roundl-ieee.c (main): Likewise.
10348
10349         trunc: Implement result sign according to IEEE 754.
10350         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
10351         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
10352         * tests/test-trunc2.c: Include minus-zero.h.
10353         (MINUS_ZERO): New macro.
10354         (trunc_reference): Keep in sync with lib/trunc.c.
10355         * tests/test-truncf2.c: Include minus-zero.h.
10356         (MINUS_ZERO): New macro.
10357         (truncf_reference): Keep in sync with lib/trunc.c.
10358         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
10359         * tests/test-trunc-ieee.c (main): Likewise.
10360         * tests/test-truncl-ieee.c (main): Likewise.
10361
10362         ceil: Implement result sign according to IEEE 754.
10363         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
10364         (FUNC): Return -0.0 for -1 < x < 0.
10365         * tests/test-ceil2.c: Include minus-zero.h.
10366         (MINUS_ZERO): New macro.
10367         (ceil_reference): Keep in sync with lib/ceil.c.
10368         * tests/test-ceilf2.c: Include minus-zero.h.
10369         (MINUS_ZERO): New macro.
10370         (ceilf_reference): Keep in sync with lib/ceil.c.
10371         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
10372         * tests/test-ceil-ieee.c (main): Likewise.
10373         * tests/test-ceill-ieee.c (main): Likewise.
10374
10375         floor: Implement result sign according to IEEE 754.
10376         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
10377         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
10378         * tests/test-floorf2.c (floorf_reference): Likewise.
10379         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
10380         * tests/test-floor-ieee.c (main): Likewise.
10381         * tests/test-floorl-ieee.c (main): Likewise.
10382
10383 2010-12-22  Bruno Haible  <bruno@clisp.org>
10384
10385         getaddrinfo: Update doc.
10386         * doc/posix-functions/gai_strerror.texi: Return type is also different
10387         on AIX and HP-UX.
10388
10389 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10390
10391         getaddrinfo, inet_ntop: Update doc for Solaris.
10392         * doc/posix-functions/gai_strerror.texi: Return type is also an
10393         issue on Solaris 9 and earlier.
10394         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
10395         on Solaris 10 and earlier.
10396
10397 2010-12-21  Bruno Haible  <bruno@clisp.org>
10398
10399         New module 'roundl-ieee'.
10400         * modules/roundl-ieee: New file.
10401         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10402         test whether roundl works according to ISO C 99 with IEC 60559.
10403         * m4/roundl-ieee.m4: New file.
10404         * modules/roundl-ieee-tests: New file.
10405         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10406         * tests/test-roundl.c (main): Remove signbit tests.
10407         * modules/roundl-tests (Depends-on): Remove signbit.
10408         * doc/posix-functions/roundl.texi: Mention the new module.
10409
10410 2010-12-21  Bruno Haible  <bruno@clisp.org>
10411
10412         New module 'truncl-ieee'.
10413         * modules/truncl-ieee: New file.
10414         * modules/truncl-ieee-tests: New file.
10415         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10416         * tests/test-truncl.c (main): Remove signbit tests.
10417         * modules/truncl-tests (Depends-on): Remove signbit.
10418         * doc/posix-functions/truncl.texi: Mention the new module.
10419
10420 2010-12-21  Bruno Haible  <bruno@clisp.org>
10421
10422         New module 'ceill-ieee'.
10423         * modules/ceill-ieee: New file.
10424         * modules/ceill-ieee-tests: New file.
10425         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10426         * tests/test-ceill.c (main): Remove signbit tests.
10427         * modules/ceill-tests (Depends-on): Remove signbit.
10428         * doc/posix-functions/ceill.texi: Mention the new module.
10429
10430 2010-12-21  Bruno Haible  <bruno@clisp.org>
10431
10432         New module 'floorl-ieee'.
10433         * modules/floorl-ieee: New file.
10434         * modules/floorl-ieee-tests: New file.
10435         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10436         * tests/test-floorl.c (main): Remove signbit tests.
10437         * modules/floorl-tests (Depends-on): Remove signbit.
10438         * doc/posix-functions/floorl.texi: Mention the new module.
10439
10440 2010-12-21  Bruno Haible  <bruno@clisp.org>
10441
10442         New module 'round-ieee'.
10443         * modules/round-ieee: New file.
10444         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10445         whether round works according to ISO C 99 with IEC 60559.
10446         * m4/round-ieee.m4: New file.
10447         * modules/round-ieee-tests: New file.
10448         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10449         * tests/test-round1.c (main): Remove signbit tests.
10450         * modules/round-tests (Depends-on): Remove 'signbit'.
10451         * doc/posix-functions/round.texi: Mention the new module.
10452
10453 2010-12-21  Bruno Haible  <bruno@clisp.org>
10454
10455         New module 'trunc-ieee'.
10456         * modules/trunc-ieee: New file.
10457         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10458         whether trunc works according to ISO C 99 with IEC 60559.
10459         * m4/trunc-ieee.m4: New file.
10460         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10462         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10463         * modules/trunc-ieee-tests: New file.
10464         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10465         * tests/test-trunc1.c (main): Remove signbit tests.
10466         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10467         * doc/posix-functions/trunc.texi: Mention the new module.
10468
10469 2010-12-21  Bruno Haible  <bruno@clisp.org>
10470
10471         New module 'ceil-ieee'.
10472         * modules/ceil-ieee: New file.
10473         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10474         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10475         ISO C 99 with IEC 60559.
10476         * m4/ceil-ieee.m4: New file.
10477         * modules/ceil (Files): Add lib/ceil.c.
10478         (Depends-on): Add 'float'.
10479         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10480         * lib/math.in.h (ceil): New declaration.
10481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10482         REPLACE_CEIL.
10483         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10484         * modules/ceil-ieee-tests: New file.
10485         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10486         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10487         * doc/posix-functions/ceil.texi: Mention the new module.
10488
10489 2010-12-21  Bruno Haible  <bruno@clisp.org>
10490
10491         New module 'floor-ieee'.
10492         * modules/floor-ieee: New file.
10493         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10494         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10495         ISO C 99 with IEC 60559.
10496         * m4/floor-ieee.m4: New file.
10497         * modules/floor (Files): Add lib/floor.c.
10498         (Depends-on): Add 'float'.
10499         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10500         * lib/math.in.h (floor): New declaration.
10501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10502         REPLACE_FLOOR.
10503         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10504         * modules/floor-ieee-tests: New file.
10505         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10506         * tests/test-math-c++.cc: Check the signature of 'floor'.
10507         * doc/posix-functions/floor.texi: Mention the new module.
10508
10509 2010-12-21  Bruno Haible  <bruno@clisp.org>
10510
10511         New module 'roundf-ieee'.
10512         * modules/roundf-ieee: New file.
10513         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10514         test whether roundf works according to ISO C 99 with IEC 60559.
10515         * m4/roundf-ieee.m4: New file.
10516         * modules/roundf-ieee-tests: New file.
10517         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10518         * tests/test-roundf1.c (main): Remove signbit tests.
10519         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10520         * doc/posix-functions/roundf.texi: Mention the new module.
10521
10522 2010-12-21  Bruno Haible  <bruno@clisp.org>
10523
10524         New module 'truncf-ieee'.
10525         * modules/truncf-ieee: New file.
10526         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10527         test whether truncf works according to ISO C 99 with IEC 60559.
10528         * m4/truncf-ieee.m4: New file.
10529         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10531         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10532         * modules/truncf-ieee-tests: New file.
10533         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10534         * tests/test-truncf1.c (main): Remove signbit tests.
10535         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10536         * doc/posix-functions/truncf.texi: Mention the new module.
10537
10538 2010-12-21  Bruno Haible  <bruno@clisp.org>
10539
10540         New module 'ceilf-ieee'.
10541         * modules/ceilf-ieee: New file.
10542         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10543         test whether ceilf works according to ISO C 99 with IEC 60559.
10544         * m4/ceilf-ieee.m4: New file.
10545         * modules/ceilf-ieee-tests: New file.
10546         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10547         * tests/test-ceilf1.c (main): Remove signbit tests.
10548         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10549         * doc/posix-functions/ceilf.texi: Mention the new module.
10550
10551 2010-12-21  Bruno Haible  <bruno@clisp.org>
10552
10553         New module 'floorf-ieee'.
10554         * modules/floorf-ieee: New file.
10555         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10556         test whether floorf works according to ISO C 99 with IEC 60559.
10557         * m4/floorf-ieee.m4: New file.
10558         * modules/floorf-ieee-tests: New file.
10559         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10560         * tests/test-floorf1.c (main): Remove signbit tests.
10561         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10562         * doc/posix-functions/floorf.texi: Mention the new module.
10563
10564 2010-12-21  Bruno Haible  <bruno@clisp.org>
10565
10566         Support for minus zero in autoconf macros.
10567         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10568         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10569         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10570         * tests/minus-zero.h: Update comments.
10571
10572 2010-12-21  Bruno Haible  <bruno@clisp.org>
10573
10574         Tests for module 'ceil'.
10575         * modules/ceil-tests: New file.
10576         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10577         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10578
10579 2010-12-21  Bruno Haible  <bruno@clisp.org>
10580
10581         Tests for module 'floor'.
10582         * modules/floor-tests: New file.
10583         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10584         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10585
10586 2010-12-21  Bruno Haible  <bruno@clisp.org>
10587
10588         math: Fix indentation.
10589         * lib/math.in.h (floorf): Fix indentation.
10590
10591 2010-12-21  Bruno Haible  <bruno@clisp.org>
10592
10593         Fix cross-compilation guesses on Solaris.
10594         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10595         not match "solaris2.10".
10596         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10597         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10598         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10599
10600 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10601
10602         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10603         This fixes a problem observed with the latest coreutils snapshot
10604         that caused a test to fail on Solaris 8.  src/csplit.c's call
10605         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10606         earlier, instead of returning the number of bytes that would have
10607         been generated; this causes csplit to incorrectly report memory
10608         exhaustion.
10609         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10610         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10611         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10612         comments to match.
10613         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10614         Fix typo in matching older versions of Solaris: "solaris2.10"
10615         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10616         only for guessing while cross-compiling.
10617         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10618
10619 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10620
10621         ftoastr: fix comment again
10622         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10623         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10624         Also, simplify example a bit by using flags = 0.
10625
10626 2010-12-20  Bruno Haible  <bruno@clisp.org>
10627
10628         round*, trunc*: Update documentation regarding glibc.
10629         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10630         * doc/posix-functions/round.texi: Likewise.
10631         * doc/posix-functions/roundl.texi: Likewise.
10632         * doc/posix-functions/truncf.texi: Likewise.
10633         * doc/posix-functions/trunc.texi: Likewise.
10634         * doc/posix-functions/truncl.texi: Likewise.
10635
10636 2010-12-20  Bruno Haible  <bruno@clisp.org>
10637
10638         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10639         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10640         * doc/posix-functions/round.texi: Likewise.
10641         * doc/posix-functions/roundl.texi: Likewise.
10642
10643 2010-12-20  Bruno Haible  <bruno@clisp.org>
10644
10645         ttyname_r: Add missing declaration on HP-UX 11.
10646         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10647         HAVE_TTYNAME_R.
10648         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10649         declared. Set HAVE_TTYNAME_R always.
10650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10651         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10652         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10653         HAVE_TTYNAME_R.
10654         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10655
10656 2010-12-20  Bruno Haible  <bruno@clisp.org>
10657
10658         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10659         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10660         * doc/posix-functions/getlogin_r.texi: Likewise.
10661         * tests/test-getlogin.c: Include <errno.h>.
10662         (main): Avoid test failure on HP-UX 11.11.
10663         * tests/test-getlogin_r.c (main): Likewise.
10664
10665 2010-12-20  Bruno Haible  <bruno@clisp.org>
10666
10667         getlogin_r: Add missing declaration on HP-UX 11.
10668         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10669         declared also when it exists as a function.
10670         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10671
10672 2010-12-20  Bruno Haible  <bruno@clisp.org>
10673
10674         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10675         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10676         through wcrtomb.
10677
10678 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10679
10680         ftoastr: fix comment
10681         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10682         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10683
10684 2010-12-19  Bruno Haible  <bruno@clisp.org>
10685
10686         isnan: Ensure it is a macro.
10687         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10688         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10689         Solaris.
10690
10691 2010-12-19  Bruno Haible  <bruno@clisp.org>
10692
10693         ldexpl test: Fix link error on OSF/1 5.1.
10694         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10695
10696 2010-12-19  Bruno Haible  <bruno@clisp.org>
10697
10698         wctype: Make it work in C++ mode on OSF/1 5.1.
10699         * lib/wctype.in.h (iswblank): Declare but not define here.
10700         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10701         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10702         * modules/wctype (Files): Add lib/iswblank.c.
10703
10704 2010-12-19  Bruno Haible  <bruno@clisp.org>
10705
10706         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10707         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10708         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10709
10710 2010-12-19  Bruno Haible  <bruno@clisp.org>
10711
10712         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10713         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10714         _POSIX_PII_SOCKET.
10715         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10716         * doc/posix-functions/recvfrom.texi: Likewise.
10717         * doc/posix-functions/send.texi: Likewise.
10718         * doc/posix-functions/sendto.texi: Likewise.
10719
10720 2010-12-19  Bruno Haible  <bruno@clisp.org>
10721
10722         tcgetsid: Add missing declaration on OSF/1 5.1.
10723         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10724         HAVE_TCGETSID.
10725         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10726         Don't set HAVE_TCGETSID.
10727         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10728         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10729         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10730         HAVE_TCGETSID.
10731         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10732
10733 2010-12-19  Bruno Haible  <bruno@clisp.org>
10734
10735         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10736         * lib/stdio.in.h: During the include_next statement, let recursive
10737         includes of this file include only the system header file.
10738
10739 2010-12-19  Bruno Haible  <bruno@clisp.org>
10740
10741         iconv_open: Fix regression from 2010-12-04.
10742         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10743         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10744
10745 2010-12-19  Bruno Haible  <bruno@clisp.org>
10746
10747         stdbool test: Avoid a gcc warning.
10748         * tests/test-stdbool.c (main): Fail if e1 is false.
10749         Reported by Jim Meyering.
10750
10751 2010-12-19  Jim Meyering  <meyering@redhat.com>
10752
10753         setenv: restore to working order
10754         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10755         mistakenly removed.
10756         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10757         HAVE_SETENV.
10758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10759         HAVE_SETENV.
10760
10761 2010-12-19  Bruno Haible  <bruno@clisp.org>
10762
10763         Document some different function declarations on OSF/1 5.1.
10764         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10765         * doc/posix-functions/inet_ntop.texi: Likewise.
10766         * doc/posix-functions/gethostname.texi: Likewise.
10767         * lib/unistd.in.h (gethostname): Update comment.
10768
10769 2010-12-19  Bruno Haible  <bruno@clisp.org>
10770
10771         doc: Mention vasprintf-posix module.
10772         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10773         the 'vasprintf-posix' module.
10774         * doc/glibc-functions/vasprintf.texi: Likewise.
10775
10776 2010-12-19  Bruno Haible  <bruno@clisp.org>
10777
10778         unsetenv: Add missing declaration on OSF/1 5.1.
10779         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10780         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10781         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10783         not HAVE_UNSETENV.
10784         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10785         HAVE_UNSETENV.
10786         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10787
10788 2010-12-19  Bruno Haible  <bruno@clisp.org>
10789
10790         setenv: Add missing declaration on OSF/1 5.1.
10791         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10792         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10793         declared. Don't set HAVE_SETENV.
10794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10795         not HAVE_SETENV.
10796         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10797         HAVE_SETENV.
10798         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10799
10800 2010-12-19  Bruno Haible  <bruno@clisp.org>
10801
10802         nl_langinfo tests: Avoid gcc warning.
10803         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10804
10805 2010-12-19  Bruno Haible  <bruno@clisp.org>
10806
10807         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10808         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10809         _GL_CXXALIAS_SYS.
10810
10811 2010-12-19  Bruno Haible  <bruno@clisp.org>
10812
10813         stdbool: Relax test.
10814         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10815         address to 'bool' work in static initializer, for compilers other than
10816         GCC.
10817
10818 2010-12-19  Bruno Haible  <bruno@clisp.org>
10819
10820         ftello: Add missing declaration on OSF/1 5.1.
10821         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10822         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10824         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10825         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10826
10827 2010-12-19  Bruno Haible  <bruno@clisp.org>
10828
10829         fseeko: Add missing declaration on OSF/1 5.1.
10830         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10831         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10833         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10834         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10835
10836 2010-12-19  Bruno Haible  <bruno@clisp.org>
10837
10838         fchdir: Add missing declaration on OSF/1 5.1.
10839         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10842         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10843         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10844
10845 2010-12-19  Bruno Haible  <bruno@clisp.org>
10846
10847         relocatable-prog-wrapper: Separate from relocatable-prog.
10848         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10849         uninstall-relocwrapper rule here.
10850         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10851         Reported by Ian Beckwith <ianb@erislabs.net>.
10852
10853 2010-12-19  Bruno Haible  <bruno@clisp.org>
10854
10855         unistr/u8-mbsnlen: Add missing dependency.
10856         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10857         Reported by Ian Beckwith <ianb@erislabs.net>.
10858
10859 2010-12-19  Bruno Haible  <bruno@clisp.org>
10860
10861         iconv: Make it possible again to use this module without 'iconv-h'.
10862         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10863         if it is not defined.
10864         Reported by Ian Beckwith <ianb@erislabs.net>.
10865
10866 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10867
10868         acl: port to Solaris 8 when copying from tmpfs to ufs
10869         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10870         error number.  Problem observed on Solaris 8 with latest
10871         coreutils, with "mv A B", where A is on a tmpfs file system and B
10872         is on a ufs file system.  This caused coreutils' mv/part-symlink
10873         test to fail.
10874
10875         tests: set fail=0 at start
10876         * tests/init.sh (setup_): Move fail=0 initialization here ...
10877         (mktempd_): ... from here, so that tests can rely on fail being
10878         set to 0 initially.  This fixes a problem in coreutils; see:
10879         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10880
10881 2010-12-18  Bruno Haible  <bruno@clisp.org>
10882
10883         memmem-simple: Stylistic changes.
10884         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10885         Fix preprocessor directive indentation.
10886
10887 2010-12-15  Pádraig Brady <P@draigBrady.com>
10888
10889         memmem, memmem-simple: reorganize and expand empty needle check
10890         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10891         functional checks to memmem-simple so that one has a fully functional
10892         memmem by using just this module.
10893         Restrict the performance only check to the memmem module.
10894         Also expand the empty needle check to ensure the correct
10895         pointer is returned, not just a non NULL pointer.
10896         * doc/glibc-functions/memmem.texi: Rearrange the portability
10897         documentation to correlate with the rearranged checks.
10898         Clarify exactly how the memmem and memmem-simple modules
10899         relate to each other.
10900
10901 2010-12-15  Pádraig Brady <P@draigBrady.com>
10902             Bruno Haible  <bruno@clisp.org>
10903
10904         Improve cross-compilation guesses for uClibc.
10905         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10906         that uClibc does not have the glibc bug.
10907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10908         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10909
10910 2010-12-14  Eric Blake  <eblake@redhat.com>
10911
10912         configmake: provide fallbacks for oldest supported autotools
10913         * m4/configmake.m4: New file.
10914         * modules/configmake (Files): Ship it.
10915         (configure.ac): Use it to guarantee fallbacks.
10916
10917 2010-12-13  Pádraig Brady <P@draigBrady.com>
10918
10919         read-file: Improve handling of large files
10920         * lib/read-file.c (fread_file): Minimize realloc()s
10921         for regular files, and better manage sizes around SIZE_MAX.
10922
10923 2010-12-13  Eric Blake  <eblake@redhat.com>
10924
10925         cloexec, fcntl: relax license
10926         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10927         consent from all contributors.
10928         * modules/fcntl (License): Likewise.
10929
10930 2010-12-10  Bruno Haible  <bruno@clisp.org>
10931
10932         Tests for module 'pipe-posix'.
10933         * modules/pipe-posix-tests: New file.
10934         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10935
10936 2010-12-10  Bruno Haible  <bruno@clisp.org>
10937
10938         pipe-posix: Make it work in C++ mode.
10939         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10940         (pipe): Use common idiom, not a macro definition.
10941         * lib/pipe.c: New file.
10942         * m4/pipe.m4: New file.
10943         * modules/pipe-posix (Description): Enhance.
10944         (Files): Add lib/pipe.c, m4/pipe.m4.
10945         (configure.ac): Invoke gl_FUNC_PIPE.
10946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10947         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10948         * tests/test-unistd-c++.cc: Check the signature of pipe.
10949
10950 2010-12-10  Bruno Haible  <bruno@clisp.org>
10951
10952         Rename module 'pipe' to 'spawn-pipe'.
10953         * modules/spawn-pipe: New file, renamed from modules/pipe.
10954         (Files, configure.ac, Makefile.am): Update.
10955         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10956         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10957         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10958         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10959         "spawn-pipe.h" instead of "pipe.h".
10960         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10961         to gl_SPAWN_PIPE.
10962         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10963         (Files, Makefile.am): Update.
10964         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10965         Update.
10966         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10967         Include "spawn-pipe.h" instead of "pipe.h".
10968         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10969         * lib/javacomp.c: Likewise.
10970         * lib/javaversion.c: Likewise.
10971         * lib/pipe-filter-gi.c: Likewise.
10972         * lib/pipe-filter-ii.c: Likewise.
10973         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10974         * modules/javacomp (Depends-on): Likewise.
10975         * modules/javaversion (Depends-on): Likewise.
10976         * modules/pipe-filter-gi (Depends-on): Likewise.
10977         * modules/pipe-filter-ii (Depends-on): Likewise.
10978         * MODULES.html.sh (Executing programs): Update.
10979         * NEWS: Mention the change.
10980
10981 2010-12-10  Eric Blake  <eblake@redhat.com>
10982
10983         pipe-posix: new module
10984         * modules/pipe-posix: New file.
10985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10986         (gl_UNISTD_H): Check for declaration.
10987         * modules/unistd (Makefile.am): Substitute it.
10988         * lib/unistd.in.h (pipe): Provide it for mingw.
10989         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10990         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10991
10992 2010-12-07  Bruno Haible  <bruno@clisp.org>
10993
10994         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10995         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10996         u8_strcmp_gnu.
10997         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10998
10999 2010-12-06  Bruno Haible  <bruno@clisp.org>
11000
11001         Update internal documentation.
11002         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
11003
11004 2010-12-04  Bruno Haible  <bruno@clisp.org>
11005
11006         Put more information about failed tests into the test return codes.
11007         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
11008         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
11009         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11010         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11011         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11012         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11013         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11014         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11015         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
11016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11017         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
11018         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11019         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11020         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11021         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
11022         returns a bit mask.
11023         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11024         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
11025         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
11026         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
11027         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11028         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11029         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11031         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11032         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11033         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11034         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11035         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11036         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11037         * m4/link.m4 (gl_FUNC_LINK): Likewise.
11038         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11039         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
11040         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
11041         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11042         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
11043         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11044         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11045         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11046         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11047         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11048         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11049         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
11050         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11051         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11052         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
11053         gl_PRINTF_PRECISION): Likewise.
11054         * m4/regex.m4 (gl_REGEX): Likewise.
11055         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11056         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11057         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
11058         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11059         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11060         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11061         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11062         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
11063         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11064         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11065         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11066         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11067         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11068         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11069         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11070         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11071         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11072         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11073         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11074         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
11075         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
11076         enumerated value.
11077         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
11078
11079 2010-12-04  Bruno Haible  <bruno@clisp.org>
11080
11081         Update for Solaris 11 2010-11.
11082         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
11083         Express, released in November 2010.
11084
11085 2010-12-04  Bruno Haible  <bruno@clisp.org>
11086
11087         nproc: Relax license.
11088         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
11089         and Paul Eggert.
11090         Requested by Ludovic Courtès <ludo@gnu.org>.
11091
11092 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11093
11094         utimecmp: fine-grained src to nearby coarse-grained dest
11095
11096         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
11097         and the source is on a file system with higher-resolution time
11098         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
11099         not work, and the time stamps are close together, the algorithm to
11100         determine the exact resolution from the read-back mtime was buggy:
11101         it had a "!=" where it should have had an "==".  This bug has been
11102         in the code ever since it was introduced to gnulib.
11103         Problem reported by Dan Jacobson in
11104         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
11105
11106 2010-11-30  Bruno Haible  <bruno@clisp.org>
11107
11108         strerror_r-posix: Fix autoconf test.
11109         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
11110
11111 2010-11-28  Bruno Haible  <bruno@clisp.org>
11112             Paul Eggert  <eggert@cs.ucla.edu>
11113
11114         Tests for module 'getdomainname'.
11115         * modules/getdomainname-tests: New file.
11116         * tests/test-getdomainname.c: New file, based on
11117         tests/test-gethostname.c.
11118
11119 2010-11-28  Bruno Haible  <bruno@clisp.org>
11120             Paul Eggert  <eggert@cs.ucla.edu>
11121
11122         getdomainname: Use the system function when possible.
11123         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
11124         (getdomainname): Replace if needed. Provide the declaration if it is
11125         missing. Don't use _GL_CXXALIAS_SYS_CAST.
11126         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
11127         (getdomainname): When the system has getdomainname, call the system
11128         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
11129         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11130         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
11131         found in libnsl. Look for the declaration also in <netdb.h>. Replace
11132         the function if its second argument is of type 'int' or if it is found
11133         in libnsl.
11134         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
11135         <sys/systeminfo.h> and sysinfo().
11136         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
11137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11138         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
11139         HAVE_GETDOMAINNAME.
11140         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
11141         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
11142         * doc/glibc-functions/getdomainname.texi: Document the problems with
11143         the getdomainname declaration.
11144
11145 2010-11-28  Bruno Haible  <bruno@clisp.org>
11146
11147         sys_socket: Ensure ss_family field on AIX.
11148         * lib/sys_socket.in.h (ss_family): New macro definition.
11149         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
11150         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
11151         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11152         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11153         * modules/sys_socket (Makefile.am): Substitute
11154         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11155         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
11156
11157 2010-11-27  Bruno Haible  <bruno@clisp.org>
11158
11159         readline: Improve configure output.
11160         * m4/readline.m4 (gl_FUNC_READLINE): Make the
11161         "checking for readline..." result understandable.
11162
11163 2010-11-27  Bruno Haible  <bruno@clisp.org>
11164
11165         *printf-posix: Detect a bug on Solaris 10/x86.
11166         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
11167         for floating-point output.
11168         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
11169         directive.
11170         * tests/test-snprintf-posix.h (test_function): Likewise.
11171         * tests/test-sprintf-posix.h (test_function): Likewise.
11172         * tests/test-vasprintf-posix.c (test_function): Likewise.
11173         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
11174         * doc/posix-functions/printf.texi: Likewise.
11175         * doc/posix-functions/snprintf.texi: Likewise.
11176         * doc/posix-functions/sprintf.texi: Likewise.
11177         * doc/posix-functions/vfprintf.texi: Likewise.
11178         * doc/posix-functions/vprintf.texi: Likewise.
11179         * doc/posix-functions/vsnprintf.texi: Likewise.
11180         * doc/posix-functions/vsprintf.texi: Likewise.
11181         * doc/glibc-functions/obstack_printf.texi: Likewise.
11182         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11183
11184 2010-11-27  Bruno Haible  <bruno@clisp.org>
11185
11186         Fix link error when module libunistring-optional is in use.
11187         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
11188         * modules/striconveha-tests (Makefile.am): Likewise.
11189
11190 2010-11-27  Bruno Haible  <bruno@clisp.org>
11191
11192         regex: Mention link dependencies.
11193         * modules/regex (Link): New section.
11194         * modules/rpmatch (Link): Likewise.
11195         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
11196
11197 2010-11-27  Bruno Haible  <bruno@clisp.org>
11198
11199         ftoastr: Fix compilation error on Solaris.
11200         * lib/ftoastr.c: Include <config.h>.
11201
11202 2010-11-27  Bruno Haible  <bruno@clisp.org>
11203
11204         getloadavg: Update documentation.
11205         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
11206
11207 2010-11-27  Bruno Haible  <bruno@clisp.org>
11208
11209         sys_socket: Fix test whether the functions are declared.
11210         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
11211         not <sys/select.h>.
11212
11213 2010-11-27  Bruno Haible  <bruno@clisp.org>
11214
11215         getpass: Make sure to get system declaration on some platforms.
11216         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
11217         gl_USE_SYSTEM_EXTENSIONS.
11218         * modules/getpass (Depends-on): Add extensions.
11219
11220 2010-11-26  Bruno Haible  <bruno@clisp.org>
11221
11222         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
11223         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
11224         'iconv' module is present.
11225         (ICONV_CONST): New macro.
11226         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
11227         ICONV_CONST.
11228         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
11229         set ICONV_CONST.
11230         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
11231         here.
11232         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
11233         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
11234         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
11235         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
11236         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
11237         present.
11238
11239 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11240
11241         ftoastr: comment fix
11242         * lib/ftoastr.c: "little" -> "little or no" in comment
11243
11244 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
11245
11246         stdint: port to GCC 4.3 + OSX + Octave
11247         On this platform, stdint.h is buggy and defines int64_t to long
11248         long int.  The replacement defined it to long int, causing
11249         problems with C++ style name mangling.  Instead, trust the system
11250         definition if INT64_MAX is defined, and likewise for the unsigned
11251         variant.   Problem reported by Jarno Rajahalme in
11252         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
11253         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
11254         and don't mess with int64_t and INT64_MAX in this case.
11255         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
11256
11257 2010-11-24  Bruno Haible  <bruno@clisp.org>
11258
11259         doc: Corrections regarding MacOS X 10.4 and 10.5.
11260         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
11261         MacOS X.
11262         Reported by Simon Josefsson.
11263
11264 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
11265
11266         Uninstall ".bin" files installed by relocwrapper.
11267         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
11268         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
11269         unless it is already there.
11270
11271 2010-11-21  Bruno Haible  <bruno@clisp.org>
11272
11273         Update for NetBSD 5.0.
11274         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11275         NetBSD; the test fails on NetBSD 5.0.
11276         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11277         about NetBSD.
11278
11279 2010-11-21  Bruno Haible  <bruno@clisp.org>
11280
11281         Update for HP-UX 11.23 and HP-UX 11.31.
11282         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
11283         HP-UX.
11284
11285 2010-11-21  Bruno Haible  <bruno@clisp.org>
11286
11287         Update for MacOS X 10.5.
11288         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11289         MacOS X; the test fails on MacOS X 10.5.8.
11290         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11291         about MacOS X.
11292
11293 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
11294
11295         bootstrap: add bootstrap_sync option.
11296         See discussion at
11297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
11298         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
11299         * build-aux/bootstrap: Accept --bootstrap-sync to update
11300         bootstrap if it is not identical to the local gnulib's
11301         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
11302         enable this by default.  Accept --no-bootstrap-sync to disable
11303         it.
11304
11305 2010-11-20  Bruno Haible  <bruno@clisp.org>
11306
11307         Ensure that <features.h> is included before __GLIBC__ is tested.
11308         * lib/printf-parse.h: Include <features.h>.
11309         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
11310         Reported by Mike Frysinger <vapier@gentoo.org>.
11311
11312         Ensure that <features.h> is included before __GLIBC__ is tested.
11313         * lib/wchar.in.h: Include <features.h>.
11314         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
11315         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
11316         Reported by Mike Frysinger <vapier@gentoo.org>.
11317
11318         Ensure that <features.h> is included before __GLIBC__ is tested.
11319         * lib/arpa_inet.in.h: Include <features.h>.
11320         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
11321         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
11322         Reported by Mike Frysinger <vapier@gentoo.org>.
11323
11324         Ensure that <features.h> is included before __GLIBC__ is tested.
11325         * build-aux/link-warning.h: Include <features.h>.
11326         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
11327         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
11328         Reported by Mike Frysinger <vapier@gentoo.org>.
11329
11330         Ensure that <features.h> is included before __GLIBC__ is tested.
11331         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
11332         Reported by Mike Frysinger <vapier@gentoo.org>.
11333
11334 2010-11-20  Bruno Haible  <bruno@clisp.org>
11335
11336         memmem: Fix autoconf test.
11337         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
11338
11339 2010-11-20  Bruno Haible  <bruno@clisp.org>
11340
11341         Port to uClibc.
11342         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
11343         * lib/fcntl.in.h: Likewise.
11344         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
11345         * lib/mbrtowc.c (mbrtowc): Likewise.
11346         * lib/relocatable.c (find_shared_library_fullname): Likewise.
11347         * lib/strerror_r.c: Likewise.
11348         * lib/unistr/u8-strnlen.c: Likewise.
11349         * lib/vasnprintf.c (decimal_point_char): Likewise.
11350         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11351         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11352         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11353         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11354         * tests/test-sigaction.c (handler, main): Likewise.
11355         * lib/freading.h: Treat uClibc like a non-glibc platform.
11356         * lib/freading.c: Likewise.
11357         * lib/gettext.h: Likewise.
11358         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
11359         Likewise.
11360         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
11361         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11362         * lib/propername.c (proper_name_utf8): Likewise.
11363         * lib/spawn.in.h: Likewise.
11364         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
11365         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
11366         mem_cd_iconveh_internal): Likewise.
11367         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
11368         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11369         strstr, strcasestr): Likewise.
11370         * lib/unicodeio.c (unicode_to_mb): Likewise.
11371         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
11372         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
11373         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
11374         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
11375         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
11376         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
11377         * lib/unistr/u8-stpncpy.c: Likewise.
11378         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11379         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
11380         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11381         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11382         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11383         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
11384         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
11385         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
11386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11387         Likewise.
11388         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11389         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11390         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11391         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11392         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11393         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11394         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11395         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11396         * tests/test-getopt.h (OPTIND_MIN): Likewise.
11397         * tests/test-striconveha.c (main): Likewise.
11398         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11399         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
11400         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
11401         * doc/posix-functions/getline.texi: Likewise.
11402         Reported by Mike Frysinger <vapier@gentoo.org>.
11403
11404 2010-11-20  Bruno Haible  <bruno@clisp.org>
11405
11406         nproc: Fix condition.
11407         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11408         HAVE_PTHREAD_AFFINITY_NP.
11409
11410 2010-11-20  Bruno Haible  <bruno@clisp.org>
11411
11412         Fix a comment.
11413         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11414
11415 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11416
11417         ftoastr: don't assume snprintf
11418         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11419         Implement a subset of snprintf here, by using sprintf safely.
11420         * modules/ftoastr (Depends-on): Remove snprintf.
11421
11422 2010-11-19  Jim Meyering  <meyering@redhat.com>
11423
11424         test-rename.h: fix compilation failure
11425         * tests/test-rename.h (test_rename): Add omitted "}".
11426
11427 2010-11-17  Jim Meyering  <meyering@redhat.com>
11428
11429         maint.mk: add a URL discussing the no-@acronym policy
11430         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11431
11432 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11433
11434         ftoastr: depend on snprintf, improve comments
11435         * lib/ftoastr.c: Also mention Loitsch's draft.
11436         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11437         needed in the current implementation, but it might simplify
11438         speeding up the code later.
11439         * modules/ftoastr: Depend on snprintf; this improves portability.
11440         Suggested by Bruno Haible in the same email.
11441
11442         ftoastr: port to hosts lacking strtof and strtold
11443         Problem reported by Bruno Haible in
11444         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11445         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11446         environment and strtold (and presumably strtof) are not available.
11447         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11448         (configure.ac): Require gl_C99_STRTOLD.
11449
11450 2010-11-18  Bruno Haible  <bruno@clisp.org>
11451
11452         c-strtold: Avoid link error on AIX 7.
11453         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11454         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11455         (gl_C_STRTOLD): Test whether strtold_l exists.
11456         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11457
11458 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11459
11460         intprops: new macro INT_BITS_STRLEN_BOUND
11461         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11462         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11463         not exposed.  Also, it uses a slightly tighter bound than before;
11464         though this makes no practical difference, we might as well be as
11465         tight as we easily can.
11466
11467         ftoastr: new module, for lossless conversion of floats to short strings
11468         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11469         * modules/ftoastr: New files.
11470
11471 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11472
11473         bootstrap: port to Solaris sed
11474         * build-aux/bootstrap (get_version): Port to Solaris sed.
11475         See Ralf Wildenhues's note in
11476         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11477
11478 2010-11-14  Jim Meyering  <meyering@redhat.com>
11479
11480         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11481         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11482         and move definition closer to sole use.
11483
11484 2010-11-13  Jim Meyering  <meyering@redhat.com>
11485
11486         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11487         Now we require at least autoconf-2.59, which means the work-around
11488         is no longer needed.
11489         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11490         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11491         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11492         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11493         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11494
11495 2010-11-13  Bruno Haible  <bruno@clisp.org>
11496
11497         rename, renameat: Avoid test failures at NFS mounted locations.
11498         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11499         functions.
11500         (test_rename): Use assert_nonexistent.
11501         * tests/test-rename.c: Include <dirent.h>.
11502         * tests/test-renameat.c: Likewise.
11503         Reported by Gary V. Vaughan <gary@gnu.org>.
11504
11505         rename, renameat: Document Linux bug with NFS
11506         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11507         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11508         * doc/posix-functions/renameat.texi: Likewise.
11509         Suggested by Eric Blake.
11510
11511 2010-11-13  Bruno Haible  <bruno@clisp.org>
11512
11513         rename test: Add comments.
11514         * tests/test-rename.h (test_rename): Add structure and comments.
11515
11516 2010-11-13  Eric Blake  <eblake@redhat.com>
11517
11518         maintainer-makefile: cover a few more files
11519         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11520         scripts generated within C files, for libvirt.
11521
11522 2010-11-13  Bruno Haible  <bruno@clisp.org>
11523
11524         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11525         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11526         character, return the number of bytes that belong together, not always
11527         1.
11528         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11529         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11530         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11531         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11532         number of bytes of an invalid character.
11533         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11534         (main): Invoke it.
11535         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11536         results.
11537         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11538         malformed byte sequences.
11539         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11540         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11541         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11542         Reported by Ben Pfaff and Paolo Bonzini.
11543
11544 2010-11-13  Bruno Haible  <bruno@clisp.org>
11545
11546         openat: Work around glibc bug with fchownat() and empty file names.
11547         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11548         (gl_FUNC_FCHOWNAT): Invoke it.
11549         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11550         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11551         Reported by Gary V. Vaughan <gary@gnu.org>.
11552
11553 2010-11-13  Bruno Haible  <bruno@clisp.org>
11554
11555         openat: Ensure autoconf macro ordering.
11556         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11557         gl_USE_SYSTEM_EXTENSIONS.
11558         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11559
11560 2010-11-13  Bruno Haible  <bruno@clisp.org>
11561
11562         Update comments.
11563         * lib/unistr/u8-check.c: Update file name in comments.
11564         * lib/unistr/u8-mblen.c: Likewise.
11565         * lib/unistr/u8-prev.c: Likewise.
11566         * lib/unistr/u8-strmblen.c: Likewise.
11567         * lib/unistr/u8-strmbtouc.c: Likewise.
11568
11569 2010-11-13  Jim Meyering  <meyering@redhat.com>
11570
11571         tests: avoid test failure on Solaris 10 due to lack of PATH export
11572         * tests/test-update-copyright.sh: Don't forget to export PATH.
11573
11574         init.sh: ensure that IFS is defined, just in case...
11575         * tests/init.sh (setup_): Ensure that IFS is defined,
11576         so that saving and restoring it works as expected.  This
11577         appears to be useful at least for an old version of dash
11578         from a long time ago (RH 6).  See here for details:
11579         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11580
11581         maint.mk: tighten "test a == b" check
11582         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11583         test to files that contain something like #!/bin/sh.
11584         Without this, coreutils would get two false positives in
11585         the comments of C source files.
11586
11587 2010-11-12  Eric Blake  <eblake@redhat.com>
11588
11589         bootstrap: fix typo in previous attempt
11590         * build-aux/bootstrap (buildreq): Correct the grouping.
11591         Reported by Paul Eggert.
11592
11593         maintainer-makefile: prohibit test x == x
11594         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11595         Based on a report by Matthias Bolte.
11596
11597         bootstrap: allow FreeBSD gzip
11598         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11599         which has no '.' and goes to stderr.
11600         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11601         Reported by Matthias Bolte.
11602
11603         maintainer-makefile: check for i18n setup
11604         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11605         will likely work.
11606
11607 2010-11-12  Bruno Haible  <bruno@clisp.org>
11608
11609         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11610         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11611         * lib/nanosleep.c (nanosleep): Likewise.
11612
11613 2010-11-11  Bruno Haible  <bruno@clisp.org>
11614
11615         fcntl-h: Fix for use of C++ on glibc systems.
11616         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11617         also on glibc systems in C++ mode.
11618         Reported by Gary V. Vaughan <gary@gnu.org>.
11619
11620 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11621
11622         mknod: avoid false failure with dash
11623         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11624
11625 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11626
11627         unlink: Fix "is it should" typo in diagnostic.
11628         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11629         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11630
11631 2010-11-11  Bruno Haible  <bruno@clisp.org>
11632
11633         Tests for module 'strerror_r-posix'.
11634         * modules/strerror_r-posix-tests: New file.
11635         * tests/test-strerror_r.c: New file.
11636         * tests/test-string-c++.cc: Check the signature of strerror_r.
11637
11638         New module 'strerror_r-posix'.
11639         * lib/string.in.h (strerror_r): New declaration.
11640         * lib/strerror_r.c: New file.
11641         * m4/strerror_r.m4: New file.
11642         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11643         of strerror_r.
11644         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11645         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11646         * modules/strerror_r-posix: New file.
11647         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11648         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11649         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11650         portability problems.
11651
11652 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11653
11654         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11655         line is also considered for output. Quoted function name in shell
11656         command, so temporary files for functions like MyClass::operator()
11657         are removed correctly without errors.
11658
11659 2010-11-09  Bruno Haible  <bruno@clisp.org>
11660
11661         * doc/posix-functions/strerror.texi: List more failing platforms.
11662
11663         * doc/posix-functions/strerror.texi: Add a comment.
11664
11665 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11666
11667         fdopendir: fix bug on MacOS X when low on file descriptors
11668
11669         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11670         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11671         All callers changed.
11672         (fdopendir): Invoke save_cwd at the top level, not after using
11673         multiple dup() calls to use up file descriptors.  Then retry
11674         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11675         less than the maximum number of open file descriptors, because
11676         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11677         on Mac OS X 10.6.4 for tar 1.24
11678         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11679         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11680         and for tar 1.25
11681         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11682
11683 2010-11-07  Bruno Haible  <bruno@clisp.org>
11684
11685         vasnprintf: Support I flag on glibc systems.
11686         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11687         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11688         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11689         snprintf function.
11690         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11691         glibc systems.
11692         * tests/test-vasnprintf-posix3.c: New file.
11693         * modules/vasnprintf-posix-tests (Files): Add it.
11694         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11695
11696 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11697
11698         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11699         * MODULES.html.sh: For compiler warnings, use name
11700         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11701
11702 2010-11-05  Eric Blake  <eblake@redhat.com>
11703
11704         ceil, floor: avoid spurious failure with icc
11705         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11706         [denormals-as-zero] when optimizing without -mieee-fp option.
11707         * tests/test-floorf2.c (floorf_reference): Likewise.
11708         * tests/test-ceilf1.c (dummy): New function.
11709         (main): Use it to outsmart icc's optimization.
11710         * tests/test-floorf1.c (dummy, main): Likewise.
11711
11712         tests: require working signbit
11713         * modules/ceilf-tests (Depends-on): Add signbit.
11714         * modules/ceill-tests (Depends-on): Likewise.
11715         * modules/floorf-tests (Depends-on): Likewise.
11716         * modules/floorl-tests (Depends-on): Likewise.
11717         * modules/round-tests (Depends-on): Likewise.
11718         * modules/roundf-tests (Depends-on): Likewise.
11719         * modules/roundl-tests (Depends-on): Likewise.
11720         * modules/trunc-tests (Depends-on): Likewise.
11721         * modules/truncf-tests (Depends-on): Likewise.
11722         * modules/truncl-tests (Depends-on): Likewise.
11723
11724         strtod: work around icc bug
11725         * lib/strtod.c (minus_zero): Define to working value.
11726         (strtod): Use it to avoid icc bug.
11727
11728         copysign: enhance tests
11729         * modules/copysign-tests (Files): Add minus-zero.h.
11730         * tests/test-copysign.c (main): Also test zeros.
11731
11732 2010-11-04  Eric Blake  <eblake@redhat.com>
11733
11734         ceil, floor, round, trunc: enhance tests of -0
11735         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11736         * tests/test-ceill.c (main): Likewise.
11737         * tests/test-floorf1.c (main): Likewise.
11738         * tests/test-floorl.c (main): Likewise.
11739         * tests/test-round1.c (main): Likewise.
11740         * tests/test-roundf1.c (main): Likewise.
11741         * tests/test-roundl.c (main): Likewise.
11742         * tests/test-trunc1.c (main): Likewise.
11743         * tests/test-truncf1.c (main): Likewise.
11744         * tests/test-truncl.c (main): Likewise.
11745
11746 2010-11-04  Eric Blake  <eblake@redhat.com>
11747
11748         frexp, tests: work around ICC bug with -zero
11749         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11750         works with more compilers.
11751         * tests/minus-zero.h: New file.
11752         * modules/ceilf-tests (Files): Include it.
11753         * modules/ceill-tests (Files): Likewise.
11754         * modules/floorf-tests (Files): Likewise.
11755         * modules/floorl-tests (Files): Likewise.
11756         * modules/frexp-nolibm-tests (Files): Likewise.
11757         * modules/frexp-tests (Files): Likewise.
11758         * modules/frexpl-nolibm-tests (Files): Likewise.
11759         * modules/frexpl-tests (Files): Likewise.
11760         * modules/isnan-tests (Files): Likewise.
11761         * modules/isnand-nolibm-tests (Files): Likewise.
11762         * modules/isnand-tests (Files): Likewise.
11763         * modules/isnanf-nolibm-tests (Files): Likewise.
11764         * modules/isnanf-tests (Files): Likewise.
11765         * modules/isnanl-nolibm-tests (Files): Likewise.
11766         * modules/isnanl-tests (Files): Likewise.
11767         * modules/round-tests (Files): Likewise.
11768         * modules/roundf-tests (Files): Likewise.
11769         * modules/roundl-tests (Files): Likewise.
11770         * modules/ldexpl-tests (Files): Likewise.
11771         * modules/signbit-tests (Files): Likewise.
11772         * modules/snprintf-posix-tests (Files): Likewise.
11773         * modules/sprintf-posix-tests (Files): Likewise.
11774         * modules/strtod-tests (Files): Likewise.
11775         * modules/trunc-tests (Files): Likewise.
11776         * modules/truncf-tests (Files): Likewise.
11777         * modules/truncl-tests (Files): Likewise.
11778         * modules/vsnprintf-posix-tests (Files): Likewise.
11779         * modules/vsprintf-posix-tests (Files): Likewise.
11780         * modules/vasnprintf-posix-tests (Files): Likewise.
11781         * modules/vasprintf-posix-tests (Files): Likewise.
11782         * tests/test-ceilf1.c (main): Use it.
11783         * tests/test-ceill.c (main): Likewise.
11784         * tests/test-floorf1.c (main): Likewise.
11785         * tests/test-floorl.c (main): Likewise.
11786         * tests/test-frexp.c (main): Likewise.
11787         * tests/test-frexpl.c (main): Likewise.
11788         * tests/test-isnan.c (main): Likewise.
11789         * tests/test-isnand.h (main): Likewise.
11790         * tests/test-isnanf.h (main): Likewise.
11791         * tests/test-isnanl.h (main): Likewise.
11792         * tests/test-ldexpl.c (main): Likewise.
11793         * tests/test-round.c (main): Likewise.
11794         * tests/test-roundf.c (main): Likewise.
11795         * tests/test-roundl.c (main): Likewise.
11796         * tests/test-signbit.c (test_signbitf, test_signbitd)
11797         (test_signbitl): Likewise.
11798         * tests/test-snprintf-posix.h (test_function): Likewise.
11799         * tests/test-sprintf-posix.h (test_function): Likewise.
11800         * tests/test-strtod.c (main): Likewise.
11801         * tests/test-trunc1.c (main): Likewise.
11802         * tests/test-truncf1.c (main): Likewise.
11803         * tests/test-truncl.c (main): Likewise.
11804
11805         isnanl: work around icc bug
11806         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11807
11808 2010-11-03  Eric Blake  <eblake@redhat.com>
11809
11810         tests: fix compiler warnings
11811         * tests/test-getopt.h (test_getopt): Fix condition.
11812         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11813         * tests/test-pipe2.c (main): Likewise.
11814         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11815
11816         utimens: fix broken m4 test
11817         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11818
11819 2010-10-28  Bruno Haible  <bruno@clisp.org>
11820
11821         posix_spawn*, getdtablesize: Relax license.
11822         * modules/posix_spawn (License): Change to LGPLv2+.
11823         * modules/posix_spawnp (License): Likewise.
11824         * modules/posix_spawn-internal (License): Likewise.
11825         * modules/posix_spawnattr_init (License): Likewise.
11826         * modules/posix_spawnattr_getflags (License): Likewise.
11827         * modules/posix_spawnattr_setflags (License): Likewise.
11828         * modules/posix_spawnattr_getpgroup (License): Likewise.
11829         * modules/posix_spawnattr_setpgroup (License): Likewise.
11830         * modules/posix_spawnattr_getschedparam (License): Likewise.
11831         * modules/posix_spawnattr_setschedparam (License): Likewise.
11832         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11833         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11834         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11835         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11836         * modules/posix_spawnattr_getsigmask (License): Likewise.
11837         * modules/posix_spawnattr_setsigmask (License): Likewise.
11838         * modules/posix_spawnattr_destroy (License): Likewise.
11839         * modules/posix_spawn_file_actions_init (License): Likewise.
11840         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11841         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11842         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11843         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11844         * modules/getdtablesize (License): Likewise.
11845         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11846
11847 2010-10-26  Bruno Haible  <bruno@clisp.org>
11848
11849         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11850         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11851         Cygwin and mingw.
11852         Suggested by Eric Blake.
11853
11854 2010-10-26  Bruno Haible  <bruno@clisp.org>
11855
11856         stdio: Work around compilation error due to renameat() on Solaris 10.
11857         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11858         * lib/renameat.c: Don't include <unistd.h> here.
11859         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11860         Reported by Paul Eggert and Eric Blake.
11861
11862 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11863
11864         renameat: port to Solaris 10, which declares renameat in unistd.h
11865
11866         * lib/renameat.c: Include unistd.h before stdio.h, because
11867         Solaris 10 declares renameat in unistd.h.  Problem encountered
11868         when building GNU tar 1.24 on Solaris 10.
11869
11870 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11871
11872         fdopendir: fix C89 compilation
11873         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11874         compilers.
11875
11876 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11877
11878         inttostr: simplify by removing unnecessary redundancy
11879         * lib/anytostr.c: Don't include verify.h.
11880         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11881         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11882         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11883         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11884         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11885         Likewise.
11886         * modules/inttostr (Depends-on): Remove 'verify'.
11887
11888 2010-10-23  Bruno Haible  <bruno@clisp.org>
11889
11890         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11891         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11892         Reported by Eric Blake.
11893
11894 2010-10-23  Bruno Haible  <bruno@clisp.org>
11895
11896         Tests: Fix LOCALE_JA on MirBSD 10.
11897         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11898         to an UTF-8 locale.
11899         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11900         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11901         Reported by Eric Blake.
11902
11903 2010-10-21  Bruno Haible  <bruno@clisp.org>
11904
11905         nl_langinfo test: Avoid test failure on NetBSD 5.
11906         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11907         Reported by Eric Blake.
11908
11909 2010-10-21  Eric Blake  <eblake@redhat.com>
11910
11911         c-stack: work around libsigsegv 2.8 bug
11912         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11913         overflow on at least PowerPC64.
11914
11915 2010-10-17  Bruno Haible  <bruno@clisp.org>
11916
11917         userspec: Drop redundant file.
11918         * modules/userspec (Files): Remove lib/inttostr.h.
11919
11920 2010-10-17  Bruno Haible  <bruno@clisp.org>
11921
11922         nl_langinfo tests: Silence some warnings.
11923         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11924         Reported by Jim Meyering.
11925
11926 2010-10-17  Bruno Haible  <bruno@clisp.org>
11927
11928         Make use of GCC's attribute __alloc_size__.
11929         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11930         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11931         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11932         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11933         __alloc_size__.
11934         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11935         Suggested by Jim Meyering.
11936
11937 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11938
11939         bootstrap: anchor .gitignore entries.
11940         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11941         with...
11942         (insert_vc_ignore): ... this new function, which prepends `/' to
11943         all .gitignore entries before passing them to
11944         insert_sorted_if_absent.
11945
11946 2010-10-16  Bruno Haible  <bruno@clisp.org>
11947
11948         nextafter: Fix configure check.
11949         * modules/nextafter (configure.ac): Correct expected prototype.
11950
11951 2010-10-16  Bruno Haible  <bruno@clisp.org>
11952
11953         termios: Update documentation.
11954         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11955
11956 2010-10-16  Bruno Haible  <bruno@clisp.org>
11957
11958         tests: Make them compile with TinyCC.
11959         * tests/test-strstr.c (main): Remove parentheses around array
11960         initializer.
11961
11962 2010-10-15  Eric Blake  <eblake@redhat.com>
11963
11964         ignore-value: make header idempotent
11965         * lib/ignore-value.h: Add double-inclusion guards.
11966         Reported by Stefan Berger.
11967
11968 2010-10-15  Jim Meyering  <meyering@redhat.com>
11969
11970         GNUmakefile: handle "stable" target, not "major"
11971         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11972         lists in maint.mk and announce-gen.  Without this, "make stable"
11973         would fail to ensure that $(VERSION) is up to date.
11974
11975 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11976
11977         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11978         & co.
11979
11980 2010-10-14  Bruno Haible  <bruno@clisp.org>
11981
11982         vasnprintf: Don't set errno to 0.
11983         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11984         block that sets it to 0.
11985         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11986
11987 2010-10-14  Bruno Haible  <bruno@clisp.org>
11988
11989         socketlib: Fix.
11990         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11991         gl_PREREQ_SYS_H_WINSOCK2.
11992         Reported by Ian Beckwith <ianb@erislabs.net>.
11993
11994 2010-10-13  Jim Meyering  <meyering@redhat.com>
11995
11996         test-select-stdin.c: avoid warn_unused_result warnings
11997         * tests/test-select-stdin.c: Include "macros.h".
11998         ASSERT that read and fflush succeed.
11999
12000 2010-10-13  Jim Meyering  <meyering@redhat.com>
12001
12002         git-version-gen: do require git-VC'd files in cwd
12003         * build-aux/git-version-gen: Reject a git version string
12004         if there are no commits associated with the current directory.
12005         This avoids an unlikely false-positive (unrelated dir whose parent
12006         repository also contains a tag matching v*), as pointed out
12007         by Giuseppe Scrivano in
12008         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
12009
12010 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12011
12012         argv-iter: omit nonconforming declaration
12013         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
12014         enum arg_iter_err declaration, which doesn't conform to C99.
12015         Solaris 10 cc warns about this.
12016
12017 2010-10-13  Eric Blake  <eblake@redhat.com>
12018
12019         termios: fix compilation on mingw
12020         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
12021         (gl_TERMIOS_H): Adjust it on mingw.
12022         * modules/termios (Makefile.am): Substitute new key.
12023         * lib/termios.in.h (includes): Make include_next conditional.
12024         * doc/posix-headers/termios.texi (termios.h): Update
12025         documentation.
12026         Reported by Daniel P. Berrange.
12027
12028 2010-10-13  Jim Meyering  <meyering@redhat.com>
12029
12030         git-version-gen: don't require that .git/ be in the current dir
12031         * build-aux/git-version-gen: Adjust this script so that it works
12032         when run from any working directory beneath the top-level .git/-
12033         containing directory.  Inspired by a patch from Giuseppe Scrivano,
12034         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
12035
12036         test-select: avoid warn_unused_result warnings
12037         * tests/test-select.c: Include "macros.h".
12038         ASSERT that each call to read, write, and pipe succeeds.
12039         While not technically required, also check each "close".
12040         * modules/select-tests (Files): Add tests/macros.h.
12041
12042         test-symlinkat: remove declaration of unused local
12043         * tests/test-symlinkat.c (main): Remove unused local, "buf".
12044
12045         test-inttostr: avoid shadowing warnings
12046         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
12047         and use malloc rather than the stack for the same reason as
12048         mentioned in the comment justifying the other allocation.
12049
12050 2010-10-11  Bruno Haible  <bruno@clisp.org>
12051
12052         stdlib: Allow multiple gnulib generated replacements to coexist.
12053         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
12054         Reported by Sam Steingold <sds@gnu.org>.
12055
12056 2010-10-11  Jim Meyering  <meyering@redhat.com>
12057
12058         fix a documentation typo
12059         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
12060
12061 2010-10-11  Eric Blake  <eblake@redhat.com>
12062
12063         futimens: work around Solaris 11 bug
12064         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
12065         * tests/test-futimens.h (test_futimens): Enhance, rather than
12066         weaken test.
12067         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12068
12069 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12070
12071         Indentation.
12072         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
12073         higher-level operators more to the left.
12074
12075 2010-10-11  Jim Meyering  <meyering@redhat.com>
12076
12077         test-futimens: avoid unwarranted test failure on Solaris 5.11
12078         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
12079         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
12080         because it tries to dereference the NULL name argument.
12081
12082 2010-10-11  Bruno Haible  <bruno@clisp.org>
12083
12084         Indentation.
12085         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
12086         indentation.
12087
12088 2010-10-11  Jim Meyering  <meyering@redhat.com>
12089
12090         spawn.in.h: make indentation consistent with parentheses
12091         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
12092         Make indentation consistent with parentheses.
12093
12094 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
12095
12096         Fix mismatched parens in previous commit
12097         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
12098         parens.
12099
12100 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12101
12102         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
12103
12104         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
12105         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
12106         * lib/malloca.c: Include "verify.h".
12107         (verify1): Remove, replacing with a verify call.
12108         * lib/relocwrapper.c (verify1): Likewise.
12109         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
12110         Likewise.
12111         * modules/malloca (Depends-on): Add 'verify'.
12112         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
12113         * modules/vasnprintf (Depends-on): Add 'verify'.
12114         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12115         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12116         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12117         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12118         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12119         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12120         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12121
12122         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
12123
12124         Formerly the style was sometimes 2*X - 1, because the C standard
12125         was wrongly thought to disallow ?: in integral constant expressions.
12126         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
12127         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
12128         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12129         * lib/stdint.in.h (_verify_intmax_size): Likewise.
12130         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
12131         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
12132         verify that time_t cannot be floating.
12133
12134 2010-10-08  Eric Blake  <eblake@redhat.com>
12135
12136         time: enforce recent POSIX ruling that time_t is integral
12137         * lib/time.in.h (__time_t_must_be_integral): Detect any
12138         problematic systems, allowing the rest of gnulib to assume POSIX.
12139
12140 2010-10-08  Jim Meyering  <meyering@redhat.com>
12141
12142         fdopendir: fix a bug on systems lacking openat and /proc support
12143         OpenBSD 4.7 is one such system.  The most noticeable effect was
12144         failure of any application making nontrivial use of fts: rm, du,
12145         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
12146           ./rm: traversal failed: `a': Bad file descriptor
12147         Debugging that, you see that even though FD 6 was closed just
12148         prior to the opendir call in fd_clone_opendir, its resulting
12149         dir->dd_fd was 8, rather than the expected value of 6:
12150
12151         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
12152         93                close (fd);
12153         (gdb) n
12154         94                dir = fd_clone_opendir (dupfd);
12155         (gdb) n
12156         95                saved_errno = errno;
12157         (gdb) p dir->dd_fd
12158         $11 = 8
12159
12160         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
12161         The problem is that on OpenBSD, fd_clone_opendir has to resort
12162         to using the old-style save/restore CWD mechanism, due to its
12163         lack of openat/proc support, and *that* would steal the FD (6)
12164         that opendir was supposed to use.
12165
12166         The fix is to squirrel away the desired FD so that save_cwd uses a
12167         different one, and then free the dest FD right before calling opendir.
12168         That guarantees opendir will use the required file descriptor.
12169
12170         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
12171
12172 2010-10-08  Bruno Haible  <bruno@clisp.org>
12173
12174         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
12175         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
12176
12177 2010-10-08  Bruno Haible  <bruno@clisp.org>
12178
12179         nanosleep: Make replacement POSIX compliant.
12180         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
12181         is out of range.
12182         Reported by Jim Meyering.
12183
12184 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12185
12186         bootstrap: add hook for altering gnulib.mk, for Bison
12187         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
12188         the Bison bootstrapping process can rewrite file names and variables
12189         in this file before later parts of 'bootstrap' use the file.
12190         Bison wants to include lib/gnulib.mk from the top-level makefile,
12191         so it needs the file names in this file to be relative to the top
12192         level, not relative to lib; plus it needs variable names to be
12193         rewritten.
12194         (slurp): Use the new function.
12195
12196         bootstrap: reformat for readability
12197         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
12198
12199 2010-10-08  Eric Blake  <eblake@redhat.com>
12200
12201         docs: update cygwin progress
12202         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
12203         1.7.7.
12204         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
12205         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
12206         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
12207         * doc/posix-functions/carg.texi (carg): Likewise.
12208         * doc/posix-functions/cargf.texi (cargf): Likewise.
12209         * doc/posix-functions/casin.texi (casin): Likewise.
12210         * doc/posix-functions/casinf.texi (casinf): Likewise.
12211         * doc/posix-functions/casinh.texi (casinh): Likewise.
12212         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
12213         * doc/posix-functions/catan.texi (catan): Likewise.
12214         * doc/posix-functions/catanf.texi (catanf): Likewise.
12215         * doc/posix-functions/catanh.texi (catanh): Likewise.
12216         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
12217         * doc/posix-functions/ccos.texi (ccos): Likewise.
12218         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
12219         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
12220         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
12221         * doc/posix-functions/cexp.texi (cexp): Likewise.
12222         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
12223         * doc/posix-functions/cimag.texi (cimag): Likewise.
12224         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
12225         * doc/posix-functions/clog.texi (clog): Likewise.
12226         * doc/posix-functions/clogf.texi (clogf): Likewise.
12227         * doc/posix-functions/conj.texi (conj): Likewise.
12228         * doc/posix-functions/conjf.texi (conjf): Likewise.
12229         * doc/posix-functions/cpow.texi (cpow): Likewise.
12230         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
12231         * doc/posix-functions/cproj.texi (cproj): Likewise.
12232         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
12233         * doc/posix-functions/creal.texi (creal): Likewise.
12234         * doc/posix-functions/crealf.texi (crealf): Likewise.
12235         * doc/posix-functions/csin.texi (csin): Likewise.
12236         * doc/posix-functions/csinf.texi (csinf): Likewise.
12237         * doc/posix-functions/csinh.texi (csinh): Likewise.
12238         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
12239         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
12240         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
12241         * doc/posix-functions/ctan.texi (ctan): Likewise.
12242         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
12243         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
12244         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
12245         * doc/posix-headers/complex.texi (complex.h): Likewise.
12246
12247 2010-10-07  Jim Meyering  <meyering@redhat.com>
12248
12249         parse-datetime: avoid compilation failure on OpenBSD 4.7
12250         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
12251         This works around a compilation failure on OpenBSD 4.7:
12252         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
12253
12254 2010-10-07  Eric Blake  <eblake@redhat.com>
12255
12256         docs: update cygwin progress
12257         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
12258         1.7.6.
12259         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12260         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
12261         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
12262         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
12263         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
12264         Likewise.
12265         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
12266         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
12267         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
12268         Likewise.
12269         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
12270         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
12271         Likewise.
12272         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
12273         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
12274         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
12275         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
12276         Likewise.
12277         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
12278         Likewise.
12279         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
12280
12281         docs: update parse-datetime history
12282         * doc/parse-datetime.texi (Authors of parse_datetime): Better
12283         documentation of this function's history and alternatives.
12284
12285         cygwin: use more robust version check
12286         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
12287         exclude an eventual cygwin 1.9.1.
12288         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12290         (gl_FUNC_STRCASESTR): Likewise.
12291         Reported by Bruno Haible.
12292
12293 2010-10-06  Bruno Haible  <bruno@clisp.org>
12294
12295         string, sys_select: Avoid #including large headers unless necessary.
12296         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
12297         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
12298         OSF/1, BeOS, Haiku.
12299         Reported by Jim Meyering.
12300
12301 2010-10-05  Eric Blake  <eblake@redhat.com>
12302
12303         memmem, strstr, strcasestr: fix bug with long periodic needle
12304         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
12305         periodic needle having false positive.
12306         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
12307         and cygwin 1.7.7.
12308         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
12309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12310         (gl_FUNC_STRCASESTR): Likewise.
12311         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12312         * tests/test-memmem.c (main): Expose the bug.
12313         * tests/test-strcasestr.c (main): Likewise.
12314         * tests/test-strstr.c (main): Likewise.
12315         * tests/test-c-strcasestr.c (main): Likewise.
12316         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
12317         * doc/posix-functions/strstr.texi (strstr): Likewise.
12318         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12319         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
12320
12321 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12322
12323         parse-datetime: do some more renaming
12324         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
12325         parse_datetime, not get_date.  Mention the renaming.
12326         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
12327         in comments.
12328         * m4/bison.m4: Likewise.
12329
12330 2010-10-05  Eric Blake  <eblake@redhat.com>
12331
12332         parse-datetime: better name than get_date
12333         * NEWS: Reword the deprecation notice.
12334         * modules/get_date: Rename to modules/parse-datetime.
12335         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
12336         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
12337         * lib/get_date.y: Rename to lib/parse-datetime.y.
12338         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
12339         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
12340         * doc/getdate.texi: Provide fallback wrapper.
12341         * lib/getdate.h: Move guts, and wrap...
12342         * lib/parse-datetime.h: ...new file.
12343         * lib/parse-datetime.y (get_date): Rename...
12344         (parse_datetime): ...to this.
12345         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
12346         (gl_PARSE_DATETIME): ...to this.
12347         * doc/posix-functions/getdate.texi (get_date): Provide fallback
12348         documentation.
12349         * modules/getdate (Files): Provide fallback docs and header.
12350         (Notice, Depends-on): Update references.
12351         * tests/test-parse-datetime.c: Likewise.
12352         * DEPENDENCIES: Likewise.
12353         * MODULES.html.sh (Date and time <time.h>): Likewise.
12354         * doc/parse-datetime.texi (Date input formats)
12355         (Authors of parse_datetime): Likewise.
12356         * modules/parse-datetime (Files, configure.ac, Makefile.am)
12357         (Include): Likewise.
12358         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
12359         * gnulib-tool: Likewise.
12360         * m4/bison.m4 (gl_BISON): Likewise.
12361         Suggested by Bruno Haible.
12362
12363 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12364
12365         more ports to Solaris tr, which needs [] around ranges
12366         * gnulib-tool: Solaris tr needs [] around ranges.
12367         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12368         * tests/test-pipe-filter-gi1.c (main): Likewise.
12369         * tests/test-pipe-filter-ii1.c (main): Likewise.
12370
12371 2010-10-05  Eric Blake  <eblake@redhat.com>
12372
12373         bootstrap: fix Solaris regression
12374         * build-aux/bootstrap (check_versions): Solaris tr still needs []
12375         around ranges.
12376         Reported by Pádraig Brady.
12377
12378         bootstrap: work with pkg-config
12379         * build-aux/bootstrap (check_versions): Also transliterate - in
12380         prerequisite name.
12381         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
12382         prerequisites that were already found, to avoid confusion.
12383         Reported by Justin Clift.
12384
12385         faccessat: remove unused wrappers
12386         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
12387         presence of these wrappers dragged in -lgen on Solaris.
12388         Reported by Clemens Brogi; fix suggested by Paul Eggert.
12389
12390 2010-10-05  Jim Meyering  <meyering@redhat.com>
12391
12392         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
12393         * Makefile (sc_pragma_columns): New syntax-check rule.
12394
12395 2010-10-04  Bruno Haible  <bruno@clisp.org>
12396
12397         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
12398         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
12399         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
12400         Reported by Bruce Korb and Eric Blake.
12401
12402 2010-10-04  Bruno Haible  <bruno@clisp.org>
12403
12404         threadlib: Make option --with-libpth-prefix work.
12405         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12406         use $LIBPTH, not just -lpth.
12407
12408 2010-10-04  Bruno Haible  <bruno@clisp.org>
12409
12410         Avoid line length limitation from HP NonStop system header files.
12411         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12412         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12413         * lib/ctype.in.h: Likewise.
12414         * lib/dirent.in.h: Likewise.
12415         * lib/errno.in.h: Likewise.
12416         * lib/fcntl.in.h: Likewise.
12417         * lib/float.in.h: Likewise.
12418         * lib/getopt.in.h: Likewise.
12419         * lib/iconv.in.h: Likewise.
12420         * lib/inttypes.in.h: Likewise.
12421         * lib/langinfo.in.h: Likewise.
12422         * lib/locale.in.h: Likewise.
12423         * lib/math.in.h: Likewise.
12424         * lib/netdb.in.h: Likewise.
12425         * lib/netinet_in.in.h: Likewise.
12426         * lib/poll.in.h: Likewise.
12427         * lib/pthread.in.h: Likewise.
12428         * lib/pty.in.h: Likewise.
12429         * lib/sched.in.h: Likewise.
12430         * lib/se-selinux.in.h: Likewise.
12431         * lib/search.in.h: Likewise.
12432         * lib/signal.in.h: Likewise.
12433         * lib/spawn.in.h: Likewise.
12434         * lib/stdarg.in.h: Likewise.
12435         * lib/stddef.in.h: Likewise.
12436         * lib/stdint.in.h: Likewise.
12437         * lib/stdio.in.h: Likewise.
12438         * lib/stdlib.in.h: Likewise.
12439         * lib/string.in.h: Likewise.
12440         * lib/strings.in.h: Likewise.
12441         * lib/sys_file.in.h: Likewise.
12442         * lib/sys_ioctl.in.h: Likewise.
12443         * lib/sys_select.in.h: Likewise.
12444         * lib/sys_socket.in.h: Likewise.
12445         * lib/sys_stat.in.h: Likewise.
12446         * lib/sys_time.in.h: Likewise.
12447         * lib/sys_times.in.h: Likewise.
12448         * lib/sys_utsname.in.h: Likewise.
12449         * lib/sys_wait.in.h: Likewise.
12450         * lib/sysexits.in.h: Likewise.
12451         * lib/termios.in.h: Likewise.
12452         * lib/time.in.h: Likewise.
12453         * lib/unistd.in.h: Likewise.
12454         * lib/wchar.in.h: Likewise.
12455         * lib/wctype.in.h: Likewise.
12456         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12457         * modules/ctype (Makefile.am): Likewise.
12458         * modules/dirent (Makefile.am): Likewise.
12459         * modules/errno (Makefile.am): Likewise.
12460         * modules/fcntl-h (Makefile.am): Likewise.
12461         * modules/float (Makefile.am): Likewise.
12462         * modules/getopt-posix (Makefile.am): Likewise.
12463         * modules/iconv-h (Makefile.am): Likewise.
12464         * modules/inttypes (Makefile.am): Likewise.
12465         * modules/langinfo (Makefile.am): Likewise.
12466         * modules/locale (Makefile.am): Likewise.
12467         * modules/math (Makefile.am): Likewise.
12468         * modules/netdb (Makefile.am): Likewise.
12469         * modules/netinet_in (Makefile.am): Likewise.
12470         * modules/poll-h (Makefile.am): Likewise.
12471         * modules/pthread (Makefile.am): Likewise.
12472         * modules/pty (Makefile.am): Likewise.
12473         * modules/sched (Makefile.am): Likewise.
12474         * modules/search (Makefile.am): Likewise.
12475         * modules/selinux-h (Makefile.am): Likewise.
12476         * modules/signal (Makefile.am): Likewise.
12477         * modules/spawn (Makefile.am): Likewise.
12478         * modules/stdarg (Makefile.am): Likewise.
12479         * modules/stddef (Makefile.am): Likewise.
12480         * modules/stdint (Makefile.am): Likewise.
12481         * modules/stdio (Makefile.am): Likewise.
12482         * modules/stdlib (Makefile.am): Likewise.
12483         * modules/string (Makefile.am): Likewise.
12484         * modules/strings (Makefile.am): Likewise.
12485         * modules/sys_file (Makefile.am): Likewise.
12486         * modules/sys_ioctl (Makefile.am): Likewise.
12487         * modules/sys_select (Makefile.am): Likewise.
12488         * modules/sys_socket (Makefile.am): Likewise.
12489         * modules/sys_stat (Makefile.am): Likewise.
12490         * modules/sys_time (Makefile.am): Likewise.
12491         * modules/sys_times (Makefile.am): Likewise.
12492         * modules/sys_utsname (Makefile.am): Likewise.
12493         * modules/sys_wait (Makefile.am): Likewise.
12494         * modules/sysexits (Makefile.am): Likewise.
12495         * modules/termios (Makefile.am): Likewise.
12496         * modules/time (Makefile.am): Likewise.
12497         * modules/unistd (Makefile.am): Likewise.
12498         * modules/wchar (Makefile.am): Likewise.
12499         * modules/wctype (Makefile.am): Likewise.
12500
12501 2010-10-04  Bruno Haible  <bruno@clisp.org>
12502
12503         read-file tests: Avoid a test failure on NonStop Kernel.
12504         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12505         a regular file.
12506         Reported by Joachim Schmitz <schmitz@hp.com>.
12507
12508 2010-10-03  Bruno Haible  <bruno@clisp.org>
12509
12510         gnulib-tool: Fixes for --create-testdir with --libtool.
12511         * gnulib-tool (func_get_automake_snippet): Don't augment
12512         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12513         an executable.
12514         (func_create_testdir): Handle module 'alloca' like func_import.
12515         Reported by Bruce Korb <bruce.korb@gmail.com>.
12516
12517 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12518
12519         Avoid some lines longer than 80 characters.
12520         * lib/stdint.in.h: Break long comment lines.
12521         * lib/math.in.h: Likewise.
12522         (_GL_NUM_UINT_WORDS): New macro, for readability.
12523         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12524         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12525         * lib/stdlib.in.h: Likewise.
12526         * lib/spawn.in.h: Likewise.
12527         * lib/sys_socket.in.h: Update an URL.
12528         * lib/sys_stat.in.h: Break long line.
12529
12530 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12531
12532         Improve pmccabe2html.
12533         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12534         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12535         when the sources change. Remove the line in the HTML about "Used
12536         ranges" (which implied that there might be other unused ranges),
12537         rename "Resume" to "Summary" (easier to understand for more users).
12538         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12539         styles, and some unnecessary blank lines.
12540
12541 2010-10-03  Bruno Haible  <bruno@clisp.org>
12542             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12543
12544         acl: Add support for ACLs on NonStop Kernel.
12545         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12546         Check whether the function aclsort() exists.
12547         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12548         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12549         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12550         (acl_nontrivial [HAVE_ACLSORT]: New function.
12551         (file_has_acl): Implement for NonStop Kernel.
12552         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12553         (qset_acl): Implement for NonStop Kernel.
12554         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12555         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12556         (main): Implement for NonStop Kernel.
12557         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12558         Kernel. Handle this flavor.
12559         * tests/test-set-mode-acl.sh: Likewise.
12560         * tests/test-copy-acl.sh: Likewise.
12561         * tests/test-copy-file.sh: Likewise.
12562
12563 2010-10-03  Bruno Haible  <bruno@clisp.org>
12564
12565         Info about ACLs on NonStop Kernel.
12566         * doc/acl-resources.txt: Add info about NonStop Kernel.
12567         References by Joachim Schmitz <schmitz@hp.com>.
12568
12569 2010-10-02  Bruno Haible  <bruno@clisp.org>
12570
12571         Define missing EDQUOT on NonStop Kernel.
12572         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12573         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12574         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12575         missing.
12576         * doc/posix-headers/errno.texi: Mention the NSK bug.
12577         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12578         Reported by Joachim Schmitz <schmitz@hp.com>.
12579
12580 2010-10-02  Bruno Haible  <bruno@clisp.org>
12581
12582         Update doc for POSIX:2008.
12583         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12584         Update URL of POSIX specification.
12585
12586 2010-10-02  Bruno Haible  <bruno@clisp.org>
12587
12588         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12589         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12590         from gnulib, not from Automake.
12591
12592 2010-10-02  Bruno Haible  <bruno@clisp.org>
12593
12594         New module 'system-posix'.
12595         * modules/system-posix: New file.
12596         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12597         module is present.
12598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12599         GNULIB_SYSTEM_POSIX.
12600         * modules/stdlib (Depends-on): Remove sys_wait.
12601         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12602         * doc/posix-functions/system.texi: Mention the new module.
12603         * doc/posix-headers/stdlib.texi: Likewise.
12604         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12605         define test_sys_wait_macros to a no-op.
12606         Reported by Sam Steingold <sds@gnu.org>.
12607
12608 2010-09-30  Bruno Haible  <bruno@clisp.org>
12609
12610         More renaming from 'getdate' to 'get_date'.
12611         * doc/get_date.texi: Renamed from doc/getdate.texi.
12612         * modules/get_date (Files): Update.
12613         * MODULES.html.sh (Date and time <time.h>): Update.
12614         * DEPENDENCIES: Update.
12615         * gnulib-tool: Update comment.
12616         * m4/bison.m4 (gl_BISON): Likewise.
12617         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12618
12619 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12620
12621         bootstrap: support ACLOCAL_FLAGS during aclocal
12622         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12623         can add additional -I dir for third-party .m4 files.
12624
12625 2010-09-30  Eric Blake  <eblake@redhat.com>
12626
12627         bootstrap: use glibtoolize on MacOS
12628         * build-aux/bootstrap (check_versions): Convert libtool into
12629         libtoolize.
12630         (tool search): Move libtool check earlier, and look for
12631         glibtoolize for MacOS.
12632         (gnulib_tool_options): Auto-add --libtool when appropriate.
12633         Reported by Justin Clift.
12634
12635         poll: fix typo that broke test on MacOS
12636         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12637         Reported by Justin Clift.
12638
12639         getdate: rename to get_date
12640         Note: getdate.h is not renamed, to minimize client impact.
12641         * modules/getdate: Mark obsolete.  Move old contents...
12642         * modules/get_date: ...to new module name.
12643         * modules/getdate-tests: Move...
12644         * modules/get_date-tests: ...here.
12645         * m4/getdate.m4: Move...
12646         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12647         * lib/getdate.y: Move...
12648         * lib/get_date.y: ...here.
12649         * tests/test-getdate.c: Move...
12650         * tests/test-get_date.c: ...here.
12651         * doc/posix-functions/getdate.texi (getdate): Update name.
12652         * NEWS: Mention the change.
12653
12654 2010-09-29  Bruno Haible  <bruno@clisp.org>
12655
12656         Separate the module 'waitpid' from the module 'sys_wait'.
12657         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12658         present.
12659         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12660         gl_MODULE_INDICATOR_FOR_TESTS.
12661         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12662         * modules/sys_wait (Depends-on): Remove waitpid.
12663         (Makefile.am): Substitute GNULIB_WAITPID.
12664         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12665         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12666         signature only if the 'waitpid' module is present.
12667         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12668         * NEWS: Mention the change.
12669         * modules/grantpt (Depends-on): Add waitpid.
12670         * modules/wait-process (Depends-on): Likewise.
12671
12672 2010-09-29  Bruno Haible  <bruno@clisp.org>
12673
12674         More tests for module 'sys_wait'.
12675         * modules/sys_wait-c++-tests: New file.
12676         * tests/test-sys_wait-c++.cc: New file.
12677         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12678         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12679
12680 2010-09-29  Bruno Haible  <bruno@clisp.org>
12681
12682         New module 'waitpid'.
12683         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12684         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12685         Don't include <process.h>.
12686         (waitpid): Declare only, using modern idiom.
12687         * m4/waitpid.m4: New file.
12688         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12689         * modules/waitpid: New file.
12690         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12691         (Makefile.am): Update.
12692         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12693
12694 2010-09-28  Bruno Haible  <bruno@clisp.org>
12695
12696         poll: Assume ANSI C.
12697         * lib/poll.c (poll): Use an ANSI C declaration.
12698
12699 2010-09-28  Bruno Haible  <bruno@clisp.org>
12700
12701         poll-h: Create poll.h on all platforms.
12702         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12703         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12704         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12705         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12706         (gl_REPLACE_POLL_H): Don't set POLL_H.
12707         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12708         * modules/poll-h (Depends-on): Add include_next.
12709         (Makefile.am): Create poll.h unconditionally. Substitute also
12710         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12711
12712 2010-09-28  Bruno Haible  <bruno@clisp.org>
12713
12714         Tests for module 'poll-h'.
12715         * modules/poll-h-c++-tests: New file.
12716         * tests/test-poll-h-c++.cc: New file.
12717
12718         Tests for module 'poll-h'.
12719         * modules/poll-h-tests: New file.
12720         * tests/test-poll-h.c: New file.
12721
12722 2010-09-28  Bruno Haible  <bruno@clisp.org>
12723
12724         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12725         * modules/poll-h (Depends-on): Add 'extensions'.
12726
12727 2010-09-28  Bruno Haible  <bruno@clisp.org>
12728
12729         New module 'poll-h'.
12730         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12731         (poll): Use modern idiom.
12732         * modules/poll-h: New file.
12733         * modules/poll (Files): Remove lib/poll.in.h.
12734         (Depends-on): Add poll-h.
12735         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12736         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12737         * m4/poll_h.m4: New file.
12738         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12739         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12740         and invoke gl_REPLACE_POLL_H.
12741         * lib/poll.c: Use common idiom.
12742         * tests/test-poll.c: Likewise.
12743         * doc/posix-headers/poll.texi: Mention the poll-h module.
12744         Suggested by Eric Blake.
12745
12746 2010-09-26  Bruno Haible  <bruno@clisp.org>
12747
12748         sys_wait: Implement WSTOPSIG.
12749         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12750         Reported by Simon Josefsson.
12751
12752 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12753
12754         stdlib, sys_wait: Avoid compilation error on mingw.
12755         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12756
12757 2010-09-26  Bruno Haible  <bruno@clisp.org>
12758
12759         stdlib tests: Avoid code duplication.
12760         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12761         * modules/sys_wait-tests (Files): Likewise.
12762         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12763         * tests/test-stdlib.c: Include test-sys_wait.h.
12764         (main): Invoke test_sys_wait_macros.
12765         * tests/test-sys_wait.c: Include test-sys_wait.h.
12766         (main): Invoke test_sys_wait_macros.
12767
12768 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12769
12770         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12771         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12772         sure Windows sockets are working before calling getaddrinfo.
12773         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12774         * doc/gnulib.texi (Windows sockets): Fix typo.
12775
12776 2010-09-25  Bruno Haible  <bruno@clisp.org>
12777
12778         Tests for module 'regex-quote'.
12779         * modules/regex-quote-tests: New file.
12780         * tests/test-regex-quote.c: New file.
12781
12782         New module 'regex-quote'.
12783         * lib/regex-quote.h: New file.
12784         * lib/regex-quote.c: New file.
12785         * modules/regex-quote: New file.
12786         Suggested by Reuben Thomas <rrt@sc3d.org>.
12787
12788 2010-09-24  Bruno Haible  <bruno@clisp.org>
12789
12790         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12791         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12792
12793 2010-09-23  Bruno Haible  <bruno@clisp.org>
12794
12795         setenv: Relax license.
12796         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12797         Blake.
12798         Requested by Eric Blake.
12799
12800 2010-09-22  Bruno Haible  <bruno@clisp.org>
12801
12802         termios: Relax license.
12803         * modules/termios (License): Change to LGPLv2+.
12804         Requested by Eric Blake.
12805
12806 2010-09-22  Bruno Haible  <bruno@clisp.org>
12807
12808         threadlib: Allow the package to change the default to 'no'.
12809         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12810         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12811         Reported by Paul Eggert.
12812
12813 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12814             Bruno Haible  <bruno@clisp.org>
12815
12816         Fix endless loop in mbmemcasecoll.
12817         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12818         byte.
12819         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12820
12821 2010-09-22  Bruno Haible  <bruno@clisp.org>
12822
12823         Tests for module 'memcoll'.
12824         * modules/memcoll-tests: New file.
12825         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12826
12827         memcoll, xmemcoll: Clarify size vs. length.
12828         * modules/memcoll.c (memcoll0): Clarify specification.
12829         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12830         passed to collate_error.
12831
12832 2010-09-22  Bruno Haible  <bruno@clisp.org>
12833
12834         Tests for module 'memcasecmp'.
12835         * modules/memcasecmp-tests: New file.
12836         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12837
12838 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12839
12840         * lib/pthread.in.h: Add split double-inclusion guard, and include
12841         system <pthread.h> if there is one.  Use @@-style as in other
12842         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12843         pthread.h doesn't.
12844         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12845         (pthread_mutexattr_settype, pthread_mutex_trylock):
12846         New static inline functions, if there's no system <pthread.h>.
12847         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12848         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12849         Approximate with mutexes if the system lacks spinlocks, as in
12850         MacOS.
12851         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12852         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12853         @@-style.  Check for spinlocks separately.
12854         (gl_PTHREAD_DEFAULTS): New macro.
12855         * modules/pthread: Redo to use a more typical style for in.h files.
12856
12857 2010-09-21  Eric Blake  <eblake@redhat.com>
12858
12859         net_if: enhance tests
12860         * tests/test-net_if.c (main): Move signature checks earlier.
12861         Print failures to stderr.
12862         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12863         Document the bug that we do not yet fix.
12864
12865 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12866
12867         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12868         about gnulib, not GSS.
12869
12870 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12871
12872         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12873         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12874         for Emacs.
12875         * build-aux/pmccabe2html: Make Makefile.am example code more
12876         cut-and-paste friendly.
12877
12878 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12879
12880         * tests/test-net_if.c: New file.
12881         * modules/net_if-tests: New file.
12882
12883 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12884
12885         pthread: add pthread_spin_destroy
12886         * lib/pthread.in.h (pthread_spin_destroy): New function.
12887
12888 2010-09-19  Bruno Haible  <bruno@clisp.org>
12889
12890         gnulib-tool: Fix --help output.
12891         * gnulib-tool (func_usage): Fix help message.
12892         Reported by Reuben Thomas <rrt@sc3d.org>.
12893
12894 2010-09-18  Jim Meyering  <meyering@redhat.com>
12895
12896         maint.mk: avoid unexpanded \n in two diagnostics
12897         * top/maint.mk (sc_prohibit_always_true_header_tests):
12898         Don't use a literal \n in a halt=... assignment.  It would not be
12899         expanded, and the two \n bytes would appear in the diagnostic output
12900         rather than the desired newline.  Use halt=$$(printf ... instead.
12901         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12902
12903 2010-09-18  Bruno Haible  <bruno@clisp.org>
12904
12905         netinet_in: Doc tweak.
12906         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12907         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12908
12909 2010-09-18  Jim Meyering  <meyering@redhat.com>
12910
12911         init.sh: correct an outdated comment
12912         * tests/init.sh (create_exe_shims_):  s/function/alias/
12913
12914         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12915         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12916         a file named "*.exe" is removed between the glob expansion and the
12917         processing of that oddly named file.
12918
12919 2010-09-17  Eric Blake  <eblake@redhat.com>
12920
12921         mirbsd: add some more support
12922         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12923         in BSD family.
12924         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12925         devices as OpenBSD.
12926         * m4/host-os.m4 (mirbsd): Add MirBSD.
12927
12928         tests: fix unportable assumption on sys/wait.h
12929         * tests/test-sys_wait.c (main): Relax test.
12930         * tests/test-stdlib.c (main): Likewise.
12931
12932         init.sh: accomodate directory with no .exes
12933         * tests/init.sh: Accomodate directory containing only scripts.
12934
12935         tests: avoid compiler warning
12936         * tests/test-stdlib.c (main): Use the variable.
12937
12938         fdutimens, fdutimensat: update signature, again
12939         * lib/utimens.h (gl_futimens): Delete, and move signature...
12940         (fdutimens): ...here.
12941         (fdutimensat): Rearrange signature.
12942         (lutimensat): Rename variable for clarity.
12943         * lib/fdutimensat.c (fdutimensat): Update signature.
12944         * lib/utimens.c (fdutimens): Likewise.
12945         (gl_futimens): Delete.
12946         (utimens, lutimens): Update callers.
12947         * lib/futimens.c (futimens): Likewise.
12948         * tests/test-fdutimensat.c: Likewise.
12949         * tests/test-utimens.c: Likewise.
12950         * tests/test-futimens.h: Update comment.
12951         * NEWS: Mention this.
12952         Suggested by Paul Eggert.
12953
12954 2010-09-17  Bruno Haible  <bruno@clisp.org>
12955
12956         Take over the maintenance of some older macros from Autoconf.
12957         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12958         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12959         GNU Autoconf.
12960         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12961         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12962
12963 2010-09-17  Eric Blake  <eblake@redhat.com>
12964
12965         fdutimensat: drop atflag validation
12966         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12967         with valid fd, to close a race scenario where futimens is
12968         unsupported and FILE was replaced by a symlink.
12969         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12970         accordingly.
12971         Suggested by Paul Eggert.
12972
12973 2010-09-16  Bruno Haible  <bruno@clisp.org>
12974
12975         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12976         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12977
12978 2010-09-16  Bruno Haible  <bruno@clisp.org>
12979
12980         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12981         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12982         login_tty exists.
12983         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12984
12985 2010-09-16  Bruno Haible  <bruno@clisp.org>
12986
12987         login_tty: Make the replacement code work on BSD systems.
12988         * lib/login_tty.c: Include <sys/ioctl.h>.
12989         (login_tty): Use ioctl TIOCSCTTY when available.
12990         * modules/login_tty (Depends-on): Add sys_ioctl.
12991         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12992
12993 2010-09-16  Bruno Haible  <bruno@clisp.org>
12994
12995         login_tty: Stricter unit test.
12996         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12997         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12998         and tcgetsid() after login_tty.
12999         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13000
13001 2010-09-16  Bruno Haible  <bruno@clisp.org>
13002
13003         New module 'tcgetsid'.
13004         * lib/tcgetsid.c: New file.
13005         * m4/tcgetsid.m4: New file.
13006         * modules/tcgetsid: New file.
13007         * modules/termios (Depends-on): Add c++defs, warn-on-use.
13008         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
13009         GNULIB_TCGETSID, HAVE_TCGETSID.
13010         * lib/termios.in.h: Include <sys/types.h>.
13011         (tcgetsid): New declaration.
13012         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
13013         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
13014         * doc/posix-functions/tcgetsid.texi: Mention the new module.
13015         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
13016
13017 2010-09-16  Bruno Haible  <bruno@clisp.org>
13018
13019         Tests for module 'termios'.
13020         * modules/termios-c++-tests: New file.
13021         * modules/termios-tests: New file.
13022         * tests/test-termios-c++.cc: New file.
13023         * tests/test-termios.c: New file.
13024
13025         New module 'termios'.
13026         * modules/termios: New file.
13027         * lib/termios.in.h: New file.
13028         * m4/termios_h.m4: New file.
13029         * doc/posix-headers/termios.texi: Mention the new module.
13030
13031 2010-09-16  Eric Blake  <eblake@redhat.com>
13032
13033         fdutimensat: add an atflag parameter
13034         * lib/fdutimensat.c (fdutimensat): Add new parameter.
13035         * lib/utimens.h (fdutimensat): Update prototype.
13036         * tests/test-fdutimensat.c: Adjust test to match.
13037         * NEWS: Document the change.
13038         Suggested by Paul Eggert.
13039
13040 2010-09-16  Bruno Haible  <bruno@clisp.org>
13041
13042         Fix typos in comments.
13043         * lib/striconveh.h: Fix typo in comment.
13044         * lib/login_tty.c (login_tty): Likewise.
13045
13046 2010-09-15  Bruno Haible  <bruno@clisp.org>
13047
13048         stdlib: clarify MirBSD WEXITSTATUS bug
13049         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
13050         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13051
13052 2010-09-15  Eric Blake  <eblake@redhat.com>
13053
13054         stdlib: work around MirBSD WEXITSTATUS bug
13055         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
13056         * modules/stdlib (Depends-on): Add sys_wait.
13057         * tests/test-sys_wait.c (main): Enhance test.
13058         * tests/test-stdlib.c (main): Likewise.
13059         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
13060
13061         docs: mention MacOS issue with WEXITSTATUS(constant)
13062         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
13063         issue.
13064         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13065
13066         strnlen: add tests
13067         * modules/strnlen-tests: New file.
13068         * tests/test-strnlen.c: Likewise.
13069
13070 2010-09-14  Bruno Haible  <bruno@clisp.org>
13071
13072         unistr/base: Avoid link errors when module 'libunistring' is also used.
13073         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
13074         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
13075         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
13076         Declare also when HAVE_LIBUNISTRING is set.
13077         Reported by Pádraig Brady <P@draigbrady.com>.
13078
13079 2010-09-14  Eric Blake  <eblake@redhat.com>
13080
13081         test-rawmemchr: make more robust
13082         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
13083         (Depends-on, configure.ac): Add needed prerequisites to use it.
13084         * modules/memchr-tests (Files, Depends-on, configure.ac):
13085         Likewise, to avoid implicit reliance on memchr module prereqs.
13086         * tests/test-memchr.c (main): Ensure proper masking.
13087         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
13088         reads.
13089
13090         memchr: detect glibc Alpha bug
13091         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
13092         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
13093         Alpha.
13094         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
13095         * tests/test-memchr.c (main): Enhance test.
13096         Reported by Nelson H. F. Beebe.
13097
13098 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13099
13100         fts, getcwd, glob: audit for dirfd returning -1
13101         * lib/fts.c (opendir): Remove #define; no longer used.
13102         (opendirat): New arg PDIR_FD.  All callers changed.
13103         (fts_build, _opendir2): Use new opendirat to avoid the need for
13104         dirfd, or for checking whether dirfd returns a negative value.
13105         Don't use opendir; always use openat followed by fdopendir.
13106         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
13107         it.
13108         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
13109         returns -1 here.
13110         * modules/fts (Depends-on): Remove dirfd.
13111         * modules/getcwd (Depends-on): Likewise.
13112
13113 2010-09-13  Eric Blake  <eblake@redhat.com>
13114
13115         float: fix broken MirBSD header
13116         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
13117         * doc/posix-headers/float.texi (float.h): Document it.
13118
13119 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13120
13121         fts: use O_NOFOLLOW to avoid race condition when opening a directory
13122         * lib/fts.c (opendirat): New arg extra_flags.
13123         (__opendir2): Use it to avoid following symlinks when opening
13124         a directory, if symlinks are not supposed to be followed.  See
13125         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
13126
13127         fdopendir: preserve argument fd before returning
13128         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
13129         (fdopendir_with_dup, fd_clone_opendir): New static functions.
13130         (fdopendir): Use them, arranging for FD to be open to the same
13131         directory that it was when it started.  (It might be temporarily
13132         closed while fdopendir is running, so this not thread- or
13133         signal-safe.)  Be careful to do the right thing even when file
13134         descriptors are scarce and dup fails with errno == EMFILE.  See
13135         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
13136
13137 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
13138
13139         regex: Pass the system regex if its only problem is 32-bit regoff_t.
13140         * NEWS: Document change.
13141         * m4/regex.m4: Disable test for regoff_t size.
13142
13143 2010-09-13  Jim Meyering  <meyering@redhat.com>
13144
13145         fts: don't operate on an invalid file descriptor after failed dup
13146         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
13147         negative file descriptor.
13148
13149 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13150
13151         savedir: add streamsavedir, deprecate fdsavedir
13152         * NEWS: Mention deprecation of fdsavedir.
13153         * lib/savedir.c (streamsavedir): New extern function, whose name
13154         ends in "savedir" to be consistent with the others.  This differs
13155         from savedirstream in that it doesn't close its argument.  The
13156         next version of GNU tar will use this instead of fdsavedir, to
13157         avoid some race conditions and conserve file descriptors.
13158         (savedirstream): Reimplement as a wrapper around streamsavedir.
13159         (fdsavedir): Add a comment deprecating this function.  As far as
13160         I know, only GNU tar used it, and GNU tar doesn't need it any more.
13161         * lib/savedir.h (streamsavedir): New decl.
13162         (fdsavedir): Add a comment deprecating this.
13163
13164 2010-09-10  Bruno Haible  <bruno@clisp.org>
13165
13166         langinfo: Fix last commit.
13167         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
13168         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
13169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13170
13171 2010-09-10  Bruno Haible  <bruno@clisp.org>
13172
13173         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
13174         * lib/progreloc.c (O_EXEC): Define fallback.
13175
13176 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13177
13178         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
13179         * NEWS: Document recent changes to fcntl-h.
13180         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
13181         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
13182         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
13183         Similarly for O_SEARCH; this last was already true, but not documented.
13184         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
13185         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
13186         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
13187         Likewise.
13188         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
13189         is zero, not whether it is defined.
13190         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
13191         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
13192         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
13193
13194 2010-09-10  Bruno Haible  <bruno@clisp.org>
13195
13196         langinfo, nl_langinfo: Fix for IRIX 5.3.
13197         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
13198         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
13199         HAVE_LANGINFO_YESEXPR.
13200         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
13201         HAVE_LANGINFO_YESEXPR.
13202         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
13203         HAVE_LANGINFO_T_FMT_AMPM is 0.
13204         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
13205         HAVE_LANGINFO_YESEXPR is 0.
13206         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
13207         NOEXPR.
13208         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
13209         * doc/posix-functions/nl_langinfo.texi: Likewise.
13210         Reported by Eric Blake.
13211
13212 2010-09-10  Bruno Haible  <bruno@clisp.org>
13213
13214         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
13215         * doc/glibc-functions/login_tty.texi: Mention the include file problem
13216         on FreeBSD 8.0 and OpenBSD 4.6.
13217         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
13218         * m4/pty_h.m4 (gl_PTY_H): Likewise.
13219         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
13220         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
13221         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
13222         ac_includes_default.
13223         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13224
13225 2010-09-09  Eric Blake  <eblake@redhat.com>
13226
13227         strsignal: work around NetBSD bug
13228         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
13229         * lib/string.in.h (includes): Likewise.
13230         * doc/posix-functions/strsignal.texi (strsignal): Document the
13231         bug.
13232         Reported by Nelson H. F. Beebe.
13233
13234         gnulib-tool: work with NetBSD /bin/sh
13235         * gnulib-tool (func_cache_var, func_cache_lookup_module)
13236         (func_get_description, func_get_comment, func_get_status)
13237         (func_get_notice, func_get_applicability, func_get_filelist)
13238         (func_get_dependencies, func_get_autoconf_early_snippet)
13239         (func_get_autoconf_snippet, func_get_automake_snippet)
13240         (func_get_include_directive, func_get_link_directive)
13241         (func_get_license, func_get_maintainer, func_import): Avoid
13242         shell syntax errors from parsing syntax extensions.
13243
13244 2010-09-09  Bruno Haible  <bruno@clisp.org>
13245
13246         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13247         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
13248         a reliable way to determine whether the 'alias' command works.
13249
13250 2010-09-08  Jim Meyering  <meyering@redhat.com>
13251
13252         init.sh: penalize a set-x-impaired shell; don't disqualify it
13253         * tests/init.sh: Too many shells corrupt application stderr when
13254         you set -x, so we can't afford to disqualify them, since at least
13255         on Irix-6.5, that would disqualify all bourne shells.
13256         Instead, use a two-pass approach.
13257         On the first pass, try to find a shell that meets the stricter
13258         condition that set -x does not corrupt stderr.
13259         If no shell meets the stricter condition, retest each candidate
13260         shell, but without that extra condition.  Finally, when
13261         VERBOSE=yes is requested and set -x might cause trouble, simply
13262         issue a warning and refrain from enabling debug output.
13263
13264 2010-09-08  Eric Blake  <eblake@redhat.com>
13265
13266         unsetenv: fix OpenBSD bug
13267         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
13268         * doc/posix-functions/unsetenv.texi (unsetenv): Update
13269         documentation.
13270         Reported by Jim Meyering.
13271
13272         strtod: work around IRIX 6.5 bug
13273         * lib/strtod.c (strtod): Reparse number on shorter string if
13274         exponent parse was invalid.
13275         * tests/test-strtod.c (main): Add check for "0x1p 2".
13276         Reported by Tom G. Christensen.
13277
13278         getopt: optimize previous patch
13279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
13280         empty variable.  Speed up awk script.
13281         Reported by Paolo Bonzini.
13282
13283 2010-09-08  Jim Meyering  <meyering@redhat.com>
13284
13285         test.sh: disqualify shells for which set -x corrupts stderr
13286         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
13287         and OpenBSD 4.7.  They make it so with "set -x", environment settings
13288         appear in stderr output.  For example, this command:
13289             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
13290         prints "P=1" on those two systems:
13291
13292 2010-09-08  Bruno Haible  <bruno@clisp.org>
13293
13294         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13295         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
13296         commands, because some shells ignore redirections when there is an
13297         error in the command lookup.
13298         Reported by Eric Blake.
13299
13300 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
13301
13302         * lib/regex.h: Fix a mention of `regex_compile' (should be
13303         `re_compile_pattern').
13304         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
13305         (re_set_registers): Correct name of parameter in comment.
13306
13307         * doc/regex.texi: Add documentation for missing syntax flags.
13308         Remove commented-out documentation of defunct syntax option
13309         RE_NO_EMPTY_ALTS.
13310         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
13311         Add documentation of re_set_registers.
13312         Document trick to re-use a pattern buffer by setting fastmap manually.
13313         Update documentation of struct re_pattern_buffer per public members.
13314         Uncomment documentation of equivalence class operators and
13315         collating symbol operators, since they are now implemented,
13316         Explain leftmost-longest matching in relation to alternatives.
13317         Tidy documentation of substring matching.
13318         Remove POSIX documentation, which is done better in
13319         glibc, and refer the reader there. Keep BSD API documentation, as
13320         that is not readily available elsewhere.
13321
13322 2010-09-07  Eric Blake  <eblake@redhat.com>
13323
13324         getopt: handle POSIXLY_CORRECT set but not exported
13325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
13326         export state of POSIXLY_CORRECT, due to bash set -o posix.
13327         Reported by Dustin J. Mitchell.
13328
13329 2010-09-05  Bruno Haible  <bruno@clisp.org>
13330
13331         gnulib-tool: Highlight the changed options.
13332         * gnulib-tool (func_usage): Display the --import, --add-import,
13333         --remove-import explanations in bold font.
13334
13335 2010-09-06  Karl Berry  <karl@gnu.org>
13336
13337         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
13338
13339 2010-09-05  Bruno Haible  <bruno@clisp.org>
13340
13341         uniwidth/width: Update comment.
13342         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
13343         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
13344
13345 2010-09-05  Bruno Haible  <bruno@clisp.org>
13346
13347         isinf, isnan: Relax license.
13348         * modules/isinf (License): Change from GPL to LGPL, with consent from
13349         Ben Pfaff.
13350         * modules/isnan (License): Likewise.
13351         Requested by Ludovic Courtès.
13352
13353 2010-09-04  Bruno Haible  <bruno@clisp.org>
13354
13355         gnulib-tool: Help migration from --import to --add-import or --update.
13356         * gnulib-tool: Emit a verbose error message when --import is used
13357         without any module name.
13358
13359 2010-09-04  Bruno Haible  <bruno@clisp.org>
13360
13361         Update doc about gnulib-tool.
13362         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
13363         'gnulib-tool --update' in more detail.
13364         Reported by Eric Blake.
13365
13366 2010-09-04  Bruno Haible  <bruno@clisp.org>
13367
13368         gnulib-tool: Change --import. New options --add/remove-import.
13369         * gnulib-tool: New options --add-import, --remove-import.
13370         (func_usage): Document them.
13371         (have_associative): Define always.
13372         (func_import): In import mode, don't merge the specified settings with
13373         the cached settings. Implement remove-import mode.
13374         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
13375         Explain when to use them versus --import.
13376         (Simple update): Use --add-import instead of --import.
13377         * NEWS: Mention the change.
13378
13379 2010-09-04  Bruno Haible  <bruno@clisp.org>
13380
13381         * doc/gnulib-tool.texi (Initial import): Update paragraph about
13382         separate gnulib.mk.
13383
13384 2010-09-04  Bruno Haible  <bruno@clisp.org>
13385
13386         gnulib-tool: Don't talk about CVS any more.
13387         * gnulib-tool (func_usage, func_import): Write "version control"
13388         instead of CVS.
13389
13390 2010-09-04  Jim Meyering  <meyering@redhat.com>
13391
13392         maint.mk: avoid obscure sc_copyright_check failure in coreutils
13393         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
13394         false positives (whose names may be ill-chosen) when searching
13395         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
13396         would cause a false-positive.
13397
13398         avoid coreutils "make distcheck" failure
13399         Coreutils tests with an absolute build directory name that contains
13400         a space.  Not quoting this directory name caused a failure.
13401         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13402         * tests/test-vc-list-files-cvs.sh: Likewise.
13403
13404 2010-09-04  Bruno Haible  <bruno@clisp.org>
13405
13406         gnulib-tool: Avoid error when run in a package without Makefile.am.
13407         * gnulib-tool: When collecting the m4dirs in a package that does not
13408         have a Makefile.am, eliminate those directories that contain no
13409         gnulib-cache.m4. Fix expression that counts these directories.
13410
13411 2010-09-04  Bruno Haible  <bruno@clisp.org>
13412
13413         update-copyright test: Improve output when perl is missing or too old.
13414         * tests/test-update-copyright.sh: Move test of Perl version down after
13415         the test whether Perl exists. Provide an explanation relating Perl's
13416         error message to Automake's SKIP: message.
13417
13418 2010-09-04  Bruno Haible  <bruno@clisp.org>
13419
13420         Don't augment PATH in TESTS_ENVIRONMENT.
13421         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13422         set abs_aux_dir instead of augmenting PATH.
13423         * modules/vc-list-files-tests (Makefile.am): Likewise.
13424         * tests/test-update-copyright.sh: Augment PATH here.
13425         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13426         path_prepend_.
13427         * tests/test-vc-list-files-git.sh: Likewise.
13428
13429 2010-09-04  Jim Meyering  <meyering@redhat.com>
13430
13431         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13432         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13433
13434 2010-09-04  Bruno Haible  <bruno@clisp.org>
13435
13436         strdup: Fix compilation error in C++ mode.
13437         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13438         the macro.
13439
13440 2010-09-04  Bruno Haible  <bruno@clisp.org>
13441
13442         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13443         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13444         macro into a function.
13445         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13446
13447 2010-09-04  Bruno Haible  <bruno@clisp.org>
13448
13449         Set PATH_SEPARATOR the same way autoconf does.
13450         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13451         the value of PATH_SEPARATOR the same way autoconf-generated configure
13452         scripts do.
13453         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13454         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13455
13456 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13457
13458         Set PATH_SEPARATOR the same way autoconf does.
13459         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13460         the same way autoconf-generated configure scripts do.
13461         * posix-modules: Likewise.
13462
13463 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13464
13465         hash: fix safe_hasher const typo
13466         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13467         const; otherwise, there is a type error later.
13468
13469 2010-09-02  Jim Meyering  <meyering@redhat.com>
13470
13471         test-update-copyright.sh: require perl 5.8.0
13472         * tests/test-update-copyright.sh: Require 5.8.0,
13473         which Tom G. Christensen has confirmed is adequate,
13474         while 5.6.1 is not.
13475
13476 2010-09-02  Eric Blake  <eblake@redhat.com>
13477
13478         tests: init.sh improvements for re-exec'ing with zsh
13479         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13480         -vx through shell re-exec.
13481         Reported by Tom G. Christensen.
13482
13483         wctype: fix typo in previous commit
13484         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13485         Reported by Ludovic Courtès.
13486
13487 2010-09-02  Jim Meyering  <meyering@redhat.com>
13488
13489         test-update-copyright.sh: skip test if Perl is too old
13490         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13491         Reported by Tom G. Christensen.
13492
13493 2010-09-02  Bruno Haible  <bruno@clisp.org>
13494
13495         wctype: Avoid compilation error on IRIX 6.5.30.
13496         * lib/wctype.in.h (iswblank): Declare with a replacement if
13497         REPLACE_ISWBLANK is set.
13498         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13499         declared. Set REPLACE_ISWBLANK.
13500         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13501         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13502         * doc/posix-headers/wctype.texi: Likewise.
13503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13504
13505 2010-09-01  Bruno Haible  <bruno@clisp.org>
13506
13507         New module 'socketlib'.
13508         * modules/socketlib: New file.
13509         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13510         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13511         * modules/sockets (Depends-on): Add socketlib.
13512         Suggested by Sam Steingold <sds@gnu.org>.
13513
13514 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13515
13516         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13517
13518         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13519         when one needs search access to a directory but not read access.
13520         On systems where it is available, it works in some cases where
13521         O_RDONLY does not, namely on directories that are searchable but
13522         not readable, and which need only to be searchable.  If O_SEARCH
13523         is not available, fall back to the traditional method of using
13524         O_RDONLY.
13525
13526         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13527         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13528         when opening a directory that needs only to be searchable.
13529         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13530         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13531         * lib/openat-proc.c (openat_proc_name): Likewise.
13532         * lib/openat.c (openat_needs_fchdir): Likewise.
13533         * lib/save-cwd.c (save_cwd): Likewise.
13534         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13535
13536 2010-08-28  Bruno Haible  <bruno@clisp.org>
13537
13538         New module 'host-cpu-c-abi'.
13539         * modules/host-cpu-c-abi: New file.
13540         * m4/host-cpu-c-abi.m4: New file, based on part of
13541         clisp/src/m4/general.m4.
13542         Requested by Sam Steingold <sds@gnu.org>.
13543
13544 2010-08-31  Eric Blake  <eblake@redhat.com>
13545         and Jim Meyering  <meyering@redhat.com>
13546
13547         hash: factor, and guard against misbehaving hasher function
13548         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13549         of table->hasher's return value.  Also protect against a hash value
13550         so large that adding it to table->bucket results in a NULL pointer.
13551         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13552         Use it in place of open-coded check-and-abort.
13553
13554 2010-08-30  Bruno Haible  <bruno@clisp.org>
13555
13556         hash: silence spurious clang warning
13557         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13558         Reported by Eric Blake.
13559
13560 2010-08-30  Eric Blake  <eblake@redhat.com>
13561
13562         strstr, memmem, strcasestr: avoid leaked shell message
13563         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13564         FreeBSD.
13565         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13566         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13567
13568         tests: silence clang warning
13569         * tests/test-malloca.c (do_allocation): Avoid dead store.
13570
13571 2010-08-29  Bruno Haible  <bruno@clisp.org>
13572
13573         gettext: Fix recent mistake.
13574         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13575
13576 2010-08-29  Bruno Haible  <bruno@clisp.org>
13577
13578         selinux-h: Offer a --without-selinux option.
13579         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13580         --without-selinux was specified, skip all tests and define
13581         HAVE_SELINUX_SELINUX_H to 0.
13582         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13583         set LIB_SELINUX to empty.
13584         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13585         gl_LIBSELINUX. If --without-selinux was specified, replace
13586         selinux/context.h.
13587         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13588
13589 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13590             Bruno Haible  <bruno@clisp.org>
13591
13592         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13593         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13594         of HAVE_REALLOC.
13595         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13596         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13597         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13598         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13599
13600 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13601             Bruno Haible  <bruno@clisp.org>
13602
13603         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13604         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13605         HAVE_CALLOC.
13606         * lib/xmalloc.c: Update accordingly.
13607         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13608         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13609         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13610
13611 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13612             Bruno Haible  <bruno@clisp.org>
13613
13614         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13615         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13616         HAVE_MALLOC.
13617         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13618         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13619         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13620
13621 2010-08-29  Bruno Haible  <bruno@clisp.org>
13622
13623         Update modules list.
13624         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13625         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13626         (String handling <string.h>): Add astrxfrm.
13627         (File system functions): Add readlinkat.
13628
13629 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13630
13631         Tests for module 'realloc-gnu'.
13632         * modules/realloc-gnu-tests: New file.
13633         * tests/test-realloc-gnu.c: New file.
13634
13635         Tests for module 'calloc-gnu'.
13636         * modules/calloc-gnu-tests: New file.
13637         * tests/test-calloc-gnu.c: New file.
13638
13639         Tests for module 'malloc-gnu'.
13640         * modules/malloc-gnu-tests: New file.
13641         * tests/test-malloc-gnu.c: New file.
13642
13643 2010-08-28  Bruno Haible  <bruno@clisp.org>
13644
13645         Rename module 'realloc' -> 'realloc-gnu'.
13646         * modules/realloc-gnu: New file, copied from modules/realloc.
13647         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13648         obsolete.
13649         * modules/mgetgroups (Depends-on): Update.
13650         * doc/posix-functions/realloc.texi: Update.
13651         * NEWS: Mention the change.
13652
13653         Rename module 'calloc' -> 'calloc-gnu'.
13654         * modules/calloc-gnu: New file, copied from modules/calloc.
13655         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13656         obsolete.
13657         * doc/posix-functions/calloc.texi: Update.
13658         * NEWS: Mention the change.
13659
13660         Rename module 'malloc' -> 'malloc-gnu'.
13661         * modules/malloc-gnu: New file, copied from modules/malloc.
13662         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13663         obsolete.
13664         * modules/argp (Depends-on): Update.
13665         * modules/regex (Depends-on): Update.
13666         * doc/posix-functions/malloc.texi: Update.
13667         * NEWS: Mention the change.
13668
13669 2010-08-28  Eric Blake  <eblake@redhat.com>
13670
13671         pread, pwrite: add missing dependency
13672         * modules/pread (Depends-on): Add extensions.
13673         * modules/pwrite (Depends-on): Likewise.
13674
13675 2010-08-28  Bruno Haible  <bruno@clisp.org>
13676
13677         unistr/u*-strchr: Fix tests dependencies.
13678         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13679         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13680         Reported by Ian Beckwith <ianb@erislabs.net>.
13681
13682 2010-08-28  Bruno Haible  <bruno@clisp.org>
13683
13684         read-file: Don't occupy too much unused memory.
13685         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13686
13687 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13688             Eric Blake  <eblake@redhat.com>
13689             Bruno Haible  <bruno@clisp.org>
13690
13691         read-file: Avoid memory reallocations with regular files.
13692         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13693         (fread_file): With regular files, use the remaining length as the
13694         initial buffer size.  Check against overflow.
13695         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13696         sys_stat.
13697
13698 2010-08-28  Bruno Haible  <bruno@clisp.org>
13699
13700         ftello: Relax license.
13701         * modules/ftello (License): Relax to LGPLv2+.
13702         Reported by Eric Blake.
13703
13704 2010-08-28  Bruno Haible  <bruno@clisp.org>
13705
13706         Avoid relocwrapper link errors due to gnulib replacement functions.
13707         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13708         function.
13709         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13710
13711 2010-08-28  Bruno Haible  <bruno@clisp.org>
13712
13713         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13714         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13715         defined.
13716         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13717         Suggested by Eric Blake.
13718
13719 2010-08-28  Bruno Haible  <bruno@clisp.org>
13720
13721         sys_socket, netdb: Ensure socklen_t gets defined.
13722         * modules/sys_socket (Depends-on): Add socklen.
13723         * modules/netdb (Depends-on): Likewise.
13724         * modules/getaddrinfo (Depends-on): Remove socklen.
13725         * modules/getsockopt (Depends-on): Likewise.
13726         * modules/setsockopt (Depends-on): Likewise.
13727         * tests/test-sys_socket.c: Check that socklen_t is defined.
13728         * tests/test-netdb.c: Likewise.
13729         * m4/socklen.m4: Update comments.
13730         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13731
13732 2010-08-27  Eric Blake  <eblake@redhat.com>
13733
13734         login_tty: add missing dependency
13735         * modules/login_tty (Depends-on): Add pty.
13736
13737 2010-08-26  Eric Blake  <eblake@redhat.com>
13738
13739         lib-symbol-versions: fix m4 quoting
13740         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13741         format for AC_LINK_IFELSE.
13742
13743         glob: fix compile test
13744         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13745
13746         btowc: fix missing file
13747         * modules/btowc (Files): Also ship locale-fr.m4.
13748
13749         lseek: fix link test
13750         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13751         AC_LINK_IFELSE.
13752
13753         include_next: silence autoconf 2.68 warning
13754         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13755         AC_COMPILE_IFELSE as special.
13756         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13757         autoconf < 2.68.
13758
13759         acl: fix compilation test
13760         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13761         AC_COMPILE_IFELSE.
13762
13763 2010-08-26  Bruno Haible  <bruno@clisp.org>
13764
13765         Modernize AC_TRY_RUN invocations.
13766         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13767         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13768         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13769         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13770         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13771         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13772         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13773         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13774         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13775         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13776         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13777         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13778         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13779         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13780         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13781         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13782         gl_MBRLEN_NUL_RETVAL): Likewise.
13783         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13784         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13785         Likewise.
13786         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13787         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13788         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13789         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13790         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13791         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13792         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13793         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13794         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13795         Likewise.
13796         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13797         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13798         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13799         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13800         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13801         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13802         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13803         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13804         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13806
13807 2010-08-26  Bruno Haible  <bruno@clisp.org>
13808
13809         Modernize AC_TRY_LINK invocations.
13810         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13811         AC_TRY_LINK.
13812         * m4/argp.m4 (gl_ARGP): Likewise.
13813         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13814         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13815         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13816         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13817         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13818         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13819         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13820         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13821         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13822         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13823         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13824         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13825         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13826         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13827         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13828         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13829         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13830         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13831         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13832         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13833         Likewise.
13834         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13835         Likewise.
13836         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13837         Likewise.
13838         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13839         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13840         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13841         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13842         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13843         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13844         * m4/servent.m4 (gl_SERVENT): Likewise.
13845         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13846         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13847         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13848         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13849         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13850         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13851         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13852         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13853         * modules/tsearch-tests (configure.ac): Likewise.
13854
13855 2010-08-26  Bruno Haible  <bruno@clisp.org>
13856
13857         Modernize AC_TRY_COMPILE invocations.
13858         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13859         AC_TRY_COMPILE.
13860         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13861         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13862         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13863         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13864         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13865         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13866         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13867         * m4/lock.m4 (gl_LOCK): Likewise.
13868         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13869         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13870         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13871         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13872         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13873         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13874         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13875         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13876         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13877         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13878         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13879         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13880         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13881         extraneous semicolon.
13882
13883 2010-08-26  Jim Meyering  <meyering@redhat.com>
13884
13885         stat-time: relax license LGPL
13886         * modules/stat-time (License): Change from GPL to LGPL,
13887         with consent from all contributors, for use in libguile.
13888         Requested by Ludovic Courtès.
13889
13890 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13891
13892         poll: return immediately on POLLHUP.
13893         * lib/poll.c (poll): Always set timeout before wait_timeout is
13894         computed.
13895
13896 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13897
13898         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13899         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13900         rmdir ("dir/.//"), unlinkat.
13901
13902 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13903
13904         stdbool: avoid spurious failure with modern xlc
13905         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13906
13907 2010-08-24  Bruno Haible  <bruno@clisp.org>
13908
13909         getloadavg: simplify code
13910         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13911         gl_have_func. Update comments.
13912
13913 2010-08-24  Eric Blake  <eblake@redhat.com>
13914
13915         getloadavg: don't define SVR4 on cygwin
13916         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13917         only define SVR4 when -lkvm is required.
13918         Reported by Yaakov Selkowitz.
13919
13920 2010-08-24  Bruno Haible  <bruno@clisp.org>
13921
13922         priv-set: fix comment
13923         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13924
13925 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13926
13927         priv-set: fix comments
13928         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13929         to match code, as suggested by David Bartley in:
13930         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13931
13932 2010-08-23  Eric Blake  <eblake@redhat.com>
13933
13934         stdbool: avoid rejecting clang
13935         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13936         * tests/test-stdbool.c: Enable more tests if using the system
13937         <stdbool.h> instead of the gnulib replacement.
13938         (main): Move xlc bug test to a runtime test for all compilers.
13939         Reported by Anders Kaseorg.
13940
13941         argz: fix shell quoting issue
13942         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13943         Reported by Charles Wilson.
13944
13945 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13946             Erik Faye-Lund <kusmabite@gmail.com>
13947
13948         poll, select: handle ERROR_BROKEN_PIPE.
13949         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13950         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13951         * lib/select.c (win32_compute_revents): Do not mark a pipe
13952         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13953
13954 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13955
13956         fts: allow compilation with C++
13957         * lib/fts_.h: Specify extern "C" linkage with C++.
13958
13959 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13960
13961         Fix gnulib-tool sed script de-commentation for AIX sed.
13962         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13963         sed.
13964
13965 2010-08-17  Eric Blake  <eblake@redhat.com>
13966
13967         test-stddef: test for (some) offsetof bugs
13968         * tests/test-stddef.c: Enhance test to ensure correct type of
13969         offsetof.
13970         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13971         that we are not fixing at this time.
13972
13973 2010-08-15  Bruno Haible  <bruno@clisp.org>
13974
13975         stpncpy: Allow stpncpy to be defined as a macro.
13976         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13977         if it's already correctly declared.
13978         * lib/string.in.h (stpncpy): Undefine before redefining.
13979         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13980
13981 2010-08-14  Bruno Haible  <bruno@clisp.org>
13982
13983         Rename module 'memxfrm' to 'amemxfrm'.
13984         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13985         (amemxfrm): Renamed from memxfrm.
13986         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13987         (amemxfrm): Renamed from memxfrm.
13988         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13989         * NEWS: Mention the change.
13990         * MODULES.html.sh (String handling <string.h>): Update.
13991         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13992         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13993         * lib/unicase/u16-casexfrm.c: Likewise.
13994         * lib/unicase/u32-casexfrm.c: Likewise.
13995         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13996         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13997         * lib/uninorm/u16-normxfrm.c: Likewise.
13998         * lib/uninorm/u32-normxfrm.c: Likewise.
13999         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
14000         memxfrm.
14001         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
14002         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
14003         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
14004         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
14005         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
14006         Suggested by Paul Eggert.
14007
14008 2010-08-14  Bruno Haible  <bruno@clisp.org>
14009
14010         Tests for module 'astrxfrm'.
14011         * modules/astrxfrm-tests: New file.
14012         * tests/test-astrxfrm.c: New file.
14013
14014         New module 'astrxfrm'.
14015         * lib/astrxfrm.h: New file.
14016         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
14017         * modules/astrxfrm: New file.
14018
14019 2010-08-14  Reuben Thomas <rrt@sc3d.org>
14020
14021         regex: Tweak doc.
14022         * doc/regex.texi (Overview): Don't mention regex.c.
14023         (GNU Regular Expression Compiling): Likewise.
14024         (Match-end-of-line Operator): Mention 'not_eol'.
14025
14026 2010-08-14  Brian Gough  <bjg@gnu.org>
14027             Bruno Haible  <bruno@clisp.org>
14028
14029         git-merge-changelog: add doc relating to use with bzr and hg.
14030         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
14031
14032 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
14033
14034         pthread: fix pthread.h creation for srcdir != builddir
14035         * modules/pthread (Makefile.am): Fix the rule to work also in a
14036         non-srcdir build.
14037
14038 2010-08-13  Karl Berry  <karl@gnu.org>
14039
14040         * doc/regex.texi (Predefined Syntaxes): @smallexample.
14041         * doc/posix-*/*: force line break before @url of POSIX
14042         specifications.
14043         Suggested by Werner Lemberg.
14044
14045 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14046
14047         strtod: fix const diagnostic
14048         * lib/strtod.c (strtod): Don't assign const char * to char *,
14049         as this elicits a warning from GCC when warnings are enabled.
14050
14051 2010-08-10  Pádraig Brady <P@draigbrady.com>
14052         and Eric Blake  <eblake@redhat.com>
14053
14054         copy-acl: ignore ENOTSUP on HP-UX
14055         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
14056         so that it is available for HP-UX.
14057         * lib/copy-acl.c (qcopy_acl): Use it.
14058         Reported by Patrick M. Callahan.
14059
14060 2010-08-10  Eric Blake  <eblake@redhat.com>
14061
14062         open, chown: relax license
14063         * modules/open (License): Change to LGPLv2+, with consent by all
14064         authors, for use in augeas.
14065         * modules/chown (License): Likewise.
14066         * modules/lchown (Likewise): Likewise.
14067         Requested by Adam Stokes.
14068
14069 2010-08-09  Karl Berry  <karl@gnu.org>
14070
14071         * build-aux/ar-lib: new file, import from Automake.
14072         * config/srclist.txt: autocheck for updates.
14073
14074 2010-08-09  Eric Blake  <eblake@redhat.com>
14075
14076         readlinkat: adjust client modules
14077         * modules/areadlinkat (Depends-on): Use readlinkat, not
14078         symlinkat.
14079         * modules/areadlinkat-with-size (Depends-on): Likewise.
14080
14081         mknod: be more vocal about danger of running tests as root
14082         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
14083         root, since that is just asking for problems.
14084         Suggested by Bruno Haible, based on a report by Rainer Tammer.
14085
14086         readlinkat: split into its own module
14087         * modules/symlinkat: Split readlinkat...
14088         * modules/readlinkat: ...into separate module.
14089         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
14090         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
14091         * lib/symlinkat.c (readlinkat): Move...
14092         * lib/readlinkat.c: ...into new file.
14093         * modules/symlinkat-tests: Split readlinkat test...
14094         * modules/readlinkat-tests: ...into separate module.
14095         * tests/test-symlinkat.c: Split...
14096         * tests/test-readlinkat.c: ...into new file.
14097         * NEWS: Document the split.
14098         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14099         * lib/unistd.in.h (readlinkat): Likewise.
14100         Suggested by Bruno Haible.
14101
14102 2010-08-08  Bruno Haible  <bruno@clisp.org>
14103
14104         memxfrm: Speed up.
14105         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
14106         that usually only one call to strxfrm is necessary for each string
14107         part.
14108         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14109
14110 2010-08-07  Karl Berry  <karl@gnu.org>
14111
14112         * doc/posix-headers/limits.texi,
14113         * doc/posix-functions/malloc.texi,
14114         * doc/posix-functions/strsignal.texi: missing @item.
14115         * doc/ld-version-script.texi: spurious leading i.
14116         * doc/regex.texi (Interval Operators): no commas inside @var.
14117
14118 2010-08-01  Bruno Haible  <bruno@clisp.org>
14119
14120         Integrate the regex documentation.
14121         * doc/gnulib.texi: Define 'cn' index.
14122         (Regular expressions): New a chapter that includes regex.texi and
14123         regexprops-generic.texi.
14124         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
14125         syntax.
14126
14127         Whitespace cleanup.
14128         * doc/regex.texi: Remove trailing spaces.
14129
14130         Add regex documentation.
14131         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
14132         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
14133         Written by Kathy A. Hargreaves and Karl Berry.
14134
14135 2010-08-01  Bruno Haible  <bruno@clisp.org>
14136
14137         link: Update documentation.
14138         * doc/posix-functions/link.texi: Update regarding Solaris.
14139
14140 2010-07-31  Bruno Haible  <bruno@clisp.org>
14141
14142         Update modules list.
14143         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
14144         (String handling <string.h>): Add memcmp2, memxfrm.
14145         (Container data structures): Add xlist, xsublist, xoset.
14146         (Core language properties): Add alignof, unused-parameter.
14147         (Process control, Numeric conversion functions <stdlib.h>): Renamed
14148         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
14149         (Unibyte characters <ctype.h>): New section.
14150         (String handling <string.h>): New section.
14151         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
14152         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
14153         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
14154         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
14155         tan, tanh, tanl, y0, y1, yn.
14156         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
14157         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
14158         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
14159         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
14160         unlockpt, vdprintf, vdprintf-posix.
14161         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
14162         (File system functions): Add concat-filename, sys_file, sys_ioctl,
14163         xconcat-filename.
14164         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
14165         getdtablesize, pipe2, pipe2-safer.
14166         (Security): New section.
14167         (Networking functions): Add accept4.
14168         (Signal handling): Add sigpipe.
14169         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
14170         mbmemcasecoll.
14171         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
14172         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
14173         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
14174         pipe-filter-ii.
14175         (Misc): Add argp-version-etc, login_tty, parse-duration.
14176
14177 2010-07-31  Bruno Haible  <bruno@clisp.org>
14178
14179         Improve doc in MODULES.html.
14180         * modules/linkat (Description): Add the word "function".
14181         * modules/mkfifo (Description): Likewise.
14182         * modules/mknod (Description): Likewise.
14183         * modules/remove (Description): Likewise.
14184         * modules/renameat (Description): Likewise.
14185         * modules/stat (Description): Likewise.
14186         * modules/symlink (Description): Likewise.
14187         * modules/unlink (Description): Likewise.
14188
14189 2010-07-31  Bruno Haible  <bruno@clisp.org>
14190
14191         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
14192         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
14193         option --enable/disable-c++ instead of --enable/disable-cxx.
14194         * NEWS: Mention the change.
14195
14196 2010-07-31  Bruno Haible  <bruno@clisp.org>
14197
14198         readlink, areadlink: Relax test a bit.
14199         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
14200         alternative to ENOTDIR.
14201         * tests/test-areadlink.h (test_areadlink): Likewise.
14202         Reported by Rainer Tammer.
14203
14204 2010-07-31  Bruno Haible  <bruno@clisp.org>
14205
14206         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
14207         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
14208         character, perform the search using U_STRCHR.
14209         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
14210         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
14211         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
14212         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
14213         Suggested by Paolo Bonzini.
14214
14215 2010-07-31  Bruno Haible  <bruno@clisp.org>
14216
14217         unistr/u*-strstr: Fix dependencies.
14218         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
14219         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
14220         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
14221
14222 2010-07-31  Bruno Haible  <bruno@clisp.org>
14223
14224         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
14225         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
14226         the beginning of the loop.
14227         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
14228         cases in 'switch' statement.
14229
14230         unistr/u8-strchr: Fix several bugs.
14231         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
14232         the string. When not found, return NULL, not a pointer near the end.
14233
14234         More tests for unistr/u8-strchr.
14235         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
14236         that the function does not read past the first occurrence of the byte
14237         being searched.
14238         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
14239         * tests/unistr/test-u16-strchr.c (main): New function.
14240         * tests/unistr/test-u32-strchr.c (main): New function.
14241
14242 2010-07-31  Bruno Haible  <bruno@clisp.org>
14243
14244         posix-modules: Ignore backup files of documentation files.
14245         * posix-modules: grep only through files named *.texi.
14246
14247 2010-07-31  Bruno Haible  <bruno@clisp.org>
14248
14249         symlinkat: Fix documentation.
14250         * doc/posix-functions/readlinkat.texi: Fix module name.
14251
14252 2010-07-31  Bruno Haible  <bruno@clisp.org>
14253
14254         fchownat: Replace also when chown has the trailing slash bug.
14255         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
14256         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
14257         introduced on 2010-04-10.
14258         Reported by Rainer Tammer.
14259
14260 2010-07-31  Bruno Haible  <bruno@clisp.org>
14261
14262         linkat: Work around AIX 7.1 bug.
14263         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
14264         whether linkat handles trailing slash correctly. If not, replace linkat
14265         and define LINKAT_TRAILING_SLASH_BUG.
14266         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
14267         check whether (fd1,file1) points to a directory if file1 or file2 ends
14268         in a slash. Code taken from lib/link.c.
14269         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
14270         Reported by Rainer Tammer.
14271
14272 2010-07-31  Bruno Haible  <bruno@clisp.org>
14273
14274         Correctly determine whether pow is available in libc on AIX 7 with xlc.
14275         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
14276         This disables an xlc optimization that was causing wrong test results.
14277         Reported by Rainer Tammer.
14278
14279 2010-07-31  Bruno Haible  <bruno@clisp.org>
14280
14281         iconv: Work around AIX 6.1..7.1 bug.
14282         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
14283         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
14284         cross-compiling, guess no on all versions of AIX.
14285         Reported by Rainer Tammer.
14286
14287 2010-07-31  Bruno Haible  <bruno@clisp.org>
14288
14289         readlink: Relax test a bit.
14290         * tests/test-readlink.h (test_readlink): Allow different errno value
14291         when readlink is called with a file name that ends in / and refers to
14292         a file.
14293         Suggested by Eric Blake.
14294         Reported by Rainer Tammer.
14295
14296 2010-07-31  Bruno Haible  <bruno@clisp.org>
14297
14298         copysign: Does not require -lm on glibc systems.
14299         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
14300         gl_COMMON_DOUBLE_MATHFUNC.
14301         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
14302
14303 2010-07-31  Bruno Haible  <bruno@clisp.org>
14304
14305         duplocale: Work around AIX 7.1 bug.
14306         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
14307         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
14308         * lib/duplocale.c (rpl_duplocale): Update comment.
14309         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
14310         Reported by Rainer Tammer.
14311
14312 2010-07-30  Bruno Haible  <bruno@clisp.org>
14313
14314         dirfd: Avoid link error on AIX 7.1.
14315         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
14316         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
14317         exist, set REPLACE_DIRFD.
14318         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
14319         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
14320         * doc/posix-functions/dirfd.texi: Update.
14321         Reported by Rainer Tammer.
14322
14323 2010-07-30  Eric Blake  <eblake@redhat.com>
14324
14325         strtod: next round of AIX fixes
14326         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
14327         exponent.
14328         * tests/test-strtod.c (main): Enhance tests.
14329         * doc/posix-functions/strtod.texi (strtod): Document next bug.
14330         Reported by Rainer Tammer.
14331
14332         futimens: fix configure check
14333         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
14334         Reported by Bruno Haible.
14335
14336 2010-07-30  Bruno Haible  <bruno@clisp.org>
14337
14338         getline: Update regarding AIX.
14339         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
14340         Reported by Rainer Tammer.
14341
14342 2010-07-30  Bruno Haible  <bruno@clisp.org>
14343
14344         wcwidth: Drop replacement on AIX 7.
14345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
14346         AIX 7.
14347         Reported by Rainer Tammer.
14348
14349 2010-07-30  Bruno Haible  <bruno@clisp.org>
14350
14351         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
14352         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
14353         a 'char *'.
14354         Reported by Rainer Tammer.
14355
14356 2010-07-30  Bruno Haible  <bruno@clisp.org>
14357
14358         unlink: Update regarding AIX.
14359         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
14360         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
14361         Reported by Rainer Tammer.
14362
14363 2010-07-30  Bruno Haible  <bruno@clisp.org>
14364
14365         symlink: Update regarding AIX.
14366         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
14367         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
14368         Reported by Rainer Tammer.
14369
14370 2010-07-30  Bruno Haible  <bruno@clisp.org>
14371
14372         strndup: Update regarding AIX.
14373         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
14374         AIX 7.
14375         Reported by Rainer Tammer.
14376
14377 2010-07-30  Bruno Haible  <bruno@clisp.org>
14378
14379         stat: Update regarding AIX.
14380         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
14381         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
14382         Reported by Rainer Tammer.
14383
14384 2010-07-30  Bruno Haible  <bruno@clisp.org>
14385
14386         truncl: Fix autoconf test.
14387         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
14388         whether truncl works.
14389         Reported by Rainer Tammer.
14390
14391 2010-07-30  Bruno Haible  <bruno@clisp.org>
14392
14393         round: Update regarding AIX.
14394         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
14395         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
14396         Reported by Rainer Tammer.
14397
14398 2010-07-30  Bruno Haible  <bruno@clisp.org>
14399
14400         rename: Update regarding AIX.
14401         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14402         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14403         Reported by Rainer Tammer.
14404
14405 2010-07-30  Bruno Haible  <bruno@clisp.org>
14406
14407         printf.m4: Update regarding AIX.
14408         * m4/printf.m4: Update comments regarding AIX.
14409         Reported by Rainer Tammer.
14410
14411 2010-07-30  Bruno Haible  <bruno@clisp.org>
14412
14413         iconv: Update regarding AIX.
14414         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14415         AIX 7.
14416         Reported by Rainer Tammer.
14417
14418 2010-07-30  Bruno Haible  <bruno@clisp.org>
14419
14420         getopt: Update regarding AIX.
14421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14422         no on AIX.
14423         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14424         Reported by Rainer Tammer.
14425
14426 2010-07-30  Bruno Haible  <bruno@clisp.org>
14427
14428         ldexpl; Update regarding AIX.
14429         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14430         on AIX 7.
14431         Reported by Rainer Tammer.
14432
14433 2010-07-30  Bruno Haible  <bruno@clisp.org>
14434
14435         frexpl: Update regarding AIX.
14436         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14437         on AIX 7.
14438         Reported by Rainer Tammer.
14439
14440 2010-07-30  Bruno Haible  <bruno@clisp.org>
14441
14442         open, fopen: Update regarding AIX.
14443         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14444         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14445         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14446         * doc/posix-functions/fopen.texi: Likewise.
14447         Reported by Rainer Tammer.
14448
14449 2010-07-30  Bruno Haible  <bruno@clisp.org>
14450
14451         chown: Update doc regarding AIX.
14452         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14453         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14454         Reported by Rainer Tammer.
14455
14456 2010-07-30  Eric Blake  <eblake@redhat.com>
14457
14458         strtod: fix bug in replacement function on AIX
14459         * lib/strtod.c (strtod): Special case broken "0x" parse in
14460         underlying strtod.
14461         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14462         * doc/posix-functions/strtod.texi (strtod): Likewise.
14463         Reported by Rainer Tammer.
14464
14465 2010-07-30  Bruno Haible  <bruno@clisp.org>
14466
14467         mbrlen: Fix cross-compilation guess for AIX.
14468         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14469         guess. Leftover from 2008-12-22.
14470
14471 2010-07-30  Bruno Haible  <bruno@clisp.org>
14472
14473         mbrtowc: Fix cross-compilation guess for AIX.
14474         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14475         guess. Leftover from 2008-12-21.
14476
14477 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14478
14479         init.sh: work around trap limitation of some shells
14480         * tests/init.sh (setup_): Move exit trap outside of shell function.
14481
14482 2010-07-29  Eric Blake  <eblake@redhat.com>
14483
14484         strtod: aid debugging
14485         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14486         understanding why strtod is rejected.
14487
14488 2010-07-28  Bruno Haible  <bruno@clisp.org>
14489
14490         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14491         * lib/unistr/u8-chr.c: Include <string.h>.
14492         * tests/unistr/test-u8-chr.c: Likewise.
14493         * tests/unistr/test-u16-chr.c: Likewise.
14494         * tests/unistr/test-u32-chr.c: Likewise.
14495         * tests/unistr/test-u8-strchr.c: Likewise.
14496         * tests/unistr/test-u16-strchr.c: Likewise.
14497         * tests/unistr/test-u32-strchr.c: Likewise.
14498         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14499         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14500         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14501         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14502
14503 2010-07-28  Bruno Haible  <bruno@clisp.org>
14504
14505         Use spaces for indentation, not tabs.
14506         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14507
14508 2010-07-27  Bruno Haible  <bruno@clisp.org>
14509
14510         mbspcasecmp: Fix function specification.
14511         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14512         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14513         Reported by Eric Blake <eblake@redhat.com>.
14514
14515 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14516
14517         timespec: use cast and not conditional, as truncation isn't possible
14518         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14519         instead of a conditional.  Comment about the situation in more detail.
14520         This undoes most of the 2009-10-29 patch.
14521
14522 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14523
14524         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14525         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14526         * lib/unistr/u8-strchr.c: Likewise.
14527         * modules/unistr/u8-chr: Depend on memchr.
14528
14529         unistr/u*-strchr: add tests
14530         * modules/unistr/u8-strchr-tests: New file.
14531         * modules/unistr/u16-strchr-tests: New file.
14532         * modules/unistr/u32-strchr-tests: New file.
14533         * tests/unistr/test-strchr.h: New file.
14534         * tests/unistr/test-u8-strchr.c: New file.
14535         * tests/unistr/test-u16-strchr.c: New file.
14536         * tests/unistr/test-u32-strchr.c: New file.
14537
14538         unistr/u*-chr: test multibyte sequences more
14539         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14540         test vector.
14541         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14542         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14543         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14544
14545         unistr/u*-chr: test multibyte sequences
14546         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14547
14548         unistr/u*-chr: prepare for multibyte tests
14549         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14550         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14551         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14552         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14553         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14554         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14555
14556 2010-07-18  Bruno Haible  <bruno@clisp.org>
14557
14558         unistr/u8-strchr: Optimize non-ASCII argument case.
14559         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14560         because the first byte often matches anyway.
14561         Reported by Pádraig Brady <P@draigbrady.com>.
14562
14563 2010-07-15  Karl Berry  <karl@gnu.org>
14564
14565         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14566
14567 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14568
14569         getcwd: on Solaris, work better if ancestors are inaccessible
14570         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14571         buffer and size, try again with a large buffer.  This works better
14572         on Solaris, since its getcwd succeeds even if the path to the root
14573         is inaccessible, and this is helpful in common cases such as .zfs
14574         hidden directories.  Problem reported by J Chapman Flack in
14575         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14576         Use system getcwd if it's declared, not merely if it's partly
14577         working; use the partly-working test only to avoid needless effort
14578         if the system getcwd fails.
14579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14580         comment that was already obsolete and is now even more obsolete.
14581         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14582         now might call strdup.
14583
14584 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14585
14586         pthread: Add enough so that coreutils/src/sort.c compiles.
14587         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14588         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14589         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14590         Include <sys/types.h>, in case it defines pthread_t.
14591         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14592         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14593         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14594         (pthread_rwlockattr_t, pthread_spinlock_t):
14595         New typedefs, if HAVE_PTHREAD_T is not defined.
14596         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14597         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14598         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14599         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14600         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14601         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14602         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14603         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14604         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14605         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14606         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14607         New macros.
14608         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14609         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14610         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14611         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14612         (pthread_spin_unlock): New dummy functions.
14613         (pthread_create): Return EAGAIN; don't set errno.
14614         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14615         require AC_C_INLINE.
14616         * modules/pthread (Depends-on): Add sched, time.
14617         (pthread.h): Use AM_V_GEN.
14618
14619 2010-07-13  Bruno Haible  <bruno@clisp.org>
14620
14621         striconveh: Don't malloc memory if the result buffer is sufficient.
14622         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14623         buffer if its size is sufficient.
14624         Reported by Ludovic Courtès <ludo@gnu.org>.
14625
14626 2010-07-13  Bruno Haible  <bruno@clisp.org>
14627
14628         strtod: Add safety check.
14629         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14630
14631 2010-07-12  Bruno Haible  <bruno@clisp.org>
14632
14633         Unify tests that set gl_cv_func_ldexpl_no_libm.
14634         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14635         gl_FUNC_LDEXPL.
14636         (gl_FUNC_LDEXPL): Invoke it.
14637         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14638
14639 2010-07-12  Bruno Haible  <bruno@clisp.org>
14640
14641         Unify tests that set gl_cv_func_ldexp_no_libm.
14642         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14643         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14644         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14645         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14646         * modules/strtod (Files): Add m4/ldexp.m4.
14647
14648 2010-07-12  Bruno Haible  <bruno@clisp.org>
14649
14650         Unify tests that set gl_cv_func_frexpl_no_libm.
14651         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14652         gl_FUNC_FREXPL_NO_LIBM.
14653         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14654         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14655
14656 2010-07-12  Bruno Haible  <bruno@clisp.org>
14657
14658         Unify tests that set gl_cv_func_frexp_no_libm.
14659         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14660         gl_FUNC_FREXP_NO_LIBM.
14661         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14662         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14663
14664 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14665
14666         memcoll: clarify sizes versus lengths, document better, and tweak perf
14667         * lib/memcoll.c (strcoll_loop, memcoll0):
14668         Improve quality of descriptive comments.  Name variables
14669         consistently as to whether they are lengths (which do not include
14670         terminating null) versus sizes (which do).
14671         * lib/xmemcoll.c (xmemcoll0): Likewise.
14672         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14673         returned when s1size == 0; this is easier to compile and saves
14674         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14675
14676 2010-07-12  Bruno Haible  <bruno@clisp.org>
14677
14678         Tests for module '_Exit'.
14679         * modules/_Exit-tests: New file.
14680         * tests/test-_Exit.sh: New file.
14681         * tests/test-_Exit.c: New file.
14682
14683         New module '_Exit'.
14684         * lib/stdlib.in.h (__attribute__): New macro.
14685         (_Exit): New declaration.
14686         * lib/_Exit.c: New file.
14687         * m4/_Exit.m4: New file.
14688         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14689         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14690         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14691         * modules/_Exit: New file.
14692         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14693         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14694
14695 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14696
14697         strtod: make it more-accurate typically, and don't require libm
14698         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14699         Include limits.h.  Don't include string.h.
14700         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14701         (locale_isspace): New function, so that no casts are needed to
14702         check whether *s is a space.
14703         (ldexp): Provide an unused dummy if not available.
14704         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14705         (strtod): Use them.  This implementation prefers to use the
14706         underlying strtod if available, falling back on our own code
14707         only to fix known bugs.  This is more likely to produce an
14708         accurate result.  Also, it avoids the use of libm functions.
14709         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14710         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14711         was absent, but it caused a test failure with coreutils.
14712         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14713         with libm.
14714         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14715         * modules/strtod-tests (Makefile.am): Likewise.
14716
14717 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14718             Bruno Haible  <bruno@clisp.org>
14719
14720         unistr/u8-strchr: Optimize ASCII argument case.
14721         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14722
14723 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14724
14725         (x)memcoll: minor tweaks
14726         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14727         is after the type that it qualifies.
14728         (memcoll0): Likewise.
14729         * lib/memcoll.h (memcoll0): Likewise.
14730         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14731         * lib/xmemcoll.h (xmemcoll0): Likewise.
14732         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14733         differs from memcoll in that the NUL byte is part of the argument.
14734         Omit the abort-checks, as performance is a real issue here.  Plus,
14735         the checks were wrong anyway (an off-by-one error).  Omit local
14736         variable 'diff', as it's a bit clearer that way.
14737         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14738         no longer needed.
14739
14740 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14741
14742         (x)memcoll: speedup when input is known to be NUL delimited
14743         * lib/memcoll.c: Include stdlib.
14744         (memcoll0): New function.
14745         (strcoll_loop): New function, refactored for use in both memcoll
14746         and memcoll0.
14747         * lib/memcoll.h (memcoll0): Add prototype.
14748         * lib/xmemcoll.c (xmemcoll0): New function.
14749         (collate_error): New function, refactored for use in both xmemcoll
14750         and xmemcoll0.
14751         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14752         * m4/memcoll.m4: add inline invocation.
14753
14754 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14755
14756         * build-aux/bootstrap: Remove any local translations
14757         from the translation project synchronization directory,
14758         so that local only translations are not distributed.
14759
14760 2010-07-04  Bruno Haible  <bruno@clisp.org>
14761
14762         fsusage: Clarify which code applies to which platforms.
14763         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14764         platform.
14765         * lib/fsusage.c (get_fs_usage): Likewise.
14766
14767 2010-07-04  Bruno Haible  <bruno@clisp.org>
14768
14769         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14770         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14771         Reported by Martin Lambers <marlam@marlam.de>.
14772
14773 2010-07-04  Jim Meyering  <meyering@redhat.com>
14774
14775         hash: once again explicitly disallow insertion of NULL
14776         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14777         inserting a NULL pointer cannot work with these functions.
14778         Add a comment with details.
14779         This reverts part of the 2010-07-01 commit, 5bef1a35
14780         "hash: extend module to deal with non-pointer keys".
14781
14782 2010-07-01  Bruno Haible  <bruno@clisp.org>
14783
14784         stdbool: Update doc.
14785         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14786         Info from Christian Weisgerber <naddy@mips.inka.de>.
14787
14788 2010-07-01  Jim Meyering  <meyering@redhat.com>
14789
14790         hash: extend module to deal with non-pointer keys
14791         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14792         but that allows insertion of non-pointer entries.
14793         Do not disallow an ENTRY value of NULL.
14794         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14795         * lib/hash.h (hash_insert0): Declare.
14796
14797 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14798
14799         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14800         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14801         not present (i.e. with autoconf 2.59 and when using gettextize, not
14802         gnulib), require AC_GNU_SOURCE instead.
14803
14804 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14805
14806         idpriv-drop: Fix tests.
14807         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14808         not to the test-idpriv-droptemp program.
14809
14810 2010-06-29  Bruno Haible  <bruno@clisp.org>
14811
14812         string: Fix syntax error with g++ 2.96.
14813         * lib/string.in.h (__pure__): Remove definition.
14814         (_GL_ATTRIBUTE_PURE): New macro.
14815         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14816         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14817         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14818
14819 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14820
14821         unitypes: Fix bug introduced on 2010-05-18.
14822         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14823
14824 2010-06-22  Eric Blake  <eblake@redhat.com>
14825
14826         memmem: slight optimization
14827         * lib/str-two-way.h (critical_factorization): Update comments.
14828         Reduce work during factorization phase.
14829         Reported by Carlos Bueno <carlos@bueno.org>.
14830
14831 2010-06-21  Bruno Haible  <bruno@clisp.org>
14832
14833         Fix HAVE_CALLOC_POSIX misnomer.
14834         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14835         !HAVE_CALLOC_POSIX.
14836         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14837         HAVE_CALLOC_POSIX.
14838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14839         instead of HAVE_CALLOC_POSIX.
14840         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14841         HAVE_CALLOC_POSIX.
14842
14843         Use modern idiom for calloc() replacement.
14844         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14845         AC_FUNC_CALLOC.
14846         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14847         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14848         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14849         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14850         (gl_REPLACE_CALLOC): New macro.
14851
14852 2010-06-21  Bruno Haible  <bruno@clisp.org>
14853
14854         Fix HAVE_REALLOC_POSIX misnomer.
14855         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14856         !HAVE_REALLOC_POSIX.
14857         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14858         HAVE_REALLOC_POSIX.
14859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14860         instead of HAVE_REALLOC_POSIX.
14861         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14862         HAVE_REALLOC_POSIX.
14863
14864         Use modern idiom for realloc() replacement.
14865         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14866         AC_FUNC_REALLOC.
14867         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14868         Autoconf's AC_FUNC_REALLOC.
14869         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14870         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14871         (gl_REPLACE_REALLOC): New macro.
14872         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14873
14874 2010-06-21  Bruno Haible  <bruno@clisp.org>
14875
14876         Fix HAVE_MALLOC_POSIX misnomer.
14877         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14878         !HAVE_MALLOC_POSIX.
14879         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14880         HAVE_MALLOC_POSIX.
14881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14882         instead of HAVE_MALLOC_POSIX.
14883         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14884         HAVE_MALLOC_POSIX.
14885
14886         Use modern idiom for malloc() replacement.
14887         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14888         AC_FUNC_MALLOC.
14889         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14890         Autoconf's AC_FUNC_MALLOC.
14891         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14892         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14893         (gl_REPLACE_MALLOC): New macro.
14894         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14895
14896 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14897
14898         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14899         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14900         This macro takes 3 arguments, not 4.
14901
14902 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14903
14904         ipv6: fix detection under mingw
14905         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14906         in6_addr.
14907
14908 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14909
14910         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14911         that strtod() works when cross-compiling to a glibc version known
14912         to work.
14913
14914 2010-06-15  Bruno Haible  <bruno@clisp.org>
14915
14916         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14917
14918 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14919
14920         select: Correct timeout.
14921         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14922
14923 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14924
14925         git-version-gen: init shell var to avoid env var influence
14926         * build-aux/git-version-gen (v): Init shell var to empty.
14927
14928 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14929
14930         priv-set: Don't assume that priv.h exists merely because getppriv does.
14931         See Jan Andersen's bug report about AIX 5L in
14932         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14933         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14934         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14935         * lib/priv-set.h: Likewise.
14936         * tests/test-priv-set.c: Likewise.
14937
14938 2010-06-13  Bruno Haible  <bruno@clisp.org>
14939
14940         relocatable: Make it easier to test whether to install wrappers.
14941         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14942         RELOCATABLE_VIA_WRAPPER.
14943
14944 2010-06-13  Bruno Haible  <bruno@clisp.org>
14945
14946         gnulib-tool: Display specified modules and dependencies differently.
14947         * gnulib-tool (func_show_module_list): New function.
14948         (func_import, func_create_testdir): Invoke it.
14949         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14950
14951 2010-06-13  Bruno Haible  <bruno@clisp.org>
14952
14953         gnulib-tool: Align code of func_import and func_create_testdir.
14954         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14955         specified_modules.
14956
14957 2010-06-12  Jim Meyering  <meyering@redhat.com>
14958
14959         test-inttostr: avoid spurious failure on Solaris 9
14960         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14961         to accept "%ju".  Reported by Bruno Haible.
14962
14963 2010-06-11  Jim Meyering  <meyering@redhat.com>
14964
14965         test-sys_socket: mark variables as used more readably
14966         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14967         as "used" explicitly via (void) statement casts.  This is more
14968         readable than using them in an artificial return expression.
14969         Suggestion from Bruno Haible.
14970
14971 2010-06-11  Bruno Haible  <bruno@clisp.org>
14972
14973         Avoid some more warnings from "gcc -Wwrite-strings".
14974         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14975         to 'const char *'.
14976         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14977         * tests/test-c-strcasestr.c (main): Likewise.
14978         * tests/test-mbscasestr1.c (main): Likewise.
14979         * tests/test-mbscasestr2.c (main): Likewise.
14980         * tests/test-memmem.c (main): Likewise.
14981         * tests/test-strstr.c (main): Likewise.
14982         * tests/test-strcasestr.c (main): Likewise.
14983
14984 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14985
14986         init.sh: change framework_failure_ to fail with status 99, not 1
14987         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14988         automake's parallel-tests rule that this is an unexpected failure,
14989         even if the test is listed in XFAIL_TESTS.
14990
14991 2010-06-11  Jim Meyering  <meyering@redhat.com>
14992
14993         test-inttostr: avoid warnings about 4-6KB literal strings
14994         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14995         Include "macros.h", for its definition of ASSERT.
14996         (CK): s/assert/ASSERT/
14997         * modules/inttostr-tests (Files): Add macros.h.
14998
14999         init.sh: don't use $ME_ or skip_ before they are defined
15000         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
15001         their first uses.  Also hoist their companions: warn_, fail_,
15002         framework_failure_, $stderr_fileno.  Prompted by a patch from
15003         Stefano Lattarini.
15004
15005         test-sys_socket: avoid set-but-not-used warnings from gcc
15006         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
15007         avoid warning about set-but-not-used variables.
15008
15009         test-xvasprintf: avoid 'const' discard warnings
15010         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
15011         "const" when assigning from literal strings.
15012         (test_xasprintf): Add "void" in function argument list to placate
15013         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
15014
15015         tests: avoid compilation warnings in argmatch and exclude tests...
15016         in packages that define ARGMATCH_DIE_DECL, like coreutils.
15017         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
15018         Since it always exits, declare with the "noreturn" attribute.
15019         * tests/test-argmatch.c: Likewise.
15020
15021         tests: avoid 'const' discard warnings in mbsstr tests
15022         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
15023         * tests/test-mbsstr2.c (main): Likewise.
15024
15025         test-verify: avoid warning from gcc's -Wmissing-declarations
15026         * tests/test-verify.c (function): Declare to be static.
15027
15028         test-inttostr.c: include <string.h> for use of strcmp
15029         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
15030
15031         test-linkat: avoid failed assertion on "other" architectures
15032         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
15033         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
15034         sparc: https://bugs.launchpad.net/bugs/591968
15035
15036 2010-06-11  Jim Meyering  <meyering@redhat.com>
15037
15038         printf.m4: avoid autoconf's "Expanded Before Required" warning
15039         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
15040         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
15041         autoconf warning.
15042
15043 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
15044
15045         Replacement header templates are now named with ".in", not "_".
15046         * doc/gnulib-intro.texi: Correct.
15047
15048 2010-06-10  Jim Meyering  <meyering@redhat.com>
15049
15050         inttostr-tests: depend on snprintf, not snprintf-posix
15051         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
15052         snprintf-posix, to avoid this aclocal failure:
15053           missing file gnulib-tests/vasnprintf.c
15054           configure.ac:45: error: expected source file, required through \
15055           AC_LIBSOURCES, not found
15056
15057 2010-06-10  Jim Meyering  <meyering@redhat.com>
15058
15059         inttostr: add a new function, inttostr, and tests
15060         The namesake function was not available.  The existence of the
15061         template file, inttostr.c makes its addition nontrivial.
15062         * lib/anytostr.c: Rename from inttostr.c.
15063         (anytostr): Rename from inttostr.
15064         * lib/inttostr.c: New file.
15065         * modules/inttostr (Files): Add anytostr.c.
15066         (Makefile.am): Set lib_SOURCES instead of ...
15067         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
15068         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
15069         * lib/offtostr.c: Likewise.
15070         * lib/uinttostr.c: Likewise.
15071         * lib/umaxtostr.c: Likewise.
15072         * modules/inttostr-tests: New file.
15073         * tests/test-inttostr.c: New file.  Test these functions.
15074
15075 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
15076             Bruno Haible  <bruno@clisp.org>
15077
15078         Add "Extending Gnulib" chapter to manual.
15079         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
15080         chapter.
15081         (Extending Gnulib): New chapter.
15082         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
15083         chapter.
15084
15085 2010-06-09  Bruno Haible  <bruno@clisp.org>
15086
15087         Avoid relocwrapper link errors due to gnulib replacement functions.
15088         * lib/areadlink.c: Use the system's malloc, realloc functions.
15089         (areadlink): Set errno to ENOMEM explicitly.
15090         * modules/areadlink (Depends-on): Remove malloc-posix.
15091         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15092
15093 2010-06-09  Bruno Haible  <bruno@clisp.org>
15094
15095         Avoid relocwrapper link errors due to gnulib replacement functions.
15096         * lib/canonicalize-lgpl.c: Use the system's malloc function.
15097         * lib/malloca.c: Likewise.
15098         * lib/relocatable.c: Likewise.
15099         * lib/progreloc.c: Use the system's malloc, sprintf functions.
15100         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
15101         * lib/setenv.c: Use the system's malloc, realloc functions.
15102         * lib/strerror.c: Use the system's sprintf function.
15103         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15104
15105 2010-06-04  Bruno Haible  <bruno@clisp.org>
15106
15107         Prefer documented low-level autoconf macro names.
15108         * m4/lib-link.m4: Use m4_translit instead of translit.
15109         * m4/environ.m4: Likewise.
15110         * m4/mathfunc.m4: Likewise.
15111         * m4/onceonly.m4: Likewise.
15112         * m4/stdint.m4: Likewise.
15113         Suggested by Eric Blake.
15114
15115 2010-06-04  Martin Lambers  <marlam@marlam.de>
15116             Bruno Haible  <bruno@clisp.org>
15117
15118         havelib: Allow library names with '+' characters.
15119         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15120         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
15121
15122 2010-06-09  Bruno Haible  <bruno@clisp.org>
15123
15124         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
15125         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
15126         realloc failed.
15127
15128 2010-06-08  Peter Simons  <simons@cryp.to>
15129
15130         maint.mk: make the news-check rule more configurable
15131         * top/maint.mk (news-check-lines-spec): New variable.
15132         (news-check): Use "sed -n 1,10p" in place of "head".
15133
15134 2010-06-07  Jim Meyering  <meyering@redhat.com>
15135
15136         do-release-commit-and-tag: fix typo in --help
15137         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
15138
15139         regex: avoid new dead-code warning with gcc-4.6.0
15140         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
15141         if-block containing a while-loop.  It's been unused for at least
15142         5 years.
15143
15144 2010-06-05  Bruno Haible  <bruno@clisp.org>
15145
15146         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
15147         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
15148
15149 2010-06-04  Bruno Haible  <bruno@clisp.org>
15150
15151         Update to GNU gettext 0.18.1.
15152         * modules/gettext (configure.ac): Require gettext infrastructure from
15153         version 0.18.1.
15154
15155 2010-06-03  Bruno Haible  <bruno@clisp.org>
15156
15157         Don't use AC_LIBOBJ with file names in subdirectories.
15158         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
15159         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
15160         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
15161         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
15162         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
15163         gl_LIBUNISTRING_LIBSOURCE.
15164         (Makefile.am): Augment lib_SOURCES here, conditionally.
15165         * NEWS: Drop requirement for Automake option 'subdir-objects'.
15166
15167 2010-06-03  Bruno Haible  <bruno@clisp.org>
15168
15169         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
15170         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
15171         expansion does not end with a newline.
15172         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
15173         unnecessary newline.
15174
15175 2010-06-03  Bruno Haible  <bruno@clisp.org>
15176
15177         Reduce dependencies.
15178         * tests/test-quotearg.h: New file, extracted from
15179         tests/test-quotearg.c.
15180         * tests/test-quotearg-simple.c: New file, extracted from
15181         tests/test-quotearg.c.
15182         * tests/test-quotearg.c: Don't include <ctype.h>.
15183         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
15184         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
15185         use_quote_double_quotes, use_quotearg_colon): Moved to
15186         tests/test-quotearg.h.
15187         (results_g, flag_results, custom_quotes, custom_results): Moved
15188         to tests/test-quotearg-simple.c.
15189         (main): Moved the part that does not depend on gettext to
15190         tests/test-quotearg-simple.c. Return 77 if the test cannot be
15191         performed.
15192         * modules/quotearg-simple: New file.
15193         * modules/quotearg-simple-tests: New file.
15194         * modules/quotearg (Depends-on): Add quotearg-simple.
15195         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
15196         (Files): Add tests/test-quotearg.h.
15197         Reported by Paolo Bonzini.
15198
15199 2010-06-03  Bruno Haible  <bruno@clisp.org>
15200
15201         Reduce dependencies.
15202         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
15203
15204 2010-06-03  Bruno Haible  <bruno@clisp.org>
15205
15206         time: Undefine more broken macros.
15207         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
15208         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
15209         Reported by Eric Blake.
15210
15211 2010-06-03  Bruno Haible  <bruno@clisp.org>
15212
15213         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
15214         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
15215         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
15216         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
15217         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
15218         Reported by Ludovic Courtès <ludo@gnu.org>.
15219
15220 2010-06-02  Eric Blake  <eblake@redhat.com>
15221
15222         time: work with mingw + pthreads-win32 library
15223         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
15224         if timespec is defined only in pthread.h.
15225         * modules/time (Makefile.am): Substitute it.
15226         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
15227         <pthread.h>, when needed.
15228         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
15229         from the library.
15230
15231 2010-05-31  Bruno Haible  <bruno@clisp.org>
15232
15233         Avoid expanding two macros in the wrong order.
15234         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
15235         gl_LIBUNISTRING if it is defined.
15236         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
15237         autoconf >= 2.64.
15238         Reported by Ludovic Courtès <ludo@gnu.org>.
15239
15240 2010-05-27  Jim Meyering  <meyering@redhat.com>
15241
15242         maint.mk: also prohibit "#undef" of always-defined symbols
15243         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
15244         Allow more than one space before the symbol name.
15245         (sc_prohibit_always-defined_macros): Use grep's -E, now that
15246         the regexp uses alternation.
15247
15248 2010-05-26  Eric Blake  <eblake@redhat.com>
15249
15250         maint.mk: avoid echo -e
15251         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
15252         Convert all uses of echo -* to printf.
15253         Reported by Matthias Bolte.
15254
15255 2010-05-25  Bruno Haible  <bruno@clisp.org>
15256
15257         Update to GNU gettext 0.18, part 2.
15258         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
15259         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
15260
15261 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15262
15263         Add missing include in test-pwrite.c.
15264         * tests/test-pwrite.c: Include string.h, for strcmp.
15265
15266 2010-05-24  Bruno Haible  <bruno@clisp.org>
15267
15268         * NEWS: Mention requirement for Automake option 'subdir-objects'.
15269
15270 2010-05-24  Bruno Haible  <bruno@clisp.org>
15271
15272         Don't use conversion with transliteration in u{8,16,32}_strcoll.
15273         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
15274         iconveh_error argument.
15275         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
15276         U_STRCONV_TO_LOCALE.
15277         * lib/unistr/u16-strcoll.c: Likewise.
15278         * lib/unistr/u32-strcoll.c: Likewise.
15279         * modules/unistr/u8-strcoll (Depends-on): Add
15280         uniconv/u8-strconv-to-enc, localcharset. Remove
15281         uniconv/u8-strconv-to-locale.
15282         (configure.ac): Bump version number.
15283         * modules/unistr/u16-strcoll (Depends-on): Add
15284         uniconv/u16-strconv-to-enc, localcharset. Remove
15285         uniconv/u16-strconv-to-locale.
15286         (configure.ac): Bump version number.
15287         * modules/unistr/u32-strcoll (Depends-on): Add
15288         uniconv/u32-strconv-to-enc, localcharset. Remove
15289         uniconv/u32-strconv-to-locale.
15290         (configure.ac): Bump version number.
15291
15292 2010-05-24  Bruno Haible  <bruno@clisp.org>
15293
15294         Avoid a test failure on NetBSD 5.0.
15295         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
15296         an iconv() bug.
15297
15298 2010-05-24  Bruno Haible  <bruno@clisp.org>
15299
15300         Adjust #include directive style.
15301         * modules/regex (Includes): Recommend to write <regex.h>.
15302
15303 2010-05-24  Bruno Haible  <bruno@clisp.org>
15304
15305         regex: Don't require alloca.
15306         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
15307         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
15308         only inside if (0).
15309
15310 2010-05-23  Jim Meyering  <meyering@redhat.com>
15311
15312         test-renameat.c: include <sys/stat.h>
15313         * tests/test-renameat.c: Include <sys/stat.h>; required for
15314         definition of S_IS* macros.
15315
15316 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
15317
15318         Update maintainer documentation for 'relocatable-prog' module.
15319         * doc/relocatable-maint.texi: Update.
15320         Comments by Bruno Haible.
15321
15322 2010-05-23  Bruno Haible  <bruno@clisp.org>
15323
15324         git-merge-changelog: Enable --split-merged-entry by default.
15325         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
15326         (usage): Don't mention this option any more.
15327         Reported by Ralf Wildenhues.
15328
15329 2010-05-23  Jim Meyering  <meyering@redhat.com>
15330
15331         test-pwrite: do not leave behind a test file named "out"
15332         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
15333         The trivial-looking use of init.sh is really necessary.
15334         It ensures that the temporary file, "out", is created in
15335         a temporary directory, and removed upon termination.
15336         * tests/test-pwrite.sh: Re-add file.
15337         * modules/pwrite-tests: Reference it.
15338
15339 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15340
15341         Fix output redirection buglet in init.sh.
15342         * tests/init.sh: Fix redirection of stderr.
15343
15344 2010-05-20  Simon Josefsson  <simon@josefsson.org>
15345
15346         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
15347
15348 2010-05-17  Simon Josefsson  <simon@josefsson.org>
15349
15350         * modules/valgrind-tests: New file.
15351         * m4/valgrind-tests.m4: New file.
15352         * doc/valgrind-tests.texi: New file.
15353         * doc/gnulib.texi (Running self-tests under valgrind): New
15354         section.
15355
15356 2010-05-19  Bruno Haible  <bruno@clisp.org>
15357
15358         Clean up dead code in recent commit.
15359         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
15360         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
15361         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
15362         Suggested by Paolo Bonzini.
15363
15364 2010-05-19  Bruno Haible  <bruno@clisp.org>
15365
15366         Avoid valgrind error reports from libunistring.
15367         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
15368         * modules/libunistring (Files): Add it.
15369         * modules/libunistring-optional (Files): Likewise.
15370
15371 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
15372             Bruno Haible  <bruno@clisp.org>
15373
15374         New module 'libunistring-optional'.
15375         * modules/libunistring-optional: New file.
15376         * m4/libunistring-base.m4: New file.
15377         * m4/libunistring-optional.m4: New file.
15378         * lib/unicase.in.h: Renamed from lib/unicase.h.
15379         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
15380         * lib/unictype.in.h: Renamed from lib/unictype.h.
15381         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
15382         * lib/uniname.in.h: Renamed from lib/uniname.h.
15383         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
15384         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
15385         * lib/unistr.in.h: Renamed from lib/unistr.h.
15386         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
15387         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
15388         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
15389         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
15390         gl_LIBUNISTRING. If the library was found, determine the installed
15391         version and set LIBUNISTRING_VERSION.
15392         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
15393         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
15394         handle a configuration option --with-included-libunistring.
15395         * modules/libunistring (Files): Add m4/absolute-header.m4.
15396         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
15397         Add m4/libunistring-base.m4.
15398         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15399         (Makefile.am): Build unicase.h from unicase.in.h.
15400         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
15401         Add m4/libunistring-base.m4.
15402         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15403         (Makefile.am): Build uniconv.h from uniconv.in.h.
15404         * modules/unictype/base (Files): Use unictype.in.h instead of
15405         unictype.h. Add m4/libunistring-base.m4.
15406         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15407         (Makefile.am): Build unictype.h from unictype.in.h.
15408         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15409         Add m4/libunistring-base.m4.
15410         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15411         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15412         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15413         Add m4/libunistring-base.m4.
15414         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15415         (Makefile.am): Build uniname.h from uniname.in.h.
15416         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15417         Add m4/libunistring-base.m4.
15418         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15419         (Makefile.am): Build uninorm.h from uninorm.in.h.
15420         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15421         unistdio.h. Add m4/libunistring-base.m4.
15422         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15423         (Makefile.am): Build unistdio.h from unistdio.in.h.
15424         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15425         Add m4/libunistring-base.m4.
15426         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15427         (Makefile.am): Build unistr.h from unistr.in.h.
15428         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15429         Add m4/libunistring-base.m4.
15430         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15431         (Makefile.am): Build unitypes.h from unitypes.in.h.
15432         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15433         Add m4/libunistring-base.m4.
15434         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15435         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15436         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15437         uniwidth.h. Add m4/libunistring-base.m4.
15438         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15439         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15440         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15441         instead of augmenting lib_SOURCES.
15442         * modules/unicase/empty-suffix-context: Likewise.
15443         * modules/unicase/locale-language: Likewise.
15444         * modules/unicase/tolower: Likewise.
15445         * modules/unicase/totitle: Likewise.
15446         * modules/unicase/toupper: Likewise.
15447         * modules/unicase/u8-casecmp: Likewise.
15448         * modules/unicase/u8-casecoll: Likewise.
15449         * modules/unicase/u8-casefold: Likewise.
15450         * modules/unicase/u8-casexfrm: Likewise.
15451         * modules/unicase/u8-ct-casefold: Likewise.
15452         * modules/unicase/u8-ct-tolower: Likewise.
15453         * modules/unicase/u8-ct-totitle: Likewise.
15454         * modules/unicase/u8-ct-toupper: Likewise.
15455         * modules/unicase/u8-is-cased: Likewise.
15456         * modules/unicase/u8-is-casefolded: Likewise.
15457         * modules/unicase/u8-is-lowercase: Likewise.
15458         * modules/unicase/u8-is-titlecase: Likewise.
15459         * modules/unicase/u8-is-uppercase: Likewise.
15460         * modules/unicase/u8-prefix-context: Likewise.
15461         * modules/unicase/u8-suffix-context: Likewise.
15462         * modules/unicase/u8-tolower: Likewise.
15463         * modules/unicase/u8-totitle: Likewise.
15464         * modules/unicase/u8-toupper: Likewise.
15465         * modules/unicase/u16-casecmp: Likewise.
15466         * modules/unicase/u16-casecoll: Likewise.
15467         * modules/unicase/u16-casefold: Likewise.
15468         * modules/unicase/u16-casexfrm: Likewise.
15469         * modules/unicase/u16-ct-casefold: Likewise.
15470         * modules/unicase/u16-ct-tolower: Likewise.
15471         * modules/unicase/u16-ct-totitle: Likewise.
15472         * modules/unicase/u16-ct-toupper: Likewise.
15473         * modules/unicase/u16-is-cased: Likewise.
15474         * modules/unicase/u16-is-casefolded: Likewise.
15475         * modules/unicase/u16-is-lowercase: Likewise.
15476         * modules/unicase/u16-is-titlecase: Likewise.
15477         * modules/unicase/u16-is-uppercase: Likewise.
15478         * modules/unicase/u16-prefix-context: Likewise.
15479         * modules/unicase/u16-suffix-context: Likewise.
15480         * modules/unicase/u16-tolower: Likewise.
15481         * modules/unicase/u16-totitle: Likewise.
15482         * modules/unicase/u16-toupper: Likewise.
15483         * modules/unicase/u32-casecmp: Likewise.
15484         * modules/unicase/u32-casecoll: Likewise.
15485         * modules/unicase/u32-casefold: Likewise.
15486         * modules/unicase/u32-casexfrm: Likewise.
15487         * modules/unicase/u32-ct-casefold: Likewise.
15488         * modules/unicase/u32-ct-tolower: Likewise.
15489         * modules/unicase/u32-ct-totitle: Likewise.
15490         * modules/unicase/u32-ct-toupper: Likewise.
15491         * modules/unicase/u32-is-cased: Likewise.
15492         * modules/unicase/u32-is-casefolded: Likewise.
15493         * modules/unicase/u32-is-lowercase: Likewise.
15494         * modules/unicase/u32-is-titlecase: Likewise.
15495         * modules/unicase/u32-is-uppercase: Likewise.
15496         * modules/unicase/u32-prefix-context: Likewise.
15497         * modules/unicase/u32-suffix-context: Likewise.
15498         * modules/unicase/u32-tolower: Likewise.
15499         * modules/unicase/u32-totitle: Likewise.
15500         * modules/unicase/u32-toupper: Likewise.
15501         * modules/unicase/ulc-casecmp: Likewise.
15502         * modules/unicase/ulc-casecoll: Likewise.
15503         * modules/unicase/ulc-casexfrm: Likewise.
15504         * modules/uniconv/u8-conv-from-enc: Likewise.
15505         * modules/uniconv/u8-conv-to-enc: Likewise.
15506         * modules/uniconv/u8-strconv-from-enc: Likewise.
15507         * modules/uniconv/u8-strconv-from-locale: Likewise.
15508         * modules/uniconv/u8-strconv-to-enc: Likewise.
15509         * modules/uniconv/u8-strconv-to-locale: Likewise.
15510         * modules/uniconv/u16-conv-from-enc: Likewise.
15511         * modules/uniconv/u16-conv-to-enc: Likewise.
15512         * modules/uniconv/u16-strconv-from-enc: Likewise.
15513         * modules/uniconv/u16-strconv-from-locale: Likewise.
15514         * modules/uniconv/u16-strconv-to-enc: Likewise.
15515         * modules/uniconv/u16-strconv-to-locale: Likewise.
15516         * modules/uniconv/u32-conv-from-enc: Likewise.
15517         * modules/uniconv/u32-conv-to-enc: Likewise.
15518         * modules/uniconv/u32-strconv-from-enc: Likewise.
15519         * modules/uniconv/u32-strconv-from-locale: Likewise.
15520         * modules/uniconv/u32-strconv-to-enc: Likewise.
15521         * modules/uniconv/u32-strconv-to-locale: Likewise.
15522         * modules/unictype/bidicategory-byname: Likewise.
15523         * modules/unictype/bidicategory-name: Likewise.
15524         * modules/unictype/bidicategory-of: Likewise.
15525         * modules/unictype/bidicategory-test: Likewise.
15526         * modules/unictype/block-list: Likewise.
15527         * modules/unictype/block-test: Likewise.
15528         * modules/unictype/category-C: Likewise.
15529         * modules/unictype/category-Cc: Likewise.
15530         * modules/unictype/category-Cf: Likewise.
15531         * modules/unictype/category-Cn: Likewise.
15532         * modules/unictype/category-Co: Likewise.
15533         * modules/unictype/category-Cs: Likewise.
15534         * modules/unictype/category-L: Likewise.
15535         * modules/unictype/category-Ll: Likewise.
15536         * modules/unictype/category-Lm: Likewise.
15537         * modules/unictype/category-Lo: Likewise.
15538         * modules/unictype/category-Lt: Likewise.
15539         * modules/unictype/category-Lu: Likewise.
15540         * modules/unictype/category-M: Likewise.
15541         * modules/unictype/category-Mc: Likewise.
15542         * modules/unictype/category-Me: Likewise.
15543         * modules/unictype/category-Mn: Likewise.
15544         * modules/unictype/category-N: Likewise.
15545         * modules/unictype/category-Nd: Likewise.
15546         * modules/unictype/category-Nl: Likewise.
15547         * modules/unictype/category-No: Likewise.
15548         * modules/unictype/category-P: Likewise.
15549         * modules/unictype/category-Pc: Likewise.
15550         * modules/unictype/category-Pd: Likewise.
15551         * modules/unictype/category-Pe: Likewise.
15552         * modules/unictype/category-Pf: Likewise.
15553         * modules/unictype/category-Pi: Likewise.
15554         * modules/unictype/category-Po: Likewise.
15555         * modules/unictype/category-Ps: Likewise.
15556         * modules/unictype/category-S: Likewise.
15557         * modules/unictype/category-Sc: Likewise.
15558         * modules/unictype/category-Sk: Likewise.
15559         * modules/unictype/category-Sm: Likewise.
15560         * modules/unictype/category-So: Likewise.
15561         * modules/unictype/category-Z: Likewise.
15562         * modules/unictype/category-Zl: Likewise.
15563         * modules/unictype/category-Zp: Likewise.
15564         * modules/unictype/category-Zs: Likewise.
15565         * modules/unictype/category-and: Likewise.
15566         * modules/unictype/category-and-not: Likewise.
15567         * modules/unictype/category-byname: Likewise.
15568         * modules/unictype/category-name: Likewise.
15569         * modules/unictype/category-none: Likewise.
15570         * modules/unictype/category-of: Likewise.
15571         * modules/unictype/category-or: Likewise.
15572         * modules/unictype/category-test: Likewise.
15573         * modules/unictype/combining-class: Likewise.
15574         * modules/unictype/ctype-alnum: Likewise.
15575         * modules/unictype/ctype-alpha: Likewise.
15576         * modules/unictype/ctype-blank: Likewise.
15577         * modules/unictype/ctype-cntrl: Likewise.
15578         * modules/unictype/ctype-digit: Likewise.
15579         * modules/unictype/ctype-graph: Likewise.
15580         * modules/unictype/ctype-lower: Likewise.
15581         * modules/unictype/ctype-print: Likewise.
15582         * modules/unictype/ctype-punct: Likewise.
15583         * modules/unictype/ctype-space: Likewise.
15584         * modules/unictype/ctype-upper: Likewise.
15585         * modules/unictype/ctype-xdigit: Likewise.
15586         * modules/unictype/decimal-digit: Likewise.
15587         * modules/unictype/digit: Likewise.
15588         * modules/unictype/mirror: Likewise.
15589         * modules/unictype/numeric: Likewise.
15590         * modules/unictype/property-alphabetic: Likewise.
15591         * modules/unictype/property-ascii-hex-digit: Likewise.
15592         * modules/unictype/property-bidi-arabic-digit: Likewise.
15593         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15594         * modules/unictype/property-bidi-block-separator: Likewise.
15595         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15596         * modules/unictype/property-bidi-common-separator: Likewise.
15597         * modules/unictype/property-bidi-control: Likewise.
15598         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15599         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15600         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15601         * modules/unictype/property-bidi-european-digit: Likewise.
15602         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15603         * modules/unictype/property-bidi-left-to-right: Likewise.
15604         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15605         * modules/unictype/property-bidi-other-neutral: Likewise.
15606         * modules/unictype/property-bidi-pdf: Likewise.
15607         * modules/unictype/property-bidi-segment-separator: Likewise.
15608         * modules/unictype/property-bidi-whitespace: Likewise.
15609         * modules/unictype/property-byname: Likewise.
15610         * modules/unictype/property-combining: Likewise.
15611         * modules/unictype/property-composite: Likewise.
15612         * modules/unictype/property-currency-symbol: Likewise.
15613         * modules/unictype/property-dash: Likewise.
15614         * modules/unictype/property-decimal-digit: Likewise.
15615         * modules/unictype/property-default-ignorable-code-point: Likewise.
15616         * modules/unictype/property-deprecated: Likewise.
15617         * modules/unictype/property-diacritic: Likewise.
15618         * modules/unictype/property-extender: Likewise.
15619         * modules/unictype/property-format-control: Likewise.
15620         * modules/unictype/property-grapheme-base: Likewise.
15621         * modules/unictype/property-grapheme-extend: Likewise.
15622         * modules/unictype/property-grapheme-link: Likewise.
15623         * modules/unictype/property-hex-digit: Likewise.
15624         * modules/unictype/property-hyphen: Likewise.
15625         * modules/unictype/property-id-continue: Likewise.
15626         * modules/unictype/property-id-start: Likewise.
15627         * modules/unictype/property-ideographic: Likewise.
15628         * modules/unictype/property-ids-binary-operator: Likewise.
15629         * modules/unictype/property-ids-trinary-operator: Likewise.
15630         * modules/unictype/property-ignorable-control: Likewise.
15631         * modules/unictype/property-iso-control: Likewise.
15632         * modules/unictype/property-join-control: Likewise.
15633         * modules/unictype/property-left-of-pair: Likewise.
15634         * modules/unictype/property-line-separator: Likewise.
15635         * modules/unictype/property-logical-order-exception: Likewise.
15636         * modules/unictype/property-lowercase: Likewise.
15637         * modules/unictype/property-math: Likewise.
15638         * modules/unictype/property-non-break: Likewise.
15639         * modules/unictype/property-not-a-character: Likewise.
15640         * modules/unictype/property-numeric: Likewise.
15641         * modules/unictype/property-other-alphabetic: Likewise.
15642         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15643         * modules/unictype/property-other-grapheme-extend: Likewise.
15644         * modules/unictype/property-other-id-continue: Likewise.
15645         * modules/unictype/property-other-id-start: Likewise.
15646         * modules/unictype/property-other-lowercase: Likewise.
15647         * modules/unictype/property-other-math: Likewise.
15648         * modules/unictype/property-other-uppercase: Likewise.
15649         * modules/unictype/property-paired-punctuation: Likewise.
15650         * modules/unictype/property-paragraph-separator: Likewise.
15651         * modules/unictype/property-pattern-syntax: Likewise.
15652         * modules/unictype/property-pattern-white-space: Likewise.
15653         * modules/unictype/property-private-use: Likewise.
15654         * modules/unictype/property-punctuation: Likewise.
15655         * modules/unictype/property-quotation-mark: Likewise.
15656         * modules/unictype/property-radical: Likewise.
15657         * modules/unictype/property-sentence-terminal: Likewise.
15658         * modules/unictype/property-soft-dotted: Likewise.
15659         * modules/unictype/property-space: Likewise.
15660         * modules/unictype/property-terminal-punctuation: Likewise.
15661         * modules/unictype/property-test: Likewise.
15662         * modules/unictype/property-titlecase: Likewise.
15663         * modules/unictype/property-unassigned-code-value: Likewise.
15664         * modules/unictype/property-unified-ideograph: Likewise.
15665         * modules/unictype/property-uppercase: Likewise.
15666         * modules/unictype/property-variation-selector: Likewise.
15667         * modules/unictype/property-white-space: Likewise.
15668         * modules/unictype/property-xid-continue: Likewise.
15669         * modules/unictype/property-xid-start: Likewise.
15670         * modules/unictype/property-zero-width: Likewise.
15671         * modules/unictype/scripts: Likewise.
15672         * modules/unictype/syntax-c-ident: Likewise.
15673         * modules/unictype/syntax-c-whitespace: Likewise.
15674         * modules/unictype/syntax-java-ident: Likewise.
15675         * modules/unictype/syntax-java-whitespace: Likewise.
15676         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15677         * modules/unilbrk/u8-width-linebreaks: Likewise.
15678         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15679         * modules/unilbrk/u16-width-linebreaks: Likewise.
15680         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15681         * modules/unilbrk/u32-width-linebreaks: Likewise.
15682         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15683         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15684         * modules/uniname/uniname: Likewise.
15685         * modules/uninorm/canonical-decomposition: Likewise.
15686         * modules/uninorm/composition: Likewise.
15687         * modules/uninorm/decomposing-form: Likewise.
15688         * modules/uninorm/decomposition: Likewise.
15689         * modules/uninorm/filter: Likewise.
15690         * modules/uninorm/nfc: Likewise.
15691         * modules/uninorm/nfd: Likewise.
15692         * modules/uninorm/nfkc: Likewise.
15693         * modules/uninorm/nfkd: Likewise.
15694         * modules/uninorm/u8-normalize: Likewise.
15695         * modules/uninorm/u8-normcmp: Likewise.
15696         * modules/uninorm/u8-normcoll: Likewise.
15697         * modules/uninorm/u8-normxfrm: Likewise.
15698         * modules/uninorm/u16-normalize: Likewise.
15699         * modules/uninorm/u16-normcmp: Likewise.
15700         * modules/uninorm/u16-normcoll: Likewise.
15701         * modules/uninorm/u16-normxfrm: Likewise.
15702         * modules/uninorm/u32-normalize: Likewise.
15703         * modules/uninorm/u32-normcmp: Likewise.
15704         * modules/uninorm/u32-normcoll: Likewise.
15705         * modules/uninorm/u32-normxfrm: Likewise.
15706         * modules/unistdio/u8-asnprintf: Likewise.
15707         * modules/unistdio/u8-asprintf: Likewise.
15708         * modules/unistdio/u8-snprintf: Likewise.
15709         * modules/unistdio/u8-sprintf: Likewise.
15710         * modules/unistdio/u8-u8-asnprintf: Likewise.
15711         * modules/unistdio/u8-u8-asprintf: Likewise.
15712         * modules/unistdio/u8-u8-snprintf: Likewise.
15713         * modules/unistdio/u8-u8-sprintf: Likewise.
15714         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15715         * modules/unistdio/u8-u8-vasprintf: Likewise.
15716         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15717         * modules/unistdio/u8-u8-vsprintf: Likewise.
15718         * modules/unistdio/u8-vasnprintf: Likewise.
15719         * modules/unistdio/u8-vasprintf: Likewise.
15720         * modules/unistdio/u8-vsnprintf: Likewise.
15721         * modules/unistdio/u8-vsprintf: Likewise.
15722         * modules/unistdio/u16-asnprintf: Likewise.
15723         * modules/unistdio/u16-asprintf: Likewise.
15724         * modules/unistdio/u16-snprintf: Likewise.
15725         * modules/unistdio/u16-sprintf: Likewise.
15726         * modules/unistdio/u16-u16-asnprintf: Likewise.
15727         * modules/unistdio/u16-u16-asprintf: Likewise.
15728         * modules/unistdio/u16-u16-snprintf: Likewise.
15729         * modules/unistdio/u16-u16-sprintf: Likewise.
15730         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15731         * modules/unistdio/u16-u16-vasprintf: Likewise.
15732         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15733         * modules/unistdio/u16-u16-vsprintf: Likewise.
15734         * modules/unistdio/u16-vasnprintf: Likewise.
15735         * modules/unistdio/u16-vasprintf: Likewise.
15736         * modules/unistdio/u16-vsnprintf: Likewise.
15737         * modules/unistdio/u16-vsprintf: Likewise.
15738         * modules/unistdio/u32-asnprintf: Likewise.
15739         * modules/unistdio/u32-asprintf: Likewise.
15740         * modules/unistdio/u32-snprintf: Likewise.
15741         * modules/unistdio/u32-sprintf: Likewise.
15742         * modules/unistdio/u32-u32-asnprintf: Likewise.
15743         * modules/unistdio/u32-u32-asprintf: Likewise.
15744         * modules/unistdio/u32-u32-snprintf: Likewise.
15745         * modules/unistdio/u32-u32-sprintf: Likewise.
15746         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15747         * modules/unistdio/u32-u32-vasprintf: Likewise.
15748         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15749         * modules/unistdio/u32-u32-vsprintf: Likewise.
15750         * modules/unistdio/u32-vasnprintf: Likewise.
15751         * modules/unistdio/u32-vasprintf: Likewise.
15752         * modules/unistdio/u32-vsnprintf: Likewise.
15753         * modules/unistdio/u32-vsprintf: Likewise.
15754         * modules/unistdio/ulc-asnprintf: Likewise.
15755         * modules/unistdio/ulc-asprintf: Likewise.
15756         * modules/unistdio/ulc-fprintf: Likewise.
15757         * modules/unistdio/ulc-snprintf: Likewise.
15758         * modules/unistdio/ulc-sprintf: Likewise.
15759         * modules/unistdio/ulc-vasnprintf: Likewise.
15760         * modules/unistdio/ulc-vasprintf: Likewise.
15761         * modules/unistdio/ulc-vfprintf: Likewise.
15762         * modules/unistdio/ulc-vsnprintf: Likewise.
15763         * modules/unistdio/ulc-vsprintf: Likewise.
15764         * modules/unistr/u8-check: Likewise.
15765         * modules/unistr/u8-chr: Likewise.
15766         * modules/unistr/u8-cmp: Likewise.
15767         * modules/unistr/u8-cmp2: Likewise.
15768         * modules/unistr/u8-cpy: Likewise.
15769         * modules/unistr/u8-cpy-alloc: Likewise.
15770         * modules/unistr/u8-endswith: Likewise.
15771         * modules/unistr/u8-mblen: Likewise.
15772         * modules/unistr/u8-mbsnlen: Likewise.
15773         * modules/unistr/u8-mbtouc: Likewise.
15774         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15775         * modules/unistr/u8-mbtoucr: Likewise.
15776         * modules/unistr/u8-move: Likewise.
15777         * modules/unistr/u8-next: Likewise.
15778         * modules/unistr/u8-prev: Likewise.
15779         * modules/unistr/u8-set: Likewise.
15780         * modules/unistr/u8-startswith: Likewise.
15781         * modules/unistr/u8-stpcpy: Likewise.
15782         * modules/unistr/u8-stpncpy: Likewise.
15783         * modules/unistr/u8-strcat: Likewise.
15784         * modules/unistr/u8-strchr: Likewise.
15785         * modules/unistr/u8-strcmp: Likewise.
15786         * modules/unistr/u8-strcoll: Likewise.
15787         * modules/unistr/u8-strcpy: Likewise.
15788         * modules/unistr/u8-strcspn: Likewise.
15789         * modules/unistr/u8-strdup: Likewise.
15790         * modules/unistr/u8-strlen: Likewise.
15791         * modules/unistr/u8-strmblen: Likewise.
15792         * modules/unistr/u8-strmbtouc: Likewise.
15793         * modules/unistr/u8-strncat: Likewise.
15794         * modules/unistr/u8-strncmp: Likewise.
15795         * modules/unistr/u8-strncpy: Likewise.
15796         * modules/unistr/u8-strnlen: Likewise.
15797         * modules/unistr/u8-strpbrk: Likewise.
15798         * modules/unistr/u8-strrchr: Likewise.
15799         * modules/unistr/u8-strspn: Likewise.
15800         * modules/unistr/u8-strstr: Likewise.
15801         * modules/unistr/u8-strtok: Likewise.
15802         * modules/unistr/u8-to-u16: Likewise.
15803         * modules/unistr/u8-to-u32: Likewise.
15804         * modules/unistr/u8-uctomb: Likewise.
15805         * modules/unistr/u16-check: Likewise.
15806         * modules/unistr/u16-chr: Likewise.
15807         * modules/unistr/u16-cmp: Likewise.
15808         * modules/unistr/u16-cmp2: Likewise.
15809         * modules/unistr/u16-cpy: Likewise.
15810         * modules/unistr/u16-cpy-alloc: Likewise.
15811         * modules/unistr/u16-endswith: Likewise.
15812         * modules/unistr/u16-mblen: Likewise.
15813         * modules/unistr/u16-mbsnlen: Likewise.
15814         * modules/unistr/u16-mbtouc: Likewise.
15815         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15816         * modules/unistr/u16-mbtoucr: Likewise.
15817         * modules/unistr/u16-move: Likewise.
15818         * modules/unistr/u16-next: Likewise.
15819         * modules/unistr/u16-prev: Likewise.
15820         * modules/unistr/u16-set: Likewise.
15821         * modules/unistr/u16-startswith: Likewise.
15822         * modules/unistr/u16-stpcpy: Likewise.
15823         * modules/unistr/u16-stpncpy: Likewise.
15824         * modules/unistr/u16-strcat: Likewise.
15825         * modules/unistr/u16-strchr: Likewise.
15826         * modules/unistr/u16-strcmp: Likewise.
15827         * modules/unistr/u16-strcoll: Likewise.
15828         * modules/unistr/u16-strcpy: Likewise.
15829         * modules/unistr/u16-strcspn: Likewise.
15830         * modules/unistr/u16-strdup: Likewise.
15831         * modules/unistr/u16-strlen: Likewise.
15832         * modules/unistr/u16-strmblen: Likewise.
15833         * modules/unistr/u16-strmbtouc: Likewise.
15834         * modules/unistr/u16-strncat: Likewise.
15835         * modules/unistr/u16-strncmp: Likewise.
15836         * modules/unistr/u16-strncpy: Likewise.
15837         * modules/unistr/u16-strnlen: Likewise.
15838         * modules/unistr/u16-strpbrk: Likewise.
15839         * modules/unistr/u16-strrchr: Likewise.
15840         * modules/unistr/u16-strspn: Likewise.
15841         * modules/unistr/u16-strstr: Likewise.
15842         * modules/unistr/u16-strtok: Likewise.
15843         * modules/unistr/u16-to-u32: Likewise.
15844         * modules/unistr/u16-to-u8: Likewise.
15845         * modules/unistr/u16-uctomb: Likewise.
15846         * modules/unistr/u32-check: Likewise.
15847         * modules/unistr/u32-chr: Likewise.
15848         * modules/unistr/u32-cmp: Likewise.
15849         * modules/unistr/u32-cmp2: Likewise.
15850         * modules/unistr/u32-cpy: Likewise.
15851         * modules/unistr/u32-cpy-alloc: Likewise.
15852         * modules/unistr/u32-endswith: Likewise.
15853         * modules/unistr/u32-mblen: Likewise.
15854         * modules/unistr/u32-mbsnlen: Likewise.
15855         * modules/unistr/u32-mbtouc: Likewise.
15856         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15857         * modules/unistr/u32-mbtoucr: Likewise.
15858         * modules/unistr/u32-move: Likewise.
15859         * modules/unistr/u32-next: Likewise.
15860         * modules/unistr/u32-prev: Likewise.
15861         * modules/unistr/u32-set: Likewise.
15862         * modules/unistr/u32-startswith: Likewise.
15863         * modules/unistr/u32-stpcpy: Likewise.
15864         * modules/unistr/u32-stpncpy: Likewise.
15865         * modules/unistr/u32-strcat: Likewise.
15866         * modules/unistr/u32-strchr: Likewise.
15867         * modules/unistr/u32-strcmp: Likewise.
15868         * modules/unistr/u32-strcoll: Likewise.
15869         * modules/unistr/u32-strcpy: Likewise.
15870         * modules/unistr/u32-strcspn: Likewise.
15871         * modules/unistr/u32-strdup: Likewise.
15872         * modules/unistr/u32-strlen: Likewise.
15873         * modules/unistr/u32-strmblen: Likewise.
15874         * modules/unistr/u32-strmbtouc: Likewise.
15875         * modules/unistr/u32-strncat: Likewise.
15876         * modules/unistr/u32-strncmp: Likewise.
15877         * modules/unistr/u32-strncpy: Likewise.
15878         * modules/unistr/u32-strnlen: Likewise.
15879         * modules/unistr/u32-strpbrk: Likewise.
15880         * modules/unistr/u32-strrchr: Likewise.
15881         * modules/unistr/u32-strspn: Likewise.
15882         * modules/unistr/u32-strstr: Likewise.
15883         * modules/unistr/u32-strtok: Likewise.
15884         * modules/unistr/u32-to-u16: Likewise.
15885         * modules/unistr/u32-to-u8: Likewise.
15886         * modules/unistr/u32-uctomb: Likewise.
15887         * modules/uniwbrk/u8-wordbreaks: Likewise.
15888         * modules/uniwbrk/u16-wordbreaks: Likewise.
15889         * modules/uniwbrk/u32-wordbreaks: Likewise.
15890         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15891         * modules/uniwbrk/wordbreak-property: Likewise.
15892         * modules/uniwidth/u8-strwidth: Likewise.
15893         * modules/uniwidth/u8-width: Likewise.
15894         * modules/uniwidth/u16-strwidth: Likewise.
15895         * modules/uniwidth/u16-width: Likewise.
15896         * modules/uniwidth/u32-strwidth: Likewise.
15897         * modules/uniwidth/u32-width: Likewise.
15898         * modules/uniwidth/width: Likewise.
15899         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15900         with $(LIBUNISTRING).
15901         * modules/unicase/ignorable-tests: Likewise.
15902         * modules/unicase/locale-language-tests: Likewise.
15903         * modules/unicase/tolower-tests: Likewise.
15904         * modules/unicase/totitle-tests: Likewise.
15905         * modules/unicase/toupper-tests: Likewise.
15906         * modules/unicase/u8-casecmp-tests: Likewise.
15907         * modules/unicase/u8-casecoll-tests: Likewise.
15908         * modules/unicase/u8-casefold-tests: Likewise.
15909         * modules/unicase/u8-is-cased-tests: Likewise.
15910         * modules/unicase/u8-is-casefolded-tests: Likewise.
15911         * modules/unicase/u8-is-lowercase-tests: Likewise.
15912         * modules/unicase/u8-is-titlecase-tests: Likewise.
15913         * modules/unicase/u8-is-uppercase-tests: Likewise.
15914         * modules/unicase/u8-tolower-tests: Likewise.
15915         * modules/unicase/u8-totitle-tests: Likewise.
15916         * modules/unicase/u8-toupper-tests: Likewise.
15917         * modules/unicase/u16-casecmp-tests: Likewise.
15918         * modules/unicase/u16-casecoll-tests: Likewise.
15919         * modules/unicase/u16-casefold-tests: Likewise.
15920         * modules/unicase/u16-is-cased-tests: Likewise.
15921         * modules/unicase/u16-is-casefolded-tests: Likewise.
15922         * modules/unicase/u16-is-lowercase-tests: Likewise.
15923         * modules/unicase/u16-is-titlecase-tests: Likewise.
15924         * modules/unicase/u16-is-uppercase-tests: Likewise.
15925         * modules/unicase/u16-tolower-tests: Likewise.
15926         * modules/unicase/u16-totitle-tests: Likewise.
15927         * modules/unicase/u16-toupper-tests: Likewise.
15928         * modules/unicase/u32-casecmp-tests: Likewise.
15929         * modules/unicase/u32-casecoll-tests: Likewise.
15930         * modules/unicase/u32-casefold-tests: Likewise.
15931         * modules/unicase/u32-is-cased-tests: Likewise.
15932         * modules/unicase/u32-is-casefolded-tests: Likewise.
15933         * modules/unicase/u32-is-lowercase-tests: Likewise.
15934         * modules/unicase/u32-is-titlecase-tests: Likewise.
15935         * modules/unicase/u32-is-uppercase-tests: Likewise.
15936         * modules/unicase/u32-tolower-tests: Likewise.
15937         * modules/unicase/u32-totitle-tests: Likewise.
15938         * modules/unicase/u32-toupper-tests: Likewise.
15939         * modules/unicase/ulc-casecmp-tests: Likewise.
15940         * modules/unicase/ulc-casecoll-tests: Likewise.
15941         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15942         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15943         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15944         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15945         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15946         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15947         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15948         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15949         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15950         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15951         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15952         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15953         * modules/unictype/bidicategory-byname-tests: Likewise.
15954         * modules/unictype/bidicategory-name-tests: Likewise.
15955         * modules/unictype/bidicategory-of-tests: Likewise.
15956         * modules/unictype/bidicategory-test-tests: Likewise.
15957         * modules/unictype/block-list-tests: Likewise.
15958         * modules/unictype/block-of-tests: Likewise.
15959         * modules/unictype/block-test-tests: Likewise.
15960         * modules/unictype/category-C-tests: Likewise.
15961         * modules/unictype/category-Cc-tests: Likewise.
15962         * modules/unictype/category-Cf-tests: Likewise.
15963         * modules/unictype/category-Cn-tests: Likewise.
15964         * modules/unictype/category-Co-tests: Likewise.
15965         * modules/unictype/category-Cs-tests: Likewise.
15966         * modules/unictype/category-L-tests: Likewise.
15967         * modules/unictype/category-Ll-tests: Likewise.
15968         * modules/unictype/category-Lm-tests: Likewise.
15969         * modules/unictype/category-Lo-tests: Likewise.
15970         * modules/unictype/category-Lt-tests: Likewise.
15971         * modules/unictype/category-Lu-tests: Likewise.
15972         * modules/unictype/category-M-tests: Likewise.
15973         * modules/unictype/category-Mc-tests: Likewise.
15974         * modules/unictype/category-Me-tests: Likewise.
15975         * modules/unictype/category-Mn-tests: Likewise.
15976         * modules/unictype/category-N-tests: Likewise.
15977         * modules/unictype/category-Nd-tests: Likewise.
15978         * modules/unictype/category-Nl-tests: Likewise.
15979         * modules/unictype/category-No-tests: Likewise.
15980         * modules/unictype/category-P-tests: Likewise.
15981         * modules/unictype/category-Pc-tests: Likewise.
15982         * modules/unictype/category-Pd-tests: Likewise.
15983         * modules/unictype/category-Pe-tests: Likewise.
15984         * modules/unictype/category-Pf-tests: Likewise.
15985         * modules/unictype/category-Pi-tests: Likewise.
15986         * modules/unictype/category-Po-tests: Likewise.
15987         * modules/unictype/category-Ps-tests: Likewise.
15988         * modules/unictype/category-S-tests: Likewise.
15989         * modules/unictype/category-Sc-tests: Likewise.
15990         * modules/unictype/category-Sk-tests: Likewise.
15991         * modules/unictype/category-Sm-tests: Likewise.
15992         * modules/unictype/category-So-tests: Likewise.
15993         * modules/unictype/category-Z-tests: Likewise.
15994         * modules/unictype/category-Zl-tests: Likewise.
15995         * modules/unictype/category-Zp-tests: Likewise.
15996         * modules/unictype/category-Zs-tests: Likewise.
15997         * modules/unictype/category-and-not-tests: Likewise.
15998         * modules/unictype/category-and-tests: Likewise.
15999         * modules/unictype/category-byname-tests: Likewise.
16000         * modules/unictype/category-name-tests: Likewise.
16001         * modules/unictype/category-none-tests: Likewise.
16002         * modules/unictype/category-of-tests: Likewise.
16003         * modules/unictype/category-or-tests: Likewise.
16004         * modules/unictype/category-test-withtable-tests: Likewise.
16005         * modules/unictype/combining-class-tests: Likewise.
16006         * modules/unictype/ctype-alnum-tests: Likewise.
16007         * modules/unictype/ctype-alpha-tests: Likewise.
16008         * modules/unictype/ctype-blank-tests: Likewise.
16009         * modules/unictype/ctype-cntrl-tests: Likewise.
16010         * modules/unictype/ctype-digit-tests: Likewise.
16011         * modules/unictype/ctype-graph-tests: Likewise.
16012         * modules/unictype/ctype-lower-tests: Likewise.
16013         * modules/unictype/ctype-print-tests: Likewise.
16014         * modules/unictype/ctype-punct-tests: Likewise.
16015         * modules/unictype/ctype-space-tests: Likewise.
16016         * modules/unictype/ctype-upper-tests: Likewise.
16017         * modules/unictype/ctype-xdigit-tests: Likewise.
16018         * modules/unictype/decimal-digit-tests: Likewise.
16019         * modules/unictype/digit-tests: Likewise.
16020         * modules/unictype/mirror-tests: Likewise.
16021         * modules/unictype/numeric-tests: Likewise.
16022         * modules/unictype/property-alphabetic-tests: Likewise.
16023         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
16024         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
16025         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
16026         * modules/unictype/property-bidi-block-separator-tests: Likewise.
16027         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
16028         * modules/unictype/property-bidi-common-separator-tests: Likewise.
16029         * modules/unictype/property-bidi-control-tests: Likewise.
16030         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
16031         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
16032         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
16033         * modules/unictype/property-bidi-european-digit-tests: Likewise.
16034         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
16035         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
16036         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
16037         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
16038         * modules/unictype/property-bidi-pdf-tests: Likewise.
16039         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
16040         * modules/unictype/property-bidi-whitespace-tests: Likewise.
16041         * modules/unictype/property-byname-tests: Likewise.
16042         * modules/unictype/property-combining-tests: Likewise.
16043         * modules/unictype/property-composite-tests: Likewise.
16044         * modules/unictype/property-currency-symbol-tests: Likewise.
16045         * modules/unictype/property-dash-tests: Likewise.
16046         * modules/unictype/property-decimal-digit-tests: Likewise.
16047         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
16048         * modules/unictype/property-deprecated-tests: Likewise.
16049         * modules/unictype/property-diacritic-tests: Likewise.
16050         * modules/unictype/property-extender-tests: Likewise.
16051         * modules/unictype/property-format-control-tests: Likewise.
16052         * modules/unictype/property-grapheme-base-tests: Likewise.
16053         * modules/unictype/property-grapheme-extend-tests: Likewise.
16054         * modules/unictype/property-grapheme-link-tests: Likewise.
16055         * modules/unictype/property-hex-digit-tests: Likewise.
16056         * modules/unictype/property-hyphen-tests: Likewise.
16057         * modules/unictype/property-id-continue-tests: Likewise.
16058         * modules/unictype/property-id-start-tests: Likewise.
16059         * modules/unictype/property-ideographic-tests: Likewise.
16060         * modules/unictype/property-ids-binary-operator-tests: Likewise.
16061         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
16062         * modules/unictype/property-ignorable-control-tests: Likewise.
16063         * modules/unictype/property-iso-control-tests: Likewise.
16064         * modules/unictype/property-join-control-tests: Likewise.
16065         * modules/unictype/property-left-of-pair-tests: Likewise.
16066         * modules/unictype/property-line-separator-tests: Likewise.
16067         * modules/unictype/property-logical-order-exception-tests: Likewise.
16068         * modules/unictype/property-lowercase-tests: Likewise.
16069         * modules/unictype/property-math-tests: Likewise.
16070         * modules/unictype/property-non-break-tests: Likewise.
16071         * modules/unictype/property-not-a-character-tests: Likewise.
16072         * modules/unictype/property-numeric-tests: Likewise.
16073         * modules/unictype/property-other-alphabetic-tests: Likewise.
16074         * modules/unictype/property-other-default-ignorable-code-point-tests:
16075         Likewise.
16076         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
16077         * modules/unictype/property-other-id-continue-tests: Likewise.
16078         * modules/unictype/property-other-id-start-tests: Likewise.
16079         * modules/unictype/property-other-lowercase-tests: Likewise.
16080         * modules/unictype/property-other-math-tests: Likewise.
16081         * modules/unictype/property-other-uppercase-tests: Likewise.
16082         * modules/unictype/property-paired-punctuation-tests: Likewise.
16083         * modules/unictype/property-paragraph-separator-tests: Likewise.
16084         * modules/unictype/property-pattern-syntax-tests: Likewise.
16085         * modules/unictype/property-pattern-white-space-tests: Likewise.
16086         * modules/unictype/property-private-use-tests: Likewise.
16087         * modules/unictype/property-punctuation-tests: Likewise.
16088         * modules/unictype/property-quotation-mark-tests: Likewise.
16089         * modules/unictype/property-radical-tests: Likewise.
16090         * modules/unictype/property-sentence-terminal-tests: Likewise.
16091         * modules/unictype/property-soft-dotted-tests: Likewise.
16092         * modules/unictype/property-space-tests: Likewise.
16093         * modules/unictype/property-terminal-punctuation-tests: Likewise.
16094         * modules/unictype/property-test-tests: Likewise.
16095         * modules/unictype/property-titlecase-tests: Likewise.
16096         * modules/unictype/property-unassigned-code-value-tests: Likewise.
16097         * modules/unictype/property-unified-ideograph-tests: Likewise.
16098         * modules/unictype/property-uppercase-tests: Likewise.
16099         * modules/unictype/property-variation-selector-tests: Likewise.
16100         * modules/unictype/property-white-space-tests: Likewise.
16101         * modules/unictype/property-xid-continue-tests: Likewise.
16102         * modules/unictype/property-xid-start-tests: Likewise.
16103         * modules/unictype/property-zero-width-tests: Likewise.
16104         * modules/unictype/scripts-tests: Likewise.
16105         * modules/unictype/syntax-c-ident-tests: Likewise.
16106         * modules/unictype/syntax-c-whitespace-tests: Likewise.
16107         * modules/unictype/syntax-java-ident-tests: Likewise.
16108         * modules/unictype/syntax-java-whitespace-tests: Likewise.
16109         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
16110         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
16111         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
16112         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
16113         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
16114         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
16115         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
16116         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
16117         * modules/uniname/uniname-tests: Likewise.
16118         * modules/uninorm/canonical-decomposition-tests: Likewise.
16119         * modules/uninorm/compat-decomposition-tests: Likewise.
16120         * modules/uninorm/composition-tests: Likewise.
16121         * modules/uninorm/decomposing-form-tests: Likewise.
16122         * modules/uninorm/decomposition-tests: Likewise.
16123         * modules/uninorm/filter-tests: Likewise.
16124         * modules/uninorm/nfc-tests: Likewise.
16125         * modules/uninorm/nfd-tests: Likewise.
16126         * modules/uninorm/nfkc-tests: Likewise.
16127         * modules/uninorm/nfkd-tests: Likewise.
16128         * modules/uninorm/u8-normcmp-tests: Likewise.
16129         * modules/uninorm/u8-normcoll-tests: Likewise.
16130         * modules/uninorm/u16-normcmp-tests: Likewise.
16131         * modules/uninorm/u16-normcoll-tests: Likewise.
16132         * modules/uninorm/u32-normcmp-tests: Likewise.
16133         * modules/uninorm/u32-normcoll-tests: Likewise.
16134         * modules/unistdio/u8-asnprintf-tests: Likewise.
16135         * modules/unistdio/u8-vasnprintf-tests: Likewise.
16136         * modules/unistdio/u8-vasprintf-tests: Likewise.
16137         * modules/unistdio/u8-vsnprintf-tests: Likewise.
16138         * modules/unistdio/u8-vsprintf-tests: Likewise.
16139         * modules/unistdio/u16-asnprintf-tests: Likewise.
16140         * modules/unistdio/u16-vasnprintf-tests: Likewise.
16141         * modules/unistdio/u16-vasprintf-tests: Likewise.
16142         * modules/unistdio/u16-vsnprintf-tests: Likewise.
16143         * modules/unistdio/u16-vsprintf-tests: Likewise.
16144         * modules/unistdio/u32-asnprintf-tests: Likewise.
16145         * modules/unistdio/u32-vasnprintf-tests: Likewise.
16146         * modules/unistdio/u32-vasprintf-tests: Likewise.
16147         * modules/unistdio/u32-vsnprintf-tests: Likewise.
16148         * modules/unistdio/u32-vsprintf-tests: Likewise.
16149         * modules/unistdio/ulc-asnprintf-tests: Likewise.
16150         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
16151         * modules/unistdio/ulc-vasprintf-tests: Likewise.
16152         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
16153         * modules/unistdio/ulc-vsprintf-tests: Likewise.
16154         * modules/unistr/u8-check-tests: Likewise.
16155         * modules/unistr/u8-chr-tests: Likewise.
16156         * modules/unistr/u8-cmp-tests: Likewise.
16157         * modules/unistr/u8-cmp2-tests: Likewise.
16158         * modules/unistr/u8-cpy-alloc-tests: Likewise.
16159         * modules/unistr/u8-cpy-tests: Likewise.
16160         * modules/unistr/u8-mblen-tests: Likewise.
16161         * modules/unistr/u8-mbsnlen-tests: Likewise.
16162         * modules/unistr/u8-mbtouc-tests: Likewise.
16163         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
16164         * modules/unistr/u8-mbtoucr-tests: Likewise.
16165         * modules/unistr/u8-move-tests: Likewise.
16166         * modules/unistr/u8-next-tests: Likewise.
16167         * modules/unistr/u8-prev-tests: Likewise.
16168         * modules/unistr/u8-set-tests: Likewise.
16169         * modules/unistr/u8-stpcpy-tests: Likewise.
16170         * modules/unistr/u8-stpncpy-tests: Likewise.
16171         * modules/unistr/u8-strcat-tests: Likewise.
16172         * modules/unistr/u8-strcmp-tests: Likewise.
16173         * modules/unistr/u8-strcoll-tests: Likewise.
16174         * modules/unistr/u8-strcpy-tests: Likewise.
16175         * modules/unistr/u8-strdup-tests: Likewise.
16176         * modules/unistr/u8-strlen-tests: Likewise.
16177         * modules/unistr/u8-strmblen-tests: Likewise.
16178         * modules/unistr/u8-strmbtouc-tests: Likewise.
16179         * modules/unistr/u8-strncat-tests: Likewise.
16180         * modules/unistr/u8-strncmp-tests: Likewise.
16181         * modules/unistr/u8-strncpy-tests: Likewise.
16182         * modules/unistr/u8-strnlen-tests: Likewise.
16183         * modules/unistr/u8-to-u16-tests: Likewise.
16184         * modules/unistr/u8-to-u32-tests: Likewise.
16185         * modules/unistr/u8-uctomb-tests: Likewise.
16186         * modules/unistr/u16-check-tests: Likewise.
16187         * modules/unistr/u16-chr-tests: Likewise.
16188         * modules/unistr/u16-cmp-tests: Likewise.
16189         * modules/unistr/u16-cmp2-tests: Likewise.
16190         * modules/unistr/u16-cpy-alloc-tests: Likewise.
16191         * modules/unistr/u16-cpy-tests: Likewise.
16192         * modules/unistr/u16-mblen-tests: Likewise.
16193         * modules/unistr/u16-mbsnlen-tests: Likewise.
16194         * modules/unistr/u16-mbtouc-tests: Likewise.
16195         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
16196         * modules/unistr/u16-mbtoucr-tests: Likewise.
16197         * modules/unistr/u16-move-tests: Likewise.
16198         * modules/unistr/u16-next-tests: Likewise.
16199         * modules/unistr/u16-prev-tests: Likewise.
16200         * modules/unistr/u16-set-tests: Likewise.
16201         * modules/unistr/u16-stpcpy-tests: Likewise.
16202         * modules/unistr/u16-stpncpy-tests: Likewise.
16203         * modules/unistr/u16-strcat-tests: Likewise.
16204         * modules/unistr/u16-strcmp-tests: Likewise.
16205         * modules/unistr/u16-strcoll-tests: Likewise.
16206         * modules/unistr/u16-strcpy-tests: Likewise.
16207         * modules/unistr/u16-strdup-tests: Likewise.
16208         * modules/unistr/u16-strlen-tests: Likewise.
16209         * modules/unistr/u16-strmblen-tests: Likewise.
16210         * modules/unistr/u16-strmbtouc-tests: Likewise.
16211         * modules/unistr/u16-strncat-tests: Likewise.
16212         * modules/unistr/u16-strncmp-tests: Likewise.
16213         * modules/unistr/u16-strncpy-tests: Likewise.
16214         * modules/unistr/u16-strnlen-tests: Likewise.
16215         * modules/unistr/u16-to-u32-tests: Likewise.
16216         * modules/unistr/u16-to-u8-tests: Likewise.
16217         * modules/unistr/u16-uctomb-tests: Likewise.
16218         * modules/unistr/u32-check-tests: Likewise.
16219         * modules/unistr/u32-chr-tests: Likewise.
16220         * modules/unistr/u32-cmp-tests: Likewise.
16221         * modules/unistr/u32-cmp2-tests: Likewise.
16222         * modules/unistr/u32-cpy-alloc-tests: Likewise.
16223         * modules/unistr/u32-cpy-tests: Likewise.
16224         * modules/unistr/u32-mblen-tests: Likewise.
16225         * modules/unistr/u32-mbsnlen-tests: Likewise.
16226         * modules/unistr/u32-mbtouc-tests: Likewise.
16227         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
16228         * modules/unistr/u32-mbtoucr-tests: Likewise.
16229         * modules/unistr/u32-move-tests: Likewise.
16230         * modules/unistr/u32-next-tests: Likewise.
16231         * modules/unistr/u32-prev-tests: Likewise.
16232         * modules/unistr/u32-set-tests: Likewise.
16233         * modules/unistr/u32-stpcpy-tests: Likewise.
16234         * modules/unistr/u32-stpncpy-tests: Likewise.
16235         * modules/unistr/u32-strcat-tests: Likewise.
16236         * modules/unistr/u32-strcmp-tests: Likewise.
16237         * modules/unistr/u32-strcoll-tests: Likewise.
16238         * modules/unistr/u32-strcpy-tests: Likewise.
16239         * modules/unistr/u32-strdup-tests: Likewise.
16240         * modules/unistr/u32-strlen-tests: Likewise.
16241         * modules/unistr/u32-strmblen-tests: Likewise.
16242         * modules/unistr/u32-strmbtouc-tests: Likewise.
16243         * modules/unistr/u32-strncat-tests: Likewise.
16244         * modules/unistr/u32-strncmp-tests: Likewise.
16245         * modules/unistr/u32-strncpy-tests: Likewise.
16246         * modules/unistr/u32-strnlen-tests: Likewise.
16247         * modules/unistr/u32-to-u16-tests: Likewise.
16248         * modules/unistr/u32-to-u8-tests: Likewise.
16249         * modules/unistr/u32-uctomb-tests: Likewise.
16250         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
16251         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
16252         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
16253         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
16254         * modules/uniwidth/u8-strwidth-tests: Likewise.
16255         * modules/uniwidth/u8-width-tests: Likewise.
16256         * modules/uniwidth/u16-strwidth-tests: Likewise.
16257         * modules/uniwidth/u16-width-tests: Likewise.
16258         * modules/uniwidth/u32-strwidth-tests: Likewise.
16259         * modules/uniwidth/u32-width-tests: Likewise.
16260         * modules/uniwidth/width-tests: Likewise.
16261
16262 2010-05-18  Richard Jones  <rjones@redhat.com>
16263
16264         doc: users.txt: list hivex
16265         * users.txt: Add hivex.
16266
16267 2010-05-18  Richard Jones  <rjones@redhat.com>
16268
16269         doc: users.txt: list febootstrap
16270         * users.txt: Add febootstrap.
16271
16272 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
16273
16274         bootstrap: fix an error when gnulib is not used as a git submodule
16275         * build-aux/bootstrap (gnulib_path): If its length is zero then
16276         assign "gnulib" to it.
16277         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
16278
16279 2010-05-16  Bruno Haible  <bruno@clisp.org>
16280
16281         Avoid autoconf warnings about AM_ICONV.
16282         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
16283         2.64.
16284
16285 2010-05-16  Bruno Haible  <bruno@clisp.org>
16286
16287         absolute-header: Make the macro usable in more situations.
16288         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
16289         from gl_ABSOLUTE_HEADER.
16290         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
16291
16292 2010-05-16  James Youngman  <jay@gnu.org>
16293
16294         doc: update users.txt
16295         * users.txt: Add CSSC.
16296
16297 2010-05-16  Jim Meyering  <meyering@redhat.com>
16298
16299         init.sh: fix an error in the previous change; add more comments
16300         * tests/init.sh: Compare exit code in loop against 9, not 2.
16301         Patch by Bruno Haible.
16302         Make the two tests more similar by adding an empty "then" clause.
16303         Add comments.
16304
16305         init.sh: avoid unnecessary shell re-exec
16306         * tests/init.sh: Improve the re-exec-required check to first test the
16307         current shell.  If it passes the test, do not search for a shell that
16308         does pass, and do not re-exec.  This test is particularly contorted to
16309         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
16310         of $(...) evokes a syntax error and causes immediate shell exit with
16311         status 2.  Bruno Haible reported that the re-exec made it impossible
16312         to single-step through any init.sh-using script.
16313
16314 2010-05-16  Bruno Haible  <bruno@clisp.org>
16315
16316         Fix collision between gnulib's and libintl's printf replacements.
16317         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
16318         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
16319         (printf): When using GNU C, map the __printf__ function to rpl_printf
16320         via __asm__. When not using GNU C, define rpl_printf instead of
16321         __printf__.
16322         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
16323         commit.
16324         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
16325         commit.
16326         * m4/asm-underscore.m4: New file.
16327         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
16328         * modules/stdio (Files): Add m4/asm-underscore.m4.
16329         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
16330         Reported by Ben Pfaff.
16331
16332 2010-05-16  Bruno Haible  <bruno@clisp.org>
16333
16334         verify: Avoid skipping the test on openSUSE 11.0.
16335         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
16336
16337 2010-05-13  Bruno Haible  <bruno@clisp.org>
16338
16339         Avoid useless warnings from G++.
16340         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
16341         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
16342         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16343
16344 2010-05-11  Jim Meyering  <meyering@redhat.com>
16345
16346         maint.mk: tweak preceding change
16347         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
16348         regexps tighter by anchoring at EOL, and make the new group "shy"
16349         for slightly decreased overhead.
16350
16351 2010-05-11  Eric Blake  <eblake@redhat.com>
16352
16353         maint.mk: gnulib doesn't guarantee NSIG
16354         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
16355
16356 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16357
16358         test-pwrite.c: Remove unused variable declaration.
16359         * tests/test-pwrite.c (main): Remove read_buf declaration.
16360
16361         Remove useless test-pwrite.sh file.
16362         * tests/test-pwrite.sh: Delete file.
16363         * modules/pwrite-tests: Remove references.
16364         Reported by Bruno Haible.
16365
16366 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16367
16368         init.sh: fix a typo
16369         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
16370
16371 2010-05-10  Jim Meyering  <meyering@redhat.com>
16372
16373         maint.mk: avoid using a temporary file in the always-defined-macros check
16374         * top/maint.mk (.re-defmac): Remove rule.
16375         (gl_trap_): Remove definition.
16376         (sc_prohibit_always-defined_macros): Rewrite not to create and
16377         depend on a temporary file.  Instead, depend on GNU grep's ability
16378         to read a list of regular expressions from stdin when given "-f -".
16379
16380 2010-05-09  Bruno Haible  <bruno@clisp.org>
16381
16382         Update to GNU gettext 0.18, part 1.
16383         * m4/gettext.m4: Update to GNU gettext 0.18.
16384         * m4/intl.m4: Likewise.
16385         * m4/po.m4: Likewise.
16386         * modules/gettext (Files): Add m4/fcntl-o.m4.
16387         (configure.ac): Require gettext infrastructure from version 0.18.
16388
16389 2010-05-09  Jim Meyering  <meyering@redhat.com>
16390
16391         init.sh: enable MALLOC_PERTURB_
16392         * tests/init.sh: Enable glibc's malloc-perturbing option.
16393
16394         maint.mk: improve sc_cross_check_PATH_usage_in_tests
16395         With my recent change in init.sh from the two-line form:
16396             -#   : ${srcdir=.}
16397             -#   . "$srcdir/init.sh"; path_prepend_ .
16398             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
16399         I noticed that using the one-line form would cause this test
16400         to fail with a false-positive, or to stop working altogether,
16401         depending on whether help-version changed or all the tests did.
16402         * top/maint.mk (_hv_regex): Remove this definition.
16403         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16404         (_hv_regex_strong): Use a stronger regex to check for conformance.
16405         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16406         Give a separate diagnostic for lack of conforming use.
16407
16408         maint.mk: prohibit definition of symbols defined by gnulib
16409         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16410         definition of symbols defined by gnulib.
16411
16412 2010-05-09  Bruno Haible  <bruno@clisp.org>
16413
16414         acl: Avoid test failure on Cygwin-hosted mingw.
16415         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16416
16417 2010-05-09  Bruno Haible  <bruno@clisp.org>
16418
16419         error: Use system's fcntl function.
16420         * lib/error.c (fcntl): Undefine.
16421
16422 2010-05-09  Jim Meyering  <meyering@redhat.com>
16423
16424         verify: adjust formatting to be more consistent
16425         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16426         argument-list '('s, and after one comma.
16427
16428 2010-05-09  Bruno Haible  <bruno@clisp.org>
16429
16430         error: More reliable output on mingw.
16431         * lib/error.c: Include <windows.h>.
16432         (is_open): New function.
16433         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16434         defined.
16435
16436 2010-05-09  Bruno Haible  <bruno@clisp.org>
16437
16438         vasnprintf: Fix syntax errors in libintl build on mingw.
16439         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16440         pad_ourselves and prec_ourselves after use.
16441
16442 2010-05-08  Bruno Haible  <bruno@clisp.org>
16443
16444         * lib/config.charset: Update comments for Cygwin 1.7.
16445         * lib/localcharset.c: Likewise.
16446
16447 2010-05-07  Jim Meyering  <meyering@redhat.com>
16448
16449         init.sh: improve comments
16450         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16451         . "${srcdir=.}/init.sh"; path_prepend_ .
16452         Add a note about path_prepend_ and the alternative of using
16453         TESTS_ENVIRONMENT.
16454
16455 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16456
16457         exclude: Unescape hashed patterns in wildcard mode.
16458         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16459         to the hash list.
16460         * tests/test-exclude8.sh: New test case.
16461         * modules/exclude-tests: Add new test.
16462
16463 2010-05-05  Eric Blake  <eblake@redhat.com>
16464
16465         verify: automate tests
16466         * modules/verify-tests: New module.
16467         * tests/test-verify.sh: New file.
16468         * tests/test-verify.c: Guard each negative test with a unique id.
16469         Also avoid warning about unused left hand of comma expressions.
16470
16471 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16472
16473         Further improvements to verify.h, suggested by Eric Blake.
16474         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16475         the GL_* versions, to avoid collision with OpenGL.
16476         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16477         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16478         than testing merely whether it's defined.
16479
16480         Modify verify.h to pacify gcc -Wredundant_decls.
16481         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16482         These use the prefix "GL_" since they're likely to be useful elsewhere.
16483         We may need to break them out into a different .h file.
16484         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16485         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16486         of verify_function__.
16487
16488 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16489
16490         Tests for module pwrite.
16491         * modules/pwrite-tests: New file.
16492         * tests/test-pwrite.sh: New file.
16493         * tests/test-pwrite.c: New file.
16494
16495         New module pwrite.
16496         * lib/unistd.in.h (pwrite): New declaration.
16497         * lib/pwrite.c: New file, from glibc with modifications.
16498         * m4/pwrite.m4: New file.
16499         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16500         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16501         REPLACE_PWRITE.
16502         * modules/pwrite: New file.
16503         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16504         REPLACE_PWRITE.
16505         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16506         * doc/posix-functions/pwrite.texi: Mention the new module.
16507
16508 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16509
16510         pread: Update documentation.
16511         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16512
16513 2010-05-04  Eric Blake  <eblake@redhat.com>
16514
16515         docs: update cygwin progress
16516         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16517         this bug.
16518         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16519         Added in cygwin 1.7.2.
16520         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16521         Likewise.
16522         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16523         Likewise.
16524         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16525         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16526         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16527         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16528         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16529         Mention nproc module.
16530         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16531         bug in cygwin 1.7.5 addition.
16532         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16533         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16534         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16535         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16536         1.7.5.
16537         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16538         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16539         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16540         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16541         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16542         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16543         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16544         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16545         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16546         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16547         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16548         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16549         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16550         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16551         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16552         Likewise.
16553         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16554         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16555         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16556         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16557         Likewise.
16558         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16559         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16560         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16561         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16562         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16563         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16564         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16565         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16566         Likewise.
16567         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16568         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16569         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16570         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16571         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16572         Likewise.
16573         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16574         Likewise.
16575         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16576         Likewise.
16577         * doc/glibc-functions/xdrrec_endofrecord.texi
16578         (xdrrec_endofrecord): Likewise.
16579         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16580         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16581         Likewise.
16582         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16583         Likewise.
16584
16585 2010-05-04  Jim Meyering  <meyering@redhat.com>
16586
16587         gendocs.sh: make its "-s FILE" option more useful
16588         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16589         $PACKAGE to reflect the probably-different basename of "FILE".
16590
16591 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16592
16593         bootstrap: don't ignore download_po_files failure
16594         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16595         failure.
16596
16597 2010-05-03  Jim Meyering  <meyering@redhat.com>
16598
16599         maint.mk: allow to pass options to gendocs.sh
16600         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16601         (gendocs_options_): New overridable variable.
16602
16603         gnu-web-doc-update: don't ignore configure or build failure
16604         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16605
16606         announce-gen: backslash-escape '@'s in --help output
16607         * build-aux/announce-gen: Fix syntax errors.
16608
16609         maint.mk, announce-gen: allow project-specific announcement mail headers
16610         * top/maint.mk (translation_project_): Define default.
16611         (announcement_Cc_, announcement_mail_headers_): Likewise.
16612         (announcement): Invoke announce-gen with new --mail-headers option.
16613         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16614
16615         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16616         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16617         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16618         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16619         line in the "err2" output file when running "make check" in verbose
16620         mode (i.e., with set -x enabled).
16621
16622 2010-05-03  Bruno Haible  <bruno@clisp.org>
16623
16624         wctob: Fix for weird platforms.
16625         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16626         argument value.
16627
16628 2010-05-03  Jim Meyering  <meyering@redhat.com>
16629
16630         maint.mk: prohibit unwarranted use of <strings.h>
16631         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16632         strings.h in a file that does not also use strcasecmp, strncasecmp,
16633         ffs or ffsll.
16634
16635         maint.mk: remove obsolete comments
16636         * top/maint.mk: Remove stale, commented-out rules.
16637
16638 2010-05-02  Bruno Haible  <bruno@clisp.org>
16639
16640         wcwidth: Declare also when it's aliased.
16641         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16642         macro.
16643
16644 2010-05-02  Bruno Haible  <bruno@clisp.org>
16645
16646         Fix regression from 2010-04-25.
16647         * gnulib-tool (func_modules_transitive_closure): Check the status of
16648         all modules, not only of the tests that are of the form foo-tests where
16649         foo is a module.
16650
16651 2010-05-02  Bruno Haible  <bruno@clisp.org>
16652
16653         wctob: Work around nasty Cygwin 1.7.2 bug.
16654         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16655         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16656
16657 2010-05-01  Bruno Haible  <bruno@clisp.org>
16658
16659         fpurge: Sharper test.
16660         * tests/test-fpurge.c (main): Add one more ftell check.
16661         * modules/fpurge-tests (Depends-on): Add ftell.
16662         Suggested by Eric Blake.
16663
16664 2010-05-01  Bruno Haible  <bruno@clisp.org>
16665
16666         ftello: Another test.
16667         * tests/test-ftello3.c: New file.
16668         * modules/ftello-tests (Files): Add it.
16669         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16670         MOSTLYCLEANFILES.
16671
16672         ftell: Another test.
16673         * tests/test-ftell3.c: New file.
16674         * modules/ftell-tests (Files): Add it.
16675         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16676         MOSTLYCLEANFILES.
16677
16678 2010-05-01  Bruno Haible  <bruno@clisp.org>
16679
16680         ftell, ftello: Work around Solaris bug.
16681         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16682         * lib/ftello.c: Include stdio-impl.h.
16683         (ftello): On Solaris, when _IOWRT is set, compute the result without
16684         looking at _IOREAD.
16685         * modules/ftello (Files): Add lib/stdio-impl.h.
16686         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16687         * doc/posix-functions/ftello.texi: Likewise.
16688         Reported by Eric Blake.
16689
16690 2010-05-01  Bruno Haible  <bruno@clisp.org>
16691
16692         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16693         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16694         the _IOWRT flag is also set.
16695
16696 2010-05-01  Bruno Haible  <bruno@clisp.org>
16697
16698         Fix doc about a HP-UX stdio bug.
16699         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16700         * doc/posix-functions/ftello.texi: Likewise.
16701
16702 2010-05-01  Bruno Haible  <bruno@clisp.org>
16703
16704         lseek test: Fix failure on Solaris.
16705         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16706         output.
16707
16708 2010-04-30  Jim Meyering  <meyering@redhat.com>
16709
16710         bootstrap: don't ignore failure to generate po*/Makevars
16711         * build-aux/bootstrap (with_gettext): Don't ignore failure
16712         to create po/Makevars or runtime-po/Makevars.
16713
16714 2010-04-29  Eric Blake  <eblake@redhat.com>
16715
16716         headers: relax license to LGPLv2+
16717         * modules/fcntl-h (License): Relax license.
16718         * modules/getopt-posix (License): Likewise.
16719         * modules/locale (License): Likewise.
16720         * modules/math (License): Likewise.
16721         * modules/pty (License): Likewise.
16722         * modules/sched (License): Likewise.
16723         * modules/search (License): Likewise.
16724         * modules/spawn (License): Likewise.
16725         * modules/stdarg (License): Likewise.
16726         * modules/sysexits (License): Likewise.
16727
16728 2010-04-29  Jim Meyering  <meyering@redhat.com>
16729
16730         inttypes: relax license to LGPLv2+
16731         * modules/inttypes (License): Relax license.
16732
16733 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16734
16735         * top/maint.mk (indent): Run twice to produce idempotent results.
16736
16737 2010-04-28  Bruno Haible  <bruno@clisp.org>
16738
16739         getdate: Generate getdate.c in the source directory.
16740         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16741         MOSTLYCLEANFILES.
16742         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16743
16744 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16745
16746         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16747         is not declared as a const *; avoid warnings in that case.
16748
16749 2010-04-28  Eric Blake  <eblake@redhat.com>
16750
16751         canonicalize-lgpl: avoid compiler warning
16752         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16753         declaration' / 'extraneous semicolon' warning with some compilers.
16754         Reported by Andreas Gruenbacher.
16755
16756 2010-04-28  Jim Meyering  <meyering@redhat.com>
16757
16758         init.sh: ensure a more reliable exit status when exiting via trap
16759         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16760         Inspired by patches from Dmitry V. Levin.
16761         Also trap on signal 3 (SIGQUIT).
16762
16763 2010-04-27  Bruno Haible  <bruno@clisp.org>
16764
16765         Update doc about utimes().
16766         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16767         'utimens' module.
16768         Reported by Andreas Gruenbacher <agruen@suse.de>.
16769
16770 2010-04-27  Eric Blake  <eblake@redhat.com>
16771
16772         full-read, full-write: relax license
16773         * modules/full-read (License): Drop to LGPLv2+.
16774         * modules/full-write (License): Likewise.
16775         * modules/safe-read (License): Likewise.
16776         * modules/safe-write (License): Likewise.
16777
16778         pthread: mention library for linking
16779         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16780
16781 2010-04-27  Jim Meyering  <meyering@redhat.com>
16782
16783         maint.mk: fix a bug introduced in last change
16784         * top/maint.mk (gl_assured_headers_): Now that all names are on
16785         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16786         is not anchored to end of word, it should be adequate.
16787
16788         maint.mk: avoid side-effect in latest syntax-check
16789         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16790         to run commands via $(shell...), and hence to incur cost only when
16791         the new rule is actually run.
16792
16793         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16794         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16795         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16796         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16797         (gl_assured_headers_, az_, AZ_): Define.
16798         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16799
16800 2010-04-26  Jim Meyering  <jim@meyering.net>
16801             Bruno Haible  <bruno@clisp.org>
16802
16803         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16804         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16805         Prompted by an exchange with Gilles Espinasse.
16806
16807 2010-04-26  Jim Meyering  <meyering@redhat.com>
16808
16809         git-version-gen: aesthetic tweak
16810         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16811         so that the command remains on a single line.
16812
16813 2010-04-26  Eric Blake  <eblake@redhat.com>
16814
16815         git-version-gen: allow use on EBCDIC hosts
16816         * build-aux/git-version-gen (dirty): Use literal rather than tying
16817         ourselves to ascii.
16818         Reported by Steve Goetze.
16819
16820 2010-04-25  Bruno Haible  <bruno@clisp.org>
16821
16822         netdb: Add support for GNULIB_POSIXCHECK.
16823         * lib/netdb.in.h: Include warn-on-use.h.
16824         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16825         functions are used when GNULIB_POSIXCHECK is defined and the
16826         getaddrinfo module is not in use.
16827         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16828         freeaddrinfo, gai_strerror, getnameinfo are declared.
16829         * modules/netdb (Depends-on): Add warn-on-use.
16830         (Makefile.am): Include warn-on-use.h in netdb.h.
16831
16832 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16833
16834         build: avoid "make check" failure without .git/ directory
16835         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16836         there is no .git/ directory.
16837
16838 2010-04-25  Bruno Haible  <bruno@clisp.org>
16839
16840         ptsname: Fix misuse of ttyname_r.
16841         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16842         of errno.
16843
16844 2010-04-25  Bruno Haible  <bruno@clisp.org>
16845
16846         ttyname_r: Make it work on Solaris 10.
16847         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16848         if the system function has the POSIX declaration. Test whether the
16849         function fails if the buffer is less than 128 bytes large.
16850         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16851         system's ttyname_r function. Provide a reasonably large buffer.
16852         * modules/ttyname_r (Depends-on): Add extensions.
16853         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16854
16855 2010-04-25  Bruno Haible  <bruno@clisp.org>
16856
16857         Use the 'extensions' module for some more functions on Solaris.
16858         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16859         module.
16860         * doc/posix-functions/ctime_r.texi: Likewise.
16861         * doc/posix-functions/getgrgid_r.texi: Likewise.
16862         * doc/posix-functions/getgrnam_r.texi: Likewise.
16863         * doc/posix-functions/getpwnam_r.texi: Likewise.
16864         * doc/posix-functions/getpwuid_r.texi: Likewise.
16865         * doc/posix-functions/readdir_r.texi: Likewise.
16866         * doc/posix-functions/sigwait.texi: Likewise.
16867         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16868         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16869
16870 2010-04-25  Bruno Haible  <bruno@clisp.org>
16871
16872         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16873         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16874         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16875         * lib/ttyname_r.c: Include <limits.h>.
16876         (ttyname_r): Define using the system's ttyname_r function, if it exists
16877         and not on Solaris.
16878         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16879         set.
16880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16881         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16882         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16883         Reported by Simon Josefsson.
16884
16885 2010-04-25  Bruno Haible  <bruno@clisp.org>
16886
16887         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16888         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16889         * doc/posix-functions/ctime_r.texi: Likewise.
16890         * doc/posix-functions/getgrgid_r.texi: Likewise.
16891         * doc/posix-functions/getgrnam_r.texi: Likewise.
16892         * doc/posix-functions/getlogin_r.texi: Likewise.
16893         * doc/posix-functions/getpwnam_r.texi: Likewise.
16894         * doc/posix-functions/getpwuid_r.texi: Likewise.
16895         * doc/posix-functions/readdir_r.texi: Likewise.
16896         * doc/posix-functions/sigwait.texi: Likewise.
16897         * doc/posix-functions/ttyname_r.texi: Likewise.
16898         Reported by Simon Josefsson.
16899
16900 2010-04-25  Bruno Haible  <bruno@clisp.org>
16901
16902         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16903         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16904         also to --create-testdir.
16905         (func_acceptable): Don't consider the status of *-tests modules here.
16906         (func_modules_transitive_closure): Consider it here, before including a
16907         test module.
16908         (func_import, func_create_testdir): Set inc_all_direct_tests,
16909         inc_all_indirect_tests.
16910         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16911         --create-testdir and --create-megatestdir.
16912
16913 2010-04-25  Bruno Haible  <bruno@clisp.org>
16914
16915         gnulib-tool: Add --without-*-tests options.
16916         * gnulib-tool (func_usage): Document the --without-*-tests options.
16917         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16918         excl_unportable_tests): New variables.
16919         Fail if they are specified with --import or --update.
16920         (func_acceptable): Respect the excl_*_tests variables.
16921         (func_import): Set the excl_*_tests variables to empty.
16922
16923 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16924             Bruno Haible  <bruno@clisp.org>
16925
16926         Work around a MacOS X 10.4 bug with openpty.
16927         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16928         * tests/test-openpty.c (main): Close the master side explicitly.
16929
16930 2010-04-25  Bruno Haible  <bruno@clisp.org>
16931
16932         strnlen: Fix a C++ test error on MacOS X and Solaris.
16933         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16934         the function is not declared.
16935         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16936         Simon Josefsson.
16937
16938 2010-04-24  Bruno Haible  <bruno@clisp.org>
16939
16940         Avoid a gcc warning.
16941         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16942         of correct type for %08lx directive.
16943         Reported by Eric Blake.
16944
16945 2010-04-24  Bruno Haible  <bruno@clisp.org>
16946
16947         vasnprintf: Correct errno value in case of out-of-memory.
16948         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16949         or sprintf. Use the errno value from SNPRINTF or sprintf.
16950         Reported by Ian Beckwith <ianb@erislabs.net>.
16951
16952 2010-04-24  Bruno Haible  <bruno@clisp.org>
16953
16954         ansi-c++-opt: Find correct compiler when cross-compiling.
16955         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16956         AC_CHECK_PROGS.
16957         Reported by Simon Josefsson.
16958
16959 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16960
16961         vc-list-files: Add support for subversion
16962         * build-aux/vc-list-files: Use "svn list" to generate the list of
16963         files controlled by subversion.
16964
16965 2010-04-23  Jim Meyering  <meyering@redhat.com>
16966
16967         vc-list-files tests: convert to use init.sh
16968         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16969         path_prepend_.
16970         Use Exit, not exit.
16971         Use skip_ rather than open coding it.
16972         Remove trap set-up and compare definitions.
16973         * tests/test-vc-list-files-git.sh: Likewise.
16974         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16975
16976 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16977
16978         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16979         backup files.
16980
16981 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16982
16983         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16984
16985 2010-04-20  Eric Blake  <eblake@redhat.com>
16986
16987         tests: be robust to ignored SIGPIPE
16988         * tests/test-select-in.sh: Consume all output.
16989         * tests/test-lseek.sh: Check correct exit status, while avoiding
16990         EPIPE.
16991
16992 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16993             Bruno Haible  <bruno@clisp.org>
16994
16995         visibility: Don't use -fvisibility if it leads to a warning.
16996         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16997         yes, don't pretend that visibility works if it leads to a warning.
16998         Reported by Mike Gran <spk121@yahoo.com>.
16999
17000 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
17001
17002         * build-aux/bootstrap: Use "git -h" for testing for supported options
17003         instead of "git --help".  The short-form option only shows a summary,
17004         and doesn't layout the full man page.  Grep for the full option name
17005         in the summary, too.
17006
17007 2010-04-19  Bruno Haible  <bruno@clisp.org>
17008
17009         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
17010         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
17011         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
17012         mention of RELOCATABLE_STRIP.
17013         Reported by Sylvain Beucler <beuc@beuc.net>.
17014
17015 2010-04-19  Bruno Haible  <bruno@clisp.org>
17016
17017         * lib/diffseq.h: Fix typo in comment.
17018         Reported by Eric Blake.
17019
17020 2010-04-19  Bruno Haible  <bruno@clisp.org>
17021
17022         ioctl: Move autoconf macro to a .m4 file.
17023         * m4/ioctl.m4: New file, extracted from modules/ioctl.
17024         * modules/ioctl (Files): Add it.
17025         (configure.ac): Simply invoke gl_FUNC_IOCTL.
17026         Reported by Ian Beckwith <ianb@erislabs.net>.
17027
17028 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
17029             Bruno Haible  <bruno@clisp.org>
17030
17031         diffseq: Accommodate use-case with abstract arrays.
17032         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
17033         is not defined.
17034         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
17035         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
17036
17037 2010-04-18  Bruno Haible  <bruno@clisp.org>
17038
17039         * doc/posix-headers/stdbool.texi: More precise wording.
17040
17041 2010-04-17  Jim Meyering  <meyering@redhat.com>
17042
17043         maint.mk: use gnu-style indentation in an embedded perl script
17044         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
17045         Rename variable: s/two/last_two_bytes/
17046
17047 2010-04-16  Eric Blake  <eblake@redhat.com>
17048
17049         test-stdbool: skip test that fails with Solaris CC
17050         * tests/test-stdbool.c (f): Skip test that causes compilation
17051         error under buggy C++ compiler.
17052         * lib/stdbool.in.h: Document the limitation.
17053         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
17054
17055         setenv: allow compilation with C++
17056         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
17057         register keyword.
17058
17059         stdint: allow test to pass with C++
17060         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
17061
17062         getopt: allow compilation with C++
17063         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
17064         struct.
17065         * lib/getopt.c (_getopt_internal_r): Use correct type.
17066         Reported by Dagobert Michelson, via Joel E. Denny.
17067
17068 2010-04-16  Bruno Haible  <bruno@clisp.org>
17069
17070         Override netdb.h always.
17071         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
17072         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
17073         Reported by Ludovic Courtès <ludo@gnu.org>.
17074
17075 2010-04-15  Bruno Haible  <bruno@clisp.org>
17076
17077         openpty: Fix mistake from 2010-03-21.
17078         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
17079         Reported by Simon Josefsson.
17080
17081 2010-04-15  Eric Blake  <eblake@redhat.com>
17082
17083         test-forkpty: fix expected signature
17084         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
17085         Reported by Simon Josefsson.
17086
17087 2010-04-15  Jim Meyering  <meyering@redhat.com>
17088
17089         maint.mk: texinfo_suffix_re_: correct the default regexp
17090         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
17091
17092         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
17093         make it configurable via texinfo_suffix_re_.
17094
17095 2010-04-14  Eric Blake  <eblake@redhat.com>
17096
17097         strtok_r: relax license to LGPLv2+
17098         * modules/strtok_r (License): Relax license.
17099         Reported by Matthias Bolte.
17100
17101 2010-04-14  Simon Josefsson  <simon@josefsson.org>
17102
17103         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
17104         version 1.4.4 by default instead of requiring the libgcrypt
17105         version used during build.  This makes it possible to use the
17106         application with older but still binary compatible libgcrypt
17107         versions.
17108
17109 2010-04-13  Eric Blake  <eblake@redhat.com>
17110
17111         getopt-gnu: match recent glibc fixes and posix ruling
17112         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
17113         '+' handling, when requesting extensions.
17114         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
17115         'W;' handling.
17116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
17117         * doc/posix-functions/getopt.texi (getopt): Document this.
17118         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17119         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17120         Likewise.
17121
17122         getopt: merge bug fixes from glibc
17123         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
17124         diagnostics.  Honor '+:' correctly.  Reject ';'.
17125
17126         getopt-posix: detect MacOS bug
17127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
17128         optind when missing a required argument.
17129         * doc/posix-functions/getopt.texi (getopt): Document the bug.
17130         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17131         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17132         Likewise.
17133
17134         getopt-posix: avoid spurious failure on Solaris
17135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
17136         an indicator that setting optind=1 is sufficient for reset.
17137
17138         getopt-posix: avoid spurious failure on FreeBSD
17139         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17140         in POSIX mode, since the m4 test uses it.
17141
17142         gnulib-tool: silence warning on BSD sh
17143         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
17144
17145 2010-04-13  Jim Meyering  <meyering@redhat.com>
17146
17147         doc: users.txt: GNU patch now uses gnulib
17148         * users.txt: Add patch.
17149
17150 2010-04-12  Jim Meyering  <meyering@redhat.com>
17151
17152         maint.mk: generate more concise timing data for syntax-check rules
17153         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
17154         " done" from each line that reports a syntax-check test duration.
17155
17156 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
17157
17158         git-version-gen: use "git update-index..." rather than "git status"
17159         * build-aux/git-version-gen: Use git update-index --refresh, not
17160         "git status".  With some versions of git, "git status" would fail
17161         to update the index and result in an unwarranted "-dirty" suffix.
17162
17163 2010-04-11  Jim Meyering  <meyering@redhat.com>
17164
17165         openat: correct formatting (no semantic change)
17166         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
17167         Suggested by Bruno Haible.
17168
17169 2010-04-11  Bruno Haible  <bruno@clisp.org>
17170
17171         Stricter declaration checking in testdirs.
17172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17173         If for_tests is true, augment AM_CPPFLAGS to define
17174         GNULIB_STRICT_CHECKING.
17175         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
17176         GNULIB_STRICT_CHECKING is defined, verify that the function is
17177         declared.
17178
17179 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
17180             Bruno Haible  <bruno@clisp.org>
17181
17182         libunistring: Improve configure output.
17183         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
17184         Don't say "consider installing GNU libunistring" when checking again
17185         with libiconv.
17186
17187 2010-04-11  Bruno Haible  <bruno@clisp.org>
17188
17189         libunistring: Correct value of $LTLIBUNISTRING.
17190         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
17191         correct the value of $LTLIBUNISTRING.
17192
17193 2010-04-11  Bruno Haible  <bruno@clisp.org>
17194
17195         havelib: Add static libraries to LIBS in the right order.
17196         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
17197         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
17198
17199 2010-04-11  Bruno Haible  <bruno@clisp.org>
17200
17201         libunistring: Detect libunistring also when it depends on libiconv.
17202         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
17203         the second AC_LIB_HAVE_LINKFLAGS invocation.
17204
17205 2010-04-11  James Youngman  <jay@gnu.org>
17206
17207         close-stream: declare local scalars to be "const"
17208         * lib/close-stream.c (close_stream): Make boolean variables const
17209         to document the fact that we set but do not change them.
17210
17211 2010-04-11  Bruno Haible  <bruno@clisp.org>
17212
17213         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
17214
17215 2010-04-11  Jim Meyering  <meyering@redhat.com>
17216
17217         maint.mk: don't include dist-check.mk
17218         * top/maint.mk: Remove bogus include directive.
17219
17220         maint.mk: improve empty-line-at-EOF check
17221         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
17222         solution, rather than tail+Perl-based one.  The latter would read
17223         a few kilobytes from the end of each file, and did not handle empty
17224         files properly.
17225
17226         maint.mk: print the elapsed time for each syntax-check rule
17227         * top/maint.mk (sc_m_rules_): Save start time in a file.
17228         (sc_z_rules_): New rules: remove temp file and print elapsed time.
17229         (local-check): Interpose the .z rules
17230
17231 2010-04-11  Jim Meyering  <meyering@redhat.com>
17232
17233         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
17234         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
17235         empty file with one that ends in an empty line.
17236
17237 2010-04-10  Bruno Haible  <bruno@clisp.org>
17238
17239         mkdir: Make it work on mingw64.
17240         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
17241         * lib/mkdir.c: Update comment.
17242         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
17243
17244 2010-04-10  Bruno Haible  <bruno@clisp.org>
17245
17246         Don't override improved macro from newer autoconf.
17247         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
17248         autoconf >= 2.62.
17249         Reported by Joel E. Denny <jdenny@clemson.edu>.
17250
17251 2010-04-10  Jim Meyering  <meyering@redhat.com>
17252
17253         maint.mk: new syntax-check rule: prohibit empty lines at end of file
17254         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
17255
17256         maint.mk: correct a diagnostic
17257         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
17258         in diagnostic; now use $prohibit.
17259
17260 2010-04-10  Bruno Haible  <address@hidden>
17261
17262         fchownat: Fix a C++ test error on Solaris 8.
17263         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
17264         the function does not exist.
17265
17266 2010-04-10  Bruno Haible  <bruno@clisp.org>
17267
17268         vasnprintf: Add more tests.
17269         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17270         (test_function): Test converting an invalid wide string.
17271
17272         vasnprintf: Correct handling of unconvertible wide string arguments.
17273         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
17274         VASNPRINTF.
17275         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
17276         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
17277         smaller than the expected maximum need for the directive. Set errno to
17278         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
17279         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
17280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
17281         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
17282         * modules/vasnprintf (Files): Add m4/printf.m4.
17283         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17284
17285 2010-04-10  Bruno Haible  <bruno@clisp.org>
17286
17287         vasnprintf: Fix crash in %ls directive.
17288         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
17289         string is passed as argument to %ls, with no precision and no width.
17290         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17291
17292 2010-04-10  Bruno Haible  <bruno@clisp.org>
17293
17294         vasnprintf: Fix multiple test failures on mingw.
17295         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
17296         _snprintf, or snwprintf, not _snwprintf.
17297
17298 2010-04-10  Bruno Haible  <bruno@clisp.org>
17299
17300         write: Fix a C++ test error on mingw.
17301         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
17302
17303 2010-04-10  Bruno Haible  <bruno@clisp.org>
17304
17305         vasnprintf test: Reduce code duplication.
17306         * tests/test-vasnprintf.c (test_function): New function, extracted from
17307         test_vasnprintf.
17308         (test_vasnprintf, test_asnprintf): Invoke it.
17309
17310 2010-04-10  Bruno Haible  <bruno@clisp.org>
17311
17312         strnlen: Fix warning in C++ mode on MacOS X.
17313         * lib/string.in.h (strnlen): Use the modern idiom.
17314         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
17315         defining strnlen as a macro already in <config.h>.
17316         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17317         REPLACE_STRNLEN.
17318         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
17319         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17320
17321 2010-04-08  James Youngman  <jay@gnu.org>
17322
17323         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
17324         the example.
17325
17326 2010-04-09  Jim Meyering  <meyering@redhat.com>
17327
17328         maint.mk: print better diagnostic when there is no $(_hv_file)
17329         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
17330         announce that when $(_hv_file) (aka help-version) does not exist.
17331
17332         init.sh: run tr in the "C" locale to avoid multibyte interpretation
17333         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
17334         not try to interpret its random input bytes.  Jarno Rajahalme reported
17335         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
17336         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
17337         (mktempd_): Likewise, just in case.
17338
17339         ftruncate: add two years to projected module removal date: 2012
17340         * m4/ftruncate.m4: Adjust comments.
17341
17342         ftruncate: mark module as obsolete; even MinGW provides it, now
17343         * modules/ftruncate (Status): Obsolete.
17344         (Notice): Say that.
17345         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
17346         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
17347
17348 2010-04-08  Bruno Haible  <bruno@clisp.org>
17349
17350         Fix side effects from tests-related modules.
17351         * modules/dprintf-posix (Comment): New section.
17352         * modules/fprintf-posix (Comment): Likewise.
17353         * modules/obstack-printf-posix (Comment): Likewise.
17354         * modules/printf-posix (Comment): Likewise.
17355         * modules/snprintf-posix (Comment): Likewise.
17356         * modules/sprintf-posix (Comment): Likewise.
17357         * modules/vasnprintf-posix (Comment): Likewise.
17358         * modules/vasprintf-posix (Comment): Likewise.
17359         * modules/vdprintf-posix (Comment): Likewise.
17360         * modules/vfprintf-posix (Comment): Likewise.
17361         * modules/vprintf-posix (Comment): Likewise.
17362         * modules/vsnprintf-posix (Comment): Likewise.
17363         * modules/vsprintf-posix (Comment): Likewise.
17364         * modules/xprintf-posix (Comment): Likewise.
17365         * modules/xvasprintf-posix (Comment): Likewise.
17366         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
17367         * modules/floorf-tests (Depends-on): Likewise.
17368         * modules/round-tests (Depends-on): Likewise.
17369         * modules/roundf-tests (Depends-on): Likewise.
17370         * modules/trunc-tests (Depends-on): Likewise.
17371         * modules/truncf-tests (Depends-on): Likewise.
17372         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
17373         'fprintf-posix' module is not present.
17374         * tests/test-floorf2.c (check): Likewise.
17375         * tests/test-trunc2.c (check): Likewise.
17376         * tests/test-truncf2.c (check): Likewise.
17377         * tests/test-round2.c (equal): Likewise.
17378         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17379
17380 2010-04-07  Karl Berry  <karl@gnu.org>
17381
17382         * config/srclist.txt,
17383         * config/srclistvars.sh,
17384         * config/srclist-update: doc fixes.
17385
17386 2010-04-07  Jim Meyering  <meyering@redhat.com>
17387
17388         maint.mk: add a PATH crosschecking syntax-check rule
17389         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
17390         Useful if you use a test like the one in help-version (coreutils,
17391         diffutils, grep, gzip) that ensures $(VERSION) matches what is
17392         printed by prog --version.
17393
17394 2010-04-06  Bruno Haible  <bruno@clisp.org>
17395
17396         Fix link error on mingw.
17397         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
17398         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
17399
17400 2010-04-06  Bruno Haible  <bruno@clisp.org>
17401
17402         Assume rmdir exists.
17403         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17404
17405 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17406
17407         doc: update users.txt
17408         * users.txt: Add gcal.
17409
17410 2010-04-06  Jim Meyering  <meyering@redhat.com>
17411
17412         init.sh: simply unset TMPDIR rather than risking env -i
17413         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17414         although it probably works fine on all Unix-based systems, some
17415         systems (Cygwin?) cannot tolerate a totally cleared environment.
17416         Suggestion from Eric Blake.
17417
17418 2010-04-06  Jim Meyering  <meyering@redhat.com>
17419
17420         init.sh: portability fix: use env's POSIX-specified -i option not -u
17421         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17422         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17423
17424 2010-04-05  Bruno Haible  <bruno@clisp.org>
17425
17426         btowc: Work around Cygwin 1.7.2 bug.
17427         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17428         does not map NUL to 0.
17429         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17430
17431 2010-04-05  Bruno Haible  <bruno@clisp.org>
17432
17433         Make the multithread modules work on Cygwin 1.7.2.
17434         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17435         imported symbols can be declared weak, so that it returns "no" on
17436         Cygwin 1.7.2.
17437
17438 2010-04-05  Bruno Haible  <bruno@clisp.org>
17439
17440         Use the module 'strncat'.
17441         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17442
17443         Tests for module 'strncat'.
17444         * modules/strncat-tests: New file.
17445         * tests/test-strncat.c: New file.
17446
17447         New module 'strncat'.
17448         * lib/string.in.h (strncat): New declaration.
17449         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17450         * m4/strncat.m4: New file, based on m4/memchr.m4.
17451         * modules/strncat: New file.
17452         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17453         is declared.
17454         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17455         REPLACE_STRNCAT.
17456         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17457         REPLACE_STRNCAT.
17458         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17459         module.
17460         * tests/test-string-c++.cc: Check signature of strncat.
17461
17462 2010-04-05  Jim Meyering  <meyering@redhat.com>
17463
17464         xstrtoumax-tests: convert to use init.sh
17465         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17466         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17467         Use Exit, not exit.
17468         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17469
17470         xstrtoimax-tests: convert to use init.sh
17471         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17472         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17473         Use Exit, not exit.
17474         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17475
17476 2010-04-05  Bruno Haible  <bruno@clisp.org>
17477
17478         sys_socket: Avoid #define replacements in C++ mode.
17479         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17480         warning to the function if possible, rather than #defining the symbol
17481         to a dysfunctional alias.
17482
17483 2010-04-05  Bruno Haible  <bruno@clisp.org>
17484
17485         fseeko: Fix C++ test error on mingw.
17486         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17487         gl_FUNC_FSEEKO.
17488         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17489         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17490         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17491         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17492
17493 2010-04-05  Bruno Haible  <bruno@clisp.org>
17494
17495         duplocale: Improve test output.
17496         * tests/test-duplocale.c (main): Print reason for skipped test.
17497
17498 2010-04-05  Bruno Haible  <bruno@clisp.org>
17499
17500         Assume rmdir exists.
17501         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17502         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17503
17504 2010-04-05  Bruno Haible  <bruno@clisp.org>
17505
17506         Fix link error on Solaris 8 with cc.
17507         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17508
17509 2010-04-05  Bruno Haible  <bruno@clisp.org>
17510
17511         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17512         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17513
17514 2010-04-05  Bruno Haible  <bruno@clisp.org>
17515
17516         vasprintf: Update documentation.
17517         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17518
17519 2010-04-05  Bruno Haible  <bruno@clisp.org>
17520
17521         ptsname: Improve test.
17522         * tests/test-ptsname.c (main): Also try the various master names of BSD
17523         systems.
17524
17525 2010-04-05  Bruno Haible  <bruno@clisp.org>
17526
17527         memchr: Avoid a possible C++ test error.
17528         * lib/string.in.h (memchr): Provide declaration if function is missing.
17529         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17530         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17532         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17533
17534 2010-04-05  Bruno Haible  <bruno@clisp.org>
17535
17536         strtok_r: Improve idiom.
17537         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17538         AC_LIBOBJ is used.
17539
17540 2010-04-05  Bruno Haible  <bruno@clisp.org>
17541
17542         strdup: Improve idiom.
17543         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17544         AC_LIBOBJ is used.
17545         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17546         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17547         when AC_LIBOBJ is used.
17548
17549 2010-04-05  Bruno Haible  <bruno@clisp.org>
17550
17551         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17552         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17553         don't set REPLACE_MBSINIT to 1.
17554         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17555         don't set REPLACE_MBRTOWC to 1.
17556         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17557         exist, don't set REPLACE_MBSRTOWCS to 1.
17558         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17559         exist, don't set REPLACE_MBSNRTOWCS to 1.
17560         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17561         don't set REPLACE_WCRTOMB to 1.
17562         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17563         exist, don't set REPLACE_WCSRTOMBS to 1.
17564         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17565         exist, don't set REPLACE_WCSNRTOMBS to 1.
17566
17567 2010-04-05  Bruno Haible  <bruno@clisp.org>
17568
17569         ldexpl: Improve idiom.
17570         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17571         make sure to set HAVE_DECL_LDEXPL to 0.
17572
17573 2010-04-05  Jim Meyering  <meyering@redhat.com>
17574
17575         xstrtol-tests: convert to use init.sh
17576         * modules/xstrtol-tests (Files): Add tests/init.sh.
17577         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17578         Use Exit, not exit.
17579         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17580
17581         atexit-tests: convert to use init.sh
17582         * modules/atexit-tests (Files): Add tests/init.sh.
17583         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17584         Use Exit, not exit.
17585         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17586
17587         init.sh: fix typo
17588         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17589
17590         init.sh: make it easier for a test script to write to the tty, ...
17591         when using automake's parallel-tests mode.
17592         * tests/init.sh (stderr_fileno_): Define overridable variable.
17593         (warn_): New function, to use it.
17594         (fail_, skip_, framework_failure_): Use warn_.
17595
17596 2010-04-04  Bruno Haible  <bruno@clisp.org>
17597
17598         btowc: Avoid warning.
17599         * lib/btowc.c: Include <stdlib.h>.
17600         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17601
17602 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17603             Bruno Haible  <bruno@clisp.org>
17604
17605         wchar: Port to NetBSD 1.5.
17606         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17607         * lib/wctype.in.h (WEOF): Likewise.
17608
17609 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17610             Bruno Haible  <bruno@clisp.org>
17611
17612         Port extended stdio to NetBSD 1.5.
17613         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17614         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17615         older.
17616
17617 2010-04-04  Bruno Haible  <bruno@clisp.org>
17618
17619         string: Remove unused substitution.
17620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17621         HAVE_DECL_STRERROR.
17622         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17623
17624 2010-04-04  Bruno Haible  <bruno@clisp.org>
17625
17626         strtod: Avoid a possible C++ test error.
17627         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17628         set REPLACE_STRTOD.
17629
17630 2010-04-04  Bruno Haible  <bruno@clisp.org>
17631
17632         strerror: Update documentation.
17633         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17634
17635 2010-04-04  Bruno Haible  <bruno@clisp.org>
17636
17637         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17638         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17639         _GL_CXXALIAS_SYS_CAST.
17640
17641 2010-04-04  Bruno Haible  <bruno@clisp.org>
17642
17643         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17644         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17645         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17646         REPLACE_FREXPL to 1.
17647         * doc/posix-functions/frexpl.texi: Update documentation.
17648
17649 2010-04-04  Bruno Haible  <bruno@clisp.org>
17650
17651         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17652         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17653
17654 2010-04-04  Bruno Haible  <bruno@clisp.org>
17655
17656         Implement nanosleep for native Windows.
17657         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17658
17659 2010-04-04  Bruno Haible  <bruno@clisp.org>
17660
17661         math: Fix some C++ test errors on Solaris 8.
17662         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17663
17664 2010-04-04  Bruno Haible  <bruno@clisp.org>
17665
17666         math: Fix some C++ test errors on Cygwin.
17667         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17668         truncl): Provide declaration if the system does not have it.
17669         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17670         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17671         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17672         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17673         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17674         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17675         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17676         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17677         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17678         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17679         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17680         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17681         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17682         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17683         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17684         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17686         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17687         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17688         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17689         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17690         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17691
17692 2010-04-04  Bruno Haible  <bruno@clisp.org>
17693
17694         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17695         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17696         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17697         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17698         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17699         * m4/isinf.m4 (gl_ISINF): Likewise.
17700         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17701
17702 2010-04-04  Bruno Haible  <bruno@clisp.org>
17703
17704         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17705         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17706
17707 2010-04-04  Bruno Haible  <bruno@clisp.org>
17708
17709         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17710         * modules/tmpfile (configure.ac): Update.
17711
17712         tmpfile: Fix C++ test error on mingw.
17713         * lib/stdio.in.h (tmpfile): New declaration.
17714         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17715         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17716         * modules/tmpfile (Depends-on): Add stdio.
17717         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17718         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17719         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17720         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17721         REPLACE_TMPFILE.
17722         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17723
17724 2010-04-04  Bruno Haible  <bruno@clisp.org>
17725
17726         ioctl: Fix C++ test error on mingw.
17727         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17728         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17729         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17730
17731 2010-04-03  Bruno Haible  <bruno@clisp.org>
17732
17733         wcwidth: Fix C++ test error on mingw.
17734         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17736         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17737
17738 2010-04-03  Bruno Haible  <bruno@clisp.org>
17739
17740         nanosleep: Fix C++ test error on mingw.
17741         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17742         * lib/time.in.h (nanosleep): Use modern idiom.
17743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17744         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17745         REPLACE_NANOSLEEP to 1.
17746         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17747         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17748
17749 2010-04-03  Bruno Haible  <bruno@clisp.org>
17750
17751         strptime: Fix C++ test error on mingw.
17752         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17753         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17754         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17755         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17756         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17757         not REPLACE_STRPTIME.
17758         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17759         REPLACE_STRPTIME.
17760
17761 2010-04-03  Bruno Haible  <bruno@clisp.org>
17762
17763         timegm: Fix C++ test error on mingw.
17764         * lib/time.in.h (timegm): Use modern idiom.
17765         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17766         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17767         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17768         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17769
17770 2010-04-03  Bruno Haible  <bruno@clisp.org>
17771
17772         timegm: Assume declaration if function exists.
17773         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17774         if it exists. Don't clobber ac_cv_func_timegm.
17775
17776 2010-04-03  Bruno Haible  <bruno@clisp.org>
17777
17778         time_r: Fix C++ test error on mingw.
17779         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17780         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17781         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17782         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17783         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17784
17785 2010-04-03  Bruno Haible  <bruno@clisp.org>
17786
17787         time_r: Minor updates.
17788         * modules/time_r (Description): Mention the provided functions.
17789         * lib/time_r.c: Don't include <string.h>.
17790         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17791         * doc/posix-functions/localtime_r.texi: Likewise.
17792
17793 2010-04-03  Bruno Haible  <bruno@clisp.org>
17794
17795         time: Fix regression introduced on 2010-03-08.
17796         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17797         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17798
17799 2010-04-03  Jim Meyering  <meyering@redhat.com>
17800
17801         maint.mk: don't silently disable project-specific syntax-check rules
17802         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17803         that they need to convert their project-specific syntax-check rules
17804         to use the new _sc_search_regexp.
17805
17806 2010-04-03  Bruno Haible  <bruno@clisp.org>
17807
17808         fchdir: Fix regression introduced on 2010-03-08.
17809         * lib/unistd.in.h (fchdir): Fix declaration.
17810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17812         REPLACE_FCHDIR.
17813         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17814         REPLACE_FCHDIR.
17815
17816 2010-04-03  Bruno Haible  <bruno@clisp.org>
17817
17818         getpagesize: Fix C++ test error on mingw.
17819         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17820         system does not declare the function.
17821         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17822         declared.
17823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17824         HAVE_DECL_GETPAGESIZE.
17825         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17826
17827 2010-04-03  Bruno Haible  <bruno@clisp.org>
17828
17829         stdio: Make C++ tests work on mingw.
17830         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17831         does not declare the function.
17832
17833 2010-04-03  Bruno Haible  <bruno@clisp.org>
17834
17835         ftello: Fix C++ test error on mingw.
17836         * lib/stdio.in.h (ftello): Use modern idiom.
17837         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17838         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17839         is missing and that it needs to be replaced.
17840         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17842         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17843
17844 2010-04-03  Bruno Haible  <bruno@clisp.org>
17845
17846         fseeko: Fix C++ test error on mingw.
17847         * lib/stdio.in.h (fseeko): Use modern idiom.
17848         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17849         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17850         is missing and that it needs to be replaced.
17851         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17853         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17854
17855 2010-04-03  Bruno Haible  <bruno@clisp.org>
17856
17857         mkstemp: Fix C++ test error on mingw.
17858         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17859         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17860         function is missing and that it needs to be replaced.
17861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17862         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17863
17864 2010-04-03  Bruno Haible  <bruno@clisp.org>
17865
17866         stpncpy: Fix C++ test error on mingw.
17867         * lib/string.in.h (stpncpy): Use modern idiom.
17868         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17869         function is missing and that it needs to be replaced.
17870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17871         REPLACE_STPNCPY.
17872         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17873
17874 2010-04-03  Bruno Haible  <bruno@clisp.org>
17875
17876         sys_stat: Fix C++ test error on mingw.
17877         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17878         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17879
17880 2010-04-03  Bruno Haible  <bruno@clisp.org>
17881
17882         pty: Update doc.
17883         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17884
17885 2010-04-03  Bruno Haible  <bruno@clisp.org>
17886
17887         unistd: Fix C++ test error on mingw.
17888         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17889
17890 2010-04-03  Bruno Haible  <bruno@clisp.org>
17891
17892         Update doc regarding mingw.
17893         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17894         * doc/glibc-functions/login_tty.texi: Likewise.
17895         * doc/glibc-functions/forkpty.texi: Likewise.
17896
17897 2010-04-03  Bruno Haible  <bruno@clisp.org>
17898
17899         stdlib: Avoid compilation failure of c-strtold on mingw.
17900         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17901
17902 2010-04-03  Bruno Haible  <bruno@clisp.org>
17903
17904         locale: Make C++ tests work on Cygwin and mingw.
17905         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17906         cannot provide the function.
17907         Reported by Simon Josefsson.
17908
17909 2010-04-03  Bruno Haible  <bruno@clisp.org>
17910
17911         localename: Port to MacOS X 10.6.
17912         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17913         memory layout of the locales in MacOS X 10.6 as well.
17914         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17915
17916 2010-04-02  Bruno Haible  <bruno@clisp.org>
17917
17918         gnulib-tool: Ensure that long-running tests are executed last.
17919         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17920         running tests after the one for the other tests.
17921
17922 2010-04-02  Bruno Haible  <bruno@clisp.org>
17923
17924         gnulib-tool: Ensure the tests in the main directory are executed first.
17925         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17926         start with the current directory.
17927
17928 2010-04-02  Bruno Haible  <bruno@clisp.org>
17929
17930         Tests for module 'havelib', moved here from GNU gettext.
17931         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17932         modifications.
17933         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17934         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17935         with modifications.
17936         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17937         modifications.
17938         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17939         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17940         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17941         with modifications.
17942         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17943         with modifications.
17944         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17945         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17946         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17947         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17948         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17949         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17950         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17951         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17952         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17953         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17954         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17955         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17956         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17957         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17958         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17959         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17960         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17961         with modifications.
17962         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17963         with modifications.
17964         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17965         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17966         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17967         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17968         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17969         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17970         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17971         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17972         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17973         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17974         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17975         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17976         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17977         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17978         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17979         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17980         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17981         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17982         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17983         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17984         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17985         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17986         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17987         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17988         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17989         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17990         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17991         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17992         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17993         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17994         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17995         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17996         * tests/havelib/rpathx/rpathx.c: New file, from
17997         gettext/autoconf-lib-link.
17998         * tests/havelib/rpathx/Makefile.am: New file, from
17999         gettext/autoconf-lib-link.
18000         * tests/havelib/rpathx/configure.ac: New file, from
18001         gettext/autoconf-lib-link with modifications.
18002         * tests/havelib/rpathy/rpathy.c: New file, from
18003         gettext/autoconf-lib-link.
18004         * tests/havelib/rpathy/Makefile.am: New file, from
18005         gettext/autoconf-lib-link.
18006         * tests/havelib/rpathy/configure.ac: New file, from
18007         gettext/autoconf-lib-link with modifications.
18008         * tests/havelib/rpathz/rpathz.c: New file, from
18009         gettext/autoconf-lib-link.
18010         * tests/havelib/rpathz/Makefile.am: New file, from
18011         gettext/autoconf-lib-link.
18012         * tests/havelib/rpathz/configure.ac: New file, from
18013         gettext/autoconf-lib-link with modifications.
18014         * tests/havelib/rpathlx/usex.c: New file, from
18015         gettext/autoconf-lib-link.
18016         * tests/havelib/rpathlx/Makefile.am: New file, from
18017         gettext/autoconf-lib-link.
18018         * tests/havelib/rpathlx/configure.ac: New file, from
18019         gettext/autoconf-lib-link with modifications.
18020         * tests/havelib/rpathly/usey.c: New file, from
18021         gettext/autoconf-lib-link.
18022         * tests/havelib/rpathly/Makefile.am: New file, from
18023         gettext/autoconf-lib-link.
18024         * tests/havelib/rpathly/configure.ac: New file, from
18025         gettext/autoconf-lib-link with modifications.
18026         * tests/havelib/rpathlz/usez.c: New file, from
18027         gettext/autoconf-lib-link.
18028         * tests/havelib/rpathlz/Makefile.am: New file, from
18029         gettext/autoconf-lib-link.
18030         * tests/havelib/rpathlz/configure.ac: New file, from
18031         gettext/autoconf-lib-link with modifications.
18032         * tests/havelib/rpathlyx/usey.c: New file, from
18033         gettext/autoconf-lib-link.
18034         * tests/havelib/rpathlyx/Makefile.am: New file, from
18035         gettext/autoconf-lib-link.
18036         * tests/havelib/rpathlyx/configure.ac: New file, from
18037         gettext/autoconf-lib-link with modifications.
18038         * tests/havelib/rpathlzyx/usez.c: New file, from
18039         gettext/autoconf-lib-link.
18040         * tests/havelib/rpathlzyx/Makefile.am: New file, from
18041         gettext/autoconf-lib-link.
18042         * tests/havelib/rpathlzyx/configure.ac: New file, from
18043         gettext/autoconf-lib-link with modifications.
18044         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
18045         with modifications.
18046
18047 2010-04-02  Bruno Haible  <bruno@clisp.org>
18048
18049         gnulib-tool: Create distributed built sources also for the tests.
18050         * gnulib-tool (func_create_testdir): Also generate distributed built
18051         sources in the tests directory.
18052
18053 2010-04-02  Bruno Haible  <bruno@clisp.org>
18054
18055         gnulib-tool: Obey user's environment variables.
18056         * gnulib-tool (func_create_testdir): When creating built sources,
18057         respect the environment variables for autoconf, automake, etc. given by
18058         the user.
18059
18060 2010-04-02  Bruno Haible  <bruno@clisp.org>
18061
18062         gnulib-tool: Provide the value of --m4-base to modules.
18063         * gnulib-tool (func_import, func_create_testdir): Emit a definition
18064         of gl_m4_base.
18065
18066 2010-04-02  Eric Blake  <eblake@redhat.com>
18067
18068         maint.mk: fix some fallout
18069         * NEWS: Document the incompatible change, and its effect on cfg.mk.
18070         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
18071
18072 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18073
18074         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
18075         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
18076         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
18077         (sc_cast_of_x_alloc_return_value): Likewise.
18078         (sc_cast_of_alloca_return_value): Likewise.
18079         (sc_space_tab): Likewise.
18080         (sc_prohibit_atoi_atof): Likewise.
18081         (sc_prohibit_magic_number_exit): Likewise.
18082         (sc_error_exit_success): Likewise.
18083         (sc_file_system): Likewise.
18084         (sc_prohibit_have_config_h): Likewise.
18085         (sc_require_config_h): Likewise.
18086         (sc_prohibit_HAVE_MBRTOWC): Likewise.
18087         (sc_obsolete_symbols): Likewise.
18088         (sc_changelog): Likewise.
18089         (sc_program_name): Likewise.
18090         (sc_the_the): Likewise.
18091         (sc_trailing_blank): Likewise.
18092         (sc_two_space_separator_in_usage): Likewise.
18093         (sc_useless_cpp_parens): Likewise.
18094         (sc_GPL_version): Likewise.
18095         (sc_GFDL_version): Likewise.
18096         (sc_texinfo_acronym): Likewise.
18097         (sc_prohibit_cvs_keyword): Likewise.
18098         (sc_prohibit_stat_st_blocks): Likewise.
18099         (sc_prohibit_S_IS_definition): Likewise.
18100         (sc_redundant_const): Likewise.
18101         (sc_makefile_TAB_only_indentation): Likewise.
18102         (sc_m4_quote_check): Likewise.
18103         (sc_makefile_path_separator_check): Likewise.
18104         (sc_copyright_check): Likewise.
18105         (sc_Wundef_boolean): Likewise.
18106         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18107
18108         maint.mk: match 0 or more whitespace-before-function-call '('
18109         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
18110         that have zero or two-and-more spaces between the function name
18111         and the open parenthesis.
18112         (sc_error_message_warn_fatal): Likewise.
18113         (sc_error_message_uppercase): Likewise.
18114         (sc_error_message_period): Likewise.
18115
18116 2010-03-31  Eric Blake  <eblake@redhat.com>
18117
18118         maint.mk: check for [ as well as test
18119         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
18120         Based on a libvirt report by Matthias Bolte.
18121
18122         gnumakefile: don't squelch _version output
18123         * top/GNUmakefile (_version): Create one-shot dependency rather
18124         than using $(shell) when version must be regenerated.
18125         (_autoreconf): Run verbosely, by default.
18126
18127         sys_time: avoid compiler warnings
18128         * lib/sys_time.in.h (includes): Ensure gcc pragma is
18129         unconditional, fixing regression from 2010-03-29.
18130         Reported by Simon Josefsson.
18131
18132 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18133
18134         maint.mk: s/_header_without_use/_sc_header_without_use/
18135         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
18136         (sc_prohibit_assert_without_use): Use the new name.
18137         (sc_prohibit_close_stream_without_use): Likewise.
18138         (sc_prohibit_getopt_without_use): Likewise.
18139         (sc_prohibit_quotearg_without_use): Likewise.
18140         (sc_prohibit_quote_without_use): Likewise.
18141         (sc_prohibit_long_options_without_use): Likewise.
18142         (sc_prohibit_inttostr_without_use): Likewise.
18143         (sc_prohibit_ignore_value_without_use): Likewise.
18144         (sc_prohibit_error_without_use): Likewise.
18145         (sc_prohibit_xalloc_without_use): Likewise.
18146         (sc_prohibit_hash_without_use): Likewise.
18147         (sc_prohibit_hash_pjw_without_use): Likewise.
18148         (sc_prohibit_safe_read_without_use): Likewise.
18149         (sc_prohibit_argmatch_without_use): Likewise.
18150         (sc_prohibit_canonicalize_without_use): Likewise.
18151         (sc_prohibit_root_dev_ino_without_use): Likewise.
18152         (sc_prohibit_openat_without_use): Likewise.
18153         (sc_prohibit_c_ctype_without_use): Likewise.
18154         (sc_prohibit_signal_without_use): Likewise.
18155         (sc_prohibit_intprops_without_use): Likewise.
18156
18157 2010-03-30  Eric Blake  <eblake@redhat.com>
18158
18159         maint: improve module indicators
18160         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
18161         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
18162         columns, and avoid extra macro expansion.
18163
18164         fdopendir: work around FreeBSD bug
18165         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18166         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
18167         * modules/dirent (Makefile.am): Substitute it.
18168         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
18169         declaration.
18170         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
18171         fix.
18172         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18173
18174 2010-03-29  Bruno Haible  <bruno@clisp.org>
18175
18176         Emit #pragma system_header after the inclusion guard, not before.
18177         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
18178         guard that spans the entire file, not before. This enables an
18179         optimization in GCC's preprocessor.
18180         * lib/ctype.in.h: Likewise.
18181         * lib/dirent.in.h: Likewise.
18182         * lib/errno.in.h: Likewise.
18183         * lib/float.in.h: Likewise.
18184         * lib/getopt.in.h: Likewise.
18185         * lib/iconv.in.h: Likewise.
18186         * lib/langinfo.in.h: Likewise.
18187         * lib/locale.in.h: Likewise.
18188         * lib/math.in.h: Likewise.
18189         * lib/netdb.in.h: Likewise.
18190         * lib/netinet_in.in.h: Likewise.
18191         * lib/pty.in.h: Likewise.
18192         * lib/sched.in.h: Likewise.
18193         * lib/se-selinux.in.h: Likewise.
18194         * lib/search.in.h: Likewise.
18195         * lib/spawn.in.h: Likewise.
18196         * lib/stdarg.in.h: Likewise.
18197         * lib/stdint.in.h: Likewise.
18198         * lib/string.in.h: Likewise.
18199         * lib/strings.in.h: Likewise.
18200         * lib/sys_file.in.h: Likewise.
18201         * lib/sys_ioctl.in.h: Likewise.
18202         * lib/sys_time.in.h: Likewise.
18203         * lib/sys_times.in.h: Likewise.
18204         * lib/sys_utsname.in.h: Likewise.
18205         * lib/sys_wait.in.h: Likewise.
18206         * lib/sysexits.in.h: Likewise.
18207         * lib/wctype.in.h: Likewise.
18208
18209 2010-03-28  James Youngman  <jay@gnu.org>
18210
18211         save-cwd: don't leak a file descriptor when the caller execs.
18212         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
18213         saved file descriptor.
18214         * modules/save-cwd (Depends-on): Depend on cloexec.
18215
18216 2010-03-29  Bruno Haible  <bruno@clisp.org>
18217
18218         Remove vestiges of fts-lgpl module.
18219         * lib/fts_.h: Assume GNULIB_FTS is 1.
18220         * lib/fts.c: Likewise.
18221         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18222
18223 2010-03-28  Bruno Haible  <bruno@clisp.org>
18224
18225         Fix definition of tests witness macro.
18226         * gnulib-tool (func_import): Fix definition of witness macro.
18227
18228 2010-03-28  Bruno Haible  <bruno@clisp.org>
18229
18230         Fix ioctl's protoype on glibc systems.
18231         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
18232         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18233         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
18234         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
18235         signature. If not, arrange to replace the ioctl function.
18236         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18237         REPLACE_IOCTL.
18238         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
18239         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
18240         Reported by Ludovic Courtès <ludo@gnu.org>.
18241
18242 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
18243
18244         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18245         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
18246         made it so grep -r --include=GLOB* ... did not work.
18247
18248 2010-03-26  Jim Meyering  <meyering@redhat.com>
18249             Eric Blake  <eblake@redhat.com>
18250
18251         maint.mk: prohibit use of test's -o and -a operators
18252         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
18253
18254 2010-03-28  Bruno Haible  <bruno@clisp.org>
18255
18256         Remove unused GNULIB_XYZ macro definitions.
18257         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
18258         invocation.
18259
18260 2010-03-28  Bruno Haible  <bruno@clisp.org>
18261
18262         Mark privileged tests modules.
18263         * modules/idpriv-drop-tests (Status): New section.
18264         * modules/idpriv-droptemp-tests (Status): New section.
18265
18266 2010-03-28  Bruno Haible  <bruno@clisp.org>
18267
18268         Split C++ tests into separate tests modules.
18269         * modules/dirent-c++-tests: New file, extracted from
18270         modules/dirent-tests.
18271         * modules/dirent-tests: Depend on it.
18272         * modules/fcntl-h-c++-tests: New file, extracted from
18273         modules/fcntl-h-tests.
18274         * modules/fcntl-h-tests: Depend on it.
18275         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
18276         * modules/glob-tests: Depend on it.
18277         * modules/iconv-h-c++-tests: New file, extracted from
18278         modules/iconv-h-tests.
18279         * modules/iconv-h-tests: Depend on it.
18280         * modules/langinfo-c++-tests: New file, extracted from
18281         modules/langinfo-tests.
18282         * modules/langinfo-tests: Depend on it.
18283         * modules/locale-c++-tests: New file, extracted from
18284         modules/locale-tests.
18285         * modules/locale-tests: Depend on it.
18286         * modules/math-c++-tests: New file, extracted from modules/math-tests.
18287         * modules/math-tests: Depend on it.
18288         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
18289         * modules/pty-tests: Depend on it.
18290         * modules/search-c++-tests: New file, extracted from
18291         modules/search-tests.
18292         * modules/search-tests: Depend on it.
18293         * modules/signal-c++-tests: New file, extracted from
18294         modules/signal-tests.
18295         * modules/signal-tests: Depend on it.
18296         * modules/spawn-c++-tests: New file, extracted from
18297         modules/spawn-tests.
18298         * modules/spawn-tests: Depend on it.
18299         * modules/stdio-c++-tests: New file, extracted from
18300         modules/stdio-tests.
18301         * modules/stdio-tests: Depend on it.
18302         * modules/stdlib-c++-tests: New file, extracted from
18303         modules/stdlib-tests.
18304         * modules/stdlib-tests: Depend on it.
18305         * modules/string-c++-tests: New file, extracted from
18306         modules/string-tests.
18307         * modules/string-tests: Depend on it.
18308         * modules/sys_ioctl-c++-tests: New file, extracted from
18309         modules/sys_ioctl-tests.
18310         * modules/sys_ioctl-tests: Depend on it.
18311         * modules/sys_select-c++-tests: New file, extracted from
18312         modules/sys_select-tests.
18313         * modules/sys_select-tests: Depend on it.
18314         * modules/sys_socket-c++-tests: New file, extracted from
18315         modules/sys_socket-tests.
18316         * modules/sys_socket-tests: Depend on it.
18317         * modules/sys_stat-c++-tests: New file, extracted from
18318         modules/sys_stat-tests.
18319         * modules/sys_stat-tests: Depend on it.
18320         * modules/sys_time-c++-tests: New file, extracted from
18321         modules/sys_time-tests.
18322         * modules/sys_time-tests: Depend on it.
18323         * modules/time-c++-tests: New file, extracted from modules/time-tests.
18324         * modules/time-tests: Depend on it.
18325         * modules/unistd-c++-tests: New file, extracted from
18326         modules/unistd-tests.
18327         * modules/unistd-tests: Depend on it.
18328         * modules/wchar-c++-tests: New file, extracted from
18329         modules/wchar-tests.
18330         * modules/wchar-tests: Depend on it.
18331         * modules/wctype-c++-tests: New file, extracted from
18332         modules/wctype-tests.
18333         * modules/wctype-tests: Depend on it.
18334         Reported by Simon Josefsson.
18335
18336 2010-03-28  Bruno Haible  <bruno@clisp.org>
18337
18338         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
18339         * gnulib-tool (func_exists_module): New function, extracted from
18340         func_verify_module.
18341         (func_verify_module): Use it.
18342         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
18343         'foo' only if 'foo' exists.
18344         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
18345         module.
18346
18347 2010-03-28  Bruno Haible  <bruno@clisp.org>
18348
18349         gnulib-tool: Add support for special categories of tests.
18350         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
18351         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
18352         (func_usage): Document them.
18353         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
18354         inc_unportable_tests, inc_all_tests): New variables.
18355         (func_acceptable): Consider these variables.
18356         (func_modules_transitive_closure): Make it work when the 'Status' field
18357         consists of multiple words.
18358         (func_import): Store and restore the values of inc_cxx_tests,
18359         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
18360         inc_all_tests in gnulib-comp.m4.
18361         (func_create_testdir): Set inc_all_tests to true.
18362         * doc/gnulib.texi (Extra tests modules): New section.
18363         Suggested by Jim Meyering.
18364
18365 2010-03-28  Bruno Haible  <bruno@clisp.org>
18366
18367         ansi-c++-opt: Allow turning off the C++ build by default.
18368         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
18369         gl_CXX_CHOICE_DEFAULT_NO is defined.
18370         Requested by Eric Blake.
18371
18372 2010-03-28  Bruno Haible  <bruno@clisp.org>
18373
18374         unistd: Avoid #define replacements in C++ mode.
18375         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
18376         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
18377         setsockopt, shutdown, select): In C++, attach a warning to the function
18378         if possible, rather than #defining the symbol to a dysfunctional alias.
18379         Reported by John W. Eaton <jwe@gnu.org>.
18380
18381 2010-03-28  Bruno Haible  <bruno@clisp.org>
18382
18383         Fix link errors on mingw.
18384         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
18385         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
18386         $(LIBSOCKET).
18387         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
18388         $(LIBSOCKET).
18389
18390 2010-03-28  Bruno Haible  <bruno@clisp.org>
18391             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18392
18393         lib-ignore: Determine different options for different compilers.
18394         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
18395         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
18396         Add comments.
18397         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
18398         * NEWS: Mention the change.
18399
18400 2010-03-27  Bruno Haible  <bruno@clisp.org>
18401
18402         Remove unused GNULIB_XYZ macro definitions.
18403         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18404         * modules/fseek (configure.ac): Likewise.
18405         * modules/ioctl (configure.ac): Likewise.
18406         * modules/open (configure.ac): Likewise.
18407         * modules/stdlib-safer (configure.ac): Likewise.
18408
18409 2010-03-27  Bruno Haible  <bruno@clisp.org>
18410
18411         Add a remark about certain modules.
18412         * modules/malloc (Comment): New section.
18413         * modules/realloc (Comment): Likewise.
18414         * modules/sigpipe (Comment): Likewise.
18415
18416 2010-03-27  Bruno Haible  <bruno@clisp.org>
18417
18418         Resolve conflict between the two kinds of module indicators.
18419         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18420         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18421         * modules/canonicalize (configure.ac): Invoke
18422         gl_MODULE_INDICATOR_FOR_TESTS.
18423         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18424         GNULIB_XYZ.
18425         * tests/test-dirent-c++.cc: Likewise.
18426         * tests/test-dirent-safer.c: Likewise.
18427         * tests/test-dup2.c: Likewise.
18428         * tests/test-fchdir.c: Likewise.
18429         * tests/test-fcntl-h-c++.cc: Likewise.
18430         * tests/test-getopt.c: Likewise.
18431         * tests/test-getopt.h: Likewise.
18432         * tests/test-langinfo-c++.cc: Likewise.
18433         * tests/test-locale-c++.cc: Likewise.
18434         * tests/test-math-c++.cc: Likewise.
18435         * tests/test-pty-c++.cc: Likewise.
18436         * tests/test-search-c++.cc: Likewise.
18437         * tests/test-signal-c++.cc: Likewise.
18438         * tests/test-spawn-c++.cc: Likewise.
18439         * tests/test-stdio-c++.cc: Likewise.
18440         * tests/test-stdlib-c++.cc: Likewise.
18441         * tests/test-string-c++.cc: Likewise.
18442         * tests/test-sys_ioctl-c++.cc: Likewise.
18443         * tests/test-sys_select-c++.cc: Likewise.
18444         * tests/test-sys_socket-c++.cc: Likewise.
18445         * tests/test-sys_stat-c++.cc: Likewise.
18446         * tests/test-sys_time-c++.cc: Likewise.
18447         * tests/test-time-c++.cc: Likewise.
18448         * tests/test-unistd-c++.cc: Likewise.
18449         * tests/test-wchar-c++.cc: Likewise.
18450         * tests/uninorm/test-u8-nfc.c: Likewise.
18451         * tests/uninorm/test-u8-nfd.c: Likewise.
18452         * tests/uninorm/test-u8-nfkc.c: Likewise.
18453         * tests/uninorm/test-u8-nfkd.c: Likewise.
18454         * tests/uninorm/test-u16-nfc.c: Likewise.
18455         * tests/uninorm/test-u16-nfd.c: Likewise.
18456         * tests/uninorm/test-u16-nfkc.c: Likewise.
18457         * tests/uninorm/test-u16-nfkd.c: Likewise.
18458         * tests/uninorm/test-u32-nfc.c: Likewise.
18459         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18460         * tests/uninorm/test-u32-nfd.c: Likewise.
18461         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18462         * tests/uninorm/test-u32-nfkc.c: Likewise.
18463         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18464         * tests/uninorm/test-u32-nfkd.c: Likewise.
18465         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18466         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18467
18468 2010-03-27  Bruno Haible  <bruno@clisp.org>
18469
18470         Distinguish two kinds of module indicators.
18471         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18472         gl_MODULE_INDICATOR.
18473         (gl_MODULE_INDICATOR): New macro.
18474         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18475         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18476         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18477         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18478         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18479         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18480         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18481         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18482         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18483         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18484         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18485         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18487         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18488         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18489         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18490         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18491         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18492         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18493         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18494         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18495         * modules/cloexec (configure.ac): Likewise.
18496         * modules/getopt-gnu (configure.ac): Likewise.
18497         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18498         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18499         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18500         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18501
18502 2010-03-27  Bruno Haible  <bruno@clisp.org>
18503
18504         New module description field 'Comment'.
18505         * gnulib-tool: New option --extract-comment.
18506         (func_usage): Document it.
18507         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18508         (func_get_comment): New function.
18509         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18510
18511 2010-03-27  Bruno Haible  <bruno@clisp.org>
18512
18513         Addendum to 2010-02-07 commit.
18514         * gnulib-tool (func_usage): Document --extract-applicability option.
18515
18516 2010-03-27  Bruno Haible  <bruno@clisp.org>
18517
18518         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18519         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18520         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18521         rather than link errors.
18522
18523 2010-03-27  Bruno Haible  <bruno@clisp.org>
18524
18525         Avoid side effects from tests-related modules on the compilation of lib.
18526         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18527         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18528         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18529         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18530         macro.
18531         (func_import): Define a witness macro. Assign it a value that depends
18532         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18533         tests-related modules.
18534         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18535         Reported by Jim Meyering.
18536
18537 2010-03-27  Bruno Haible  <bruno@clisp.org>
18538
18539         Factorize common .m4 code.
18540         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18541         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18542         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18543         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18544         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18545         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18546         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18547         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18548         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18549         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18550         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18551         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18552         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18553         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18554         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18555         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18556         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18557         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18559         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18560         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18561         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18562         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18563         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18564         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18565         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18566         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18567         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18568         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18569         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18570         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18571         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18572
18573 2010-03-27  Bruno Haible  <bruno@clisp.org>
18574
18575         Fix a compilation error on Cygwin with g++ >= 4.3.
18576         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18577         if it is undefined or if we alias it to chmod.
18578         (lstat): Don't warn about the use of this function if it is undefined
18579         or if we alias it to stat.
18580         Reported by Simon Josefsson.
18581
18582 2010-03-27  Bruno Haible  <bruno@clisp.org>
18583
18584         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18585         * modules/getlogin (configure.ac): Update.
18586
18587         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18588         * modules/getlogin_r (configure.ac): Update.
18589
18590         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18591         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18592         * modules/inet_ntop (configure.ac): Update.
18593
18594         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18595         * modules/inet_pton (configure.ac): Update.
18596
18597         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18598         * modules/mbslen (configure.ac): Update.
18599
18600         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18601         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18602         * modules/forkpty (configure.ac): Update.
18603         * modules/openpty (configure.ac): Update.
18604
18605 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18606
18607         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18608         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18609
18610 2010-03-25  Eric Blake  <eblake@redhat.com>
18611
18612         maint: use pragma consistently across replacement headers
18613         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18614         * lib/dirent.in.h (system_header): Likewise.
18615         * lib/errno.in.h (system_header): Likewise.
18616         * lib/float.in.h (system_header): Likewise.
18617         * lib/getopt.in.h (system_header): Likewise.
18618         * lib/iconv.in.h (system_header): Likewise.
18619         * lib/inttypes.in.h (system_header): Likewise.
18620         * lib/langinfo.in.h (system_header): Likewise.
18621         * lib/locale.in.h (system_header): Likewise.
18622         * lib/math.in.h (system_header): Likewise.
18623         * lib/netdb.in.h (system_header): Likewise.
18624         * lib/netinet_in.in.h (system_header): Likewise.
18625         * lib/pty.in.h (system_header): Likewise.
18626         * lib/sched.in.h (system_header): Likewise.
18627         * lib/se-selinux.in.h (system_header): Likewise.
18628         * lib/search.in.h (system_header): Likewise.
18629         * lib/spawn.in.h (system_header): Likewise.
18630         * lib/stdarg.in.h (system_header): Likewise.
18631         * lib/stdint.in.h (system_header): Likewise.
18632         * lib/string.in.h (system_header): Likewise.
18633         * lib/strings.in.h (system_header): Likewise.
18634         * lib/sys_file.in.h (system_header): Likewise.
18635         * lib/sys_ioctl.in.h (system_header): Likewise.
18636         * lib/sys_socket.in.h (system_header): Likewise.
18637         * lib/sys_times.in.h (system_header): Likewise.
18638         * lib/sys_utsname.in.h (system_header): Likewise.
18639         * lib/sys_wait.in.h (system_header): Likewise.
18640         * lib/sysexits.in.h (system_header): Likewise.
18641         * lib/unistd.in.h (system_header): Likewise.
18642         * lib/wctype.in.h (system_header): Likewise.
18643
18644         arpa/inet: fix mingw compilation warning
18645         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18646         Reported by Matthew Bolte.
18647
18648 2010-03-25  Bruno Haible  <bruno@clisp.org>
18649
18650         Avoid collision between gnulib wrapper and libintl wrapper.
18651         * lib/printf.c (printf): Don't define if a printf wrapper is already
18652         defined in intl/printf.c.
18653         Reported by Michel Boaventura <michel@michelboaventura.com>.
18654
18655 2010-03-25  Bruno Haible  <bruno@clisp.org>
18656
18657         Use ANSI C.
18658         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18659
18660 2010-03-25  Bruno Haible  <bruno@clisp.org>
18661
18662         Minor formatting changes.
18663         * lib/acosl.c: Insert space before function argument list.
18664         * lib/argz.c: Likewise.
18665         * lib/asinl.c: Likewise.
18666         * lib/expl.c: Likewise.
18667         * lib/gen-uni-tables.c: Likewise.
18668         * lib/gettext.h: Likewise.
18669         * lib/glthread/lock.h: Likewise.
18670         * lib/tanl.c: Likewise.
18671         * lib/uniname/uniname.c: Likewise.
18672         * tests/test-idpriv-drop.c: Likewise.
18673         * tests/test-idpriv-droptemp.c: Likewise.
18674         * tests/test-lock.c: Likewise.
18675         * tests/test-tls.c: Likewise.
18676         * lib/argp-help.c: Insert space before function-like macro argument
18677         list.
18678         * lib/memcmp.c: Likewise.
18679         * tests/test-base64.c: Likewise.
18680         * lib/localename.c: Insert space before sizeof's argument list.
18681         * lib/safe-alloc.h: Likewise.
18682         * lib/file-set.h: Insert space before macro argument list.
18683         * tests/test-argp.c: Likewise.
18684         * lib/argp-namefrob.h: Insert space before function parameter list.
18685         * lib/getaddrinfo.c: Likewise.
18686         * lib/netdb.in.h: Likewise.
18687         * lib/parse-duration.h: Likewise.
18688         * lib/parse-duration.c: Likewise.
18689         * lib/poll.c: Likewise.
18690         * lib/select.c: Likewise.
18691         * lib/trim.h: Likewise.
18692         * tests/test-usleep.c: Likewise.
18693         * lib/ldexpl.c: Insert space before function parameter list and before
18694         function argument list.
18695         * lib/logl.c: Likewise.
18696         * lib/sqrtl.c: Likewise.
18697         * lib/trim.c: Likewise.
18698         * lib/cosl.c: Use GNU style indentation. Insert space before function
18699         argument list.
18700         * lib/sinl.c: Likewise.
18701         * lib/tsearch.c: Insert space after 'for'.
18702         Reported by Jim Meyering.
18703
18704 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18705
18706         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18707         config header before grepping, as it's not present before
18708         autoreconf/configure are run.  Reported by Simon Josefsson.
18709
18710 2010-03-23  Bruno Haible  <bruno@clisp.org>
18711
18712         pt_chown: Make it work with automake < 1.11.
18713         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18714         Reported by Simon Josefsson.
18715
18716 2010-03-23  Bruno Haible  <bruno@clisp.org>
18717
18718         pt_chown: Don't depend on GPLed modules.
18719         * lib/pt_chown.c: Don't include idpriv.h.
18720         (main): Don't drop privileges.
18721         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18722         Reported by Simon Josefsson.
18723
18724 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18725
18726         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18727         suggestions from karl@freefriends.org (Karl Berry).
18728
18729 2010-03-22  Eric Blake  <eblake@redhat.com>
18730
18731         gethostname: further tweaks
18732         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18733         are overriding gethostname.
18734         Suggested by Bruno Haible.
18735
18736 2010-03-21  Bruno Haible  <bruno@clisp.org>
18737
18738         Fix comments.
18739         * lib/forkpty.c (rpl_forkpty): Fix comment.
18740         * lib/openpty.c (rpl_openpty): Likewise.
18741         Reported by Eric Blake.
18742
18743 2010-03-22  Eric Blake  <eblake@redhat.com>
18744
18745         gethostname: fix build on mingw
18746         * lib/unistd.in.h (includes): Work around fact that mingw
18747         <winsock2.h> re-includes <unistd.h>, by avoiding any
18748         redeclarations if we are being included by <winsock2.h>.
18749         Reported by Matthias Bolte.
18750
18751 2010-03-21  Bruno Haible  <bruno@clisp.org>
18752
18753         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18754         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18755         modifications.
18756         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18757         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18758         provide the replacement.
18759         * modules/forkpty (Depends-on): Add openpty, login_tty.
18760         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18761         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18762         * doc/glibc-functions/forkpty.texi: More supported platforms.
18763         * config/srclist.txt: Add forkpty.c (commented).
18764
18765 2010-03-21  Bruno Haible  <bruno@clisp.org>
18766
18767         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18768         (Makefile.am): Verify that PTY_LIB is defined.
18769
18770         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18771
18772 2010-03-21  Bruno Haible  <bruno@clisp.org>
18773
18774         Tests for module 'login_tty'.
18775         * modules/login_tty-tests: New file.
18776         * tests/test-login_tty.c: New file.
18777
18778         New module 'login_tty'.
18779         * lib/login_tty.c: New file.
18780         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18781         * modules/login_tty: New file.
18782         * doc/glibc-functions/login_tty.texi: Mention the new module.
18783
18784 2010-03-21  Bruno Haible  <bruno@clisp.org>
18785
18786         login_tty: Documentation.
18787         * doc/glibc-functions/login_tty.texi: New file.
18788         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18789
18790 2010-03-21  Bruno Haible  <bruno@clisp.org>
18791
18792         pty: Consistent macro naming.
18793         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18794         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18795         * modules/pty (configure.ac): Update.
18796
18797 2010-03-21  Bruno Haible  <bruno@clisp.org>
18798
18799         Tests for openpty: Make stricter.
18800         * tests/test-openpty.c (main): Add test of canonical processing and
18801         erase.
18802         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18803
18804         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18805         * lib/openpty.c (openpty): New replacement function.
18806         * lib/pty.in.h: Include <termios.h>.
18807         (openpty): Update declaration. Add comments.
18808         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18809         is not declared, arrange to provide the replacement. Check for _getpty
18810         and posix_openpt.
18811         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18812         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18813         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18814         * modules/pty-tests (test_pty_c___LDADD): New variable.
18815         * doc/glibc-functions/openpty.texi: More supported platforms.
18816
18817 2010-03-21  Bruno Haible  <bruno@clisp.org>
18818
18819         setenv: Tweaks.
18820         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18821         the test program.
18822         * doc/posix-functions/setenv.texi: Update platforms list.
18823
18824 2010-03-21  Bruno Haible  <bruno@clisp.org>
18825
18826         New module 'unlockpt'.
18827         * lib/unlockpt.c: New file, from glibc with modifications.
18828         * m4/unlockpt.m4: New file.
18829         * modules/unlockpt: New file.
18830         * lib/stdlib.in.h (unlockpt): New declaration.
18831         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18832         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18833         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18834         HAVE_UNLOCKPT.
18835         * doc/posix-functions/unlockpt.texi: Mention the new module.
18836         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18837         * config/srclist.txt: Add unlockpt.c (commented).
18838
18839 2010-03-21  Jim Meyering  <meyering@redhat.com>
18840
18841         maint.mk: prohibit inclusion of "intprops.h" without use
18842         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18843
18844 2010-03-21  Bruno Haible  <bruno@clisp.org>
18845
18846         New module 'grantpt'.
18847         * lib/grantpt.c: New file, from glibc with modifications.
18848         * m4/grantpt.m4: New file.
18849         * modules/grantpt: New file.
18850         * lib/stdlib.in.h (grantpt): New declaration.
18851         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18852         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18853         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18854         HAVE_GRANTPT.
18855         * doc/posix-functions/grantpt.texi: Mention the new module.
18856         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18857         * config/srclist.txt: Add grantpt.c (commented).
18858
18859 2010-03-21  Bruno Haible  <bruno@clisp.org>
18860
18861         New module 'pt_chown'.
18862         * lib/pt_chown.c: New file, from glibc with modifications.
18863         * lib/pty-private.h: New file, from glibc with modifications.
18864         * modules/pt_chown: New file.
18865         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18866
18867 2010-03-21  Bruno Haible  <bruno@clisp.org>
18868
18869         Tests for module 'ptsname'.
18870         * modules/ptsname-tests: New file.
18871         * tests/test-ptsname.c: New file.
18872
18873         New module 'ptsname'.
18874         * lib/ptsname.c: New file, from glibc with modifications.
18875         * m4/ptsname.m4: New file.
18876         * modules/ptsname: New file.
18877         * lib/stdlib.in.h (ptsname): New declaration.
18878         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18879         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18880         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18881         HAVE_PTSNAME.
18882         * doc/posix-functions/ptsname.texi: Mention the new module.
18883         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18884         * config/srclist.txt: Add ptsname.c (commented).
18885
18886 2010-03-21  Bruno Haible  <bruno@clisp.org>
18887
18888         Tests for module 'ttyname_r'.
18889         * modules/ttyname_r-tests: New file.
18890         * tests/test-ttyname_r.c: New file.
18891
18892         New module 'ttyname_r'.
18893         * lib/ttyname_r.c: New file.
18894         * m4/ttyname_r.m4: New file.
18895         * modules/ttyname_r: New file.
18896         * lib/unistd.in.h (ttyname_r): New declaration.
18897         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18898         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18899         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18900         HAVE_TTYNAME_R.
18901         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18902         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18903
18904 2010-03-20  Bruno Haible  <bruno@clisp.org>
18905
18906         signal: Undefine macro definitions in C++ mode.
18907         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18908         sigfillset): Undefine macro definitions from the system header in C++
18909         mode.
18910         Reported by John W. Eaton <jwe@gnu.org>.
18911
18912 2010-03-20  Bruno Haible  <bruno@clisp.org>
18913
18914         Ensure no #include statements inside extern "C" { ... }.
18915         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18916         contain #include statements.
18917         * lib/time.in.h: Likewise.
18918
18919 2010-03-20  Bruno Haible  <bruno@clisp.org>
18920
18921         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18922         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18923         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18924         Reported by John W. Eaton <jwe@gnu.org>.
18925
18926 2010-03-20  Bruno Haible  <bruno@clisp.org>
18927
18928         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18929         Reported by Jim Meyering.
18930
18931 2010-03-20  Bruno Haible  <bruno@clisp.org>
18932
18933         pipe: Set errno upon failure.
18934         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18935         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18936         errno value in error message.
18937
18938 2010-03-20  Bruno Haible  <bruno@clisp.org>
18939             Jim Meyering  <meyering@redhat.com>
18940
18941         lchown: Avoid "unused variable" warning.
18942         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18943
18944 2010-03-20  Bruno Haible  <bruno@clisp.org>
18945
18946         Work around unlink() bug on MacOS X 10.5.6.
18947         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18948         attempting to unlink a parent directory.
18949         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18950         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18951         activate for the replacement function.
18952         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18953
18954 2010-03-20  Bruno Haible  <bruno@clisp.org>
18955
18956         Fix link errors on Solaris 8.
18957         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18958         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18959
18960 2010-03-19  Jim Meyering  <meyering@redhat.com>
18961
18962         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18963         The _LIBC implementation of build_range_exp correctly honors the
18964         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18965         However, the non-_LIBC implementation would ignore that syntax-bit
18966         flag and return REG_ERANGE unconditionally.
18967         This change makes it honor that flag.
18968         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18969         Make two pointer parameters "const".
18970         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18971         (parse_bracket_exp): Update caller.
18972
18973         regex.m4: correct the reversed range endpoint ([b-a]) test
18974         * m4/regex.m4: When requiring that [b-a] evoke failure,
18975         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18976         test pass once again for x86-based systems.
18977
18978 2010-03-19  Bruno Haible  <bruno@clisp.org>
18979
18980         scandir: Fix link error on Solaris 8.
18981         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18982         macros.
18983
18984 2010-03-19  Bruno Haible  <bruno@clisp.org>
18985
18986         getusershell: Fix documentation.
18987         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18988         module.
18989         * doc/glibc-functions/setusershell.texi: Likewise.
18990
18991         getusershell: Provide declaration, missing on Solaris 9.
18992         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18993         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18994         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18995         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18997         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18998         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18999         HAVE_GETUSERSHELL.
19000         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
19001
19002 2010-03-19  Bruno Haible  <bruno@clisp.org>
19003
19004         wctype: Provide iswblank function.
19005         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
19006         exists and is fine.
19007         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
19008         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
19009         * tests/test-wctype.c (main): Re-enable the iswblank tests.
19010         * doc/posix-functions/iswblank.texi: Update.
19011
19012 2010-03-19  Bruno Haible  <bruno@clisp.org>
19013
19014         Tests of module 'pty' in C++ mode.
19015         * modules/pty-tests: New file.
19016         * tests/test-pty-c++.cc: New file.
19017         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19018
19019 2010-03-19  Eric Blake  <eblake@redhat.com>
19020
19021         logb: fix documentation
19022         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
19023         1.5 declaration bug.
19024
19025         forkpty, openpty: prefer glibc's const-safe prototype
19026         * lib/forkpty.c (rpl_forkpty): New file.
19027         * lib/openpty.c (rpl_openpty): Likewise.
19028         * modules/forkpty (Files): Distribute it.
19029         * modules/openpty (Files): Likewise.
19030         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
19031         check...
19032         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
19033         replacement for for non-const BSD signature.
19034         * modules/pty (Makefile.am): Substitute witnesses.
19035         * lib/pty.in.h (forkpty, openpty): Declare replacements.
19036         * tests/test-forkpty.c: Update signature check.
19037         * tests/test-openpty.c: Likewise.
19038         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
19039         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19040
19041         forkpty, openpty: split functions into new modules
19042         * modules/pty (Makefile.am): Substitute new witnesses.
19043         (Libraries): Move library detection...
19044         * modules/forkpty: ...into new module.
19045         * modules/openpty: Another new module.
19046         * modules/pty-tests: Rename and split...
19047         * modules/forkpty-tests: ...to this...
19048         * modules/openpty-tests: ...and this.
19049         * tests/test-pty.c: Rename and split...
19050         * tests/test-forkpty.c: ...to this...
19051         * tests/test-openpty.c: ...and this.
19052         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
19053         (gl_PTY): Split library searching...
19054         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
19055         (gl_FORKPTY, gl_OPENPTY): New macros.
19056         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
19057         * NEWS: Mention the split.
19058         * MODULES.html.sh (Misc): Document the modules.
19059         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
19060         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19061
19062         pty: improve replacement header
19063         * lib/pty.in.h: New file.
19064         * modules/pty (Files): Ship it.
19065         (Makefile.am): Always build replacement.
19066         * m4/pty.m4: Rename...
19067         * m4/pty_h.m4: ...to this.
19068         (gl_PTY): Modernize setting of witness macros; update check of
19069         forkpty to take proper advantage of cache.
19070         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
19071
19072         getopt: avoid compiler warning
19073         * lib/getopt.c (attribute_hidden): Remove unused macro.
19074
19075 2010-03-18  Bruno Haible  <bruno@clisp.org>
19076
19077         Fix link errors on Solaris 8.
19078         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
19079         * modules/search-tests (test_search_c___LDADD): Likewise.
19080         * modules/signal-tests (test_signal_c___LDADD): Likewise.
19081         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
19082         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
19083         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
19084         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
19085         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
19086         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
19087
19088 2010-03-18  Bruno Haible  <bruno@clisp.org>
19089
19090         Fix bug introduced on 2010-03-14.
19091         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
19092         (gl_SPAWN_H): Require it.
19093         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
19094         Reported by Simon Josefsson.
19095
19096 2010-03-18  Bruno Haible  <bruno@clisp.org>
19097
19098         Fix typo introduced on 2009-12-31.
19099         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
19100         posix_spawn_file_actions_adddup2.
19101
19102 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
19103         and Eric Blake  <eblake@redhat.com>
19104
19105         test-vc-list-files-git: make more robust
19106         * tests/test-vc-list-files-git.sh: Unset problematic environment
19107         variables.  Chain commands together.
19108
19109 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
19110
19111         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
19112         `AC_CHECK_DECL' invocation.
19113
19114 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
19115
19116         * lib/inttostr.c (inttostr): Make sure the invocation of verify
19117         appears before executable statements. Suggested by Petr Sumbera
19118         <Petr.Sumbera@Sun.COM>.
19119
19120 2010-03-14  Bruno Haible  <bruno@clisp.org>
19121
19122         * tests/test-flock.c (test_exclusive): Comment out a test that causes
19123         portability problems. Instead use a simpler test.
19124         (main): Check that invalid arguments are rejected only on Linux.
19125
19126 2010-03-14  Bruno Haible  <bruno@clisp.org>
19127
19128         Fix bug introduced on 2009-12-31.
19129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19130         gl_PREREQ_SYS_H_WINSOCK2 always.
19131         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
19132         SYS_SOCKET_H variable.
19133         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
19134         Update comments.
19135         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
19136         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19137         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19138         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19139         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
19140
19141 2010-03-14  Bruno Haible  <bruno@clisp.org>
19142
19143         Fix values returned by sinl, cosl.
19144         * lib/trigl.h: Add specification comments.
19145         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
19146         that combines the values from the precomputed table with the values of
19147         the Chebyshev polynomials.
19148
19149 2010-03-14  Bruno Haible  <bruno@clisp.org>
19150
19151         Fix compilation error when modules 'posix_spawn[p]' are not used.
19152         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
19153         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
19154
19155 2010-03-14  Bruno Haible  <bruno@clisp.org>
19156
19157         Fix compilation error on mingw when module 'time_r' is not used.
19158         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
19159         is 1.
19160         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
19161         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19162         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
19163         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
19164
19165 2010-03-14  Bruno Haible  <bruno@clisp.org>
19166
19167         Fix compilation error with Sun C.
19168         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
19169         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
19170         instead of GCC specific ULONG_LONG_MAX.
19171         * lib/xstrtoll.c: Likewise.
19172         * lib/xstrtoull.c: Likewise.
19173
19174 2010-03-13  Bruno Haible  <bruno@clisp.org>
19175
19176         Allow the user to disable C++ code and tests.
19177         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
19178         (gl_PROG_ANSI_CXX): Require it.
19179
19180 2010-03-13  Bruno Haible  <bruno@clisp.org>
19181
19182         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
19183         cases.
19184
19185 2010-03-13  Bruno Haible  <bruno@clisp.org>
19186
19187         Test that gnulib does not break the standard C++ headers.
19188         * tests/test-locale-c++2.cc: New file.
19189         * modules/locale-tests (Files): Add it.
19190         (Makefile.am): Compile it for test-locale-c++.
19191         * tests/test-math-c++2.cc: New file.
19192         * modules/math-tests (Files): Add it.
19193         (Makefile.am): Compile it for test-math-c++.
19194         * tests/test-signal-c++2.cc: New file.
19195         * modules/signal-tests (Files): Add it.
19196         (Makefile.am): Compile it for test-signal-c++.
19197         * tests/test-stdio-c++2.cc: New file.
19198         * modules/stdio-tests (Files): Add it.
19199         (Makefile.am): Compile it for test-stdio-c++.
19200         * tests/test-stdlib-c++2.cc: New file.
19201         * modules/stdlib-tests (Files): Add it.
19202         (Makefile.am): Compile it for test-stdlib-c++.
19203         * tests/test-string-c++2.cc: New file.
19204         * modules/string-tests (Files): Add it.
19205         (Makefile.am): Compile it for test-string-c++.
19206         * tests/test-time-c++2.cc: New file.
19207         * modules/time-tests (Files): Add it.
19208         (Makefile.am): Compile it for test-time-c++.
19209         Reported by John W. Eaton <jwe@gnu.org>.
19210
19211 2010-03-13  Bruno Haible  <bruno@clisp.org>
19212
19213         * gnulib-tool (func_usage): Clarify which options are available for
19214         --create-testdir and --create-megatestdir.
19215
19216 2010-03-13  Bruno Haible  <bruno@clisp.org>
19217
19218         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
19219         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
19220         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
19221         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19222         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
19223         when appropriate.
19224         Reported by Jim Meyering.
19225
19226 2010-03-12  Simon Josefsson  <simon@josefsson.org>
19227
19228         * gnulib-tool (func_import): Explain origin of code.
19229
19230 2010-03-12  Bruno Haible  <bruno@clisp.org>
19231
19232         Fix problem with automake's definition of CXXLINK.
19233         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
19234         Reported by Simon Josefsson and Ludovic Courtès.
19235
19236 2010-03-12  Bruno Haible  <bruno@clisp.org>
19237
19238         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
19239         stable releases.
19240
19241 2010-03-11  Bruno Haible  <bruno@clisp.org>
19242
19243         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
19244         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
19245         whether the system provides one variant or multiple variants of the
19246         function.
19247         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
19248         C++ compilers.
19249         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
19250         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
19251         Reported by Jim Meyering.
19252
19253 2010-03-09  Simon Josefsson  <simon@josefsson.org>
19254
19255         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
19256
19257 2010-03-08  Bruno Haible  <bruno@clisp.org>
19258
19259         gnulib-tool: Add support for --libtool in --create-testdir.
19260         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
19261         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
19262
19263 2010-03-08  Eric Blake  <eblake@redhat.com>
19264
19265         gnulib-tool.texi: mention possibility of git submodule
19266         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
19267         submodules.
19268         * doc/.gitignore: Ignore another generated file.
19269
19270 2010-03-08  Karl Berry  <karl@gnu.org>
19271
19272         * doc/gnulib-tool.texi (VCS Issues): Mention third option
19273         of committing gnulib files while skipping others.
19274
19275 2010-03-07  Bruno Haible  <bruno@clisp.org>
19276
19277         Tests of module 'wctype' in C++ mode.
19278         * tests/test-wctype-c++.cc: New file.
19279         * modules/wctype-tests (Files): Add it and tests/signature.h.
19280         (Depends-on): Add ansi-c++-opt.
19281         (Makefile.am): Arrange to compile and run test-wctype-c++.
19282
19283         Tests of module 'wchar' in C++ mode.
19284         * tests/test-wchar-c++.cc: New file.
19285         * modules/wchar-tests (Files): Add it and tests/signature.h.
19286         (Depends-on): Add ansi-c++-opt.
19287         (Makefile.am): Arrange to compile and run test-wchar-c++.
19288         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
19289         gl_MODULE_INDICATOR.
19290
19291         Tests of module 'unistd' in C++ mode.
19292         * tests/test-unistd-c++.cc: New file.
19293         * modules/unistd-tests (Files): Add it and tests/signature.h.
19294         (Depends-on): Add ansi-c++-opt.
19295         (Makefile.am): Arrange to compile and run test-unistd-c++.
19296         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
19297         gl_MODULE_INDICATOR.
19298
19299         Tests of module 'time' in C++ mode.
19300         * tests/test-time-c++.cc: New file.
19301         * modules/time-tests (Files): Add it and tests/signature.h.
19302         (Depends-on): Add ansi-c++-opt.
19303         (Makefile.am): Arrange to compile and run test-time-c++.
19304         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19305
19306         Tests of module 'sys_time' in C++ mode.
19307         * tests/test-sys_time-c++.cc: New file.
19308         * modules/sys_time-tests (Files): Add it and tests/signature.h.
19309         (Depends-on): Add ansi-c++-opt.
19310         (Makefile.am): Arrange to compile and run test-sys_time-c++.
19311         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
19312         gl_MODULE_INDICATOR.
19313
19314         Tests of module 'sys_stat' in C++ mode.
19315         * tests/test-sys_stat-c++.cc: New file.
19316         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
19317         (Depends-on): Add ansi-c++-opt.
19318         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
19319         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
19320         gl_MODULE_INDICATOR.
19321
19322         Tests of module 'sys_socket' in C++ mode.
19323         * tests/test-sys_socket-c++.cc: New file.
19324         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
19325         (Depends-on): Add ansi-c++-opt.
19326         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
19327         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
19328         gl_MODULE_INDICATOR.
19329
19330         Tests of module 'sys_select' in C++ mode.
19331         * tests/test-sys_select-c++.cc: New file.
19332         * modules/sys_select-tests (Files): Add it and tests/signature.h.
19333         (Depends-on): Add ansi-c++-opt.
19334         (Makefile.am): Arrange to compile and run test-sys_select-c++.
19335         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
19336         gl_MODULE_INDICATOR.
19337
19338         Tests of module 'sys_ioctl' in C++ mode.
19339         * tests/test-sys_ioctl-c++.cc: New file.
19340         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
19341         (Depends-on): Add ansi-c++-opt.
19342         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
19343         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
19344         gl_MODULE_INDICATOR.
19345
19346         Tests of module 'string' in C++ mode.
19347         * tests/test-string-c++.cc: New file.
19348         * modules/string-tests (Files): Add it and tests/signature.h.
19349         (Depends-on): Add ansi-c++-opt.
19350         (Makefile.am): Arrange to compile and run test-string-c++.
19351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
19352         gl_MODULE_INDICATOR.
19353
19354         Tests of module 'stdlib' in C++ mode.
19355         * tests/test-stdlib-c++.cc: New file.
19356         * modules/stdlib-tests (Files): Add it and tests/signature.h.
19357         (Depends-on): Add ansi-c++-opt.
19358         (Makefile.am): Arrange to compile and run test-stdlib-c++.
19359         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
19360         gl_MODULE_INDICATOR.
19361
19362         Tests of module 'stdio' in C++ mode.
19363         * tests/test-stdio-c++.cc: New file.
19364         * modules/stdio-tests (Files): Add it and tests/signature.h.
19365         (Depends-on): Add ansi-c++-opt.
19366         (Makefile.am): Arrange to compile and run test-stdio-c++.
19367         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
19368         gl_MODULE_INDICATOR.
19369
19370         Tests of module 'spawn' in C++ mode.
19371         * tests/test-spawn-c++.cc: New file.
19372         * modules/spawn-tests (Files): Add it and tests/signature.h.
19373         (Depends-on): Add ansi-c++-opt.
19374         (Makefile.am): Arrange to compile and run test-spawn-c++.
19375         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
19376         gl_MODULE_INDICATOR.
19377
19378         Tests of module 'signal' in C++ mode.
19379         * tests/test-signal-c++.cc: New file.
19380         * modules/signal-tests (Files): Add it and tests/signature.h.
19381         (Depends-on): Add ansi-c++-opt.
19382         (Makefile.am): Arrange to compile and run test-signal-c++.
19383         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
19384         gl_MODULE_INDICATOR.
19385
19386         Tests of module 'search' in C++ mode.
19387         * tests/test-search-c++.cc: New file.
19388         * modules/search-tests (Files): Add it and tests/signature.h.
19389         (Depends-on): Add ansi-c++-opt.
19390         (Makefile.am): Arrange to compile and run test-search-c++.
19391         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
19392         gl_MODULE_INDICATOR.
19393
19394         Tests of module 'math' in C++ mode.
19395         * tests/test-math-c++.cc: New file.
19396         * modules/math-tests (Files): Add it and tests/signature.h.
19397         (Depends-on): Add ansi-c++-opt.
19398         (Makefile.am): Arrange to compile and run test-math-c++.
19399         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19400
19401         Tests of module 'locale' in C++ mode.
19402         * tests/test-locale-c++.cc: New file.
19403         * modules/locale-tests (Files): Add it and tests/signature.h.
19404         (Depends-on): Add ansi-c++-opt.
19405         (Makefile.am): Arrange to compile and run test-locale-c++.
19406         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19407         gl_MODULE_INDICATOR.
19408
19409         Tests of module 'langinfo' in C++ mode.
19410         * tests/test-langinfo-c++.cc: New file.
19411         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19412         (Depends-on): Add ansi-c++-opt.
19413         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19414         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19415         gl_MODULE_INDICATOR.
19416
19417         Tests of module 'iconv-h' in C++ mode.
19418         * tests/test-iconv-h-c++.cc: New file.
19419         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19420         (Depends-on): Add ansi-c++-opt.
19421         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19422
19423         Tests of module 'glob' in C++ mode.
19424         * tests/test-glob-c++.cc: New file.
19425         * modules/glob-tests (Files): Add it.
19426         (Depends-on): Add ansi-c++-opt.
19427         (Makefile.am): Arrange to compile and run test-glob-c++.
19428
19429         Tests of module 'fcntl-h' in C++ mode.
19430         * tests/test-fcntl-h-c++.cc: New file.
19431         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19432         (Depends-on): Add ansi-c++-opt.
19433         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19434         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19435         gl_MODULE_INDICATOR.
19436
19437         Tests of module 'dirent' in C++ mode.
19438         * tests/test-dirent-c++.cc: New file.
19439         * modules/dirent-tests (Files): Add it and tests/signature.h.
19440         (Depends-on): Add ansi-c++-opt.
19441         (Makefile.am): Arrange to compile and run test-dirent-c++.
19442         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19443         gl_MODULE_INDICATOR.
19444
19445         New module 'ansi-c++-opt'.
19446         * modules/ansi-c++-opt: New file.
19447         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19448
19449         Document C++ namespace mode.
19450         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19451
19452         wctype: Avoid #define replacements in C++ mode.
19453         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19454         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19455         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19456         In C++, define a namespaced alias symbol.
19457         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19458         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19459         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19460         rule.
19461
19462         wchar: Avoid #define replacements in C++ mode.
19463         * lib/wchar.in.h: Include c++defs.h.
19464         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19465         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19466         symbol.
19467         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19468         * modules/wchar (Depends-on): Add c++defs.
19469         (Makefile.am): Update wchar.h rule.
19470
19471         unistd: Avoid #define replacements in C++ mode.
19472         * lib/unistd.in.h: Include c++defs.h.
19473         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19474         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19475         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19476         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19477         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19478         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19479         symbol.
19480         (environ): Update.
19481         * modules/unistd (Depends-on): Add c++defs.
19482         (Makefile.am): Update unistd.h rule.
19483
19484         time: Avoid #define replacements in C++ mode.
19485         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19486         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19487         define a namespaced alias symbol.
19488         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19489         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19490         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19491         * modules/time (Depends-on): Add c++defs, warn-on-use.
19492         (Makefile.am): Update time.h rule.
19493         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19494         * modules/nanosleep (configure.ac): Likewise.
19495         * modules/strptime (configure.ac): Likewise.
19496         * modules/timegm (configure.ac): Likewise.
19497
19498         sys_time: Avoid #define replacements in C++ mode.
19499         * lib/sys_time.in.h: Include c++defs.h.
19500         (gettimeofday): In C++, define a namespaced alias symbol.
19501         * modules/sys_time (Depends-on): Add c++defs.
19502         (Makefile.am): Update sys/time.h rule.
19503
19504         sys_stat: Avoid #define replacements in C++ mode.
19505         * lib/sys_stat.in.h: Include c++defs.h.
19506         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19507         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19508         namespaced alias symbol.
19509         In C++, define a namespaced alias symbol.
19510         * modules/sys_stat (Depends-on): Add c++defs.
19511         (Makefile.am): Update sys/stat.h rule.
19512
19513         sys_socket: Avoid #define replacements in C++ mode.
19514         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19515         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19516         definitions also when the system has a <sys/socket.h>.
19517         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19518         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19519         In C++, define a namespaced alias symbol.
19520         * modules/sys_socket (Depends-on): Add c++defs.
19521         (Makefile.am): Update sys/socket.h rule.
19522
19523         sys_select: Avoid #define replacements in C++ mode.
19524         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19525         definitions also when the system has a <sys/select.h>.
19526         (select): In C++, define a namespaced alias symbol.
19527         * modules/sys_select (Depends-on): Add c++defs.
19528         (Makefile.am): Update sys/select.h rule.
19529
19530         sys_ioctl: Avoid #define replacements in C++ mode.
19531         * lib/sys_ioctl.in.h: Include c++defs.h.
19532         (ioctl): In C++, define a namespaced alias symbol.
19533         * modules/sys_ioctl (Depends-on): Add c++defs.
19534         (Makefile.am): Update sys/ioctl.h rule.
19535
19536         string: Avoid #define replacements in C++ mode.
19537         * lib/string.in.h: Include c++defs.h.
19538         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19539         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19540         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19541         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19542         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19543         * modules/string (Depends-on): Add c++defs.
19544         (Makefile.am): Update string.h rule.
19545
19546         stdlib: Avoid #define replacements in C++ mode.
19547         * lib/stdlib.in.h: Include c++defs.h.
19548         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19549         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19550         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19551         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19552         symbol.
19553         * modules/stdlib (Depends-on): Add c++defs.
19554         (Makefile.am): Update stdlib.h rule.
19555
19556         stdio: Avoid #define replacements in C++ mode.
19557         * lib/stdio.in.h: Include c++defs.h.
19558         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19559         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19560         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19561         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19562         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19563         namespaced alias symbol.
19564         * modules/stdio (Depends-on): Add c++defs.
19565         (Makefile.am): Update stdio.h rule.
19566
19567         spawn: Avoid #define replacements in C++ mode.
19568         * lib/spawn.in.h: Include c++defs.h.
19569         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19570         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19571         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19572         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19573         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19574         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19575         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19576         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19577         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19578         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19579         In C++, define a namespaced alias symbol.
19580         * modules/spawn (Depends-on): Add c++defs.
19581         (Makefile.am): Update spawn.h rule.
19582
19583         signal: Avoid #define replacements in C++ mode.
19584         * lib/signal.in.h: Include c++defs.h.
19585         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19586         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19587         namespaced alias symbol.
19588         * modules/signal (Depends-on): Add c++defs.
19589         (Makefile.am): Update signal.h rule.
19590
19591         search: Avoid #define replacements in C++ mode.
19592         * lib/search.in.h: Include c++defs.h.
19593         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19594         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19595         symbol.
19596         * modules/search (Depends-on): Add c++defs.
19597         (Makefile.am): Update search.h rule.
19598
19599         math: Avoid #define replacements in C++ mode.
19600         * lib/math.in.h: Include c++defs.h.
19601         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19602         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19603         trunc, truncl): In C++, define a namespaced alias symbol.
19604         * modules/math (Depends-on): Add c++defs.
19605         (Makefile.am): Update math.h rule.
19606
19607         locale: Avoid #define replacements in C++ mode.
19608         * lib/locale.in.h: Include c++defs.h.
19609         (duplocale): In C++, define a namespaced alias symbol.
19610         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19611         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19612         * modules/locale (Depends-on): Add c++defs.
19613         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19614
19615         langinfo: Avoid #define replacements in C++ mode.
19616         * lib/langinfo.in.h: Include c++defs.h.
19617         (nl_langinfo): In C++, define a namespaced alias symbol.
19618         * modules/langinfo (Depends-on): Add c++defs.
19619         (Makefile.am): Update langinfo.h rule.
19620
19621         iconv-h: Avoid #define replacements in C++ mode.
19622         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19623         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19624         symbol.
19625         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19626         whenever iconv is present.
19627         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19628         (Makefile.am): Update iconv.h rule.
19629
19630         glob: Avoid #define replacements in C++ mode.
19631         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19632         (_gl_glob_errfunc_fn): New type.
19633         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19634         symbol.
19635         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19636         (Makefile.am): Update glob.h rule.
19637
19638         fcntl-h: Avoid #define replacements in C++ mode.
19639         * lib/fcntl.in.h: Include c++defs.h.
19640         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19641         * modules/fcntl-h (Depends-on): Add c++defs.
19642         (Makefile.am): Update fcntl.h rule.
19643
19644         dirent: Avoid #define replacements in C++ mode.
19645         * lib/dirent.in.h: Include c++defs.h.
19646         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19647         namespaced alias symbol.
19648         (dirfd): Update declaration.
19649         * modules/dirent (Depends-on): Add c++defs.
19650         (Makefile.am): Update dirent.h rule.
19651
19652         ctype: Make it usable in C++ code.
19653         * lib/ctype.in.h: Include c++defs.h.
19654         (isblank): Declare as extern "C".
19655         * modules/ctype (Depends-on): Add c++defs.
19656         (Makefile.am): Update ctype.h rule.
19657
19658         New module 'c++defs'.
19659         * modules/c++defs: New file.
19660         * build-aux/c++defs.h: New file.
19661         Reported by John W. Eaton <jwe@gnu.org>.
19662
19663 2010-03-07  Bruno Haible  <bruno@clisp.org>
19664
19665         logb: Provide missing declaration for Cygwin.
19666         * lib/math.in.h (logb): New declaration.
19667         * m4/logb.m4: New file.
19668         * modules/logb (Files): Add m4/logb.m4.
19669         (Depends-on): Add math.
19670         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19671         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19673         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19674         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19675
19676 2010-03-07  Bruno Haible  <bruno@clisp.org>
19677
19678         Fix test-cond link error.
19679         * tests/test-cond.c: Include <stdio.h>.
19680
19681 2010-03-07  Bruno Haible  <bruno@clisp.org>
19682
19683         Fix test-dirent-safer link error.
19684         * modules/dirent-safer-tests (Makefile.am): Define
19685         test_dirent_safer_LDADD.
19686
19687 2010-03-07  Bruno Haible  <bruno@clisp.org>
19688
19689         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19690         among default module list.
19691
19692 2010-03-07  Bruno Haible  <bruno@clisp.org>
19693
19694         Fix link error on platforms with GNU libiconv.
19695         * modules/unistr/u8-strcoll-tests (Makefile): Define
19696         test_u8_strcoll_LDADD.
19697         * modules/unistr/u16-strcoll-tests (Makefile): Define
19698         test_u16_strcoll_LDADD.
19699         * modules/unistr/u32-strcoll-tests (Makefile): Define
19700         test_u32_strcoll_LDADD.
19701
19702 2010-03-07  Bruno Haible  <bruno@clisp.org>
19703
19704         Use POSIX declarations for socket functions.
19705         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19706         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19707         rpl_sendto): Change declaration to match POSIX.
19708         * lib/connect.c (rpl_connect): Likewise.
19709         * lib/accept.c (rpl_accept): Likewise.
19710         * lib/bind.c (rpl_bind): Likewise.
19711         * lib/getpeername.c (rpl_getpeername): Likewise.
19712         * lib/getsockname.c (rpl_getsockname): Likewise.
19713         * lib/recv.c (rpl_recv): Likewise.
19714         * lib/send.c (rpl_send): Likewise.
19715         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19716         * lib/sendto.c (rpl_sendto): Likewise.
19717
19718 2010-03-06  Bruno Haible  <bruno@clisp.org>
19719
19720         Clarify access, euidaccess, faccessat.
19721         * doc/posix-functions/faccessat.texi: Mention security problem under
19722         "Other problems", not "Portability problems".
19723         * doc/posix-functions/access.texi: Likewise. Mention a related security
19724         problem.
19725         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19726         * lib/euidaccess.c: Add comments about platforms.
19727         * lib/unistd.in.h (access, euidaccess): Add warnings.
19728
19729 2010-03-07  Bruno Haible  <bruno@clisp.org>
19730
19731         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19732         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19733         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19734         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19735         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19736         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19737         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19738         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19739         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19740         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19741         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19742         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19743         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19744         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19745         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19746         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19747         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19748         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19749         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19750         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19751         Likewise.
19752         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19753         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19754         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19755         Likewise.
19756         * tests/test-spawn.c (main): Make it work when
19757         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19758
19759 2010-03-07  Bruno Haible  <bruno@clisp.org>
19760
19761         Fix incorrect Makefile.am generation in German locale.
19762         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19763         Execute sed command with character range in C locale.
19764
19765 2010-03-06  Bruno Haible  <bruno@clisp.org>
19766
19767         Tests for module 'iconv-h'.
19768         * modules/iconv-h-tests: New file.
19769         * tests/test-iconv-h.c: New file.
19770
19771         New module 'iconv-h'.
19772         * modules/iconv-h: New file.
19773         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19774         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19775         (configure.ac): Remove gl_ICONV_H.
19776         (Makefile.am): Remove rule for iconv.h.
19777
19778 2010-03-06  Bruno Haible  <bruno@clisp.org>
19779
19780         More consistent naming of *.m4 files.
19781         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19782         * modules/wctype (Files): Update.
19783
19784         More consistent naming of *.m4 files.
19785         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19786         * modules/wchar (Files): Update.
19787
19788 2010-03-06  Jim Meyering  <meyering@redhat.com>
19789
19790         euidaccess: relax license to LGPLv2+
19791         * modules/euidaccess (License): Relax to LGPLv2+.
19792
19793 2010-03-06  Bruno Haible  <bruno@clisp.org>
19794
19795         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19796         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19797         (Makefile.am): Augment lib_SOURCES instead.
19798
19799 2010-03-04  Jim Meyering  <meyering@redhat.com>
19800
19801         utime: remove obsolete module
19802         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19803         unnecessary for years, and has been marked as obsolete for 10 months.
19804         * modules/utime: Remove file.
19805         * lib/utime.c: Remove file.
19806         * m4/utime.m4: Remove file.
19807         * m4/utimes-null.m4: Remove file.
19808         * doc/posix-functions/utime.texi (utime): Remove reference to
19809         the module.  Move the sole "fixed by gnulib" item into the
19810         "problems not fixed by Gnulib" list.
19811         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19812
19813 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19814
19815         * modules/exit (License): Relax license to LGPLv2+.
19816         (Status): Mark as obsolete.
19817         * NEWS: Mention deprecated 'exit' module.
19818         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19819         of now obsolete 'exit'.
19820
19821 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19822
19823         fts-lgpl: remove unused module
19824         * modules/fts-lgpl: Remove.
19825         * MODULES.html.sh (func_all_modules): Adjust.
19826         * check-module (find_included_lib_files): Adjust.
19827         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19828
19829 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19830
19831         copy-acl: enhance Solaris ACL error handling
19832         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19833         * lib/set-mode-acl.c (qset_acl): Likewise.
19834
19835 2010-03-02  Bruno Haible  <bruno@clisp.org>
19836
19837         spawn: Don't override the system defined values on FreeBSD 8.
19838         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19839         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19840         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19841         if HAVE_POSIX_SPAWN is 1.
19842         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19843
19844 2010-03-01  Bruno Haible  <bruno@clisp.org>
19845
19846         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19847         regarding Automake.
19848
19849 2010-02-25  Bruno Haible  <bruno@clisp.org>
19850
19851         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19852         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19853         setting, not afterwards.
19854         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19855
19856 2010-02-24  Eric Blake  <eblake@redhat.com>
19857
19858         bootstrap, git-version-gen: use timestamp
19859         * build-aux/git-version-gen (scriptversion): Force UTC.
19860         * build-aux/bootstrap (scriptversion): New variable.
19861
19862         bootstrap: allow older git
19863         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19864         older than 1.6.4.  Requested by the libvirt project.
19865
19866 2010-02-23  Eric Blake  <eblake@redhat.com>
19867
19868         warn-on-use: work with old autoconf
19869         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19870         AS_VAR semantics of autoconf 2.60.
19871         Reported by Bruno Haible.
19872
19873         bootstrap: improve some comments
19874         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19875         clarification comments.
19876
19877         gettimeofday: provide correct function
19878         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19879         when replacement is declared, otherwise provide gettimeofday.
19880         Reported by Michael Goffioul.
19881
19882 2010-02-23  Jim Meyering  <meyering@redhat.com>
19883
19884         lib-ignore: relax license to "unlimited", not LGPLv2+
19885         * modules/lib-ignore (License): Relax to "unlimited".
19886
19887 2010-02-23  Jim Meyering  <meyering@redhat.com>
19888
19889         lib-ignore: relax license to LGPLv2+
19890         * modules/lib-ignore (License): Relax to LGPLv2+.
19891
19892 2010-02-22  Eric Blake  <eblake@redhat.com>
19893
19894         lseek: avoid bash 3.2 broken pipe bug
19895         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19896         warning from bash 3.2.
19897         Reported by Ben Pfaff, with analysis from Bruno Haible.
19898
19899         bootstrap: support non-FSF copyright holder
19900         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19901         bootstrap.conf override of COPYRIGHT_HOLDER.
19902         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19903
19904         bootstrap: interoperate with gettext 0.14.1
19905         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19906
19907         bootstrap: allow for alternate submodule location
19908         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19909         hardcoding submodule location.
19910         (gnulib_mk): Allow direct use of Makefile.am.
19911
19912         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19913         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19914         rather than reconfiguring where the submodule points.
19915
19916         gettimeofday: restore support for platforms that lack function
19917         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19918         replacement if function is missing.
19919         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19920         * modules/sys_time (Makefile.am): Substitute it.
19921         * lib/sys_time.in.h (gettimeofday): Check it.
19922         Reported by Michael Goffioul.
19923
19924 2010-02-21  Bruno Haible  <bruno@clisp.org>
19925
19926         * lib/stdio.in.h (obstack_printf): Fix typo.
19927
19928 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19929
19930         vc-list-files: use bzr ls's -R option
19931         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19932         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19933
19934 2010-02-21  Jim Meyering  <meyering@redhat.com>
19935
19936         init.sh: fix EXEEXT shims to work also for names like test-prog
19937         * tests/init.sh: Re-exec a better shell, when needed.
19938         If the current shell lacks support for posix $(...), an init.sh-using
19939         test will now try to find a shell that supports that.  If EXEEXT is
19940         nonempty, we also require support for hyphen-in-alias-name and shell
19941         substitutions like ${var#glob}.  Failure to find such a shell results
19942         in a skipped test.
19943
19944 2010-02-21  Bruno Haible  <bruno@clisp.org>
19945
19946         Really work around around "broken pipe" error message from bash 3.2.
19947         * gnulib-tool (func_reset_sigpipe): Remove function.
19948         (echo): In bash 3.2, define to a function that uses printf.
19949         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19950
19951 2010-02-20  Bruno Haible  <bruno@clisp.org>
19952
19953         Restore support for automake 1.9.6 with autoconf 2.61.
19954         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19955         Reported by James Youngman <jay@gnu.org>.
19956
19957 2010-02-20  Bruno Haible  <bruno@clisp.org>
19958
19959         Improve *printf warning condition.
19960         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19961         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19962         and the function is overridden due to SIGPIPE emulation.
19963
19964 2010-02-20  Bruno Haible  <bruno@clisp.org>
19965
19966         * lib/stdio.in.h: Tweak comments.
19967
19968 2010-02-19  Bruno Haible  <bruno@clisp.org>
19969
19970         Make it easier to find modules. New gnulib-tool option '--find'.
19971         * gnulib-tool: New option --find.
19972         (func_usage): Document it.
19973         (func_sanitize_modulelist): New function, extracted from
19974         func_all_modules.
19975         (func_all_modules): Invoke it.
19976         * doc/gnulib-tool.texi (Which modules?): New node.
19977
19978 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19979
19980         * lib/sys_select.in.h: Provide select replacement even if
19981         sys/select.h exists on a system, for Interix.
19982
19983 2010-02-18  Jim Meyering  <meyering@redhat.com>
19984
19985         init.sh: don't use $(...) just yet
19986         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19987         to accommodate e.g., Solaris' /bin/sh.
19988
19989 2010-02-17  Bruno Haible  <bruno@clisp.org>
19990
19991         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19992         Reported by Ludovic Courtès <ludo@gnu.org>.
19993
19994 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19995
19996         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19997         linking with -lintl.
19998
19999 2010-02-17  Simon Josefsson  <simon@josefsson.org>
20000
20001         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
20002         if not provided by the system's netdb.h.  Reported by
20003         ludo@gnu.org (Ludovic Courtès).
20004
20005 2010-02-15  Jim Meyering  <meyering@redhat.com>
20006
20007         init.sh: improve portability and efficiency
20008         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
20009         "dummy" in a for loop.
20010         Use '!', not '^' to select the complement of a character set used
20011         in a "case" statement.
20012         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
20013         Suggestions from Eric Blake.
20014
20015         init.sh: automatically accommodate programs with the .exe suffix
20016         Automatically arrange for an invocation of "prog" to execute the
20017         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
20018         may use the simpler "prog", yet still work when built on a system
20019         that requires specifying the added suffix.
20020         Do this by constructing a function named "prog" that invokes
20021         "prog.exe" for each .exe file in selected directories.
20022         * tests/init.sh (find_exe_basenames_): New function.
20023         (create_exe_shim_functions_): New function.
20024         (path_prepend_): Use it.
20025
20026         maint.mk: mark syntax-check sc_*.m rules as .PHONY
20027         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
20028         "make -t syntax-check" doesn't create a ton of sc_*.m files.
20029
20030 2010-02-14  Jim Meyering  <meyering@redhat.com>
20031
20032         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
20033         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
20034         (sc_prohibit_hash_pjw_without_use): New rule.
20035
20036         maint.mk: allow the default upload destination dir to be overridden
20037         * top/maint.mk (upload_dest_dir_): Define with a default that
20038         preserves the status quo.
20039         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
20040         Reported by Peter Simons.
20041
20042         maint.mk: prohibit inclusion of "hash.h" without_use
20043         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
20044
20045 2010-02-10  Jim Meyering  <meyering@redhat.com>
20046
20047         maint.mk: prohibit inclusion of "ignore-value.h" without_use
20048         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
20049
20050 2010-02-09  Eric Blake  <ebb9@byu.net>
20051         and Bruno Haible  <bruno@clisp.org>
20052
20053         obstack-printf-posix: ensure declaration
20054         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
20055         extracted from gl_FUNC_OBSTACK_PRINTF.
20056         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
20057         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20058         Likewise.
20059         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
20060         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
20061         0.
20062
20063 2010-02-08  Bruno Haible  <bruno@clisp.org>
20064
20065         gnulib-tool: Fix typo in 2010-02-07 commit.
20066         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
20067         Reported by Eric Blake.
20068
20069 2010-02-07  Bruno Haible  <bruno@clisp.org>
20070
20071         gnulib-tool: Fix up caching patches.
20072         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
20073         option --no-cache. Use associative arrays when supported by the shell.
20074         (sed_comments): New variable.
20075         (modcache): Renamed from do_cache.
20076         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
20077         abbreviate unnecessarily.
20078         (have_associative): New variable.
20079         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
20080         way also for ksh and zsh.
20081         (func_init_sed_convert_to_cache_statements): New function, extracted
20082         from func_cache_lookup_module. Add support for associative arrays.
20083         Don't set the c_MODULE_cached variable here. Ignore all lines before
20084         the first field header. Remove only the final newline, not all trailing
20085         newlines. Support empty fields correctly. Limit the use of 'eval' to
20086         assignments.
20087         (func_get_description, func_get_status, func_get_notice,
20088         func_get_applicability, func_get_filelist, func_get_dependencies,
20089         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
20090         func_get_automake_snippet, func_get_include_directive,
20091         func_get_link_directive, func_get_license, func_get_maintainer):
20092         Update documentation. List the unoptimized code first. Add support for
20093         associative arrays. Limit the use of 'eval' to assignments.
20094         (func_get_applicability): Undo stylistic pessimisations.
20095         (func_get_automake_snippet, func_get_include_directive): Reduce code
20096         duplication.
20097         (func_modules_transitive_closure, func_modules_add_dummy,
20098         func_modules_notice, func_modules_to_filelist, func_add_file,
20099         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
20100         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
20101         func_create_testdir, func_create_megatestdir): Update documentation.
20102
20103 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20104
20105         * gnulib-tool (func_cache_lookup_module): Store the module name
20106         belonging to the cache variable; error out if two different
20107         module names map to the same cache variable name.
20108
20109 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20110
20111         gnulib-tool: Make caching optional.
20112         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
20113         Update matching short versions of --no-changelog.
20114         (func_usage): Update.
20115         (sed_extract_cache_prog): Renamed from ...
20116         (sed_extract_prog): ... this; revert to old extraction script.
20117         (func_get_description, func_get_status)
20118         (func_get_notice, func_get_applicability, func_get_filelist)
20119         (func_get_dependencies, func_get_autoconf_early_snippet)
20120         (func_get_autoconf_snippet, func_get_automake_snippet)
20121         (func_get_include_directive, func_get_link_directive)
20122         (func_get_license, func_get_maintainer): If $do_cache is false,
20123         use old, non-caching extraction scripts.
20124         Suggestion by Bruno Haible.
20125
20126 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20127
20128         gnulib-tool: cache module metainformation.
20129         * gnulib-tool (sed_extract_prog): Match newline before each
20130         header, and rewrite header to a shell variable suffix.
20131         (func_cache_var, func_cache_lookup_module): New functions,
20132         to turn a module name into a cache variable prefix, and to
20133         look up and cache module metainformation.
20134         (func_get_description, func_get_status)
20135         (func_get_notice, func_get_applicability, func_get_filelist)
20136         (func_get_dependencies, func_get_autoconf_early_snippet)
20137         (func_get_autoconf_snippet, func_get_automake_snippet)
20138         (func_get_include_directive, func_get_link_directive)
20139         (func_get_license, func_get_maintainer): Use
20140         func_cache_lookup_module.
20141
20142 2010-02-07  Bruno Haible  <bruno@clisp.org>
20143
20144         fnctl: Fix missing dependency.
20145         * modules/fcntl (Depends-on): Add getdtablesize.
20146         Reported by John W. Eaton <jwe@gnu.org>.
20147
20148 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20149
20150         Argp: fix recognition of short alias options.
20151
20152         * lib/argp-parse.c (convert_options): Fix improper use of
20153         `|' between character values.
20154         * tests/test-argp.c (group1_option): New alias option
20155         --read (-r).
20156         (group1_parser): Special handling for 'r'.
20157         (test15): New test case.
20158         (test_fun): Add test15.
20159         * tests/test-argp-2.sh: Update expected --help and --usage
20160         outputs.
20161
20162 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20163
20164         * tests/test-argp.c: Fix indentation.
20165
20166 2010-02-04  Eric Blake  <ebb9@byu.net>
20167
20168         gettimeofday: expose type of second argument
20169         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
20170         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
20171         * tests/test-gettimeofday.c: Use it to silence warning.
20172         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
20173         the issue.
20174
20175 2010-02-03  Jim Meyering  <meyering@redhat.com>
20176
20177         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
20178         * lib/regcomp.c (TYPE_SIGNED): Define.
20179         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
20180
20181         regcomp.c: avoid a new -Wshadow warning
20182         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
20183
20184 2010-02-01  Jim Meyering  <meyering@redhat.com>
20185
20186         removing useless parentheses in cpp #define directives
20187         For motivation, see commit c0221df4, "define STREQ(a,b)
20188         consistently, removing useless parentheses"
20189         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
20190         * lib/mountlist.c (MNT_IGNORE): Likewise.
20191         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
20192
20193 2010-02-01  Eric Blake  <ebb9@byu.net>
20194
20195         sys_time: use link-warning
20196         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
20197         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
20198         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
20199         * modules/sys_time (Depends-on): Add warn-on-use.
20200         (Makefile.am): Always build replacement.
20201         (configure.ac): Update substitutions.
20202         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
20203         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
20204         bother with SYS_TIME_H.
20205         * modules/gettimeofday (configure.ac): Declare indicator.
20206         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
20207         in use.
20208
20209         closein-tests: silence compiler warning
20210         * tests/test-closein.c (main): Ignore fread result.
20211         * modules/closein-tests (Depends-on): Add ignore-value.
20212
20213         tests: silence warning about system return
20214         * tests/test-areadlink-with-size.c (main): Ignore system result.
20215         * tests/test-areadlink.c (main): Likewise.
20216         * tests/test-areadlinkat-with-size.c (main): Likewise.
20217         * tests/test-areadlinkat.c (main): Likewise.
20218         * tests/test-canonicalize-lgpl.c (main): Likewise.
20219         * tests/test-canonicalize.c (main): Likewise.
20220         * tests/test-chown.c (main): Likewise.
20221         * tests/test-fchownat.c (main): Likewise.
20222         * tests/test-fdutimensat.c (main): Likewise.
20223         * tests/test-fstatat.c (main): Likewise.
20224         * tests/test-futimens.c (main): Likewise.
20225         * tests/test-lchown.c (main): Likewise.
20226         * tests/test-link.c (main): Likewise.
20227         * tests/test-linkat.c (main): Likewise.
20228         * tests/test-lstat.c (main): Likewise.
20229         * tests/test-mkdir.c (main): Likewise.
20230         * tests/test-mkdirat.c (main): Likewise.
20231         * tests/test-mkfifo.c (main): Likewise.
20232         * tests/test-mkfifoat.c (main): Likewise.
20233         * tests/test-mknod.c (main): Likewise.
20234         * tests/test-readlink.c (main): Likewise.
20235         * tests/test-remove.c (main): Likewise.
20236         * tests/test-rename.c (main): Likewise.
20237         * tests/test-renameat.c (main): Likewise.
20238         * tests/test-rmdir.c (main): Likewise.
20239         * tests/test-symlink.c (main): Likewise.
20240         * tests/test-symlinkat.c (main): Likewise.
20241         * tests/test-unlink.c (main): Likewise.
20242         * tests/test-unlinkat.c (main): Likewise.
20243         * tests/test-utimens.c (main): Likewise.
20244         * tests/test-utimensat.c (main): Likewise.
20245         * modules/areadlink-tests (Depends-on): Add ignore-value.
20246         * modules/areadlink-with-size-tests (Depends-on): Likewise.
20247         * modules/areadlinkat-tests (Depends-on): Likewise.
20248         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
20249         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20250         * modules/canonicalize-tests (Depends-on): Likewise.
20251         * modules/chown-tests (Depends-on): Likewise.
20252         * modules/fdutimensat-tests (Depends-on): Likewise.
20253         * modules/futimens-tests (Depends-on): Likewise.
20254         * modules/lchown-tests (Depends-on): Likewise.
20255         * modules/link-tests (Depends-on): Likewise.
20256         * modules/linkat-tests (Depends-on): Likewise.
20257         * modules/lstat-tests (Depends-on): Likewise.
20258         * modules/mkdir-tests (Depends-on): Likewise.
20259         * modules/mkfifo-tests (Depends-on): Likewise.
20260         * modules/mkfifoat-tests (Depends-on): Likewise.
20261         * modules/mknod-tests (Depends-on): Likewise.
20262         * modules/openat-tests (Depends-on): Likewise.
20263         * modules/readlink-tests (Depends-on): Likewise.
20264         * modules/remove-tests (Depends-on): Likewise.
20265         * modules/rename-tests (Depends-on): Likewise.
20266         * modules/renameat-tests (Depends-on): Likewise.
20267         * modules/rmdir-tests (Depends-on): Likewise.
20268         * modules/symlink-tests (Depends-on): Likewise.
20269         * modules/symlinkat-tests (Depends-on): Likewise.
20270         * modules/unlink-tests (Depends-on): Likewise.
20271         * modules/utimens-tests (Depends-on): Likewise.
20272         * modules/utimensat-tests (Depends-on): Likewise.
20273
20274 2010-01-31  Bruno Haible  <bruno@clisp.org>
20275
20276         Perform the same test for many <math.h> functions.
20277         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
20278         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
20279         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
20280         of gl_MATHFUNC.
20281         * modules/acos (configure.ac): Likewise.
20282         * modules/asin (configure.ac): Likewise.
20283         * modules/atan (configure.ac): Likewise.
20284         * modules/atan2 (configure.ac): Likewise.
20285         * modules/cbrt (configure.ac): Likewise.
20286         * modules/copysign (configure.ac): Likewise.
20287         * modules/cos (configure.ac): Likewise.
20288         * modules/cosh (configure.ac): Likewise.
20289         * modules/erf (configure.ac): Likewise.
20290         * modules/erfc (configure.ac): Likewise.
20291         * modules/exp (configure.ac): Likewise.
20292         * modules/fmod (configure.ac): Likewise.
20293         * modules/hypot (configure.ac): Likewise.
20294         * modules/j0 (configure.ac): Likewise.
20295         * modules/j1 (configure.ac): Likewise.
20296         * modules/jn (configure.ac): Likewise.
20297         * modules/lgamma (configure.ac): Likewise.
20298         * modules/log (configure.ac): Likewise.
20299         * modules/log10 (configure.ac): Likewise.
20300         * modules/log1p (configure.ac): Likewise.
20301         * modules/pow (configure.ac): Likewise.
20302         * modules/remainder (configure.ac): Likewise.
20303         * modules/sin (configure.ac): Likewise.
20304         * modules/sinh (configure.ac): Likewise.
20305         * modules/tan (configure.ac): Likewise.
20306         * modules/tanh (configure.ac): Likewise.
20307         * modules/y0 (configure.ac): Likewise.
20308         * modules/y1 (configure.ac): Likewise.
20309         * modules/yn (configure.ac): Likewise.
20310         Suggested by Paolo Bonzini.
20311
20312 2010-01-31  Bruno Haible  <bruno@clisp.org>
20313
20314         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
20315
20316 2010-01-31  Bruno Haible  <bruno@clisp.org>
20317
20318         Work around getdelim() bug on FreeBSD 8.0.
20319         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
20320         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
20321         not work.
20322         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
20323         is 1.
20324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
20325         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
20326         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
20327         a non-zero size.
20328         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
20329
20330 2010-01-31  Bruno Haible  <bruno@clisp.org>
20331
20332         Work around getline() bug on FreeBSD 8.0.
20333         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
20334         and a non-zero size.
20335         * tests/test-getline.c (main): Likewise.
20336         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
20337         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
20338
20339 2010-01-28  Eric Blake  <ebb9@byu.net>
20340
20341         regex: fix build failure
20342         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
20343         platforms.
20344
20345 2010-01-28  Jim Meyering  <meyering@redhat.com>
20346
20347         regex: do not ignore memory allocation failure
20348         * lib/regex_internal.c (create_cd_newstate): Detect
20349         re_node_set_init_copy failure.   Extracted from glibc commit
20350         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20351
20352         regex: sync more white-space changes from libc
20353         * lib/regex_internal.c: White-space only changes.
20354         * lib/regexec.c: Likewise.
20355
20356         regex: add many uses of __attribute_warn_unused_result__
20357         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
20358         * lib/regexec.c: Likewise.
20359         Extracted from a messy glibc commit.
20360
20361         regcomp.c: spelling and merge-artifact from glibc
20362         * lib/regcomp.c: Merge remainder of glibc's
20363         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20364
20365         regcomp.c: sync white-space changes from glibc
20366         * lib/regcomp.c: Merge to accommodate white space
20367         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20368
20369         regcomp.c: do not ignore internal return values
20370         * lib/regcomp.c: Do not ignore internal return values.
20371         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
20372         but without its white-space changes and spelling fixes.
20373
20374         regex_internal.h: define __attribute_warn_unused_result__
20375         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
20376
20377         maint: add a syntax-check rule to check for vulnerable Makefile.in
20378         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
20379
20380 2010-01-27  Jim Meyering  <meyering@redhat.com>
20381
20382         ncftpput-ftp: clean up spaces
20383         * build-aux/ncftpput-ftp: Make Copyright line consistent.
20384         Remove trailing blanks.
20385
20386 2010-01-27  Simon Josefsson  <simon@josefsson.org>
20387
20388         * build-aux/git-version-gen: Fix copyright statement.
20389         * build-aux/gnupload: Likewise.
20390         * tests/test-arcfour.c: Likewise.
20391         * tests/test-arctwo.c: Likewise.
20392         * tests/test-count-one-bits.c: Likewise.
20393         * tests/test-crc.c: Likewise.
20394         * tests/test-des.c: Likewise.
20395         * tests/test-gc-arcfour.c: Likewise.
20396         * tests/test-gc-arctwo.c: Likewise.
20397         * tests/test-gc-des.c: Likewise.
20398         * tests/test-gc-hmac-md5.c: Likewise.
20399         * tests/test-gc-hmac-sha1.c: Likewise.
20400         * tests/test-gc-md2.c: Likewise.
20401         * tests/test-gc-md4.c: Likewise.
20402         * tests/test-gc-md5.c: Likewise.
20403         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20404         * tests/test-gc-rijndael.c: Likewise.
20405         * tests/test-gc-sha1.c: Likewise.
20406         * tests/test-gc.c: Likewise.
20407         * tests/test-gethostname.c: Likewise.
20408         * tests/test-gettimeofday.c: Likewise.
20409         * tests/test-hash.c: Likewise.
20410         * tests/test-hmac-md5.c: Likewise.
20411         * tests/test-hmac-sha1.c: Likewise.
20412         * tests/test-md2.c: Likewise.
20413         * tests/test-md4.c: Likewise.
20414         * tests/test-md5.c: Likewise.
20415         * tests/test-memchr.c: Likewise.
20416         * tests/test-memchr2.c: Likewise.
20417         * tests/test-memcmp.c: Likewise.
20418         * tests/test-memmem.c: Likewise.
20419         * tests/test-memrchr.c: Likewise.
20420         * tests/test-rawmemchr.c: Likewise.
20421         * tests/test-read-file.c: Likewise.
20422         * tests/test-rijndael.c: Likewise.
20423         * tests/test-sockets.c: Likewise.
20424         * tests/test-strchrnul.c: Likewise.
20425         * tests/test-strstr.c: Likewise.
20426         * tests/test-strtod.c: Likewise.
20427         * build-aux/ncftpput-ftp: Likewise.
20428
20429 2010-01-26  Eric Blake  <ebb9@byu.net>
20430
20431         ignore-value: update recommended header name
20432         * modules/ignore-value (Include): Only use <> for headers that
20433         exist in glibc.
20434
20435 2010-01-26  Jim Meyering  <meyering@redhat.com>
20436
20437         test-userspec.c: avoid compiler warnings
20438         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20439         and "initialization discards qualifiers..." warnings.
20440         Put the first "uid" in its own scope, and make char* members "const".
20441
20442 2010-01-25  Bruno Haible  <bruno@clisp.org>
20443
20444         gnulib-tool: Make warning diagnostics consistent.
20445         * gnulib-tool (func_warning): New function.
20446         Use it everywhere where gnulib-tool produces output to stderr and it is
20447         not a fatal error.
20448
20449 2010-01-25  Bruno Haible  <bruno@clisp.org>
20450
20451         Fix test dependencies.
20452         * modules/xstrtol-tests (Depends-on): Add inttypes.
20453         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20454
20455 2010-01-25 Pádraig Brady <P@draigBrady.com>
20456
20457         syntax-check: detect incorrect boolean macro values in config.h
20458         * modules/maintainer-makefile (configure.ac): Parameterize the location
20459         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20460         The logic is from Eric Blake and the location indicated by Jim Meyering.
20461         Note the more natural CONFIG_HEADER name is prohibited by automake
20462         for backwards compatibility reasons.
20463         * top/maint.mk (sc_Wundef_boolean): New rule.
20464
20465 2010-01-25  Jim Meyering  <meyering@redhat.com>
20466
20467         bootstrap: detect MacOS 10.6's shasum, too
20468         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20469         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20470
20471 2010-01-23  Jim Meyering  <meyering@redhat.com>
20472
20473         xstrtoll: new module
20474         * modules/xstrtoll: New file.
20475         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20476         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20477         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20478         ./configure fails if you use this module and lack "long long".
20479         * modules/xstrtoll-tests: New module.
20480         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20481         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20482         new init.sh-based test framework.
20483
20484 2010-01-24  Bruno Haible  <bruno@clisp.org>
20485
20486         Tests for module 'yn'.
20487         * modules/yn-tests: New file.
20488         * tests/test-yn.c: New file.
20489
20490         Tests for module 'y1'.
20491         * modules/y1-tests: New file.
20492         * tests/test-y1.c: New file.
20493
20494         Tests for module 'y0'.
20495         * modules/y0-tests: New file.
20496         * tests/test-y0.c: New file.
20497
20498         Tests for module 'tanh'.
20499         * modules/tanh-tests: New file.
20500         * tests/test-tanh.c: New file.
20501
20502         Tests for module 'tan'.
20503         * modules/tan-tests: New file.
20504         * tests/test-tan.c: New file.
20505
20506         Tests for module 'sqrt'.
20507         * modules/sqrt-tests: New file.
20508         * tests/test-sqrt.c: New file.
20509
20510         Tests for module 'sinh'.
20511         * modules/sinh-tests: New file.
20512         * tests/test-sinh.c: New file.
20513
20514         Tests for module 'sin'.
20515         * modules/sin-tests: New file.
20516         * tests/test-sin.c: New file.
20517
20518         Tests for module 'rint'.
20519         * modules/rint-tests: New file.
20520         * tests/test-rint.c: New file.
20521
20522         Tests for module 'remainder'.
20523         * modules/remainder-tests: New file.
20524         * tests/test-remainder.c: New file.
20525
20526         Tests for module 'pow'.
20527         * modules/pow-tests: New file.
20528         * tests/test-pow.c: New file.
20529
20530         Tests for module 'nextafter'.
20531         * modules/nextafter-tests: New file.
20532         * tests/test-nextafter.c: New file.
20533
20534         Tests for module 'modf'.
20535         * modules/modf-tests: New file.
20536         * tests/test-modf.c: New file.
20537
20538         Tests for module 'logb'.
20539         * modules/logb-tests: New file.
20540         * tests/test-logb.c: New file.
20541
20542         Tests for module 'log1p'.
20543         * modules/log1p-tests: New file.
20544         * tests/test-log1p.c: New file.
20545
20546         Tests for module 'log10'.
20547         * modules/log10-tests: New file.
20548         * tests/test-log10.c: New file.
20549
20550         Tests for module 'log'.
20551         * modules/log-tests: New file.
20552         * tests/test-log.c: New file.
20553
20554         Tests for module 'lgamma'.
20555         * modules/lgamma-tests: New file.
20556         * tests/test-lgamma.c: New file.
20557
20558         Tests for module 'ldexp'.
20559         * modules/ldexp-tests: New file.
20560         * tests/test-ldexp.c: New file.
20561
20562         Tests for module 'jn'.
20563         * modules/jn-tests: New file.
20564         * tests/test-jn.c: New file.
20565
20566         Tests for module 'j1'.
20567         * modules/j1-tests: New file.
20568         * tests/test-j1.c: New file.
20569
20570         Tests for module 'j0'.
20571         * modules/j0-tests: New file.
20572         * tests/test-j0.c: New file.
20573
20574         Tests for module 'hypot'.
20575         * modules/hypot-tests: New file.
20576         * tests/test-hypot.c: New file.
20577
20578         Tests for module 'fmod'.
20579         * modules/fmod-tests: New file.
20580         * tests/test-fmod.c: New file.
20581
20582         Tests for module 'fabs'.
20583         * modules/fabs-tests: New file.
20584         * tests/test-fabs.c: New file.
20585
20586         Tests for module 'exp'.
20587         * modules/exp-tests: New file.
20588         * tests/test-exp.c: New file.
20589
20590         Tests for module 'erfc'.
20591         * modules/erfc-tests: New file.
20592         * tests/test-erfc.c: New file.
20593
20594         Tests for module 'erf'.
20595         * modules/erf-tests: New file.
20596         * tests/test-erf.c: New file.
20597
20598         Tests for module 'cosh'.
20599         * modules/cosh-tests: New file.
20600         * tests/test-cosh.c: New file.
20601
20602         Tests for module 'cos'.
20603         * modules/cos-tests: New file.
20604         * tests/test-cos.c: New file.
20605
20606         Tests for module 'copysign'.
20607         * modules/copysign-tests: New file.
20608         * tests/test-copysign.c: New file.
20609
20610         Tests for module 'cbrt'.
20611         * modules/cbrt-tests: New file.
20612         * tests/test-cbrt.c: New file.
20613
20614         Tests for module 'atan2'.
20615         * modules/atan2-tests: New file.
20616         * tests/test-atan2.c: New file.
20617
20618         Tests for module 'atan'.
20619         * modules/atan-tests: New file.
20620         * tests/test-atan.c: New file.
20621
20622         Tests for module 'asin'.
20623         * modules/asin-tests: New file.
20624         * tests/test-asin.c: New file.
20625
20626         Tests for module 'acos'.
20627         * modules/acos-tests: New file.
20628         * tests/test-acos.c: New file.
20629
20630 2010-01-24  Bruno Haible  <bruno@clisp.org>
20631
20632         Fix tests for common <math.h> functions.
20633         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20634         code snippet that references the function pointer, rather than merely
20635         calling the function. Substitute the FUNC_LIBM variable.
20636         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20637         * modules/acos (configure.ac): Likewise.
20638         * modules/asin (configure.ac): Likewise.
20639         * modules/atan (configure.ac): Likewise.
20640         * modules/atan2 (configure.ac): Likewise.
20641         * modules/cbrt (configure.ac): Likewise.
20642         * modules/copysign (configure.ac): Likewise.
20643         * modules/cos (configure.ac): Likewise.
20644         * modules/cosh (configure.ac): Likewise.
20645         * modules/erf (configure.ac): Likewise.
20646         * modules/erfc (configure.ac): Likewise.
20647         * modules/exp (configure.ac): Likewise.
20648         * modules/fabs (configure.ac): Likewise.
20649         * modules/fmod (configure.ac): Likewise.
20650         * modules/hypot (configure.ac): Likewise.
20651         * modules/j0 (configure.ac): Likewise.
20652         * modules/j1 (configure.ac): Likewise.
20653         * modules/jn (configure.ac): Likewise.
20654         * modules/ldexp (configure.ac): Likewise.
20655         * modules/lgamma (configure.ac): Likewise.
20656         * modules/log (configure.ac): Likewise.
20657         * modules/log10 (configure.ac): Likewise.
20658         * modules/log1p (configure.ac): Likewise.
20659         * modules/logb (configure.ac): Likewise.
20660         * modules/modf (configure.ac): Likewise.
20661         * modules/nextafter (configure.ac): Likewise.
20662         * modules/pow (configure.ac): Likewise.
20663         * modules/remainder (configure.ac): Likewise.
20664         * modules/rint (configure.ac): Likewise.
20665         * modules/sin (configure.ac): Likewise.
20666         * modules/sinh (configure.ac): Likewise.
20667         * modules/tan (configure.ac): Likewise.
20668         * modules/tanh (configure.ac): Likewise.
20669         * modules/y0 (configure.ac): Likewise.
20670         * modules/y1 (configure.ac): Likewise.
20671         * modules/yn (configure.ac): Likewise.
20672
20673 2010-01-24  Bruno Haible  <bruno@clisp.org>
20674
20675         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20676         * tests/test-acosl.c (x): New variable.
20677         (main): Store argument in x and fetch it from x.
20678         * tests/test-asinl.c (x): New variable.
20679         (main): Store argument in x and fetch it from x.
20680         * tests/test-atanl.c (x): New variable.
20681         (main): Store argument in x and fetch it from x.
20682         * tests/test-cosl.c (x): New variable.
20683         (main): Store argument in x and fetch it from x.
20684         * tests/test-expl.c (x): New variable.
20685         (main): Store argument in x and fetch it from x.
20686         * tests/test-logl.c (x): New variable.
20687         (main): Store argument in x and fetch it from x.
20688         * tests/test-sinl.c (x): New variable.
20689         (main): Store argument in x and fetch it from x.
20690         * tests/test-sqrtl.c (x): New variable.
20691         (main): Store argument in x and fetch it from x.
20692         * tests/test-tanl.c (x): New variable.
20693         (main): Store argument in x and fetch it from x.
20694
20695 2010-01-24  Bruno Haible  <bruno@clisp.org>
20696
20697         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20698         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20699         assignments to the initial TESTS_ENVIRONMENT.
20700         * doc/gnulib.texi (Unit test modules): Document it.
20701         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20702         TESTS_ENVIRONMENT.
20703         * modules/btowc-tests (Makefile.am): Likewise.
20704         * modules/c-stack-tests (Makefile.am): Likewise.
20705         * modules/c-strcase-tests (Makefile.am): Likewise.
20706         * modules/copy-file-tests (Makefile.am): Likewise.
20707         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20708         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20709         * modules/mbrtowc-tests (Makefile.am): Likewise.
20710         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20711         * modules/mbscasestr-tests (Makefile.am): Likewise.
20712         * modules/mbschr-tests (Makefile.am): Likewise.
20713         * modules/mbscspn-tests (Makefile.am): Likewise.
20714         * modules/mbsinit-tests (Makefile.am): Likewise.
20715         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20716         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20717         * modules/mbspbrk-tests (Makefile.am): Likewise.
20718         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20719         * modules/mbsrchr-tests (Makefile.am): Likewise.
20720         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20721         * modules/mbsspn-tests (Makefile.am): Likewise.
20722         * modules/mbsstr-tests (Makefile.am): Likewise.
20723         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20724         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20725         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20726         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20727         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20728         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20729         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20730         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20731         * modules/wcrtomb-tests (Makefile.am): Likewise.
20732         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20733         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20734         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20735         assignments from TESTS_ENVIRONMENT.
20736         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20737         augmentation.
20738         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20739         * modules/atexit-tests (Makefile.am): Likewise.
20740         * modules/binary-io-tests (Makefile.am): Likewise.
20741         * modules/closein-tests (Makefile.am): Likewise.
20742         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20743         * modules/exclude-tests (Makefile.am): Likewise.
20744         * modules/fflush-tests (Makefile.am): Likewise.
20745         * modules/fpending-tests (Makefile.am): Likewise.
20746         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20747         * modules/freadahead-tests (Makefile.am): Likewise.
20748         * modules/freadptr-tests (Makefile.am): Likewise.
20749         * modules/freadseek-tests (Makefile.am): Likewise.
20750         * modules/fseek-tests (Makefile.am): Likewise.
20751         * modules/fseeko-tests (Makefile.am): Likewise.
20752         * modules/ftell-tests (Makefile.am): Likewise.
20753         * modules/ftello-tests (Makefile.am): Likewise.
20754         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20755         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20756         * modules/lseek-tests (Makefile.am): Likewise.
20757         * modules/parse-duration-tests (Makefile.am): Likewise.
20758         * modules/perror-tests (Makefile.am): Likewise.
20759         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20760         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20761         * modules/pipe-tests (Makefile.am): Likewise.
20762         * modules/pread-tests (Makefile.am): Likewise.
20763         * modules/printf-posix-tests (Makefile.am): Likewise.
20764         * modules/select-tests (Makefile.am): Likewise.
20765         * modules/sigpipe-tests (Makefile.am): Likewise.
20766         * modules/tsearch-tests (Makefile.am): Likewise.
20767         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20768         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20769         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20770         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20771         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20772         * modules/version-etc-tests (Makefile.am): Likewise.
20773         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20774         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20775         * modules/xalloc-die-tests (Makefile.am): Likewise.
20776         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20777         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20778         * modules/xstrtol-tests (Makefile.am): Likewise.
20779         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20780         * modules/yesno-tests (Makefile.am): Likewise.
20781         Suggested by Jim Meyering.
20782
20783 2010-01-24  Bruno Haible  <bruno@clisp.org>
20784
20785         More documentation.
20786         * doc/gnulib.texi (Writing modules): New chapter.
20787         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20788         the new chapter.
20789
20790 2010-01-24  Jim Meyering  <meyering@redhat.com>
20791
20792         maint.mk: do not prepend "./" after filtering
20793         * top/maint.mk (_prepend_srcdir_prefix): New variable
20794         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20795         "./" when $(srcdir) is ".".
20796
20797         define STREQ(a,b) consistently, removing useless parentheses
20798         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20799         since the only risk is that "a" or "b" contains an unparenthesized
20800         comma, but if either did that, STREQ would have 3 or more arguments.
20801         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20802         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20803         * lib/hash-triple.c (STREQ): Likewise.
20804         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20805         * lib/getugroups.c (STREQ): Likewise.
20806
20807 2010-01-23  Jim Meyering  <meyering@redhat.com>
20808
20809         maint.mk: fix syntax-check in a non-srcdir build directory
20810         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20811         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20812
20813 2010-01-22  Jim Meyering  <meyering@redhat.com>
20814
20815         userspec: add unit tests
20816         * tests/test-userspec.c: New file.
20817         * modules/userspec-tests: Likewise.
20818
20819 2010-01-21  Jim Meyering  <meyering@redhat.com>
20820
20821         maint.mk: handle source file names containing "." robustly
20822         * top/maint.mk (_dot_escaped_srcdir): Define.
20823         (VC_LIST): Use it in LHS of sed substitution.
20824
20825 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20826
20827         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20828         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20829         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20830         from a non-srcdir build.
20831
20832 2010-01-20  Eric Blake  <ebb9@byu.net>
20833
20834         warn-on-use: use instead of link-warning
20835         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20836         * modules/unistd (Depends-on, Makefile.am): Likewise.
20837         * modules/arpa_inet (Depends-on): Replace link-warning with
20838         warn-on-use.
20839         (Makefile.am): Update rules accordingly.
20840         * modules/ctype (Depends-on, Makefile.am): Likewise.
20841         * modules/dirent (Depends-on, Makefile.am): Likewise.
20842         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20843         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20844         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20845         * modules/locale (Depends-on, Makefile.am): Likewise.
20846         * modules/math (Depends-on, Makefile.am): Likewise.
20847         * modules/search (Depends-on, Makefile.am): Likewise.
20848         * modules/signal (Depends-on, Makefile.am): Likewise.
20849         * modules/spawn (Depends-on, Makefile.am): Likewise.
20850         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20851         * modules/string (Depends-on, Makefile.am): Likewise.
20852         * modules/strings (Depends-on, Makefile.am): Likewise.
20853         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20854         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20855         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20856         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20857         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20858         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20859         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20860         * modules/wchar (Depends-on, Makefile.am): Likewise.
20861         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20862         should be poisoned.
20863         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20864         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20865         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20866         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20867         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20868         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20869         * m4/math_h.m4 (gl_MATH_H): Likewise.
20870         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20871         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20872         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20873         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20874         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20875         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20876         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20877         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20878         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20879         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20880         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20881         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20882         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20883         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20884         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20885         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20886         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20887         GL_LINK_WARNING.
20888         * lib/ctype.in.h: Likewise.
20889         * lib/dirent.in.h: Likewise.
20890         * lib/fcntl.in.h: Likewise.
20891         * lib/inttypes.in.h: Likewise.
20892         * lib/langinfo.in.h: Likewise.
20893         * lib/locale.in.h: Likewise.
20894         * lib/math.in.h: Likewise.
20895         * lib/search.in.h: Likewise.
20896         * lib/signal.in.h: Likewise.
20897         * lib/spawn.in.h: Likewise.
20898         * lib/stdio.in.h: Likewise.
20899         * lib/stdlib.in.h: Likewise.
20900         * lib/string.in.h: Likewise.
20901         * lib/strings.in.h: Likewise.
20902         * lib/sys_file.in.h: Likewise.
20903         * lib/sys_ioctl.in.h: Likewise.
20904         * lib/sys_select.in.h: Likewise.
20905         * lib/sys_socket.in.h: Likewise.
20906         * lib/sys_stat.in.h: Likewise.
20907         * lib/sys_times.in.h: Likewise.
20908         * lib/sys_utsname.in.h: Likewise.
20909         * lib/unistd.in.h: Likewise.
20910         * lib/wchar.in.h: Likewise.
20911
20912 2010-01-20  Bruno Haible  <bruno@clisp.org>
20913
20914         Avoid duplicate -lm.
20915         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20916         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20917         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20918         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20919         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20920         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20921         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20922         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20923         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20924         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20925         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20926         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20927         Reported by Paolo Bonzini.
20928
20929 2010-01-19  Bruno Haible  <bruno@clisp.org>
20930
20931         langinfo, nl_langinfo: Relicense under LGPLv2+.
20932         * modules/langinfo (License): Change to LGPLv2+.
20933         * modules/nl_langinfo (License): Likewise.
20934         Patch by David Lutterkort <lutter@redhat.com>.
20935
20936 2010-01-19  Bruno Haible  <bruno@clisp.org>
20937
20938         Avoid compilation error with cc on OSF/1 5.1.
20939         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20940         statement, not before.
20941         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20942
20943 2010-01-18  Bruno Haible  <bruno@clisp.org>
20944
20945         Avoid a link error due to the __printf__ symbol.
20946         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20947         and 2.6.x.
20948         (__format__, __printf__): Remove definitions.
20949         * lib/argp-fmtstream.h: Likewise.
20950         * lib/argp.h: Likewise.
20951         * lib/error.h: Likewise.
20952         * lib/vasnprintf.h: Likewise.
20953         * lib/xprintf.h: Likewise.
20954         * lib/xvasprintf.h: Likewise.
20955         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20956
20957 2010-01-18  Bruno Haible  <bruno@clisp.org>
20958
20959         Tests for module 'tanl'.
20960         * modules/tanl-tests: New file.
20961         * tests/test-tanl.c: New file.
20962
20963         Tests for module 'sqrtl'.
20964         * modules/sqrtl-tests: New file.
20965         * tests/test-sqrtl.c: New file.
20966
20967         Tests for module 'sinl'.
20968         * modules/sinl-tests: New file.
20969         * tests/test-sinl.c: New file.
20970
20971         Tests for module 'logl'.
20972         * modules/logl-tests: New file.
20973         * tests/test-logl.c: New file.
20974
20975         Tests for module 'expl'.
20976         * modules/expl-tests: New file.
20977         * tests/test-expl.c: New file.
20978
20979         Tests for module 'cosl'.
20980         * modules/cosl-tests: New file.
20981         * tests/test-cosl.c: New file.
20982
20983         Tests for module 'atanl'.
20984         * modules/atanl-tests: New file.
20985         * tests/test-atanl.c: New file.
20986
20987         Tests for module 'asinl'.
20988         * modules/asinl-tests: New file.
20989         * tests/test-asinl.c: New file.
20990
20991         Tests for module 'acosl'.
20992         * modules/acosl-tests: New file.
20993         * tests/test-acosl.c: New file.
20994
20995         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20996         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20997         tanl): Use the standard gnulib idiom.
20998         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20999         * lib/sinl.c: Likewise.
21000         * lib/tanl.c: Don't include trigl.c.
21001         (kernel_tanl): Make static.
21002         * lib/sincosl.c: Include trigl.h first.
21003         * lib/trigl.c: Likewise.
21004         * m4/acosl.m4: New file.
21005         * m4/asinl.m4: New file.
21006         * m4/atanl.m4: New file.
21007         * m4/cosl.m4: New file.
21008         * m4/expl.m4: New file.
21009         * m4/logl.m4: New file.
21010         * m4/sinl.m4: New file.
21011         * m4/sqrtl.m4: New file.
21012         * m4/tanl.m4: New file.
21013         * m4/mathl.m4: Remove file.
21014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
21015         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21016         Don't initialize GNULIB_MATHL.
21017         * modules/acosl: New file.
21018         * modules/asinl: New file.
21019         * modules/atanl: New file.
21020         * modules/cosl: New file.
21021         * modules/expl: New file.
21022         * modules/logl: New file.
21023         * modules/sinl: New file.
21024         * modules/sqrtl: New file.
21025         * modules/tanl: New file.
21026         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
21027         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
21028         substitute GNULIB_MATHL.
21029         * modules/mathl: Rewritten.
21030         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
21031         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
21032         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
21033         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
21034         * doc/posix-functions/expl.texi: Mention the 'expl' module.
21035         * doc/posix-functions/logl.texi: Mention the 'logl' module.
21036         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
21037         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
21038         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
21039
21040 2010-01-18  Bruno Haible  <bruno@clisp.org>
21041
21042         sqrt: Make gl_FUNC_SQRT requirable.
21043         * m4/sqrt.m4: New file.
21044         * modules/sqrt (Files): Add it.
21045         (configure.ac): Invoke gl_FUNC_SQRT.
21046
21047 2010-01-18  Bruno Haible  <bruno@clisp.org>
21048
21049         New modules for common <math.h> functions.
21050         * m4/mathfunc.m4: New file.
21051         * modules/acos: New file.
21052         * modules/asin: New file.
21053         * modules/atan: New file.
21054         * modules/atan2: New file.
21055         * modules/cbrt: New file.
21056         * modules/copysign: New file.
21057         * modules/cos: New file.
21058         * modules/cosh: New file.
21059         * modules/erf: New file.
21060         * modules/erfc: New file.
21061         * modules/exp: New file.
21062         * modules/fabs: New file.
21063         * modules/fmod: New file.
21064         * modules/hypot: New file.
21065         * modules/j0: New file.
21066         * modules/j1: New file.
21067         * modules/jn: New file.
21068         * modules/ldexp: New file.
21069         * modules/lgamma: New file.
21070         * modules/log: New file.
21071         * modules/log10: New file.
21072         * modules/log1p: New file.
21073         * modules/logb: New file.
21074         * modules/modf: New file.
21075         * modules/nextafter: New file.
21076         * modules/pow: New file.
21077         * modules/remainder: New file.
21078         * modules/rint: New file.
21079         * modules/sin: New file.
21080         * modules/sinh: New file.
21081         * modules/sqrt: New file.
21082         * modules/tan: New file.
21083         * modules/tanh: New file.
21084         * modules/y0: New file.
21085         * modules/y1: New file.
21086         * modules/yn: New file.
21087         * doc/posix-functions/acos.texi: Mention the 'acos' module.
21088         * doc/posix-functions/asin.texi: Mention the 'asin' module.
21089         * doc/posix-functions/atan.texi: Mention the 'atan' module.
21090         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
21091         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
21092         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
21093         * doc/posix-functions/cos.texi: Mention the 'cos' module.
21094         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
21095         * doc/posix-functions/erf.texi: Mention the 'erf' module.
21096         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
21097         * doc/posix-functions/exp.texi: Mention the 'exp' module.
21098         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
21099         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
21100         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
21101         * doc/posix-functions/j0.texi: Mention the 'j0' module.
21102         * doc/posix-functions/j1.texi: Mention the 'j1' module.
21103         * doc/posix-functions/jn.texi: Mention the 'jn' module.
21104         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
21105         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
21106         * doc/posix-functions/log.texi: Mention the 'log' module.
21107         * doc/posix-functions/log10.texi: Mention the 'log10' module.
21108         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
21109         * doc/posix-functions/logb.texi: Mention the 'logb' module.
21110         * doc/posix-functions/modf.texi: Mention the 'modf' module.
21111         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
21112         * doc/posix-functions/pow.texi: Mention the 'pow' module.
21113         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
21114         * doc/posix-functions/rint.texi: Mention the 'rint' module.
21115         * doc/posix-functions/sin.texi: Mention the 'sin' module.
21116         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
21117         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
21118         * doc/posix-functions/tan.texi: Mention the 'tan' module.
21119         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
21120         * doc/posix-functions/y0.texi: Mention the 'y0' module.
21121         * doc/posix-functions/y1.texi: Mention the 'y1' module.
21122         * doc/posix-functions/yn.texi: Mention the 'yn' module.
21123
21124 2010-01-18  Jim Meyering  <meyering@redhat.com>
21125
21126         ignore-value: relax license to LGPLv2+
21127         * modules/ignore-value (License): Relax to LGPLv2+.
21128
21129         getdate: don't leak when TZ contains two or more '"'s
21130         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
21131         double quote in TZ after the first one.
21132
21133         readtokens: do not leak internal token_lengths buffer
21134         * lib/readtokens.c (readtokens): Free the local, lengths,
21135         when the supplied "token_lengths" parameter is NULL.
21136
21137 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21138
21139         Fix a couple of missing LIBTHREAD link failures on AIX.
21140         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
21141         $(LIBTHREAD).
21142         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
21143
21144         Link test-poll against INET_PTON_LIB.
21145         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
21146         for inet_pton on Solaris 10.
21147
21148 2010-01-17  Bruno Haible  <bruno@clisp.org>
21149
21150         unistdio/*-sprintf: Fix typo in module description.
21151         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
21152         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
21153         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
21154         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
21155         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
21156         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
21157         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
21158         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21159
21160 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21161
21162         gnulib-tool: fix filelist for AIX, HP-UX ksh.
21163         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
21164         variables in shell case patterns, for AIX and HP-UX ksh.
21165
21166         Split large sed scripts, for HP-UX sed.
21167         * modules/stdio: Split sed scripts around 50 sed commands,
21168         to avoid HP-UX limit of 99 commands, in the near future.
21169         * modules/string: Likewise.
21170         * modules/unistd: Likewise.
21171
21172         gnulib-tool: avoid writing in the current directory.
21173         * gnulib-tool (func_emit_lib_Makefile_am)
21174         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
21175         not in the current directory, so concurrent gnulib-tool
21176         instances do not interfere.
21177
21178 2010-01-16  Jim Meyering  <meyering@redhat.com>
21179
21180         doc: update users.txt
21181         * users.txt: Add grep.
21182         (diffutils, gzip): Update URLs.
21183
21184 2010-01-12  Bruno Haible  <bruno@clisp.org>
21185
21186         posix_spawn: Avoid test failure on Cygwin.
21187         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
21188         characters.
21189         Reported by Simon Josefsson.
21190
21191 2010-01-12  Bruno Haible  <bruno@clisp.org>
21192
21193         * tests/test-cond.c (main): When skipping the test, show the reason.
21194
21195 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21196
21197         * lib/striconv.c (str_cd_iconv): Avoid if before free.
21198
21199 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21200
21201         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
21202         VC_LIST_ALWAYS_EXCLUDE_REGEX.
21203
21204 2010-01-12  Eric Blake  <ebb9@byu.net>
21205
21206         build: guarantee AS_VAR_IF
21207         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
21208         (gl_AS_VAR_IF): Move...
21209         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
21210         Reported by Simon Josefsson.
21211
21212 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21213
21214         * lib/stdio.in.h: Fix typo.
21215
21216 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21217
21218         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21219         libgpg-error.
21220
21221 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21222
21223         * tests/test-xalloc-die.sh: Use $EXEEXT.
21224
21225 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21226             Bruno Haible  <bruno@clisp.org>
21227
21228         getlogin, getlogin_r: Avoid test failure.
21229         * tests/test-getlogin.c: Include <stdio.h>.
21230         (main): Skip the test when the function fails because stdin is not a
21231         tty.
21232         * tests/test-getlogin_r.c: Include <stdio.h>.
21233         (main): Skip the test when the function fails because stdin is not a
21234         tty.
21235
21236 2010-01-11  Eric Blake  <ebb9@byu.net>
21237
21238         tests: avoid more large file warnings
21239         * tests/test-fflush.c: Avoid warning about ftell use.
21240         * tests/test-fseek.c: Avoid warning about fseek use.
21241
21242 2010-01-10  Bruno Haible  <bruno@clisp.org>
21243
21244         nproc: Work better on Linux when /proc and /sys are not mounted.
21245         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
21246         as lower bound when, on glibc/Linux systems,
21247         sysconf (_SC_NPROCESSORS_CONF) returns 1.
21248         Suggested by Pádraig Brady <P@draigbrady.com>.
21249         Reported by Dmitry V. Levin <ldv@altlinux.org>.
21250
21251         nproc: Refactor.
21252         * lib/nproc.c (num_processors_via_affinity_mask): New function,
21253         extracted from num_processors.
21254         (num_processors): Call it.
21255
21256 2010-01-11  Jim Meyering  <meyering@redhat.com>
21257
21258         utimecmp: avoid new warning from upcoming gcc-4.5.0
21259         * lib/utimecmp.c (BILLION): Define using #define rather than an
21260         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
21261
21262 2010-01-11  Eric Blake  <ebb9@byu.net>
21263
21264         math: add portability warnings for classification macros
21265         * modules/math (Depends-on): Add warn-on-use.
21266         (Makefile.am): Provide new substitutions.
21267         * m4/math_h.m4 (gl_MATH_H): Require inline.
21268         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
21269         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
21270         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
21271         implement warnings.
21272
21273         unistd: warn on use of environ without module
21274         * modules/unistd (Depends-on): Add warn-on-use.
21275         (Makefile.am): Provide new substitutions.
21276         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
21277         * lib/unistd.in.h (environ): Wrap with a warning helper function.
21278
21279         stdio: warn on suspicious uses
21280         * modules/stdio (Depends-on): Add warn-on-use.
21281         (Makefile.am): Provide new substitutions.
21282         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
21283         fseeko.
21284         * lib/stdio.in.h (gets): Always warn on use.
21285         (fseek, ftell): Adjust when warnings are issued, and honor
21286         _GL_NO_LARGE_FILES as a way to silence the warning.
21287         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
21288         any warning about large file offsets.
21289         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
21290         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
21291         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
21292         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
21293         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
21294         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
21295         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
21296         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
21297
21298         warn-on-use: new module
21299         * modules/warn-on-use: New file.
21300         * build-aux/warn-on-use.h: Likewise.
21301         * m4/warn-on-use.m4: Likewise.
21302         * MODULES.html.sh (Support for building): Mention it.
21303
21304 2010-01-10  Bruno Haible  <bruno@clisp.org>
21305
21306         Tests for module 'unistr/u32-strdup'.
21307         * modules/unistr/u32-strdup-tests: New file.
21308         * tests/unistr/test-u32-strdup.c: New file.
21309
21310         Tests for module 'unistr/u16-strdup'.
21311         * modules/unistr/u16-strdup-tests: New file.
21312         * tests/unistr/test-u16-strdup.c: New file.
21313
21314         Tests for module 'unistr/u8-strdup'.
21315         * modules/unistr/u8-strdup-tests: New file.
21316         * tests/unistr/test-u8-strdup.c: New file.
21317         * tests/unistr/test-strdup.h: New file.
21318
21319         Tests for module 'unistr/u32-strncmp'.
21320         * modules/unistr/u32-strncmp-tests: New file.
21321         * tests/unistr/test-u32-strncmp.c: New file.
21322
21323         Tests for module 'unistr/u16-strncmp'.
21324         * modules/unistr/u16-strncmp-tests: New file.
21325         * tests/unistr/test-u16-strncmp.c: New file.
21326
21327         Tests for module 'unistr/u8-strncmp'.
21328         * modules/unistr/u8-strncmp-tests: New file.
21329         * tests/unistr/test-u8-strncmp.c: New file.
21330         * tests/unistr/test-strncmp.h: New file.
21331
21332         Tests for module 'unistr/u32-strcoll'.
21333         * modules/unistr/u32-strcoll-tests: New file.
21334         * tests/unistr/test-u32-strcoll.c: New file.
21335
21336         Tests for module 'unistr/u16-strcoll'.
21337         * modules/unistr/u16-strcoll-tests: New file.
21338         * tests/unistr/test-u16-strcoll.c: New file.
21339
21340         Tests for module 'unistr/u8-strcoll'.
21341         * modules/unistr/u8-strcoll-tests: New file.
21342         * tests/unistr/test-u8-strcoll.c: New file.
21343
21344         Tests for module 'unistr/u32-strcmp'.
21345         * modules/unistr/u32-strcmp-tests: New file.
21346         * tests/unistr/test-u32-strcmp.c: New file.
21347         * tests/unistr/test-u32-strcmp.h: New file.
21348
21349         Tests for module 'unistr/u16-strcmp'.
21350         * modules/unistr/u16-strcmp-tests: New file.
21351         * tests/unistr/test-u16-strcmp.c: New file.
21352         * tests/unistr/test-u16-strcmp.h: New file.
21353
21354         Tests for module 'unistr/u8-strcmp'.
21355         * modules/unistr/u8-strcmp-tests: New file.
21356         * tests/unistr/test-u8-strcmp.c: New file.
21357         * tests/unistr/test-u8-strcmp.h: New file.
21358         * tests/unistr/test-strcmp.h: New file.
21359
21360         Tests for module 'unistr/u32-strncat'.
21361         * modules/unistr/u32-strncat-tests: New file.
21362         * tests/unistr/test-u32-strncat.c: New file.
21363
21364         Tests for module 'unistr/u16-strncat'.
21365         * modules/unistr/u16-strncat-tests: New file.
21366         * tests/unistr/test-u16-strncat.c: New file.
21367
21368         Tests for module 'unistr/u8-strncat'.
21369         * modules/unistr/u8-strncat-tests: New file.
21370         * tests/unistr/test-u8-strncat.c: New file.
21371         * tests/unistr/test-strncat.h: New file.
21372
21373         Tests for module 'unistr/u32-strcat'.
21374         * modules/unistr/u32-strcat-tests: New file.
21375         * tests/unistr/test-u32-strcat.c: New file.
21376
21377         Tests for module 'unistr/u16-strcat'.
21378         * modules/unistr/u16-strcat-tests: New file.
21379         * tests/unistr/test-u16-strcat.c: New file.
21380
21381         Tests for module 'unistr/u8-strcat'.
21382         * modules/unistr/u8-strcat-tests: New file.
21383         * tests/unistr/test-u8-strcat.c: New file.
21384         * tests/unistr/test-strcat.h: New file.
21385
21386         Tests for module 'unistr/u32-stpncpy'.
21387         * modules/unistr/u32-stpncpy-tests: New file.
21388         * tests/unistr/test-u32-stpncpy.c: New file.
21389
21390         Tests for module 'unistr/u16-stpncpy'.
21391         * modules/unistr/u16-stpncpy-tests: New file.
21392         * tests/unistr/test-u16-stpncpy.c: New file.
21393
21394         Tests for module 'unistr/u8-stpncpy'.
21395         * modules/unistr/u8-stpncpy-tests: New file.
21396         * tests/unistr/test-u8-stpncpy.c: New file.
21397         * tests/unistr/test-stpncpy.h: New file.
21398
21399         Tests for module 'unistr/u32-strncpy'.
21400         * modules/unistr/u32-strncpy-tests: New file.
21401         * tests/unistr/test-u32-strncpy.c: New file.
21402
21403         Tests for module 'unistr/u16-strncpy'.
21404         * modules/unistr/u16-strncpy-tests: New file.
21405         * tests/unistr/test-u16-strncpy.c: New file.
21406
21407         Tests for module 'unistr/u8-strncpy'.
21408         * modules/unistr/u8-strncpy-tests: New file.
21409         * tests/unistr/test-u8-strncpy.c: New file.
21410         * tests/unistr/test-strncpy.h: New file.
21411
21412         Tests for module 'unistr/u32-stpcpy'.
21413         * modules/unistr/u32-stpcpy-tests: New file.
21414         * tests/unistr/test-u32-stpcpy.c: New file.
21415
21416         Tests for module 'unistr/u16-stpcpy'.
21417         * modules/unistr/u16-stpcpy-tests: New file.
21418         * tests/unistr/test-u16-stpcpy.c: New file.
21419
21420         Tests for module 'unistr/u8-stpcpy'.
21421         * modules/unistr/u8-stpcpy-tests: New file.
21422         * tests/unistr/test-u8-stpcpy.c: New file.
21423         * tests/unistr/test-stpcpy.h: New file.
21424
21425         Tests for module 'unistr/u32-strcpy'.
21426         * modules/unistr/u32-strcpy-tests: New file.
21427         * tests/unistr/test-u32-strcpy.c: New file.
21428
21429         Tests for module 'unistr/u16-strcpy'.
21430         * modules/unistr/u16-strcpy-tests: New file.
21431         * tests/unistr/test-u16-strcpy.c: New file.
21432
21433         Tests for module 'unistr/u8-strcpy'.
21434         * modules/unistr/u8-strcpy-tests: New file.
21435         * tests/unistr/test-u8-strcpy.c: New file.
21436         * tests/unistr/test-strcpy.h: New file.
21437
21438         Tests for module 'unistr/u32-strnlen'.
21439         * modules/unistr/u32-strnlen-tests: New file.
21440         * tests/unistr/test-u32-strnlen.c: New file.
21441
21442         Tests for module 'unistr/u16-strnlen'.
21443         * modules/unistr/u16-strnlen-tests: New file.
21444         * tests/unistr/test-u16-strnlen.c: New file.
21445
21446         Tests for module 'unistr/u8-strnlen'.
21447         * modules/unistr/u8-strnlen-tests: New file.
21448         * tests/unistr/test-u8-strnlen.c: New file.
21449         * tests/unistr/test-strnlen.h: New file.
21450
21451         Tests for module 'unistr/u32-strlen'.
21452         * modules/unistr/u32-strlen-tests: New file.
21453         * tests/unistr/test-u32-strlen.c: New file.
21454
21455         Tests for module 'unistr/u16-strlen'.
21456         * modules/unistr/u16-strlen-tests: New file.
21457         * tests/unistr/test-u16-strlen.c: New file.
21458
21459         Tests for module 'unistr/u8-strlen'.
21460         * modules/unistr/u8-strlen-tests: New file.
21461         * tests/unistr/test-u8-strlen.c: New file.
21462
21463         Tests for module 'unistr/u32-prev'.
21464         * modules/unistr/u32-prev-tests: New file.
21465         * tests/unistr/test-u32-prev.c: New file.
21466
21467         Tests for module 'unistr/u16-prev'.
21468         * modules/unistr/u16-prev-tests: New file.
21469         * tests/unistr/test-u16-prev.c: New file.
21470
21471         Tests for module 'unistr/u8-prev'.
21472         * modules/unistr/u8-prev-tests: New file.
21473         * tests/unistr/test-u8-prev.c: New file.
21474
21475         Tests for module 'unistr/u32-next'.
21476         * modules/unistr/u32-next-tests: New file.
21477         * tests/unistr/test-u32-next.c: New file.
21478
21479         Tests for module 'unistr/u16-next'.
21480         * modules/unistr/u16-next-tests: New file.
21481         * tests/unistr/test-u16-next.c: New file.
21482
21483         Tests for module 'unistr/u8-next'.
21484         * modules/unistr/u8-next-tests: New file.
21485         * tests/unistr/test-u8-next.c: New file.
21486
21487         Tests for module 'unistr/u32-strmbtouc'.
21488         * modules/unistr/u32-strmbtouc-tests: New file.
21489         * tests/unistr/test-u32-strmbtouc.c: New file.
21490
21491         Tests for module 'unistr/u16-strmbtouc'.
21492         * modules/unistr/u16-strmbtouc-tests: New file.
21493         * tests/unistr/test-u16-strmbtouc.c: New file.
21494
21495         Tests for module 'unistr/u8-strmbtouc'.
21496         * modules/unistr/u8-strmbtouc-tests: New file.
21497         * tests/unistr/test-u8-strmbtouc.c: New file.
21498
21499         Tests for module 'unistr/u32-strmblen'.
21500         * modules/unistr/u32-strmblen-tests: New file.
21501         * tests/unistr/test-u32-strmblen.c: New file.
21502
21503         Tests for module 'unistr/u16-strmblen'.
21504         * modules/unistr/u16-strmblen-tests: New file.
21505         * tests/unistr/test-u16-strmblen.c: New file.
21506
21507         Tests for module 'unistr/u8-strmblen'.
21508         * modules/unistr/u8-strmblen-tests: New file.
21509         * tests/unistr/test-u8-strmblen.c: New file.
21510
21511         Tests for module 'unistr/u32-cpy-alloc'.
21512         * modules/unistr/u32-cpy-alloc-tests: New file.
21513         * tests/unistr/test-u32-cpy-alloc.c: New file.
21514
21515         Tests for module 'unistr/u16-cpy-alloc'.
21516         * modules/unistr/u16-cpy-alloc-tests: New file.
21517         * tests/unistr/test-u16-cpy-alloc.c: New file.
21518
21519         Tests for module 'unistr/u8-cpy-alloc'.
21520         * modules/unistr/u8-cpy-alloc-tests: New file.
21521         * tests/unistr/test-u8-cpy-alloc.c: New file.
21522         * tests/unistr/test-cpy-alloc.h: New file.
21523
21524         Tests for module 'unistr/u32-mbsnlen'.
21525         * modules/unistr/u32-mbsnlen-tests: New file.
21526         * tests/unistr/test-u32-mbsnlen.c: New file.
21527
21528         Tests for module 'unistr/u16-mbsnlen'.
21529         * modules/unistr/u16-mbsnlen-tests: New file.
21530         * tests/unistr/test-u16-mbsnlen.c: New file.
21531
21532         Tests for module 'unistr/u8-mbsnlen'.
21533         * modules/unistr/u8-mbsnlen-tests: New file.
21534         * tests/unistr/test-u8-mbsnlen.c: New file.
21535
21536         Tests for module 'unistr/u32-chr'.
21537         * modules/unistr/u32-chr-tests: New file.
21538         * tests/unistr/test-u32-chr.c: New file.
21539
21540         Tests for module 'unistr/u16-chr'.
21541         * modules/unistr/u16-chr-tests: New file.
21542         * tests/unistr/test-u16-chr.c: New file.
21543
21544         Tests for module 'unistr/u8-chr'.
21545         * modules/unistr/u8-chr-tests: New file.
21546         * tests/unistr/test-u8-chr.c: New file.
21547         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21548
21549         Tests for module 'unistr/u32-cmp2'.
21550         * modules/unistr/u32-cmp2-tests: New file.
21551         * tests/unistr/test-u32-cmp2.c: New file.
21552
21553         Tests for module 'unistr/u16-cmp2'.
21554         * modules/unistr/u16-cmp2-tests: New file.
21555         * tests/unistr/test-u16-cmp2.c: New file.
21556
21557         Tests for module 'unistr/u8-cmp2'.
21558         * modules/unistr/u8-cmp2-tests: New file.
21559         * tests/unistr/test-u8-cmp2.c: New file.
21560         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21561
21562         Tests for module 'unistr/u32-cmp'.
21563         * modules/unistr/u32-cmp-tests: New file.
21564         * tests/unistr/test-u32-cmp.c: New file.
21565
21566         Tests for module 'unistr/u16-cmp'.
21567         * modules/unistr/u16-cmp-tests: New file.
21568         * tests/unistr/test-u16-cmp.c: New file.
21569
21570         Tests for module 'unistr/u8-cmp'.
21571         * modules/unistr/u8-cmp-tests: New file.
21572         * tests/unistr/test-u8-cmp.c: New file.
21573         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21574
21575         Tests for module 'unistr/u32-set'.
21576         * modules/unistr/u32-set-tests: New file.
21577         * tests/unistr/test-u32-set.c: New file.
21578
21579         Tests for module 'unistr/u16-set'.
21580         * modules/unistr/u16-set-tests: New file.
21581         * tests/unistr/test-u16-set.c: New file.
21582
21583         Tests for module 'unistr/u8-set'.
21584         * modules/unistr/u8-set-tests: New file.
21585         * tests/unistr/test-u8-set.c: New file.
21586         * tests/unistr/test-set.h: New file.
21587
21588         Tests for module 'unistr/u32-move'.
21589         * modules/unistr/u32-move-tests: New file.
21590         * tests/unistr/test-u32-move.c: New file.
21591
21592         Tests for module 'unistr/u16-move'.
21593         * modules/unistr/u16-move-tests: New file.
21594         * tests/unistr/test-u16-move.c: New file.
21595
21596         Tests for module 'unistr/u8-move'.
21597         * modules/unistr/u8-move-tests: New file.
21598         * tests/unistr/test-u8-move.c: New file.
21599         * tests/unistr/test-move.h: New file.
21600
21601         Tests for module 'unistr/u32-cpy'.
21602         * modules/unistr/u32-cpy-tests: New file.
21603         * tests/unistr/test-u32-cpy.c: New file.
21604
21605         Tests for module 'unistr/u16-cpy'.
21606         * modules/unistr/u16-cpy-tests: New file.
21607         * tests/unistr/test-u16-cpy.c: New file.
21608
21609         Tests for module 'unistr/u8-cpy'.
21610         * modules/unistr/u8-cpy-tests: New file.
21611         * tests/unistr/test-u8-cpy.c: New file.
21612         * tests/unistr/test-cpy.h: New file.
21613
21614 2010-01-09  Bruno Haible  <bruno@clisp.org>
21615
21616         Tests for module 'unistr/u32-uctomb'.
21617         * modules/unistr/u32-uctomb-tests: New file.
21618         * tests/unistr/test-u32-uctomb.c: New file.
21619
21620         Tests for module 'unistr/u16-uctomb'.
21621         * modules/unistr/u16-uctomb-tests: New file.
21622         * tests/unistr/test-u16-uctomb.c: New file.
21623
21624         Tests for module 'unistr/u8-uctomb'.
21625         * modules/unistr/u8-uctomb-tests: New file.
21626         * tests/unistr/test-u8-uctomb.c: New file.
21627
21628         Tests for module 'unistr/u32-mbtoucr'.
21629         * modules/unistr/u32-mbtoucr-tests: New file.
21630         * tests/unistr/test-u32-mbtoucr.c: New file.
21631
21632         Tests for module 'unistr/u16-mbtoucr'.
21633         * modules/unistr/u16-mbtoucr-tests: New file.
21634         * tests/unistr/test-u16-mbtoucr.c: New file.
21635
21636         Tests for module 'unistr/u8-mbtoucr'.
21637         * modules/unistr/u8-mbtoucr-tests: New file.
21638         * tests/unistr/test-u8-mbtoucr.c: New file.
21639
21640         Tests for module 'unistr/u32-mbtouc'.
21641         * modules/unistr/u32-mbtouc-tests: New file.
21642         * tests/unistr/test-u32-mbtouc.c: New file.
21643
21644         Tests for module 'unistr/u16-mbtouc'.
21645         * modules/unistr/u16-mbtouc-tests: New file.
21646         * tests/unistr/test-u16-mbtouc.c: New file.
21647
21648         Tests for module 'unistr/u8-mbtouc'.
21649         * modules/unistr/u8-mbtouc-tests: New file.
21650         * tests/unistr/test-u8-mbtouc.c: New file.
21651
21652         Tests for module 'unistr/u32-mbtouc-unsafe'.
21653         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21654         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21655         * tests/unistr/test-u32-mbtouc.h: New file.
21656
21657         Tests for module 'unistr/u16-mbtouc-unsafe'.
21658         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21659         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21660         * tests/unistr/test-u16-mbtouc.h: New file.
21661
21662         Tests for module 'unistr/u8-mbtouc-unsafe'.
21663         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21664         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21665         * tests/unistr/test-u8-mbtouc.h: New file.
21666
21667         Tests for module 'unistr/u32-mblen'.
21668         * modules/unistr/u32-mblen-tests: New file.
21669         * tests/unistr/test-u32-mblen.c: New file.
21670
21671         Tests for module 'unistr/u16-mblen'.
21672         * modules/unistr/u16-mblen-tests: New file.
21673         * tests/unistr/test-u16-mblen.c: New file.
21674
21675         Tests for module 'unistr/u8-mblen'.
21676         * modules/unistr/u8-mblen-tests: New file.
21677         * tests/unistr/test-u8-mblen.c: New file.
21678
21679         Tests for module 'unistr/u32-to-u16'.
21680         * modules/unistr/u32-to-u16-tests: New file.
21681         * tests/unistr/test-u32-to-u16.c: New file.
21682
21683         Tests for module 'unistr/u32-to-u8'.
21684         * modules/unistr/u32-to-u8-tests: New file.
21685         * tests/unistr/test-u32-to-u8.c: New file.
21686
21687         Tests for module 'unistr/u16-to-u32'.
21688         * modules/unistr/u16-to-u32-tests: New file.
21689         * tests/unistr/test-u16-to-u32.c: New file.
21690
21691         Tests for module 'unistr/u16-to-u8'.
21692         * modules/unistr/u16-to-u8-tests: New file.
21693         * tests/unistr/test-u16-to-u8.c: New file.
21694
21695         Tests for module 'unistr/u8-to-u32'.
21696         * modules/unistr/u8-to-u32-tests: New file.
21697         * tests/unistr/test-u8-to-u32.c: New file.
21698
21699         Tests for module 'unistr/u8-to-u16'.
21700         * modules/unistr/u8-to-u16-tests: New file.
21701         * tests/unistr/test-u8-to-u16.c: New file.
21702
21703         Tests for module 'unistr/u32-check'.
21704         * modules/unistr/u32-check-tests: New file.
21705         * tests/unistr/test-u32-check.c: New file.
21706
21707         Tests for module 'unistr/u16-check'.
21708         * modules/unistr/u16-check-tests: New file.
21709         * tests/unistr/test-u16-check.c: New file.
21710
21711         Tests for module 'unistr/u8-check'.
21712         * modules/unistr/u8-check-tests: New file.
21713         * tests/unistr/test-u8-check.c: New file.
21714
21715         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21716         (category_equals): New function.
21717         (main): Add more tests.
21718         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21719
21720         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21721
21722 2010-01-10  Bruno Haible  <bruno@clisp.org>
21723
21724         unistr/u*-strcoll: Try harder to distinguish different strings.
21725         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21726         compare s1 and s2 to see if they are different.
21727
21728 2010-01-10  Bruno Haible  <bruno@clisp.org>
21729
21730         unistr/u*-stpncpy: Fix the return value.
21731         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21732         description of the return value consistent with stpncpy in glibc.
21733         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21734         written non-NUL unit.
21735
21736 2010-01-10  Bruno Haible  <bruno@clisp.org>
21737
21738         unistr/u*-next: Add missing dependencies.
21739         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21740         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21741         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21742
21743 2010-01-10  Bruno Haible  <bruno@clisp.org>
21744
21745         unistr/u8-mbsnlen: Fix return value for incomplete character.
21746         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21747         u8_mblen.
21748         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21749         Remove unistr/u8-mblen.
21750         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21751         u16_mblen.
21752         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21753         Remove unistr/u16-mblen.
21754
21755 2010-01-10  Bruno Haible  <bruno@clisp.org>
21756
21757         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21758         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21759         Reported by Brian Gough <bjg@gnu.org> and
21760         Chris Clayton <chris2553@googlemail.com> via
21761         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21762
21763 2010-01-09  Bruno Haible  <bruno@clisp.org>
21764
21765         unistr/u16-to-u32: Reject invalid input.
21766         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21767         u16_mbtouc.
21768         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21769         Remove unistr/u16-mbtouc.
21770
21771         unistr/u16-to-u8: Reject invalid input.
21772         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21773         u16_mbtouc.
21774         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21775         Remove unistr/u16-mbtouc.
21776
21777         unistr/u8-to-u32: Reject invalid input.
21778         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21779         u8_mbtouc.
21780         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21781         Remove unistr/u8-mbtouc.
21782
21783         unistr/u8-to-u16: Reject invalid input.
21784         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21785         u8_mbtouc.
21786         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21787         Remove unistr/u8-mbtouc.
21788
21789 2010-01-09  Bruno Haible  <bruno@clisp.org>
21790
21791         Tests for module 'getlogin'.
21792         * modules/getlogin-tests: New file.
21793         * tests/test-getlogin.c: New file.
21794
21795         New module 'getlogin'.
21796         * lib/unistd.in.h (getlogin): New declaration.
21797         * lib/getlogin.c: New file.
21798         * m4/getlogin.m4: New file.
21799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21800         HAVE_GETLOGIN.
21801         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21802         HAVE_GETLOGIN.
21803         * modules/getlogin: New file.
21804         * doc/posix-functions/getlogin.texi: Mention the new module.
21805         Reported by John W. Eaton <jwe@gnu.org>.
21806
21807 2010-01-09  Bruno Haible  <bruno@clisp.org>
21808
21809         getlogin_r: Support for native Windows.
21810         * lib/getlogin_r.c: Include <windows.h>
21811         (getlogin_r): Implement for native Windows.
21812         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21813         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21814         via John W. Eaton <jwe@gnu.org>.
21815
21816 2010-01-09  Bruno Haible  <bruno@clisp.org>
21817
21818         getlogin_r: Small fixes.
21819         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21820         succeeds.
21821         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21822         before testing whether getlogin_r is declared. No need to set
21823         HAVE_DECL_GETLOGIN_R to 1.
21824         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21825
21826 2010-01-09  Bruno Haible  <bruno@clisp.org>
21827
21828         * lib/unistd.in.h (getlogin_r): Add comment.
21829
21830 2010-01-09  Bruno Haible  <bruno@clisp.org>
21831
21832         Tests for module 'getlogin_r'.
21833         * modules/getlogin_r-tests: New file.
21834         * tests/test-getlogin_r.c: New file.
21835
21836 2010-01-09  Jim Meyering  <meyering@redhat.com>
21837
21838         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21839         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21840         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21841
21842 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21843
21844         * lib/dup2.c (rpl_dup2): Improve comment.
21845
21846 2010-01-08  Eric Blake  <ebb9@byu.net>
21847
21848         maint.mk: allow packages to add makefile @@ exceptions
21849         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21850         (sc_makefile_check): Rename...
21851         (sc_makefile_at_at_check): ...to this, and use hook.
21852
21853         dup2: work around mingw bug
21854         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21855         Reported by Simon Josefsson.
21856
21857 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21858
21859         glob: Fix C++ compilation.
21860         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21861         C++.
21862
21863 2010-01-07  Bruno Haible  <bruno@clisp.org>
21864
21865         Fix indentation of wctype.in.h, broken since 2007-01-06.
21866         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21867
21868 2010-01-07  Bruno Haible  <bruno@clisp.org>
21869
21870         mbslen: Avoid collision with system function.
21871         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21872         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21873         * m4/mbslen.m4: New file.
21874         * modules/mbslen (Files): Add it.
21875         (configure.ac): Invoke gl_MBSLEN.
21876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21877         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21878         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21879         via Ian Beckwith <ianb@erislabs.net>.
21880
21881 2010-01-07  Bruno Haible  <bruno@clisp.org>
21882
21883         dirent: Document the last fix.
21884         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21885
21886 2010-01-07  Bruno Haible  <bruno@clisp.org>
21887
21888         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21889         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21890         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21891         va_list are defined.
21892         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21893         Reported by Eric Blake.
21894
21895 2010-01-07  Bruno Haible  <bruno@clisp.org>
21896
21897         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21898         * modules/xlist (Depends-on): Add 'list',
21899         * modules/xoset (Depends-on): Add 'oset'.
21900         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21901
21902 2010-01-07  Bruno Haible  <bruno@clisp.org>
21903
21904         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21905         * doc/posix-functions/strncasecmp.texi: Likewise.
21906
21907 2010-01-07  Bruno Haible  <bruno@clisp.org>
21908
21909         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21910
21911 2010-01-07  John W. Eaton  <jwe@octave.org>
21912
21913         wctype: allow C++ use
21914         * lib/wctype.in.h: Add extern "C" block for C++.
21915
21916 2010-01-06  Eric Blake  <ebb9@byu.net>
21917
21918         maint.mk: detect incorrect GFDL usage
21919         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21920
21921 2010-01-06  Jim Meyering  <meyering@redhat.com>
21922         and Eric Blake  <ebb9@byu.net>
21923
21924         maint.mk: ignore multi-line copyright in NEWS
21925         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21926
21927 2010-01-06  Eric Blake  <ebb9@byu.net>
21928
21929         select: add missing dependency
21930         * modules/select-tests (Depends-on): Move sockets dependency...
21931         * modules/select (Depends-on): ...here.
21932         Reported by Ian Beckwith.
21933
21934         doc: regenerate INSTALL
21935         * doc/INSTALL: Reflect recent autoconf update.
21936         * doc/INSTALL.ISO: Likewise.
21937         * doc/INSTALL.UTF-8: Likewise.
21938
21939         pread: fix compilation on glibc
21940         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21941         Reported by Ralf Wildenhues.
21942
21943         dirent: fix test failure
21944         * lib/dirent.in.h (includes): Guarantee ino_t.
21945         Reported by Ralf Wildenhues.
21946
21947 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21948
21949         linkat, renameat: avoid bad free
21950         * lib/at-func2.c (at_func2): Fix typo.
21951         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21952
21953 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21954
21955         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21956         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21957         to avoid failure of symlink test later.
21958
21959 2010-01-06  Eric Blake  <ebb9@byu.net>
21960
21961         stdio, unistd: guarantee ssize_t
21962         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21963         2008 are exposed when needed.
21964         * lib/stdio.in.h (includes): Likewise.
21965         Reported by Ralf Wildenhues.
21966
21967 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21968
21969         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21970         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21971         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21972
21973 2010-01-06  Jim Meyering  <meyering@redhat.com>
21974
21975         readtokens: this module *does* require xalloc.h
21976         It uses only functions that were omitted by the old syntax-check rule.
21977         * lib/readtokens.c: Include "xalloc.h" once again.
21978         * modules/readtokens (Depends-on): Add xalloc.
21979         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21980
21981 2010-01-05  Eric Blake  <ebb9@byu.net>
21982
21983         maint: support 'make announcement' from a VPATH build
21984         * top/maint.mk (announcement): Look for correct NEWS file.
21985
21986 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21987
21988         utimens (fdutimens): ignore a negative FD, per contract
21989         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21990         when we have a valid file descriptor.  Otherwise, using a brand
21991         new glibc (with just-patched futimens that now fails with EBADF)
21992         would cause this function to fail with ENOSYS.
21993         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21994         See also http://bugzilla.redhat.com/552320.
21995
21996 2010-01-05  Eric Blake  <ebb9@byu.net>
21997
21998         strcase: document what it provides
21999         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
22000         gnulib module.
22001         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
22002         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
22003
22004 2010-01-05  Jim Meyering  <meyering@redhat.com>
22005
22006         maint: remove useless inclusions of "xalloc.h"
22007         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
22008         * lib/readtokens.c: Likewise.
22009         * lib/same.c: Likewise.
22010         * modules/getloadavg (Depends-on): Remove xalloc.
22011         * modules/readtokens: Likewise.
22012         * modules/same: Likewise.
22013
22014         maint.mk: include 4 more function names in alloca.h-checking regexp
22015         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
22016         regexp.  Before, we would give a false-positive (saying alloca.h
22017         is included unnecessarily) when the only uses involved omitted symbols.
22018
22019         xalloc.h: use consistent formatting
22020         * lib/xalloc.h: Move declarations to start in the first column.
22021
22022 2010-01-05  Eric Blake  <ebb9@byu.net>
22023
22024         mkdir: avoid xalloc
22025         * lib/mkdir.c (includes): Drop unused header.
22026         Reported by John W. Eaton.
22027
22028 2010-01-04  Jim Meyering  <meyering@redhat.com>
22029
22030         nl_langinfo: avoid configure-time syntax error
22031         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
22032         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
22033         the empty string.  Don't let that provoke a shell syntax error.
22034
22035         regcomp, regexec, fnmatch: avoid array bounds read error
22036         * lib/regcomp.c (build_equiv_class): From glibc:
22037         Use only the low 24 bits of a findidx return value as an index
22038         into the weights array.  Patch by Ulrich Drepper:
22039         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
22040         * lib/regexec.c (check_node_accept_bytes): Likewise.
22041         * lib/fnmatch_loop.c (FCT): Likewise.
22042
22043         regcomp: skip collseq lookup when there are no rules
22044         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
22045         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
22046
22047         regcomp: recognize ill-formed { } expressions
22048         * lib/regcomp.c (parse_dup_op): From glibc:
22049         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
22050
22051         regcomp: fix typo in comment
22052         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
22053         s/satisfy/satisfies/.
22054
22055         regcomp: sync from glibc: remove dead store
22056         * lib/regcomp.c (duplicate_node_closure): Remove useless
22057         search_duplicated_node call and dead store.
22058
22059         regcomp: sync from glibc; always use nl_langinfo
22060         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
22061         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
22062         * modules/regex (Depends-on): Add nl_langinfo.
22063
22064 2010-01-04  Eric Blake  <ebb9@byu.net>
22065
22066         fdopendir: fix configure test
22067         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
22068
22069 2010-01-01  Bruno Haible  <bruno@clisp.org>
22070
22071         wchar: Remove unused configure check.
22072         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
22073
22074 2010-01-01  Eric Blake  <ebb9@byu.net>
22075
22076         headers: make check of system header explicit
22077         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
22078         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
22079         ourselves.
22080         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22081         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22082         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22083         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
22084         internals.
22085         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
22086         missing.
22087         Suggested by Bruno Haible.
22088
22089 2010-01-01  Jim Meyering  <meyering@redhat.com>
22090
22091         ChangeLog: tweak to eliminate unnecessary copyright line
22092         * ChangeLog: Remove a copyright line that was mistakenly updated
22093         by today's update-copyright run.  Reported by Eric Blake.
22094
22095         test-update-copyright: don't let envvar setting cause test failure
22096         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22097
22098 2010-01-01  Bruno Haible  <bruno@clisp.org>
22099
22100         localename: Avoid gcc warning.
22101         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
22102         function if it is not used.
22103
22104 2010-01-01  Jim Meyering  <meyering@redhat.com>
22105
22106         update nearly all FSF copyright year lists to include 2010
22107         Use the same procedure as for 2009, outlined in
22108         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
22109
22110         version-etc: set COPYRIGHT_YEAR to 2010
22111         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
22112
22113 2009-12-31  Eric Blake  <ebb9@byu.net>
22114
22115         doc: correct availability of cygwin 1.5.x getopt
22116         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
22117         variables.
22118         * doc/posix-functions/opterr.texi (opterr): Likewise.
22119         * doc/posix-functions/optind.texi (optind): Likewise.
22120         * doc/posix-functions/optopt.texi (optopt): Likewise.
22121         * doc/posix-functions/tzname.texi (tzname): Likewise.
22122
22123         openat: update maintainer
22124         * modules/openat (Maintainer): Add myself.
22125
22126         utimens: avoid shadowing warning
22127         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
22128         buffers into one, to avoid shadowing, as well as avoiding a
22129         redundant stat.
22130         Reported by Jim Meyering.
22131
22132         test-dup2: avoid compiler warning
22133         * tests/test-dup2.c (is_inheritable): Only define if used.
22134
22135 2010-01-01  Bruno Haible  <bruno@clisp.org>
22136
22137         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
22138         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
22139         defined, use wctomb instead of wcrtomb.
22140
22141 2010-01-01  Bruno Haible  <bruno@clisp.org>
22142
22143         iconv: Reject native Solaris iconv.
22144         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
22145         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
22146
22147 2009-12-31  Bruno Haible  <bruno@clisp.org>
22148
22149         * tests/test-signal.c (main): Remove test of 'SIG'.
22150
22151 2009-12-31  Bruno Haible  <bruno@clisp.org>
22152
22153         spawn: Fix incomplete fix.
22154         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22155         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22156         warnings for GNULIB_POSIXCHECK again.
22157         Reported by Eric Blake.
22158
22159 2009-12-31  Bruno Haible  <bruno@clisp.org>
22160
22161         Avoid namespace pollution on glibc systems.
22162         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
22163         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
22164         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
22165         glibc systems.
22166
22167 2009-12-31  Bruno Haible  <bruno@clisp.org>
22168
22169         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
22170         (gl_REPLACE_WCHAR_H): Turn into a no-op.
22171         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
22172         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22173         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22174         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22175         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22176
22177 2009-12-31  Bruno Haible  <bruno@clisp.org>
22178
22179         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22180         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
22181         afterwards.
22182
22183 2009-12-31  Bruno Haible  <bruno@clisp.org>
22184
22185         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
22186         SYS_UTSNAME_H.
22187
22188 2009-12-31  Bruno Haible  <bruno@clisp.org>
22189
22190         spawn: Fix misapplied patch.
22191         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22192         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22193         warnings for GNULIB_POSIXCHECK.
22194
22195 2009-12-31  Bruno Haible  <bruno@clisp.org>
22196
22197         times: Update after sys_times changed.
22198         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
22199         * modules/times (Files): Add it.
22200         (configure.ac): Invoke gl_FUNC_TIMES.
22201
22202 2009-12-31  Bruno Haible  <bruno@clisp.org>
22203
22204         Use AC_C_INLINE where necessary.
22205         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
22206         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22207         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22208         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22209         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22210         * m4/mbiter.m4 (gl_MBITER): Likewise.
22211         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22212         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22213         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
22214         * modules/u64 (configure.ac): Likewise.
22215
22216 2009-12-31  Bruno Haible  <bruno@clisp.org>
22217
22218         Use AC_C_INLINE instead of module 'inline' where possible.
22219         * modules/inline (Description): Clarify purpose.
22220         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
22221         * modules/count-one-bits (Depends-on): Remove inline.
22222         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
22223         * modules/openat (Depends-on): Remove inline.
22224         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
22225         instead of depending on module 'inline'.
22226         * modules/filevercmp (Depends-on, configure.ac): Likewise.
22227         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
22228         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
22229         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
22230         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
22231         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
22232         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
22233         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
22234         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
22235         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
22236         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
22237         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
22238         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
22239         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
22240         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
22241         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
22242         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
22243         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
22244         Likewise.
22245         * modules/unictype/property-ascii-hex-digit (Depends-on,
22246         configure.ac): Likewise.
22247         * modules/unictype/property-bidi-arabic-digit (Depends-on,
22248         configure.ac): Likewise.
22249         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
22250         configure.ac): Likewise.
22251         * modules/unictype/property-bidi-block-separator (Depends-on,
22252         configure.ac): Likewise.
22253         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
22254         configure.ac): Likewise.
22255         * modules/unictype/property-bidi-common-separator (Depends-on,
22256         configure.ac): Likewise.
22257         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
22258         Likewise.
22259         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
22260         configure.ac): Likewise.
22261         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
22262         configure.ac): Likewise.
22263         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
22264         configure.ac): Likewise.
22265         * modules/unictype/property-bidi-european-digit (Depends-on,
22266         configure.ac): Likewise.
22267         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
22268         configure.ac): Likewise.
22269         * modules/unictype/property-bidi-left-to-right (Depends-on,
22270         configure.ac): Likewise.
22271         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
22272         configure.ac): Likewise.
22273         * modules/unictype/property-bidi-other-neutral (Depends-on,
22274         configure.ac): Likewise.
22275         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
22276         Likewise.
22277         * modules/unictype/property-bidi-segment-separator (Depends-on,
22278         configure.ac): Likewise.
22279         * modules/unictype/property-bidi-whitespace (Depends-on,
22280         configure.ac): Likewise.
22281         * modules/unictype/property-combining (Depends-on, configure.ac):
22282         Likewise.
22283         * modules/unictype/property-composite (Depends-on, configure.ac):
22284         Likewise.
22285         * modules/unictype/property-currency-symbol (Depends-on,
22286         configure.ac): Likewise.
22287         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
22288         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
22289         Likewise.
22290         * modules/unictype/property-default-ignorable-code-point (Depends-on,
22291         configure.ac): Likewise.
22292         * modules/unictype/property-deprecated (Depends-on, configure.ac):
22293         Likewise.
22294         * modules/unictype/property-diacritic (Depends-on, configure.ac):
22295         Likewise.
22296         * modules/unictype/property-extender (Depends-on, configure.ac):
22297         Likewise.
22298         * modules/unictype/property-format-control (Depends-on, configure.ac):
22299         Likewise.
22300         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
22301         Likewise.
22302         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
22303         Likewise.
22304         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
22305         Likewise.
22306         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
22307         Likewise.
22308         * modules/unictype/property-hyphen (Depends-on, configure.ac):
22309         Likewise.
22310         * modules/unictype/property-id-continue (Depends-on, configure.ac):
22311         Likewise.
22312         * modules/unictype/property-id-start (Depends-on, configure.ac):
22313         Likewise.
22314         * modules/unictype/property-ideographic (Depends-on, configure.ac):
22315         Likewise.
22316         * modules/unictype/property-ids-binary-operator (Depends-on,
22317         configure.ac): Likewise.
22318         * modules/unictype/property-ids-trinary-operator (Depends-on,
22319         configure.ac): Likewise.
22320         * modules/unictype/property-ignorable-control (Depends-on,
22321         configure.ac): Likewise.
22322         * modules/unictype/property-iso-control (Depends-on, configure.ac):
22323         Likewise.
22324         * modules/unictype/property-join-control (Depends-on, configure.ac):
22325         Likewise.
22326         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
22327         Likewise.
22328         * modules/unictype/property-line-separator (Depends-on, configure.ac):
22329         Likewise.
22330         * modules/unictype/property-logical-order-exception (Depends-on,
22331         configure.ac): Likewise.
22332         * modules/unictype/property-lowercase (Depends-on, configure.ac):
22333         Likewise.
22334         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
22335         * modules/unictype/property-non-break (Depends-on, configure.ac):
22336         Likewise.
22337         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
22338         Likewise.
22339         * modules/unictype/property-numeric (Depends-on, configure.ac):
22340         Likewise.
22341         * modules/unictype/property-other-alphabetic (Depends-on,
22342         configure.ac): Likewise.
22343         * modules/unictype/property-other-default-ignorable-code-point
22344         (Depends-on, configure.ac): Likewise.
22345         * modules/unictype/property-other-grapheme-extend (Depends-on,
22346         configure.ac): Likewise.
22347         * modules/unictype/property-other-id-continue (Depends-on,
22348         configure.ac): Likewise.
22349         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
22350         Likewise.
22351         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
22352         Likewise.
22353         * modules/unictype/property-other-math (Depends-on, configure.ac):
22354         Likewise.
22355         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
22356         Likewise.
22357         * modules/unictype/property-paired-punctuation (Depends-on,
22358         configure.ac): Likewise.
22359         * modules/unictype/property-paragraph-separator (Depends-on,
22360         configure.ac): Likewise.
22361         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
22362         Likewise.
22363         * modules/unictype/property-pattern-white-space (Depends-on,
22364         configure.ac): Likewise.
22365         * modules/unictype/property-private-use (Depends-on, configure.ac):
22366         Likewise.
22367         * modules/unictype/property-punctuation (Depends-on, configure.ac):
22368         Likewise.
22369         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
22370         Likewise.
22371         * modules/unictype/property-radical (Depends-on, configure.ac):
22372         Likewise.
22373         * modules/unictype/property-sentence-terminal (Depends-on,
22374         configure.ac): Likewise.
22375         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
22376         Likewise.
22377         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
22378         * modules/unictype/property-terminal-punctuation (Depends-on,
22379         configure.ac): Likewise.
22380         * modules/unictype/property-titlecase (Depends-on, configure.ac):
22381         Likewise.
22382         * modules/unictype/property-unassigned-code-value (Depends-on,
22383         configure.ac): Likewise.
22384         * modules/unictype/property-unified-ideograph (Depends-on,
22385         configure.ac): Likewise.
22386         * modules/unictype/property-uppercase (Depends-on, configure.ac):
22387         Likewise.
22388         * modules/unictype/property-variation-selector (Depends-on,
22389         configure.ac): Likewise.
22390         * modules/unictype/property-white-space (Depends-on, configure.ac):
22391         Likewise.
22392         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
22393         Likewise.
22394         * modules/unictype/property-xid-start (Depends-on, configure.ac):
22395         Likewise.
22396         * modules/unictype/property-zero-width (Depends-on, configure.ac):
22397         Likewise.
22398         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
22399         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
22400         Likewise.
22401
22402 2009-12-31  Bruno Haible  <bruno@clisp.org>
22403
22404         Remove unnecessary AC_C_INLINE invocation.
22405         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22406         since 2009-08-21.
22407
22408 2009-12-31  Jim Meyering  <meyering@redhat.com>
22409
22410         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22411         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22412         With this change, we can all remove the gpg_key_ID = ... definition
22413         from our respective cfg.mk files.
22414
22415         maint.mk: create announcement template in ~/, not in /tmp
22416         * top/maint.mk (emit_upload_commands): Adjust.
22417         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22418         Remove temporary file, .ci-msg.
22419
22420 2009-12-31  Eric Blake  <ebb9@byu.net>
22421
22422         link-warning: always build headers with link warnings
22423         * modules/arpa_inet (Makefile.am): Always build replacement
22424         header.
22425         * modules/ctype (Makefile.am): Likewise.
22426         * modules/dirent (Makefile.am): Likewise.
22427         * modules/inttypes (Makefile.am): Likewise.
22428         * modules/langinfo (Makefile.am): Likewise.
22429         * modules/locale (Makefile.am): Likewise.
22430         * modules/spawn (Makefile.am): Likewise.
22431         * modules/sys_file (Makefile.am): Likewise.
22432         * modules/sys_ioctl (Makefile.am): Likewise.
22433         * modules/sys_select (Makefile.am): Likewise.
22434         * modules/sys_socket (Makefile.am): Likewise.
22435         * modules/sys_times (Makefile.am): Likewise.
22436         * modules/sys_utsname (Makefile.am): Likewise.
22437         * modules/sys_wait (Makefile.am): Likewise.
22438         * modules/wchar (Makefile.am): Likewise.
22439         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22440         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22441         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22442         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22443         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22444         Likewise.
22445         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22446         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22447         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22448         Likewise.
22449         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22450         Likewise.
22451         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22452         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22453         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22454         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22455         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22456         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22457         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22458         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22459         (gl_WCHAR_H_DEFAULTS): Likewise.
22460
22461 2009-12-31  Eric Blake  <ebb9@byu.net>
22462
22463         signal, spawn: use link warnings
22464         * lib/signal.in.h (sigset_t): Make unconditional.
22465         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22466         (sigpending, sigprocmask, sigaction): Add link warnings.
22467         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22468         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22469         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22470         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22471         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22472         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22473         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22474         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22475         (posix_spawn_file_actions_destroy)
22476         (posix_spawn_file_actions_addopen)
22477         (posix_spawn_file_actions_addclose)
22478         (posix_spawn_file_actions_adddup2): Likewise.
22479         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22480         * tests/test-signal.c (main): Enhance test.
22481
22482         spawn: improve wrapper support
22483         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22484         (gl_SPAWN_H_DEFAULTS): New defaults.
22485         * modules/spawn (Makefile.am): Substitute them.
22486         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22487         Only declare if missing or broken.
22488
22489         sys_times, sys_utsname: use include_next
22490         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22491         header.
22492         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22493         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22494         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22495         * modules/sys_times (Depends-on): Add include_next.
22496         (Makefile.am): Substitute additional values.
22497         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22498         * lib/sys_times.in.h (includes): Include native header, if
22499         available.
22500         * lib/sys_utsname.in.h (includes): Likewise.
22501         * tests/test-sys_times.c (main): Enhance test.
22502
22503         fdutimensat: revert prior patch
22504         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22505         utimens.h.
22506         Reported by Bruno Haible.
22507
22508 2009-12-30  Eric Blake  <ebb9@byu.net>
22509
22510         sys_wait: drop link-warning dependency
22511         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22512         link-warning efforts.
22513         * lib/sys_wait.in.h: Likewise.
22514
22515         fdutimensat: remove bogus dependency
22516         * modules/fdutimensat (Depends-on): Drop inline.
22517
22518         unistd: fix typo
22519         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22520
22521 2009-12-30  Bruno Haible  <bruno@clisp.org>
22522
22523         Fix compilation error with Solaris cc.
22524         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22525         * lib/unicase/u16-is-invariant.c: Likewise.
22526         * lib/unicase/u32-is-invariant.c: Likewise.
22527         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22528
22529 2009-12-30  Bruno Haible  <bruno@clisp.org>
22530
22531         Fix test crash.
22532         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22533         locales.
22534         Reported by Simon Josefsson <simon@josefsson.org>.
22535
22536 2009-12-30  Bruno Haible  <bruno@clisp.org>
22537
22538         Fix compilation error on most platforms.
22539         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22540         Reported by Simon Josefsson <simon@josefsson.org>
22541         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22542
22543 2009-12-30  Eric Blake  <ebb9@byu.net>
22544
22545         futimens, utimensat: work around ntfs-3g bug
22546         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22547         a ctime bug is present, and expand workaround to cover ntfs-3g.
22548         * lib/utimens.c (fdutimens, lutimens): Likewise.
22549         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22550         (validate_timespec): Adjust return value.
22551         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22552         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22553         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22554
22555 2009-12-29  Eric Blake  <ebb9@byu.net>
22556
22557         link-warning: make usage consistent
22558         * modules/ctype (Depends-on): Add link-warning.
22559         (Makefile.am): Update rules accordingly.
22560         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22561         * modules/locale (Depends-on, Makefile.am): Likewise.
22562         * modules/sys_file (Makefile.am): Likewise.
22563         * modules/getopt-posix (Makefile.am): Delete unused link warning
22564         efforts.
22565         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22566         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22567         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22568         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22569
22570         stdio: remove unused variables
22571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22572         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22573         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22574
22575         tests: test more substitute headers
22576         * modules/ctype-tests: New file.
22577         * modules/dirent-tests: Likewise.
22578         * modules/spawn-tests: Likewise.
22579         * modules/sys_file-tests: Likewise.
22580         * modules/sys_ioctl-tests: Likewise.
22581         * modules/sys_wait-tests: Likewise.
22582         * tests/test-ctype.c: Likewise.
22583         * tests/test-dirent.c: Likewise.
22584         * tests/test-spawn.c: Likewise.
22585         * tests/test-sys_file.c: Likewise.
22586         * tests/test-sys_ioctl.c: Likewise.
22587         * tests/test-sys_wait.c: Likewise.
22588         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22589         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22590         whether or not flock is in use.
22591
22592         tests: remove License section from module
22593         * modules/arpa_inet-tests: Remove unneeded section.
22594         * modules/byteswap-tests: Likewise.
22595         * modules/ceilf-tests: Likewise.
22596         * modules/ceill-tests: Likewise.
22597         * modules/crypto/des-tests: Likewise.
22598         * modules/crypto/gc-arcfour-tests: Likewise.
22599         * modules/crypto/gc-arctwo-tests: Likewise.
22600         * modules/crypto/gc-des-tests: Likewise.
22601         * modules/crypto/gc-hmac-md5-tests: Likewise.
22602         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22603         * modules/crypto/gc-md2-tests: Likewise.
22604         * modules/crypto/gc-md4-tests: Likewise.
22605         * modules/crypto/gc-md5-tests: Likewise.
22606         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22607         * modules/crypto/gc-rijndael-tests: Likewise.
22608         * modules/crypto/gc-sha1-tests: Likewise.
22609         * modules/crypto/gc-tests: Likewise.
22610         * modules/crypto/md2-tests: Likewise.
22611         * modules/crypto/md4-tests: Likewise.
22612         * modules/fcntl-h-tests: Likewise.
22613         * modules/floorf-tests: Likewise.
22614         * modules/floorl-tests: Likewise.
22615         * modules/frexp-nolibm-tests: Likewise.
22616         * modules/frexp-tests: Likewise.
22617         * modules/frexpl-nolibm-tests: Likewise.
22618         * modules/frexpl-tests: Likewise.
22619         * modules/getaddrinfo-tests: Likewise.
22620         * modules/inttypes-tests: Likewise.
22621         * modules/isfinite-tests: Likewise.
22622         * modules/isinf-tests: Likewise.
22623         * modules/ldexpl-tests: Likewise.
22624         * modules/locale-tests: Likewise.
22625         * modules/math-tests: Likewise.
22626         * modules/netdb-tests: Likewise.
22627         * modules/netinet_in-tests: Likewise.
22628         * modules/printf-frexp-tests: Likewise.
22629         * modules/printf-frexpl-tests: Likewise.
22630         * modules/priv-set-tests: Likewise.
22631         * modules/random_r-tests: Likewise.
22632         * modules/round-tests: Likewise.
22633         * modules/roundf-tests: Likewise.
22634         * modules/roundl-tests: Likewise.
22635         * modules/search-tests: Likewise.
22636         * modules/select-tests: Likewise.
22637         * modules/signal-tests: Likewise.
22638         * modules/stdbool-tests: Likewise.
22639         * modules/stddef-tests: Likewise.
22640         * modules/stdint-tests: Likewise.
22641         * modules/stdio-tests: Likewise.
22642         * modules/stdlib-tests: Likewise.
22643         * modules/string-tests: Likewise.
22644         * modules/strings-tests: Likewise.
22645         * modules/sys_select-tests: Likewise.
22646         * modules/sys_socket-tests: Likewise.
22647         * modules/sys_stat-tests: Likewise.
22648         * modules/sys_time-tests: Likewise.
22649         * modules/sys_utsname-tests: Likewise.
22650         * modules/sysexits-tests: Likewise.
22651         * modules/time-tests: Likewise.
22652         * modules/trunc-tests: Likewise.
22653         * modules/truncf-tests: Likewise.
22654         * modules/truncl-tests: Likewise.
22655         * modules/tsearch-tests: Likewise.
22656         * modules/unistd-tests: Likewise.
22657         * modules/wchar-tests: Likewise.
22658         * modules/wctype-tests: Likewise.
22659
22660         tests: fix license on several tests
22661         * tests/test-des.c: Update to GPLv3+.
22662         * tests/test-flock.c: Likewise.
22663         * tests/test-fsync.c: Likewise.
22664         * tests/test-futimens.h: Likewise.
22665         * tests/test-gc-arcfour.c: Likewise.
22666         * tests/test-gc-arctwo.c: Likewise.
22667         * tests/test-gc-des.c: Likewise.
22668         * tests/test-gc-hmac-md5.c: Likewise.
22669         * tests/test-gc-hmac-sha1.c: Likewise.
22670         * tests/test-gc-md2.c: Likewise.
22671         * tests/test-gc-md4.c: Likewise.
22672         * tests/test-gc-md5.c: Likewise.
22673         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22674         * tests/test-gc-rijndael.c: Likewise.
22675         * tests/test-gc-sha1.c: Likewise.
22676         * tests/test-gc.c: Likewise.
22677         * tests/test-getcwd.c: Likewise.
22678         * tests/test-link.c: Likewise.
22679         * tests/test-link.h: Likewise.
22680         * tests/test-lutimens.h: Likewise.
22681         * tests/test-md2.c: Likewise.
22682         * tests/test-md4.c: Likewise.
22683         * tests/test-mkdir.h: Likewise.
22684         * tests/test-rename.c: Likewise.
22685         * tests/test-rename.h: Likewise.
22686         * tests/test-safe-alloc.c: Likewise.
22687         * tests/test-utimens-common.h: Likewise.
22688         * tests/test-utimens.h: Likewise.
22689
22690         maint: sync license texts
22691         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22692         * doc/gpl-3.0.texi: Revert copyright year update.
22693         * doc/lgpl-3.0.texi: Likewise.
22694
22695 2009-12-29  Jim Meyering  <meyering@redhat.com>
22696
22697         update nearly all FSF copyright year lists to include 2009
22698         The files named by the following are exempted:
22699             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22700               test -f "$dst" && { echo "$dst"; continue; }
22701               test -d "$dst" || continue
22702               echo "$dst"/$(basename "$src")
22703             done > exempt
22704             git ls-files tests/unictype >> exempt
22705         In the remaining files, convert to all-interval notation if
22706         - there is already at least one year interval like 2000-2003
22707         - the file is maintained by me
22708         - the file is in lib/uni*/, where that style already prevails
22709         Otherwise, use update-copyright's default.
22710
22711 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22712         and Eric Blake  <ebb9@byu.net>
22713
22714         tests: don't require debug system() to pass
22715         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22716         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22717         * tests/test-unlink.h (test_unlink_func): Likewise.
22718         * tests/test-fstatat.c (main): ...into callers.
22719         * tests/test-lstat.c (main): Likewise.
22720         * tests/test-rmdir.c (main): Likewise.
22721         * tests/test-unlink.c (main): Likewise.
22722         * tests/test-unlinkat.c (main): Likewise.
22723         * tests/test-areadlink-with-size.c (main): Don't require a
22724         debug-only system call to pass, aiding cross-testing to mingw.
22725         * tests/test-areadlink.c (main): Likewise.
22726         * tests/test-areadlinkat-with-size.c (main): Likewise.
22727         * tests/test-areadlinkat.c (main): Likewise.
22728         * tests/test-canonicalize-lgpl.c (main): Likewise.
22729         * tests/test-canonicalize.c (main): Likewise.
22730         * tests/test-chown.c (main): Likewise.
22731         * tests/test-fchownat.c (main): Likewise.
22732         * tests/test-lchown.c (main): Likewise.
22733         * tests/test-fdutimensat.c (main): Likewise.
22734         * tests/test-futimens.c (main): Likewise.
22735         * tests/test-link.c (main): Likewise.
22736         * tests/test-linkat.c (main): Likewise.
22737         * tests/test-mkdir.c (main): Likewise.
22738         * tests/test-mkdirat.c (main): Likewise.
22739         * tests/test-mkfifo.c (main): Likewise.
22740         * tests/test-mkfifoat.c (main): Likewise.
22741         * tests/test-mknod.c (main): Likewise.
22742         * tests/test-readlink.c (main): Likewise.
22743         * tests/test-remove.c (main): Likewise.
22744         * tests/test-rename.c (main): Likewise.
22745         * tests/test-renameat.c (main): Likewise.
22746         * tests/test-symlink.c (main): Likewise.
22747         * tests/test-symlinkat.c (main): Likewise.
22748         * tests/test-utimens.c (main): Likewise.
22749         * tests/test-utimensat.c (main): Likewise.
22750
22751 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22752
22753         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22754         on $(UNUSED_PARAMETER_H) to avoid build failure.
22755
22756 2009-12-28  Jim Meyering  <meyering@redhat.com>
22757
22758         update-copyright: you may specify a max. line length other than 72
22759         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22760
22761         maint: use consistent FSF copyright line syntax
22762         * lib/posixtm.c: Add missing comma in FSF copyright line.
22763         * lib/posixtm.h: Likewise.
22764         * lib/getugroups.c: Add missing ", Inc.".
22765
22766         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22767         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22768         FSF copyright line.  Remove trailing blanks.
22769
22770 2009-12-28  Eric Blake  <ebb9@byu.net>
22771
22772         test-dup2: reduce dependencies
22773         * modules/cloexec (Configure.ac): Set witness.
22774         * modules/dup2-tests (Depends-on): Drop cloexec.
22775         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22776         not present.
22777         Suggested by Bruno Haible.
22778
22779 2009-12-26  Bruno Haible  <bruno@clisp.org>
22780
22781         Remove an unneeded dependency.
22782         * modules/fseterr (Depends-on): Remove dup2.
22783
22784 2009-12-26  Eric Blake  <ebb9@byu.net>
22785
22786         tests: use macros.h in more places
22787         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22788         (ASSERT_STREAM): Provide default of stderr.
22789         * tests/test-dirent-safer.c: Include macros.h, using alternate
22790         stream for assertions.
22791         * tests/test-dup-safer.c: Likewise.
22792         * tests/test-freopen-safer.c: Likewise.
22793         * tests/test-getopt.c: Likewise.
22794         * tests/test-openat-safer.c: Likewise.
22795         * tests/test-pipe.c: Likewise.
22796         * tests/test-popen-safer.c: Likewise.
22797         * modules/dirent-safer-tests (Files): Include macros.h.
22798         * modules/unistd-safer-tests (Files): Likewise.
22799         * modules/freopen-safer-tests (Files): Likewise.
22800         * modules/getopt-posix-tests (Files): Likewise.
22801         * modules/openat-safer-tests (Files): Likewise.
22802         * modules/pipe-tests (Files): Likewise.
22803
22804 2009-12-26  Bruno Haible  <bruno@clisp.org>
22805
22806         javacomp: Portability fix.
22807         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22808         that it also works on Solaris.
22809
22810 2009-12-26  Bruno Haible  <bruno@clisp.org>
22811
22812         localename: Fix storage allocation of gl_locale_name_thread's result.
22813         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22814         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22815         all platforms that have 'uselocale'.
22816         (gl_locale_name_thread_unsafe): New function, extracted from
22817         gl_locale_name_thread.
22818         (gl_locale_name_thread): Call struniq on all platforms that have
22819         'uselocale'.
22820         * tests/test-localename.c (test_locale_name_thread): Check that the
22821         resulting strings are permanently allocated.
22822         * modules/localename-tests (Depends-on): Add strdup.
22823
22824 2009-12-26  Bruno Haible  <bruno@clisp.org>
22825
22826         * tests/test-localename.c (categories): Fill in the strings.
22827
22828 2009-12-26  Jim Meyering  <meyering@redhat.com>
22829
22830         isdir: complete the removal of m4/isdir.m4
22831         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22832
22833         isdir: clean up, since at least grep still uses it
22834         * lib/isdir.c: Include "isdir.h".
22835         (S_ISDIR): Remove now-unneeded definition.
22836         * modules/isdir (Files): Add lib/isdir.h.
22837         * lib/isdir.h: New file, with declaration.
22838         * m4/isdir.m4: Remove file -- unneeded.
22839
22840 2009-12-25  Bruno Haible  <bruno@clisp.org>
22841
22842         selinux-h: Make generated .h files standalone.
22843         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22844         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22845         * lib/se-selinux.in.h: Likewise.
22846         * modules/selinux-h (Depends-on): Add unused-parameter.
22847         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22848         selinux/selinux.h and selinux/context.h.
22849         Suggested by Eric Blake.
22850
22851 2009-12-25  Bruno Haible  <bruno@clisp.org>
22852
22853         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22854         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22855         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22856         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22857         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22858
22859 2009-12-24  Bruno Haible  <bruno@clisp.org>
22860
22861         openat: Fix warning.
22862         * lib/openat-proc.c: Include <unistd.h>.
22863
22864 2009-12-24  Bruno Haible  <bruno@clisp.org>
22865
22866         New module 'unused-parameter'.
22867         * build-aux/unused-parameter.h: New file, extracted from earlier
22868         gnulib-common.m4.
22869         * modules/unused-parameter: New file.
22870         * lib/unistr.h: Include unused-parameter.h.
22871         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22872         _GL_UNUSED.
22873         * modules/unistr/base (Depends-on): Add unused-parameter.
22874
22875 2009-12-24  Bruno Haible  <bruno@clisp.org>
22876
22877         Add missing dependencies to 'extensions' module.
22878         * m4/extensions.m4: Add comment.
22879         * modules/accept4 (Depends-on): Add extensions.
22880         * modules/dup3 (Depends-on): Likewise.
22881         * modules/fcntl (Depends-on): Likewise.
22882         * modules/futimens (Depends-on): Likewise.
22883         * modules/mknod (Depends-on): Likewise.
22884         * modules/pipe2 (Depends-on): Likewise.
22885         * modules/stat-time (Depends-on): Likewise.
22886         * modules/strcasestr-simple (Depends-on): Likewise.
22887         * modules/strsignal (Depends-on): Likewise.
22888         * modules/utimensat (Depends-on): Likewise.
22889         * modules/localcharset (Depends-on): Likewise. Needed because of
22890         gl_FCNTL_O_FLAGS.
22891         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22892         AC_TYPE_MBSTATE_T.
22893         * modules/wcsnrtombs (Depends-on): Likewise.
22894         * modules/wcsrtombs (Depends-on): Likewise.
22895
22896 2009-12-24  Bruno Haible  <bruno@clisp.org>
22897
22898         binary-io: Avoid gcc warning due to SET_BINARY.
22899         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22900         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22901
22902 2009-12-24  Bruno Haible  <bruno@clisp.org>
22903
22904         Avoid future namespace pollution on glibc systems.
22905         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22906         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22907         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22908         glibc systems.
22909
22910 2009-12-24  Bruno Haible  <bruno@clisp.org>
22911
22912         Refactor common macros used in tests.
22913         * tests/macros.h: New file.
22914         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22915         and/or <stdlib.h>, if appropriate.
22916         (ASSERT, SIZEOF): Remove macros.
22917         * tests/test-areadlink-with-size.c: Likewise.
22918         * tests/test-areadlinkat.c: Likewise.
22919         * tests/test-areadlinkat-with-size.c: Likewise.
22920         * tests/test-argmatch.c: Likewise.
22921         * tests/test-argv-iter.c: Likewise.
22922         * tests/test-array-mergesort.c: Likewise.
22923         * tests/test-array_list.c: Likewise.
22924         * tests/test-array_oset.c: Likewise.
22925         * tests/test-avltree_list.c: Likewise.
22926         * tests/test-avltree_oset.c: Likewise.
22927         * tests/test-avltreehash_list.c: Likewise.
22928         * tests/test-base64.c: Likewise.
22929         * tests/test-binary-io.c: Likewise.
22930         * tests/test-bitrotate.c: Likewise.
22931         * tests/test-btowc.c: Likewise.
22932         * tests/test-byteswap.c: Likewise.
22933         * tests/test-c-ctype.c: Likewise.
22934         * tests/test-c-stack.c: Likewise.
22935         * tests/test-c-strcasecmp.c: Likewise.
22936         * tests/test-c-strcasestr.c: Likewise.
22937         * tests/test-c-strncasecmp.c: Likewise.
22938         * tests/test-c-strstr.c: Likewise.
22939         * tests/test-canonicalize-lgpl.c: Likewise.
22940         * tests/test-canonicalize.c: Likewise.
22941         * tests/test-carray_list.c: Likewise.
22942         * tests/test-ceilf1.c: Likewise.
22943         * tests/test-ceilf2.c: Likewise.
22944         * tests/test-ceill.c: Likewise.
22945         * tests/test-chown.c: Likewise.
22946         * tests/test-cloexec.c: Likewise.
22947         * tests/test-copy-acl.c: Likewise.
22948         * tests/test-copy-file.c: Likewise.
22949         * tests/test-count-one-bits.c: Likewise.
22950         * tests/test-dprintf-posix.c: Likewise.
22951         * tests/test-dup2.c: Likewise.
22952         * tests/test-dup3.c: Likewise.
22953         * tests/test-duplocale.c: Likewise.
22954         * tests/test-fbufmode.c: Likewise.
22955         * tests/test-fchdir.c: Likewise.
22956         * tests/test-fchownat.c: Likewise.
22957         * tests/test-fcntl-safer.c: Likewise.
22958         * tests/test-fcntl.c: Likewise.
22959         * tests/test-fdopendir.c: Likewise.
22960         * tests/test-fdutimensat.c: Likewise.
22961         * tests/test-fflush2.c: Likewise.
22962         * tests/test-file-has-acl.c: Likewise.
22963         * tests/test-filevercmp.c: Likewise.
22964         * tests/test-flock.c: Likewise.
22965         * tests/test-floorf1.c: Likewise.
22966         * tests/test-floorf2.c: Likewise.
22967         * tests/test-floorl.c: Likewise.
22968         * tests/test-fnmatch.c: Likewise.
22969         * tests/test-fopen.h: Likewise.
22970         * tests/test-fpending.c: Likewise.
22971         * tests/test-fprintf-posix.c: Likewise.
22972         * tests/test-fpurge.c: Likewise.
22973         * tests/test-freadable.c: Likewise.
22974         * tests/test-freadahead.c: Likewise.
22975         * tests/test-freading.c: Likewise.
22976         * tests/test-freadptr.c: Likewise.
22977         * tests/test-freadptr2.c: Likewise.
22978         * tests/test-freadseek.c: Likewise.
22979         * tests/test-freopen.c: Likewise.
22980         * tests/test-frexp.c: Likewise.
22981         * tests/test-frexpl.c: Likewise.
22982         * tests/test-fseek.c: Likewise.
22983         * tests/test-fseeko.c: Likewise.
22984         * tests/test-fstatat.c: Likewise.
22985         * tests/test-fstrcmp.c: Likewise.
22986         * tests/test-fsync.c: Likewise.
22987         * tests/test-ftell.c: Likewise.
22988         * tests/test-ftello.c: Likewise.
22989         * tests/test-func.c: Likewise.
22990         * tests/test-futimens.c: Likewise.
22991         * tests/test-fwritable.c: Likewise.
22992         * tests/test-fwriting.c: Likewise.
22993         * tests/test-getcwd.c: Likewise.
22994         * tests/test-getdate.c: Likewise.
22995         * tests/test-getdelim.c: Likewise.
22996         * tests/test-getdtablesize.c: Likewise.
22997         * tests/test-getgroups.c: Likewise.
22998         * tests/test-getline.c: Likewise.
22999         * tests/test-getndelim2.c: Likewise.
23000         * tests/test-glob.c: Likewise.
23001         * tests/test-hash.c: Likewise.
23002         * tests/test-i-ring.c: Likewise.
23003         * tests/test-iconv-utf.c: Likewise.
23004         * tests/test-iconv.c: Likewise.
23005         * tests/test-idpriv-drop.c: Likewise.
23006         * tests/test-idpriv-droptemp.c: Likewise.
23007         * tests/test-inet_ntop.c: Likewise.
23008         * tests/test-inet_pton.c: Likewise.
23009         * tests/test-isblank.c: Likewise.
23010         * tests/test-isfinite.c: Likewise.
23011         * tests/test-isinf.c: Likewise.
23012         * tests/test-isnan.c: Likewise.
23013         * tests/test-isnand.h: Likewise.
23014         * tests/test-isnanf.h: Likewise.
23015         * tests/test-isnanl.h: Likewise.
23016         * tests/test-lchown.c: Likewise.
23017         * tests/test-ldexpl.c: Likewise.
23018         * tests/test-link.c: Likewise.
23019         * tests/test-linkat.c: Likewise.
23020         * tests/test-linked_list.c: Likewise.
23021         * tests/test-linkedhash_list.c: Likewise.
23022         * tests/test-localename.c: Likewise.
23023         * tests/test-lseek.c: Likewise.
23024         * tests/test-lstat.c: Likewise.
23025         * tests/test-mbmemcasecmp.c: Likewise.
23026         * tests/test-mbmemcasecoll.c: Likewise.
23027         * tests/test-mbrtowc.c: Likewise.
23028         * tests/test-mbscasecmp.c: Likewise.
23029         * tests/test-mbscasestr1.c: Likewise.
23030         * tests/test-mbscasestr2.c: Likewise.
23031         * tests/test-mbscasestr3.c: Likewise.
23032         * tests/test-mbscasestr4.c: Likewise.
23033         * tests/test-mbschr.c: Likewise.
23034         * tests/test-mbscspn.c: Likewise.
23035         * tests/test-mbsinit.c: Likewise.
23036         * tests/test-mbsncasecmp.c: Likewise.
23037         * tests/test-mbsnrtowcs.c: Likewise.
23038         * tests/test-mbspbrk.c: Likewise.
23039         * tests/test-mbspcasecmp.c: Likewise.
23040         * tests/test-mbsrchr.c: Likewise.
23041         * tests/test-mbsrtowcs.c: Likewise.
23042         * tests/test-mbsspn.c: Likewise.
23043         * tests/test-mbsstr1.c: Likewise.
23044         * tests/test-mbsstr2.c: Likewise.
23045         * tests/test-mbsstr3.c: Likewise.
23046         * tests/test-memchr.c: Likewise.
23047         * tests/test-memchr2.c: Likewise.
23048         * tests/test-memcmp.c: Likewise.
23049         * tests/test-memmem.c: Likewise.
23050         * tests/test-memrchr.c: Likewise.
23051         * tests/test-mkdir.c: Likewise.
23052         * tests/test-mkdirat.c: Likewise.
23053         * tests/test-mkfifo.c: Likewise.
23054         * tests/test-mkfifoat.c: Likewise.
23055         * tests/test-mknod.c: Likewise.
23056         * tests/test-nanosleep.c: Likewise.
23057         * tests/test-nl_langinfo.c: Likewise.
23058         * tests/test-obstack-printf.c: Likewise.
23059         * tests/test-open.c: Likewise.
23060         * tests/test-openat.c: Likewise.
23061         * tests/test-pipe-filter-gi1.c: Likewise.
23062         * tests/test-pipe-filter-gi2-main.c: Likewise.
23063         * tests/test-pipe-filter-ii1.c: Likewise.
23064         * tests/test-pipe-filter-ii2-main.c: Likewise.
23065         * tests/test-pipe2.c: Likewise.
23066         * tests/test-popen.h: Likewise.
23067         * tests/test-posixtm.c: Likewise.
23068         * tests/test-pread.c: Likewise.
23069         * tests/test-printf-frexp.c: Likewise.
23070         * tests/test-printf-frexpl.c: Likewise.
23071         * tests/test-printf-posix.c: Likewise.
23072         * tests/test-priv-set.c: Likewise.
23073         * tests/test-quotearg.c: Likewise.
23074         * tests/test-random_r.c: Likewise.
23075         * tests/test-rawmemchr.c: Likewise.
23076         * tests/test-rbtree_list.c: Likewise.
23077         * tests/test-rbtree_oset.c: Likewise.
23078         * tests/test-rbtreehash_list.c: Likewise.
23079         * tests/test-readlink.c: Likewise.
23080         * tests/test-remove.c: Likewise.
23081         * tests/test-rename.c: Likewise.
23082         * tests/test-renameat.c: Likewise.
23083         * tests/test-rmdir.c: Likewise.
23084         * tests/test-round1.c: Likewise.
23085         * tests/test-roundf1.c: Likewise.
23086         * tests/test-roundl.c: Likewise.
23087         * tests/test-safe-alloc.c: Likewise.
23088         * tests/test-sameacls.c: Likewise.
23089         * tests/test-set-mode-acl.c: Likewise.
23090         * tests/test-setenv.c: Likewise.
23091         * tests/test-sigaction.c: Likewise.
23092         * tests/test-signbit.c: Likewise.
23093         * tests/test-sleep.c: Likewise.
23094         * tests/test-snprintf-posix.c: Likewise.
23095         * tests/test-snprintf.c: Likewise.
23096         * tests/test-sprintf-posix.c: Likewise.
23097         * tests/test-stat-time.c: Likewise.
23098         * tests/test-stat.c: Likewise.
23099         * tests/test-strcasestr.c: Likewise.
23100         * tests/test-strchrnul.c: Likewise.
23101         * tests/test-strerror.c: Likewise.
23102         * tests/test-striconv.c: Likewise.
23103         * tests/test-striconveh.c: Likewise.
23104         * tests/test-striconveha.c: Likewise.
23105         * tests/test-strsignal.c: Likewise.
23106         * tests/test-strstr.c: Likewise.
23107         * tests/test-strtod.c: Likewise.
23108         * tests/test-strverscmp.c: Likewise.
23109         * tests/test-symlink.c: Likewise.
23110         * tests/test-symlinkat.c: Likewise.
23111         * tests/test-trunc1.c: Likewise.
23112         * tests/test-trunc2.c: Likewise.
23113         * tests/test-truncf1.c: Likewise.
23114         * tests/test-truncf2.c: Likewise.
23115         * tests/test-truncl.c: Likewise.
23116         * tests/test-uname.c: Likewise.
23117         * tests/test-unlink.c: Likewise.
23118         * tests/test-unlinkat.c: Likewise.
23119         * tests/test-unsetenv.c: Likewise.
23120         * tests/test-usleep.c: Likewise.
23121         * tests/test-utimens.c: Likewise.
23122         * tests/test-utimensat.c: Likewise.
23123         * tests/test-vasnprintf-posix.c: Likewise.
23124         * tests/test-vasnprintf-posix2.c: Likewise.
23125         * tests/test-vasnprintf.c: Likewise.
23126         * tests/test-vasprintf-posix.c: Likewise.
23127         * tests/test-vasprintf.c: Likewise.
23128         * tests/test-vdprintf-posix.c: Likewise.
23129         * tests/test-vfprintf-posix.c: Likewise.
23130         * tests/test-vprintf-posix.c: Likewise.
23131         * tests/test-vsnprintf-posix.c: Likewise.
23132         * tests/test-vsnprintf.c: Likewise.
23133         * tests/test-vsprintf-posix.c: Likewise.
23134         * tests/test-wcrtomb.c: Likewise.
23135         * tests/test-wcsnrtombs.c: Likewise.
23136         * tests/test-wcsrtombs.c: Likewise.
23137         * tests/test-wctype.c: Likewise.
23138         * tests/test-wcwidth.c: Likewise.
23139         * tests/test-xfprintf-posix.c: Likewise.
23140         * tests/test-xmemdup0.c: Likewise.
23141         * tests/test-xprintf-posix.c: Likewise.
23142         * tests/test-xvasprintf.c: Likewise.
23143         * tests/unicase/test-locale-language.c: Likewise.
23144         * tests/unicase/test-mapping-part1.h: Likewise.
23145         * tests/unicase/test-predicate-part1.h: Likewise.
23146         * tests/unicase/test-u8-casecmp.c: Likewise.
23147         * tests/unicase/test-u8-casecoll.c: Likewise.
23148         * tests/unicase/test-u8-casefold.c: Likewise.
23149         * tests/unicase/test-u8-is-cased.c: Likewise.
23150         * tests/unicase/test-u8-is-casefolded.c: Likewise.
23151         * tests/unicase/test-u8-is-lowercase.c: Likewise.
23152         * tests/unicase/test-u8-is-titlecase.c: Likewise.
23153         * tests/unicase/test-u8-is-uppercase.c: Likewise.
23154         * tests/unicase/test-u8-tolower.c: Likewise.
23155         * tests/unicase/test-u8-totitle.c: Likewise.
23156         * tests/unicase/test-u8-toupper.c: Likewise.
23157         * tests/unicase/test-u16-casecmp.c: Likewise.
23158         * tests/unicase/test-u16-casecoll.c: Likewise.
23159         * tests/unicase/test-u16-casefold.c: Likewise.
23160         * tests/unicase/test-u16-is-cased.c: Likewise.
23161         * tests/unicase/test-u16-is-casefolded.c: Likewise.
23162         * tests/unicase/test-u16-is-lowercase.c: Likewise.
23163         * tests/unicase/test-u16-is-titlecase.c: Likewise.
23164         * tests/unicase/test-u16-is-uppercase.c: Likewise.
23165         * tests/unicase/test-u16-tolower.c: Likewise.
23166         * tests/unicase/test-u16-totitle.c: Likewise.
23167         * tests/unicase/test-u16-toupper.c: Likewise.
23168         * tests/unicase/test-u32-casecmp.c: Likewise.
23169         * tests/unicase/test-u32-casecoll.c: Likewise.
23170         * tests/unicase/test-u32-casefold.c: Likewise.
23171         * tests/unicase/test-u32-is-cased.c: Likewise.
23172         * tests/unicase/test-u32-is-casefolded.c: Likewise.
23173         * tests/unicase/test-u32-is-lowercase.c: Likewise.
23174         * tests/unicase/test-u32-is-titlecase.c: Likewise.
23175         * tests/unicase/test-u32-is-uppercase.c: Likewise.
23176         * tests/unicase/test-u32-tolower.c: Likewise.
23177         * tests/unicase/test-u32-totitle.c: Likewise.
23178         * tests/unicase/test-u32-toupper.c: Likewise.
23179         * tests/unicase/test-ulc-casecmp.c: Likewise.
23180         * tests/unicase/test-ulc-casecoll.c: Likewise.
23181         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23182         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23183         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23184         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23185         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23186         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23187         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23188         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23189         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23190         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23191         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23192         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23193         * tests/unictype/test-bidi_byname.c: Likewise.
23194         * tests/unictype/test-bidi_name.c: Likewise.
23195         * tests/unictype/test-bidi_of.c: Likewise.
23196         * tests/unictype/test-bidi_test.c: Likewise.
23197         * tests/unictype/test-block_list.c: Likewise.
23198         * tests/unictype/test-block_of.c: Likewise.
23199         * tests/unictype/test-block_test.c: Likewise.
23200         * tests/unictype/test-categ_and.c: Likewise.
23201         * tests/unictype/test-categ_and_not.c: Likewise.
23202         * tests/unictype/test-categ_byname.c: Likewise.
23203         * tests/unictype/test-categ_name.c: Likewise.
23204         * tests/unictype/test-categ_none.c: Likewise.
23205         * tests/unictype/test-categ_of.c: Likewise.
23206         * tests/unictype/test-categ_or.c: Likewise.
23207         * tests/unictype/test-categ_test_withtable.c: Likewise.
23208         * tests/unictype/test-combining.c: Likewise.
23209         * tests/unictype/test-decdigit.c: Likewise.
23210         * tests/unictype/test-digit.c: Likewise.
23211         * tests/unictype/test-mirror.c: Likewise.
23212         * tests/unictype/test-numeric.c: Likewise.
23213         * tests/unictype/test-pr_byname.c: Likewise.
23214         * tests/unictype/test-pr_test.c: Likewise.
23215         * tests/unictype/test-predicate-part1.h: Likewise.
23216         * tests/unictype/test-scripts.c: Likewise.
23217         * tests/unictype/test-sy_c_ident.c: Likewise.
23218         * tests/unictype/test-sy_java_ident.c: Likewise.
23219         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
23220         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
23221         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
23222         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
23223         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
23224         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
23225         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
23226         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
23227         * tests/uninorm/test-canonical-decomposition.c: Likewise.
23228         * tests/uninorm/test-compat-decomposition.c: Likewise.
23229         * tests/uninorm/test-composition.c: Likewise.
23230         * tests/uninorm/test-decomposing-form.c: Likewise.
23231         * tests/uninorm/test-decomposition.c: Likewise.
23232         * tests/uninorm/test-u8-nfc.c: Likewise.
23233         * tests/uninorm/test-u8-nfd.c: Likewise.
23234         * tests/uninorm/test-u8-nfkc.c: Likewise.
23235         * tests/uninorm/test-u8-nfkd.c: Likewise.
23236         * tests/uninorm/test-u8-normcmp.c: Likewise.
23237         * tests/uninorm/test-u8-normcoll.c: Likewise.
23238         * tests/uninorm/test-u16-nfc.c: Likewise.
23239         * tests/uninorm/test-u16-nfd.c: Likewise.
23240         * tests/uninorm/test-u16-nfkc.c: Likewise.
23241         * tests/uninorm/test-u16-nfkd.c: Likewise.
23242         * tests/uninorm/test-u16-normcmp.c: Likewise.
23243         * tests/uninorm/test-u16-normcoll.c: Likewise.
23244         * tests/uninorm/test-u32-nfc.c: Likewise.
23245         * tests/uninorm/test-u32-nfd.c: Likewise.
23246         * tests/uninorm/test-u32-nfkc.c: Likewise.
23247         * tests/uninorm/test-u32-nfkd.c: Likewise.
23248         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23249         * tests/uninorm/test-u32-normcmp.c: Likewise.
23250         * tests/uninorm/test-u32-normcoll.c: Likewise.
23251         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
23252         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
23253         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
23254         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
23255         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
23256         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
23257         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23258         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23259         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23260         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23261         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23262         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23263         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23264         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23265         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23266         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23267         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23268         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23269         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
23270         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
23271         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23272         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23273         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
23274         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
23275         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
23276         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
23277         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
23278         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23279         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23280         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
23281         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
23282         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
23283         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
23284         * tests/uniwidth/test-u8-strwidth.c: Likewise.
23285         * tests/uniwidth/test-u8-width.c: Likewise.
23286         * tests/uniwidth/test-u16-strwidth.c: Likewise.
23287         * tests/uniwidth/test-u16-width.c: Likewise.
23288         * tests/uniwidth/test-u32-strwidth.c: Likewise.
23289         * tests/uniwidth/test-u32-width.c: Likewise.
23290         * tests/uniwidth/test-uc_width.c: Likewise.
23291         * tests/uniwidth/test-uc_width2.c: Likewise.
23292         * modules/acl-tests (Files): Add tests/macros.h.
23293         * modules/areadlink-tests (Files): Likewise.
23294         * modules/areadlink-with-size-tests (Files): Likewise.
23295         * modules/areadlinkat-tests (Files): Likewise.
23296         * modules/areadlinkat-with-size-tests (Files): Likewise.
23297         * modules/argmatch-tests (Files): Likewise.
23298         * modules/argv-iter-tests (Files): Likewise.
23299         * modules/array-list-tests (Files): Likewise.
23300         * modules/array-mergesort-tests (Files): Likewise.
23301         * modules/array-oset-tests (Files): Likewise.
23302         * modules/avltree-list-tests (Files): Likewise.
23303         * modules/avltree-oset-tests (Files): Likewise.
23304         * modules/avltreehash-list-tests (Files): Likewise.
23305         * modules/base64-tests (Files): Likewise.
23306         * modules/binary-io-tests (Files): Likewise.
23307         * modules/bitrotate-tests (Files): Likewise.
23308         * modules/btowc-tests (Files): Likewise.
23309         * modules/byteswap-tests (Files): Likewise.
23310         * modules/c-ctype-tests (Files): Likewise.
23311         * modules/c-stack-tests (Files): Likewise.
23312         * modules/c-strcase-tests (Files): Likewise.
23313         * modules/c-strcasestr-tests (Files): Likewise.
23314         * modules/c-strstr-tests (Files): Likewise.
23315         * modules/canonicalize-lgpl-tests (Files): Likewise.
23316         * modules/canonicalize-tests (Files): Likewise.
23317         * modules/carray-list-tests (Files): Likewise.
23318         * modules/ceilf-tests (Files): Likewise.
23319         * modules/ceill-tests (Files): Likewise.
23320         * modules/chown-tests (Files): Likewise.
23321         * modules/cloexec-tests (Files): Likewise.
23322         * modules/copy-file-tests (Files): Likewise.
23323         * modules/count-one-bits-tests (Files): Likewise.
23324         * modules/dprintf-posix-tests (Files): Likewise.
23325         * modules/dup2-tests (Files): Likewise.
23326         * modules/dup3-tests (Files): Likewise.
23327         * modules/duplocale-tests (Files): Likewise.
23328         * modules/fbufmode-tests (Files): Likewise.
23329         * modules/fchdir-tests (Files): Likewise.
23330         * modules/fcntl-safer-tests (Files): Likewise.
23331         * modules/fcntl-tests (Files): Likewise.
23332         * modules/fdopendir-tests (Files): Likewise.
23333         * modules/fdutimensat-tests (Files): Likewise.
23334         * modules/fflush-tests (Files): Likewise.
23335         * modules/filevercmp-tests (Files): Likewise.
23336         * modules/flock-tests (Files): Likewise.
23337         * modules/floorf-tests (Files): Likewise.
23338         * modules/floorl-tests (Files): Likewise.
23339         * modules/fnmatch-tests (Files): Likewise.
23340         * modules/fopen-safer-tests (Files): Likewise.
23341         * modules/fopen-tests (Files): Likewise.
23342         * modules/fpending-tests (Files): Likewise.
23343         * modules/fprintf-posix-tests (Files): Likewise.
23344         * modules/fpurge-tests (Files): Likewise.
23345         * modules/freadable-tests (Files): Likewise.
23346         * modules/freadahead-tests (Files): Likewise.
23347         * modules/freading-tests (Files): Likewise.
23348         * modules/freadptr-tests (Files): Likewise.
23349         * modules/freadseek-tests (Files): Likewise.
23350         * modules/freopen-tests (Files): Likewise.
23351         * modules/frexp-nolibm-tests (Files): Likewise.
23352         * modules/frexp-tests (Files): Likewise.
23353         * modules/frexpl-nolibm-tests (Files): Likewise.
23354         * modules/frexpl-tests (Files): Likewise.
23355         * modules/fseek-tests (Files): Likewise.
23356         * modules/fseeko-tests (Files): Likewise.
23357         * modules/fstrcmp-tests (Files): Likewise.
23358         * modules/fsync-tests (Files): Likewise.
23359         * modules/ftell-tests (Files): Likewise.
23360         * modules/ftello-tests (Files): Likewise.
23361         * modules/func-tests (Files): Likewise.
23362         * modules/futimens-tests (Files): Likewise.
23363         * modules/fwritable-tests (Files): Likewise.
23364         * modules/fwriting-tests (Files): Likewise.
23365         * modules/getcwd-tests (Files): Likewise.
23366         * modules/getdate-tests (Files): Likewise.
23367         * modules/getdelim-tests (Files): Likewise.
23368         * modules/getdtablesize-tests (Files): Likewise.
23369         * modules/getgroups-tests (Files): Likewise.
23370         * modules/getline-tests (Files): Likewise.
23371         * modules/getndelim2-tests (Files): Likewise.
23372         * modules/glob-tests (Files): Likewise.
23373         * modules/hash-tests (Files): Likewise.
23374         * modules/i-ring-tests (Files): Likewise.
23375         * modules/iconv-tests (Files): Likewise.
23376         * modules/iconv_open-utf-tests (Files): Likewise.
23377         * modules/idpriv-drop-tests (Files): Likewise.
23378         * modules/idpriv-droptemp-tests (Files): Likewise.
23379         * modules/inet_ntop-tests (Files): Likewise.
23380         * modules/inet_pton-tests (Files): Likewise.
23381         * modules/isblank-tests (Files): Likewise.
23382         * modules/isfinite-tests (Files): Likewise.
23383         * modules/isinf-tests (Files): Likewise.
23384         * modules/isnan-tests (Files): Likewise.
23385         * modules/isnand-nolibm-tests (Files): Likewise.
23386         * modules/isnand-tests (Files): Likewise.
23387         * modules/isnanf-nolibm-tests (Files): Likewise.
23388         * modules/isnanf-tests (Files): Likewise.
23389         * modules/isnanl-nolibm-tests (Files): Likewise.
23390         * modules/isnanl-tests (Files): Likewise.
23391         * modules/lchown-tests (Files): Likewise.
23392         * modules/ldexpl-tests (Files): Likewise.
23393         * modules/link-tests (Files): Likewise.
23394         * modules/linkat-tests (Files): Likewise.
23395         * modules/linked-list-tests (Files): Likewise.
23396         * modules/linkedhash-list-tests (Files): Likewise.
23397         * modules/localename-tests (Files): Likewise.
23398         * modules/lseek-tests (Files): Likewise.
23399         * modules/lstat-tests (Files): Likewise.
23400         * modules/mbmemcasecmp-tests (Files): Likewise.
23401         * modules/mbmemcasecoll-tests (Files): Likewise.
23402         * modules/mbrtowc-tests (Files): Likewise.
23403         * modules/mbscasecmp-tests (Files): Likewise.
23404         * modules/mbscasestr-tests (Files): Likewise.
23405         * modules/mbschr-tests (Files): Likewise.
23406         * modules/mbscspn-tests (Files): Likewise.
23407         * modules/mbsinit-tests (Files): Likewise.
23408         * modules/mbsncasecmp-tests (Files): Likewise.
23409         * modules/mbsnrtowcs-tests (Files): Likewise.
23410         * modules/mbspbrk-tests (Files): Likewise.
23411         * modules/mbspcasecmp-tests (Files): Likewise.
23412         * modules/mbsrchr-tests (Files): Likewise.
23413         * modules/mbsrtowcs-tests (Files): Likewise.
23414         * modules/mbsspn-tests (Files): Likewise.
23415         * modules/mbsstr-tests (Files): Likewise.
23416         * modules/memchr-tests (Files): Likewise.
23417         * modules/memchr2-tests (Files): Likewise.
23418         * modules/memcmp-tests (Files): Likewise.
23419         * modules/memmem-tests (Files): Likewise.
23420         * modules/memrchr-tests (Files): Likewise.
23421         * modules/mkdir-tests (Files): Likewise.
23422         * modules/mkfifo-tests (Files): Likewise.
23423         * modules/mkfifoat-tests (Files): Likewise.
23424         * modules/mknod-tests (Files): Likewise.
23425         * modules/nanosleep-tests (Files): Likewise.
23426         * modules/nl_langinfo-tests (Files): Likewise.
23427         * modules/obstack-printf-tests (Files): Likewise.
23428         * modules/open-tests (Files): Likewise.
23429         * modules/openat-tests (Files): Likewise.
23430         * modules/pipe-filter-gi-tests (Files): Likewise.
23431         * modules/pipe-filter-ii-tests (Files): Likewise.
23432         * modules/pipe2-tests (Files): Likewise.
23433         * modules/popen-safer-tests (Files): Likewise.
23434         * modules/popen-tests (Files): Likewise.
23435         * modules/posixtm-tests (Files): Likewise.
23436         * modules/pread-tests (Files): Likewise.
23437         * modules/printf-frexp-tests (Files): Likewise.
23438         * modules/printf-frexpl-tests (Files): Likewise.
23439         * modules/printf-posix-tests (Files): Likewise.
23440         * modules/priv-set-tests (Files): Likewise.
23441         * modules/quotearg-tests (Files): Likewise.
23442         * modules/random_r-tests (Files): Likewise.
23443         * modules/rawmemchr-tests (Files): Likewise.
23444         * modules/rbtree-list-tests (Files): Likewise.
23445         * modules/rbtree-oset-tests (Files): Likewise.
23446         * modules/rbtreehash-list-tests (Files): Likewise.
23447         * modules/readlink-tests (Files): Likewise.
23448         * modules/remove-tests (Files): Likewise.
23449         * modules/rename-tests (Files): Likewise.
23450         * modules/renameat-tests (Files): Likewise.
23451         * modules/rmdir-tests (Files): Likewise.
23452         * modules/round-tests (Files): Likewise.
23453         * modules/roundf-tests (Files): Likewise.
23454         * modules/roundl-tests (Files): Likewise.
23455         * modules/safe-alloc-tests (Files): Likewise.
23456         * modules/setenv-tests (Files): Likewise.
23457         * modules/sigaction-tests (Files): Likewise.
23458         * modules/signbit-tests (Files): Likewise.
23459         * modules/sleep-tests (Files): Likewise.
23460         * modules/snprintf-posix-tests (Files): Likewise.
23461         * modules/snprintf-tests (Files): Likewise.
23462         * modules/sprintf-posix-tests (Files): Likewise.
23463         * modules/stat-tests (Files): Likewise.
23464         * modules/stat-time-tests (Files): Likewise.
23465         * modules/strcasestr-tests (Files): Likewise.
23466         * modules/strchrnul-tests (Files): Likewise.
23467         * modules/strerror-tests (Files): Likewise.
23468         * modules/striconv-tests (Files): Likewise.
23469         * modules/striconveh-tests (Files): Likewise.
23470         * modules/striconveha-tests (Files): Likewise.
23471         * modules/strsignal-tests (Files): Likewise.
23472         * modules/strstr-tests (Files): Likewise.
23473         * modules/strtod-tests (Files): Likewise.
23474         * modules/strverscmp-tests (Files): Likewise.
23475         * modules/symlink-tests (Files): Likewise.
23476         * modules/symlinkat-tests (Files): Likewise.
23477         * modules/trunc-tests (Files): Likewise.
23478         * modules/truncf-tests (Files): Likewise.
23479         * modules/truncl-tests (Files): Likewise.
23480         * modules/uname-tests (Files): Likewise.
23481         * modules/unicase/cased-tests (Files): Likewise.
23482         * modules/unicase/ignorable-tests (Files): Likewise.
23483         * modules/unicase/locale-language-tests (Files): Likewise.
23484         * modules/unicase/tolower-tests (Files): Likewise.
23485         * modules/unicase/totitle-tests (Files): Likewise.
23486         * modules/unicase/toupper-tests (Files): Likewise.
23487         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23488         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23489         * modules/unicase/u8-casefold-tests (Files): Likewise.
23490         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23491         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23492         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23493         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23494         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23495         * modules/unicase/u8-tolower-tests (Files): Likewise.
23496         * modules/unicase/u8-totitle-tests (Files): Likewise.
23497         * modules/unicase/u8-toupper-tests (Files): Likewise.
23498         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23499         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23500         * modules/unicase/u16-casefold-tests (Files): Likewise.
23501         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23502         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23503         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23504         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23505         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23506         * modules/unicase/u16-tolower-tests (Files): Likewise.
23507         * modules/unicase/u16-totitle-tests (Files): Likewise.
23508         * modules/unicase/u16-toupper-tests (Files): Likewise.
23509         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23510         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23511         * modules/unicase/u32-casefold-tests (Files): Likewise.
23512         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23513         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23514         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23515         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23516         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23517         * modules/unicase/u32-tolower-tests (Files): Likewise.
23518         * modules/unicase/u32-totitle-tests (Files): Likewise.
23519         * modules/unicase/u32-toupper-tests (Files): Likewise.
23520         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23521         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23522         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23523         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23524         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23525         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23526         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23527         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23528         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23529         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23530         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23531         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23532         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23533         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23534         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23535         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23536         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23537         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23538         * modules/unictype/block-list-tests (Files): Likewise.
23539         * modules/unictype/block-of-tests (Files): Likewise.
23540         * modules/unictype/block-test-tests (Files): Likewise.
23541         * modules/unictype/category-C-tests (Files): Likewise.
23542         * modules/unictype/category-Cc-tests (Files): Likewise.
23543         * modules/unictype/category-Cf-tests (Files): Likewise.
23544         * modules/unictype/category-Cn-tests (Files): Likewise.
23545         * modules/unictype/category-Co-tests (Files): Likewise.
23546         * modules/unictype/category-Cs-tests (Files): Likewise.
23547         * modules/unictype/category-L-tests (Files): Likewise.
23548         * modules/unictype/category-Ll-tests (Files): Likewise.
23549         * modules/unictype/category-Lm-tests (Files): Likewise.
23550         * modules/unictype/category-Lo-tests (Files): Likewise.
23551         * modules/unictype/category-Lt-tests (Files): Likewise.
23552         * modules/unictype/category-Lu-tests (Files): Likewise.
23553         * modules/unictype/category-M-tests (Files): Likewise.
23554         * modules/unictype/category-Mc-tests (Files): Likewise.
23555         * modules/unictype/category-Me-tests (Files): Likewise.
23556         * modules/unictype/category-Mn-tests (Files): Likewise.
23557         * modules/unictype/category-N-tests (Files): Likewise.
23558         * modules/unictype/category-Nd-tests (Files): Likewise.
23559         * modules/unictype/category-Nl-tests (Files): Likewise.
23560         * modules/unictype/category-No-tests (Files): Likewise.
23561         * modules/unictype/category-P-tests (Files): Likewise.
23562         * modules/unictype/category-Pc-tests (Files): Likewise.
23563         * modules/unictype/category-Pd-tests (Files): Likewise.
23564         * modules/unictype/category-Pe-tests (Files): Likewise.
23565         * modules/unictype/category-Pf-tests (Files): Likewise.
23566         * modules/unictype/category-Pi-tests (Files): Likewise.
23567         * modules/unictype/category-Po-tests (Files): Likewise.
23568         * modules/unictype/category-Ps-tests (Files): Likewise.
23569         * modules/unictype/category-S-tests (Files): Likewise.
23570         * modules/unictype/category-Sc-tests (Files): Likewise.
23571         * modules/unictype/category-Sk-tests (Files): Likewise.
23572         * modules/unictype/category-Sm-tests (Files): Likewise.
23573         * modules/unictype/category-So-tests (Files): Likewise.
23574         * modules/unictype/category-Z-tests (Files): Likewise.
23575         * modules/unictype/category-Zl-tests (Files): Likewise.
23576         * modules/unictype/category-Zp-tests (Files): Likewise.
23577         * modules/unictype/category-Zs-tests (Files): Likewise.
23578         * modules/unictype/category-and-not-tests (Files): Likewise.
23579         * modules/unictype/category-and-tests (Files): Likewise.
23580         * modules/unictype/category-byname-tests (Files): Likewise.
23581         * modules/unictype/category-name-tests (Files): Likewise.
23582         * modules/unictype/category-none-tests (Files): Likewise.
23583         * modules/unictype/category-of-tests (Files): Likewise.
23584         * modules/unictype/category-or-tests (Files): Likewise.
23585         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23586         * modules/unictype/combining-class-tests (Files): Likewise.
23587         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23588         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23589         * modules/unictype/ctype-blank-tests (Files): Likewise.
23590         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23591         * modules/unictype/ctype-digit-tests (Files): Likewise.
23592         * modules/unictype/ctype-graph-tests (Files): Likewise.
23593         * modules/unictype/ctype-lower-tests (Files): Likewise.
23594         * modules/unictype/ctype-print-tests (Files): Likewise.
23595         * modules/unictype/ctype-punct-tests (Files): Likewise.
23596         * modules/unictype/ctype-space-tests (Files): Likewise.
23597         * modules/unictype/ctype-upper-tests (Files): Likewise.
23598         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23599         * modules/unictype/decimal-digit-tests (Files): Likewise.
23600         * modules/unictype/digit-tests (Files): Likewise.
23601         * modules/unictype/mirror-tests (Files): Likewise.
23602         * modules/unictype/numeric-tests (Files): Likewise.
23603         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23604         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23605         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23606         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23607         Likewise.
23608         * modules/unictype/property-bidi-block-separator-tests (Files):
23609         Likewise.
23610         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23611         Likewise.
23612         * modules/unictype/property-bidi-common-separator-tests (Files):
23613         Likewise.
23614         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23615         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23616         Likewise.
23617         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23618         Likewise.
23619         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23620         Likewise.
23621         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23622         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23623         Likewise.
23624         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23625         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23626         Likewise.
23627         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23628         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23629         * modules/unictype/property-bidi-segment-separator-tests (Files):
23630         Likewise.
23631         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23632         * modules/unictype/property-byname-tests (Files): Likewise.
23633         * modules/unictype/property-combining-tests (Files): Likewise.
23634         * modules/unictype/property-composite-tests (Files): Likewise.
23635         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23636         * modules/unictype/property-dash-tests (Files): Likewise.
23637         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23638         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23639         Likewise.
23640         * modules/unictype/property-deprecated-tests (Files): Likewise.
23641         * modules/unictype/property-diacritic-tests (Files): Likewise.
23642         * modules/unictype/property-extender-tests (Files): Likewise.
23643         * modules/unictype/property-format-control-tests (Files): Likewise.
23644         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23645         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23646         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23647         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23648         * modules/unictype/property-hyphen-tests (Files): Likewise.
23649         * modules/unictype/property-id-continue-tests (Files): Likewise.
23650         * modules/unictype/property-id-start-tests (Files): Likewise.
23651         * modules/unictype/property-ideographic-tests (Files): Likewise.
23652         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23653         * modules/unictype/property-ids-trinary-operator-tests (Files):
23654         Likewise.
23655         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23656         * modules/unictype/property-iso-control-tests (Files): Likewise.
23657         * modules/unictype/property-join-control-tests (Files): Likewise.
23658         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23659         * modules/unictype/property-line-separator-tests (Files): Likewise.
23660         * modules/unictype/property-logical-order-exception-tests (Files):
23661         Likewise.
23662         * modules/unictype/property-lowercase-tests (Files): Likewise.
23663         * modules/unictype/property-math-tests (Files): Likewise.
23664         * modules/unictype/property-non-break-tests (Files): Likewise.
23665         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23666         * modules/unictype/property-numeric-tests (Files): Likewise.
23667         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23668         * modules/unictype/property-other-default-ignorable-code-point-tests
23669         (Files): Likewise.
23670         * modules/unictype/property-other-grapheme-extend-tests (Files):
23671         Likewise.
23672         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23673         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23674         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23675         * modules/unictype/property-other-math-tests (Files): Likewise.
23676         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23677         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23678         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23679         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23680         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23681         * modules/unictype/property-private-use-tests (Files): Likewise.
23682         * modules/unictype/property-punctuation-tests (Files): Likewise.
23683         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23684         * modules/unictype/property-radical-tests (Files): Likewise.
23685         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23686         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23687         * modules/unictype/property-space-tests (Files): Likewise.
23688         * modules/unictype/property-terminal-punctuation-tests (Files):
23689         Likewise.
23690         * modules/unictype/property-test-tests (Files): Likewise.
23691         * modules/unictype/property-titlecase-tests (Files): Likewise.
23692         * modules/unictype/property-unassigned-code-value-tests (Files):
23693         Likewise.
23694         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23695         * modules/unictype/property-uppercase-tests (Files): Likewise.
23696         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23697         * modules/unictype/property-white-space-tests (Files): Likewise.
23698         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23699         * modules/unictype/property-xid-start-tests (Files): Likewise.
23700         * modules/unictype/property-zero-width-tests (Files): Likewise.
23701         * modules/unictype/scripts-tests (Files): Likewise.
23702         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23703         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23704         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23705         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23706         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23707         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23708         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23709         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23710         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23711         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23712         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23713         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23714         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23715         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23716         * modules/uninorm/composition-tests (Files): Likewise.
23717         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23718         * modules/uninorm/decomposition-tests (Files): Likewise.
23719         * modules/uninorm/filter-tests (Files): Likewise.
23720         * modules/uninorm/nfc-tests (Files): Likewise.
23721         * modules/uninorm/nfd-tests (Files): Likewise.
23722         * modules/uninorm/nfkc-tests (Files): Likewise.
23723         * modules/uninorm/nfkd-tests (Files): Likewise.
23724         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23725         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23726         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23727         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23728         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23729         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23730         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23731         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23732         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23733         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23734         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23735         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23736         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23737         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23738         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23739         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23740         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23741         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23742         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23743         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23744         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23745         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23746         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23747         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23748         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23749         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23750         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23751         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23752         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23753         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23754         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23755         * modules/uniwidth/u8-width-tests (Files): Likewise.
23756         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23757         * modules/uniwidth/u16-width-tests (Files): Likewise.
23758         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23759         * modules/uniwidth/u32-width-tests (Files): Likewise.
23760         * modules/uniwidth/width-tests (Files): Likewise.
23761         * modules/unlink-tests (Files): Likewise.
23762         * modules/unsetenv-tests (Files): Likewise.
23763         * modules/usleep-tests (Files): Likewise.
23764         * modules/utimens-tests (Files): Likewise.
23765         * modules/utimensat-tests (Files): Likewise.
23766         * modules/vasnprintf-posix-tests (Files): Likewise.
23767         * modules/vasnprintf-tests (Files): Likewise.
23768         * modules/vasprintf-posix-tests (Files): Likewise.
23769         * modules/vasprintf-tests (Files): Likewise.
23770         * modules/vdprintf-posix-tests (Files): Likewise.
23771         * modules/vfprintf-posix-tests (Files): Likewise.
23772         * modules/vprintf-posix-tests (Files): Likewise.
23773         * modules/vsnprintf-posix-tests (Files): Likewise.
23774         * modules/vsnprintf-tests (Files): Likewise.
23775         * modules/vsprintf-posix-tests (Files): Likewise.
23776         * modules/wcrtomb-tests (Files): Likewise.
23777         * modules/wcsnrtombs-tests (Files): Likewise.
23778         * modules/wcsrtombs-tests (Files): Likewise.
23779         * modules/wctype-tests (Files): Likewise.
23780         * modules/wcwidth-tests (Files): Likewise.
23781         * modules/xmemdup0-tests (Files): Likewise.
23782         * modules/xprintf-posix-tests (Files): Likewise.
23783         * modules/xvasprintf-tests (Files): Likewise.
23784
23785 2009-12-24  Eric Blake  <ebb9@byu.net>
23786
23787         test-nanosleep: fix typo
23788         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23789         patch.
23790         Reported by Bruno Haible.
23791
23792 2009-12-24  Bruno Haible  <bruno@clisp.org>
23793
23794         Reduce namespace pollution on glibc systems.
23795         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23796         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23797         systems.
23798         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23799         <getopt.h> on glibc systems.
23800         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23801         systems.
23802         * lib/fcntl.c: Include <unistd.h> here instead.
23803
23804 2009-12-24  Bruno Haible  <bruno@clisp.org>
23805
23806         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23807
23808 2009-12-24  Eric Blake  <ebb9@byu.net>
23809
23810         tests: add signature checks
23811         * tests/signature.h (SIGNATURE_CHECK): New file.
23812         * modules/atexit-tests (Files): Use it.
23813         * modules/btowc-tests (Files): Likewise.
23814         * modules/canonicalize-lgpl-tests (Files): Likewise.
23815         * modules/ceilf-tests (Files): Likewise.
23816         * modules/ceill-tests (Files): Likewise.
23817         * modules/chown-tests (Files): Likewise.
23818         * modules/dprintf-posix-tests (Files): Likewise.
23819         * modules/dup2-tests (Files): Likewise.
23820         * modules/dup3-tests (Files): Likewise.
23821         * modules/duplocale-tests (Files): Likewise.
23822         * modules/fchdir-tests (Files): Likewise.
23823         * modules/fcntl-tests (Files): Likewise.
23824         * modules/fdopendir-tests (Files): Likewise.
23825         * modules/fflush-tests (Files): Likewise.
23826         * modules/flock-tests (Files): Likewise.
23827         * modules/floorf-tests (Files): Likewise.
23828         * modules/floorl-tests (Files): Likewise.
23829         * modules/fnmatch-tests (Files): Likewise.
23830         * modules/fopen-tests (Files): Likewise.
23831         * modules/fprintf-posix-tests (Files): Likewise.
23832         * modules/freopen-tests (Files): Likewise.
23833         * modules/frexp-nolibm-tests (Files): Likewise.
23834         * modules/frexp-tests (Files): Likewise.
23835         * modules/frexpl-nolibm-tests (Files): Likewise.
23836         * modules/frexpl-tests (Files): Likewise.
23837         * modules/fseek-tests (Files): Likewise.
23838         * modules/fseeko-tests (Files): Likewise.
23839         * modules/fsync-tests (Files): Likewise.
23840         * modules/ftell-tests (Files): Likewise.
23841         * modules/ftello-tests (Files): Likewise.
23842         * modules/futimens-tests (Files): Likewise.
23843         * modules/getaddrinfo-tests (Files): Likewise.
23844         * modules/getcwd-tests (Files): Likewise.
23845         * modules/getdelim-tests (Files): Likewise.
23846         * modules/getdtablesize-tests (Files): Likewise.
23847         * modules/getgroups-tests (Files): Likewise.
23848         * modules/gethostname-tests (Files): Likewise.
23849         * modules/getline-tests (Files): Likewise.
23850         * modules/getopt-posix-tests (Files): Likewise.
23851         * modules/gettimeofday-tests (Files): Likewise.
23852         * modules/glob-tests (Files): Likewise.
23853         * modules/iconv-tests (Files): Likewise.
23854         * modules/inet_ntop-tests (Files): Likewise.
23855         * modules/inet_pton-tests (Files): Likewise.
23856         * modules/isblank-tests (Files): Likewise.
23857         * modules/lchown-tests (Files): Likewise.
23858         * modules/ldexpl-tests (Files): Likewise.
23859         * modules/link-tests (Files): Likewise.
23860         * modules/linkat-tests (Files): Likewise.
23861         * modules/lseek-tests (Files): Likewise.
23862         * modules/lstat-tests (Files): Likewise.
23863         * modules/mbrtowc-tests (Files): Likewise.
23864         * modules/mbsinit-tests (Files): Likewise.
23865         * modules/mbsnrtowcs-tests (Files): Likewise.
23866         * modules/mbsrtowcs-tests (Files): Likewise.
23867         * modules/memchr-tests (Files): Likewise.
23868         * modules/memcmp-tests (Files): Likewise.
23869         * modules/memmem-tests (Files): Likewise.
23870         * modules/memrchr-tests (Files): Likewise.
23871         * modules/mkdir-tests (Files): Likewise.
23872         * modules/mkfifo-tests (Files): Likewise.
23873         * modules/mkfifoat-tests (Files): Likewise.
23874         * modules/mknod-tests (Files): Likewise.
23875         * modules/nanosleep-tests (Files): Likewise.
23876         * modules/nl_langinfo-tests (Files): Likewise.
23877         * modules/obstack-printf-tests (Files): Likewise.
23878         * modules/open-tests (Files): Likewise.
23879         * modules/openat-tests (Files): Likewise.
23880         * modules/perror-tests (Files): Likewise.
23881         * modules/pipe2-tests (Files): Likewise.
23882         * modules/poll-tests (Files): Likewise.
23883         * modules/popen-tests (Files): Likewise.
23884         * modules/posix_spawn-tests (Files): Likewise.
23885         * modules/posix_spawnp-tests (Files): Likewise.
23886         * modules/pread-tests (Files): Likewise.
23887         * modules/printf-posix-tests (Files): Likewise.
23888         * modules/pty-tests (Files): Likewise.
23889         * modules/random_r-tests (Files): Likewise.
23890         * modules/rawmemchr-tests (Files): Likewise.
23891         * modules/readlink-tests (Files): Likewise.
23892         * modules/remove-tests (Files): Likewise.
23893         * modules/rename-tests (Files): Likewise.
23894         * modules/renameat-tests (Files): Likewise.
23895         * modules/rmdir-tests (Files): Likewise.
23896         * modules/round-tests (Files): Likewise.
23897         * modules/roundf-tests (Files): Likewise.
23898         * modules/roundl-tests (Files): Likewise.
23899         * modules/select-tests (Files): Likewise.
23900         * modules/setenv-tests (Files): Likewise.
23901         * modules/sigaction-tests (Files): Likewise.
23902         * modules/sleep-tests (Files): Likewise.
23903         * modules/snprintf-posix-tests (Files): Likewise.
23904         * modules/snprintf-tests (Files): Likewise.
23905         * modules/sprintf-posix-tests (Files): Likewise.
23906         * modules/stat-tests (Files): Likewise.
23907         * modules/strcasestr-tests (Files): Likewise.
23908         * modules/strchrnul-tests (Files): Likewise.
23909         * modules/strerror-tests (Files): Likewise.
23910         * modules/strsignal-tests (Files): Likewise.
23911         * modules/strstr-tests (Files): Likewise.
23912         * modules/strtod-tests (Files): Likewise.
23913         * modules/strverscmp-tests (Files): Likewise.
23914         * modules/symlink-tests (Files): Likewise.
23915         * modules/symlinkat-tests (Files): Likewise.
23916         * modules/times-tests (Files): Likewise.
23917         * modules/trunc-tests (Files): Likewise.
23918         * modules/truncf-tests (Files): Likewise.
23919         * modules/truncl-tests (Files): Likewise.
23920         * modules/tsearch-tests (Files): Likewise.
23921         * modules/uname-tests (Files): Likewise.
23922         * modules/unlink-tests (Files): Likewise.
23923         * modules/unsetenv-tests (Files): Likewise.
23924         * modules/usleep-tests (Files): Likewise.
23925         * modules/utimensat-tests (Files): Likewise.
23926         * modules/vasprintf-tests (Files): Likewise.
23927         * modules/vdprintf-posix-tests (Files): Likewise.
23928         * modules/vfprintf-posix-tests (Files): Likewise.
23929         * modules/vprintf-posix-tests (Files): Likewise.
23930         * modules/vsnprintf-posix-tests (Files): Likewise.
23931         * modules/vsnprintf-tests (Files): Likewise.
23932         * modules/vsprintf-posix-tests (Files): Likewise.
23933         * modules/wcrtomb-tests (Files): Likewise.
23934         * modules/wcsnrtombs-tests (Files): Likewise.
23935         * modules/wcsrtombs-tests (Files): Likewise.
23936         * modules/wcwidth-tests (Files): Likewise.
23937         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23938         * tests/test-isinf.c (isinf): Likewise.
23939         * tests/test-isnan.c (isnan): Likewise.
23940         * tests/test-signbit.c (signbit): Likewise.
23941         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23942         declaration, either as macro or with correct signature.
23943         (select): Ensure function under test is declared with correct
23944         signature in correct header.
23945         * tests/test-atexit.c (atexit): Likewise.
23946         * tests/test-btowc.c (btowc): Likewise.
23947         * tests/test-canonicalize-lgpl.c (realpath)
23948         (canonicalize_file_name): Likewise.
23949         * tests/test-ceilf1.c (ceilf): Likewise.
23950         * tests/test-ceill.c (ceill): Likewise.
23951         * tests/test-chown.c (chown): Likewise.
23952         * tests/test-dprintf-posix.c (dprintf): Likewise.
23953         * tests/test-dup2.c (dup2): Likewise.
23954         * tests/test-dup3.c (dup3): Likewise.
23955         * tests/test-duplocale.c (duplocale): Likewise.
23956         * tests/test-fchdir.c (fchdir): Likewise.
23957         * tests/test-fchownat.c (fchownat): Likewise.
23958         * tests/test-fcntl.c (fcntl): Likewise.
23959         * tests/test-fdopendir.c (fdopendir): Likewise.
23960         * tests/test-fflush.c (fflush): Likewise.
23961         * tests/test-flock.c (flock): Likewise.
23962         * tests/test-floorf1.c (floorf): Likewise.
23963         * tests/test-floorl.c (floorl): Likewise.
23964         * tests/test-fnmatch.c (fnmatch): Likewise.
23965         * tests/test-fopen.c (fopen): Likewise.
23966         * tests/test-fprintf-posix.c (fprintf): Likewise.
23967         * tests/test-freopen.c (freopen): Likewise.
23968         * tests/test-frexp.c (frexp): Likewise.
23969         * tests/test-frexpl.c (frexpl): Likewise.
23970         * tests/test-fseek.c (fseek): Likewise.
23971         * tests/test-fseeko.c (fseeko): Likewise.
23972         * tests/test-fstatat.c (fstatat): Likewise.
23973         * tests/test-fsync.c (fsync): Likewise.
23974         * tests/test-ftell.c (ftell): Likewise.
23975         * tests/test-ftello.c (ftello): Likewise.
23976         * tests/test-futimens.c (futimens): Likewise.
23977         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23978         (gai_strerror): Likewise.
23979         * tests/test-getcwd.c (getcwd): Likewise.
23980         * tests/test-getdelim.c (getdelim): Likewise.
23981         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23982         * tests/test-getgroups.c (getgroups): Likewise.
23983         * tests/test-gethostname.c (gethostname): Likewise.
23984         * tests/test-getline.c (getline): Likewise.
23985         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23986         Likewise.
23987         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23988         * tests/test-glob.c (glob, globfree): Likewise.
23989         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23990         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23991         * tests/test-inet_pton.c (inet_pton): Likewise.
23992         * tests/test-isblank.c (isblank): Likewise.
23993         * tests/test-lchown.c (lchown): Likewise.
23994         * tests/test-ldexpl.c (ldexpl): Likewise.
23995         * tests/test-link.c (link): Likewise.
23996         * tests/test-linkat.c (linkat): Likewise.
23997         * tests/test-lseek.c (lseek): Likewise.
23998         * tests/test-lstat.c (lstat): Likewise.
23999         * tests/test-mbrtowc.c (mbrtowc): Likewise.
24000         * tests/test-mbsinit.c (mbsinit): Likewise.
24001         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
24002         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
24003         * tests/test-memchr.c (memchr): Likewise.
24004         * tests/test-memcmp.c (memcmp): Likewise.
24005         * tests/test-memmem.c (memmem): Likewise.
24006         * tests/test-memrchr.c (memrchr): Likewise.
24007         * tests/test-mkdir.c (mkdir): Likewise.
24008         * tests/test-mkdirat.c (mkdirat): Likewise.
24009         * tests/test-mkfifo.c (mkfifo): Likewise.
24010         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
24011         * tests/test-mknod.c (mknod): Likewise.
24012         * tests/test-nanosleep.c (nanosleep): Likewise.
24013         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
24014         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
24015         Likewise.
24016         * tests/test-open.c (open): Likewise.
24017         * tests/test-openat.c (openat): Likewise.
24018         * tests/test-perror.c (perror): Likewise.
24019         * tests/test-pipe2.c (pipe2): Likewise.
24020         * tests/test-poll.c (poll): Likewise.
24021         * tests/test-popen.c (popen, pclose): Likewise.
24022         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
24023         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
24024         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
24025         (posix_spawn_file_actions_destroy)
24026         (posix_spawn_file_actions_addclose)
24027         (posix_spawn_file_actions_addopen)
24028         (posix_spawn_file_actions_adddup2): Likewise.
24029         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
24030         * tests/test-pread.c (pread): Likewise.
24031         * tests/test-printf-posix.c (printf): Likewise.
24032         * tests/test-pty.c (openpty, forkpty): Likewise.
24033         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
24034         (random_r): Likewise.
24035         * tests/test-rawmemchr.c (rawmemchr): Likewise.
24036         * tests/test-readlink.c (readlink): Likewise.
24037         * tests/test-remove.c (remove): Likewise.
24038         * tests/test-rename.c (rename): Likewise.
24039         * tests/test-renameat.c (renameat): Likewise.
24040         * tests/test-rmdir.c (rmdir): Likewise.
24041         * tests/test-round1.c (round): Likewise.
24042         * tests/test-roundf1.c (roundf): Likewise.
24043         * tests/test-roundl.c (roundl): Likewise.
24044         * tests/test-setenv.c (setenv): Likewise.
24045         * tests/test-sigaction.c (sigaction): Likewise.
24046         * tests/test-sleep.c (sleep): Likewise.
24047         * tests/test-snprintf.c (snprintf): Likewise.
24048         * tests/test-sprintf-posix.c (sprintf): Likewise.
24049         * tests/test-stat.c (stat): Likewise.
24050         * tests/test-stpncpy.c (stpncpy): Likewise.
24051         * tests/test-strcasestr.c (strcasestr): Likewise.
24052         * tests/test-strchrnul.c (strchrnul): Likewise.
24053         * tests/test-strerror.c (strerror): Likewise.
24054         * tests/test-strsignal.c (strsignal): Likewise.
24055         * tests/test-strstr.c (strstr): Likewise.
24056         * tests/test-strtod.c (strtod): Likewise.
24057         * tests/test-strverscmp.c (strverscmp): Likewise.
24058         * tests/test-symlink.c (symlink): Likewise.
24059         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
24060         * tests/test-times.c (times): Likewise.
24061         * tests/test-trunc1.c (trunc): Likewise.
24062         * tests/test-truncf1.c (truncf): Likewise.
24063         * tests/test-truncl.c (truncl): Likewise.
24064         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
24065         Likewise.
24066         * tests/test-uname.c (uname): Likewise.
24067         * tests/test-unlink.c (unlink): Likewise.
24068         * tests/test-unlinkat.c (unlinkat): Likewise.
24069         * tests/test-unsetenv.c (unsetenv): Likewise.
24070         * tests/test-usleep.c (usleep): Likewise.
24071         * tests/test-utimensat.c (utimensat): Likewise.
24072         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
24073         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
24074         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
24075         * tests/test-vprintf-posix.c (vprintf): Likewise.
24076         * tests/test-vsnprintf.c (vsnprintf): Likewise.
24077         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
24078         * tests/test-wcrtomb.c (wcrtomb): Likewise.
24079         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
24080         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
24081         * tests/test-wcwidth.c (wcwidth): Likewise.
24082
24083         build: pull in conditional headers during GNULIB_POSIXCHECK
24084         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
24085         definitions from any conditionally-included headers.
24086         * lib/stdlib.in.h (includes): Likewise.
24087         * lib/unistd.in.h (includes): Likewise.
24088
24089 2009-12-24  Bruno Haible  <bruno@clisp.org>
24090
24091         * tests/test-argv-iter.c: Include header file being tested immediately
24092         after config.h.
24093         * tests/test-base64.c: Likewise.
24094         * tests/test-flock.c: Likewise.
24095         * tests/test-fsync.c: Likewise.
24096         * tests/test-getdate.c: Likewise.
24097         * tests/test-getndelim2.c: Likewise.
24098         * tests/test-isfinite.c: Likewise.
24099         * tests/test-isinf.c: Likewise.
24100         * tests/test-strerror.c: Likewise.
24101         * tests/test-strsignal.c: Likewise.
24102
24103 2009-12-23  Eric Blake  <ebb9@byu.net>
24104
24105         unistd: work around cygwin bug
24106         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
24107         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
24108         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24109
24110 2009-12-23  Bruno Haible  <bruno@clisp.org>
24111
24112         localename: More tests.
24113         * tests/test-localename.c (SIZEOF): New macro.
24114         (categories): New variable.
24115         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
24116         test_locale_name_default): Add test w.r.t. thread locale.
24117         (test_locale_name_thread): New function.
24118         (main): Invoke it.
24119
24120         localename: Make aware of thread locale.
24121         * lib/localename.h (gl_locale_name_thread): New declaration.
24122         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
24123         behaviour with respect to thread locale.
24124         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
24125         <langinfo.h>, glthread/lock.h.
24126         (SIZE_BITS): New macro.
24127         (string_hash): New function.
24128         (struct hash_node): New type.
24129         (HASH_TABLE_SIZE): New macro.
24130         (struniq_hash_table, struniq_lock): New variables.
24131         (struniq): New function.
24132         (gl_locale_name_thread): New function.
24133         (gl_locale_name): Invoke it.
24134         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
24135         * modules/localename (Depends-on): Add lock.
24136         Reported by Mike Gran <spk121@yahoo.com>.
24137
24138 2009-12-23  Eric Blake  <ebb9@byu.net>
24139
24140         va-args: new module
24141         * modules/va-args: New file.
24142         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
24143         * MODULES.html.sh (Core language properties): Mention it.
24144
24145         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
24146         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
24147         named alias for __attribute__((__unused__)).
24148         * lib/chown.c: Update client.
24149         * lib/fchmodat.c: Likewise.
24150         * lib/fts.c: Likewise.
24151         * lib/getdate.y: Likewise.
24152         * lib/getgroups.c: Likewise.
24153         * lib/getopt.c: Likewise.
24154         * lib/getugroups.c: Likewise.
24155         * lib/mkdir.c: Likewise.
24156         * lib/mkfifo.c: Likewise.
24157         * lib/mkfifoat.c: Likewise.
24158         * lib/mknod.c: Likewise.
24159         * lib/mknodat.c: Likewise.
24160         * lib/readlink.c: Likewise.
24161         * lib/se-context.in.h: Likewise.
24162         * lib/se-selinux.in.h: Likewise.
24163         * lib/sockets.c: Likewise.
24164         * lib/symlink.c: Likewise.
24165         * lib/symlinkat.c: Likewise.
24166         * lib/unicodeio.c: Likewise.
24167         * lib/unistr.h: Likewise.
24168         * tests/test-areadlink.c: Likewise.
24169         * tests/test-areadlinkat.c: Likewise.
24170         * tests/test-filenamecat.c: Likewise.
24171         * tests/test-fseeko.c: Likewise.
24172         * tests/test-ftello.c: Likewise.
24173         * tests/test-getdate.c: Likewise.
24174         * tests/test-getgroups.c: Likewise.
24175         * tests/test-gethostname.c: Likewise.
24176         * tests/test-quotearg.c: Likewise.
24177         * tests/test-version-etc.c: Likewise.
24178         * tests/test-xalloc-die.c: Likewise.
24179         * tests/test-xfprintf-posix.c: Likewise.
24180         * tests/test-xprintf-posix.c: Likewise.
24181         * tests/test-xvasprintf.c: Likewise.
24182
24183         tests: avoid compiler warnings
24184         * tests/test-fcntl.c (main): Delete unused parameters.
24185         * tests/test-freopen-safer.c (main): Likewise.
24186         * tests/test-xalloc-die.c (main): Mark unused parameters.
24187         * tests/test-fseeko.c (main): Likewise.
24188         * tests/test-ftello.c (main): Likewise.
24189         * tests/test-nanosleep.c (main): Avoid declaration warning.
24190         * tests/test-sleep.c (main): Likewise.
24191         * tests/test-unsetenv.c (main): Silence warning about string
24192         literal.
24193         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24194
24195 2009-12-23  Bruno Haible  <bruno@clisp.org>
24196
24197         * tests/test-localename.c (test_locale_name): New function, extracted
24198         from main. Also test mixed situations.
24199         (test_locale_name_posix, test_locale_name_environ,
24200         test_locale_name_default): New functions.
24201         (main): Invoke them all.
24202         * modules/localename-tests (configure.ac): Test for newlocale.
24203
24204 2009-12-23  Bruno Haible  <bruno@clisp.org>
24205
24206         unistd: Ensure getcwd gets declared before being overridden.
24207         * lib/unistd.in.h: Conditionally include <io.h>.
24208
24209 2009-12-22  Bruno Haible  <bruno@clisp.org>
24210
24211         wchar: Diagnose broken combination of glibc and gcc versions and flags.
24212         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
24213         (gl_WCHAR_H): Invoke it.
24214         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
24215         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
24216         Reported by Karl Berry <karl@freefriends.org>.
24217
24218 2009-12-22  Eric Blake  <ebb9@byu.net>
24219
24220         math, unistd: avoid redundant includes
24221         * lib/math.in.h (isnan): No need to re-include <math.h>.
24222         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
24223
24224         getsubopt: work around cygwin bug
24225         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
24226         avoid conflicting with system getsubopt.
24227         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
24228         bug.
24229
24230         getopt: synchronize from glibc
24231         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
24232         parameter order.  Adjust all callers.
24233         (_getopt_internal_r, main): Adjust quoting in error messages.
24234         Drop considerations for outdated POSIX 1003.2 error message.
24235         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
24236         callers.
24237         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
24238
24239         test-getopt: test stderr behavior
24240         * modules/getopt-posix-tests (Depends-on): Add dup2.
24241         * tests/test-getopt.c (ASSERT): Avoid stderr.
24242         (main): Move stderr to a temporary file.
24243         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
24244         Instead, add parameter to inform caller if output occurred.
24245         (test_getopt): Adjust all existing tests to expect silence, and
24246         add new tests of leading ":".
24247         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24248         glibc shortcomings with leading "-:" or "+:" in optstring.
24249         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24250         Likewise.
24251         * doc/posix-functions/getopt.texi (getopt): Likewise.
24252
24253         test-getopt: enhance test
24254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
24255         supports optind=0.
24256         * tests/test-getopt.c (OPTIND_MIN): Move...
24257         * tests/test-getopt.h (OPTIND_MIN): ...here.
24258         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
24259         Require that optind=0 works, since modern BSD supports it in
24260         addition to optreset, and since coreutils expects it.
24261         (test_getopt_long_only): New test.
24262         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24263         glibc shortcomings with 'W;', and enforcement of optind=0.
24264         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24265         Likewise.
24266
24267 2009-12-21  Bruno Haible  <bruno@clisp.org>
24268
24269         localename: Improvements for MacOS X and Cygwin.
24270         * lib/localename.h (gl_locale_name_environ): New declaration.
24271         * lib/localename.c (gl_locale_name_environ): New function, extracted from
24272         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
24273         (gl_locale_name_posix): Invoke it.
24274         (gl_locale_name_default): Add comments. Use Windows native API also on
24275         Cygwin.
24276
24277 2009-12-21  Bruno Haible  <bruno@clisp.org>
24278
24279         Update list of Win32 locale ids.
24280         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
24281         (LANG_SAMI): Renamed from LANG_SAAMI.
24282         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
24283         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
24284         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
24285         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
24286         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
24287         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
24288         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
24289         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
24290         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
24291         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
24292         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
24293         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
24294         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
24295         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
24296         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
24297         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
24298         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
24299         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
24300         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
24301         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
24302         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
24303         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
24304         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
24305         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
24306         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
24307         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
24308         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
24309         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
24310         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
24311         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
24312         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
24313         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
24314         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
24315         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
24316         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
24317         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
24318         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
24319         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
24320         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
24321         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
24322         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
24323         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
24324         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
24325         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
24326         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
24327         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
24328         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
24329         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
24330         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
24331         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
24332         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
24333         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
24334         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
24335         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
24336         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
24337         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
24338         Add more languages and countries for Sami, Sorbian. Add more countries
24339         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
24340         for Pashto. Change country for Syriac, Tswana.
24341
24342 2009-12-21  Eric Blake  <ebb9@byu.net>
24343
24344         test-utimens: avoid spurious failure
24345         * tests/test-chown.h (nap): Factor...
24346         * tests/nap.h: ...into new file.
24347         * tests/test-lchown.h (nap): Avoid duplication.
24348         * tests/test-utimens-common.h (nap): Use shared implementation,
24349         necessary on file systems with 1-second resolution.
24350         * modules/chown-tests (Files): Include new file.
24351         * modules/fdutimensat-tests (Files): Likewise.
24352         * modules/futimens-tests (Files): Likewise.
24353         * modules/lchown-tests (Files): Likewise.
24354         * modules/openat-tests (Files): Likewise.
24355         * modules/utimens-tests (Files): Likewise.
24356         * modules/utimensat-tests (Files): Likewise.
24357
24358 2009-12-19  Eric Blake  <ebb9@byu.net>
24359
24360         futimens, utimensat: work around Linux bug
24361         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
24362         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24363         * lib/utimensat.c (rpl_utimensat): Work around it.
24364         * lib/futimens.c (rpl_futimens): Adjust comment.
24365
24366         utimens: work around Linux ctime bug
24367         * lib/utimens.c (detect_ctime_bug): New helper function.
24368         (update_timespec): Differentiate between workaround needed for
24369         this bug vs. what is needed for systems that lack utimensat.
24370         (fdutimens, lutimens): Work around bug.
24371
24372         utimens: check for ctime update
24373         * tests/test-utimens-common.h (check_ctime): Define.
24374         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
24375         * tests/test-futimens.h (test_futimens): Likewise.
24376         * tests/test-lutimens.h (test_lutimens): Likewise.
24377         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24378         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24379
24380 2009-12-19  Bruno Haible  <bruno@clisp.org>
24381
24382         dprintf-posix: Check against memory leak fixed on 2009-12-15.
24383         * tests/test-dprintf-posix2.sh: New file.
24384         * tests/test-dprintf-posix2.c: New file.
24385         * modules/dprintf-posix-tests (Files): Add them.
24386         (configure.ac): Check for getrlimit and setrlimit.
24387         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24388
24389 2009-12-19  Bruno Haible  <bruno@clisp.org>
24390
24391         fprintf-posix: Check against memory leak fixed on 2009-12-15.
24392         * tests/test-fprintf-posix3.sh: New file.
24393         * tests/test-fprintf-posix3.c: New file.
24394         * modules/fprintf-posix-tests (Files): Add them.
24395         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24396
24397 2009-12-19  Eric Blake  <ebb9@byu.net>
24398
24399         dirfd: fix prototype
24400         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
24401         * lib/dirfd.c (dirfd): Likewise.
24402
24403         canonicalize: reduce memory usage
24404         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24405         allocation to size.
24406         Reported by Solar Designer <solar@openwall.com>.
24407
24408 2009-12-19  Bruno Haible  <bruno@clisp.org>
24409
24410         New module attribute 'Applicability'.
24411         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24412         * gnulib-tool: New option --extract-applicability.
24413         (func_usage): Document it.
24414         (sed_extract_prog): Recognize it.
24415         (func_get_applicability): New function.
24416         (func_import): Generalize handling of 'link-warning' module.
24417         * modules/link-warning (Applicability): New section.
24418         * modules/arg-nonnull (Applicability): New section.
24419         Repoted by Simon Josefsson <simon@josefsson.org>.
24420
24421 2009-12-19  Bruno Haible  <bruno@clisp.org>
24422
24423         fflush: tweak
24424         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24425         * lib/fseeko.c (rpl_fseeko): Likewise.
24426
24427 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24428
24429         * lib/gl_list.h: Fix typo in comment.
24430
24431 2009-12-16  Eric Blake  <ebb9@byu.net>
24432
24433         fcntl: use to simplify other modules
24434         * modules/cloexec (Depends-on): Add fcntl.
24435         * modules/fchdir (Depends-on): Likewise.
24436         * modules/fd-safer-flag (Depends-on): Likewise.
24437         * modules/unistd-safer (Depends-on): Likewise.
24438         * modules/dup3 (configure.ac): Set module indicator.
24439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24440         missing.
24441         * lib/fchdir.c (_gl_register_dup): Fix comment.
24442         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24443         * lib/dup-safer.c (dup_safer): Likewise.
24444         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24445         * lib/dup3.c (dup3): Likewise.
24446         * tests/test-fchdir.c (main): Enhance test.
24447         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24448
24449         fcntl: port portions of fcntl to mingw
24450         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24451         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24452         replacement for mingw.
24453         * modules/fcntl (Description): Update.
24454         (Depends-on): Add dup2.
24455         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24456         * modules/fcntl-h (Makefile.am): Substitute it.
24457         * lib/fcntl.in.h (fcntl): Update declaration.
24458         (F_DUPFD, F_GETFD): New macros, when needed.
24459         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24460         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24461         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24462         we now guarantee.
24463
24464         fcntl: work around cygwin bug in F_DUPFD
24465         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24466         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24467         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24468         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24469         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24470
24471         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24472         * modules/fcntl (Files): List new files.
24473         (configure.ac): Run a test.
24474         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24475         * lib/fcntl.c (rpl_fcntl): Likewise.
24476         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24477         (gl_FCNTL_H): Always replace fcntl.h.
24478         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24479         * lib/fcntl.in.h (fcntl): Declare replacement.
24480         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24481         needed, plus a witness.
24482         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24483         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24484         * tests/test-fcntl.c: New file.
24485         * modules/fcntl-tests: Likewise.
24486
24487         binary-io: avoid potential compilation warning
24488         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24489         directives.
24490
24491         fflush: avoid compilation error on NetBSD
24492         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24493         between off_t and fpos_t, since the latter is sometimes a struct.
24494         * lib/fseeko.c (rpl_fseeko): Likewise.
24495         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24496
24497 2009-12-15  Eric Blake  <ebb9@byu.net>
24498
24499         fcntl-h, stdio, sys_ioctl: fix declarations
24500         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24501         function must not take arguments.
24502         * lib/sys_ioctl.in.h (ioctl): Likewise.
24503         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24504         (open): Add a link warning.
24505
24506 2009-12-15  Jim Meyering  <meyering@redhat.com>
24507
24508         areadlink, areadlink-with-size: relax license to LGPLv2+
24509         * modules/areadlink (License): Relax to LGPLv2+.
24510         * modules/areadlink-with-size (License): Likewise.
24511
24512 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24513             Bruno Haible  <bruno@clisp.org>
24514
24515         *printf: Fix memory leak.
24516         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24517         * lib/vfprintf.c (vfprintf): Likewise.
24518         * lib/dprintf.c (dprintf): Likewise.
24519         * lib/vdprintf.c (vdprintf): Likewise.
24520
24521 2009-12-14  Eric Blake  <ebb9@byu.net>
24522
24523         accept4: adjust module dependencies
24524         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24525
24526         utimens: one more try at avoiding compiler warning
24527         * lib/utimens.c (lutimens): Lower scope of result.
24528
24529 2009-12-13  Bruno Haible  <bruno@clisp.org>
24530
24531         Move the malloc checking from module 'list' to new module 'xlist'.
24532         * modules/xlist: New file.
24533         * lib/gl_xlist.h: New file.
24534         * lib/gl_xlist.c: New file.
24535         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24536         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24537         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24538         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24539         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24540         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24541         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24542         gl_sortedlist_nx_add): New declarations.
24543         (struct gl_list_implementation): Rename and change methods accordingly.
24544         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24545         (gl_list_nx_create): Renamed from gl_list_create.
24546         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24547         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24548         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24549         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24550         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24551         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24552         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24553         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24554         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24555         gl_list_create_empty.
24556         (gl_list_nx_create): Renamed from gl_list_create.
24557         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24558         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24559         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24560         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24561         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24562         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24563         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24564         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24565         * lib/gl_array_list.c: Don't include xalloc.h.
24566         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24567         NULL upon out-of-memory.
24568         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24569         out-of-memory.
24570         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24571         Change return type to 'int'.
24572         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24573         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24574         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24575         upon out-of-memory.
24576         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24577         upon out-of-memory.
24578         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24579         upon out-of-memory.
24580         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24581         upon out-of-memory.
24582         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24583         out-of-memory.
24584         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24585         Update.
24586         (gl_array_list_implementation): Update.
24587         * lib/gl_carray_list.c: Don't include xalloc.h.
24588         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24589         Return NULL upon out-of-memory.
24590         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24591         out-of-memory.
24592         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24593         Change return type to 'int'.
24594         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24595         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24596         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24597         upon out-of-memory.
24598         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24599         upon out-of-memory.
24600         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24601         out-of-memory.
24602         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24603         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24604         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24605         Update.
24606         (gl_carray_list_implementation): Update.
24607         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24608         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24609         gl_linked_create_empty. Return NULL upon out-of-memory.
24610         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24611         out-of-memory.
24612         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24613         Change return type to 'int'. Return -1 upon out-of-memory.
24614         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24615         out-of-memory.
24616         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24617         upon out-of-memory.
24618         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24619         upon out-of-memory.
24620         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24621         NULL upon out-of-memory.
24622         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24623         upon out-of-memory.
24624         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24625         out-of-memory.
24626         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24627         Update.
24628         * lib/gl_linked_list.c: Don't include xalloc.h.
24629         (gl_linked_list_implementation): Update.
24630         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24631         (add_to_bucket): Change return type to 'int'.
24632         (gl_linkedhash_list_implementation): Update.
24633         * lib/gl_anytree_list1.h (free_subtree): New function.
24634         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24635         gl_tree_create_empty. Return NULL upon out-of-memory.
24636         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24637         Change return type to 'int'. Return -1 upon out-of-memory.
24638         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24639         out-of-memory.
24640         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24641         (gl_tree_remove_node): New function, moved here from
24642         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24643         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24644         Update.
24645         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24646         malloc, not xmalloc. Return NULL upon out-of-memory.
24647         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24648         out-of-memory.
24649         (gl_tree_remove_node_from_tree): New function, extracted from
24650         gl_tree_remove_node.
24651         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24652         upon out-of-memory.
24653         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24654         out-of-memory.
24655         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24656         upon out-of-memory.
24657         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24658         upon out-of-memory.
24659         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24660         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24661         not xmalloc. Return NULL upon out-of-memory.
24662         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24663         out-of-memory.
24664         (gl_tree_remove_node_from_tree): New function, extracted from
24665         gl_tree_remove_node.
24666         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24667         upon out-of-memory.
24668         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24669         out-of-memory.
24670         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24671         upon out-of-memory.
24672         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24673         upon out-of-memory.
24674         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24675         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24676         gl_anytree_list1.h before gl_anyavltree_list2.h.
24677         (gl_avltree_list_implementation): Update.
24678         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24679         gl_anytree_list1.h before gl_anyavltree_list2.h.
24680         (gl_rbtree_list_implementation): Update.
24681         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24682         Change return type to 'int'. Return -1 upon out-of-memory. Use
24683         __builtin_expect.
24684         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24685         (gl_avltreehash_list_implementation): Update.
24686         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24687         (gl_rbtreehash_list_implementation): Update.
24688         * modules/array-list (Depends-on): Remove xalloc.
24689         * modules/carray-list (Depends-on): Likewise.
24690         * modules/linked-list (Depends-on): Likewise.
24691         * modules/linkedhash-list (Depends-on): Likewise.
24692         * modules/avltree-list (Depends-on): Likewise.
24693         * modules/rbtree-list (Depends-on): Likewise.
24694         * modules/avltreehash-list (Depends-on): Likewise.
24695         * modules/rbtreehash-list (Depends-on): Likewise.
24696
24697         * modules/xsublist: New file.
24698         * lib/gl_xsublist.h: New file.
24699         * lib/gl_xsublist.c: New file.
24700         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24701         (gl_sublist_nx_create): New declaration.
24702         * lib/gl_sublist.c: Don't include xalloc.h.
24703         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24704         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24705         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24706         Change return type to 'int'. Return -1 upon out-of-memory.
24707         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24708         upon out-of-memory.
24709         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24710         NULL upon out-of-memory.
24711         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24712         upon out-of-memory.
24713         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24714         NULL upon out-of-memory.
24715         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24716         NULL upon out-of-memory.
24717         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24718         upon out-of-memory.
24719         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24720         (gl_sublist_list_implementation): Update.
24721         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24722         upon out-of-memory.
24723         * modules/sublist (Depends-on): Remove xalloc.
24724
24725         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24726         * tests/test-carray_list.c: Likewise.
24727         * tests/test-linked_list.c: Likewise.
24728         * tests/test-linkedhash_list.c: Likewise.
24729         * tests/test-avltree_list.c: Likewise.
24730         * tests/test-rbtree_list.c: Likewise.
24731         * tests/test-avltreehash_list.c: Likewise.
24732         * tests/test-rbtreehash_list.c: Likewise.
24733         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24734         * modules/carray-list-tests (Makefile.am): Likewise.
24735         * modules/linked-list-tests (Makefile.am): Likewise.
24736         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24737         * modules/avltree-list-tests (Makefile.am): Likewise.
24738         * modules/rbtree-list-tests (Makefile.am): Likewise.
24739         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24740         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24741
24742         * NEWS: Mention the changes.
24743
24744         * lib/clean-temp.c: Include gl_xlist.h.
24745         * modules/clean-temp (Depends-on): Add xlist.
24746
24747         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24748         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24749
24750         * tests/test-array_oset.c: Include gl_xlist.h.
24751         * modules/array-oset-tests (Depends-on): Add xlist.
24752
24753         Reported by José E. Marchesi <jemarch@gnu.org>.
24754
24755 2009-12-13  Bruno Haible  <bruno@clisp.org>
24756
24757         Move the malloc checking from module 'oset' to new module 'xoset'.
24758         * modules/xoset: New file.
24759         * lib/gl_xoset.h: New file.
24760         * lib/gl_xoset.c: New file.
24761         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24762         declarations.
24763         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24764         (struct gl_oset_implementation): Rename and change methods accordingly.
24765         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24766         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24767         'int'. Mark as __warn_unused_result__.
24768         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24769         gl_oset_create_empty.
24770         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24771         'int'.
24772         * lib/gl_array_oset.c: Don't include xalloc.h.
24773         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24774         malloc, not xmalloc.
24775         (grow): Change return type to 'int'. Don't call xalloc_die.
24776         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24777         to 'int'.
24778         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24779         'int'.
24780         (gl_array_oset_implementation): Update.
24781         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24782         gl_tree_create_empty.
24783         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24784         'int'.
24785         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24786         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24787         xmalloc.
24788         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24789         not xmalloc.
24790         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24791         xmalloc.
24792         (gl_avltree_oset_implementation): Update.
24793         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24794         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24795         xmalloc.
24796         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24797         not xmalloc.
24798         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24799         xmalloc.
24800         (gl_rbtree_oset_implementation): Update.
24801         * modules/array-oset (Depends-on): Remove xalloc.
24802         * modules/avltree-oset (Depends-on): Likewise.
24803         * modules/rbtree-oset (Depends-on): Likewise.
24804         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24805         * tests/test-avltree_oset.c: Likewise.
24806         * tests/test-rbtree_oset.c: Likewise.
24807         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24808         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24809         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24810         * NEWS: Mention the change.
24811
24812 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24813
24814         maint.mk: allow a project to override release-prep commands
24815         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24816         commands into a new rule.
24817         (release-prep): New rule.
24818         (release-prep-hook): New overridable variable.
24819
24820 2009-12-13  Bruno Haible  <bruno@clisp.org>
24821
24822         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24823
24824 2009-12-13  Jim Meyering  <meyering@redhat.com>
24825
24826         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24827         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24828
24829 2009-12-12  Bruno Haible  <bruno@clisp.org>
24830
24831         duplocale: Tweak.
24832         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24833
24834 2009-12-12  Karl Berry  <karl@gnu.org>
24835
24836         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24837
24838 2009-12-12  Bruno Haible  <bruno@clisp.org>
24839
24840         * m4/po.m4: Undo incorrect untabification.
24841
24842 2009-12-12  Bruno Haible  <bruno@clisp.org>
24843
24844         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24845         * modules/c-strtod (Depends-on): Add locale.
24846         * modules/c-strtold (Depends-on): Likewise.
24847
24848 2009-12-12  Bruno Haible  <bruno@clisp.org>
24849
24850         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24851
24852 2009-12-11  Eric Blake  <ebb9@byu.net>
24853
24854         setenv: relax requirement in light of POSIX ruling
24855         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24856         not NULL.
24857         * tests/test-setenv.c (main): Relax test.
24858         * tests/test-unsetenv.c (main): Likewise.
24859         * doc/posix-functions/setenv.texi (setenv): Document this.
24860         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24861
24862 2009-12-11  Bruno Haible  <bruno@clisp.org>
24863
24864         New module 'fd-safer-flag'.
24865         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24866         * lib/dup-safer.c (dup_safer_flag): Remove function.
24867         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24868         * lib/fd-safer.c (fd_safer_flag): Remove function.
24869         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24870         * modules/cloexec (configure.ac): Drop indicator macro.
24871         * modules/fd-safer-flag: New file.
24872         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24873         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24874         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24875
24876 2009-12-11  Bruno Haible  <bruno@clisp.org>
24877
24878         Tests for module 'nl_langinfo'.
24879         * modules/nl_langinfo-tests: New file.
24880         * tests/test-nl_langinfo.sh: New file.
24881         * tests/test-nl_langinfo.c: New file.
24882
24883         New module 'nl_langinfo'.
24884         * lib/nl_langinfo.c: New file.
24885         * m4/nl_langinfo.m4: New file.
24886         * modules/nl_langinfo: New file.
24887         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24888
24889 2009-12-11  Bruno Haible  <bruno@clisp.org>
24890
24891         Tests for module 'langinfo'.
24892         * modules/langinfo-tests: New file.
24893         * tests/test-langinfo.c: New file.
24894
24895         New module 'langinfo'.
24896         * lib/langinfo.in.h: New file.
24897         * m4/langinfo_h.m4: New file.
24898         * modules/langinfo: New file.
24899         * doc/posix-headers/langinfo.texi: Mention the new module.
24900
24901 2009-12-11  Bruno Haible  <bruno@clisp.org>
24902
24903         * lib/config.charset: Untabify.
24904
24905 2009-12-11  Bruno Haible  <bruno@clisp.org>
24906
24907         * modules/unistd-safer (configure.ac): Drop indicator macro.
24908
24909 2009-12-11  Bruno Haible  <bruno@clisp.org>
24910
24911         Move pipe2-safer code to its own file.
24912         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24913         * lib/pipe-safer.c (pipe2_safer): Remove function.
24914         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24915         (Makefile.am): Add it to lib_SOURCES.
24916
24917 2009-12-10  Bruno Haible  <bruno@clisp.org>
24918
24919         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24920
24921 2009-12-10  Bruno Haible  <bruno@clisp.org>
24922
24923         Declare which arguments expect non-NULL values, for GCC and clang.
24924         * build-aux/arg-nonnull.h: New file.
24925         * modules/arg-nonnull: New file.
24926         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24927         (inet_ntop, inet_pton): Use it.
24928         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24929         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24930         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24931         (open, openat): Use it.
24932         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24933         (fnmatch): Use it.
24934         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24935         (getopt, getopt_long, getopt_long_only): Use it.
24936         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24937         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24938         Use it.
24939         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24940         (iconv_open): Use it.
24941         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24942         (strtoimax, strtoumax): Use it.
24943         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24944         (duplocale): Use it.
24945         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24946         (frexp, frexpl): Use it.
24947         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24948         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24949         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24950         (tsearch, tfind, tdelete, twalk): Use it.
24951         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24952         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24953         sigpending): Use it.
24954         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24955         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24956         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24957         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24958         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24959         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24960         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24961         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24962         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24963         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24964         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24965         Use it.
24966         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24967         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24968         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24969         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24970         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24971         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24972         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24973         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24974         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24975         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24976         strtoull, unsetenv): Use it.
24977         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24978         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24979         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24980         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24981         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24982         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24983         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24984         (strcasecmp, strncasecmp): Use it.
24985         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24986         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24987         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24988         rpl_setsockopt): Use it.
24989         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24990         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24991         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24992         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24993         (gettimeofday): Use it.
24994         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24995         (times): Use it.
24996         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24997         (uname): Use it.
24998         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24999         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
25000         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
25001         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
25002         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
25003         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
25004         unlinkat, write): Use it.
25005         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
25006         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
25007         * lib/argv-iter.h: Include arg-nonnull.h.
25008         (_ATTRIBUTE_NONNULL_): Remove macro.
25009         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
25010         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
25011         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
25012         optimization.
25013         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
25014         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
25015         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
25016         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
25017         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
25018         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
25019         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
25020         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
25021         * modules/arpa_inet (Depends-on): Add arg-nonnull.
25022         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
25023         * modules/dirent (Depends-on): Add arg-nonnull.
25024         (Makefile.am): Insert arg-nonnull.h into dirent.h.
25025         * modules/fcntl-h (Depends-on): Add arg-nonnull.
25026         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
25027         * modules/fnmatch (Depends-on): Add arg-nonnull.
25028         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
25029         * modules/getopt-posix (Depends-on): Add arg-nonnull.
25030         (Makefile.am): Insert arg-nonnull.h into getopt.h.
25031         * modules/glob (Depends-on): Add arg-nonnull.
25032         (Makefile.am): Insert arg-nonnull.h into glob.h.
25033         * modules/iconv_open (Depends-on): Add arg-nonnull.
25034         (Makefile.am): Insert arg-nonnull.h into iconv.h.
25035         * modules/inttypes (Depends-on): Add arg-nonnull.
25036         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
25037         * modules/locale (Depends-on): Add arg-nonnull.
25038         (Makefile.am): Insert arg-nonnull.h into locale.h.
25039         * modules/math (Depends-on): Add arg-nonnull.
25040         (Makefile.am): Insert arg-nonnull.h into math.h.
25041         * modules/netdb (Depends-on): Add arg-nonnull.
25042         (Makefile.am): Insert arg-nonnull.h into netdb.h.
25043         * modules/search (Depends-on): Add arg-nonnull.
25044         (Makefile.am): Insert arg-nonnull.h into search.h.
25045         * modules/signal (Depends-on): Add arg-nonnull.
25046         (Makefile.am): Insert arg-nonnull.h into signal.h.
25047         * modules/spawn (Depends-on): Add arg-nonnull.
25048         (Makefile.am): Insert arg-nonnull.h into spawn.h.
25049         * modules/stdio (Depends-on): Add arg-nonnull.
25050         (Makefile.am): Insert arg-nonnull.h into stdio.h.
25051         * modules/stdlib (Depends-on): Add arg-nonnull.
25052         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
25053         * modules/string (Depends-on): Add arg-nonnull.
25054         (Makefile.am): Insert arg-nonnull.h into string.h.
25055         * modules/strings (Depends-on): Add arg-nonnull.
25056         (Makefile.am): Insert arg-nonnull.h into strings.h.
25057         * modules/sys_socket (Depends-on): Add arg-nonnull.
25058         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
25059         * modules/sys_stat (Depends-on): Add arg-nonnull.
25060         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
25061         * modules/sys_time (Depends-on): Add arg-nonnull.
25062         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
25063         * modules/sys_times (Depends-on): Add arg-nonnull.
25064         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
25065         * modules/sys_utsname (Depends-on): Add arg-nonnull.
25066         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
25067         * modules/time (Depends-on): Add arg-nonnull.
25068         (Makefile.am): Insert arg-nonnull.h into time.h.
25069         * modules/unistd (Depends-on): Add arg-nonnull.
25070         (Makefile.am): Insert arg-nonnull.h into unistd.h.
25071         * modules/wchar (Depends-on): Add arg-nonnull.
25072         (Makefile.am): Insert arg-nonnull.h into wchar.h.
25073         * modules/argv-iter (Depends-on): Add arg-nonnull.
25074         * tests/test-canonicalize.c (null_ptr): New function.
25075         (main): Use it.
25076         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
25077         (main): Use it.
25078         * tests/test-memmem.c (null_ptr): New function.
25079         (main): Use it.
25080         Reported by Jim Meyering.
25081
25082 2009-12-10  Bruno Haible  <bruno@clisp.org>
25083
25084         Use spaces for indentation, not tabs.
25085         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25086         * m4/*.m4: Untabify.
25087         * build-aux/*.h: Untabify.
25088         * tests/**/*.[hc]: Untabify.
25089         * README: New section "Indent with spaces, not TABs", based on
25090         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
25091         * NEWS: Mention the change.
25092
25093 2009-12-10  Bruno Haible  <bruno@clisp.org>
25094
25095         pty test: Fix link error.
25096         * modules/pty-tests (Makefile.am): Add the default LDADD value to
25097         test_pty_LDADD.
25098
25099 2009-12-07  Simon Josefsson  <simon@josefsson.org>
25100
25101         * modules/pty: New file.
25102         * modules/pty-tests: New file.
25103         * m4/pty.m4: New file.
25104         * tests/test-pty.c: New file.
25105         * doc/glibc-headers/pty.texi: Modified.
25106         * doc/glibc-functions/forkpty.texi: Modified.
25107         * doc/glibc-functions/openpty.texi: Modified.
25108
25109 2009-12-10  Bruno Haible  <bruno@clisp.org>
25110
25111         Avoid syntax error in C++ mode.
25112         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
25113
25114 2009-12-10  Bruno Haible  <bruno@clisp.org>
25115
25116         Use sed with option -e.
25117         * gnulib-tool (func_version, func_emit_copyright_notice,
25118         func_emit_initmacro_end, func_import, func_create_testdir): Pass
25119         option -e to sed.
25120         * modules/link-warning (Makefile.am): Likewise.
25121
25122 2009-12-10  Jim Meyering  <meyering@redhat.com>
25123
25124         mgetgroups: do not write bytes beyond end of malloc'd buffer
25125         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
25126         username, we call getgroups with a one-element-shorter buffer,
25127         but still told it the length was original, max_n_groups.
25128
25129 2009-12-09  Eric Blake  <ebb9@byu.net>
25130
25131         cloexec: relax license
25132         * modules/cloexec (Maintainer): Add myself.
25133         (License): Use LGPL, not GPL.
25134
25135         link-warning: optimize generation
25136         * modules/link-warning (Makefile.am): Reduce process usage.
25137
25138 2009-12-09  Bruno Haible  <bruno@clisp.org>
25139
25140         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
25141         workaround was added on 2009-11-17.
25142
25143 2009-12-09  Jim Meyering  <meyering@redhat.com>
25144             Bruno Haible  <bruno@clisp.org>
25145
25146         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
25147         * modules/link-warning (Makefile.am): Make the comment-removing sed
25148         command more robust in the face of bootstrap-prepended comment lines.
25149
25150 2009-12-09  Bruno Haible  <bruno@clisp.org>
25151
25152         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
25153         most one group.
25154
25155 2009-12-09  Simon Josefsson <simon@josefsson.org>
25156             Bruno Haible  <bruno@clisp.org>
25157
25158         * build-aux/link-warning.h: Add copyright notice.
25159         * modules/link-warning (Makefile.am): Generate link-warning.h from
25160         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
25161         * NEWS: Mention change in link-warning module.
25162         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
25163         * modules/dirent (Makefile.am): Add dependency to dirent.h.
25164         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
25165         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
25166         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
25167         * modules/math (Makefile.am): Add dependency to math.h.
25168         * modules/search (Makefile.am): Add dependency to search.h.
25169         * modules/signal (Makefile.am): Add dependency to signal.h.
25170         * modules/spawn (Makefile.am): Add dependency to spawn.h.
25171         * modules/stdio (Makefile.am): Add dependency to stdio.h.
25172         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
25173         * modules/string (Makefile.am): Add dependency to string.h.
25174         * modules/strings (Makefile.am): Add dependency to strings.h.
25175         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
25176         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
25177         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
25178         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
25179         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
25180         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
25181         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
25182         * modules/unistd (Makefile.am): Add dependency to unistd.h.
25183         * modules/wchar (Makefile.am): Add dependency to wchar.h.
25184
25185 2009-12-09  Bruno Haible  <bruno@clisp.org>
25186
25187         fchdir: Optimize away rpl_fstat when possible.
25188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
25189         REPLACE_OPEN_DIRECTORY.
25190         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
25191
25192 2009-12-09  Bruno Haible  <bruno@clisp.org>
25193
25194         * lib/fchdir.c: Update comment.
25195
25196 2009-12-09  Bruno Haible  <bruno@clisp.org>
25197
25198         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
25199
25200 2009-12-08  Eric Blake  <ebb9@byu.net>
25201
25202         fchdir: avoid memory leak on re-registration.
25203         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
25204
25205 2009-12-08  Jim Meyering  <meyering@redhat.com>
25206
25207         init.sh: avoid Solaris 10 /bin/sh portability problem
25208         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
25209         sourced script:
25210           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
25211           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
25212           bar
25213         tests/init.sh relied on that, accepting a --set-path=DIR argument,
25214         and two tests used that idiom.
25215         * tests/init.sh: Update suggested usage comments.
25216         (path_prepend_): New function, to be used in place
25217         of the --src-path=DIR option.
25218         (setup_): Move PATH-prepending code into path_prepend_.
25219         * tests/test-pread.sh: Adapt to new usage.
25220         * tests/test-xalloc-die.sh: Likewise.
25221
25222 2009-12-08  Simon Josefsson  <simon@josefsson.org>
25223
25224         * doc/gnulib.texi (Glibc pty.h): Add.
25225         * doc/glibc-functions/forkpty.texi: Add.
25226         * doc/glibc-functions/openpty.texi: Add.
25227         Suggested by Bruno Haible.
25228
25229 2009-12-08  Eric Blake  <ebb9@byu.net>
25230
25231         fchdir: fix logic bugs
25232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
25233         * tests/test-fchdir.c (main): Enhance test.
25234         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
25235         is in use.
25236
25237         dup2: fix logic bugs
25238         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
25239         REPLACE_DUP2 to decide when rpl_dup2 is needed.
25240         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
25241         exists.
25242         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
25243
25244 2009-12-07  Eric Blake  <ebb9@byu.net>
25245
25246         unlink: fix m4 detection
25247         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
25248
25249         unistd-safer: add unit test
25250         * modules/unistd-safer-tests: New file.
25251         * tests/test-dup-safer.c: Likewise.
25252         * tests/test-cloexec.c (setmode): Avoid compiler warning.
25253         * tests/test-dup2.c (setmode): Likewise.
25254         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
25255
25256         cloexec: preserve text vs. binary across dup_cloexec
25257         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
25258         mode.
25259         * modules/dup2-tests (Depends-on): Add binary-io.
25260         * modules/cloexec-tests (Depends-on): Likewise.
25261         * tests/test-dup2.c (setmode, is_mode): New helpers.
25262         (main): Add tests that translation mode is preserved.
25263         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
25264         Reported by Bruno Haible.
25265
25266         mgetgroups: reduce duplicate listings
25267         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
25268         resulting array.
25269         * tests/test-chown.h (test_chown): Simplify client.
25270         * tests/test-lchown.h (test_lchown): Likewise.
25271
25272 2009-12-06  Bruno Haible  <bruno@clisp.org>
25273
25274         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
25275         value.
25276
25277 2009-12-06  Bruno Haible  <bruno@clisp.org>
25278
25279         * lib/progname.c: Include stdio.h, stdlib.h.
25280         (set_program_name): Reject a NULL argument.
25281
25282 2009-12-05  Eric Blake  <ebb9@byu.net>
25283
25284         pipe2-safer: new module
25285         * modules/pipe2-safer: New file.
25286         * lib/unistd-safer.h (pipe2_safer): New prototype.
25287         * lib/unistd--.h (pipe2): New wrapper.
25288         * lib/pipe-safer.c (pipe2_safer): New function.
25289         * modules/pipe (Depends-on): Add pipe2-safer.
25290         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
25291
25292         stdlib-safer: preserve cloexec flag for mkostemp[s]
25293         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
25294         fd_safer_flag.
25295
25296         unistd-safer: allow preservation of cloexec status via flag
25297         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
25298         prototypes.
25299         * lib/dup-safer.c (dup_safer_flag): New function.
25300         * lib/fd-safer.c (fd_safer_flag): Likewise.
25301         * modules/cloexec (configure.ac): Set witness.
25302
25303         test-dup2: enhance test
25304         * modules/dup2-tests (Depends-on): Add cloexec.
25305         * tests/test-dup2.c (main): Enhance test.
25306
25307         cloexec: add dup_cloexec
25308         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
25309         header and comments.
25310         * lib/cloexec.c (set_cloexec_flag): Add comments.
25311         (dup_cloexec): New function, with mingw implementation borrowed
25312         from...
25313         * lib/w32spawn.h (dup_noinherit): ...here.
25314         * modules/execute (Depends-on): Add cloexec.
25315         * modules/pipe (Depends-on): Likewise.
25316         * modules/cloexec (Depends-on): Add dup2.
25317         * modules/cloexec-tests (Files): New file.
25318         * tests/test-cloexec.c: Likewise.
25319
25320         test-xalloc-die: fix test for mingw
25321         * modules/xalloc-die-tests (Files): Add tests/init.sh.
25322         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
25323         directory and .exe suffix off argv[0] output.
25324
25325         test-fseeko: fix test for mingw
25326         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
25327         than undefining fseek, so test will pass on mingw.
25328
25329 2009-12-05  Bruno Haible  <bruno@clisp.org>
25330
25331         * lib/progname.h (set_program_name): Clarify specification.
25332         * lib/progname.c (set_program_name): Likewise.
25333         Reported by Jim Meyering.
25334
25335 2009-12-05  Jim Meyering  <meyering@redhat.com>
25336
25337         maint.mk: backslash-escape parens in default regexp
25338         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
25339         backslash-escape the literal parentheses.
25340
25341         maint.mk: news-date-check: use grep -E
25342         * top/maint.mk (today): Define a Make variable, not a...
25343         (news-date-check): ...shell variable.
25344         (news-date-regexp): Use the Make variable.
25345         Use grep's -E option.  Change the failing diagnostic to mention
25346         the variable, $(news-date-regexp).
25347
25348 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
25349
25350         maintainer-makefile: allow customization of NEWS entry format
25351         * top/maint.mk (news-date-regexp): New overridable variable.
25352         (news-date-check): Use it.
25353
25354 2009-12-04  Eric Blake  <ebb9@byu.net>
25355
25356         mgetgroups: add xgetgroups, and avoid ENOSYS failures
25357         * lib/mgetgroups.h (xgetgroups): New prototype.
25358         * lib/mgetgroups.c (xgetgroups): New wrapper.
25359         (mgetgroups): Handle ENOSYS.
25360         * modules/mgetgroups (Depends-on): Add realloc.
25361         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
25362
25363         mgetgroups: avoid argument promotion issues with -1
25364         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
25365         for invalid gid_t.
25366         * tests/test-chown.h (getegid, test_chown): Likewise.
25367         * tests/test-lchown.h (getegid, test_lchown): Likewise.
25368
25369 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
25370
25371         exclude: Fix header file problems.
25372         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
25373
25374 2009-12-01  Jim Meyering  <meyering@redhat.com>
25375
25376         fts: fts_open: do not let an empty string cause immediate failure
25377         This is required in support of GNU rm, for which the command
25378         "rm A '' B" must process and remove both A and B, in spite of
25379         the empty string argument.
25380         * lib/fts.c (fts_open): Do not let the presence of an empty string
25381         cause fts_open to fail immediately.  Most fts-using tools must be
25382         able to process all arguments, in order, and can be expected to
25383         diagnose such arguments themselves.
25384
25385 2009-11-30  Eric Blake  <ebb9@byu.net>
25386
25387         utimens: fix compilation error
25388         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
25389         Declare variable at right scope.
25390
25391 2009-11-29  Jim Meyering  <meyering@redhat.com>
25392
25393         bootstrap: handle perl-5.11's changed --version output
25394         * build-aux/bootstrap (get_version): Handle perl separately,
25395         since perl-5.11's --version output is different.
25396
25397 2009-11-28  Jim Meyering  <meyering@redhat.com>
25398
25399         userspec: depend on the inttostr module, too
25400         * modules/userspec (Depends-on): Add inttostr.
25401
25402         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25403         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25404         number of MAXUID when it evaluates to (uid_t) -1.
25405         Likewise for group ID.  Reported by Matt McCutchen in
25406         <http://savannah.gnu.org/bugs/?28113>
25407
25408         userspec: reformat to use spaces, not TABs
25409         * lib/userspec.c: Expand TABs to spaces.
25410         Add Emacs' "indent-tabs-mode: nil" hint.
25411
25412 2009-11-27  Eric Blake  <ebb9@byu.net>
25413
25414         getopt-gnu: flush out another BSD bug
25415         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25416         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25417         flush out BSD bug.
25418         * tests/test-getopt.h (test_getopt): End lists with NULL.
25419         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25420         (test_getopt_long_posix): Enhance test.
25421         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25422         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25423         getopt-gnu.
25424         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25425         Likewise.
25426
25427 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25428
25429         * modules/idpriv-droptemp-tests (Notice): Fix text.
25430
25431 2009-11-27  Jim Meyering  <meyering@redhat.com>
25432
25433         test-xalloc-die: avoid spurious failure due to libtool argv difference
25434         In a libtool-enabled project, this test would fail due to a difference
25435         in the emitted program name, e.g.,
25436         -test-xalloc-die: memory exhausted
25437         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25438         Use program to avoid that.
25439         * modules/xalloc-die-tests (Depends-on): Add progname.
25440         * tests/test-xalloc-die.c: Include progname.h".
25441         (program_name): Remove decl.
25442         (main): Call set_program_name.
25443         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25444
25445 2009-11-26  Richard Jones  <rjones@redhat.com>
25446
25447         w32sock: leave win32 error in place.
25448         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25449
25450 2009-11-26  Eric Blake  <ebb9@byu.net>
25451
25452         init.sh: suggest to use skip_ and fail_ functions in comments
25453         * tests/init.sh: Add a sentence.
25454
25455 2009-11-25  Bruno Haible  <bruno@clisp.org>
25456
25457         init.sh: add documentation in comments
25458         * tests/init.sh: Add some developer and user documentation.
25459
25460 2009-11-26  Jim Meyering  <meyering@redhat.com>
25461
25462         init.sh: accommodate even those who specify bogus srcdir manually
25463         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25464         configure-time tests to be sanitized, so that there is no need to
25465         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25466         (with no double quotes) suffices.  However, since tests may be
25467         invoked manually, and since you may explicitly set srcdir to the
25468         name of a directory containing spaces, do quote its uses here.
25469         * tests/test-pread.sh: Likewise.
25470         Suggested by Bruno Haible.
25471
25472         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25473         * tests/test-pread.sh: Write no data into the pipe, because
25474         test-pread actually reads none.  This avoids a diagnostic,
25475         "bash: echo: write error: Broken pipe", that arises in the unusual
25476         event something is ignoring SIGPIPE, and might be interpreted
25477         as some sort of failure.  Reported by Bruno Haible.
25478
25479 2009-11-25  Jim Meyering  <meyering@redhat.com>
25480
25481         test-pread: cover failure with ESPIPE and EINVAL
25482         * tests/test-pread.c (main): Test for failure, too.
25483         * tests/test-pread.sh: Invoke with stdin on a pipe.
25484         Suggested by Eric Blake.
25485
25486         pread: improvement and fix
25487         * modules/pread (Depends-on): Depend on lseek, for portability to
25488         e.g., mingw.  Suggested by Eric Blake.
25489         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25490
25491         unistd.in.h: correct declaration of pread
25492         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25493         Reported by Richard W.M. Jones.
25494
25495         test-pread.sh: distribute the test script
25496         * modules/pread-tests (Files): Include test-pread.sh.
25497
25498         test-pread.sh: clean up
25499         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25500         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25501         That is unnecessary, since it's always ".".
25502         Suggestion from Eric Blake.
25503
25504         test-pread.sh: make executable
25505         * tests/test-pread.sh: Set executable bit.
25506         Reported by Eric Blake.
25507
25508         correct typo in test-pread.sh
25509         * tests/test-pread.sh: Add #! line.
25510
25511         test pread
25512         * tests/test-pread.c: New file.
25513         * tests/test-pread.sh: Likewise.
25514         * modules/pread-tests: Likewise.
25515
25516         pread: new module
25517         * modules/pread: New file.
25518         * lib/unistd.in.h (pread): Define/declare.
25519         * lib/pread.c (pread): New file.
25520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25521         * modules/unistd (Makefile.am): Substitute witnesses.
25522         * doc/posix-functions/pread.texi (pread): Update.
25523         * MODULES.html.sh: Add pread.
25524
25525 2009-11-25  Jim Meyering  <meyering@redhat.com>
25526
25527         tests/init.sh: new file to be used via most *.sh tests
25528         * tests/init.sh: New file.
25529
25530 2009-11-25  Eric Blake  <ebb9@byu.net>
25531
25532         utimens: work around older Linux failure with symlinks
25533         * lib/utimens.c (lutimensat_works_really): New variable.
25534         (fdutimens, lutimens): Use it to manage kernels that support
25535         nanosecond times on files, but not on symlinks.
25536         Reported by OndÅ™ej Vašík.
25537
25538         utimes: fix configure grammar
25539         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25540
25541 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25542
25543         regex: Fix fastmap for multibyte character ranges.
25544         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25545         characters when a multibyte character range is included.
25546
25547 2009-11-22  Andy Wingo  <wingo@pobox.com>
25548
25549         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25550         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25551
25552 2009-11-24  Bruno Haible  <bruno@clisp.org>
25553
25554         doc: Most *_l functions exist in MacOS X 10.5.
25555         * doc/posix-functions/duplocale.texi: Update platforms list.
25556         * doc/posix-functions/freelocale.texi: Likewise.
25557         * doc/posix-functions/newlocale.texi: Likewise.
25558         * doc/posix-functions/uselocale.texi: Likewise.
25559         * doc/posix-functions/isalnum_l.texi: Likewise.
25560         * doc/posix-functions/isalpha_l.texi: Likewise.
25561         * doc/posix-functions/isblank_l.texi: Likewise.
25562         * doc/posix-functions/iscntrl_l.texi: Likewise.
25563         * doc/posix-functions/isdigit_l.texi: Likewise.
25564         * doc/posix-functions/isgraph_l.texi: Likewise.
25565         * doc/posix-functions/islower_l.texi: Likewise.
25566         * doc/posix-functions/isprint_l.texi: Likewise.
25567         * doc/posix-functions/ispunct_l.texi: Likewise.
25568         * doc/posix-functions/isspace_l.texi: Likewise.
25569         * doc/posix-functions/isupper_l.texi: Likewise.
25570         * doc/posix-functions/iswalnum_l.texi: Likewise.
25571         * doc/posix-functions/iswalpha_l.texi: Likewise.
25572         * doc/posix-functions/iswblank_l.texi: Likewise.
25573         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25574         * doc/posix-functions/iswctype_l.texi: Likewise.
25575         * doc/posix-functions/iswdigit_l.texi: Likewise.
25576         * doc/posix-functions/iswgraph_l.texi: Likewise.
25577         * doc/posix-functions/iswlower_l.texi: Likewise.
25578         * doc/posix-functions/iswprint_l.texi: Likewise.
25579         * doc/posix-functions/iswpunct_l.texi: Likewise.
25580         * doc/posix-functions/iswspace_l.texi: Likewise.
25581         * doc/posix-functions/iswupper_l.texi: Likewise.
25582         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25583         * doc/posix-functions/isxdigit_l.texi: Likewise.
25584         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25585         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25586         * doc/posix-functions/strcoll_l.texi: Likewise.
25587         * doc/posix-functions/strfmon_l.texi: Likewise.
25588         * doc/posix-functions/strftime_l.texi: Likewise.
25589         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25590         * doc/posix-functions/strxfrm_l.texi: Likewise.
25591         * doc/posix-functions/tolower_l.texi: Likewise.
25592         * doc/posix-functions/toupper_l.texi: Likewise.
25593         * doc/posix-functions/towctrans_l.texi: Likewise.
25594         * doc/posix-functions/towlower_l.texi: Likewise.
25595         * doc/posix-functions/towupper_l.texi: Likewise.
25596         * doc/posix-functions/wcscoll_l.texi: Likewise.
25597         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25598         * doc/posix-functions/wctrans_l.texi: Likewise.
25599         * doc/posix-functions/wctype_l.texi: Likewise.
25600         * doc/glibc-functions/strptime_l.texi: Likewise.
25601         * doc/glibc-functions/strtod_l.texi: Likewise.
25602         * doc/glibc-functions/strtof_l.texi: Likewise.
25603         * doc/glibc-functions/strtol_l.texi: Likewise.
25604         * doc/glibc-functions/strtold_l.texi: Likewise.
25605         * doc/glibc-functions/strtoll_l.texi: Likewise.
25606         * doc/glibc-functions/strtoul_l.texi: Likewise.
25607         * doc/glibc-functions/strtoull_l.texi: Likewise.
25608         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25609         * doc/glibc-functions/wcstod_l.texi: Likewise.
25610         * doc/glibc-functions/wcstof_l.texi: Likewise.
25611         * doc/glibc-functions/wcstol_l.texi: Likewise.
25612         * doc/glibc-functions/wcstold_l.texi: Likewise.
25613         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25614         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25615         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25616
25617 2009-11-24  Bruno Haible  <bruno@clisp.org>
25618
25619         duplocale: Fix logic bug.
25620         * lib/duplocale.c: Don't include <langinfo.h>.
25621         (_NL_LOCALE_NAME): Remove macro.
25622         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25623         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25624
25625 2009-11-23  Jim Meyering  <meyering@redhat.com>
25626
25627         test-update-copyright: don't hard-code /usr/bin/perl
25628         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25629         perl to print the current year.  Gilles Espinasse reported that
25630         the replaced use of perl was hard-coded as /usr/bin/perl.
25631
25632 2009-11-23  Bruno Haible  <bruno@clisp.org>
25633
25634         duplocale: Add support for glibc 2.3.x.
25635         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25636
25637 2009-11-22  Bruno Haible  <bruno@clisp.org>
25638
25639         vasnprintf: Tiny optimization.
25640         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25641         MacOS X.
25642
25643 2009-11-22  Bruno Haible  <bruno@clisp.org>
25644
25645         Tests for module 'duplocale'.
25646         * modules/duplocale-tests: New file.
25647         * tests/test-duplocale.c: New file.
25648
25649         New module 'duplocale'.
25650         * m4/duplocale.m4: New file.
25651         * lib/locale.in.h (duplocale): New declaration.
25652         * lib/duplocale.c: New file.
25653         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25654         gl_LOCALE_H_DEFAULTS): New macros.
25655         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25656         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25657         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25658         REPLACE_DUPLOCALE.
25659         * modules/duplocale: New file.
25660         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25661
25662 2009-11-22  Bruno Haible  <bruno@clisp.org>
25663
25664         * modules/locale-tests (configure.ac): Test for newlocale function.
25665         * tests/test-locale.c: When the system has extended locale functions,
25666         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25667
25668         locale: Make locale_t available when possible.
25669         * lib/locale.in.h: Include <xlocale.h> when it exists.
25670         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25671         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25672         * modules/locale (Depends-on): Add extensions.
25673         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25674         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25675
25676 2009-11-22  Bruno Haible  <bruno@clisp.org>
25677
25678         Add comments.
25679         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25680         invocation.
25681         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25682         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25683         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25684
25685 2009-11-22  Bruno Haible  <bruno@clisp.org>
25686
25687         error: account for the possibility of freopen (stdout).
25688         * lib/error.c: Include <unistd.h>.
25689         (flush_stdout): New function, extracted from error and error_at_line.
25690         Determine stdout's fd dynamically.
25691         (error, error_at_line): Invoke flush_stdout.
25692         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25693         * modules/error (Depends-on): Add unistd.
25694
25695 2009-11-22  Bruno Haible  <bruno@clisp.org>
25696
25697         diffseq: Add comment.
25698         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25699
25700 2009-11-22  Jim Meyering  <meyering@redhat.com>
25701
25702         c-stack: avoid defining an unused static function
25703         * lib/c-stack.c (find_stack_direction): Do not define this function
25704         when it will not be used.
25705
25706         diffseq: avoid spurious gcc warnings
25707         * lib/diffseq.h (IF_LINT2): Define.
25708         (compareseq): Use it to initialize two members of "part".
25709         This avoids two used-uninitialized warnings.
25710
25711 2009-11-21  Jim Meyering  <meyering@redhat.com>
25712
25713         c-stack: avoid "ignoring return value of `write'" warning
25714         * lib/c-stack.c: Include "ignore-value.h".
25715         (die): Explicitly ignore each write return value.
25716         * modules/c-stack (Depends-on): Add ignore-value.
25717
25718 2009-11-21  Bruno Haible  <bruno@clisp.org>
25719
25720         diffseq: reduce scope of variable 'best'.
25721         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25722         variable, earlier used for two different purposes.
25723
25724 2009-11-21  Jim Meyering  <meyering@redhat.com>
25725
25726         diffseq: remove useless assignment to "best"
25727         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25728         assignment.  At that point "best" is already guaranteed to be zero.
25729
25730 2009-11-20  Eric Blake  <ebb9@byu.net>
25731
25732         build: mention ftp redirector in release announcements
25733         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25734         values that used to come from cfg.mk; mention FTP redirect URL.
25735         * build-aux/announce-gen: Mention the mirror list.
25736         Suggested by Karl Berry.
25737
25738         nanosleep: improve port to mingw
25739         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25741         LIB_NANOSLEEP, but only when needed.
25742         * modules/select (Link): Document LIBSOCKET.
25743         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25744         enough.
25745
25746         nanosleep: work around cygwin bug
25747         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25748         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25749         bug.
25750         (getnow): Delete, not needed.
25751         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25752         LIB_CLOCK_GETTIME.
25753         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25754         clock-time, gettime.
25755         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25756         bug.
25757         * modules/nanosleep-tests: New test.
25758         * tests/test-nanosleep.c: New file.
25759
25760         sleep: work around cygwin bug
25761         * lib/sleep.c (rpl_sleep): Work around the bug.
25762         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25763         (gl_PREREQ_SLEEP): Delete unused macro.
25764         * modules/sleep (Depends-on): Add verify.
25765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25766         * modules/unistd (Makefile.am): Substitute witness.
25767         * lib/unistd.in.h (sleep): Update prototype.
25768         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25769         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25770         * modules/sleep-tests (Depends-on): Check for alarm.
25771
25772 2009-11-20  Jim Meyering  <meyering@redhat.com>
25773
25774         maint.mk: improve sc_prohibit_magic_number_exit
25775         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25776         so it does not match uses like System.exit(1).
25777         Add comments showing how to correct all offenders.
25778
25779 2009-11-19  Eric Blake  <ebb9@byu.net>
25780
25781         xalloc-die-tests: add missing library
25782         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25783
25784         test-xvasprintf: silence compiler warnings
25785         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25786         empty string from gcc.
25787
25788 2009-11-19  Jim Meyering  <meyering@redhat.com>
25789
25790         xfreopen: new module, from coreutils
25791         * modules/xfreopen: New module.
25792         * lib/xfreopen.c: New file.
25793         * lib/xfreopen.h: New file.
25794         * MODULES.html.sh (File stream based Input/Output"): Add it.
25795
25796 2009-11-19  Eric Blake  <ebb9@byu.net>
25797
25798         manywarnings: depend on warnings
25799         * modules/manywarnings (Depends-on): Add warnings.
25800
25801         build: avoid compiler warnings
25802         * lib/select.c (rpl_select): Delete unused variable.
25803         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25804
25805 2009-11-18  Eric Blake  <ebb9@byu.net>
25806
25807         tests: avoid false negative with --with-packager
25808         * tests/test-version-etc.sh: Discard packager information.
25809         * tests/test-argp-version-etc-1.sh: Likewise.
25810         Reported by Mike Frysinger.
25811
25812         utimens: fix regression on Solaris
25813         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25814         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25815         can only change fd timestamps via futimesat.  Instead, use an
25816         additional witness macro to avoid BSD bug.
25817         Reported by Jim Meyering.
25818
25819 2009-11-17  Eric Blake  <ebb9@byu.net>
25820
25821         usleep: use it to simplify tests
25822         * modules/stat-time-tests (Depends-on): Add usleep.
25823         (configure.ac): Drop usleep check.
25824         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25825         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25826         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25827         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25828         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25829         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25830         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25831         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25832         Likewise.
25833         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25834         * tests/test-lchown.h (nap): Likewise.
25835         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25836         * tests/test-stat-time.c (nap): Likewise.
25837         * tests/test-utimens-common.h (nap): Update comments.
25838
25839         usleep: new module
25840         * modules/usleep: New file.
25841         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25842         * lib/usleep.c (usleep): Likewise.
25843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25844         * modules/unistd (Makefile.am): Substitute witnesses.
25845         * lib/unistd.in.h (usleep): Add declaration.
25846         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25847         * MODULES.html.sh (Date and time): Likewise.
25848         * modules/usleep-tests (Depends-on): New test.
25849         * tests/test-usleep.c: New file.
25850
25851         chown: work around OpenBSD bug
25852         * lib/chown.c (rpl_chown): Work around the bug.
25853         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25854         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25855         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25856         * modules/chown (Depends-on): Add stdbool.
25857         * modules/lchown (Depends-on): Likewise.
25858         * doc/posix-functions/chown.texi (chown): Document the bug.
25859         * doc/posix-functions/lchown.texi (lchown): Likewise.
25860         * tests/test-lchown.h (test_chown): Relax test.
25861
25862         mkstemp: avoid conflict with C++ keyword template
25863         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25864         * lib/mkostemp.c (mkostemp): Likewise.
25865         * lib/mkostemps.c (mkostemps): Likewise.
25866         * lib/mkstemp.c (mkstemp): Likewise.
25867         * lib/mkstemps.c (mkstemps): Likewise.
25868
25869         xalloc-die-tests: optimize
25870         * tests/test-xalloc-die.sh: Reduce number of processes.
25871
25872 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25873
25874         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25875         patch from ludo@gnu.org (Ludovic Courtès).
25876
25877 2009-11-17  Jim Meyering  <meyering@redhat.com>
25878
25879         version-etc: use proper license string
25880         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25881         * modules/version-etc-fsf: Likewise.
25882
25883 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25884
25885         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25886         printed to stdout.  Deal with EOL differences.
25887
25888 2009-11-17  Eric Blake  <ebb9@byu.net>
25889
25890         unsetenv: work around Solaris bug
25891         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25892         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25893         Reported by Jim Meyering.
25894
25895         vasnprintf: avoid compiler warnings
25896         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25897         variables.
25898         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25899
25900 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25901
25902         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25903         settings since xalloc-die is no longer the self test,
25904         xalloc-die.sh is.
25905
25906 2009-11-17  Jim Meyering  <meyering@redhat.com>
25907
25908         test-xalloc-die.sh: make the code agree with the commit log
25909         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25910         at the end, just in case you happen to have a test-xalloc-die
25911         program in some other PATH directory.
25912
25913         test-xalloc-die.sh: fix a portability bug
25914         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25915         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25916         Otherwise, argv[0] (as often seen in diagnostics) would be too
25917         system-dependent, sometimes with, and sometimes without the leading "./".
25918
25919         version-etc-fsf: relax license to LGPLv3+
25920         * modules/version-etc-fsf (License): Relax license.
25921
25922 2009-11-16  Eric Blake  <ebb9@byu.net>
25923
25924         xalloc-die-tests: avoid printing null pointer
25925         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25926         shell script.
25927         * tests/test-xalloc-die.c (program_name): Declare.
25928         * tests/test-xalloc-die.sh (tmpfiles): New file.
25929
25930         setenv, unsetenv: work around various bugs
25931         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25932         (setenv) [HAVE_SETENV]: Work around bugs.
25933         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25934         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25935         for bugs.
25936         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25937         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25939         * modules/stdlib (Makefile.am): Update substitutions.
25940         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25941         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25942         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25943         * modules/setenv-tests: New test.
25944         * modules/unsetenv-tests: Likewise.
25945         * tests/test-setenv.c: New file.
25946         * tests/test-unsetenv.c: Likewise.
25947
25948 2009-11-16  Jim Meyering  <meyering@redhat.com>
25949
25950         version-etc: relax license to LGPLv3+
25951         * modules/version-etc (License): Relax license.
25952
25953         better AC_REQUIRE expanded-before-required-warning avoidance
25954         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25955         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25956         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25957         which is no longer needed.
25958
25959 2009-11-16  Eric Blake  <ebb9@byu.net>
25960
25961         test-freading: clean up temporary file
25962         * tests/test-freading.c (main): Remove file on success, and use
25963         ASSERT more liberally.
25964         Reported by Jim Meyering.
25965
25966 2009-11-16  Jim Meyering  <meyering@redhat.com>
25967
25968         avoid new AC_REQUIRE expanded-before-required warnings
25969         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25970         merely using it.
25971         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25972         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25973
25974 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25975
25976         * tests/test-xalloc-die.c: New file.
25977         * modules/xalloc-die-tests: New file.
25978         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25979         XFAIL_TESTS so it can be appended by modules.
25980
25981 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25982
25983         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25984         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25985
25986 2009-11-14  Eric Blake  <ebb9@byu.net>
25987
25988         fnmatch: avoid compiler warning
25989         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25990         to silence compiler warning about mismatch signedness in ?:.
25991         Reported by Robert Millan.
25992
25993         intprops: add double-inclusion guard
25994         * lib/intprops.h: Allow idempotent includes.
25995         Suggested by Bruce Korb.
25996
25997         openat: detect Solaris fchownat bug
25998         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25999         penalizing glibc chownat when only lchownat is broken.
26000         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
26001         trailing slash bugs.
26002         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
26003         * modules/openat-tests (Files): Include more files.
26004         (Depends-on): Add mgetgroups, sleep, stat-time.
26005         (configure.ac): Add additional checks.
26006         (Makefile.am): Build new test.
26007         * tests/test-fchownat.c: New file.
26008
26009         lchown: detect Solaris and FreeBSD bug
26010         * lib/lchown.c (rpl_lchown): Work around bug.
26011         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
26012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26013         * modules/unistd (Makefile.am): Populate it.
26014         * lib/unistd.in.h (lchown): Update declaration.
26015         * doc/posix-functions/lchown.texi (lchown): Document the bug.
26016         * modules/lchown-tests: New file.
26017         * tests/test-lchown.h (test_lchown): Likewise.
26018         * tests/test-lchown.c (main): Likewise.
26019
26020         chown: detect Solaris and FreeBSD bug
26021         * lib/chown.c (rpl_chown): Work around bug.
26022         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
26023         (gl_PREREQ_CHOWN): Delete.
26024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26025         * modules/unistd (Makefile.am): Populate it.
26026         * lib/unistd.in.h (chown): Update declaration.
26027         * lib/lchown.c (chown): Update client.
26028         * modules/lchown (Depends-on): Add lstat.
26029         * doc/posix-functions/chown.texi (chown): Document the bug.
26030         * doc/posix-functions/getgroups.texi (getgroups): Document
26031         getgroups pitfall.
26032         * modules/chown-tests: New file.
26033         * tests/test-chown.h (test_chown): Likewise.
26034         * tests/test-chown.c (main): Likewise.
26035
26036 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
26037
26038         gnulib-tool: correctly detect absence of m4 directories
26039         * gnulib-tool: Avoid extra newline on data passed to wc -l.
26040
26041 2009-11-14  Jim Meyering  <meyering@redhat.com>
26042
26043         maint.mk: Prohibit inclusion of "xalloc.h" without use.
26044         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26045
26046 2009-11-14  John W. Eaton  <jwe@gnu.org>
26047
26048         strftime.h: wrap funtion declaration in extern "C" block
26049         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
26050
26051 2009-11-13  Eric Blake  <ebb9@byu.net>
26052
26053         getgroups: avoid compiler warning
26054         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
26055
26056         getgroups: work around FreeBSD bug
26057         * lib/getgroups.c (rpl_getgroups): Work around the bug.
26058         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
26059         * doc/posix-functions/getgroups.texi (getgroups): Document it.
26060         * tests/test-getgroups.c (main): Fix buffer overrun.
26061
26062         getgroups: avoid compilation failure
26063         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
26064         * modules/getgroups (Depends-on): Add stdint.
26065
26066 2009-11-13  Jim Meyering  <meyering@redhat.com>
26067
26068         test-getgroups: avoid compilation failure
26069         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
26070
26071 2009-11-13  Eric Blake  <ebb9@byu.net>
26072
26073         mgetgroups: new module, taken from coreutils
26074         * modules/mgetgroups: New file.
26075         * lib/mgetgroups.h: Likewise.
26076         * lib/mgetgroups.c (mgetgroups): Likewise.
26077         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
26078         * MODULES.html.sh (Users and groups): Mention it.
26079
26080         getgroups: don't expose GETGROUPS_T to user
26081         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
26082         an element at a time if GETGROUPS_T is wrong size.
26083         * lib/getugroups.h (getugroups): Change signature.
26084         * lib/unistd.in.h (getgroups): Likewise.
26085         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
26086         signature needs fixing.
26087         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
26088         AC_TYPE_GETGROUPS.
26089         * modules/group-member (Depends-on): Add getgroups.
26090         * lib/group-member.c (group_info, get_group_info): Use gid_t.
26091         (group_member): Rely on getgroups replacement.
26092         * lib/getugroups.c (getugroups): Use gid_t.
26093         * tests/test-getgroups.c (main): Likewise.
26094         * NEWS: Mention the signature change.
26095         * doc/posix-functions/getgroups.texi (getgroups): Mention the
26096         problem with signature.
26097         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
26098         GETGROUPS_T is still useful for setgroups.
26099
26100         getgroups, getugroups: provide stubs for mingw
26101         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
26102         * lib/getugroups.c (getugroups): Likewise.
26103         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
26104         function.  Modernize replacement scheme.
26105         (gl_PREREQ_GETGROUPS): Delete.
26106         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
26107         * modules/getgroups (configure.ac): Declare witness.
26108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26109         * modules/unistd (Depends-on): Substitute witness.
26110         * lib/unistd.in.h (getgroups): Declare replacement.
26111
26112         getgroups: avoid calling exit
26113         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
26114         drop xalloc.
26115         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
26116         dependencies.
26117         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
26118         exiting, in the rare case of malloc failure.
26119
26120         getgroups: fix logic error
26121         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
26122         has more than 20 groups.
26123         * modules/getgroups-tests: New test.
26124         * tests/test-getgroups.c: New file.
26125
26126 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26127
26128         * tests/test-base64.c: Improve.
26129
26130 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26131
26132         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
26133         Blake <ebb9@byu.net>.
26134
26135 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26136
26137         * tests/test-xvasprintf.c: Add %s%s related checks.
26138
26139 2009-11-12  Eric Blake  <ebb9@byu.net>
26140
26141         version-etc: match standards.texi style
26142         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
26143         and use <> only for URLs.
26144
26145 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
26146
26147         fts: do not fail on a submount during traversal
26148         * lib/fts.c (fts_build): Read the stat info again after opening
26149         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
26150         Original report at http://bugzilla.redhat.com/501848.
26151
26152 2009-11-12  Jim Meyering  <meyering@redhat.com>
26153
26154         bootstrap: sync from coreutils
26155         * build-aux/bootstrap (bootstrap_epilogue): New function.
26156         Use git_modules_config in one more place.  This make bootstrap's
26157         --gnulib-srcdir option more useful for testing.
26158
26159         bootstrap: generalize autoheader check
26160         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
26161         AC_CONFIG_HEADERS.
26162
26163 2009-11-11  Eric Blake  <ebb9@byu.net>
26164
26165         mkfifoat: use new modules for Solaris and BSD bugs
26166         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
26167         * lib/mkfifoat.c (mknodat): Split...
26168         * lib/mknodat.c (mknodat): ...into new file.
26169         * modules/mkfifoat (Files): Ship new file.
26170         (Depends-on): Add mkfifo, mknod.
26171         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
26172         (Depends-on): Add symlink.
26173         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
26174         redundant with test_mkfifo.h.
26175         (do_mkfifoat, do_mknodat): New helpers.
26176
26177         mknod: new module
26178         * modules/mknod: New file.
26179         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
26180         * lib/mknod.c (mknod): Likewise.
26181         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26182         defaults.
26183         * modules/sys_stat (Makefile.am): Substitute them.
26184         * lib/sys_stat.in.h (mknod): Declare replacement.
26185         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26186         Document it.
26187         * doc/posix-functions/mknod.texi (mknod): Likewise.
26188         * modules/mknod-tests: New test.
26189         * tests/test-mknod.c: Likewise.
26190
26191         mkfifo: new module
26192         * modules/mkfifo: New file.
26193         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26194         * lib/mkfifo.c (mkfifo): Likewise.
26195         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26196         defaults.
26197         * modules/sys_stat (Makefile.am): Substitute them.
26198         * lib/sys_stat.in.h (mkfifo): Declare replacement.
26199         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26200         Document it.
26201         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
26202         * modules/mkfifo-tests: New test.
26203         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
26204         from test-mkfifoat.c.
26205         * tests/test-mkfifo.c: New file.
26206
26207         readlink: detect FreeBSD bug
26208         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
26209         slash on symlink.
26210         * doc/posix-functions/readlink.texi (readlink): Document the bug.
26211         * tests/test-readlink.h (test_readlink): Enhance test.
26212
26213         symlink: detect FreeBSD bug
26214         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
26215         slash on symlink.
26216         * doc/posix-functions/symlink.texi (symlink): Document the bug.
26217         * tests/test-symlink.h (test_symlink): Enhance test.
26218
26219 2009-11-10  Eric Blake  <ebb9@byu.net>
26220
26221         link: detect FreeBSD bug
26222         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
26223         symlink.
26224         * doc/posix-functions/link.texi (link): Document the bug.
26225         * tests/test-link.h (test_link): Enhance test.
26226         * tests/test-linkat.c (main): Update caller.
26227
26228         unlink, remove: detect FreeBSD bug
26229         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
26230         slash on symlink.
26231         * doc/posix-functions/unlink.texi (unlink): Document the bug.
26232         * doc/posix-functions/remove.texi (remove): Likewise.
26233         * tests/test-unlink.h (test_unlink): Enhance test.
26234         * tests/test-remove.c (main): Likewise.
26235
26236 2009-11-09  Eric Blake  <ebb9@byu.net>
26237
26238         rename: detect FreeBSD bug
26239         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
26240         slash on symlink.
26241         * modules/renameat-tests (Depends-on): Add filenamecat.
26242         * tests/test-rename.h (test_rename): Allow one more errno.
26243         * tests/test-renameat.c (main): Likewise.
26244         * doc/posix-functions/rename.texi (rename): Document the bug.
26245
26246         open: detect FreeBSD bug
26247         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
26248         symlink.
26249         * doc/posix-functions/open.texi (open): Document the bug.
26250         * doc/posix-functions/utimes.texi (utimes): Likewise.
26251         * tests/test-open.h (test_open): Add parameters, and test symlink
26252         handling.
26253         * tests/test-open.c (main): Adjust caller.
26254         * tests/test-fcntl-safer.c (main): Likewise.
26255         * modules/open-tests (Depends-on): Add stdbool, symlink.
26256         * modules/fcntl-safer-tests (Depends-on): Likewise.
26257         * tests/test-openat.c (main): Add test-open tests.
26258
26259         stat: detect FreeBSD bug
26260         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
26261         symlink.
26262         * doc/posix-functions/stat.texi (stat): Document the bug.
26263         * tests/test-stat.h (test_stat_func): Add argument.
26264         * tests/test-stat.c (main): Adjust caller.
26265         * tests/test-fstatat.c (main): Likewise.
26266         * modules/stat-tests (Depends-on): Add stdbool, symlink.
26267         Reported by Jim Meyering.
26268
26269 2009-11-09  James Youngman  <jay@gnu.org>
26270
26271         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
26272         * lib/strftime.c: Correct placement of #include "ignore-value.h".
26273
26274 2009-11-08  Jim Meyering  <meyering@redhat.com>
26275
26276         utimens: remove invalid futimesat call
26277         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
26278         It used the file descriptor of the target file as the DIR_FD
26279         parameter and NULL as the file name.  That caused failure with
26280         errno == EFAULT on FreeBSD-8.0-rc2
26281
26282 2009-11-07  Eric Blake  <ebb9@byu.net>
26283
26284         fflush, freadseek: use fseeko, not fseek
26285         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26286         (clear_ungetc_buffer): Avoid potential problems on large files.
26287         * lib/freadseek.c (freadseek): Likewise.
26288         * modules/freadseek (Depends-on): Add fseeko.
26289         * modules/fseek (configure.ac): Set a witness.
26290         * tests/test-fflush.c (main): Use fseeko.
26291         * tests/test-fpurge.c (fseek): Disable link warning.
26292         * tests/test-freadable.c (fseek): Likewise.
26293         * tests/test-freading.c (fseek): Likewise.
26294         * tests/test-fseeko.c (fseek): Likewise.
26295         * tests/test-ftell.c (fseek): Likewise.
26296         * tests/test-ftello.c (fseek): Likewise.
26297         * tests/test-fwritable.c (fseek): Likewise.
26298         * tests/test-fwriting.c (fseek): Likewise.
26299
26300 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26301
26302         * modules/memchr (Depends-on): Drop getpagesize dependency.
26303
26304 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26305
26306         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
26307         Reported by Ludovic Courtès.
26308         * build-aux/pmccabe2html: Improve example usage.
26309         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
26310
26311 2009-11-06  Jim Meyering  <meyering@redhat.com>
26312
26313         do-release-commit-and-tag: New module.
26314         Automate the release-commit and tag process.
26315         * build-aux/do-release-commit-and-tag: New script, from coreutils.
26316         * modules/do-release-commit-and-tag: New file.
26317         * MODULES.html.sh (Support for maintaining and releasing): Add it.
26318
26319 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26320
26321         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
26322         because test-select.c uses inet_pton.
26323
26324 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26325
26326         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
26327         GETADDRINFO_LIB.  Bump serial number.
26328         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
26329         Suggested by Eric Blake <ebb9@byu.net>.
26330
26331 2009-11-05  Eric Blake  <ebb9@byu.net>
26332
26333         strtod: detect darwin bug
26334         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
26335         Reported by Leo Davis.
26336
26337         freopen-safer: new module
26338         * modules/freopen-safer: New module.
26339         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
26340         * lib/freopen-safer.c (freopen_safer): New file.
26341         * lib/stdio-safer.h (freopen_safer): New declaration.
26342         * lib/stdio--.h (freopen): New override.
26343         * MODULES.html.sh (File stream based Input/Output): Mention it.
26344         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
26345         freopen-safer module.
26346         * doc/posix-functions/stderr.texi (stderr): Likewise.
26347         * doc/posix-functions/stdin.texi (stdin): Likewise.
26348         * doc/posix-functions/stdout.texi (stdout): Likewise.
26349         * modules/freopen-safer-tests: New test.
26350         * tests/test-reopen-safer.c: New file.
26351
26352 2009-11-05  Jim Meyering  <meyering@redhat.com>
26353
26354         maint.mk: Prohibit inclusion of "close-stream.h" without use.
26355         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26356
26357 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26358
26359         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
26360
26361 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26362
26363         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
26364
26365 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26366
26367         Fix link error.
26368         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26369         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26370
26371 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26372
26373         * tests/test-func.c: Also test value of __func__.
26374
26375 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26376
26377         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
26378         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
26379
26380 2009-11-05  Bruno Haible  <bruno@clisp.org>
26381
26382         Fix link error.
26383         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26384         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26385         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
26386
26387 2009-11-05  Bruno Haible  <bruno@clisp.org>
26388
26389         Tests for module 'inet_pton'.
26390         * modules/inet_pton-tests: New file.
26391         * tests/test-inet_pton.c: New file.
26392
26393 2009-11-05  Bruno Haible  <bruno@clisp.org>
26394
26395         Tests for module 'inet_ntop'.
26396         * modules/inet_ntop-tests: New file.
26397         * tests/test-inet_ntop.c: New file.
26398
26399 2009-11-04  Eric Blake  <ebb9@byu.net>
26400
26401         stdlib-safer: wrap all mkstemp variants
26402         * modules/mkostemp (configure.ac): Set witness.
26403         * modules/mkostemps (configure.ac): Likewise.
26404         * modules/mkstemps (configure.ac): Likewise.
26405         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26406         (mkstemps_safer): Wrap more functions.
26407         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26408         wrapping.
26409         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26410         (mkstemps_safer): Implement the wrappers.
26411
26412         mkstemps, mkostemps: new modules
26413         * modules/mkostemps: New module.
26414         * modules/mkstemps: Likewise.
26415         * lib/mkostemps.c (mkostemps): New file.
26416         * lib/mkstemps.c (mkstemps): Likewise.
26417         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26418         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26420         * modules/stdlib (Makefile.am): Substitute them.
26421         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26422         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26423         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26424         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26425         * MODULES.html.sh (File system functions): Mention them.
26426
26427         tempname: resync from glibc
26428         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26429         same values for __GT_FILE as glibc.  Abort even when assertions
26430         are disabled.
26431         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26432         match its value otherwise.  Allow idempotent inclusion.
26433         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26434         * lib/mkostemp.c (mkostemp): Likewise.
26435         * lib/mkstemp.c (mkstemp): Likewise.
26436         * lib/tmpfile.c (tmpfile): Likewise.
26437         * NEWS: Document this.
26438
26439         utimens: fix use of futimens on older Linux
26440         * lib/utimens.c (fdutimens): Use updated, rather than original,
26441         timespec to avoid bug in older Linux kernel.
26442         Reported by Simon Josefsson.
26443
26444 2009-11-04  Bruno Haible  <bruno@clisp.org>
26445
26446         Make num_processors more flexible and consistent.
26447         * lib/nproc.h (enum nproc_query): New type.
26448         (num_processors): Add a 'query' argument.
26449         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26450         (num_processors): Add a 'query' argument. Test the value of the
26451         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26452         mingw, count the number of CPUs available for the current process.
26453         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26454         Check for sched_getaffinity and sched_getaffinity_np.
26455         * modules/nproc (Depends-on): Add c-ctype, extensions.
26456         * NEWS: Mention the change.
26457
26458 2009-11-03  Bruno Haible  <bruno@clisp.org>
26459
26460         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26461
26462 2009-11-03  Jim Meyering  <meyering@redhat.com>
26463
26464         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26465         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26466         if it is defined.
26467
26468 2009-11-02  Eric Blake  <ebb9@byu.net>
26469
26470         mktime, timegm: share common declaration
26471         * lib/mktime-internal.h: New file.
26472         * lib/mktime.c: Use it rather than open-coding a declaration.
26473         * lib/timegm.c: Likewise.
26474         * modules/mktime (Files): Ship it.
26475         * modules/timegm (Files): Likewise.
26476         Suggested by Bruno Haible.
26477
26478         test-update-copyright: update test to match script changes
26479         * tests/test-update-copyright.sh: Avoid hard-coding perl
26480         location.  Don't update *.bak created by earlier runs.
26481
26482 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26483             Simon Josefsson  <simon@josefsson.org>
26484             Bruno Haible  <bruno@clisp.org>
26485
26486         Fix link error on Solaris 8.
26487         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26488         also in libnsl. Define also INET_PTON_LIB.
26489         * modules/inet_pton (Link): New section.
26490
26491 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26492             Bruno Haible  <bruno@clisp.org>
26493
26494         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26495         * modules/inet_ntop (Link): New section.
26496         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26497
26498 2009-11-02  Eric Blake  <ebb9@byu.net>
26499
26500         maint: avoid compiler warnings in m4 macros
26501         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26502         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26503
26504 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26505
26506         * m4/pmccabe2html.m4: Remove file.
26507         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26508         function.  Change maintainer.
26509         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26510         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26511         Courtès).
26512
26513 2009-10-31  Eric Blake  <ebb9@byu.net>
26514
26515         fseeko: fix m4 regression
26516         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26517         regression from 2009-10-27.
26518         Reported by Ralf Wildenhues.
26519
26520 2009-10-31  Jim Meyering  <meyering@redhat.com>
26521
26522         inttostr: aesthetics and improved (compile-time) safety
26523         Define inttype_is_signed rather than inttype_is_unsigned,
26524         since the sole use is via "#if inttype_is_signed".
26525         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26526         inttype_is_unsigned.
26527         * lib/offtostr.c (inttype_is_signed): Likewise.
26528         * lib/uinttostr.c (inttype_is_signed): Likewise.
26529         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26530         * lib/inttostr.c (inttostr): Use verify to cross-check the
26531         inttype_is_signed value and the signedness of the actual type.
26532         * modules/inttostr (Depends-on): Add verify.
26533
26534 2009-10-30  Eric Blake  <ebb9@byu.net>
26535
26536         build: avoid compiler warnings
26537         * lib/fchmodat.c (lchmod): Mark unused variables.
26538         * lib/getopt.c (_getopt_initialize): Likewise.
26539         * lib/mktime.c (__mktime_internal): Provide prototype.
26540         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26541         older gcc that do not understand #pragma GCC diagnostic.
26542         * lib/uinttostr.c (inttype_is_unsigned): Define.
26543         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26544
26545 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26546
26547         stat: fix compilation on AIX
26548         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26549         only see struct stat64.
26550
26551 2009-10-30  Eric Blake  <ebb9@byu.net>
26552
26553         exclude: make more robust
26554         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26555         rather than masking a coding bug.
26556         Suggested by Bruno Haible.
26557
26558 2009-10-30  Jim Meyering  <meyering@redhat.com>
26559
26560         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26561         Rather than putting #!/usr/bin/perl on the first line,
26562         start with a variant of what's recommended by "man perlrun" that
26563         invokes the first "perl" program from your shell's search path.
26564         * build-aux/gitlog-to-changelog: Replace #!... as above.
26565         Add a "Local Variables" perl mode setting.
26566         Prompted by a patch from Ludovic Courtès.
26567         Improved by Eric Blake.
26568         * build-aux/useless-if-before-free: Likewise.
26569         * build-aux/announce-gen: Likewise.
26570         * build-aux/update-copyright: Likewise.
26571
26572 2009-10-29  Eric Blake  <ebb9@byu.net>
26573
26574         filenamecat-lgpl: adjust clients
26575         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26576         filenamecat.
26577         * modules/renameat (Depends-on): Likewise.
26578
26579         filenamecat: split into filenamecat-lgpl
26580         * modules/filenamecat-lgpl: New module.
26581         * modules/filenamecat (Files): Move library-safe files into
26582         filenamecat-lgpl.
26583         (Depends-on): Add filenamecat-lgpl.
26584         (configure.ac): Declare witness.
26585         * lib/filenamecat.h (file_name_concat): Only declare when using
26586         GPL module.
26587         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26588         Move...
26589         * lib/filenamecat-lgpl.c: ...into new file.
26590         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26591         (gl_FILE_NAME_CONCAT): Use it.
26592         * MODULES.html.sh (File system functions): Mention new module.
26593
26594         argp: avoid memory leak
26595         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26596         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26597         base_name, since the latter malloc()s and can call exit().
26598         Leak introduced 2006-07-03.
26599
26600         dirname-lgpl: adjust clients that don't need full dirname
26601         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26602         * modules/filenamecat (Depends-on): Likewise.
26603         * modules/linkat (Depends-on): Likewise.
26604         * modules/mkancesdirs (Depends-on): Likewise.
26605         * modules/mkdir (Depends-on): Likewise.
26606         * modules/openat (Depends-on): Likewise.
26607         * modules/savewd (Depends-on): Likewise.
26608         * modules/rename (Depends-on): Likewise.
26609         (License): Relax license.
26610         * modules/mkdir-tests (Depends-on): Drop progname.
26611         (Makefile.am): Delete unneeded LDADD.
26612         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26613
26614         dirname: split into dirname-lgpl
26615         * modules/dirname-lgpl: New module.
26616         * modules/dirname (Files): Move library-safe files into
26617         dirname-lgpl.
26618         (Depends-on): Add dirname-lgpl.
26619         (configure.ac): Declare witness.
26620         * modules/double-slash-root (License): Relax license.
26621         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26622         module.
26623         * lib/dirname.c (dir_len, mdir_name): Move...
26624         * lib/dirname-lgpl.c: ...into new file.
26625         * lib/basename.c (last_component, base_len): Move...
26626         * lib/basename-lgpl.c: ...into new file.
26627         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26628         (gl_DIRNAME): Use it.
26629         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26630         Mention new module.
26631         * modules/dirname-tests (Depends-on): Add progname.
26632         * tests/test-dirname.c (program_name): Delete.
26633
26634         mkdir: make safe for libraries
26635         * modules/mkdir (Depends-on): Drop xalloc.
26636         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26637         exit.
26638
26639         tests: avoid some compiler warnings
26640         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26641         literals.
26642         * tests/test-memchr.c (main): Avoid type mismatch.
26643         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26644         * tests/test-base64.c (main): Likewise.
26645         * tests/test-getdelim.c (main): Likewise.
26646         * tests/test-gethostname.c (main): Likewise.
26647         * tests/test-getline.c (main): Likewise.
26648         * tests/test-netinet_in.c (main): Likewise.
26649         * tests/test-select.c (open_server_socket, main): Likewise.
26650         * tests/test-select-stdin.c (main): Likewise.
26651         * tests/test-sockets.c (main): Likewise.
26652         * tests/test-strsignal.c (main): Likewise.
26653         * tests/test-sys_select.c (main): Likewise.
26654         * tests/test-sys_socket.c (main): Likewise.
26655         * tests/test-u64.c (main): Likewise.
26656         * tests/test-xfprintf-posix.c (main): Likewise.
26657         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26658
26659         sockets: avoid compiler warning
26660         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26661
26662         maint: detect usage(1) and other suspicious exits
26663         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26664
26665 2009-10-29  Jim Meyering  <meyering@redhat.com>
26666
26667         timespec: long-to-int truncation could make timespec_cmp malfunction
26668         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26669         a multiple of 2^32 nanoseconds as no difference.
26670
26671 2009-10-28  Jim Meyering  <meyering@redhat.com>
26672
26673         fprintftime: wrap macro code argument in "do {...} while(0)"
26674         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26675         cpy macro must be a statement that can be followed by a semicolon.
26676         Now that the else clause contains a comment and is hence longer
26677         than one line, I require curly braces.  That in turn requires
26678         that we wrap this code block in the standard do...while(0).
26679
26680         fprintftime: remove stray semicolon from previous change
26681         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26682
26683         fprintftime: avoid a warning about ignored fwrite return value
26684         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26685         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26686         that is unsafe.
26687         * modules/fprintftime (Depends-on): Add ignore-value.
26688
26689         exclude: avoid an unwarranted warning
26690         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26691
26692 2009-10-27  Eric Blake  <ebb9@byu.net>
26693
26694         fseek: avoid compilation failure when fflush is replaced
26695         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26696         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26697         module is in use.
26698         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26699         module is not in use; since REPLACE_FSEEK worked otherwise.
26700         (GNULIB_FTELLO): Likewise for ftell.
26701         Reported by Ian Beckwith and others.
26702
26703 2009-10-27  Bruno Haible  <bruno@clisp.org>
26704
26705         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26706         Reported by Jim Meyering.
26707
26708 2009-10-27  Jim Meyering  <jim@meyering.net>
26709             Bruno Haible  <bruno@clisp.org>
26710
26711         Avoid warning despite dropping the return value of fwrite.
26712         * lib/unicodeio.c: Include ignore-value.h.
26713         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26714         * modules/unicodeio (Depends-on): Add ignore-value.
26715
26716 2009-10-26  Eric Blake  <ebb9@byu.net>
26717
26718         areadlinkat: fix fallback path
26719         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26720         pointer and zero.
26721
26722 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26723
26724         Use a better IO block size for modern systems
26725         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26726         * lib/md2.c: Likewise.
26727         * lib/md4.c: Likewise.
26728         * lib/md5.c: Likewise.
26729         * lib/sha1.c: Likewise.
26730         * lib/sha256.c: Likewise.
26731         * lib/sha512.c: Likewise.
26732
26733 2009-10-22  Eric Blake  <ebb9@byu.net>
26734
26735         tests: avoid several compiler warnings
26736         * tests/test-getcwd.c (main): Avoid buffer underflow.
26737         * tests/test-getdate.c (main): String literals are not safe with
26738         putenv, so use setenv.  Declare unused argument.
26739         * modules/getdate-tests (Depends-on): Add setenv.
26740         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26741         problems with string literals in char *.
26742         * tests/test-hash.c (main): Avoid shadowing declaration.
26743         (insert_new): Treat string literals as char const *.
26744         * tests/test-getopt.h (test_getopt): Likewise.
26745         (getopt_loop): Alter types to minimize casting elsewhere.
26746         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26747         (test_getopt_long_posix): Likewise.
26748         (do_getopt_long): Add wrapper to minimize casting.
26749         * tests/test-atexit.c (clear_temp_file): Use void.
26750         * tests/test-areadlink-with-size.c (main): Declare unused
26751         arguments.
26752         * tests/test-areadlink.c (main): Likewise.
26753         * tests/test-areadlinkat-with-size.c (main): Likewise.
26754         * tests/test-areadlinkat.c (main): Likewise.
26755         * tests/test-canonicalize-lgpl.c (main): Likewise.
26756         * tests/test-canonicalize.c (main): Likewise.
26757         * tests/test-dirent-safer.c (main): Likewise.
26758         * tests/test-dirname.c (main): Likewise.
26759         * tests/test-dup2.c (main): Likewise.
26760         * tests/test-fchdir.c (main): Likewise.
26761         * tests/test-fcntl-h.c (main): Likewise.
26762         * tests/test-fcntl-safer.c (main): Likewise.
26763         * tests/test-fdopendir.c (main): Likewise.
26764         * tests/test-fdutimensat.c (main): Likewise.
26765         * tests/test-fflush.c (main): Likewise.
26766         * tests/test-filenamecat.c (main): Likewise.
26767         * tests/test-filevercmp.c (main): Likewise.
26768         * tests/test-fopen-safer.c (main): Likewise.
26769         * tests/test-fopen.c (main): Likewise.
26770         * tests/test-fpending.c (main): Likewise.
26771         * tests/test-fpurge.c (main): Likewise.
26772         * tests/test-freading.c (main): Likewise.
26773         * tests/test-fstatat.c (main): Likewise.
26774         * tests/test-fsync.c (main): Likewise.
26775         * tests/test-futimens.c (main): Likewise.
26776         * tests/test-getndelim2.c (main): Likewise.
26777         * tests/test-gettimeofday.c (main): Likewise.
26778         * tests/test-getopt.c (main): Likewise.
26779         * tests/test-i-ring.c (main): Likewise.
26780         * tests/test-inttypes.c (main): Likewise.
26781         * tests/test-link.c (main): Likewise.
26782         * tests/test-lstat.c (main): Likewise.
26783         * tests/test-math.c (main): Likewise.
26784         * tests/test-md5.c (main): Likewise.
26785         * tests/test-memchr2.c (main): Likewise.
26786         * tests/test-memrchr.c (main): Likewise.
26787         * tests/test-mkdir.c (main): Likewise.
26788         * tests/test-mkdirat.c (main): Likewise.
26789         * tests/test-mkfifoat.c (main): Likewise.
26790         * tests/test-open.c (main): Likewise.
26791         * tests/test-openat-safer.c (main): Likewise.
26792         * tests/test-openat.c (main): Likewise.
26793         * tests/test-quotearg.c (main): Likewise.
26794         * tests/test-rawmemchr.c (main): Likewise.
26795         * tests/test-readlink.c (main): Likewise.
26796         * tests/test-remove.c (main): Likewise.
26797         * tests/test-rename.c (main): Likewise.
26798         * tests/test-renameat.c (main): Likewise.
26799         * tests/test-rmdir.c (main): Likewise.
26800         * tests/test-sha1.c (main): Likewise.
26801         * tests/test-signal.c (main): Likewise.
26802         * tests/test-sigaction.c (main): Likewise.
26803         * tests/test-stat.c (main): Likewise.
26804         * tests/test-stat-time.c (main): Likewise.
26805         * tests/test-stddef.c (main): Likewise.
26806         * tests/test-stdint.c (main): Likewise.
26807         * tests/test-stdio.c (main): Likewise.
26808         * tests/test-stdlib.c (main): Likewise.
26809         * tests/test-strchrnul.c (main): Likewise.
26810         * tests/test-strerror.c (main): Likewise.
26811         * tests/test-string.c (main): Likewise.
26812         * tests/test-strtod.c (main): Likewise.
26813         * tests/test-strverscmp.c (main): Likewise.
26814         * tests/test-symlink.c (main): Likewise.
26815         * tests/test-symlinkat.c (main): Likewise.
26816         * tests/test-sys_stat.c (main): Likewise.
26817         * tests/test-sys_time.c (main): Likewise.
26818         * tests/test-time.c (main): Likewise.
26819         * tests/test-unistd.c (main): Likewise.
26820         * tests/test-unlink.c (main): Likewise.
26821         * tests/test-unlinkat.c (main): Likewise.
26822         * tests/test-utimens.c (main): Likewise.
26823         * tests/test-utimensat.c (main): Likewise.
26824         * tests/test-version-etc.c (main): Likewise.
26825         * tests/test-wchar.c (main): Likewise.
26826         * tests/test-wctype.c (main): Likewise.
26827         * tests/test-xprintf-posix.c (main): Likewise.
26828         * tests/test-posixtm.c (main): Likewise.
26829         (STREQ): Delete unused macro.
26830         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26831         shadowed variables.
26832         * tests/test-memchr.c (main): Likewise.
26833
26834 2009-10-21  Eric Blake  <ebb9@byu.net>
26835
26836         areadlinkat: avoid failure on older glibc
26837         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26838         rather than mis-comparing 0 against FUNC_RESULT of char*.
26839
26840 2009-10-21  Bruno Haible  <bruno@clisp.org>
26841
26842         * modules/stpncpy (License): Relicense under LGPLv2+.
26843         Reported by David Lutterkort <lutter@redhat.com>.
26844
26845 2009-10-20  Eric Blake  <ebb9@byu.net>
26846
26847         utimensat: work around Solaris 9 bug
26848         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26849         has trailing slash bugs.
26850         * tests/test-lutimens.h (test_lutimens): Enhance test.
26851         * tests/test-utimens.h (test_utimens): Likewise.
26852         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26853         * doc/posix-functions/utimes.texi (utimes): Likewise.
26854         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26855         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26856         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26857         * doc/posix-functions/futimens.texi (futimens): Likewise.
26858
26859         fdutimensat: new module
26860         * modules/fdutimensat: New file.
26861         * lib/fdutimensat.c (fdutimensat): Likewise.
26862         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26863         * MODULES.html.sh (File system functions): Mention module.
26864         * modules/fdutimensat-tests: New test.
26865         * tests/test-fdutimensat.c: Likewise.
26866
26867         doc: regenerate INSTALL
26868         * doc/INSTALL: Reflect recent autoconf update.
26869         * doc/INSTALL.ISO: Likewise.
26870         * doc/INSTALL.UTF-8: Likewise.
26871
26872 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26873
26874         acl: warn if ACL support is not detected
26875         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26876
26877 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26878
26879         * lib/nproc.h: Add extern "C" block for C++.
26880
26881 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26882             Bruno Haible  <bruno@clisp.org>
26883
26884         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26885         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26886         * doc/posix-functions/isalpha.texi: Likewise.
26887         * doc/posix-functions/isblank.texi: Likewise.
26888         * doc/posix-functions/iscntrl.texi: Likewise.
26889         * doc/posix-functions/isdigit.texi: Likewise.
26890         * doc/posix-functions/isgraph.texi: Likewise.
26891         * doc/posix-functions/islower.texi: Likewise.
26892         * doc/posix-functions/isprint.texi: Likewise.
26893         * doc/posix-functions/ispunct.texi: Likewise.
26894         * doc/posix-functions/isspace.texi: Likewise.
26895         * doc/posix-functions/isupper.texi: Likewise.
26896         * doc/posix-functions/isxdigit.texi: Likewise.
26897
26898 2009-10-18  Bruno Haible  <bruno@clisp.org>
26899
26900         Tests for module 'isblank'.
26901         * modules/isblank-tests: New file.
26902         * tests/test-isblank.c: New file.
26903
26904         New module 'isblank'.
26905         * lib/isblank.c: New file.
26906         * m4/isblank.m4: New file.
26907         * modules/isblank: New file.
26908         * doc/posix-functions/isblank.texi: Mention the new module.
26909
26910 2009-10-18  Bruno Haible  <bruno@clisp.org>
26911
26912         New module 'ctype'.
26913         * lib/ctype.in.h: New file.
26914         * m4/ctype.m4: New file.
26915         * modules/ctype: New file.
26916         * doc/posix-headers/ctype.texi: Mention the new module.
26917
26918 2009-10-18  Jim Meyering  <meyering@redhat.com>
26919
26920         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26921         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26922         right after its initialization, rather than farther down.
26923         Keeping these in close proximity makes it easier to ensure
26924         that each such variable is initialized.  E.g.,
26925
26926             LIB_CLOCK_GETTIME=
26927             AC_SUBST([LIB_CLOCK_GETTIME])
26928
26929         This change also increments these serial numbers.
26930         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26931         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26933
26934 2009-10-18  Bruno Haible  <bruno@clisp.org>
26935
26936         Don't let environment variables perturb build.
26937         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26938         (gl_PREREQ_GETHRXTIME): ... not here.
26939
26940 2009-10-18  Bruno Haible  <bruno@clisp.org>
26941
26942         Avoid symlink attack in localcharset module.
26943         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26944         (O_NOFOLLOW): Define fallback.
26945         (get_charset_aliases): Don't open the file if it is a symbolic link.
26946         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26947         gl_FCNTL_H.
26948         (gl_FCNTL_H): Require it.
26949         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26950         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26951         Reported by Fergal Glynn <fglynn@veracode.com>.
26952
26953 2009-10-18  Bruno Haible  <bruno@clisp.org>
26954
26955         Implement nproc for mingw.
26956         * lib/nproc.c: Include <windows.h>
26957         (num_processors): On native Windows platforms, try GetSystemInfo.
26958
26959 2009-10-18  Bruno Haible  <bruno@clisp.org>
26960
26961         Implement nproc for IRIX.
26962         * lib/nproc.c: Include <sys/sysmp.h>.
26963         (num_processors): On IRIX systems, try sysmp.
26964         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26965
26966 2009-10-18  Bruno Haible  <bruno@clisp.org>
26967
26968         Implement nproc for HP-UX.
26969         * lib/nproc.c: Include <sys/pstat.h>
26970         (num_processors): On HP-UX systems, try pstat_getdynamic.
26971         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26972         pstat_getdynamic.
26973
26974 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26975             Bruno Haible  <bruno@clisp.org>
26976
26977         Implement nproc for NetBSD, OpenBSD.
26978         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26979         (ARRAY_SIZE): New macro.
26980         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26981         * m4/nproc.m4: New file.
26982         * modules/nproc (Files): Add m4/nproc.m4.
26983         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26984         (Makefile.am): Instead, augment lib_SOURCES.
26985
26986 2009-10-18  Bruno Haible  <bruno@clisp.org>
26987
26988         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26989         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26990         sys/param.h.
26991
26992 2009-10-16  Eric Blake  <ebb9@byu.net>
26993
26994         utimensat: new module
26995         * modules/utimensat: New file.
26996         * lib/utimensat.c (utimensat): Likewise.
26997         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26998         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26999         so we can work around Linux bugs.
27000         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27001         * modules/sys_stat (Makefile.am): Substitute them.
27002         * lib/sys_stat.in.h (utimensat): Declare it.
27003         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27004         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27005         * modules/utimensat-tests: New test.
27006         * tests/test-utimensat.c: Likewise.
27007
27008         utimens: let lutimens work on non-symlinks
27009         * lib/utimens.c (lutimens): Fall back to utimens rather than
27010         failing with ENOSYS, when file is not a symlink.
27011         (utimens): Reduce redirection.
27012         * tests/test-lutimens.h (test_lutimens): Update test to cover
27013         non-symlinks.
27014         * tests/test-utimens.h (test_utimens): Update test to cover
27015         symlinks.
27016         * tests/test-utimens.c (main): Update caller.
27017
27018         utimens: cache whether utimensat syscall works
27019         * lib/utimens.c (utimensat_works_really): New cache variable.
27020         (fdutimens, lutimens): Use it to avoid failing syscall.
27021
27022         test-stat-time, test-utimens: improve portability
27023         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
27024         ext4 on alpha, and for cygwin.
27025         * tests/test-utimens-common.h: New file.
27026         (nap): Factor delays into single function.
27027         * tests/test-lutimens.h (test_lutimens): Use new header.
27028         * tests/test-futimens.h (test_futimens): Likewise.
27029         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
27030         timestamps to occur from same machine, as was done previously for
27031         test_utimens.
27032         * modules/utimens-tests (Files): Ship new file.
27033         * modules/futimens-tests (Files): Likewise.
27034         Reported in part by Jim Meyering.
27035
27036         sys_stat: sort replacement declarations
27037         * lib/sys_stat.in.h: Sort declarations.
27038         * lib/futimens.c (futimens): Fix typo.
27039
27040 2009-10-15  Jim Meyering  <meyering@redhat.com>
27041
27042         don't let environment settings perturb build
27043         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
27044         could cause a configure-time and/or build-time malfunction.
27045         Typically, a configure-time function-in-library test is performed
27046         via code like this:
27047
27048           LIB_VAR=
27049           AC_SUBST([LIB_VAR])
27050           prefix_saved_LIBS=$LIBS
27051             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
27052                        [test "$ac_cv_search_FUNC" = "none required" ||
27053                         LIB_VAR=$ac_cv_search_FUNC])
27054           LIBS=$prefix_saved_LIBS
27055
27056         However, in each of the files affected by this change, the LIB_VAR=
27057         initialization was omitted.  Thus, when set in the environment, its
27058         value would propagate into generated Makefiles when FUNC is not found
27059         in LIB_NAME.
27060         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
27061         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27063
27064 2009-10-14  Eric Blake  <ebb9@byu.net>
27065
27066         fchdir: avoid infinite recursion in mingw
27067         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
27068         recursing.
27069
27070         test-stat-time: port to mingw
27071         * tests/test-stat-time.c (force_unlink): Return a value.
27072         (test_ctime) [W32]: Fix compilation error.
27073         (nap): Don't call usleep with too large an argument.  Use
27074         force_unlink.
27075         * doc/pastposix-functions/usleep.texi (usleep): Document the
27076         portability issue.
27077
27078 2009-10-13  Jim Meyering  <meyering@redhat.com>
27079
27080         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
27081         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
27082         * modules/pipe-filter-ii: Likewise.
27083         * modules/sys_socket-tests: Likewise.
27084         * modules/tsearch-tests: Likewise.
27085         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
27086         (check): Depend on it.
27087
27088 2009-10-12  Eric Blake  <ebb9@byu.net>
27089
27090         utimens-tests: port to NFS file systems
27091         * tests/test-utimens.h (test_utimens): Refactor utimecmp
27092         comparisons to avoid spurious failures from timestamp drift
27093         between NFS machines.
27094
27095 2009-10-12  Eric Blake  <ebb9@byu.net>
27096
27097         stat-time-tests: minor cleanups
27098         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
27099         * tests/test-stat-time.c (nap): Separate assignment from call.
27100         Suggested by Paolo Bonzini and Bruno Haible.
27101
27102         sys_stat: guarantee struct timespec
27103         * lib/sys_stat.in.h (includes): Always include <time.h>
27104         * modules/sys_stat (Depends-on): Add time.
27105         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
27106         mode_t permission values.
27107         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
27108         get at subsecond timestamps.
27109
27110 2009-10-10  Eric Blake  <ebb9@byu.net>
27111
27112         futimens: new module
27113         * modules/futimens: New file.
27114         * lib/futimens.c (futimens): Likewise.
27115         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
27116         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
27117         we can work around Linux bugs.
27118         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27119         * modules/sys_stat (Makefile.am): Substitute them.
27120         * lib/sys_stat.in.h (futimens): Declare it.
27121         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27122         * doc/posix-functions/futimens.texi (futimens): Likewise.
27123         * modules/futimens-tests: New test.
27124         * tests/test-futimens.c: Likewise.
27125
27126         utimens: introduce fdutimens
27127         * lib/utimens.h (fdutimens): New prototype.
27128         * lib/utimens.c (gl_futimens): Move guts...
27129         (fdutimens): ...to new interface.
27130         * tests/test-utimens.c (do_fdutimens): Use it.
27131
27132         utimens: add UTIME_NOW and UTIME_OMIT support
27133         * lib/utimens.c (validate_timespec, update_timespec): New helper
27134         functions.
27135         (gl_futimens, lutimens): Use them.
27136         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
27137         stdbool, sys_stat.
27138         (Link): Mention resulting library dependency.
27139         * modules/utimecmp (Link): Likewise.
27140         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
27141         (Makefile.am): Pick up library dependency.
27142         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
27143         definition.
27144         * tests/test-sys_stat.c: Test the definitions.
27145         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
27146         * NEWS: Document library dependency.
27147
27148         utimecmp: support symlink timestamps
27149         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
27150         hashing when possible.  Use pathconf when available.
27151         (SYSCALL_RESOLUTION): Recognize tighter resolution.
27152         * modules/utimecmp (Depends-on): Add lstat.
27153
27154         utimens: add lutimens interface
27155         * lib/utimens.c (lutimens): New function.
27156         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
27157         * lib/utimens.h (lutimens): Declare new interface.
27158         * tests/test-utimens.c (main): Enhance test.
27159         * tests/test-lutimens.h (test_lutimens): New file.
27160         * modules/utimens-tests (Files): Distribute it.
27161         (Depends-on): Add symlink.
27162         (configure.ac): Check for usleep.
27163
27164         utimens: validate futimens usage
27165         * lib/utimens.c (gl_futimens): Require valid fd up front, using
27166         fewer syscalls on failure later on.  Avoid compiler warning on
27167         mingw.
27168         * modules/utimens (Depends-on): Add dup2.
27169
27170         utimens: add test
27171         * modules/utimens-tests: New test.
27172         * tests/test-utimens.h: New file.
27173         * tests/test-futimens.h: Likewise.
27174         * tests/test-utimens.c: Likewise.
27175
27176         doc: mention timestamp portability issues
27177         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
27178         instead.
27179         * doc/posix-functions/utime.texi (utime): Likewise.
27180         * doc/posix-functions/utimes.texi (utimes): Likewise.
27181         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
27182         instead.
27183         * doc/posix-functions/futimens.texi (futimens): Mention utimens
27184         module.
27185         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27186         Mention weakness with symlink timestamps.
27187         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
27188         to utimensat/futimens instead.
27189         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
27190
27191         test-dup2: enhance test
27192         * tests/test-dup2.c (main): Also check AT_FDCWD.
27193
27194         test-stat-time: avoid more spurious failures
27195         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
27196         xfs; and avoid race if the two timestamps cross quantization edge.
27197
27198         relocatable: prefer 'file system' over 'filesystem'
27199         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
27200         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
27201         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
27202         * doc/relocatable.texi (Enabling Relocatability): Likewise.
27203         * lib/relocatable.c (compute_curr_prefix): Likewise.
27204
27205 2009-10-10  Jim Meyering  <meyering@redhat.com>
27206
27207         stat-time-tests: check for the usleep function
27208         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
27209
27210 2009-10-10  Bruno Haible  <bruno@clisp.org>
27211
27212         * modules/xnanosleep: Put the Link section after the Include section.
27213
27214 2009-10-09  Eric Blake  <ebb9@byu.net>
27215
27216         dup2: work around FreeBSD 6.1 bug
27217         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
27218         * doc/posix-functions/dup2.texi (dup2): Document it.
27219         Reported by Nelson H. F. Beebe and Jim Meyering.
27220
27221         test-stat-time: port to buggy NFS clients
27222         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
27223         (test_ctime): Also skip test if mtime and ctime are skewed.
27224
27225         maint: prefer 'file system' over 'filesystem'
27226         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27227         * doc/posix-functions/lstat.texi (lstat): Likewise.
27228         * lib/file-has-acl.c (file_has_acl): Likewise.
27229         * lib/fwriteerror.c [TEST]: Likewise.
27230         * tests/test-areadlink.h (test_areadlink): Likewise.
27231         * tests/test-areadlinkat-with-size.c (main): Likewise.
27232         * tests/test-areadlinkat.c (main): Likewise.
27233         * tests/test-canonicalize-lgpl.c (main): Likewise.
27234         * tests/test-canonicalize.c (main): Likewise.
27235         * tests/test-fstatat.c (main): Likewise.
27236         * tests/test-linkat.c (main): Likewise.
27237         * tests/test-lstat.h (test_lstat_func): Likewise.
27238         * tests/test-mkdir.h (test_mkdir): Likewise.
27239         * tests/test-readlink.h (test_readlink): Likewise.
27240         * tests/test-remove.c (main): Likewise.
27241         * tests/test-rename.h (test_rename): Likewise.
27242         * tests/test-renameat.c (main): Likewise.
27243         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27244         * tests/test-symlink.h (test_symlink): Likewise.
27245         * tests/test-symlinkat.c (main): Likewise.
27246         * tests/test-unlink.h (test_unlink_func): Likewise.
27247         * tests/test-unlinkat.c (main): Likewise.
27248
27249         maint: make realtime library usage explicit
27250         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
27251         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
27252         * modules/settime (Link): Likewise.
27253         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
27254
27255         test-stat-time: speed up execution
27256         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
27257         warning on mingw.
27258         (nap): New helper function.
27259         (prepare_test): Use it to reduce sleep time.
27260         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
27261         execution.
27262         * modules/stat-time-tests (configure.ac): Check for usleep.
27263
27264 2009-10-09  Jim Meyering  <meyering@redhat.com>
27265
27266         selinux-h: always use getfilecon wrappers
27267         * lib/getfilecon.c: New file.
27268         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
27269         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
27270         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
27271         (fgetfilecon): Provide a stub.
27272         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
27273         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
27274         file unconditionally.
27275         When <selinux/selinux.h> is found, arrange to use wrappers.
27276         * modules/selinux-h (Files): Add getfilecon.c.
27277         (Makefile.am): Substitute include-next-related bits
27278         into the now-always-generated selinux/selinux.h file.
27279         * doc/glibc-functions/lgetfilecon.texi: New file.
27280         * doc/glibc-functions/fgetfilecon.texi: New file.
27281         * doc/glibc-functions/getfilecon.texi: New file.
27282         * doc/glibc-functions/getfilecon-desc.texi: New file.
27283         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
27284         which to pull in the new files.
27285         * MODULES.html.sh (Misc): Add selinux-h.
27286
27287 2009-10-08  Jim Meyering  <meyering@redhat.com>
27288
27289         unistd: fix comment typo
27290         * lib/unistd.in.h (euidaccess): Fix a comment typo.
27291
27292 2009-10-08  Eric Blake  <ebb9@byu.net>
27293
27294         areadlink: use SIZE_MAX consistently
27295         * modules/areadlink (Depends-on): Add stdint.
27296         * modules/areadlink-with-size (Depends-on): Likewise.
27297         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
27298         gives NULL; drop sys/types, since unistd gives size_t; and add
27299         stdint for SIZE_MAX.
27300         (SIZE_MAX): Rely on headers.
27301         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
27302         and add stdint.
27303         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
27304         (SIZE_MAX): Likewise.
27305         (INITIAL_BUF_SIZE): Turn into enum.
27306         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
27307
27308 2009-10-08  Jim Meyering  <meyering@redhat.com>
27309
27310         areadlinkat: avoid compilation failure
27311         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
27312         Fix typo in comment.
27313
27314 2009-10-07  Eric Blake  <ebb9@byu.net>
27315
27316         areadlinkat-with-size: new module
27317         * modules/areadlinkat-with-size: New module.
27318         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
27319         * lib/areadlink.h (areadlinkat): Declare it.
27320         * MODULES.html.sh (File system functions): Mention it.
27321         * modules/areadlinkat-with-size-tests: New test.
27322         * tests/test-areadlinkat-with-size.c: New file.
27323
27324         xreadlinkat: new module
27325         * modules/xreadlinkat: New module.
27326         * lib/xreadlinkat.c (xreadlinkat): New file.
27327         * lib/xreadlink.h (xreadlinkat): Declare it.
27328         * MODULES.html.sh (File system functions): Mention it.
27329
27330         areadlinkat: new module
27331         * lib/at-func.c (FUNC_FAIL): New define.
27332         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
27333         * modules/areadlinkat: New module.
27334         * lib/linkat.c (areadlinkat): Move...
27335         * lib/areadlinkat.c (areadlinkat): ...to new file.
27336         * lib/areadlink.h (areadlinkat): Declare it.
27337         * modules/linkat (Depends-on): Add areadlinkat.
27338         * MODULES.html.sh (File system functions): Mention it.
27339         * modules/areadlinkat-tests: New test.
27340         * tests/test-areadlinkat.c: New file.
27341
27342         areadlink, areadlink-with-size: add tests
27343         * modules/areadlink-tests: New test.
27344         * modules/areadlink-with-size-tests: Likewise.
27345         * tests/test-areadlink.h: New file.
27346         * tests/test-areadlink.c: Likewise.
27347         * tests/test-areadlink-with-size.c: Likewise.
27348
27349         maint: minor cleanups
27350         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
27351         _UNUSED_PARAMETER_ instead.
27352         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
27353         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
27354         * modules/linkat-tests (Files): Distribute test-link.h.
27355
27356         openat, utimens: whitespace cleanup
27357         * lib/openat.c: Prefer space throughout, rather than mix of 8
27358         spaces vs. tabs.
27359         * lib/at-func.c: Likewise.
27360         * lib/utimens.c: Likewise.
27361
27362         openat: avoid using wrong fd
27363         * lib/openat.c (openat_permissive): Reject user's fd if saving the
27364         working directory chooses same fd.
27365         * lib/at-func.c (AT_FUNC_NAME): Likewise.
27366
27367         mkdir, mkdirat: fix cygwin 1.5.x bug
27368         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
27369         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
27370         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
27371         bug.
27372         (gl_PREREQ_MKDIR): Delete unused macro.
27373         * modules/mkdir (Files): Track file rename.
27374         (configure.ac): Update macro name.
27375         * modules/openat (Depends-on): Add mkdir.
27376         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
27377
27378         mkdir, mkdirat: add tests
27379         * modules/mkdir-tests: New test.
27380         * tests/test-mkdir.h: New file.
27381         * tests/test-mkdir.c: Likewise.
27382         * tests/test-mkdirat.c: Likewise.
27383         * modules/openat-tests (Files): Add new files.
27384         (Makefile.am): Run new test.
27385
27386 2009-10-06  Eric Blake  <ebb9@byu.net>
27387
27388         doc: tweak *at function documentation
27389         * doc/posix-functions/faccessat.texi (faccessat): Mention
27390         known issue with replacement.
27391         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
27392         * doc/posix-functions/linkat.texi (linkat): Likewise.
27393         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27394         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27395         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27396         * doc/posix-functions/renameat.texi (renameat): Likewise.
27397         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27398
27399         openat: fix GNU/Hurd bug in unlinkat
27400         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
27401         broken.
27402         * doc/posix-functions/unlink.texi (unlink): Document this.
27403         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27404
27405         fdopendir: fix GNU/Hurd bug
27406         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27407         allowing non-directory fds.
27408         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27409         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27410         * modules/dirent (Makefile.am): Substitute it.
27411         * lib/dirent.in.h (fdopendir): Declare replacement.
27412         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27413         * tests/test-fdopendir.c (main): Test something other than
27414         /dev/null, since on Hurd that behaves like a directory.
27415
27416         test-symlink: port to GNU/Hurd
27417         * tests/test-symlink.h (test_symlink): Relax expected errno.
27418
27419         doc: tweak more cygwin information
27420         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27421         now compatible with glibc.
27422         * doc/posix-functions/getopt.texi (getopt): Likewise.
27423
27424         getopt-gnu: add another test
27425         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27426         guarantee behavior relied on by m4.
27427         * tests/test-getopt.c (main): Use it.
27428         * modules/getopt-posix-tests (Depends-on): Add setenv.
27429         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27430
27431         getopt: fix compilation on darwin
27432         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27433         include.
27434         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27435         Reported by Ludovic Courtès.
27436
27437 2009-10-06  Bruno Haible  <bruno@clisp.org>
27438
27439         * modules/size_max (Description): Discourage its use.
27440         Reported by Simon Josefsson.
27441
27442 2009-10-06  Jim Meyering  <meyering@redhat.com>
27443
27444         linkat: avoid compilation failure
27445         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27446
27447 2009-10-05  Eric Blake  <ebb9@byu.net>
27448
27449         linkat: support Linux 2.6.17
27450         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27451         linkat on Linux, but allow cache variable override.
27452         * lib/linkat.c (rpl_linkat): Define override.
27453         * modules/linkat (Depends-on): Add symlinkat.
27454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27455         * modules/unistd (Makefile.am): Substitute it.
27456         * lib/unistd.in.h (linkat): Declare replacement.
27457         Reported by Pádraig Brady.
27458
27459         quotearg: port test to systems with C.UTF-8 locale
27460         * tests/test-quotearg.c (struct result_strings): Add another
27461         member, differentiating between C.ASCII and C.UTF-8 handling.
27462         (compare_strings): Add parameter.
27463         (main): Adjust all callers.
27464
27465         getopt: avoid clash with FreeBSD _getopt_internal
27466         * lib/getopt.in.h (_getopt_internal): Override the name.
27467         * lib/getopt_int.h (includes): Pick up any overrides.
27468         Reported by Reuben Thomas.
27469
27470         hash: allow C89 compilation
27471         * lib/hash.c (check_tuning): Move declaration before statement.
27472         Reported by Reuben Thomas.
27473
27474 2009-10-05  Karl Berry  <karl@gnu.org>
27475
27476         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27477
27478 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27479             Bruno Haible  <bruno@clisp.org>
27480
27481         * lib/uname.c (uname): Use a table-driven algorithm to compute
27482         Windows NT versions.
27483
27484 2009-10-04  Bruno Haible  <bruno@clisp.org>
27485
27486         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27487         program_invocation_short_name.
27488         * modules/progname (configure.ac): Test for presence of
27489         program_invocation_short_name.
27490         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27491
27492 2009-10-04  Bruno Haible  <bruno@clisp.org>
27493
27494         * lib/progname.c (set_program_name): Fix comment.
27495         Reported by Jim Meyering.
27496
27497 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27498             Bruno Haible  <bruno@clisp.org>
27499
27500         * lib/uname.c: Include <string.h>.
27501         (uname): Do only one call to GetVersionEx in the common case.
27502
27503 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27504             Bruno Haible  <bruno@clisp.org>
27505
27506         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27507         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27508         (uname): Add support for Windows CE and various non-x86 CPU types.
27509
27510 2009-10-03  Bruno Haible  <bruno@clisp.org>
27511
27512         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27513         invocation to tests/configure.ac.
27514         Reported by Ian Beckwith <ianb@erislabs.net>.
27515
27516 2009-10-02  Eric Blake  <ebb9@byu.net>
27517
27518         fchdir: avoid compiler warning
27519         * lib/fchdir.c (canonicalize_file_name)
27520         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27521
27522         test-open: support mingw errno values
27523         * tests/test-open.h (test_open): Relax test.
27524         * tests/test-fopen.h (test_fopen): Likewise.
27525         * tests/test-openat-safer.c (main): Likewise.
27526
27527         open: fix opening directory on mingw
27528         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27529
27530         test-open: on GNU/Hurd, /dev/null is a directory
27531         * tests/test-fopen.h (main): Rename...
27532         (test_fopen): ...to this.  Use a guaranteed non-directory when
27533         confirming open behavior on trailing slash.
27534         * tests/test-openat-safer.c (main): Likewise.
27535         * tests/test-open.h (main): Likewise....
27536         (test_open): ...to this.
27537         * tests/test-fopen.c (main): Adjust caller.
27538         * tests/test-fopen-safer.c (main): Likewise.
27539         * tests/test-open.c (main): Likewise.
27540         * tests/test-fcntl-safer.c (main): Likewise.
27541         Reported by Samuel Thibault.
27542
27543         rename, fchdir: don't ignore chdir failure
27544         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27545         * lib/rename.c (rpl_rename) [W32]: Likewise.
27546         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27547         an empty destination directory if source cannot be renamed,
27548         although there is still possibility for failure.
27549         * doc/posix-functions/rename.texi (rename): Document the race.
27550         Reported by Jim Meyering.
27551
27552         maint: cleanup whitespace in recent commits
27553         * lib/rename.c (rpl_rename): Remove tabs.
27554         * tests/test-link.h (test_link): Likewise.
27555         * lib/fchdir.c (get_name): Likewise.
27556         Reported by Jim Meyering.
27557
27558 2009-10-02  Ben Pfaff  <blp@gnu.org>
27559
27560         relocatable-prog-wrapper: Add missing dependency on
27561         double-slash-root.
27562         * modules/relocatable-prog-wrapper: Add dependency.
27563         Reported by Ian Beckwith <ianb@erislabs.net>.
27564
27565 2009-10-02  Eric Blake  <ebb9@byu.net>
27566
27567         renameat: fix Solaris bugs
27568         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27569         needed fixing.
27570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27571         * modules/stdio (Makefile.am): Substitute it.
27572         * lib/stdio.in.h (renameat): Declare replacement.
27573         * lib/renameat.c (rpl_renameat): Implement fix.
27574
27575         renameat: new module
27576         * modules/renameat: New file.
27577         * lib/renameat.c (renameat): Likewise.
27578         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27580         * modules/stdio (Makefile.am): Substitute them.
27581         * lib/stdio.in.h (renameat): Declare it.
27582         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27583         * doc/posix-functions/renameat.texi (renameat): Likewise.
27584         * modules/renameat-tests: New test.
27585         * tests/test-renameat.c: Likewise.
27586
27587         rename: fix mingw bugs
27588         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27589         directory overwrite bugs.
27590
27591         rename: fix another cygwin 1.5 bug
27592         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27593         checks.
27594         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27595         unnecessary cygwin workarounds.  Also work around bug with moving
27596         full directory onto an empty one.
27597         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27598
27599         rename-dest-slash: merge into rename module
27600         * modules/rename-dest-slash (Status): Mark obsolete.
27601         (Depends-on): Add rename.
27602         (Files): Let rename do it all.
27603         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27604         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27605         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27606         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27607         * lib/rename.c (rpl_rename): Update comments.
27608
27609         rename: fix cygwin 1.5.x bugs
27610         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27611         * lib/rename.c (rpl_rename): Work around them.
27612         * modules/rename (Depends-on): Add same-inode.
27613
27614         rename: fix Solaris 10 bug
27615         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27616         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27617         was the only bug.
27618
27619         rename: fix Solaris 9 bug
27620         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27621         on non-directory.  Avoid calling exit.
27622         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27623         strdup.
27624         * modules/rename-tests (Depends-on): Drop lstat.
27625         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27626         (gl_PREREQ_RENAME): Delete unused macro.
27627
27628         rename-dest-slash: fix NetBSD bug
27629         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27630         links.
27631         * modules/rename-dest-slash (Depends-on): Add same-inode.
27632
27633         rename-tests: new test, exposes several platform bugs
27634         * modules/rename-tests: New file.
27635         * tests/test-rename.h: Likewise.
27636         * tests/test-rename.c: Likewise.
27637         * doc/posix-functions/rename.texi (rename): Improve documentation,
27638         including bugs that will eventually be fixed in gnulib.
27639
27640 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27641
27642         * lib/uname.c: Include <stdlib.h>
27643         (uname): Assume version info is available.
27644
27645 2009-10-02  Jim Meyering  <meyering@redhat.com>
27646
27647         gnu-web-doc-update: correct --help output
27648         * build-aux/gnu-web-doc-update: Make --help output relevant.
27649
27650         gnu-web-doc-update: add standard options
27651         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27652
27653         gnu-web-doc-update: New module.
27654         Use this script to automatically update the on-line web documentation
27655         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27656         * modules/gnu-web-doc-update: New file, from coreutils.
27657         * build-aux/gnu-web-doc-update: New script.
27658
27659 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27660
27661         link: LoadLibrary is not needed.
27662         * lib/link.c: Use GetModuleHandle.
27663
27664 2009-10-01  Eric Blake  <ebb9@byu.net>
27665
27666         getopt: bump serial number
27667         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27668         change.
27669
27670         tests: tighten link, rmdir, and remove tests
27671         * tests/test-link.h (includes): No need to use <config.h> here.
27672         Clean up if directory hard link was created, otherwise test for
27673         trailing '.'.
27674         * tests/test-linkat.c (main): Simplify.
27675         * tests/test-remove.c (main): Enhance test for trailing '.'.
27676         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27677
27678 2009-10-01  Jim Meyering  <meyering@redhat.com>
27679
27680         maint.mk: requiring "make major" was annoying, for a "minor" release.
27681         What is intended is "stable", to contrast with alpha and beta,
27682         so require "make stable", not "make major".
27683         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27684         (get_tool_versions): Likewise.
27685         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27686
27687 2009-09-30  Ben Pfaff  <blp@gnu.org>
27688
27689         Fix broken build of replacement for Windows tmpfile().
27690         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27691         flags argument added along with the 'mkostemp' module.
27692
27693 2009-09-28  Bruno Haible  <bruno@clisp.org>
27694
27695         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27696         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27697         to 'remove_elt'.
27698         (gl_list_remove): Update.
27699         * lib/gl_list.c (gl_list_remove): Update.
27700         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27701         to 'remove_elt'.
27702         (gl_oset_remove): Update.
27703         * lib/gl_list.c (gl_oset_remove): Update.
27704         Reported by Eric Blake.
27705
27706 2009-09-28  Eric Blake  <ebb9@byu.net>
27707
27708         doc: mention yet more cygwin 1.7 status
27709         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27710         cygwin.
27711         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27712         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27713
27714         argp: fix test failure
27715         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27716         that are not upper-case.  Pass correct range to tolower.
27717
27718 2009-09-27  Jim Meyering  <meyering@redhat.com>
27719
27720         test-yesno: work around sparc-dash here-document infelicity
27721         Without this change, the literal \177 byte in a here document
27722         would make dash 0.5.5.1-3 access uninitialized memory.
27723         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27724         Instead, use a marker, "@", and filter through tr to create the desired
27725         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27726
27727 2009-09-27  Bruno Haible  <bruno@clisp.org>
27728
27729         Disable untested support for new flavours of ACLs on AIX.
27730         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27731         progress.
27732         * lib/set-mode-acl.c (qset_acl): Likewise.
27733
27734 2008-12-07  Bruno Haible  <bruno@clisp.org>
27735
27736         Add support for new flavours of ACLs on AIX. (Untested.)
27737         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27738         (file_has_acl): Add support for newer AIX.
27739         * lib/set-mode-acl.c (qset_acl): Likewise.
27740         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27741         Rainer Tammer <tammer@tammer.net>.
27742
27743 2009-09-26  Eric Blake  <ebb9@byu.net>
27744
27745         argp: fix compilation of getopt
27746         * lib/getopt.in.h (includes): Use different guard than glibc.
27747         Reported by Sergey Poznyakoff.
27748
27749         doc: mention more cygwin 1.7 status
27750         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27751         bug.
27752         * doc/posix-functions/execl.texi (execl): Likewise.
27753         * doc/posix-functions/execle.texi (execle): Likewise.
27754         * doc/posix-functions/execlp.texi (execlp): Likewise.
27755         * doc/posix-functions/execv.texi (execv): Likewise.
27756         * doc/posix-functions/execve.texi (execve): Likewise.
27757         * doc/posix-functions/execvp.texi (execvp): Likewise.
27758         * doc/glibc-functions/canonicalize_file_name.texi
27759         (canonicalize_file_name): Cygwin 1.7 now provides this.
27760         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27761         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27762         on AT_SYMLINK_NOFOLLOW.
27763
27764 2009-09-24  Eric Blake  <ebb9@byu.net>
27765
27766         test-linkat: make test more robust
27767         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27768
27769         getopt: fix inclusion guards for cygwin
27770         * modules/getopt-posix (Depends-on): Add include-next.
27771         (Makefile.am): Substitute more items in replacement header.
27772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27773         <getopt.h>.
27774         * lib/getopt.in.h (includes): Use split inclusion guard, and
27775         prefer <getopt.h> over include <unistd.h> when one is present.
27776         (option): Also override name of 'struct option'.
27777
27778         same-inode: revert prior change; it is not yet ready
27779         * NEWS: Undo mention of this change.
27780         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27781         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27782         * lib/cycle-check.c (cycle_check): Likewise.
27783         * lib/same.c (same_name): Likewise.
27784         * lib/at-func2.c (at_func2): Likewise.
27785
27786 2009-09-23  Eric Blake  <ebb9@byu.net>
27787
27788         linkat: new module
27789         * modules/linkat: New file.
27790         * lib/at-func2.c (at_func2): Likewise.
27791         * lib/linkat.c (linkat): Likewise.
27792         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27793         * lib/openat-priv.h (at_func2): Add declaration.
27794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27795         * modules/unistd (Makefile.am): Substitute them.
27796         * lib/unistd.in.h (linkat): Declare it.
27797         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27798         * doc/posix-functions/linkat.texi (linkat): Likewise.
27799         * doc/posix-functions/link.texi (link): Tweak wording.
27800         * tests/test-link.c (main): Move guts...
27801         * tests/test-link.h (test_link): ...into new file.
27802         * modules/linkat-tests: New test.
27803         * tests/test-linkat.c: Likewise.
27804         * modules/link-tests (Files): Ship new file.
27805         (Depends-on): Add stdbool.
27806
27807         dirname: add library-safe mdir_name
27808         * lib/dirname.h (mdir_name): New prototype.
27809         * lib/dirname.c (dir_name): Move guts...
27810         (mdir_name): ...to new function that avoids xalloc_die.
27811
27812         fchdir: another mingw fix
27813         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27814         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27815         on mingw (where it has not yet been ported), and make it optional
27816         elsewhere.
27817         (_gl_register_fd): Use it.
27818
27819         same-inode: make SAME_INODE tri-state, to port to mingw
27820         * NEWS: Mention this change.
27821         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27822         st_ino always being 0.
27823         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27824         * lib/cycle-check.c (cycle_check): Likewise.
27825         * lib/same.c (same_name): Likewise.
27826
27827         lstat: avoid mingw compilation error
27828         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27829         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27830         lstat ourselves.
27831         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27832         was adequate.
27833         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27834         the checks for lstat.
27835         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27836
27837         link: fix test failure on Solaris 9
27838         * lib/link.c (rpl_link): Don't assume link will catch bogus
27839         trailing slash on source.
27840
27841         test-symlinkat: enhance test
27842         * tests/test-readlink.c (main): Move guts...
27843         * tests/test-readlink.h (test_readlink): ...into new file.
27844         * tests/test-symlink.c (main): Move guts...
27845         * tests/test-symlink.h (test_symlink): ...into new file.
27846         * tests/test-symlinkat.c (main): Use new files for further
27847         coverage.
27848         (do_symlink, do_readlink): New helper functions.
27849         * modules/symlink-tests (Files): Ship new file.
27850         (Depends-on): Add stdbool.
27851         * modules/readlink-tests (Files): Ship new file.
27852         (Depends-on): Add stdbool.
27853         * modules/symlinkat-tests (Files): Use new files.
27854
27855 2009-09-23  Eric Blake  <ebb9@byu.net>
27856
27857         readlink: document portability issue with symlink length
27858         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27859         systems have bogus st_size on symlinks, and mention the
27860         areadlink-with-size module.
27861         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27862         * doc/posix-functions/readlink.texi (readlink): Mention the
27863         areadlink module, and ERANGE failure.
27864         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27865         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27866
27867         readlink: fix Solaris 9 bug with trailing slash
27868         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27869         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27870         * doc/posix-functions/readlink.texi (readlink): Document this.
27871         * modules/readlink-tests: New test.
27872         * tests/test-readlink.c: Likewise.
27873
27874         readlink: fix cygwin 1.5.x bug with return type
27875         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27876         * lib/unistd.in.h (readlink): Use ssize_t.
27877         * lib/readlink.c (readlink): Likewise.
27878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27879         * modules/unistd (Makefile.am): Substitute it.
27880         * lib/unistd.in.h (readlink): Declare replacement.
27881         * doc/posix-functions/readlink.texi (readlink): Document this.
27882
27883         symlink: use throughout gnulib
27884         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27885         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27886         symlink is not used.
27887         * modules/symlinkat (Depends-on): Add symlink.
27888         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27889         * modules/canonicalize-tests (Depends-on): Likewise.
27890         * modules/lstat-tests (Depends-on): Likewise.
27891         * modules/openat-tests (Depends-on): Likewise.
27892         * modules/remove-tests (Depends-on): Likewise.
27893         * modules/rmdir-tests (Depends-on): Likewise.
27894         * modules/unlink-tests (Depends-on): Likewise.
27895         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27896         * tests/test-canonicalize.c (symlink): Likewise.
27897         * tests/test-fstatat.c (symlink): Likewise.
27898         * tests/test-lstat.c (symlink): Likewise.
27899         * tests/test-remove.c (symlink): Likewise.
27900         * tests/test-rmdir.c (symlink): Likewise.
27901         * tests/test-unlink.c (symlink): Likewise.
27902         * tests/test-unlinkat.c (symlink): Likewise.
27903
27904         symlink: new module, for Solaris 9 bug
27905         * modules/symlink: New file.
27906         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27907         * lib/symlink.c: Likewise.
27908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27909         * modules/unistd (Makefile.am): Substitute them.
27910         * lib/unistd.in.h (symlink): Declare replacement.
27911         * MODULES.html.sh (File system functions): Mention it.
27912         * doc/posix-functions/symlink.texi (symlink): Likewise.
27913         * modules/symlink-tests: New test.
27914         * tests/test-symlink.c: Likewise.
27915
27916 2009-09-23  Bruno Haible  <bruno@clisp.org>
27917
27918         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27919         when needed.
27920         Test case: gnulib-tool --import --with-tests atexit inttypes.
27921         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27922
27923 2009-09-23  Bruno Haible  <bruno@clisp.org>
27924
27925         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27926         subcommand, not in a subshell.
27927
27928 2009-09-22  Eric Blake  <ebb9@byu.net>
27929
27930         unistd: sort replacement declarations
27931         * lib/unistd.in.h: Sort declarations.
27932
27933         open, openat: minor optimization
27934         * lib/open.c (open): If open succeeded, len is non-zero.
27935         * lib/openat.c (rpl_openat): Likewise.
27936
27937         link-follow: ensure correct result
27938         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27939         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27940         distinguish between possible failures.
27941
27942 2009-09-21  Eric Blake  <ebb9@byu.net>
27943
27944         fts: avoid compiler warning
27945         * lib/fts.c (dirent_inode_sort_may_be_useful)
27946         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27947
27948 2009-09-19  Bruno Haible  <bruno@clisp.org>
27949
27950         * lib/progreloc.c (canonicalize_file_name): New declaration.
27951
27952 2009-09-19  Eric Blake  <ebb9@byu.net>
27953
27954         link: fix quoting
27955         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27956
27957         openat: fix openat bugs on Solaris 9
27958         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27959         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27960         * modules/openat (Depends-on): Add open.
27961         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27962         * modules/fcntl-h (Makefile.am): Substitute it.
27963         * lib/fcntl.in.h (openat): Declare replacement.
27964         * doc/posix-functions/openat.texi (openat): Document this.
27965
27966         openat: move fstatat and unlinkat into correct files
27967         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27968         compiled.
27969         * lib/openat.c (fstatat, unlinkat): Move...
27970         * lib/fstatat.c (fstatat): ...into correct files.
27971         * lib/unlinkat.c (unlinkat): Likewise.
27972
27973         openat: fix unlinkat bugs on Solaris 9
27974         * lib/unlinkat.c (unlinkat): New file.
27975         * modules/openat (Depends-on): Add unlink.
27976         (Files): Distribute it.
27977         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27978         trailing slash behavior is broken.
27979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27980         * modules/unistd (Makefile.am): Substitute it.
27981         * lib/unistd.in.h (unlinkat): Declare replacement.
27982         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27983
27984         openat: fix fstatat bugs on Solaris 9
27985         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27986         stat.
27987         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27988
27989         test-unlinkat: enhance test, to expose Solaris 9 bug
27990         * tests/test-unlink.c (main): Factor guts...
27991         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27992         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27993         * tests/test-rmdir.c (main): Adjust caller.
27994         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27995         (unlinker): New helper function.
27996         (rmdirat): Enhance check.
27997         * modules/rmdir-tests (Depends-on): Add stdbool.
27998         * modules/unlink-tests (Depends-on): Likewise.
27999         (Files): Add test-unlink.h.
28000         * modules/openat-tests (Files): Likewise.
28001         (Depends-on): Add unlinkdir.
28002
28003         test-fstatat: new test, to expose Solaris 9 bugs
28004         * tests/test-stat.c (main): Factor guts...
28005         * tests/test-stat.h (test_stat_func): ...into new file.
28006         * tests/test-lstat.c (main): Factor guts...
28007         * tests/test-lstat.h (test_lstat_func): ...into new file.
28008         * tests/test-fstatat.c: New file.
28009         * modules/stat-tests (Files): Add test-stat.h.
28010         * modules/lstat-tests (Files): Add test-lstat.h.
28011         (Depends-on): Add stdbool.
28012         * modules/openat-tests (Depends-on): Add pathmax.
28013         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
28014         (Makefile.am): Run new test.
28015
28016         remove: new module, for mingw and Solaris 9 bugs
28017         * modules/remove: New file.
28018         * lib/remove.c: Likewise.
28019         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
28020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28021         * modules/stdio (Makefile.am): Use them.
28022         * lib/stdio.in.h (remove): Declare replacement.
28023         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28024         * doc/posix-functions/remove.texi (remove): Likewise.
28025         * modules/remove-tests: New test.
28026         * tests/test-remove.c: Likewise.
28027
28028         unlink: new module, for Solaris 9 bug
28029         * modules/unlink: New file.
28030         * lib/unlink.c: Likewise.
28031         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28033         * modules/unistd (Makefile.am): Use them.
28034         * lib/unistd.in.h (stat): Declare replacement.
28035         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28036         * doc/posix-functions/unlink.texi (unlink): Likewise.
28037         * modules/unlink-tests: New test.
28038         * tests/test-unlink.c: Likewise.
28039
28040         lstat: fix Solaris 9 bug
28041         * lib/lstat.c (lstat): Also check for trailing slash on
28042         non-symlink, non-directories.  Use stat module to simplify logic.
28043         * doc/posix-functions/lstat.texi (lstat): Document it.
28044         * modules/lstat-tests (Depends-on): Add errno, same-inode.
28045         (configure.ac): Check for symlink.
28046         * tests/test-lstat.c (main): Add more tests.
28047
28048         stat: add as dependency to other modules
28049         * modules/chown (Depends-on): Add stat.
28050         * modules/euidaccess (Depends-on): Likewise.
28051         * modules/fchdir (Depends-on): Likewise.
28052         * modules/isdir (Depends-on): Likewise.
28053         * modules/link (Depends-on): Likewise.
28054         * modules/lstat (Depends-on): Likewise.
28055         * modules/mkdir-p (Depends-on): Likewise.
28056         * modules/modechange (Depends-on): Likewise.
28057         * modules/open (Depends-on): Likewise.
28058         * modules/readlink (Depends-on): Likewise.
28059         * modules/same (Depends-on): Likewise.
28060
28061         stat: fix Solaris 9 bug
28062         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
28063         slash.
28064         * lib/stat.c (rpl_stat): Work around it.
28065         * doc/posix-functions/stat.texi (stat): Update documentation.
28066
28067         stat: new module, for mingw bug
28068         * modules/stat: New file.
28069         * lib/stat.c: Likewise.
28070         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28071         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28072         * modules/sys_stat (Makefile.am): Use them.
28073         * lib/sys_stat.in.h (stat): Declare replacement.
28074         * lib/openat.c (fstatat): Deal with lstat and stat being function
28075         macros.
28076         * modules/openat (Depends-on): Add inline.
28077         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28078         * doc/posix-functions/stat.texi (stat): Likewise.
28079         * modules/stat-tests: New test.
28080         * tests/test-stat.c: Likewise.
28081
28082 2009-09-19  Jim Meyering  <meyering@redhat.com>
28083
28084         syntax-check: detect unnecessary inclusion of canonicalize.h
28085         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
28086
28087 2009-09-19  Eric Blake  <ebb9@byu.net>
28088
28089         canonicalize-lgpl: adjust clients to use correct header
28090         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28091         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
28092         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
28093         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
28094         * lib/progreloc.c (includes): Likewise.
28095
28096 2009-09-19  Jim Meyering  <meyering@redhat.com>
28097
28098         test-posixtm.c: correct a comment
28099         * tests/test-posixtm.c: Correct first-line comment.
28100         Spotted by Eric Blake.
28101
28102 2009-09-16  Jim Meyering  <meyering@redhat.com>
28103
28104         posixtm-tests: make T const-correct; add a test case
28105         * tests/test-posixtm.c (T): Declare const.
28106         Add a test for -(2^31+1).
28107         Remove useless can-succeed-only-in-2002 test.
28108
28109         posixtm-tests: adjust the sole failing test
28110         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
28111         expected output matches what mktime now produces.  Cross-checked via
28112         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
28113
28114         posixtm: move #ifdef'd tests into a new module
28115         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
28116         * tests/test-posixtm.c: ... this new file.
28117         * modules/posixtm-tests: New module.
28118
28119 2009-09-19  Eric Blake  <ebb9@byu.net>
28120
28121         openat: simplify use of at-func.c
28122         * lib/at-func.c (includes): Include prerequisites here, to
28123         simplify requirements on client files.
28124         * lib/openat-priv.h: Add double-inclusion guard.
28125         * lib/faccessat.c (includes): Simplify.
28126         * lib/fchmodat.c (includes): Likewise.
28127         * lib/fchownat.c (includes): Likewise.
28128         * lib/mkdirat.c (includes): Likewise.
28129         * lib/mkfifoat.c (includes): Likewise.
28130         * lib/symlinkat.c (includes): Likewise.
28131
28132         openat: allow return of fd 0
28133         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
28134         * modules/save-cwd (Depends-on): Replace fcntl-safer with
28135         unistd-safer.
28136         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
28137         <fcntl.h>; this module does not leak fds.
28138         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
28139         must be allowed to return 0, leaving openat_safer to add the
28140         safety.
28141         (openat_permissive): Avoid writing to just-opened fd 2 if
28142         restoring the current directory fails.
28143         * lib/openat-die.c (openat_restore_fail): Add comment.
28144         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
28145         (save_cwd): Guarantee safe fd, but without use of open_safer.
28146         * tests/test-openat.c: New test.
28147         * modules/openat-tests (Files, Makefile.am): Distribute and build
28148         new file.
28149
28150         relocatable-prog-wrapper: fix build
28151         * modules/relocatable-prog-wrapper (Files): Update name of
28152         canonicalize m4 file, broken on 2009-09-17.
28153         Reported by emad hajjar <aleppos@hotmail.com>.
28154
28155 2009-09-19  Bruno Haible  <bruno@clisp.org>
28156
28157         * lib/safe-alloc.h: Use the standard header with GPL copyright.
28158         * lib/safe-alloc.c: Likewise.
28159         Reported by Ian Beckwith <ianb@erislabs.net>.
28160
28161 2009-09-18  Bruno Haible  <bruno@clisp.org>
28162
28163         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
28164         Reported by <erobles@sensacd.com.mx>.
28165
28166 2009-09-17  Eric Blake  <ebb9@byu.net>
28167
28168         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
28169         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
28170         slashes when checking if last component is missing.
28171         * tests/test-canonicalize.c (main): Test this.
28172
28173         canonicalize, canonicalize-lgpl: honor // if distinct from /
28174         * modules/canonicalize (Files): Add double-slash-root.m4.
28175         * modules/canonicalize-lgpl (Files): Likewise.
28176         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28177         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
28178         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
28179         fallback definition.
28180         (canonicalize_filename_mode): Use it to protect //.
28181         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
28182         (__realpath): Likewise.
28183         * tests/test-canonicalize.c (main): Test this.
28184         * tests/test-canonicalize-lgpl.c (main): Likewise.
28185         * modules/canonicalize-tests (Depends-on): Add same-inode.
28186         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28187
28188         canonicalize-lgpl: fix glibc bug with trailing slash
28189         * m4/canonicalize-lgpl.m4: Move contents...
28190         * m4/canonicalize.m4: ...here.
28191         (gl_CANONICALIZE_LGPL): Factor realpath check...
28192         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28193         glibc 2.3.5 bug, fixed 2005-04-27.
28194         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
28195         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
28196         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
28197         * modules/canonicalize-lgpl (Files): Manage file rename.
28198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28199         * modules/stdlib (Makefile.am): Substitute witness.
28200         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
28201         is needed.
28202         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
28203         replacement is required.
28204         * lib/canonicalize.c (canonicalize_file_name): Likewise.
28205         * doc/glibc-functions/canonicalize_file_name.texi
28206         (canonicalize_file_name): Document this.
28207         * doc/posix-functions/realpath.texi (realpath): Likewise.
28208
28209         canonicalize-lgpl: reject non-directory with trailing slash
28210         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
28211         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
28212         catches failures in glibc 2.3.5.
28213         * tests/test-canonicalize.c (main): Likewise.
28214
28215         canonicalize-lgpl: use native realpath if it works
28216         * lib/canonicalize-lgpl.c (realpath): Guard with
28217         FUNC_REALPATH_WORKS.
28218         * lib/stdlib.in.h (realpath): Make declaration optional based on
28219         HAVE_REALPATH.
28220         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
28221         native realpath works.
28222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28223         * modules/stdlib (Makefile.am): Substitute witness.
28224
28225         canonicalize, canonicalize-lgpl: use <stdlib.h>
28226         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
28227         (Include): Mention <stdlib.h>.
28228         (configure.ac): Mention functions we provide.
28229         * modules/canonicalize (configure.ac): Likewise.
28230         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
28231         realpath if canonicalize_file_name is missing.
28232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
28233         * modules/stdlib (Makefile.am): Substitute witnesses.
28234         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
28235         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
28236         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
28237         * NEWS: Document this.
28238         * doc/glibc-functions/canonicalize_file_name.texi
28239         (canonicalize_file_name): Likewise.
28240         * doc/posix-functions/realpath.texi (realpath): Likewise.
28241         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
28242
28243         test-canonicalize: consolidate into single C program
28244         * tests/test-canonicalize.sh: Delete; move setup into...
28245         * tests/test-canonicalize.c (main): ...the program, making it
28246         easier to run in debugger.  Add some tests.
28247         * modules/canonicalize-tests (Files): Remove unused file.
28248         (Depends-on): Add progname.
28249         (configure.ac, Makefile.am): Simplify.
28250
28251         test-canonicalize-lgpl: consolidate into single C program
28252         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
28253         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
28254         easier to run in debugger.  Add some tests.
28255         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
28256         (configure.ac, Makefile.am): Simplify.
28257
28258         canonicalize: avoid resolvepath
28259         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
28260         unnecessary checks.
28261         * lib/canonicalize.c (includes): Simplify.
28262         (canonicalize_file_name): Drop resolvepath implementation.
28263         * modules/canonicalize (Depends-on): Drop filenamecat.
28264
28265         canonicalize: don't lose errno
28266         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
28267         over calls to free.
28268
28269         canonicalize: simplify errno handling
28270         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
28271         assignment.
28272
28273         canonicalize, canonicalize-lgpl: update module dependencies
28274         * modules/canonicalize (Depends-on): Add extensions, lstat,
28275         pathmax, stdlib.
28276         (Files): Drop pathmax.h.
28277         (configure.ac): Adjust macro name.
28278         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
28279         lstat, stdlib, sys_stat.
28280         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
28281         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
28282         extensions.
28283         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
28284         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
28285         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
28286         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
28287         declaration, if available.
28288         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
28289         we can rely on the readlink module.
28290         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
28291         (includes): Use <unistd.h> unconditionally.
28292
28293 2009-09-17  Eric Blake  <ebb9@byu.net>
28294
28295         maint: make Include sections of modules consistent
28296         * modules/alloca: Use only header name; no need to list #include.
28297         * modules/alloca-opt: Likewise.
28298         * modules/arpa_inet: Likewise.
28299         * modules/canon-host: Likewise.
28300         * modules/configmake: Likewise.
28301         * modules/dirent: Likewise.
28302         * modules/eealloc: Likewise.
28303         * modules/environ: Likewise.
28304         * modules/fchdir: Likewise.
28305         * modules/fcntl: Likewise.
28306         * modules/fcntl-h: Likewise.
28307         * modules/gethrxtime: Likewise.
28308         * modules/gettime: Likewise.
28309         * modules/ignore-value: Likewise.
28310         * modules/inet_ntop: Likewise.
28311         * modules/inet_pton: Likewise.
28312         * modules/inttypes: Likewise.
28313         * modules/isnand-nolibm: Likewise.
28314         * modules/isnanf-nolibm: Likewise.
28315         * modules/mbchar: Likewise.
28316         * modules/mbfile: Likewise.
28317         * modules/mbiter: Likewise.
28318         * modules/mbuiter: Likewise.
28319         * modules/netdb: Likewise.
28320         * modules/netinet_in: Likewise.
28321         * modules/nproc: Likewise.
28322         * modules/pagealign_alloc: Likewise.
28323         * modules/poll: Likewise.
28324         * modules/printf-frexp: Likewise.
28325         * modules/pthread: Likewise.
28326         * modules/putenv: Likewise.
28327         * modules/random_r: Likewise.
28328         * modules/relocatable-prog: Likewise.
28329         * modules/search: Likewise.
28330         * modules/select: Likewise.
28331         * modules/selinux-h: Likewise.
28332         * modules/settime: Likewise.
28333         * modules/signal: Likewise.
28334         * modules/size_max: Likewise.
28335         * modules/socklen: Likewise.
28336         * modules/ssize_t: Likewise.
28337         * modules/stdarg: Likewise.
28338         * modules/stdbool: Likewise.
28339         * modules/stddef: Likewise.
28340         * modules/stdint: Likewise.
28341         * modules/stdio: Likewise.
28342         * modules/stdlib: Likewise.
28343         * modules/string: Likewise.
28344         * modules/strings: Likewise.
28345         * modules/sys_file: Likewise.
28346         * modules/sys_ioctl: Likewise.
28347         * modules/sys_select: Likewise.
28348         * modules/sys_socket: Likewise.
28349         * modules/sys_stat: Likewise.
28350         * modules/sys_time: Likewise.
28351         * modules/sys_times: Likewise.
28352         * modules/sys_utsname: Likewise.
28353         * modules/sys_wait: Likewise.
28354         * modules/sysexits: Likewise.
28355         * modules/time: Likewise.
28356         * modules/times: Likewise.
28357         * modules/tmpfile: Likewise.
28358         * modules/trim: Likewise.
28359         * modules/unistd: Likewise.
28360         * modules/wchar: Likewise.
28361         * modules/wctype: Likewise.
28362
28363 2009-09-17  Bruno Haible  <bruno@clisp.org>
28364
28365         Make getdate.y compile on QNX and NetBSD 5 / i386.
28366         * m4/getdate.m4 (gl_GETDATE): Conditionally define
28367         TIME_T_FITS_IN_LONG_INT.
28368         * lib/getdate.y (long_time_t): New type.
28369         (relative_time): Change type of 'seconds' field to long_time_t.
28370         (get_date): Update types of local variables. Check against overflow
28371         during conversion from long_time_t to time_t.
28372         Reported by Matt Kraai <kraai@ftbfs.org>
28373         and Hasso Tepper <hasso@netbsd.org>.
28374
28375 2009-09-17  Bruno Haible  <bruno@clisp.org>
28376
28377         * modules/COPYING: Update copyright years.
28378         * modules/README: Likeiwse.
28379         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
28380         Reported by Ian Beckwith <ianb@erislabs.net>.
28381
28382 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28383
28384         * users.txt: Update references for gnuit package.
28385
28386 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28387
28388         * m4/getdelim.m4: Fix typo in copyright line.
28389
28390 2009-09-17  Bruno Haible  <bruno@clisp.org>
28391
28392         * lib/atoll.c: Use the standard header with GPL copyright.
28393         * lib/argz.in.h: Likewise.
28394         * lib/glob.c: Likewise.
28395         * lib/glob-libc.h: Likewise.
28396         * lib/random_r.c: Likewise.
28397         * lib/siglist.h: Likewise.
28398         * lib/strsignal.c: Likewise.
28399         Reported by Ian Beckwith <ianb@erislabs.net>.
28400
28401 2009-09-17  Eric Blake  <ebb9@byu.net>
28402
28403         rmdir: ensure correct dependency order
28404         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28405
28406 2009-09-17  Bruno Haible  <bruno@clisp.org>
28407
28408         Disable assertion that fails on NetBSD 5 / i386.
28409         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28410         Reported by Sam Steingold <sds@gnu.org>
28411         and Hasso Tepper <hasso@netbsd.org>.
28412
28413 2009-09-16  Eric Blake  <ebb9@byu.net>
28414
28415         unlinkdir: port to mingw
28416         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28417         on which no one can unlink a directory.
28418
28419         stdlib: sort witness names
28420         * modules/stdlib (Makefile.am): Sort replacements.
28421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28422         * lib/stdlib.in.h: Likewise.
28423
28424         parse-duration-tests: avoid link failure
28425         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28426         LIBINTL.
28427         Reported by Tom G. Christensen.
28428
28429         openat-tests: ensure unlinkat behaves like rmdir
28430         * tests/test-rmdir.c (main): Factor guts...
28431         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28432         * modules/rmdir-tests (Files): Ship new file.
28433         * modules/openat-tests: New test.
28434         * tests/test-unlinkat.c: Likewise.
28435
28436         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28437         * modules/rmdir-errno (Status, Notice): Now obsolete.
28438
28439         rmdir: work around cygwin 1.5.x and mingw bugs
28440         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28441         * lib/rmdir.c (rmdir): Work around it.
28442         * modules/rmdir (Status, Notice): No longer obsolete.
28443         (Files): Add dos.m4.
28444         (Depends-on): Add unistd.
28445         (configure.ac): Set witnesses.
28446         (License): Relax to LGPLv2+.
28447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28448         * modules/unistd (Makefile.am): Substitute witnesses.
28449         * lib/unistd.in.h (rmdir): Declare replacement.
28450         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28451         * modules/rmdir-tests: New tests.
28452         * tests/test-rmdir.c: Likewise.
28453
28454 2009-09-15  Eric Blake  <ebb9@byu.net>
28455
28456         fchdir: improve use of replacement functions
28457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28458         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28459         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28460         REPLACE_CLOSEDIR.
28461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28462         * modules/sys_stat (Makefile.am): Substitute correct witness.
28463         * modules/dirent (Makefile.am): Likewise.
28464         * modules/unistd (Makefile.am): Likewise.
28465         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28466         * lib/unistd.in.h (dup): Likewise.
28467         * lib/sys_stat.in.h (fstat): Likewise.
28468
28469         maint: ignore gnulib-tool temp files
28470         * .gitignore: Ignore files created during gnulib-tool --test.
28471
28472 2009-09-13  Jim Meyering  <meyering@redhat.com>
28473
28474         posixtm: don't reject a time that specify "60" as the number of seconds
28475         * lib/posixtm.c (posixtime): The code to reject invalid dates
28476         would also reject a time specified with the .60 suffix.
28477         But POSIX allows that, in order to accommodate leap seconds.
28478         So don't reject it.
28479         (main): Adjust tests accordingly.
28480         * modules/posixtm (Depends-on): Add stpcpy.
28481
28482 2009-09-11  Jim Meyering  <meyering@redhat.com>
28483
28484         announce-gen: include [$release_type] in emitted Subject:
28485         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28486         e.g., [stable] in the emitted Subject: line.
28487
28488 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28489
28490         Remove obsolete macros from several modules.
28491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28492         obsolete Autoconf macros with their modern counterparts.
28493         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28494         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28496         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28497         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28498         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28500         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28501         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28502         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28503         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28504         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28505         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28506         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28507         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28508         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28509         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28510         * m4/time_r.m4 (gl_TIME_R): Likewise.
28511         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28512         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28513         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28514
28515         Fix copyright header in build-aux scripts.
28516         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28517         recommendation.
28518         * build-aux/ncftpput-ftp: Likewise.
28519         * build-aux/update-copyright: Likewise.
28520
28521 2009-09-09  Eric Blake  <ebb9@byu.net>
28522
28523         test-link: allow Linux choice of errno
28524         * tests/test-link.c (main): Relax test for alternate error.
28525
28526         strndup: fix improper m4 caching
28527         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28528         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28529         (gl_PREREQ_STRNDUP): Delete.
28530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28531         * modules/string (Makefile.am): Substitute it.
28532         * lib/string.in.h (strndup): Modernize prototype.
28533
28534         getcwd: port to mingw
28535         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28536         different from the POSIX assumptions made throughout the getcwd
28537         module; fortunately, the mingw getcwd does not need replacement.
28538         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28539         * modules/getcwd-tests: New test.
28540         * tests/test-getcwd.c: Likewise.
28541
28542         link: fix platform bugs
28543         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28544         * lib/link.c (link): Work around them.  Fix related mingw bug.
28545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28546         * modules/unistd (Makefile.am): Substitute it.
28547         * lib/unistd.in.h (link): Declare replacement.
28548         * doc/posix-functions/link.texi (link): Document this.
28549         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28550
28551         test-link: consolidate into single C program, test more cases
28552         * tests/test-link.sh: Delete.
28553         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28554         at least Cygwin and Solaris.
28555         * modules/link-tests (Files): Remove unused file.
28556         (Depends-on): Add errno, sys_stat.
28557         (Makefile.am): Simplify.
28558
28559 2009-09-08  Bruno Haible  <bruno@clisp.org>
28560
28561         Work around towlower, towupper bug on mingw.
28562         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28563         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28564         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28565         * doc/posix-functions/towupper.texi: Likewise.
28566         Reported by Eric Blake.
28567
28568 2009-09-08  Jim Meyering  <meyering@redhat.com>
28569
28570         build: don't try to run autoheader if we don't use it
28571         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28572         is not used in configure.ac.
28573
28574 2009-09-08  Eric Blake  <ebb9@byu.net>
28575
28576         euidaccess: fix compilation error
28577         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28578
28579         rawmemchr: relax license
28580         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28581         okay.
28582         Reported by Jim Meyering.
28583
28584         mkfifoat: new module
28585         * modules/mkfifoat: New file.
28586         * lib/mkfifoat.c: Likewise.
28587         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28588         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28589         * modules/sys_stat (Makefile.am): Use them.
28590         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28591         * MODULES.html.sh (File system functions): Mention module.
28592         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28593         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28594         * modules/mkfifoat-tests: New test.
28595         * tests/test-mkfifoat.c: Likewise.
28596
28597         strchrnul: relax license
28598         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28599         okay.
28600         Reported by Jim Meyering.
28601
28602 2009-09-08  Eric Blake  <ebb9@byu.net>
28603
28604         fstatat: fix compilation on Solaris
28605         * lib/fstatat.c (includes): Add fcntl.h.
28606         Reported by Pádraig Brady.
28607
28608 2009-09-07  Eric Blake  <ebb9@byu.net>
28609
28610         rename: modernize replacement
28611         * modules/rename (Depends-on): Add stdio.
28612         (configure.ac): Declare witness.
28613         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28614         stdio take care of replacement.
28615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28616         * modules/stdio (Makefile.am): Substitute them.
28617         * lib/stdio.in.h (rename): Declare replacement.
28618         * lib/rename.c (includes): Allow cross-compilation to non-windows
28619         machines.
28620         * doc/posix-functions/rename.texi (rename): Improve
28621         documentation.
28622
28623         stdio: sort witness names
28624         * modules/stdio (Makefile.am): Sort replacements.
28625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28626         * lib/stdio.in.h: Likewise.
28627
28628         getcwd: minor cleanups
28629         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28630         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28631
28632         openat: provide more convenience names
28633         * modules/faccessat (configure.ac): Add C witness.
28634         * lib/unistd.in.h (readlinkat): Fix typo.
28635         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28636         convenience wrappers.
28637         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28638         wrappers in syntax checks.
28639
28640 2009-09-06  Eric Blake  <ebb9@byu.net>
28641
28642         doc: fix comments in recent patches
28643         * lib/faccessat.c: Mention correct function.
28644         * lib/fchmodat.c: Likewise.
28645         * lib/fchownat.c: Likewise.
28646         * lib/symlinkat.c: Likewise.
28647         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28648         constants.
28649
28650         faccessat, symlinkat: continue cleanup of previous patch
28651         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28652         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28653         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28655         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28656         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28657         set.
28658
28659 2009-09-06  Bruno Haible  <bruno@clisp.org>
28660
28661         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28662         (fstatat): Declare if GNULIB_FSTATAT is set.
28663         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28664         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28665         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28666         * modules/fcntl-h (Files): Remove m4/openat.m4.
28667         * modules/sys_stat (Files): Remove m4/openat.m4.
28668         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28669         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28670         * modules/unistd (Files): Remove m4/openat.m4.
28671         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28672         GNULIB_OPENAT.
28673         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28674         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28675         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28676         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28677         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28678         gl_OPENAT_DEFAULTS.
28679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28680         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28681         Don't require gl_OPENAT_DEFAULTS.
28682         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28683         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28684         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28685         (gl_OPENAT_DEFAULTS): Remove macro.
28686
28687 2009-09-06  Bruno Haible  <bruno@clisp.org>
28688
28689         * modules/openat (configure.ac): Remove unneeded witness.
28690
28691 2009-09-06  Bruno Haible  <bruno@clisp.org>
28692
28693         Set errno to ENOSYS when a function is entirely unsupported.
28694         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28695         EOPNOTSUPP.
28696         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28697         * modules/chown (Depends-on): Remove errno.
28698
28699 2009-09-06  Bruno Haible  <bruno@clisp.org>
28700
28701         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28702
28703 2009-09-06  Bruno Haible  <bruno@clisp.org>
28704
28705         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28706
28707 2009-09-06  Ben Pfaff  <blp@gnu.org>
28708             Bruno Haible  <bruno@clisp.org>
28709
28710         Work around a glibc bug in strtok_r.
28711         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28712         Undefine if UNDEFINE_STRTOK_R is set.
28713         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28715         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28716         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28717         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28718         UNDEFINE_STRTOK_R.
28719         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28720
28721 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28722
28723         exclude: minor fix
28724         * lib/exclude.c: Include wctype.h
28725
28726 2009-09-06  Akim Demaille  <demaille@gostai.com>
28727
28728         bootstrap: improve error message
28729         * build-aux/bootstrap (find_tool): Upon failure, report the list
28730         of candidates.
28731         Honor the initial value of the envvar.
28732
28733 2009-09-05  Eric Blake  <ebb9@byu.net>
28734
28735         symlinkat: new module
28736         * modules/symlinkat: New file.
28737         * lib/symlinkat.c: Likewise.
28738         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28740         * modules/unistd (Makefile.am): Use them.
28741         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28742         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28743         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28744         * MODULES.html.sh (File system functions): Mention module.
28745         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28746         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28747         * modules/symlinkat-tests: New test.
28748         * tests/test-symlinkat.c: Likewise.
28749
28750         test-openat-safer: add more checks
28751         * tests/test-openat-safer.c (main): Check more code paths.
28752
28753 2009-09-05  Jim Meyering  <meyering@redhat.com>
28754
28755         syntax-check: detect unnecessary inclusion of openat.h
28756         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28757
28758 2009-09-05  Bruno Haible  <bruno@clisp.org>
28759
28760         Support towlower, towupper.
28761         * doc/posix-functions/towlower.texi: Mention module wctype.
28762         * doc/posix-functions/towupper.texi: Likewise.
28763         * lib/wctype.in.h (towlower, towupper): New functions.
28764         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28765         (ASSERT): New macro.
28766         (e): New variable.
28767         (main): Test also towlower, towupper. Test WEOF argument.
28768         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28769
28770 2009-09-05  Bruno Haible  <bruno@clisp.org>
28771
28772         Fix conversion behaviour when the input is invalid.
28773         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28774         mark occurring in first pass of indirect conversion.
28775         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28776         input.
28777         Found by clang's static analyzer.
28778
28779 2009-09-05  Bruno Haible  <bruno@clisp.org>
28780
28781         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28782         where direct conversion is possible.
28783
28784 2009-09-04  Eric Blake  <ebb9@byu.net>
28785
28786         openat: fail with ENOENT on empty name
28787         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28788         buffer.
28789
28790         link-follow: fix logic bug in prior patch
28791         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28792         reversed sense of yes and no in prior patch.  Avoid confusing
28793         compilation failure with desired semantics.
28794
28795         link-follow: accomodate mingw and cross-compilation
28796         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28797         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28798         cross-compilation results to -1, to make linkat easier to
28799         implement when cross-compiling.  Trivially support mingw.
28800         * modules/link-follow (configure.ac): Call new name.
28801         * NEWS: Mention this.
28802
28803 2009-09-03  Eric Blake  <ebb9@byu.net>
28804
28805         faccessat: compile replacement
28806         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28807         needed.
28808
28809         fts: fix compilation error
28810         * lib/fts.c (includes): Re-add "openat.h", for
28811         openat_needs_fchdir.
28812
28813         faccessat: new module
28814         * modules/faccessat: New file.
28815         * lib/faccessat.c: Likewise.
28816         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28818         * modules/unistd (Makefile.am): Use it.
28819         * lib/unistd.in.h (faccessat): Declare it.
28820         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28821         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28822         * MODULES.html.sh (File system functions): Mention it.
28823         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28824         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28825
28826         euidaccess: prefer POSIX over non-standard implementation
28827         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28828         * lib/euidaccess.c (euidaccess): Use it if available.
28829
28830         openat: make template easier to use
28831         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28832         AT_FUNC_F2 to be undefined.
28833         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28834         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28835         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28836         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28837         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28838         Likewise.
28839         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28840         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28841         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28842         Likewise.
28843
28844         openat: declare in POSIX headers
28845         * NEWS: Mention this.
28846         * modules/openat (configure.ac): Declare witnesses.
28847         (Depends-on): Add fcntl-h, sys_stat, unistd.
28848         (Include): Mention correct headers.
28849         * modules/fcntl-h (Depends-on): Add link-warning.
28850         (Files): Add openat.m4.
28851         (Makefile.am): Substitute witnesses.
28852         * modules/sys_stat (Files, Makefile.am): Likewise.
28853         * modules/unistd (Files, Makefile.am): Likewise.
28854         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28855         (gl_OPENAT_DEFAULTS): New macro.
28856         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28858         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28859         (SYS_STAT_H): Remove unused variable.
28860         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28861         * lib/fcntl--.h (includes): Remove unneeded header.
28862         * lib/openat-safer.c (includes): Likewise.
28863         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28864         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28865         appropriate headers.
28866         (__OPENAT_PREFIX): Delete.
28867         * lib/fcntl.in.h (openat): Provide declaration.
28868         (AT_FDCWD): Fix Solaris bug.
28869         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28870         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28871         * lib/fchmodat.c (includes):  Adjust to find declaration.
28872         * lib/fchownat.c (includes): Likewise.
28873         * lib/mkdirat.c (includes): Likewise.
28874         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28875         still visible.
28876
28877 2009-09-02  Eric Blake  <ebb9@byu.net>
28878
28879         errno: use consistently
28880         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28881         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28882         * lib/canonicalize.c (ELOOP): Likewise.
28883         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28884         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28885         * lib/lchown.c (EOPNOTSUPP): Likewise.
28886         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28887         * lib/savewd.c (ESTALE): Likewise.
28888         * lib/settime.c (ENOSYS): Likewise.
28889         * lib/utimens.c (ENOSYS): Likewise.
28890         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28891         * lib/chdir-safer.c (ELOOP): Likewise.
28892         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28893         * modules/c-stack (Depends-on): Add errno.
28894         * modules/canonicalize (Depends-on): Likewise.
28895         * modules/chdir-safer (Depends-on): Likewise.
28896         * modules/fdopendir (Depends-on): Likewise.
28897         * modules/inet_ntop (Depends-on): Likewise.
28898         * modules/inet_pton (Depends-on): Likewise.
28899         * modules/lchown (Depends-on): Likewise.
28900         * modules/openat (Depends-on): Likewise.
28901         * modules/savewd (Depends-on): Likewise.
28902         * modules/settime (Depends-on): Likewise.
28903         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28904
28905         fts: avoid leaking fds
28906         * modules/fts (Depends-on): Add cloexec.
28907         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28908         flag.
28909
28910         fts: make directory fds more robust
28911         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28912         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28913
28914         backupfile, chdir-long, fts, savedir: make safer
28915         * lib/backupfile.c (includes): Use "dirent--.h", since
28916         numbered_backup can write to stderr during readdir.
28917         * lib/savedir.c (includes): Likewise.
28918         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28919         emulation can write to stderr on failure.
28920         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28921         * lib/getcwd.c: Document why opendir_safer is unused.
28922         * lib/glob.c: Likewise.
28923         * lib/scandir.c: Likewise.
28924         * lib/openat-proc.c: Likewise, for open_safer.
28925         * modules/backupfile (Depends-on): Add dirent-safer.
28926         * modules/savedir (Depends-on): Likewise.
28927         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28928         * modules/chdir-long (Depends-on): Add openat-safer.
28929
28930         openat-safer: new module
28931         * modules/openat-safer: New file.
28932         * lib/openat-safer.c: Likewise.
28933         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28934         * lib/fcntl-safer.h (openat_safer): Declare.
28935         * lib/fcntl--.h (openat): Override.
28936         * MODULES.html.sh (File descriptor based I/O): Mention it.
28937         * lib/openat.h: Add double-inclusion guards.
28938         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28939         "fcntl--.h", so we can implement openat.
28940         * modules/openat-safer-tests: New test.
28941         * tests/test-openat-safer.c: New file.
28942
28943         dirent-safer: new module
28944         * modules/dirent-safer: New file.
28945         * lib/dirent--.h: Likewise.
28946         * lib/dirent-safer.h: Likewise.
28947         * lib/opendir-safer.c: Likewise.
28948         * m4/dirent-safer.m4: Likewise.
28949         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28950         * modules/dirent-safer-tests: New test.
28951         * tests/test-dirent-safer.c: New file.
28952         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28953
28954         fdopendir: optimize on mingw
28955         * lib/unistd.in.h (_gl_directory_name): New prototype.
28956         * lib/fchdir.c (_gl_directory_name): Implement it.
28957         (fchdir): Use it to simplify implementation.
28958         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28959         fchdir, when available, to avoid calling [f]chdir().
28960
28961         fdopendir: split into its own module
28962         * lib/openat.c (fdopendir): Move...
28963         * lib/fdopendir.c: ...into new file.
28964         * modules/fdopendir: New module.
28965         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28966         * modules/openat (Depends-on): Add fdopendir.
28967         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28968         fdopendir here.
28969         * modules/savedir (Depends-on): Only need fdopendir, not full
28970         openat.
28971         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28972         * lib/openat.h (fdopendir): Drop prototype.
28973         * lib/dirent.in.h (fdopendir): Provide prototype.
28974         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28975         * modules/dirent (Makefile.am): Substitute them.
28976         * MODULES.html.sh (File system functions): Mention it.
28977         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28978         * modules/fdopendir-tests: New file.
28979         * tests/test-fdopendir.c: Likewise.
28980
28981         fchdir: use more consistent macro convention
28982         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28983         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28984         REPLACE_FCHDIR, rather than relying on config.h macros.
28985         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28986         inside a single make-time REPLACE_FCHDIR block, rather than using
28987         the config.h FCHDIR_REPLACEMENT.
28988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28989         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28990         Manage fstat replacement.
28991         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28992         REPLACE_FCHDIR.
28993         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28994         (Makefile.am): Substitute REPLACE_FCHDIR.
28995         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28996         FCHDIR_REPLACEMENT.
28997         * lib/dup-safer.c (dup_safer): Likewise.
28998         * lib/dup2.c (rpl_dup2): Likewise.
28999         * lib/dup3.c (rpl_dup3): Likewise.
29000         * lib/open.c (rpl_open): Likewise.
29001
29002         fchdir: simplify error handling, and support dup3
29003         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
29004         stdbool, malloc-posix, realloc-posix.
29005         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
29006         (ensure_dirs_slot): Return false on allocation failure.
29007         (rpl_dup2): Delete.
29008         (_gl_register_dup): New function.
29009         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
29010         (_gl_register_fd): Close fd on allocation failure.
29011         * lib/fcntl.in.h (_gl_register_fd): Update signature.
29012         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
29013         prototype.
29014         (rpl_dup2_fchdir): Delete prototype.
29015         * lib/open.c (open): Update caller.
29016         * lib/dup2.c (dup2): Track fchdir metadata.
29017         * lib/dup3.c (dup3): Likewise.
29018         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
29019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
29020
29021 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29022
29023         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
29024         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
29025         don't pass arguments to AC_OUTPUT.
29026
29027 2009-09-02  Bruno Haible  <bruno@clisp.org>
29028
29029         * modules/mkdtemp (License): Relicense under LGPLv2+.
29030         Reported by Paolo Bonzini.
29031
29032 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29033
29034         Replace uses of obsolete autoconf macros in Jim's modules.
29035         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
29036         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
29037         can evoke a warning from autoconf when run with -Wobsolete
29038         enabled.  They were declared obsolete for good reasons (see
29039         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
29040         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
29041         should not continue using the deprecated macros.
29042         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
29043         obsolete Autoconf macros with modern counterparts.
29044         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29045         * m4/dos.m4 (gl_AC_DOS): Likewise.
29046         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
29047         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29048         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
29049         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
29050         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
29051         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
29052         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
29053         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
29054         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
29055         Likewise.
29056         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29057         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
29058         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
29059         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
29060         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29061         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
29062
29063 2009-09-01  Eric Blake  <ebb9@byu.net>
29064
29065         fchdir: fix off-by-one bug in previous patch
29066         * lib/fchdir.c (rpl_fstat): Use correct bounds.
29067         (_gl_unregister_fd): Delete useless if.
29068
29069 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
29070
29071         maint.mk: sort the list of syntax-check rules
29072         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
29073         easier to get a sense of progress when the rules are run sequentially
29074         and take a long time.
29075
29076 2009-09-01  Simon Josefsson  <simon@josefsson.org>
29077
29078         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
29079         * modules/netinet_in: Likewise.
29080         * modules/sys_file: Likewise.
29081         * modules/sys_ioctl: Likewise.
29082         * modules/sys_select: Likewise.
29083         * modules/sys_socket: Likewise.
29084         * modules/sys_stat: Likewise.
29085         * modules/sys_time: Likewise.
29086         * modules/sys_times: Likewise.
29087         * modules/sys_utsname: Likewise.
29088         * modules/sys_wait: Likewise.
29089
29090 2009-09-01  Jim Meyering  <meyering@redhat.com>
29091
29092         fts: help ensure that return values are not ignored
29093         * lib/fts_.h (__GNUC_PREREQ): Define.
29094         (__attribute_warn_unused_result__): Define.
29095         (fts_children, fts_close, fts_open, fts_read): Declare with
29096         __attribute_warn_unused_result__.
29097
29098         fts: fts_close now fails also when closing a dir file descriptor fails
29099         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
29100         and propagate to caller, along with errno.
29101
29102         announce-gen: correct formatting in --help output
29103         * build-aux/announce-gen (usage): Move the one-line description in
29104         --help output "up", to where it belongs, just after Usage:.
29105
29106 2009-08-31  Eric Blake  <ebb9@byu.net>
29107
29108         fchdir: port to mingw
29109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
29110         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
29111         opened, then use a substitute.
29112         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
29113         replacement.
29114         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
29115         (_gl_register_fd): No need to check stat if open already filters
29116         all directories.
29117         (fchdir): Fix error condition to match POSIX.
29118         * modules/fchdir (Depends-on): Add sys_stat.
29119         * doc/posix-functions/open.texi (open): Document the limitation.
29120         * modules/fchdir-tests: New file.
29121         * tests/test-fchdir.c: Likewise.
29122
29123         canonicalize: allow cross-testing from cygwin to mingw
29124         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
29125         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
29126         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
29127         Likewise.
29128         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
29129         target does not support symlinks.
29130         * tests/test-canonicalize-lgpl.sh: Likewise.
29131
29132         chown: avoid compilation warning on mingw
29133         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
29134         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
29135         mingw.
29136         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29137         * modules/chown (Depends-on): Add errno.
29138
29139 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29140
29141         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
29142         command.
29143
29144 2009-08-31  Jim Meyering  <meyering@redhat.com>
29145
29146         canonicalize: remove useless initialization
29147         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
29148         initialization of local, "end".
29149
29150 2009-08-30  Bruno Haible  <bruno@clisp.org>
29151
29152         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
29153         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
29154         ENOSYS.
29155
29156 2009-08-30  Bruno Haible  <bruno@clisp.org>
29157
29158         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
29159         /usr/xpg4/bin/tr when it exists.
29160         * tests/test-pipe-filter-gi1.sh: Likewise.
29161
29162 2009-08-30  Bruno Haible  <bruno@clisp.org>
29163
29164         Work around deficient /usr/bin/id program on Solaris.
29165         * tests/test-file-has-acl.sh (ID): New variable.
29166         * tests/test-set-mode-acl.sh (ID): Likewise.
29167         * tests/test-copy-acl.sh (ID): Likewise.
29168         * tests/test-copy-file.sh (ID): Likewise.
29169
29170 2009-08-30  Bruno Haible  <bruno@clisp.org>
29171
29172         New module 'xstriconveh'.
29173         * lib/xstriconveh.h: New file.
29174         * lib/xstriconveh.c: New file.
29175         * modules/xstriconveh: New file.
29176
29177 2009-08-30  Bruno Haible  <bruno@clisp.org>
29178
29179         Make it easier to use mem_cd_iconveh.
29180         * lib/striconveh.h (iconveh_t): New type.
29181         (iconveh_open, iconveh_close): New declarations.
29182         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29183         with a single 'const iconveh_t *' argument.
29184         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
29185         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29186         with a single 'const iconveh_t *' argument.
29187         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
29188         * tests/test-striconveh.c (main): Update.
29189         * NEWS: Mention the change.
29190
29191 2009-08-30  Bruno Haible  <bruno@clisp.org>
29192
29193         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
29194         problem.
29195
29196 2009-08-30  Bruno Haible  <bruno@clisp.org>
29197
29198         Work around iconv_open problem on Solaris.
29199         * lib/iconv_open-solaris.gperf: New file.
29200         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
29201         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
29202         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
29203         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
29204         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
29205         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
29206
29207 2009-08-29  Jim Meyering  <meyering@redhat.com>
29208
29209         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
29210         * top/maint.mk (cvs-check): Remove target; it was just an alias
29211         to the better-named vc-diff-check.
29212         (maintainer-distcheck): Remove rule.  It was used only from
29213         the (alpha/beta/major) target, and all of its commands but one
29214         were coreutils-specific.
29215         (vc-dist): Remove rule.
29216         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
29217         Run vc-diff-check, not vc-dist.
29218         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
29219
29220 2009-08-27  Bruno Haible  <bruno@clisp.org>
29221
29222         * tests/test-bitrotate.c (main): Remove test that uses a shift count
29223         of 0.
29224
29225 2009-08-27  Bruno Haible  <bruno@clisp.org>
29226
29227         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
29228         compilers.
29229         * doc/func.texi: Document the SunPRO C bug.
29230
29231 2009-08-27  Bruno Haible  <bruno@clisp.org>
29232
29233         Fix link error on Solaris.
29234         * tests/test-parse-duration.c (xstrdup): Remove function.
29235
29236 2009-08-26  Pádraig Brady  <P@draigbrady.com>
29237
29238         ignore-value: handle pointer types, too
29239         * lib/ignore-value.h (__attribute__): Remove definition.
29240         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
29241         of a more concise and more-often effective "(void) i" statement.
29242         (ignore_ptr): New function to suppress warnings from functions that
29243         return pointers, and to make it explicit that one function doesn't
29244         handle all cases.
29245
29246 2009-08-25  Bruno Haible  <bruno@clisp.org>
29247
29248         dup2: work around a Linux bug.
29249         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
29250         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
29251         * doc/posix-functions/dup2.texi: Mention the Linux bug.
29252         Reported by Simon Josefsson.
29253
29254 2009-08-25  Jim Meyering  <meyering@redhat.com>
29255
29256         libguestfs uses gnulib
29257         * users.txt: Add libguestfs.
29258
29259 2009-08-24  Eric Blake  <ebb9@byu.net>
29260
29261         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
29262         * lib/pipe2.c (includes): Add binary-io.h.
29263         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
29264
29265 2009-08-24  Bruno Haible  <bruno@clisp.org>
29266
29267         Tolerate declared but missing accept4 syscall.
29268         * lib/accept4.c (accept4): Invoke original accept4 function first, if
29269         available.
29270         * lib/sys_socket.in.h (accept4): If the function is already present,
29271         override it.
29272         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
29273         * modules/accept4 (Makefile.am): Compile accept4.c always.
29274         Reported by Paolo Bonzini and Eric Blake.
29275
29276 2009-08-23  Bruno Haible  <bruno@clisp.org>
29277
29278         New module 'accept4'.
29279         * lib/sys_socket.in.h (accept4): New declaration.
29280         * lib/accept4.c: New file.
29281         * m4/accept4.m4: New file.
29282         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29283         GNULIB_ACCEPT4, HAVE_ACCEPT4.
29284         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
29285         HAVE_ACCEPT4.
29286         * modules/accept4: New file.
29287         * doc/glibc-functions/accept4.texi: Mention the new module.
29288
29289 2009-08-24  Jim Meyering  <meyering@redhat.com>
29290
29291         progname: also set global program_invocation_name, when possible
29292         Before this change, a libtool-enabled program that calls glibc's
29293         error function would report the program name as
29294         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
29295         * modules/progname (configure.ac): Check for a declaration of
29296         program_invocation_name.
29297         * lib/progname.c:  Include <errno.h>.
29298         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
29299         Set program_invocation_name.
29300
29301 2009-08-23  Bruno Haible  <bruno@clisp.org>
29302
29303         * lib/dup3.c: Include <string.h>.
29304
29305 2009-08-23  Bruno Haible  <bruno@clisp.org>
29306
29307         * lib/dup3.c (dup3): Test only once whether the system actually exists.
29308         * lib/pipe2.c (pipe2): Likewise.
29309         Suggested by Eric Blake.
29310
29311 2009-08-23  Bruno Haible  <bruno@clisp.org>
29312
29313         Tolerate declared but missing dup3 syscall.
29314         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
29315         * lib/unistd.in.h (dup3): If the function is already present,
29316         override it.
29317         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
29318         * modules/dup3 (Makefile.am): Compile dup3.c always.
29319         Reported by Paolo Bonzini.
29320
29321 2009-08-23  Bruno Haible  <bruno@clisp.org>
29322
29323         Tolerate declared but missing pipe2 syscall.
29324         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
29325         available.
29326         * lib/unistd.in.h (pipe2): If the function is already present,
29327         override it.
29328         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
29329         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
29330         Reported by Paolo Bonzini.
29331
29332 2009-08-23  Bruno Haible  <bruno@clisp.org>
29333
29334         * lib/pipe2.c (pipe2): Move #ifs inside function.
29335
29336 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29337
29338         quotearg: document limitations of quote_these_too
29339         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
29340         those limitations are created.
29341         * lib/quotearg.h (set_char_quoting): Document that digits and
29342         letters that are special after backslash are not permitted.
29343         (quotearg_char): Cross-reference set_char_quoting documentation.
29344
29345 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
29346
29347         quotearg: implement custom_quoting_style
29348         * lib/quotearg.c: (struct quoting_options): Add left_quote and
29349         right_quote fields.
29350         (set_custom_quoting): New public function.
29351         (quotearg_buffer_restyled): Add left_quote and right_quote
29352         arguments, handle them very much like locale quoting, and update
29353         all uses.
29354         (quotearg_n_custom): New public function.
29355         (quotearg_n_custom_mem): New public function.
29356         (quotearg_custom): New public function.
29357         (quotearg_custom_mem): New public function.
29358         * lib/quotearg.h: Prototype and document new public functions.
29359         (enum quoting_style): For escape_quoting_style and
29360         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
29361         ignored even though they're otherwise like c_quoting_style.
29362         Add custom_quoting_style member and document with comparison to
29363         clocale_quoting_style.
29364         * tests/test-quotearg.c (custom_quotes): New array.
29365         (custom_results): New array.
29366         (main): Extend to test custom quoting.
29367
29368 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29369
29370         quotearg: fix right quote escaping when it's in quote_these_too
29371         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
29372         quote, be sure to prepend only one backslash.
29373         * tests/test-quotearg.c (use_quote_double_quotes): New function.
29374         (main): Test it.
29375
29376 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29377
29378         quotearg-tests: test escaping of embedded locale quotes
29379         * tests/test-quotearg.c (struct result_strings): Add member for
29380         new input.
29381         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
29382         (inputs): Add new input.
29383         (results_g): Add expected results.
29384         (flag_results): Likewise.
29385         (locale_results): Likewise.
29386         (compare_strings): Check those.
29387
29388 2009-08-23  Bruno Haible  <bruno@clisp.org>
29389
29390         Tests for module 'dup3'.
29391         * modules/dup3-tests: New file.
29392         * tests/test-dup3.c: New file.
29393
29394         New module 'dup3'.
29395         * lib/unistd.in.h (dup3): New declaration.
29396         * lib/dup3.c: New file.
29397         * m4/dup3.m4: New file.
29398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
29399         HAVE_DUP3.
29400         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
29401         * modules/dup3: New file.
29402         * doc/glibc-functions/dup3.texi: Mention the new module.
29403
29404 2009-08-23  Bruno Haible  <bruno@clisp.org>
29405
29406         Tweak the dup2 test.
29407         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29408         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29409         the test file is still empty. Fix argument order of lseek.
29410
29411 2009-08-23  Bruno Haible  <bruno@clisp.org>
29412
29413         Avoid test link errors when the modules getopt-gnu, gettext are used.
29414         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29415         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29416
29417 2009-08-23  Bruno Haible  <bruno@clisp.org>
29418
29419         Fix getdtablesize() on mingw.
29420         * lib/getdtablesize.c (getdtablesize): Implement differently.
29421         * lib/unistd.in.h (getdtablesize): Improve comment.
29422
29423 2009-08-23  Bruno Haible  <bruno@clisp.org>
29424
29425         New module 'mkostemp'.
29426         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29427         * lib/stdlib.in.h (mksotemp): New declaration.
29428         * lib/mkostemp.c: New file, from glibc with modifications.
29429         * lib/tempname.h (GT_FILE): Remove outdated comment.
29430         (gen_tempname): Add flags argument.
29431         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29432         (__GT_FILE): Map to 1.
29433         (small_open, large_open): Remove macros.
29434         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29435         * lib/mkstemp.c (mkstemp): Update.
29436         * lib/mkdtemp.c (mkdtemp): Likewise.
29437         * m4/mkostemp.m4: New file.
29438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29439         HAVE_MKOSTEMP.
29440         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29441         HAVE_MKOSTEMP.
29442         * modules/mkostemp: New file, based on modules/mkstemp.
29443         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29444         * NEWS: Mention the change.
29445
29446 2009-08-23  Bruno Haible  <bruno@clisp.org>
29447
29448         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29449         Reported by Eric Blake.
29450
29451 2009-08-23  Bruno Haible  <bruno@clisp.org>
29452
29453         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29454         Reported by Eric Blake.
29455
29456 2009-08-23  Bruno Haible  <bruno@clisp.org>
29457
29458         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29459         * modules/pipe2 (Depends-on): Likewise.
29460
29461 2009-08-23  Eric Blake  <ebb9@byu.net>
29462
29463         fcntl-h: add O_TTY_INIT support
29464         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29465         * tests/test-fcntl-h.c (o): Test it.
29466         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29467
29468         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29469         * modules/fcntl: Move <fcntl.h> header replacement...
29470         * modules/fcntl-h: ...to new name, so as not to collide with
29471         like-named function.
29472         * tests/test-fcntl.c: Rename...
29473         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29474         * modules/fcntl-tests: Rename...
29475         * modules/fcntl-h-tests: ...to this.  Update test file name.
29476         * modules/chdir-long (Depends-on): Update clients.
29477         * modules/chdir-safer (Depends-on): Likewise.
29478         * modules/fcntl-safer (Depends-on): Likewise.
29479         * modules/fts (Depends-on): Likewise.
29480         * modules/mkancesdirs (Depends-on): Likewise.
29481         * modules/mkdir-p (Depends-on): Likewise.
29482         * modules/open (Depends-on): Likewise.
29483         * modules/savewd (Depends-on): Likewise.
29484         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29485         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29486
29487 2009-08-22  Bruno Haible  <bruno@clisp.org>
29488
29489         * modules/binary-io (License): Relicense under LGPL.
29490         * modules/pipe2 (License): Likewise.
29491
29492 2009-08-22  Bruno Haible  <bruno@clisp.org>
29493
29494         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29495         return value.
29496         * lib/pipe-filter-gi.c (filter_init): Likewise.
29497         Reported by Eric Blake.
29498
29499 2009-08-22  Bruno Haible  <bruno@clisp.org>
29500
29501         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29502         * modules/pipe (Depends-on): Add pipe2.
29503
29504 2009-08-22  Bruno Haible  <bruno@clisp.org>
29505
29506         Tests for module 'pipe2'.
29507         * modules/pipe2-tests: New file.
29508         * tests/test-pipe2.c: New file.
29509
29510         New module 'pipe2'.
29511         * lib/unistd.in.h (pipe2): New declaration.
29512         * lib/pipe2.c: New file.
29513         * m4/pipe2.m4: New file.
29514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29515         HAVE_PIPE2.
29516         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29517         * modules/pipe2: New file.
29518         * doc/glibc-functions/pipe2.texi: Mention the new module.
29519
29520 2009-08-22  Bruno Haible  <bruno@clisp.org>
29521
29522         Reference some new glibc functions.
29523         * doc/glibc-functions/accept4.texi: New file.
29524         * doc/glibc-functions/dup3.texi: New file.
29525         * doc/glibc-functions/mkostemp.texi: New file.
29526         * doc/glibc-functions/pipe2.texi: New file.
29527         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29528         (Glibc sys/socket.h): Refer to accept4.
29529         (Glibc unistd.h): Refer to dup3, pipe2.
29530         Reported by Eric Blake.
29531
29532 2009-08-22  Jim Meyering  <meyering@redhat.com>
29533             Bruno Haible  <bruno@clisp.org>
29534
29535         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29536         This makes it so packages using automake-1.11's silent-rules option
29537         can print e.g., a single "GEN    configmake.h" line, rather than
29538         the 30+ statements that perform the job.  If you want to see the
29539         actual commands, you can still run "make V=1".
29540         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29541         so that make output is abbreviated when those variables are defined
29542         appropriately.
29543         * modules/argz: Likewise.
29544         * modules/arpa_inet: Likewise.
29545         * modules/byteswap: Likewise.
29546         * modules/configmake: Likewise.
29547         * modules/dirent: Likewise.
29548         * modules/errno: Likewise.
29549         * modules/fcntl: Likewise.
29550         * modules/float: Likewise.
29551         * modules/fnmatch: Likewise.
29552         * modules/getopt-posix: Likewise.
29553         * modules/glob: Likewise.
29554         * modules/iconv_open: Likewise.
29555         * modules/inttypes: Likewise.
29556         * modules/localcharset: Likewise.
29557         * modules/locale: Likewise.
29558         * modules/math: Likewise.
29559         * modules/netdb: Likewise.
29560         * modules/netinet_in: Likewise.
29561         * modules/poll: Likewise.
29562         * modules/posix_spawnp-tests: Likewise.
29563         * modules/sched: Likewise.
29564         * modules/search: Likewise.
29565         * modules/selinux-h: Likewise.
29566         * modules/signal: Likewise.
29567         * modules/spawn: Likewise.
29568         * modules/stdarg: Likewise.
29569         * modules/stdbool: Likewise.
29570         * modules/stddef: Likewise.
29571         * modules/stdint: Likewise.
29572         * modules/stdio: Likewise.
29573         * modules/stdlib: Likewise.
29574         * modules/string: Likewise.
29575         * modules/strings: Likewise.
29576         * modules/sys_file: Likewise.
29577         * modules/sys_ioctl: Likewise.
29578         * modules/sys_select: Likewise.
29579         * modules/sys_socket: Likewise.
29580         * modules/sys_stat: Likewise.
29581         * modules/sys_time: Likewise.
29582         * modules/sys_times: Likewise.
29583         * modules/sys_utsname: Likewise.
29584         * modules/sys_wait: Likewise.
29585         * modules/sysexits: Likewise.
29586         * modules/time: Likewise.
29587         * modules/unistd: Likewise.
29588         * modules/wchar: Likewise.
29589         * modules/wctype: Likewise.
29590
29591 2009-08-22  Jim Meyering  <meyering@redhat.com>
29592
29593         announce-gen: detect write failure
29594         * build-aux/announce-gen: Add Coda at end.
29595         Remove equivalent-but-more-verbose block at top.
29596
29597 2009-08-19  Akim Demaille  <demaille@gostai.com>
29598
29599         bootstrap: --help to stdout.
29600         * bootstrap (usage): Don't send --help to stderr.
29601         Use a here doc instead of a long string.
29602
29603 2009-08-21  Eric Blake  <ebb9@byu.net>
29604
29605         test-popen-safer: split from test-popen
29606         * tests/test-popen.c (main): Move...
29607         * tests/test-popen.h: ...into new file.
29608         * tests/test-popen-safer2.c: New file.
29609         * modules/popen-tests (Files): Add test-popen.h.
29610         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29611         Suggested by Bruno Haible.
29612
29613         test-fcntl-safer: split from test-open
29614         * tests/test-open.c (main): Move...
29615         * tests/test-open.h: ...into new file.
29616         * tests/test-fcntl-safer.c: New file.
29617         * modules/open-tests (Files): Add test-open.h.
29618         * modules/fcntl-safer-tests: New file.
29619         Suggested by Bruno Haible.
29620
29621         test-fopen-safer: split from test-fopen
29622         * tests/test-fopen.c (main): Move...
29623         * tests/test-fopen.h: ...into new file.
29624         * tests/test-fopen-safer.c: New file.
29625         * modules/fopen-tests (Files): Add test-fopen.h.
29626         * modules/fopen-safer-tests: New file.
29627         Suggested by Bruno Haible.
29628
29629 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29630
29631         popen-safer: test O_CLOEXEC at run-time.
29632         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29633
29634 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29635
29636         fcntl: move more flags to the header
29637         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29638         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29639         * lib/fcntl.in.h: Do both things here.
29640
29641 2009-08-21  Jim Meyering  <meyering@redhat.com>
29642
29643         consistently remove $@-t before redirecting to it
29644         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29645         * modules/alloca-opt: Likewise.
29646         * modules/byteswap: Likewise.
29647         * modules/fnmatch: Likewise.
29648         * modules/getopt-posix: Likewise.
29649         * modules/glob: Likewise.
29650         * modules/poll: Likewise.
29651         * modules/posix_spawnp-tests: Likewise.
29652         * modules/sys_socket: Likewise.
29653         * modules/sysexits: Likewise.
29654
29655 2009-08-21  Eric Blake  <ebb9@byu.net>
29656
29657         popen: simplify access to original popen
29658         * lib/popen.c (rpl_popen): No need to worry about popen being a
29659         macro.
29660         Reported by Bruno Haible.
29661
29662 2009-08-20  Eric Blake  <ebb9@byu.net>
29663
29664         build: avoid some compiler warnings
29665         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29666         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29667         type.
29668         (new_exclude_segment, excluded_file_pattern_p)
29669         (excluded_file_name_p): Reduce scope.
29670         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29671         old-style declaration.
29672
29673 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29674
29675         * tests/test-exclude1.sh: Handle Windows EOL.
29676         * tests/test-exclude2.sh: Likewise.
29677         * tests/test-exclude3.sh: Likewise.
29678         * tests/test-exclude4.sh: Likewise.
29679         * tests/test-exclude5.sh: Likewise.
29680         * tests/test-exclude6.sh: Likewise.
29681         * tests/test-exclude7.sh: Likewise.
29682
29683 2009-08-19  Akim Demaille  <demaille@gostai.com>
29684
29685         bootstrap: find sha1sum when named gsha1sum.
29686         * bootstrap (find_tool): New.
29687         ($SHA1SUM): New.
29688         Use it.
29689
29690 2009-08-20  Jim Meyering  <meyering@redhat.com>
29691
29692         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29693         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29694         expression that converts "." in a file name to "\." in the resulting
29695         regexp.  Start with a dummy statement, so that prior shell variable
29696         definitions are expanded portably.  Reported by Simon Josefsson.
29697
29698 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29699
29700         Fix polling for writeability of a screen buffer.
29701         * lib/poll.c: Distinguish input and screen buffers for the
29702         Win32 implementation.
29703         * lib/select.c: Likewise.
29704
29705 2009-08-19  Eric Blake  <ebb9@byu.net>
29706
29707         popen-safer: prevent popen from clobbering std descriptors
29708         * modules/popen-safer: New file.
29709         * lib/popen-safer.c: Likewise.
29710         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29711         * lib/stdio--.h (popen): Provide override.
29712         * lib/stdio-safer.h (popen_safer): Provide declaration.
29713         * tests/test-popen.c (includes): Partially test this.
29714         * modules/popen-safer-tests: New file, for more tests.
29715         * tests/test-popen-safer.c: Likewise.
29716         * MODULES.html.sh (file stream based Input/Output): Mention it.
29717
29718         tests: test some of the *-safer modules
29719         * modules/fopen-safer (Depends-on): Add fopen.
29720         * modules/fcntl-safer (Depends-on): Add fcntl.
29721         * modules/stdlib-safer (Depends-on): Add stdlib.
29722         (configure.ac): Set indicator.
29723         * modules/unistd-safer (configure.ac): Likewise.
29724         * modules/tmpfile-safer (configure.ac): Likewise.
29725         (Depends-on): Add tmpfile.
29726         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29727         active.
29728         * tests/test-fopen.c (includes): Test safer versions when they are
29729         in use.
29730         * tests/test-open.c (includes): Likewise.
29731
29732         popen: fix cygwin 1.5 bug when stdin closed
29733         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29734         * modules/popen: New file.
29735         * modules/popen-tests: Likewise.
29736         * tests/test-popen.c: Likewise.
29737         * m4/popen.m4: Likewise.
29738         * lib/popen.c: Likewise.
29739         * lib/stdio.in.h (popen): New declaration.
29740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29741         * modules/stdio (Makefile.am): Likewise.
29742         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29743
29744 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29745
29746         maint.mk: give full control over update-copyright exclusions
29747         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29748         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29749         (update-copyright): Don't force inclusion of top-level
29750         ChangeLog.  Don't force exclusion of all COPYING files, but make
29751         them the default exclusion instead.
29752
29753 2009-08-16  Bruno Haible  <bruno@clisp.org>
29754
29755         Fix test failures on Solaris 10.
29756         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29757         tests when Solaris iconv() is used.
29758         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29759         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29760         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29761         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29762         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29763
29764 2009-08-16  Bruno Haible  <bruno@clisp.org>
29765
29766         Fix test failures on Solaris 10.
29767         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29768         'tr' program and pass it as first argument.
29769         * tests/test-pipe-filter-gi1.sh: Likewise.
29770         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29771         program as first argument.
29772         * tests/test-pipe-filter-gi1.c (main): Likewise.
29773
29774 2009-08-16  Eric Blake  <ebb9@byu.net>
29775
29776         fpurge: fix previous commits
29777         * modules/fpurge (Makefile.am): Make replacement conditional,
29778         partially reverting 2007-04-29 change; missed in previous
29779         attempt.
29780         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29781         is missing.
29782
29783 2009-08-16  Bruno Haible  <bruno@clisp.org>
29784
29785         Clarify fpurge's effect on the file position.
29786         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29787         * tests/test-fpurge.c (main): Make a second pass for checking the file
29788         position.
29789
29790 2009-08-16  Bruno Haible  <bruno@clisp.org>
29791
29792         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29793         declaration of fpurge is missing.
29794         * tests/test-fpurge.c (main): Check that the file has not more contents
29795         than expected. Close the file before removing it.
29796
29797 2009-08-15  Eric Blake  <ebb9@byu.net>
29798
29799         fpurge: don't wrap working cygwin implementation
29800         * lib/fpurge.c (fpurge): Fix comment typo.
29801         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29802         1.7 to avoid replacement.
29803         * tests/test-fpurge.c (main): Enhance test.
29804
29805 2009-08-15  Eric Blake  <ebb9@byu.net>
29806         and Jim Meyering  <meyering@redhat.com>
29807
29808         test-update-copyright: skip if perl is insufficient
29809         * tests/test-update-copyright.sh: Failure to run maintainer tool
29810         should not cause testsuite failure on cygwin 1.5.
29811
29812 2009-08-14  Eric Blake  <ebb9@byu.net>
29813
29814         doc: mention more functions added in cygwin 1.7.0
29815         * doc/posix-headers/limits.texi (limits.h): Update for recent
29816         cygwin additions.
29817         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29818         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29819         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29820         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29821         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29822
29823 2009-08-14  Eric Blake  <ebb9@byu.net>
29824
29825         maint.mk: simplify update-copyright rule
29826         * top/maint.mk (update-copyright-local): Delete, and document how
29827         to do it in cfg.mk instead.
29828         (update-copyright-exclude-regexp): Delete, and document how to do
29829         it in .x-update-copyright instead.
29830         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29831         exclude ChangeLog.
29832
29833 2009-08-14  Bruno Haible  <bruno@clisp.org>
29834
29835         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29836
29837 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29838
29839         maint.mk: support update-copyright-env
29840         * top/maint.mk (update-copyright-env): Define place-holder.
29841         (update-copyright): Expand $(update-copyright-env) before
29842         invoking update-copyright.
29843
29844 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29845
29846         update-copyright: implement forced reformatting
29847         * build-aux/update-copyright: Implement and document
29848         UPDATE_COPYRIGHT_FORCE.
29849         * tests/test-update-copyright.sh: Test it.
29850
29851 2009-08-14  Eric Blake  <ebb9@byu.net>
29852         and Bruno Haible  <bruno@clisp.org>
29853
29854         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29855         * tests/test-locale.c: Revert previous patch related to NULL.
29856         * tests/test-stdio.c: Likewise.
29857         * tests/test-stdlib.c: Likewise.
29858         * tests/test-string.c: Likewise.
29859         * tests/test-unistd.c: Likewise.
29860         * modules/time-tests (Depends-on): Add verify.
29861         * modules/wchar-tests (Depends-on): Likewise.
29862         * tests/test-time.c: Test for NULL compliance.
29863         * tests/test-wchar.c: Likewise.
29864         * modules/locale (Depends-on): Add stddef.
29865         * modules/stdio (Depends-on): Likewise.
29866         * modules/stdlib (Depends-on): Likewise.
29867         * modules/string (Depends-on): Likewise.
29868         * modules/time (Depends-on): Likewise.
29869         * modules/unistd (Depends-on): Likewise.
29870         * modules/wchar (Depends-on): Likewise.
29871         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29872         * lib/stdlib.in.h (includes): Likewise.
29873         * lib/string.in.h (includes): Likewise.
29874         * lib/time.in.h (includes): Likewise.
29875         * lib/unistd.in.h (includes): Likewise.
29876         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29877         replaced.
29878         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29879         * m4/stddef_h.m4: New file.
29880         * modules/stddef: Likewise.
29881         * lib/stddef.in.h: Likewise.
29882         * modules/stddef-tests: Likewise.
29883         * tests/test-stddef.c: Likewise.
29884         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29885         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29886         * doc/posix-headers/locale.texi (locale.h): Likewise.
29887         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29888         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29889         * doc/posix-headers/string.texi (string.h): Likewise.
29890         * doc/posix-headers/time.texi (time.h): Likewise.
29891         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29892         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29893
29894 2009-08-14  Eric Blake  <ebb9@byu.net>
29895
29896         doc: improve git diff of texinfo files
29897         * .gitattributes: Add rule for *.texi files, with hint on how to
29898         use it.
29899         Copied from m4, and based on a report by Bruno Haible.
29900
29901 2009-08-14  Bruno Haible  <bruno@clisp.org>
29902
29903         Disable multithread support by default on Cygwin 1.5.x for real.
29904         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29905
29906 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29907
29908         update-copyright: much ado about intervals
29909         * build-aux/update-copyright: Implement and document
29910         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29911         of copyright year intervals.
29912         Also, document UPDATE_COPYRIGHT_YEAR.
29913         * tests/test-update-copyright.sh: Test it.
29914
29915         update-copyright: convert 2-digit to 4-digit years
29916         * build-aux/update-copyright: Implement and document.
29917         * tests/test-update-copyright.sh: Update.
29918
29919 2009-08-14  Jim Meyering  <meyering@redhat.com>
29920
29921         test-exclude: avoid coreutils "make check" failure
29922         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29923         just as in test-argmatch.c.
29924
29925 2009-08-13  Eric Blake  <ebb9@byu.net>
29926
29927         test-dup2: fix bad assumption
29928         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29929         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29930
29931         test-version-etc: fix CRLF portability issue
29932         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29933         recognize \r.
29934         * tests/test-argp-version-etc-1.sh: Likewise.
29935
29936         getopt: update client modules
29937         * modules/argp (Depends-on): Use getopt-gnu.
29938         * modules/git-merge-changelog (Depends-on): Likewise.
29939         * modules/long-options (Depends-on): Likewise.
29940         * modules/xstrtol (Depends-on): Likewise.
29941
29942 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29943
29944         * tests/test-version-etc.sh: Don't fail on different
29945         project/version.  Don't fail on CRLF differences.  Rewrite to use
29946         multiple -e instead of multiple sed forks, suggested by Eric Blake
29947         <ebb9@byu.net>.
29948         * tests/test-argp-version-etc-1.sh: Likewise.
29949
29950 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29951
29952         * tests/test-version-etc.sh: Don't fail on different
29953         project/version.
29954
29955 2009-08-12  Bruno Haible  <bruno@clisp.org>
29956
29957         Tests for modules 'getopt-posix', 'getopt-gnu'.
29958         * modules/getopt-posix-tests: New file.
29959         * tests/test-getopt.c: New file.
29960         * tests/test-getopt.h: New file.
29961         * tests/test-getopt_long.h: New file.
29962
29963         New modules 'getopt-posix', 'getopt-gnu'.
29964         * modules/getopt-gnu: New file, renamed from modules/getopt.
29965         * modules/getopt-posix: New file.
29966         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29967         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29968         (gl_GETOPT): Remove macro.
29969         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29970         Disable the test against BSD systems that declare optreset. Test
29971         against mingw bug. Test against lack of support of optional arguments
29972         on many platforms.
29973         * doc/glibc-headers/getopt.texi: Update module name and list of
29974         relevant platforms.
29975         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29976         'getopt-gnu' and more portability problems.
29977         * NEWS: Mention the changes.
29978
29979 2009-08-12  Bruno Haible  <bruno@clisp.org>
29980
29981         Ensure that optarg etc. get declared by <unistd.h>.
29982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29983         AC_USE_SYSTEM_EXTENSIONS.
29984         * modules/getopt (Depends-on): Add 'extensions'.
29985
29986 2009-08-12  Bruno Haible  <bruno@clisp.org>
29987
29988         Avoid test link errors.
29989         * modules/pipe-filter-ii-tests (Makefile.am): Define
29990         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29991         * modules/pipe-filter-gi-tests (Makefile.am): Define
29992         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29994
29995 2009-08-12  Bruno Haible  <bruno@clisp.org>
29996
29997         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29998         gl_GETOPT_SUBSTITUTE before.
29999         (gl_GETOPT): Use it.
30000         * m4/argp.m4 (gl_ARGP): Update.
30001         Reported by Sergey Poznyakoff.
30002
30003         * m4/getopt.m4: Reorder macros.
30004         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
30005         (gl_GETOPT_SUBSTITUTE): Remove macro.
30006
30007 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30008
30009         Minor improvement in gitlog-to-changelog
30010
30011         * build-aux/gitlog-to-changelog: New option `--format' makes
30012         output format string configurable.
30013
30014 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30015
30016         Optimize exclude: use hash tables for non-wildcard patterns.
30017
30018         * lib/exclude.c: Include hash.h and mbuiter.h
30019         (struct exclude_pattern, exclude_segment): New data types.
30020         (struct exclude): Rewrite.
30021         (fnmatch_pattern_has_wildcards): New function.
30022         (new_exclude_segment, free_exclude_segment): New functions.
30023         (excluded_file_pattern_p, excluded_file_name_p): New functions.
30024         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
30025         * lib/exclude.h (is_fnmatch_pattern): New prototype.
30026         * modules/exclude: Depend on hash and mbuiter.
30027
30028         * modules/exclude-tests: New file.
30029         * tests/test-exclude.c: New file.
30030         * tests/test-exclude1.sh: New file.
30031         * tests/test-exclude2.sh: New file.
30032         * tests/test-exclude3.sh: New file.
30033         * tests/test-exclude4.sh: New file.
30034         * tests/test-exclude5.sh: New file.
30035         * tests/test-exclude6.sh: New file.
30036         * tests/test-exclude7.sh: New file.
30037
30038 2009-08-12  Bruno Haible  <bruno@clisp.org>
30039
30040         Ensure that getopt() gets declared by <unistd.h>.
30041         * lib/unistd.in.h: Conditionally include getopt.h.
30042         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
30043         Set GNULIB_UNISTD_H_GETOPT.
30044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30045         GNULIB_UNISTD_H_GETOPT.
30046         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
30047
30048 2009-08-12  Bruno Haible  <bruno@clisp.org>
30049
30050         Clarify logic.
30051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
30052         gl_replace_getopt instead of GETOPT_H.
30053
30054 2009-08-12  Bruno Haible  <bruno@clisp.org>
30055
30056         * m4/getopt.m4: Add comments.
30057
30058 2009-08-12  Bruno Haible  <bruno@clisp.org>
30059
30060         Disable multithread support by default on Cygwin 1.5.x.
30061         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
30062         set gl_use_threads=no if not specified otherwise.
30063
30064 2009-08-11  Bruno Haible  <bruno@clisp.org>
30065
30066         Avoid compilation error on NetBSD 5.0.
30067         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
30068         * tests/test-stdio.c: Likewise.
30069         * tests/test-stdlib.c: Likewise.
30070         * tests/test-string.c: Likewise.
30071         * tests/test-unistd.c: Likewise.
30072         Reported by Greg Troxel <gdt@ir.bbn.com>
30073         at <https://savannah.gnu.org/support/?106973>.
30074
30075 2009-08-11  Bruno Haible  <bruno@clisp.org>
30076
30077         * modules/dup2-tests (Depends-on): Remove close.
30078
30079         Undo 2009-07-19 commit.
30080         * modules/acl-tests (Depends-on): Remove close.
30081         * modules/binary-io-tests (Depends-on): Likewise.
30082         * modules/closein-tests (Depends-on): Likewise.
30083         * modules/flock-tests (Depends-on): Likewise.
30084         * modules/fsync-tests (Depends-on): Likewise.
30085         * modules/lseek-tests (Depends-on): Likewise.
30086         * modules/pipe-tests (Depends-on): Likewise.
30087         * modules/posix_spawn-tests (Depends-on): Likewise.
30088         * modules/posix_spawnp-tests (Depends-on): Likewise.
30089         * modules/stat-time-tests (Depends-on): Likewise.
30090         * modules/yesno-tests (Depends-on): Likewise.
30091
30092 2009-08-10  Bruno Haible  <bruno@clisp.org>
30093
30094         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
30095
30096 2009-08-10  Bruno Haible  <bruno@clisp.org>
30097
30098         Fix a gcc warning.
30099         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
30100
30101 2009-08-10  Bruno Haible  <bruno@clisp.org>
30102
30103         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
30104         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
30105         not only the first time.
30106         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
30107         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
30108         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
30109         is 1, not only the the first time.
30110
30111 2009-08-10  Bruno Haible  <bruno@clisp.org>
30112
30113         Make it possible to use module 'gethostname' without module 'close'.
30114         * lib/unistd.in.h (close): Evoke a link error only if
30115         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30117         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30118         * modules/unistd (Makefile.am): Substitute
30119         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30120         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
30121         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30122         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30123         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30124         * modules/sys_ioctl (Makefile.am): Substitute
30125         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30126         * modules/socket (configure.ac): On native Windows, set
30127         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
30128         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30129         Reported by Sam Steingold <sds@gnu.org>.
30130
30131 2009-08-10  Bruno Haible  <bruno@clisp.org>
30132
30133         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
30134         * modules/ioctl (configure.ac): Likewise.
30135
30136 2009-08-10  Bruno Haible  <bruno@clisp.org>
30137
30138         Avoid collision between gnulib wrapper and libintl wrapper.
30139         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
30140         already defined in intl/printf.c.
30141         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
30142         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
30143
30144 2009-08-09  Bruno Haible  <bruno@clisp.org>
30145
30146         Make <sys/select.h> really self-contained, also on Solaris 10.
30147         * lib/sys_select.in.h: Include <string.h>.
30148         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
30149         Solaris 10 problem.
30150         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
30151         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
30152         Reported by Jim Meyering.
30153
30154 2009-08-09  Bruno Haible  <bruno@clisp.org>
30155
30156         Avoid warnings from 'aclocal' that are due to a use of macro name
30157         AM_XGETTEXT_OPTION that is not defined in automake.
30158         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
30159         automake.
30160         * modules/error (configure.ac): Likewise.
30161         * modules/propername (configure.ac): Likewise.
30162         * modules/vasprintf (configure.ac): Likewise.
30163         * modules/verror (configure.ac): Likewise.
30164         * modules/xprintf (configure.ac): Likewise.
30165         * modules/xvasprintf (configure.ac): Likewise.
30166
30167 2009-08-08  Bruno Haible  <bruno@clisp.org>
30168
30169         Avoid compilation error in C++ mode.
30170         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
30171         Reported by Sam Steingold <sds@gnu.org>.
30172
30173 2009-08-08  Bruno Haible  <bruno@clisp.org>
30174
30175         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
30176         for the various Unix platforms.
30177         * doc/posix-headers/limits.texi: Update platforms list regarding
30178         HOST_NAME_MAX.
30179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30180
30181 2009-08-07  Jim Meyering  <meyering@redhat.com>
30182
30183         selinux-at: fix typo in a comment
30184         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
30185         Spotted by Paolo Bonzini.
30186
30187         selinux-at: remove redundant m4 code, add documentation
30188         * modules/selinux-at (configure.ac): Remove redundant code.
30189         LIB_SELINUX is already set via the dependent module, selinux-h.
30190         (Include): Add quotes around selinux-at.h.
30191         * lib/selinux-at.h: Add documentation.
30192         Reported by Bruno Haible in
30193         http://marc.info/?l=gnulib-bug&m=124958988300749
30194
30195 2009-08-07  Bruno Haible  <bruno@clisp.org>
30196
30197         Avoid link error on MacOS X 10.3 and 10.4.
30198         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
30199         on non-ELF systems.
30200         * lib/argp-pv.c (argp_program_version): Likewise.
30201         Reported by Simon Josefsson.
30202
30203 2009-08-07  Simon Josefsson  <simon@josefsson.org>
30204
30205         * tests/test-version-etc.sh: Use $EXEEXT.
30206
30207 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
30208
30209         update-copyright: update documentation to point to maint.mk
30210         * build-aux/update-copyright: Here.
30211
30212 2009-08-06  Jim Meyering  <meyering@redhat.com>
30213
30214         maint.mk: support update-copyright-local
30215         * top/maint.mk (update-copyright-local): Define place-holder.
30216         (update-copyright): Depend on $(update-copyright-local).
30217
30218 2009-08-06  Jim Meyering  <meyering@redhat.com>
30219
30220         selinux-at: new module
30221         Initially written for coreutils, this module will soon be
30222         used by findutils, too.
30223         * MODULES.html.sh [Misc]: Add selinux-at.
30224         * lib/selinux-at.h: New file, from coreutils.
30225         * lib/selinux-at.c: Likewise.
30226         * modules/selinux-at: Likewise.
30227         (License): Change from LGPL to GPL, since it depends
30228         on the GPL'd openat module.
30229
30230         doc: update README
30231         * README: Remove references to cogito.
30232         Remove cvs-repo-updating instructions from 2007.
30233         Don't imply that CVS is better if you have limited disk space.
30234
30235 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30236
30237         update-copyright: support C-style comments
30238         * build-aux/update-copyright: Implement and document.
30239         * tests/test-update-copyright.sh: Test.
30240
30241 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30242
30243         update-copyright: support omitted "(C)"
30244         * build-aux/update-copyright: Implement and document.  Also,
30245         allow variable whitespace before "(C)".
30246         * tests/test-update-copyright.sh: Test.
30247
30248 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30249
30250         update-copyright: don't trip on non-FSF copyright statements
30251         * build-aux/update-copyright: Fix so that the first correctly
30252         formatted FSF copyright statement is recognized no matter what
30253         appears before it.  Update documentation.
30254         * tests/test-update-copyright.sh: Test that.
30255
30256 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30257
30258         update-copyright: clean up code a little
30259         * build-aux/update-copyright: Append "_re" to the name of any
30260         variable holding a regular expression.
30261         Replace "old" and "new" with "stmt" in variable names.
30262         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
30263         handled correctly.
30264         Format code more consistently.
30265
30266 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30267
30268         update-copyright-tests: improve portability
30269         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
30270         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
30271
30272 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30273
30274         update-copyright: support @copyright{} and &copy;
30275         * build-aux/update-copyright: Implement and document.
30276         * tests/test-update-copyright.sh: Test.
30277
30278 2009-08-04  Jim Meyering  <meyering@redhat.com>
30279
30280         update-copyright-tests: correctly test EOL=\r\n handling
30281         * tests/test-update-copyright.sh: Put \r at the end of some lines
30282         for the dos-eol tests.  Based on a patch by Joel E. Denny.
30283
30284         maint.mk: make update-copyright exclusion list more configurable
30285         * top/maint.mk (update-copyright): Default to excluding COPYING,
30286         but allow an override, in case someone does want to update that file.
30287
30288         maint.mk: don't update copyright date in COPYING
30289         * top/maint.mk (update-copyright): Exclude COPYING.
30290
30291         maint.mk: add a copyright-updating rule
30292         * top/maint.mk (update-copyright): New rule.
30293         Derived from coreutils/Makefile.am.
30294
30295         update-copyright: rename some variables
30296         * build-aux/update-copyright: Rename a few variables for clarity.
30297         Tweak syntax.  List Joel E. Denny as coauthor.
30298
30299 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30300
30301         update-copyright: fix bug for 2-digit last year and add tests
30302         * build-aux/update-copyright: Fix bug.
30303         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
30304         specified.
30305         * modules/update-copyright-tests: New
30306         * tests/test-update-copyright.sh: New.
30307
30308 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30309
30310         update-copyright: handle leading tabs in line prefix
30311         * build-aux/update-copyright: Count leading tabs as 8 spaces
30312         when computing margin.  This helps with the formatting of
30313         ChangeLogs, for example.
30314         Fix documentation a little.
30315
30316 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30317
30318         update-copyright: support EOL=\r\n
30319         * build-aux/update-copyright: Implement that.
30320
30321 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30322
30323         update-copyright: automatically format copyright statements
30324         * build-aux/update-copyright: Implement that.
30325         Also, be a little more predictable and safer by always failing
30326         when the full copyright format is not perfectly recognized as an
30327         unbroken whole.  Discussed at
30328         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
30329         Rewrite documentation.
30330
30331 2009-08-03  Bruno Haible  <bruno@clisp.org>
30332
30333         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
30334
30335 2009-08-02  Bruno Haible  <bruno@clisp.org>
30336
30337         Tests for module 'uname'.
30338         * modules/uname-tests: New file.
30339         * tests/test-uname.c: New file.
30340
30341         New module 'uname'.
30342         * lib/uname.c: New file.
30343         * m4/uname.m4: New file.
30344         * modules/uname: New file.
30345         * doc/posix-functions/uname.texi: Mention the new module.
30346
30347 2009-08-02  Bruno Haible  <bruno@clisp.org>
30348
30349         Tests for module 'sys_utsname'.
30350         * modules/sys_utsname-tests: New file.
30351         * tests/test-sys_utsname.c: New file.
30352
30353         New module 'sys_utsname'.
30354         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
30355         * m4/sys_utsname_h.m4: New file.
30356         * modules/sys_utsname: New file.
30357         * doc/posix-headers/sys_utsname.texi: Mention the new module.
30358
30359 2009-08-02  Bruno Haible  <bruno@clisp.org>
30360
30361         Implicitly initialize the sockets library.
30362         * lib/gethostname.c: Include sockets.h.
30363         (rpl_gethostname): Invoke gl_sockets_startup.
30364         * lib/socket.c: Include sockets.h.
30365         (rpl_socket): Invoke gl_sockets_startup.
30366         * modules/gethostname (Depends-on): Add sockets.
30367         * modules/socket (Depends-on): Likewise.
30368         * tests/test-poll.c: Don't include sockets.h.
30369         (main): Don't invoke gl_sockets_startup.
30370         * tests/test-select.c: Don't include sockets.h.
30371         (main): Don't invoke gl_sockets_startup.
30372
30373 2009-08-02  Bruno Haible  <bruno@clisp.org>
30374
30375         Allow multiple calls to gl_sockets_startup.
30376         * lib/sockets.c (initialized_sockets_version): New variable.
30377         (gl_sockets_startup): Do nothing if already called for this or a higher
30378         version.
30379         (gl_sockets_cleanup): Reset initialized_sockets_version.
30380
30381 2009-08-03  Simon Josefsson  <simon@josefsson.org>
30382
30383         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
30384         different project/version.
30385
30386 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
30387             Bruno Haible  <bruno@clisp.org>
30388
30389         Tests for module 'pipe-filter-gi'.
30390         * modules/pipe-filter-gi-tests: New file.
30391         * tests/test-pipe-filter-gi1.sh: New file.
30392         * tests/test-pipe-filter-gi1.c: New file.
30393         * tests/test-pipe-filter-gi2.sh: New file.
30394         * tests/test-pipe-filter-gi2-main.c: New file.
30395         * tests/test-pipe-filter-gi2-child.c: New file.
30396
30397         New module 'pipe-filter-gi'.
30398         * lib/pipe-filter-gi.c: New file.
30399         * modules/pipe-filter-gi: New file.
30400
30401 2009-08-02  Bruno Haible  <bruno@clisp.org>
30402             Paolo Bonzini  <bonzini@gnu.org>
30403
30404         Tests for module 'pipe-filter-ii'.
30405         * modules/pipe-filter-ii-tests: New file.
30406         * tests/test-pipe-filter-ii1.sh: New file.
30407         * tests/test-pipe-filter-ii1.c: New file.
30408         * tests/test-pipe-filter-ii2.sh: New file.
30409         * tests/test-pipe-filter-ii2-main.c: New file.
30410         * tests/test-pipe-filter-ii2-child.c: New file.
30411
30412         New module 'pipe-filter-ii'.
30413         * lib/pipe-filter.h: New file.
30414         * lib/pipe-filter-ii.c: New file.
30415         * lib/pipe-filter-aux.h: New file.
30416         * modules/pipe-filter-ii: New file.
30417
30418 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30419
30420         * lib/gc-libgcrypt.c: Change copyright to FSF.
30421         * lib/gc-gnulib.c: Likewise.
30422
30423 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30424
30425         * lib/gethostname.c: Include limits.h.
30426
30427 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30428             Bruno Haible  <bruno@clisp.org>
30429
30430         Ensure HOST_NAME_MAX as part of the gethostname module.
30431         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30432         define also HOST_NAME_MAX.
30433         * tests/test-gethostname.c: Include <limits.h>.
30434         (main): Check also HOST_NAME_MAX.
30435         * doc/posix-headers/limits.texi: Document the mingw problem.
30436
30437 2009-08-02  Bruno Haible  <bruno@clisp.org>
30438
30439         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30440         Add comments.
30441
30442 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30443
30444         * lib/gethostname.c: Add Windows wrapper.
30445         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30446         * modules/gethostname: Depend on sys_socket & errno, for also
30447         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30448         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30449
30450 2009-07-31  Jim Meyering  <meyering@redhat.com>
30451
30452         getloadavg: fix symbol name in comment
30453         * lib/getloadavg.c: Correct a typo I introduced when adding
30454         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30455         Matt Kraai spotted the problem.
30456
30457 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30458
30459         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30460         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30461         code also if ! defined N_NAME_POINTER.
30462         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30463         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30464         but the n_name member is a 12-byte array.
30465
30466 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30467
30468         update-copyright: generalize comment handling
30469         * build-aux/update-copyright: Handle copyright statements
30470         within more comment styles.
30471         Document usage.
30472         Report any file with an external copyright holder or parse failure.
30473
30474 2009-07-29  Jim Meyering  <meyering@redhat.com>
30475
30476         mktime: correct setting of REPLACE_MKTIME
30477         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30478
30479         update-copyright: new module
30480         * modules/update-copyright: New file.
30481         * build-aux/update-copyright: New file.
30482         * MODULES.html.sh (maint+release support): Add update-copyright.
30483
30484 2009-07-27  Bruno Haible  <bruno@clisp.org>
30485
30486         Fix compilation error when <ctime> is used and mktime is replaced.
30487         * lib/time.in.h (mktime): New declaration.
30488         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30489         REPLACE_MKTIME instead of defining mktime in config.h.
30490         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30491         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30492         Reported by Ross McFarland <rwmcfa1@neces.com>.
30493
30494 2009-07-27  Bruno Haible  <bruno@clisp.org>
30495
30496         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30497         Reported by Matt Kraai <mkraai@beckman.com>.
30498
30499 2009-07-25  Jim Meyering  <meyering@redhat.com>
30500
30501         maint.mk: avoid warnings about missing files
30502         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30503         diagnostic when .prev-version does not exist.
30504         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30505         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30506         nonexistent cfg.mk.
30507         Suggestions from Simon Josefsson.
30508
30509 2009-07-25  Bruno Haible  <bruno@clisp.org>
30510
30511         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30512         defined as macros. Needed on QNX 6.4.1.
30513         Reported by Matt Kraai <mkraai@beckman.com>.
30514
30515 2009-07-23  Jim Meyering  <meyering@redhat.com>
30516
30517         maint.mk: invoke "make dist" with a working value of XZ_OPT
30518         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30519
30520 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30521
30522         Make fseeko.c compile on QNX.
30523         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30524
30525 2009-07-22  Peter Simons  <simons@cryp.to>
30526
30527         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30528         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30529         * lib/md4.h: Likewise.
30530         * lib/md5.h: Likewise.
30531         * lib/sha1.h: Likewise.
30532         * lib/sha256.h: Likewise.
30533         * lib/sha512.h: Likewise.
30534
30535         tests-sha1: don't assign literal string to 'char *' variable
30536         * tests/test-sha1.c (main): Declare locals with "const" to match
30537         attributes of the right hand side.
30538
30539 2009-07-21  Eric Blake  <ebb9@byu.net>
30540
30541         dup2: fix more mingw problems
30542         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30543         fd to itself.
30544         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30545         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30546         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30547         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30548         care of mingw bugs.
30549
30550 2009-07-21  Jim Meyering  <meyering@redhat.com>
30551
30552         vc-list-files: avoid failure when /bin/sh is dash
30553         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30554         On some Debian based systems, /bin/sh is a symlink to dash, and running
30555         this command would omit the "/" following each 'tests' prefix:
30556           dash -x build-aux/vc-list-files -C . tests
30557         That is because bash and dash work differently:
30558           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30559           bash ok
30560           dash odd
30561
30562 2009-07-21  Eric Blake  <ebb9@byu.net>
30563
30564         dup2-tests: test previous patch
30565         * modules/dup2-tests: New file.
30566         * tests/test-dup2.c: Likewise.
30567         * tests/test-open.c (main): Avoid unspecified behavior.
30568         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30569         test.
30570
30571         dup2: work around mingw and cygwin 1.5 bug
30572         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30574         * modules/unistd (Makefile.am): Substitute it.
30575         * lib/unistd.in.h (dup2): Declare the replacement.
30576         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30577         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30578         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30579         * modules/execute (Depends-on): Add dup2.
30580         * modules/fseterr (Depends-on): Likewise.
30581         * modules/pipe (Depends-on): Likewise.
30582         * modules/posix_spawn-internal (Depends-on): Likewise.
30583
30584 2009-07-21  Bruno Haible  <bruno@clisp.org>
30585
30586         * modules/.gitattributes: New file.
30587
30588 2009-07-20  Bruno Haible  <bruno@clisp.org>
30589
30590         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30591         (main): Use it.
30592
30593 2009-07-20  Eric Blake  <ebb9@byu.net>
30594
30595         test-pipe: make a bit more robust.
30596         * tests/test-pipe.c (myerr): Allow error messages regardless of
30597         what we do to stderr.
30598         (test_pipe): Rearrange to avoid deadlock.
30599         (child_main): Try a larger read, to ensure we avoided deadlock.
30600         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30601         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30602         if misused.
30603
30604 2009-07-19  Jim Meyering  <meyering@redhat.com>
30605
30606         fts: avoid false-positive cycle-detection
30607         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30608         for each new command line argument.
30609
30610 2009-07-19  Bruno Haible  <bruno@clisp.org>
30611
30612         Fix build error on mingw with the modules sys_select and unistd.
30613         * modules/acl-tests (Depends-on): Add close.
30614         * modules/binary-io-tests (Depends-on): Likewise.
30615         * modules/closein-tests (Depends-on): Likewise.
30616         * modules/flock-tests (Depends-on): Likewise.
30617         * modules/fsync-tests (Depends-on): Likewise.
30618         * modules/lseek-tests (Depends-on): Likewise.
30619         * modules/pipe-tests (Depends-on): Likewise.
30620         * modules/posix_spawn-tests (Depends-on): Likewise.
30621         * modules/posix_spawnp-tests (Depends-on): Likewise.
30622         * modules/stat-time-tests (Depends-on): Likewise.
30623         * modules/yesno-tests (Depends-on): Likewise.
30624
30625 2009-07-19  Bruno Haible  <bruno@clisp.org>
30626
30627         Unify conditionals.
30628         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30629         macros, not at the compiler macros.
30630         * lib/pipe.c: Likewise.
30631         * lib/execute.c: Likewise.
30632         * lib/spawni.c: Likewise.
30633
30634 2009-07-19  Bruno Haible  <bruno@clisp.org>
30635
30636         Fix handling of closed stdin/stdout/stderr on mingw.
30637         * lib/w32spawn.h: Include unistd.h.
30638         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30639         file descriptor with O_NOINHERIT flag.
30640         (fd_safer_noinherit): New function, based on fd-safer.c.
30641         (dup_safer_noinherit): New function, based on dup-safer.c.
30642         (undup_safer_noinherit): New function.
30643         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30644         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30645         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30646         instead of fd_safer.
30647         * tests/test-pipe.c: Include <windows.h>.
30648         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30649         result.
30650
30651         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30652         from main.
30653         (test_pipe): Pass an extra argument for disambiguation.
30654         (main): Invoke parent_main or child_main.
30655
30656         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30657         consistently.
30658
30659 2009-07-18  Eric Blake  <ebb9@byu.net>
30660
30661         test-pipe: fix mingw build
30662         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30663
30664 2009-07-18  Bruno Haible  <bruno@clisp.org>
30665
30666         * modules/pipe-tests (Makefile.am): Fix typo.
30667
30668 2009-07-18  Eric Blake  <ebb9@byu.net>
30669
30670         error: fix mingw build
30671         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30672         Reported by Bruno Haible.
30673
30674         error: avoid undefined use of stdout
30675         * lib/error.c (error, error_at_line): Check that fd 1 is open
30676         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30677         is handling faults and the close_stdout module wants to report the
30678         detection of closed stdout as an error.
30679
30680 2009-07-17  Eric Blake  <ebb9@byu.net>
30681
30682         pipe: be robust in face of closed fds
30683         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30684         should cause child to misbehave.
30685         * modules/pipe-tests: New module.
30686         * tests/test-pipe.c: New file.
30687         * tests/test-pipe.sh: New file.
30688         Reported by Akim Demaille.
30689
30690 2009-07-14  Bruno Haible  <bruno@clisp.org>
30691
30692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30693         Reported by anonymous kc.
30694
30695 2009-07-07  Jim Meyering  <meyering@redhat.com>
30696
30697         maint.mk: don't look for translatable strings in *.m4 or *.mk
30698         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30699         when searching for translatable strings.
30700
30701 2009-07-05  Jim Meyering  <meyering@redhat.com>
30702
30703         remove superfluous parentheses in STREQ definition
30704         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30705         * lib/getugroups.c (STREQ): Likewise.
30706         * lib/fnmatch.c (STREQ): Likewise.
30707         Spotted by Bruno Haible.
30708
30709 2009-07-04  Jim Meyering  <meyering@redhat.com>
30710
30711         argv-iter: new module
30712         * MODULES.html.sh: Add argv-iter.
30713         * lib/argv-iter.c, lib/argv-iter.h: New files.
30714         * modules/argv-iter: New file.
30715         * modules/argv-iter-tests: New file.
30716         * tests/test-argv-iter.c: Test it.
30717
30718 2009-07-04  Bruno Haible  <bruno@clisp.org>
30719
30720         Fix assertion.
30721         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30722         contains more exact copies of a given entry than file2, leave the extra
30723         copies unpaired rather than aborting.
30724         Reported by Eric Blake.
30725
30726 2009-07-02  Bruno Haible  <bruno@clisp.org>
30727
30728         Speedup git-merge-changelog for git cherry-pick.
30729         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30730         (entries_mapping_get): New function, extracted from compute_mapping.
30731         (entries_mapping_reverse_get): New function.
30732         (compute_mapping): Add a 'full' argument. Return the result in a
30733         'struct entries_mapping'.
30734         (main): Update. Access the mappings through entries_mapping_get.
30735         Reported by Eric Blake.
30736
30737 2009-07-02  Bruno Haible  <bruno@clisp.org>
30738
30739         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30740         best_i.
30741
30742 2009-07-02  Bruno Haible  <bruno@clisp.org>
30743
30744         Speed up approximate search for matching ChangeLog entries.
30745         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30746         argument. Call fstrcmp_bounded instead of fstrcmp.
30747         (compute_mapping, try_split_merged_entry, main): Update callers.
30748
30749 2009-07-02  Bruno Haible  <bruno@clisp.org>
30750
30751         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30752
30753 2009-06-30  Bruno Haible  <bruno@clisp.org>
30754
30755         Reduce the number of uc_is_cased calls.
30756         * lib/unicase.h (casing_suffix_context_t): Add
30757         'first_char_except_ignorable' field.
30758         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30759         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30760         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30761         Update initializer.
30762         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30763         case-ignorable characters.
30764         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30765         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30766         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30767         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30768         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30769
30770 2009-06-30  Bruno Haible  <bruno@clisp.org>
30771
30772         Tests for module 'unicase/ignorable'.
30773         * modules/unicase/ignorable-tests: New file.
30774         * tests/unicase/test-ignorable.c: New file, generated by
30775         gen-uni-tables.
30776
30777         Tests for module 'unicase/cased'.
30778         * modules/unicase/cased-tests: New file.
30779         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30780         * tests/unicase/test-predicate-part1.h: New file, derived from
30781         tests/unictype/test-predicate-part1.h.
30782         * tests/unicase/test-predicate-part2.h: New file, same as
30783         tests/unictype/test-predicate-part2.h.
30784
30785         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30786         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30787         (output_casing_properties): New function.
30788         (main): Call it.
30789         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30790         * lib/unicase/cased.c: Include unictype/bitmap.h.
30791         (uc_is_cased): Define through a bitmap lookup.
30792         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30793         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30794         (uc_is_case_ignorable): Define through a bitmap lookup.
30795         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30796         lib/unictype/bitmap.h.
30797         (Depends-on): Add inline. Clean up.
30798         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30799         lib/unictype/bitmap.h.
30800         (Depends-on): Add inline. Clean up.
30801         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30802         recognition.
30803         * tests/unicase/test-u16-tolower.c (main): Likewise.
30804         * tests/unicase/test-u32-tolower.c (main): Likewise.
30805
30806 2009-06-30  Bruno Haible  <bruno@clisp.org>
30807
30808         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30809         * lib/unicase/u16-casemap.c: Likewise.
30810         * lib/unicase/u32-casemap.c: Likewise.
30811
30812 2009-06-29  Bruno Haible  <bruno@clisp.org>
30813
30814         Define u32_casefold as a wrapper around u32_ct_casefold.
30815         * lib/unicase/u32-casefold.c: Update.
30816         * modules/unicase/u32-casefold (Depends-on): Add
30817         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30818         unicase/empty-suffix-context. Clean up.
30819
30820         Define u16_casefold as a wrapper around u16_ct_casefold.
30821         * lib/unicase/u16-casefold.c: Update.
30822         * modules/unicase/u16-casefold (Depends-on): Add
30823         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30824         unicase/empty-suffix-context. Clean up.
30825
30826         Define u8_casefold as a wrapper around u8_ct_casefold.
30827         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30828         * lib/unicase/u8-casefold.c: Update.
30829         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30830         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30831
30832         Define u32_totitle as a wrapper around u32_ct_totitle.
30833         * lib/unicase/u32-totitle.c: Update.
30834         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30835         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30836
30837         Define u16_totitle as a wrapper around u16_ct_totitle.
30838         * lib/unicase/u16-totitle.c: Update.
30839         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30840         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30841
30842         Define u8_totitle as a wrapper around u8_ct_totitle.
30843         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30844         functions.
30845         (FUNC): Delegate to U_CT_TOTITLE.
30846         * lib/unicase/u8-totitle.c: Update.
30847         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30848         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30849
30850         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30851         invocation.
30852         * modules/unicase/u32-tolower (Depends-on): Add
30853         unicase/empty-prefix-context, unicase/empty-suffix-context.
30854
30855         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30856         invocation.
30857         * modules/unicase/u16-tolower (Depends-on): Add
30858         unicase/empty-prefix-context, unicase/empty-suffix-context.
30859
30860         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30861         * modules/unicase/u8-tolower (Depends-on): Add
30862         unicase/empty-prefix-context, unicase/empty-suffix-context.
30863
30864         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30865         invocation.
30866         * modules/unicase/u32-toupper (Depends-on): Add
30867         unicase/empty-prefix-context, unicase/empty-suffix-context.
30868
30869         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30870         invocation.
30871         * modules/unicase/u16-toupper (Depends-on): Add
30872         unicase/empty-prefix-context, unicase/empty-suffix-context.
30873
30874         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30875         * modules/unicase/u8-toupper (Depends-on): Add
30876         unicase/empty-prefix-context, unicase/empty-suffix-context.
30877
30878         New module 'unicase/u32-ct-casefold'.
30879         * lib/unicase/u32-ct-casefold.c: New file.
30880         * modules/unicase/u32-ct-casefold: New file.
30881
30882         New module 'unicase/u16-ct-casefold'.
30883         * lib/unicase/u16-ct-casefold.c: New file.
30884         * modules/unicase/u16-ct-casefold: New file.
30885
30886         New module 'unicase/u8-ct-casefold'.
30887         * lib/unicase/u8-ct-casefold.c: New file.
30888         * lib/unicase/u-ct-casefold.h: New file, derived from
30889         lib/unicase/u-casefold.h.
30890         * modules/unicase/u8-ct-casefold: New file.
30891
30892         New module 'unicase/u32-ct-totitle'.
30893         * lib/unicase/u32-ct-totitle.c: New file.
30894         * modules/unicase/u32-ct-totitle: New file.
30895
30896         New module 'unicase/u16-ct-totitle'.
30897         * lib/unicase/u16-ct-totitle.c: New file.
30898         * modules/unicase/u16-ct-totitle: New file.
30899
30900         New module 'unicase/u8-ct-totitle'.
30901         * lib/unicase/u8-ct-totitle.c: New file.
30902         * lib/unicase/u-ct-totitle.h: New file, derived from
30903         lib/unicase/u-totitle.h.
30904         * modules/unicase/u8-ct-totitle: New file.
30905
30906         New module 'unicase/u32-ct-tolower'.
30907         * lib/unicase/u32-ct-tolower.c: New file.
30908         * modules/unicase/u32-ct-tolower: New file.
30909
30910         New module 'unicase/u16-ct-tolower'.
30911         * lib/unicase/u16-ct-tolower.c: New file.
30912         * modules/unicase/u16-ct-tolower: New file.
30913
30914         New module 'unicase/u8-ct-tolower'.
30915         * lib/unicase/u8-ct-tolower.c: New file.
30916         * modules/unicase/u8-ct-tolower: New file.
30917
30918         New module 'unicase/u32-ct-toupper'.
30919         * lib/unicase/u32-ct-toupper.c: New file.
30920         * modules/unicase/u32-ct-toupper: New file.
30921
30922         New module 'unicase/u16-ct-toupper'.
30923         * lib/unicase/u16-ct-toupper.c: New file.
30924         * modules/unicase/u16-ct-toupper: New file.
30925
30926         New module 'unicase/u8-ct-toupper'.
30927         * lib/unicase/u8-ct-toupper.c: New file.
30928         * modules/unicase/u8-ct-toupper: New file.
30929
30930         Add context arguments to u*_casemap functions.
30931         * lib/unicase/unicasemap.h: Include unicase.h.
30932         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30933         suffix_context arguments.
30934         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30935         functions.
30936         (FUNC): Add prefix_context and suffix_context arguments. Use
30937         uc_is_cased and uc_is_case_ignorable.
30938         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30939         * lib/unicase/u16-casemap.c: Likewise.
30940         * lib/unicase/u32-casemap.c: Likewise.
30941         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30942         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30943         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30944         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30945         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30946         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30947
30948         New module 'unicase/u32-suffix-context'.
30949         * lib/unicase/u32-suffix-context.c: New file.
30950         * modules/unicase/u32-suffix-context: New file.
30951
30952         New module 'unicase/u16-suffix-context'.
30953         * lib/unicase/u16-suffix-context.c: New file.
30954         * modules/unicase/u16-suffix-context: New file.
30955
30956         New module 'unicase/u8-suffix-context'.
30957         * lib/unicase/u8-suffix-context.c: New file.
30958         * lib/unicase/u-suffix-context.h: New file.
30959         * modules/unicase/u8-suffix-context: New file.
30960
30961         New module 'unicase/empty-suffix-context'.
30962         * lib/unicase/empty-suffix-context.c: New file.
30963         * modules/unicase/empty-suffix-context: New file.
30964
30965         New module 'unicase/u32-prefix-context'.
30966         * lib/unicase/u32-prefix-context.c: New file.
30967         * modules/unicase/u32-prefix-context: New file.
30968
30969         New module 'unicase/u16-prefix-context'.
30970         * lib/unicase/u16-prefix-context.c: New file.
30971         * modules/unicase/u16-prefix-context: New file.
30972
30973         New module 'unicase/u8-prefix-context'.
30974         * lib/unicase/u8-prefix-context.c: New file.
30975         * lib/unicase/u-prefix-context.h: New file.
30976         * lib/unicase/context.h: New file.
30977         * modules/unicase/u8-prefix-context: New file.
30978
30979         New module 'unicase/empty-prefix-context'.
30980         * lib/unicase/empty-prefix-context.c: New file.
30981         * modules/unicase/empty-prefix-context: New file.
30982
30983         New module 'unicase/ignorable'.
30984         * lib/unicase/ignorable.c: New file.
30985         * modules/unicase/ignorable: New file.
30986
30987         New module 'unicase/cased'.
30988         * lib/unicase/caseprop.h: New file.
30989         * lib/unicase/cased.c: New file.
30990         * modules/unicase/cased: New file.
30991
30992         New functions for case mapping of substrings.
30993         * lib/unicase.h (casing_prefix_context_t): New type.
30994         (unicase_empty_prefix_context): New variable.
30995         (u8_casing_prefix_context, u16_casing_prefix_context,
30996         u32_casing_prefix_context, u8_casing_prefixes_context,
30997         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30998         declarations.
30999         (casing_suffix_context_t): New type.
31000         (unicase_empty_suffix_context): New variable.
31001         (u8_casing_suffix_context, u16_casing_suffix_context,
31002         u32_casing_suffix_context, u8_casing_suffixes_context,
31003         u16_casing_suffixes_context, u32_casing_suffixes_context,
31004         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
31005         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
31006         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
31007         declarations.
31008
31009 2009-06-28  Jim Meyering  <meyering@redhat.com>
31010
31011         boostrap: indent only with spaces
31012         * build-aux/bootstrap: Indent only with spaces, never TABs.
31013
31014         bootstrap: split long lines
31015         * build-aux/bootstrap: Keep line length < 80.
31016
31017         bootstrap: sync from coreutils
31018         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
31019         just as autoreconf does.  Verify a list of prerequisite
31020         package-name,version-number pairs if defined in bootstrap.conf.
31021         Refer to README-prereq, if prerequisites are not satisfied.
31022
31023 2009-06-27  Eric Blake  <ebb9@byu.net>
31024
31025         tests: add test for bogus NULL definition
31026         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
31027         * tests/test-stdlib.c: Likewise.
31028         * tests/test-string.c: Likewise.
31029         * tests/test-locale.c: Likewise.
31030         * tests/test-unistd.c: Likewise.
31031         * modules/stdio-tests (Depends-on): Add verify.
31032         * modules/stdlib-tests (Depends-on): Likewise.
31033         * modules/string-tests (Depends-on): Likewise.
31034         * modules/locale-tests (Depends-on): Likewise.
31035         * modules/unistd-tests (Depends-on): Likewise.
31036
31037 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
31038
31039         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
31040         self-explaining comment.
31041         * m4/selinux-selinux-h: Update serial.
31042         (gl_LIBSELINUX): New macro, adding a warning for missing development
31043         packages to code extracted from...
31044         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
31045         Add warning for missing development packages here, too.
31046
31047 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
31048
31049         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
31050
31051 2009-06-25  Eric Blake  <ebb9@byu.net>
31052
31053         version-etc: fix regression
31054         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
31055         gcc.
31056         (version_etc): Use it, to catch bugs with trailing NULL.
31057         * lib/version-etc.c (version_etc_arn): Delete unused argument.
31058         (version_etc_va): Fix logic bug.
31059         * modules/version-etc-tests: Add test.
31060         * tests/test-version-etc.c: New file.
31061         * tests/test-version-etc.sh: Likewise.
31062
31063 2009-06-25  Sam Steingold  <sds@gnu.org>
31064
31065         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
31066         mbtowc declaration.
31067
31068 2009-06-25  Eric Blake  <ebb9@byu.net>
31069
31070         fpurge: migrate into <stdio.h>
31071         * lib/fpurge.h: Delete...
31072         * lib/stdio.in.h (fpurge): ...and declare here, instead.
31073         * lib/fpurge.c (fpurge): Change declaring header.
31074         * modules/fpurge (Files): Drop deleted file.
31075         (Depends-on): Add stdio.
31076         (configure.ac): Set witness.
31077         * modules/stdio (Makefile.am): Support fpurge macros.
31078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31079         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
31080         * lib/fflush.c: Update client.
31081         * tests/test-fpurge.c: Likewise.
31082         * NEWS: Mention the change.
31083
31084 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31085
31086         * lib/argp-version-etc.c (program_authors): Add const
31087         qualifier.
31088         * lib/version-etc.c: Fix typos in the comments.
31089         * modules/argp-version-etc: Depends on version-etc.
31090
31091 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31092
31093         argp-version-etc: new module.
31094
31095         * lib/argp-version-etc.c: New file.
31096         * lib/argp-version-etc.h: New file.
31097         * modules/argp-version-etc: New file.
31098         * modules/argp-version-etc-tests: New file.
31099         * tests/test-argp-version-etc.c: New test.
31100         * tests/test-argp-version-etc-1.sh: New test.
31101
31102 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31103
31104         Provide additional interfaces and documentation for version-etc
31105         module.
31106
31107         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
31108         interfaces.
31109         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
31110         prototypes.
31111
31112 2009-06-24  Bruno Haible  <bruno@clisp.org>
31113
31114         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
31115         HAVE_LIB${NAME} macro.
31116         Reported by Sam Steingold <sds@gnu.org>.
31117
31118 2009-06-23  Simon Josefsson  <simon@josefsson.org>
31119
31120         * modules/hash-tests (test_hash_LDADD): Link to libintl when
31121         needed.
31122
31123 2009-06-21  Bruno Haible  <bruno@clisp.org>
31124
31125         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
31126         work.
31127         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
31128         together with LIB${NAME}, LTLIB${NAME}.
31129         Reported by Sam Steingold <sds@gnu.org>.
31130
31131 2009-06-20  Jim Meyering  <meyering@redhat.com>
31132
31133         tests: make sc_require_test_exit_idiom more generic
31134         * top/maint.mk (Exit_witness_file): New overridable variable.
31135         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
31136         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
31137
31138 2009-06-19  Jim Meyering  <meyering@redhat.com>
31139
31140         hash: reverse order of src/dst parameters in an internal interface
31141         * lib/hash.c (transfer_entries): Reverse order of parameters to
31142         put DST before SRC.  Adjust callers.
31143
31144         tests: test-hash: avoid wholesale duplication
31145         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
31146         Instead, use a loop and add a single conditional.
31147
31148         tests: test-hash: allow seed selection via a command line argument
31149         * tests/test-hash.c (get_seed): New function.
31150         (main): Use it.
31151
31152 2009-06-19  Eric Blake  <ebb9@byu.net>
31153
31154         hash: avoid memory leak on allocation failure
31155         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
31156         failure.  Factor repeated algorithm...
31157         (transfer_entries): ...into new helper routine.
31158         (hash_delete): React to hash_rehash return value.
31159
31160         hash: reduce memory pressure in hash_rehash no-op case
31161         * lib/hash.c (next_prime): Avoid overflow.
31162         (hash_initialize): Factor bucket size computation...
31163         (compute_bucket_size): ...into new helper function.
31164         (hash_rehash): Use new function and open coding to reduce memory
31165         pressure, and avoid a memory leak in USE_OBSTACK code.
31166         Reported by Jim Meyering.
31167
31168 2009-06-18  Eric Blake  <ebb9@byu.net>
31169
31170         hash: make rotation more obvious
31171         * modules/hash (Depends-on): Add bitrotate and stdint.
31172         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
31173         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
31174         (SIZE_MAX): Rely on headers for definition.
31175         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
31176         (raw_hasher): Use rotr_sz.
31177         Suggested by Jim Meyering.
31178
31179         hash: fix memory leak in last patch
31180         * lib/hash.c (hash_rehash): Avoid memory leak.
31181
31182         hash: avoid no-op rehashing
31183         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
31184
31185         hash: provide default callback functions
31186         * lib/hash.c (raw_hasher, raw_comparator): New functions.
31187         (hash_initialize): Use them as defaults.
31188         * tests/test-hash.c (main): Test this.
31189
31190         hash: minor optimization
31191         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
31192         when possible.
31193         (hash_initialize): Document this promise.
31194         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
31195         * tests/test-hash.c (hash_compare_strings): Test this.
31196
31197 2009-06-18  Bruno Haible  <bruno@clisp.org>
31198
31199         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
31200         going to be replaced anyway.
31201
31202 2009-06-18  Bruno Haible  <bruno@clisp.org>
31203
31204         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
31205         in one place.
31206         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
31207         be replaced anyway.
31208
31209 2009-06-18  Eric Blake  <ebb9@byu.net>
31210
31211         hash: check for resize before insertion
31212         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
31213         threshold before insertion, so that a pathological hash_rehash
31214         that fills every bucket can still trigger another rehash.
31215
31216 2009-06-18  Jim Meyering  <meyering@redhat.com>
31217
31218         hash-tests: add a loop around the small tests
31219         * tests/test-hash.c (main): Repeat small tests with selected
31220         small initial table sizes.
31221
31222 2009-06-17  Eric Blake  <ebb9@byu.net>
31223
31224         hash: minor cleanups
31225         * lib/hash.h (hash_entry): Make opaque, by moving...
31226         * lib/hash.c (hash_entry): ...here.
31227         (hash_insert): Clarify restrictions on what can be inserted.
31228         (hash_get_next): Clarify when it is safe to remove an element
31229         during traversal.
31230         (check_tuning): Skip verification when tuning is known safe.
31231         (hash_initialize): Clarify restrictions on tuning.
31232
31233 2009-06-17  Jim Meyering  <jim@meyering.net>
31234         and Eric Blake  <ebb9@byu.net>
31235
31236         hash-tests: new module
31237         * modules/hash-tests: New file.
31238         * tests/test-hash.c: New file.
31239
31240 2009-06-17  Eric Blake  <ebb9@byu.net>
31241
31242         strstr-simple: document new module
31243         * MODULES.html.sh: Document new module.
31244
31245         strstr, strcasestr: replace on platforms with broken memchr
31246         * modules/strstr: Split into...
31247         * modules/strstr-simple: ...new module that does not care about
31248         performance, but does care about glibc bug.
31249         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
31250         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
31251         if platform memchr is broken, per Debian bug 521737.
31252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
31253         memchr.
31254         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
31255         * doc/posix-functions/strstr.texi (strstr): Document the fix.
31256         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31257         * modules/mountlist (Depends-on): Add strstr-simple.
31258         * modules/gen-uni-tables (Depends-on): Likewise.
31259         * modules/argz (Depends-on): Add strstr.
31260
31261 2009-06-17  Bruno Haible  <bruno@clisp.org>
31262
31263         * modules/posix_spawn-internal (Depends-on): Add errno.
31264
31265 2009-06-17  Bruno Haible  <bruno@clisp.org>
31266
31267         Define missing ESTALE on Interix 3.5.
31268         * lib/errno.in.h (ESTALE): Assign a value if missing.
31269         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
31270         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
31271         missing.
31272         * doc/posix-headers/errno.texi: Mention the Interix bug.
31273         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
31274
31275 2009-06-15  Eric Blake  <ebb9@byu.net>
31276
31277         memchr, memchr2: add valgrind exception
31278         * lib/memchr.valgrind: New file.
31279         * lib/memchr2.valgrind: New file.
31280         * modules/memchr (Files): Distribute valgrind file.
31281         * modules/memchr2 (Files): Likewise.
31282
31283         docs: memchr is no longer obsolete
31284         * MODULES.html.sh: Move memchr from obsolete to string.h section.
31285         * lib/string.in.h (memchr): Simplify logic.
31286
31287 2009-06-14  Jim Meyering  <meyering@redhat.com>
31288
31289         link-follow: fix the "checking..." message to not mention trailing slash
31290         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
31291         never considered trailing slashes.
31292
31293 2009-06-14  Bruno Haible  <bruno@clisp.org>
31294
31295         * m4/memchr.m4: Mention also the bug on IA-64.
31296         * doc/posix-functions/memchr.texi: Likewise.
31297
31298 2009-06-12  Eric Blake  <ebb9@byu.net>
31299
31300         memchr: detect broken x86_64 and alpha implementations
31301         * modules/memchr-tests (Depends-on): Move mmap detection...
31302         * modules/memchr (Depends-on): ...here.
31303         (configure.ac): Set indicator.
31304         * lib/string.in.h (memchr): Declare replacement.
31305         * modules/string (Makefile.am): Trigger replacement.
31306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31307         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
31308         bugs.
31309         * doc/posix-functions/memchr.texi (memchr): Document the bug.
31310         * modules/getpagesize (License): Relax license.
31311
31312 2009-06-11  Bruno Haible  <bruno@clisp.org>
31313
31314         * lib/idpriv.h: Add more references.
31315
31316 2009-06-08  Bruno Haible  <bruno@clisp.org>
31317
31318         Tests for module 'idpriv-droptemp'.
31319         * modules/idpriv-droptemp-tests: New file.
31320         * tests/test-idpriv-droptemp.sh: New file.
31321         * tests/test-idpriv-droptemp.su.sh: New file.
31322         * tests/test-idpriv-droptemp.c: New file.
31323
31324         New module 'idpriv-droptemp'.
31325         * lib/idpriv-droptemp.c: New file.
31326         * modules/idpriv-droptemp: New file.
31327
31328 2009-06-08  Bruno Haible  <bruno@clisp.org>
31329
31330         Tests for module 'idpriv-drop'.
31331         * modules/idpriv-drop-tests: New file.
31332         * tests/test-idpriv-drop.sh: New file.
31333         * tests/test-idpriv-drop.su.sh: New file.
31334         * tests/test-idpriv-drop.c: New file.
31335
31336         New module 'idpriv-drop'.
31337         * lib/idpriv.h: New file.
31338         * lib-idpriv-drop.c: New file.
31339         * m4/idpriv.m4: New file.
31340         * modules/idpriv-drop: New file.
31341
31342 2009-06-08  Bruno Haible  <bruno@clisp.org>
31343
31344         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
31345         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31346         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31347         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31348         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31349         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31350         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31351
31352 2009-06-08  Eric Blake  <ebb9@byu.net>
31353
31354         test-strstr: use memory fence, when possible
31355         * tests/test-strstr.c (main): Use memory fence, in order to be
31356         more likely to trigger Debian bug 521737.
31357         * modules/strstr-tests (Files): Pull in additional files.
31358
31359         memchr: no longer obsolete, for wider field testing
31360         * modules/memchr (Status, Notice): Delete, this module is no
31361         longer obsolete.
31362         * modules/vasnprintf (Depends-on): Add memchr.
31363
31364 2009-06-07  Jim Meyering  <meyering@redhat.com>
31365
31366         hash: declare some functions with the warn_unused_result attribute
31367         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
31368
31369 2009-06-07  Bruno Haible  <bruno@clisp.org>
31370
31371         * tests/test-alignof.c: Don't test int64_t if it does not exist.
31372         Reported by Eric Blake.
31373
31374 2009-06-06  Eric Blake  <ebb9@byu.net>
31375
31376         test-alignof: fix typo with long double
31377         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
31378         compiler error.
31379
31380 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
31381
31382         Escape non-texinfo { and }s.
31383         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
31384         markup error.
31385
31386 2009-06-04  Jim Meyering  <meyering@redhat.com>
31387
31388         gitlog-to-changelog: don't infloop on an empty commit log
31389         * build-aux/gitlog-to-changelog: Warn about an empty log message.
31390         Reported by Boris Petersen <transacid@centerim.org>.
31391
31392 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
31393
31394         version-etc: extend for packagers
31395         Add three new configure options, intended for packagers:
31396           --with-packager="packager name"
31397           --with-packager-version="packager-specific version"
31398           --with-packager-bug-reports="packager bug reporting"
31399         An example with coreutils:
31400           $ ./configure \
31401             --with-packager=Gentoo \
31402             --with-packager-bug-report=http://bugs.gentoo.org/ \
31403             --with-packager-version="patchset 1.6"
31404           $ ./src/ls --version | head -n2
31405           ls (GNU coreutils) 7.1-dirty
31406           Packaged by Gentoo (patchset 1.6)
31407         Note that the bug reporting info via --help doesn't show up because
31408         coreutils uses its own custom emit_bug_reporting_address() implementation
31409         in src/system.h.  If it didn't, it'd look like:
31410           $ ./src/ls --help | tail -n4
31411           Report bugs to <bug-coreutils@gnu.org>.
31412           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31413           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31414           General help using GNU software: <http://www.gnu.org/gethelp/>.
31415         * lib/version-etc.c: Print new information, if provided.
31416         * m4/version-etc.m4: New file.
31417         * modules/version-etc (Files): Add m4/version-etc.m4.
31418         (configure.ac): Add gl_VERSION_ETC.
31419
31420 2009-05-31  Bruno Haible  <bruno@clisp.org>
31421
31422         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31423         and 'int64_t'.
31424         * modules/alignof-tests (Dependencies): Add stdint.
31425         Reported by Eric Blake.
31426
31427 2009-05-31  Bruno Haible  <bruno@clisp.org>
31428
31429         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31430         restriction due to compiler bugs.
31431         Reported by Eric Blake.
31432
31433 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31434             Bruno Haible  <bruno@clisp.org>
31435
31436         Fix test-alignof failure.
31437         * lib/alignof.h (alignof_slot): New macro.
31438         (alignof_type): New macro, with the same semantics as the previous
31439         'alignof'.
31440         (alignof): Alias to alignof_slot.
31441         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31442         check that the results are usable as constant expressions.
31443
31444 2009-05-31  Bruno Haible  <bruno@clisp.org>
31445
31446         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31447         * tests/test-memchr.c (main): Check that memchr does not read past the
31448         first occurrence of the byte.
31449         * tests/test-strstr.c (main): Update comment.
31450         Suggested by Eric Blake.
31451
31452 2009-05-30  Bruno Haible  <bruno@clisp.org>
31453
31454         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31455         detail how to use dumpbin.
31456         Reported by David Byron <dbyron@dbyron.com>.
31457
31458 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31459
31460         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31461
31462 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31463
31464         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31465
31466 2009-05-28  Bruno Haible  <bruno@clisp.org>
31467
31468         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31469         build-aux/ files.
31470
31471 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31472
31473         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31474
31475 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31476
31477         * gnulib-tool (sed_transform_main_lib_file)
31478         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31479         regexps.
31480
31481 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31482
31483         * tests/test-strstr.c: Add another self-test.
31484         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31485         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31486
31487 2009-05-23  Bruno Haible  <bruno@clisp.org>
31488
31489         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31490         change.
31491
31492 2009-05-21  Bruno Haible  <bruno@clisp.org>
31493
31494         Simplify use of mode_t varargs.
31495         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31496         uses 'mode_t' or 'int'.
31497         * lib/openat.c (openat): Likewise.
31498         * lib/open-safer.c (open_safer): Likewise.
31499         * m4/mode_t.m4: New file.
31500         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31501         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31502         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31503         * modules/open (Files): Add m4/mode_t.m4.
31504         * modules/openat (Files): Likewise.
31505         * modules/fcntl-safer (Files): Likewise.
31506         Suggested by Eric Blake.
31507
31508 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31509
31510         * doc/glibc-functions/fallocate.texi: New file.
31511         * doc/gnulib.texi: Include it.
31512
31513 2009-05-21  Eric Blake  <ebb9@byu.net>
31514             Bruno Haible  <bruno@clisp.org>
31515
31516         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31517         invocations.
31518         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31519
31520 2009-05-21  Eric Blake  <ebb9@byu.net>
31521             Bruno Haible  <bruno@clisp.org>
31522
31523         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31524         include_next. Fix of 2008-11-20 commit.
31525         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31526         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31527         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31528         NEXT_MATH_H.
31529         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31530         instead of NEXT_MATH_H.
31531
31532 2009-05-21  Bruno Haible  <bruno@clisp.org>
31533
31534         Avoid redefinition warnings for SIZE_MAX.
31535         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31536         Reported by Simon Josefsson.
31537
31538 2009-05-21  Bruno Haible  <bruno@clisp.org>
31539
31540         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31541         AC_CACHE_VAL.
31542
31543 2009-05-20  Bruno Haible  <bruno@clisp.org>
31544
31545         Make zeroptr.h work on mingw.
31546         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31547         mprotect.
31548         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31549         * modules/memchr2-tests (configure.ac): Likewise.
31550         * modules/memcmp-tests (configure.ac): Likewise.
31551         * modules/memmem-tests (configure.ac): Likewise.
31552         * modules/memrchr-tests (configure.ac): Likewise.
31553         Reported by Simon Josefsson.
31554
31555 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31556
31557         * tests/test-glob.c: Include string.h for strcmp prototype.
31558
31559 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31560
31561         * modules/getdelim (Depends-on): Add explicit stdint, although it
31562         was implicitly already pulled in via realloc-posix.
31563         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31564
31565 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31566
31567         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31568         G. Christensen" <tgc@jupiterrise.com>.
31569         * m4/sys_socket_h.m4: Check for sa_family_t.
31570         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31571         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31572         * tests/test-sys_socket.c: Check that sa_family_t works.
31573
31574 2009-05-18  Eric Blake  <ebb9@byu.net>
31575
31576         maint.mk: allow gnulib_dir in VPATH build
31577         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31578
31579 2009-05-15  Jim Meyering  <meyering@redhat.com>
31580
31581         maint.mk: Give gnulib_dir a default definition.
31582         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31583         Thus, most packages no longer need to specify this variable in cfg.mk
31584
31585 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31586
31587         rename.m4: fix typos that would make non-mingw cross-configure fail
31588         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31589
31590 2009-05-13  Eric Blake  <ebb9@byu.net>
31591
31592         mmap-anon: avoid out-of-order autoconf expansion
31593         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31594         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31595         * modules/memchr-tests (Depends-on): Add extensions.
31596         * modules/memchr2-tests (Depends-on): Add extensions.
31597         * modules/memcmp-tests (Depends-on): Add extensions.
31598         * modules/memmem-tests (Depends-on): Add extensions.
31599         * modules/memrchr-tests (Depends-on): Add extensions.
31600
31601 2009-05-13  Bruno Haible  <bruno@clisp.org>
31602
31603         Make some tests ISO C 99 compliant.
31604         * tests/zerosize-ptr.h: New file.
31605         * tests/test-memchr.c: Include zerosize-ptr.h.
31606         (main): Use a zero-size object pointer instead of NULL.
31607         * tests/test-memchr2.c: Include zerosize-ptr.h.
31608         (main): Use a zero-size object pointer instead of NULL.
31609         * tests/test-memcmp.c: Include zerosize-ptr.h.
31610         (main): Use a zero-size object pointer instead of NULL.
31611         * tests/test-memmem.c: Include zerosize-ptr.h.
31612         (main): Use a zero-size object pointer instead of NULL.
31613         * tests/test-memrchr.c: Include zerosize-ptr.h.
31614         (main): Use a zero-size object pointer instead of NULL.
31615         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31616         m4/mmap-anon.m4.
31617         (Depends-on): Add getpagesize.
31618         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31619         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31620         m4/mmap-anon.m4.
31621         (Depends-on): Add getpagesize.
31622         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31623         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31624         m4/mmap-anon.m4.
31625         (Depends-on): Add getpagesize.
31626         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31627         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31628         m4/mmap-anon.m4.
31629         (Depends-on): Add getpagesize.
31630         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31631         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31632         m4/mmap-anon.m4.
31633         (Depends-on): Add getpagesize.
31634         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31635
31636 2009-05-12  Bruno Haible  <bruno@clisp.org>
31637
31638         Tests for module 'alignof'.
31639         * modules/alignof-tests: New file.
31640         * tests/test-alignof.c: New file.
31641
31642 2009-05-12  Bruno Haible  <bruno@clisp.org>
31643
31644         Fix alignof macro.
31645         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31646         vendor compilers that are always correct.
31647
31648 2009-05-12  Bruno Haible  <bruno@clisp.org>
31649
31650         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31651         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31652         not whether its fully works.
31653
31654 2009-05-12  Bruno Haible  <bruno@clisp.org>
31655
31656         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31657
31658 2009-05-12  Jim Meyering  <meyering@redhat.com>
31659
31660         * top/maint.mk: Adjust backslash alignment.
31661
31662 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31663
31664         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31665
31666 2009-05-11  Eric Blake  <ebb9@byu.net>
31667
31668         argp: avoid undefined behavior
31669         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31670         macros.
31671
31672 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31673
31674         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31675         user.name to prevent git commit from complaining.
31676
31677 2009-05-10  Bruno Haible  <bruno@clisp.org>
31678
31679         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31680         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31681         it rewrites every file name only once.
31682         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31683
31684 2009-05-08  Bruno Haible  <bruno@clisp.org>
31685
31686         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31687         instead of 'max'.
31688
31689 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31690
31691         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31692         sockaddr_storage test.
31693
31694 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31695
31696         * modules/sys_socket (Makefile.am): Substitute
31697         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31698         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31699         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31700         * tests/test-sys_socket.c: Check sockaddr_storage.
31701
31702 2009-05-08  Bruno Haible  <bruno@clisp.org>
31703
31704         New module 'alignof'.
31705         * lib/alignof.h: New file.
31706         * modules/alignof: New file.
31707
31708 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31709             Bruno Haible  <bruno@clisp.org>
31710
31711         Fix test-file-has-acl on FreeBSD.
31712         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31713         mask is implicitly added.
31714         * tests/test-file-has-acl.c: Include <signal.h>.
31715         (main): Terminate the test after 5 seconds.
31716         * modules/acl-tests (configure.ac): Check for alarm function.
31717
31718 2009-05-04  Bruno Haible  <bruno@clisp.org>
31719
31720         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31721         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31722         * modules/errno (configure.ac): Drop AC_REQUIRE.
31723         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31724         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31725
31726 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31727
31728         * modules/glob-tests: New module.
31729         * tests/test-glob.c: Add.
31730
31731 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31732
31733         * modules/fnmatch-tests: New module.
31734         * tests/test-fnmatch.c: Add.
31735
31736 2009-05-04  Eric Blake  <ebb9@byu.net>
31737
31738         maint: make the new no-submodule-changes rule VPATH-safe
31739         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31740
31741 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31742             Bruno Haible  <bruno@clisp.org>
31743
31744         acl: Fix infinite loop on FreeBSD.
31745         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31746         of return value from acl_get_entry.
31747         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31748         Likewise.
31749
31750 2009-05-03  Bruno Haible  <bruno@clisp.org>
31751
31752         * lib/acl-internal.h (acl_entries): Clarify return value.
31753         * lib/acl_entries.c (acl_entries): Likewise.
31754
31755 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31756
31757         Bug fix in acl module.
31758         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31759
31760 2009-05-03  Bruno Haible  <bruno@clisp.org>
31761
31762         Create gperf-generated file in the source dir, not in the build dir.
31763         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31764         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31765         * modules/unicase/locale-language (unicase/locale-languages.h):
31766         Likewise.
31767         * modules/unicase/special-casing (unicase/special-casing-table.h):
31768         Likewise.
31769         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31770         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31771         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31772         Reported by Ralf Wildenhues.
31773
31774 2009-05-03  Bruno Haible  <bruno@clisp.org>
31775
31776         * modules/fnmatch (Description, configure.ac): Taken from
31777         fnmatch-posix.
31778         * modules/fnmatch-posix: Turn into a symbolic reference to the
31779         'fnmatch' module, and deprecate.
31780         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31781
31782 2009-05-03  Bruno Haible  <bruno@clisp.org>
31783
31784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31785         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31786         Reported by Ralf Wildenhues.
31787
31788 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31789
31790         * m4/fnmatch.m4: Fix fnmatch re-define.
31791
31792 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31793
31794         priv-set: new module and tests; adapt write-any-file
31795         * lib/priv-set.c: New file.
31796         * lib/priv-set.h: New file.
31797         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31798         * lib/write-any-file.c: Simplify by using priv-set module.
31799         * m4/priv-set.m4: New file.
31800         * modules/priv-set: New file.
31801         * modules/unlinkdir: Add dependency on priv-set module.
31802         * modules/write-any-file: Likewise.
31803
31804         Tests for module 'priv-set'.
31805         * modules/priv-set-tests: New file.
31806         * tests/test-priv-set.c: New file.
31807
31808 2009-05-03  Jim Meyering  <meyering@redhat.com>
31809             Bruno Haible  <bruno@clisp.org>
31810
31811         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31812         use the converted UTF-8 variant of the name instead.
31813
31814 2009-05-03  Jim Meyering  <meyering@redhat.com>
31815
31816         tests: tighten some getdate tests
31817         * tests/test-getdate.c (main): Tighten tests: require equality,
31818         not just greater than.  Set TZ envvar to UTC0.
31819
31820 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31821
31822         getdate: correctly interpret "next monday" when run on a Monday
31823         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31824         that e.g., "next tues" (when run on a tuesday) results in a date
31825         that is one week in the future, and not today's date.
31826         I.e., add a week when the wday is the same as the current one.
31827         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31828         and earlier by Martin Bernreuther and Jan Minář.
31829         * tests/test-getdate.c (main): Check that "next DAY" is always in
31830         the future and that "last DAY" is always in the past.
31831
31832 2009-05-02  Jim Meyering  <meyering@redhat.com>
31833
31834         build: ensure that a release build fails when a submodule is unclean
31835         * top/maint.mk (no-submodule-changes): New rule.
31836         (alpha beta major): Depend on it.
31837
31838 2009-05-02  Bruno Haible  <bruno@clisp.org>
31839
31840         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31841         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31842         shell variable gl_fnmatch_required to detect which variant is
31843         requested.
31844         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31845         gl_FUNC_FNMATCH_POSIX.
31846         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31847         exclude fnmatch-posix.
31848
31849 2009-05-02  Bruno Haible  <bruno@clisp.org>
31850
31851         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31852         * modules/mbsrtowcs (License): Change to LGPLv2+.
31853         * modules/strnlen1 (License): Likewise.
31854         Reported by Simon Josefsson.
31855
31856 2009-05-02  Bruno Haible  <bruno@clisp.org>
31857
31858         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31859         "cross".
31860         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31861         gnulib-tool was called with option --source-base=lib.
31862
31863 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31864
31865         Use automake *-local hooks without commands, for extensibility.
31866         * modules/localcharset (Makefile.am): Rename install-exec-local
31867         rule to install-exec-localcharset, and make it a prerequisite of
31868         install-exec-local.  Likewise, rename the uninstall-local rule to
31869         uninstall-localcharset, and make it a prerequisite of the former.
31870
31871 2009-05-01  Bruno Haible  <bruno@clisp.org>
31872
31873         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31874         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31875         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31877         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31878         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31879         m4/locale-zh.m4, m4/codeset.m4.
31880
31881         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31882         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31883         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31884         m4/locale-zh.m4.
31885
31886         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31887         REPLACE_WCRTOMB if mbstate_t must be replaced.
31888         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31889         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31890
31891 2009-05-01  Bruno Haible  <bruno@clisp.org>
31892
31893         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31894         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31895         dngettext, dcngettext, textdomain, bindtextdomain,
31896         bind_textdomain_codeset): Undefine before redefining.
31897
31898 2009-04-30  Bruno Haible  <bruno@clisp.org>
31899
31900         Fix bug introduced on 2009-04-25.
31901         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31902         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31903         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31904         is defined.
31905         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31906         is defined.
31907         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31908         is defined.
31909         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31910
31911 2009-04-28  Bruno Haible  <bruno@clisp.org>
31912
31913         Comment tweaks.
31914         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31915         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31916         * lib/unicase.h (u*_casexfrm): Likewise.
31917         Reported by Paolo Bonzini.
31918
31919 2009-04-28  Bruno Haible  <bruno@clisp.org>
31920
31921         Fix a compilation error.
31922         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31923         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31924         Reported by Jim Meyering.
31925
31926 2009-04-27  Bruno Haible  <bruno@clisp.org>
31927
31928         New module 'libunistring'.
31929         * modules/libunistring: New file.
31930         * m4/libunistring.m4: New file.
31931         * MODULES.html.sh (Unicode string functions): Add it.
31932
31933 2009-04-27  Eric Blake  <ebb9@byu.net>
31934
31935         maint.mk: allow package-specific header to provide <config.h>
31936         * top/maint.mk (sc_require_config_h): New variable.
31937         (sc_require_config_h, sc_require_config_h_first): Use it.
31938
31939 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31940
31941         * top/maint.mk (sc_avoid_if_before_free): Except
31942         useless-if-before-free script.
31943
31944 2009-04-27  Eric Blake  <ebb9@byu.net>
31945
31946         maintainer-makefile: depend on all required helper scripts
31947         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31948         useless-if-before-free.
31949         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31950         version, rather than assuming gnulib checkout is available.
31951         Reported by Simen Josefsson.
31952
31953 2009-04-26  Bruno Haible  <bruno@clisp.org>
31954
31955         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31956         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31957         "../" or "..".
31958
31959 2009-04-26  Bruno Haible  <bruno@clisp.org>
31960
31961         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31962         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31963         AC_LIB_HAVE_LINKFLAGS.
31964
31965 2009-04-26  Bruno Haible  <bruno@clisp.org>
31966
31967         Simplify calling convention of u*_conv_from_encoding.
31968         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31969         u32_conv_from_encoding): Expect a resultbuf argument and return the
31970         result directly as a pointer.
31971         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31972         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31973         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31974         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31975         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31976         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31977         Update.
31978         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31979         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31980         * lib/vasnprintf.c (VASNPRINTF): Update.
31981         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31982         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31983         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31984         * NEWS: Mention the change.
31985
31986 2009-04-26  Bruno Haible  <bruno@clisp.org>
31987
31988         Simplify calling convention of u*_conv_to_encoding.
31989         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31990         u32_conv_to_encoding): Expect a resultbuf argument and return the
31991         result directly as a pointer.
31992         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31993         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31994         freeing scaled_offsets if mem_iconveha failed.
31995         * lib/unicase/u-casexfrm.h (FUNC): Update.
31996         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31997         * lib/vasnprintf.c (VASNPRINTF): Update.
31998         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31999         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
32000         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
32001         * NEWS: Mention the change.
32002
32003 2009-04-26  Bruno Haible  <bruno@clisp.org>
32004
32005         Avoid test failures on AIX and OSF/1.
32006         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
32007         malloc(0).
32008         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32009         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32010         Likewise.
32011         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
32012         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
32013         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
32014         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
32015         * doc/posix-functions/malloc.texi: Document the portability problem
32016         related to malloc(0).
32017
32018 2009-04-26  Bruno Haible  <bruno@clisp.org>
32019
32020         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
32021         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
32022         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
32023
32024 2009-04-25  Bruno Haible  <bruno@clisp.org>
32025
32026         Avoid link error when creating a namespace clean library.
32027         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
32028         as macro with arguments if already defined as an alias.
32029         * lib/signbitf.c (gl_signbitf): Don't undefine.
32030         * lib/signbitd.c (gl_signbitd): Don't undefine.
32031         * lib/signbitl.c (gl_signbitl): Don't undefine.
32032
32033 2009-04-25  Jim Meyering  <meyering@redhat.com>
32034
32035         vc-list-files: fix another quoting bug
32036         * build-aux/vc-list-files: Avoid sed backslash expansion
32037         of pathological directory names.
32038
32039 2009-04-25  Eric Blake  <ebb9@byu.net>
32040
32041         vc-list-files: fix shell quoting error
32042         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
32043         timestamp.
32044
32045 2009-04-25  Jim Meyering  <meyering@redhat.com>
32046
32047         vc-list-files: restore lost functionality with subdir argument
32048         * build-aux/vc-list-files: When given a non-"." sub-directory
32049         argument, substitute the $dir/ prefix back onto each resulting name.
32050         Otherwise, coreutils' root_tests check would fail.
32051
32052 2009-04-24  Eric Blake  <ebb9@byu.net>
32053
32054         vc-list-files: ignore git symlinks
32055         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
32056         than ls-files, to ignore git symlinks.
32057
32058         maint.mk: import improvements from m4
32059         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
32060         (move_if_change): Delete unused macro.
32061         (news-date-check, vc-diff-check): Support VPATH builds.
32062         (announcement): Likewise.  Split --bootstrap-tools list...
32063         (boostrap-tools): ...into separate list, which can be overridden
32064         in cfg.mk.
32065         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
32066         requiring dependency on useless-if-before-free module.
32067         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
32068         Support VPATH builds.
32069
32070 2009-04-24  Jim Meyering  <meyering@redhat.com>
32071
32072         maint.mk: remove coreutils-specific rules and variables
32073         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
32074         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
32075         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
32076
32077         maint.mk: remove obsolete rule
32078         * top/maint.mk (rel-check): Remove rule.
32079         (WGET, WGETFLAGS): Remove now-unused variables.
32080
32081 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32082
32083         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
32084         consistency.
32085
32086         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
32087         '$(PATH_SEPARATOR)' instead of ':'.
32088
32089 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32090
32091         * lib/getopt1.c (main): Use 'const' for static array.
32092
32093 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32094
32095         * top/maint.mk: Sync with coreutils.
32096         * NEWS: Explain incompatibilities.
32097
32098 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32099             Bruno Haible  <bruno@clisp.org>
32100
32101         Fix cross-compilation results.
32102         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
32103         statement, as third argument of AC_TRY_RUN.
32104         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32105         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32106         Likewise.
32107         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32108         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
32109         Likewise.
32110         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32111         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
32112         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
32113
32114 2009-04-20  Bruno Haible  <bruno@clisp.org>
32115
32116         Avoid test failure on mingw.
32117         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
32118
32119 2009-04-20  Bruno Haible  <bruno@clisp.org>
32120
32121         Avoid compilation error on mingw.
32122         * modules/localename-tests (Depends-on): Add locale.
32123
32124 2009-04-19  Bruno Haible  <bruno@clisp.org>
32125
32126         Support for building a shared library on Windows platforms.
32127         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
32128         (main): Test the presence of UNINORM_NFC here.
32129         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
32130         (main): Test the presence of UNINORM_NFD here.
32131         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
32132         (main): Test the presence of UNINORM_NFKC here.
32133         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
32134         (main): Test the presence of UNINORM_NFKD here.
32135
32136 2009-04-19  Bruno Haible  <bruno@clisp.org>
32137
32138         Avoid a compiler warning.
32139         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
32140         Change type of variable 'sequence'.
32141
32142 2009-04-19  Bruno Haible  <bruno@clisp.org>
32143
32144         * modules/configmake (Makefile.am): When the contents of configmake.h
32145         does not change, arrange to preserve its modification time.
32146
32147 2009-04-17  Simon Josefsson  <simon@josefsson.org>
32148
32149         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
32150         gettext domain.
32151
32152 2009-04-16  Jim Meyering  <meyering@redhat.com>
32153
32154         useless-if-before-free: improve conversion code
32155         * build-aux/useless-if-before-free: Adjust code-in-comment to match
32156         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
32157
32158 2009-04-14  Bruno Haible  <bruno@clisp.org>
32159
32160         * modules/fcntl (Depends-on): Add extensions.
32161         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
32162
32163 2009-04-12  Ben Pfaff  <blp@gnu.org>
32164
32165         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
32166         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
32167
32168 2009-03-20  Ben Pfaff  <blp@gnu.org>
32169
32170         Make rename replace existing destinations on Windows.
32171         * m4/rename.m4: Add test for Mingw.
32172         * lib/rename.c: Add rename replacement that uses MoveFileEx with
32173         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
32174         * doc/posix-functions/rename.texi: Document.
32175
32176 2009-04-10  Bruno Haible  <bruno@clisp.org>
32177
32178         New include file "iconveh.h".
32179         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
32180         * lib/striconveh.h: Include it.
32181         (enum iconv_ilseq_handler): Remove definition.
32182         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
32183         striconveh.h.
32184         * lib/striconveha.c: Include striconveh.h.
32185         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
32186         * modules/striconveh (Files): Add lib/iconveh.h.
32187         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
32188         lib/striconveh.h.
32189
32190 2009-04-10  Bruno Haible  <bruno@clisp.org>
32191
32192         * lib/uniconv.h: Update comment.
32193
32194 2009-04-10  Bruno Haible  <bruno@clisp.org>
32195
32196         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
32197         always.
32198         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32199         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32200         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32201         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
32202         "unistring-notinline.h", so that the function gets defined always.
32203         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32204         * lib/unistr/u8-uctomb.c: Likewise.
32205         * lib/unistr/u16-mbtouc.c: Likewise.
32206         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32207         * lib/unistr/u16-uctomb.c: Likewise.
32208         * lib/unistr/u32-mbtouc.c: Likewise.
32209         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32210         * lib/unistr/u32-uctomb.c: Likewise.
32211
32212 2009-04-10  Bruno Haible  <bruno@clisp.org>
32213
32214         Mark 'utime' obsolete.
32215         * modules/utime (Status, Notice): New sections.
32216         Suggested by Jim Meyering.
32217
32218         Fix cross-compile guess for utime test.
32219         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
32220         autoconf.
32221         * doc/posix-functions/utime.texi: Give more precisions.
32222         Reported by Jan <ipif@ymail.com>.
32223
32224 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
32225
32226         filevercmp: correct today's change
32227         * lib/filevercmp.c: Also handle coreutils' test inputs.
32228         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
32229
32230         Fix regression in 'filevercmp' module. Thanks Sven Joachim
32231         for reporting it.
32232         * lib/filevercmp.c: Special handle for "", "." and "..".
32233         * tests/test-filevercmp.c: Enlarge the set suite.
32234
32235 2009-04-07  Jim Meyering  <meyering@redhat.com>
32236
32237         useless-if-before-free: show how to remove braced useless free, too
32238         * build-aux/useless-if-before-free: still only in a comment, though.
32239
32240 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
32241
32242         maint.mk: import changes to syntax-check macros from coreutils
32243         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
32244         Use them in the relevant macros.
32245
32246 2009-04-06  Bruno Haible  <bruno@clisp.org>
32247
32248         Fix unportable use of bit-fields.
32249         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
32250         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
32251         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
32252
32253 2009-04-06  Bruno Haible  <bruno@clisp.org>
32254
32255         Avoid test failures on AIX and OSF/1.
32256         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
32257         that malloc(0) = NULL.
32258         * tests/unicase/test-u8-tolower.c (check): Likewise.
32259         * tests/unicase/test-u8-totitle.c (check): Likewise.
32260         * tests/unicase/test-u8-toupper.c (check): Likewise.
32261         * tests/unicase/test-u16-casefold.c (check): Likewise.
32262         * tests/unicase/test-u16-tolower.c (check): Likewise.
32263         * tests/unicase/test-u16-totitle.c (check): Likewise.
32264         * tests/unicase/test-u16-toupper.c (check): Likewise.
32265         * tests/unicase/test-u32-casefold.c (check): Likewise.
32266         * tests/unicase/test-u32-tolower.c (check): Likewise.
32267         * tests/unicase/test-u32-totitle.c (check): Likewise.
32268         * tests/unicase/test-u32-toupper.c (check): Likewise.
32269         * tests/uninorm/test-u8-nfc.c (check): Likewise.
32270         * tests/uninorm/test-u8-nfd.c (check): Likewise.
32271         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
32272         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
32273         * tests/uninorm/test-u16-nfc.c (check): Likewise.
32274         * tests/uninorm/test-u16-nfd.c (check): Likewise.
32275         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
32276         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
32277         * tests/uninorm/test-u32-nfc.c (check): Likewise.
32278         * tests/uninorm/test-u32-nfd.c (check): Likewise.
32279         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
32280         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
32281
32282 2009-04-05  Bruno Haible  <bruno@clisp.org>
32283
32284         Work around an autoconf limitation.
32285         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
32286         comment line if it would be longer than 3 KB.
32287
32288 2009-04-05  Bruno Haible  <bruno@clisp.org>
32289
32290         Avoid test failure with libiconv-1.13.
32291         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
32292         of the expected test results.
32293
32294 2009-04-05  Bruno Haible  <bruno@clisp.org>
32295
32296         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
32297         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
32298         that it should be installed.
32299
32300 2009-04-05  Bruno Haible  <bruno@clisp.org>
32301
32302         * gnulib-tool: New option --copy-file.
32303         (func_usage): Document it.
32304         (func_dest_tmpfilename): Moved out of func_import.
32305         (func_add_file, func_update_file): New functions, extracted from
32306         func_import.
32307         (func_import): Update.
32308
32309 2009-04-05  Karl Berry  <karl@gnu.org>
32310
32311         * README: prominently mention gnulib-tool.
32312         Rearrange sections so getting the code is near the top.
32313
32314 2009-04-05  Bruno Haible  <bruno@clisp.org>
32315
32316         * lib/unicase.h: Mention u*_cmp2.
32317         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32318         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
32319         * lib/unicase/ulc-casecmp.c: Likewise.
32320         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
32321         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
32322         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
32323         unistr/u8-cmp.
32324         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
32325         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
32326         unistr/u16-cmp.
32327         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
32328         unistr/u32-cmp.
32329
32330         * lib/uninorm.h: Mention u*_cmp2.
32331         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32332         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
32333         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
32334         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
32335         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
32336         unistr/u8-cmp.
32337         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
32338         unistr/u16-cmp.
32339         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
32340         unistr/u32-cmp.
32341
32342         New module 'unistr/u32-cmp2'.
32343         * lib/unistr/u32-cmp2.c: New file.
32344         * modules/unistr/u32-cmp2: New file.
32345
32346         New module 'unistr/u16-cmp2'.
32347         * lib/unistr/u16-cmp2.c: New file.
32348         * modules/unistr/u16-cmp2: New file.
32349
32350         New module 'unistr/u8-cmp2'.
32351         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
32352         * lib/unistr/u8-cmp2.c: New file.
32353         * lib/unistr/u-cmp2.h: New file.
32354         * modules/unistr/u8-cmp2: New file.
32355
32356 2009-04-05  Bruno Haible  <bruno@clisp.org>
32357
32358         * lib/unictype.h (uc_property_is_valid): New macro.
32359         * tests/unictype/test-pr_byname.c (main): Use it.
32360
32361         * lib/unistr.h: Doc fixes.
32362         * lib/uniconv.h: Doc fixes.
32363         * lib/unictype.h: Doc fixes.
32364
32365 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
32366
32367         Port coreutils 7.2 to Solaris 8.
32368
32369         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
32370         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
32371         for Solaris 8.  This is a bit of a hack, as it means it's the
32372         caller's responsibility to add -lnsl if needed, but most likely it
32373         won't be needed since only getaddrinfo uses this and getaddrinfo
32374         isn't needed on Solaris 8.
32375
32376         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
32377         problem to Solaris 8 encountered with coreutils 7.2, which
32378         resulted in a message "fnmatch.c:292: warning: passing argument 4
32379         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
32380         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
32381
32382 2009-04-03  Simon Josefsson  <simon@josefsson.org>
32383
32384         * m4/ld-version-script.m4: Add FIXME comment.
32385
32386 2009-04-02  Simon Josefsson  <simon@josefsson.org>
32387
32388         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
32389         SOVERSION variable.
32390
32391 2009-04-02  Bruno Haible  <bruno@clisp.org>
32392
32393         * Makefile (info, html, dvi, pdf): Combine the rules.
32394         Suggested by Jim Meyering.
32395
32396 2009-04-01  Bruno Haible  <bruno@clisp.org>
32397
32398         * Makefile (info, html, dvi, pdf): New targets.
32399         Reported by Reuben Thomas <rrt@sc3d.org>.
32400
32401 2009-04-01  Bruno Haible  <bruno@clisp.org>
32402
32403         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32404         can be put into PATH.
32405         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32406
32407 2009-04-01  Bruno Haible  <bruno@clisp.org>
32408
32409         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32410
32411 2009-04-01  Bruno Haible  <bruno@clisp.org>
32412
32413         Rename module 'visibility'.
32414         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32415         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32416         * doc/gnulib.texi: Update.
32417         * MODULES.html.sh (Misc): Update.
32418         * NEWS: Mention the change.
32419
32420 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32421
32422         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32423         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32424         Eric Blake <ebb9@byu.net> for review.
32425         * MODULES.html.sh: Add lib-msvc-compat.
32426         * doc/gnulib.texi: Link to new section.
32427         * m4/ld-output-def.m4: New file.
32428         * doc/ld-output-def.texi: New file.
32429
32430 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32431
32432         Rename ld-version-script to lib-symbol-versions.  Suggested by
32433         Bruno Haible <bruno@clisp.org>.
32434         * modules/ld-version-script: Renamed to lib-symbol-versions.
32435         * doc/ld-version-script.texi: Fix module name.
32436         * MODULES.html.sh: Add lib-symbol-versions.
32437
32438 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32439
32440         * modules/u64-tests: New file.
32441         * tests/test-u64.c: New file.
32442
32443 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32444
32445         * MODULES.html.sh: Mention u64.
32446         * modules/u64: New module.
32447         * modules/crypto/sha512: Depend on u64 module instead of providing
32448         u64.h.
32449
32450 2009-03-27  Eric Blake  <ebb9@byu.net>
32451
32452         test-strerror: make debugging EAI_SYSTEM easier
32453         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32454         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32455         failure was EAI_SYSTEM.
32456
32457 2009-03-25  Bruno Haible  <bruno@clisp.org>
32458
32459         Fix a problem with --enable-relocatable on Solaris 7.
32460         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32461         since 2008-02-24.
32462
32463 2009-03-25  Eric Blake  <ebb9@byu.net>
32464
32465         test-sockets: avoid gcc warning
32466         * tests/test-sockets.c (main): Silence compiler warning.
32467
32468 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32469
32470         New modules nproc, pthread, contributed by Glen Lenker.
32471
32472         * MODULES.html.sh: Add pthread, nproc.
32473         * lib/nproc.c: New file.
32474         * lib/nproc.h: New file.
32475         * lib/pthread.in.h: New file.
32476         * m4/pthread.m4: New file.
32477         * modules/nproc: New file.
32478         * modules/pthread: New file.
32479
32480 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32481
32482         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32483         New variable.
32484
32485 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32486
32487         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32488         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32489         * tests/test-filevercmp.c: Add tests for backup suffixes.
32490
32491 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32492
32493         * modules/stdlib (Depends-on): Add stdint, needed when defining
32494         struct random_data on, for example, HP-UX 10.20.  Reported by
32495         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32496
32497 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32498
32499         * lib/readline.c (readline): Call fflush on stdout after printing
32500         prompt.
32501
32502 2009-03-20  Bruno Haible  <bruno@clisp.org>
32503
32504         Remove dependency from 'close' module to -lws2_32 on native Windows.
32505         * lib/close-hook.h: New file.
32506         * lib/close-hook.c: New file.
32507         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32508         w32sock.h.
32509         (_gl_close_fd_maybe_socket): Remove function.
32510         (rpl_close): Invoke execute_all_close_hooks instead of
32511         _gl_close_fd_maybe_socket.
32512         * lib/sockets.c: Include close-hook.h, w32sock.h.
32513         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32514         (close_sockets_hook): New variable.
32515         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32516         (gl_sockets_cleanup): Unregister it.
32517         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32518         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32519         * modules/close-hook: New file.
32520         * modules/close (Files): Remove lib/w32sock.h.
32521         (Depends-on): Add close-hook.
32522         (Link): Remove section.
32523         * modules/sockets (Files): Add lib/w32sock.h.
32524         (Depends-on): Add close-hook.
32525         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32526         invocation.
32527         * NEWS: Mention that LIB_CLOSE is gone.
32528
32529 2009-03-23  Eric Blake  <ebb9@byu.net>
32530
32531         signal-tests: test previous patch
32532         * tests/test-signal.c: New file.
32533         * modules/signal-tests: Likewise.
32534
32535         signal.h: always support 'volatile sig_atomic_t'
32536         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32537         (gl_SIGNAL_H_DEFAULTS): Add a default.
32538         * modules/signal (Makefile.am): Substitute if needed.
32539         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32540         users can blindly add volatile.
32541         * doc/posix-headers/signal.texi (signal.h): Document it.
32542         Reported by Matthew Woehlke.
32543
32544 2009-03-23  Jim Meyering  <meyering@redhat.com>
32545
32546         pathmax: PATH_MAX: use pathconf only when available
32547         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32548         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32549         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32550         This avoids a link failure in a PSP cross-compilation environment
32551         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32552
32553         * lib/vasnprintf.c (divide): Fix typo in comment.
32554
32555 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32556
32557         * gnulib-tool (func_filter_filelist): Fix comment.
32558
32559 2009-03-20  Bruno Haible  <bruno@clisp.org>
32560
32561         Make sockets.h self-contained.
32562         * lib/sockets.c: Include sockets.h first.
32563         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32564
32565 2009-03-19  Eric Blake  <ebb9@byu.net>
32566
32567         doc: mention more functions added in cygwin 1.7.0
32568         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32569         addition.
32570         * doc/posix-functions/log2f.texi: Likewise.
32571
32572 2009-03-19  Jim Meyering  <meyering@redhat.com>
32573
32574         fsusage: avoid syntax error due to statement-before-declaration
32575         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32576         after all declarations.  Reported by Matthew Woehlke in
32577         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32578
32579 2009-03-18  Eric Blake  <ebb9@byu.net>
32580
32581         build-aux/compile: sync from automake
32582         * build-aux/compile: New file, from automake.
32583         * config/srclist.txt: Mention build-aux/compile.
32584
32585 2009-03-17  Bruno Haible  <bruno@clisp.org>
32586
32587         * lib/git-merge-changelog.c: Fix typo in comment.
32588         Reported by Reuben Thomas <rrt@sc3d.org>.
32589
32590 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32591
32592         * m4/regex.m4: update and improve help for
32593         --without-included-regex.
32594
32595 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32596
32597         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32598         failure on missing include files.
32599
32600 2009-03-17  Eric Blake  <ebb9@byu.net>
32601
32602         doc: mention more functions added in cygwin 1.7.0
32603         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32604         addition.
32605         * doc/posix-functions/fwscanf.texi: Likewise.
32606         * doc/posix-functions/swprintf.texi: Likewise.
32607         * doc/posix-functions/swscanf.texi: Likewise.
32608         * doc/posix-functions/vfwprintf.texi: Likewise.
32609         * doc/posix-functions/vfwscanf.texi: Likewise.
32610         * doc/posix-functions/vswprintf.texi: Likewise.
32611         * doc/posix-functions/vswscanf.texi: Likewise.
32612         * doc/posix-functions/vwprintf.texi: Likewise.
32613         * doc/posix-functions/vwscanf.texi: Likewise.
32614         * doc/posix-functions/wcscasecmp.texi: Likewise.
32615         * doc/posix-functions/wcsdup.texi: Likewise.
32616         * doc/posix-functions/wcsftime.texi: Likewise.
32617         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32618         * doc/posix-functions/wprintf.texi: Likewise.
32619         * doc/posix-functions/wscanf.texi: Likewise.
32620         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32621
32622 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32623
32624         maint.mk: really add $(AM_MAKEFLAGS)
32625         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32626         was inadvertently omitted in the last commit.
32627         Spotted by Bruno Haible.
32628
32629         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32630         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32631         $(AM_MAKEFLAGS)' rather than plain `make'.
32632
32633         gnulib-tool: execute $MAKE not make
32634         * gnulib-tool: Default $MAKE to 'make'.
32635         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32636         than make.  Initialize $MAKE in the do-autobuild script.
32637
32638         gnulib-tool: use $MAKE not make in generated files
32639         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32640         make, in generated files.  Initialize $MAKE in the do-autobuild
32641         script.
32642
32643         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32644
32645         GNUmakefile: disable parallelism only for multiple, recursive targets
32646         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32647         additions in the Makefile.
32648         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32649         by Automake.
32650         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32651         are listed on the command line and at least one of them is
32652         listed in $(ALL_RECURSIVE_TARGETS).
32653
32654 2009-03-14  Bruno Haible  <bruno@clisp.org>
32655
32656         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32657         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32658         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32659         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32660         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32661         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32662         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32663         unistr/u8-uctomb.
32664         * modules/unistr/u8-strchr (Depends-on): Likewise.
32665         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32666         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32667         unistr/u16-uctomb.
32668         * modules/unistr/u16-strchr (Depends-on): Likewise.
32669         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32670
32671 2009-03-12  Bruno Haible  <bruno@clisp.org>
32672
32673         Work around select() bug on Interix 3.5.
32674         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32675         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32676         * m4/select.m4: New file.
32677         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32678         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32679         * modules/select (Files): Add m4/select.m4.
32680         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32681         * modules/nanosleep (Depends-on): Add select.
32682         * modules/poll (Depends-on): Likewise.
32683         * doc/posix-functions/select.texi: Mention the Interix bug.
32684         Reported by Markus Duft <mduft@gentoo.org>.
32685
32686         * lib/select.c: Renamed from lib/winsock-select.c.
32687         * modules/select (Files): Add lib/select.c, remove
32688         lib/winsock-select.c.
32689         (configure.ac): Update.
32690
32691 2009-03-12  Jim Meyering  <meyering@redhat.com>
32692
32693         avoid gcc warnings about unused macro definitions
32694         * lib/readtokens.c (STREQ): Remove unused definition.
32695         * lib/xmalloc.c (SIZE_MAX): Likewise.
32696         * lib/openat-die.c (N_): Likewise.
32697         * lib/mountlist.c (SIZE_MAX): Remove definition.
32698         Instead, include <stdint.h>.
32699         * lib/readutmp.c: Likewise.
32700         * modules/readutmp (Depends-on): Add stdint.
32701         * modules/mountlist (Depends-on): Add stdint.
32702         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32703
32704 2009-03-10  Bruno Haible  <bruno@clisp.org>
32705
32706         Tests for module 'mbmemcasecoll'.
32707         * modules/mbmemcasecoll-tests: New file.
32708         * tests/test-mbmemcasecoll1.sh: New file.
32709         * tests/test-mbmemcasecoll2.sh: New file.
32710         * tests/test-mbmemcasecoll3.sh: New file.
32711         * tests/test-mbmemcasecoll.c: New file.
32712
32713         New module 'mbmemcasecoll'.
32714         * lib/mbmemcasecoll.h: New file.
32715         * lib/mbmemcasecoll.c: New file.
32716         * modules/mbmemcasecoll: New file.
32717
32718         * tests/test-mbmemcasecmp.h: New file, extracted from
32719         tests/test-mbmemcasecmp.c.
32720         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32721         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32722         (main): Update.
32723         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32724
32725 2009-03-09  Bruno Haible  <bruno@clisp.org>
32726
32727         Tests for module 'mbmemcasecmp'.
32728         * modules/mbmemcasecmp-tests: New file.
32729         * tests/test-mbmemcasecmp1.sh: New file.
32730         * tests/test-mbmemcasecmp2.sh: New file.
32731         * tests/test-mbmemcasecmp3.sh: New file.
32732         * tests/test-mbmemcasecmp.c: New file.
32733
32734         New module 'mbmemcasecmp'.
32735         * lib/mbmemcasecmp.h: New file.
32736         * lib/mbmemcasecmp.c: New file.
32737         * modules/mbmemcasecmp: New file.
32738
32739 2009-03-09  Bruno Haible  <bruno@clisp.org>
32740
32741         Tests for module 'unicase/ulc-casecoll'.
32742         * modules/unicase/ulc-casecoll-tests: New file.
32743         * tests/unicase/test-ulc-casecoll1.sh: New file.
32744         * tests/unicase/test-ulc-casecoll2.sh: New file.
32745         * tests/unicase/test-ulc-casecoll.c: New file.
32746
32747         New module 'unicase/ulc-casecoll'.
32748         * lib/unicase.h (ulc_casecoll): New declaration.
32749         * lib/unicase/ulc-casecoll.c: New file.
32750         * modules/unicase/ulc-casecoll: New file.
32751
32752         New module 'unicase/ulc-casexfrm'.
32753         * lib/unicase.h (ulc_casexfrm): New declaration.
32754         * lib/unicase/ulc-casexfrm.c: New file.
32755         * modules/unicase/ulc-casexfrm: New file.
32756
32757 2009-03-09  Bruno Haible  <bruno@clisp.org>
32758
32759         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32760         invocations.
32761
32762         * m4/mbscasecmp.m4: Remove file.
32763         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32764         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32765
32766         * m4/mbscasestr.m4: Remove file.
32767         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32768         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32769
32770         * m4/mbschr.m4: Remove file.
32771         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32772         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32773
32774         * m4/mbscspn.m4: Remove file.
32775         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32776         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32777
32778         * m4/mbslen.m4: Remove file.
32779         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32780         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32781
32782         * m4/mbsncasecmp.m4: Remove file.
32783         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32784         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32785
32786         * m4/mbsnlen.m4: Remove file.
32787         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32788         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32789
32790         * m4/mbspbrk.m4: Remove file.
32791         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32792         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32793
32794         * m4/mbspcasecmp.m4: Remove file.
32795         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32796         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32797
32798         * m4/mbsrchr.m4: Remove file.
32799         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32800         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32801
32802         * m4/mbssep.m4: Remove file.
32803         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32804         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32805
32806         * m4/mbsspn.m4: Remove file.
32807         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32808         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32809
32810         * m4/mbsstr.m4: Remove file.
32811         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32812         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32813
32814         * m4/mbstok_r.m4: Remove file.
32815         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32816         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32817
32818         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32819
32820         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32821         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32822
32823         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32824
32825 2009-03-08  Bruno Haible  <bruno@clisp.org>
32826
32827         Tests for module 'unicase/ulc-casecmp'.
32828         * modules/unicase/ulc-casecmp-tests: New file.
32829         * tests/unicase/test-ulc-casecmp1.sh: New file.
32830         * tests/unicase/test-ulc-casecmp2.sh: New file.
32831         * tests/unicase/test-ulc-casecmp.c: New file.
32832
32833         New module 'unicase/ulc-casecmp'.
32834         * lib/unicase.h (ulc_casecmp): New declaration.
32835         * lib/unicase/ulc-casecmp.c: New file.
32836         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32837         'const SRC_UNIT *'.
32838         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32839         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32840         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32841         * modules/unicase/ulc-casecmp: New file.
32842
32843         Tests for module 'unicase/u32-is-cased'.
32844         * modules/unicase/u32-is-cased-tests: New file.
32845         * tests/unicase/test-u32-is-cased.c: New file.
32846
32847         Tests for module 'unicase/u16-is-cased'.
32848         * modules/unicase/u16-is-cased-tests: New file.
32849         * tests/unicase/test-u16-is-cased.c: New file.
32850
32851         Tests for module 'unicase/u8-is-cased'.
32852         * modules/unicase/u8-is-cased-tests: New file.
32853         * tests/unicase/test-u8-is-cased.c: New file.
32854         * tests/unicase/test-is-cased.h: New file.
32855
32856         New module 'unicase/u32-is-cased'.
32857         * lib/unicase/u32-is-cased.c: New file.
32858         * modules/unicase/u32-is-cased: New file.
32859
32860         New module 'unicase/u16-is-cased'.
32861         * lib/unicase/u16-is-cased.c: New file.
32862         * modules/unicase/u16-is-cased: New file.
32863
32864         New module 'unicase/u8-is-cased'.
32865         * lib/unicase/u8-is-cased.c: New file.
32866         * lib/unicase/u-is-cased.h: New file.
32867         * modules/unicase/u8-is-cased: New file.
32868
32869         Tests for module 'unicase/u32-is-casefolded'.
32870         * modules/unicase/u32-is-casefolded-tests: New file.
32871         * tests/unicase/test-u32-is-casefolded.c: New file.
32872
32873         Tests for module 'unicase/u16-is-casefolded'.
32874         * modules/unicase/u16-is-casefolded-tests: New file.
32875         * tests/unicase/test-u16-is-casefolded.c: New file.
32876
32877         Tests for module 'unicase/u8-is-casefolded'.
32878         * modules/unicase/u8-is-casefolded-tests: New file.
32879         * tests/unicase/test-u8-is-casefolded.c: New file.
32880         * tests/unicase/test-is-casefolded.h: New file.
32881
32882         New module 'unicase/u32-is-casefolded'.
32883         * lib/unicase/u32-is-casefolded.c: New file.
32884         * modules/unicase/u32-is-casefolded: New file.
32885
32886         New module 'unicase/u16-is-casefolded'.
32887         * lib/unicase/u16-is-casefolded.c: New file.
32888         * modules/unicase/u16-is-casefolded: New file.
32889
32890         New module 'unicase/u8-is-casefolded'.
32891         * lib/unicase/u8-is-casefolded.c: New file.
32892         * modules/unicase/u8-is-casefolded: New file.
32893
32894         Tests for module 'unicase/u32-is-titlecase'.
32895         * modules/unicase/u32-is-titlecase-tests: New file.
32896         * tests/unicase/test-u32-is-titlecase.c: New file.
32897
32898         Tests for module 'unicase/u16-is-titlecase'.
32899         * modules/unicase/u16-is-titlecase-tests: New file.
32900         * tests/unicase/test-u16-is-titlecase.c: New file.
32901
32902         Tests for module 'unicase/u8-is-titlecase'.
32903         * modules/unicase/u8-is-titlecase-tests: New file.
32904         * tests/unicase/test-u8-is-titlecase.c: New file.
32905         * tests/unicase/test-is-titlecase.h: New file.
32906
32907         New module 'unicase/u32-is-titlecase'.
32908         * lib/unicase/u32-is-titlecase.c: New file.
32909         * modules/unicase/u32-is-titlecase: New file.
32910
32911         New module 'unicase/u16-is-titlecase'.
32912         * lib/unicase/u16-is-titlecase.c: New file.
32913         * modules/unicase/u16-is-titlecase: New file.
32914
32915         New module 'unicase/u8-is-titlecase'.
32916         * lib/unicase/u8-is-titlecase.c: New file.
32917         * modules/unicase/u8-is-titlecase: New file.
32918
32919         Tests for module 'unicase/u32-is-lowercase'.
32920         * modules/unicase/u32-is-lowercase-tests: New file.
32921         * tests/unicase/test-u32-is-lowercase.c: New file.
32922
32923         Tests for module 'unicase/u16-is-lowercase'.
32924         * modules/unicase/u16-is-lowercase-tests: New file.
32925         * tests/unicase/test-u16-is-lowercase.c: New file.
32926
32927         Tests for module 'unicase/u8-is-lowercase'.
32928         * modules/unicase/u8-is-lowercase-tests: New file.
32929         * tests/unicase/test-u8-is-lowercase.c: New file.
32930         * tests/unicase/test-is-lowercase.h: New file.
32931
32932         New module 'unicase/u32-is-lowercase'.
32933         * lib/unicase/u32-is-lowercase.c: New file.
32934         * modules/unicase/u32-is-lowercase: New file.
32935
32936         New module 'unicase/u16-is-lowercase'.
32937         * lib/unicase/u16-is-lowercase.c: New file.
32938         * modules/unicase/u16-is-lowercase: New file.
32939
32940         New module 'unicase/u8-is-lowercase'.
32941         * lib/unicase/u8-is-lowercase.c: New file.
32942         * modules/unicase/u8-is-lowercase: New file.
32943
32944         Tests for module 'unicase/u32-is-uppercase'.
32945         * modules/unicase/u32-is-uppercase-tests: New file.
32946         * tests/unicase/test-u32-is-uppercase.c: New file.
32947
32948         Tests for module 'unicase/u16-is-uppercase'.
32949         * modules/unicase/u16-is-uppercase-tests: New file.
32950         * tests/unicase/test-u16-is-uppercase.c: New file.
32951
32952         Tests for module 'unicase/u8-is-uppercase'.
32953         * modules/unicase/u8-is-uppercase-tests: New file.
32954         * tests/unicase/test-u8-is-uppercase.c: New file.
32955         * tests/unicase/test-is-uppercase.h: New file.
32956
32957         New module 'unicase/u32-is-uppercase'.
32958         * lib/unicase/u32-is-uppercase.c: New file.
32959         * modules/unicase/u32-is-uppercase: New file.
32960
32961         New module 'unicase/u16-is-uppercase'.
32962         * lib/unicase/u16-is-uppercase.c: New file.
32963         * modules/unicase/u16-is-uppercase: New file.
32964
32965         New module 'unicase/u8-is-uppercase'.
32966         * lib/unicase/u8-is-uppercase.c: New file.
32967         * modules/unicase/u8-is-uppercase: New file.
32968
32969         New module 'unicase/u32-is-invariant'.
32970         * lib/unicase/u32-is-invariant.c: New file.
32971         * modules/unicase/u32-is-invariant: New file.
32972
32973         New module 'unicase/u16-is-invariant'.
32974         * lib/unicase/u16-is-invariant.c: New file.
32975         * modules/unicase/u16-is-invariant: New file.
32976
32977         New module 'unicase/u8-is-invariant'.
32978         * lib/unicase/u8-is-invariant.c: New file.
32979         * lib/unicase/invariant.h: New file.
32980         * lib/unicase/u-is-invariant.h: New file.
32981         * modules/unicase/u8-is-invariant: New file.
32982
32983         Tests for module 'unicase/u32-casecoll'.
32984         * modules/unicase/u32-casecoll-tests: New file.
32985         * tests/unicase/test-u32-casecoll.c: New file.
32986
32987         Tests for module 'unicase/u16-casecoll'.
32988         * modules/unicase/u16-casecoll-tests: New file.
32989         * tests/unicase/test-u16-casecoll.c: New file.
32990
32991         Tests for module 'unicase/u8-casecoll'.
32992         * modules/unicase/u8-casecoll-tests: New file.
32993         * tests/unicase/test-u8-casecoll.c: New file.
32994
32995         New module 'unicase/u32-casecoll'.
32996         * lib/unicase/u32-casecoll.c: New file.
32997         * modules/unicase/u32-casecoll: New file.
32998
32999         New module 'unicase/u16-casecoll'.
33000         * lib/unicase/u16-casecoll.c: New file.
33001         * modules/unicase/u16-casecoll: New file.
33002
33003         New module 'unicase/u8-casecoll'.
33004         * lib/unicase/u8-casecoll.c: New file.
33005         * lib/unicase/u-casecoll.h: New file.
33006         * modules/unicase/u8-casecoll: New file.
33007
33008         New module 'unicase/u32-casexfrm'.
33009         * lib/unicase/u32-casexfrm.c: New file.
33010         * modules/unicase/u32-casexfrm: New file.
33011
33012         New module 'unicase/u16-casexfrm'.
33013         * lib/unicase/u16-casexfrm.c: New file.
33014         * modules/unicase/u16-casexfrm: New file.
33015
33016         New module 'unicase/u8-casexfrm'.
33017         * lib/unicase/u8-casexfrm.c: New file.
33018         * lib/unicase/u-casexfrm.h: New file.
33019         * modules/unicase/u8-casexfrm: New file.
33020
33021         Tests for module 'unicase/u32-casecmp'.
33022         * modules/unicase/u32-casecmp-tests: New file.
33023         * tests/unicase/test-u32-casecmp.c: New file.
33024
33025         Tests for module 'unicase/u16-casecmp'.
33026         * modules/unicase/u16-casecmp-tests: New file.
33027         * tests/unicase/test-u16-casecmp.c: New file.
33028
33029         Tests for module 'unicase/u8-casecmp'.
33030         * modules/unicase/u8-casecmp-tests: New file.
33031         * tests/unicase/test-u8-casecmp.c: New file.
33032         * tests/unicase/test-casecmp.h: New file.
33033
33034         New module 'unicase/u32-casecmp'.
33035         * lib/unicase/u32-casecmp.c: New file.
33036         * modules/unicase/u32-casecmp: New file.
33037
33038         New module 'unicase/u16-casecmp'.
33039         * lib/unicase/u16-casecmp.c: New file.
33040         * modules/unicase/u16-casecmp: New file.
33041
33042         New module 'unicase/u8-casecmp'.
33043         * lib/unicase/u8-casecmp.c: New file.
33044         * lib/unicase/u-casecmp.h: New file.
33045         * modules/unicase/u8-casecmp: New file.
33046
33047         Tests for module 'unicase/u32-casefold'.
33048         * modules/unicase/u32-casefold-tests: New file.
33049         * tests/unicase/test-u32-casefold.c: New file.
33050
33051         Tests for module 'unicase/u16-casefold'.
33052         * modules/unicase/u16-casefold-tests: New file.
33053         * tests/unicase/test-u16-casefold.c: New file.
33054
33055         Tests for module 'unicase/u8-casefold'.
33056         * modules/unicase/u8-casefold-tests: New file.
33057         * tests/unicase/test-u8-casefold.c: New file.
33058
33059         New module 'unicase/u32-casefold'.
33060         * lib/unicase/u32-casefold.c: New file.
33061         * modules/unicase/u32-casefold: New file.
33062
33063         New module 'unicase/u16-casefold'.
33064         * lib/unicase/u16-casefold.c: New file.
33065         * modules/unicase/u16-casefold: New file.
33066
33067         New module 'unicase/u8-casefold'.
33068         * lib/unicase/u8-casefold.c: New file.
33069         * lib/unicase/u-casefold.h: New file.
33070         * modules/unicase/u8-casefold: New file.
33071
33072         New module 'unicase/tocasefold'.
33073         * lib/unicase/casefold.h: New file.
33074         * lib/unicase/tocasefold.c: New file.
33075         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
33076         * modules/unicase/tocasefold: New file.
33077
33078         Tests for module 'unicase/u32-totitle'.
33079         * modules/unicase/u32-totitle-tests: New file.
33080         * tests/unicase/test-u32-totitle.c: New file.
33081
33082         Tests for module 'unicase/u16-totitle'.
33083         * modules/unicase/u16-totitle-tests: New file.
33084         * tests/unicase/test-u16-totitle.c: New file.
33085
33086         Tests for module 'unicase/u8-totitle'.
33087         * modules/unicase/u8-totitle-tests: New file.
33088         * tests/unicase/test-u8-totitle.c: New file.
33089
33090         New module 'unicase/u32-totitle'.
33091         * lib/unicase/u32-totitle.c: New file.
33092         * modules/unicase/u32-totitle: New file.
33093
33094         New module 'unicase/u16-totitle'.
33095         * lib/unicase/u16-totitle.c: New file.
33096         * modules/unicase/u16-totitle: New file.
33097
33098         New module 'unicase/u8-totitle'.
33099         * lib/unicase/u8-totitle.c: New file.
33100         * lib/unicase/u-totitle.h: New file.
33101         * modules/unicase/u8-totitle: New file.
33102
33103         Tests for module 'unicase/u32-tolower'.
33104         * modules/unicase/u32-tolower-tests: New file.
33105         * tests/unicase/test-u32-tolower.c: New file.
33106
33107         Tests for module 'unicase/u16-tolower'.
33108         * modules/unicase/u16-tolower-tests: New file.
33109         * tests/unicase/test-u16-tolower.c: New file.
33110
33111         Tests for module 'unicase/u8-tolower'.
33112         * modules/unicase/u8-tolower-tests: New file.
33113         * tests/unicase/test-u8-tolower.c: New file.
33114
33115         New module 'unicase/u32-tolower'.
33116         * lib/unicase/u32-tolower.c: New file.
33117         * modules/unicase/u32-tolower: New file.
33118
33119         New module 'unicase/u16-tolower'.
33120         * lib/unicase/u16-tolower.c: New file.
33121         * modules/unicase/u16-tolower: New file.
33122
33123         New module 'unicase/u8-tolower'.
33124         * lib/unicase/u8-tolower.c: New file.
33125         * modules/unicase/u8-tolower: New file.
33126
33127         Tests for module 'unicase/u32-toupper'.
33128         * modules/unicase/u32-toupper-tests: New file.
33129         * tests/unicase/test-u32-toupper.c: New file.
33130
33131         Tests for module 'unicase/u16-toupper'.
33132         * modules/unicase/u16-toupper-tests: New file.
33133         * tests/unicase/test-u16-toupper.c: New file.
33134
33135         Tests for module 'unicase/u8-toupper'.
33136         * modules/unicase/u8-toupper-tests: New file.
33137         * tests/unicase/test-u8-toupper.c: New file.
33138
33139         New module 'unicase/u32-toupper'.
33140         * lib/unicase/u32-toupper.c: New file.
33141         * modules/unicase/u32-toupper: New file.
33142
33143         New module 'unicase/u16-toupper'.
33144         * lib/unicase/u16-toupper.c: New file.
33145         * modules/unicase/u16-toupper: New file.
33146
33147         New module 'unicase/u8-toupper'.
33148         * lib/unicase/u8-toupper.c: New file.
33149         * modules/unicase/u8-toupper: New file.
33150
33151         New module 'unicase/u32-casemap'.
33152         * lib/unicase/u32-casemap.c: New file.
33153         * modules/unicase/u32-casemap: New file.
33154
33155         New module 'unicase/u16-casemap'.
33156         * lib/unicase/u16-casemap.c: New file.
33157         * modules/unicase/u16-casemap: New file.
33158
33159         New module 'unicase/u8-casemap'.
33160         * lib/unicase/unicasemap.h: New file.
33161         * lib/unicase/u8-casemap.c: New file.
33162         * lib/unicase/u-casemap.h: New file.
33163         * modules/unicase/u8-casemap: New file.
33164
33165         New module 'unicase/special-casing'.
33166         * lib/unicase/special-casing.h: New file.
33167         * lib/unicase/special-casing.c: New file.
33168         * lib/unicase/special-casing-table.gperf: New file, generated by
33169         gen-uni-tables.c.
33170         * modules/unicase/special-casing: New file.
33171
33172         Tests for module 'unicase/locale-language'.
33173         * modules/unicase/locale-language-tests: New file.
33174         * tests/unicase/test-locale-language.sh: New file.
33175         * tests/unicase/test-locale-language.c: New file.
33176
33177         New module 'unicase/locale-language'.
33178         * lib/unicase/locale-language.c: New file.
33179         * lib/unicase/locale-languages.gperf: New file.
33180         * modules/unicase/locale-language: New file.
33181
33182         Generate more tables for case conversion and case folding.
33183         * lib/gen-uni-tables.c (SCC_*): New enum items.
33184         (struct special_casing_rule): New type.
33185         (casing_rules, num_casing_rules, allocated_casing_rules): New
33186         variables.
33187         (add_casing_rule, fill_casing_rules): New functions.
33188         (struct casefold_rule): New type.
33189         (casefolding_rules, num_casefolding_rules,
33190         allocated_casefolding_rules): New variables.
33191         (fill_casefolding_rules): New function.
33192         (unicode_casefold): New variable.
33193         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
33194         sort_casing_rules, output_casing_rules): New functions.
33195         (main): Accept to more arguments: SpecialCasing.txt and
33196         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
33197         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
33198         Output mapping for casefolding.
33199
33200         * lib/unicase.h: Include stdbool.h, uninorm.h.
33201         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
33202         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
33203         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
33204         arguments.
33205         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
33206         resultp arguments.
33207         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
33208         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
33209         resultp arguments.
33210         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
33211         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
33212         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
33213         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
33214         declarations.
33215         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
33216
33217 2009-03-08  Bruno Haible  <bruno@clisp.org>
33218
33219         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33220         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
33221         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
33222         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33223
33224 2009-03-07  Bruno Haible  <bruno@clisp.org>
33225
33226         Adjust u*_normcmp, u*_normcoll API.
33227         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33228         u16_normcoll, u32_normcoll): Change failure conventions.
33229         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
33230         errno and return -1.
33231         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33232
33233 2009-03-07  Bruno Haible  <bruno@clisp.org>
33234
33235         Tests for module 'uninorm/u32-normcoll'.
33236         * modules/uninorm/u32-normcoll-tests: New file.
33237         * tests/uninorm/test-u32-normcoll.c: New file.
33238
33239         Tests for module 'uninorm/u16-normcoll'.
33240         * modules/uninorm/u16-normcoll-tests: New file.
33241         * tests/uninorm/test-u16-normcoll.c: New file.
33242
33243         Tests for module 'uninorm/u8-normcoll'.
33244         * modules/uninorm/u8-normcoll-tests: New file.
33245         * tests/uninorm/test-u8-normcoll.c: New file.
33246
33247 2009-03-07  Bruno Haible  <bruno@clisp.org>
33248
33249         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
33250         tests/uninorm/test-u32-normcmp.c.
33251         * tests/uninorm/test-u32-normcmp.c: Include it.
33252         (test_nonascii): New function, extracted from main. Add some more
33253         tests.
33254         (main): Invoke test_ascii and test_nonascii.
33255         * modules/uninorm/u32-normcmp-tests (Files): Add
33256         tests/uninorm/test-u32-normcmp.h.
33257         (Depends-on): Remove uninorm/u32-normcmp.
33258
33259         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
33260         tests/uninorm/test-u16-normcmp.c.
33261         * tests/uninorm/test-u16-normcmp.c: Include it.
33262         (test_nonascii): New function, extracted from main. Add some more
33263         tests.
33264         (main): Invoke test_ascii and test_nonascii.
33265         * modules/uninorm/u16-normcmp-tests (Files): Add
33266         tests/uninorm/test-u16-normcmp.h.
33267         (Depends-on): Remove uninorm/u16-normcmp.
33268
33269         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
33270         tests/uninorm/test-u8-normcmp.c.
33271         * tests/uninorm/test-u8-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/u8-normcmp-tests (Files): Add
33276         tests/uninorm/test-u8-normcmp.h.
33277         (Depends-on): Remove uninorm/u8-normcmp.
33278
33279 2009-03-07  Bruno Haible  <bruno@clisp.org>
33280
33281         New module 'uninorm/u32-normcoll'.
33282         * lib/uninorm/u32-normcoll.c: New file.
33283         * modules/uninorm/u32-normcoll: New file.
33284
33285         New module 'uninorm/u16-normcoll'.
33286         * lib/uninorm/u16-normcoll.c: New file.
33287         * modules/uninorm/u16-normcoll: New file.
33288
33289         New module 'uninorm/u8-normcoll'.
33290         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
33291         declarations.
33292         * lib/uninorm/u8-normcoll.c: New file.
33293         * lib/uninorm/u-normcoll.h: New file.
33294         * modules/uninorm/u8-normcoll: New file.
33295
33296         New module 'uninorm/u32-normxfrm'.
33297         * lib/uninorm/u32-normxfrm.c: New file.
33298         * modules/uninorm/u32-normxfrm: New file.
33299
33300         New module 'uninorm/u16-normxfrm'.
33301         * lib/uninorm/u16-normxfrm.c: New file.
33302         * modules/uninorm/u16-normxfrm: New file.
33303
33304         New module 'uninorm/u8-normxfrm'.
33305         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
33306         declarations.
33307         * lib/uninorm/u8-normxfrm.c: New file.
33308         * lib/uninorm/u-normxfrm.h: New file.
33309         * modules/uninorm/u8-normxfrm: New file.
33310
33311 2009-03-07  Bruno Haible  <bruno@clisp.org>
33312
33313         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
33314         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
33315         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
33316
33317 2009-03-07  Bruno Haible  <bruno@clisp.org>
33318
33319         New module 'memxfrm'.
33320         * lib/memxfrm.h: New file.
33321         * lib/memxfrm.c: New file.
33322         * modules/memxfrm: New file.
33323
33324 2009-03-07  Bruno Haible  <bruno@clisp.org>
33325
33326         New module 'memcmp2'.
33327         * lib/memcmp2.h: New file.
33328         * lib/memcmp2.c: New file.
33329         * modules/memcmp2: New file.
33330
33331 2009-03-07  Bruno Haible  <bruno@clisp.org>
33332
33333         Tests for module 'uninorm/decomposing-form'.
33334         * modules/uninorm/decomposing-form-tests: New file.
33335         * tests/uninorm/test-decomposing-form.c: New file.
33336
33337         New module 'uninorm/decomposing-form'.
33338         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
33339         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
33340         Add 'decomposing_variant' field.
33341         * lib/uninorm/decomposing-form.c: New file.
33342         * lib/uninorm/nfc.c (uninorm_nfc): Update.
33343         * lib/uninorm/nfd.c (uninorm_nfd): Update.
33344         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
33345         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
33346         * modules/uninorm/decomposing-form: New file.
33347         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
33348         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
33349
33350 2009-03-07  Bruno Haible  <bruno@clisp.org>
33351
33352         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
33353         strings.
33354
33355 2009-03-06  Bruno Haible  <bruno@clisp.org>
33356
33357         Tests for module 'uninorm/u32-normcmp'.
33358         * tests/uninorm/test-u32-normcmp.c: New file.
33359         * modules/uninorm/u32-normcmp-tests: New file.
33360
33361         Tests for module 'uninorm/u16-normcmp'.
33362         * tests/uninorm/test-u16-normcmp.c: New file.
33363         * modules/uninorm/u16-normcmp-tests: New file.
33364
33365         Tests for module 'uninorm/u8-normcmp'.
33366         * tests/uninorm/test-u8-normcmp.c: New file.
33367         * modules/uninorm/u8-normcmp-tests: New file.
33368
33369         New module 'uninorm/u32-normcmp'.
33370         * lib/uninorm/u32-normcmp.c: New file.
33371         * modules/uninorm/u32-normcmp: New file.
33372
33373         New module 'uninorm/u16-normcmp'.
33374         * lib/uninorm/u16-normcmp.c: New file.
33375         * modules/uninorm/u16-normcmp: New file.
33376
33377         New module 'uninorm/u8-normcmp'.
33378         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
33379         declarations.
33380         * lib/uninorm/u8-normcmp.c: New file.
33381         * lib/uninorm/u-normcmp.h: New file.
33382         * modules/uninorm/u8-normcmp: New file.
33383
33384 2009-03-06  Bruno Haible  <bruno@clisp.org>
33385
33386         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
33387         Reported by Eric Blake.
33388
33389 2009-03-06  Eric Blake  <ebb9@byu.net>
33390             Bruno Haible  <bruno@clisp.org>
33391
33392         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
33393         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
33394         condition.
33395         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33396         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
33397         condition.
33398         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33399
33400 2009-03-06  Eric Blake  <ebb9@byu.net>
33401
33402         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33403         to avoid compiler warnings.
33404         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33405
33406 2009-03-05  Bruno Haible  <bruno@clisp.org>
33407
33408         * tests/test-ftell.c (main): Disable test beyond end of file on
33409         FreeMiNT.
33410         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33411
33412 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33413
33414         * lib/filevercmp.c: Move hidden files up in ordering.
33415         * tests/test-filevercmp.c: Add tests for hidden files.
33416
33417 2009-03-04  Bruno Haible  <bruno@clisp.org>
33418
33419         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33420         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33421         AM_CFLAGS.
33422         Reported by Simon Josefsson.
33423
33424 2009-03-03  Bruno Haible  <bruno@clisp.org>
33425
33426         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33427         Reported by Simon Josefsson.
33428
33429         * doc/ld-version-script.texi: Update node reference.
33430
33431 2009-03-03  Bruno Haible  <bruno@clisp.org>
33432
33433         * modules/visibility (License): Change to 'unlimited'.
33434         Suggested by Simon Josefsson.
33435
33436 2009-03-03  Jim Meyering  <meyering@redhat.com>
33437
33438         unlinkdir: cannot_unlink_dir may modify process state
33439         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33440         it's neither thread-safe nor appropriate for use in a library.
33441
33442 2009-03-03  Eric Blake  <ebb9@byu.net>
33443
33444         test-closein: silence test under Darwin
33445         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33446         care if it dies from EPIPE or EBADF.
33447
33448 2009-03-03  Bruno Haible  <bruno@clisp.org>
33449
33450         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33451         earlier.
33452         * doc/visibility.texi: Fix @node and @section.
33453
33454 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33455
33456         * doc/gnulib.texi: Link to sections for ld version script and
33457         visibility.
33458         * doc/visibility.texi: Add @node and @section.
33459         * modules/ld-version-script: New module.
33460         * m4/ld-version-script.m4: New file.
33461         * doc/ld-version-script.texi: New file.
33462
33463 2009-03-02  David Lutterkort  <lutter@redhat.com>
33464
33465         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33466         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33467
33468 2009-03-02  Bruno Haible  <bruno@clisp.org>
33469
33470         * doc/visibility.texi: Mention libtool's -export-symbols option.
33471
33472 2009-03-02  Jim Meyering  <meyering@redhat.com>
33473
33474         announce-gen: new option: --no-print-checksums
33475         * build-aux/announce-gen (usage): Describe it.
33476         (print_checksums): Print a newline here, not in the [*] footnote.
33477         (main): Honor it.
33478
33479 2009-03-01  Bruno Haible  <bruno@clisp.org>
33480
33481         Use socklen_t in the native Windows replacements prototypes.
33482         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33483         instead of 'int'.
33484         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33485         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33486         * modules/getsockopt (Depends-on): Add socklen.
33487         * modules/setsockopt (Depends-on): Add socklen.
33488
33489 2009-03-01  Bruno Haible  <bruno@clisp.org>
33490
33491         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33492         least 4.2.
33493
33494 2009-03-01  Eric Blake  <ebb9@byu.net>
33495             Bruno Haible  <bruno@clisp.org>
33496
33497         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33498         error messages.
33499         * lib/wait-process.c (wait_subprocess): Omit error message about
33500         deadly signal sent to the child of termsigp != NULL.
33501
33502 2009-03-01  Eric Blake  <ebb9@byu.net>
33503
33504         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33505
33506 2009-03-01  Bruno Haible  <bruno@clisp.org>
33507
33508         Avoid a gcc warning.
33509         * tests/test-sched.c (b): Make global.
33510         Reported by Eric Blake.
33511
33512 2009-01-19  Martin Lambers  <marlam@marlam.de>
33513
33514         Provide POSIX semantics for socket timeout options on W32.
33515         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33516         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33517         * modules/setsockopt: Depend on sys_time module for struct timeval.
33518         * modules/getsockopt: Depend on sys_time module for struct timeval.
33519
33520 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33521
33522         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33523         __USE_GNU, for consistency with netdb.in.h.
33524         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33525
33526 2009-03-01  Bruno Haible  <bruno@clisp.org>
33527
33528         More support for FreeMiNT.
33529         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33530         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33531
33532 2009-03-01  Bruno Haible  <bruno@clisp.org>
33533
33534         More support for FreeMiNT.
33535         * lib/fpurge.c (fpurge): Correct last commit.
33536         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33537
33538 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33539
33540         Fix unportable awk script in vc-list-files.
33541         * build-aux/vc-list-files: In the replacement awk script, use
33542         substr with a second argument of 1, not zero.
33543         Report by Simon Josefsson.
33544
33545 2009-02-28  Bruno Haible  <bruno@clisp.org>
33546
33547         More support for FreeMiNT.
33548         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33549         to FreeMiNT today.
33550         * lib/fwriting.c (fwriting): Likewise.
33551         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33552
33553 2009-02-28  Bruno Haible  <bruno@clisp.org>
33554
33555         * tests/test-freadseek.c (main): Disable test beyond end of file on
33556         FreeMiNT.
33557         * tests/test-ftello.c (main): Likewise.
33558         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33559
33560 2009-02-28  Bruno Haible  <bruno@clisp.org>
33561
33562         Add tentative support for FreeMiNT.
33563         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33564         * lib/fpurge.c (fpurge): Likewise.
33565         * lib/freadable.c (freadable): Likewise.
33566         * lib/freading.c (freading): Likewise.
33567         * lib/freadptr.c (freadptr): Likewise.
33568         * lib/freadseek.c (freadptrinc): Likewise.
33569         * lib/fseeko.c (rpl_fseeko): Likewise.
33570         * lib/fseterr.c (fseterr): Likewise.
33571         * lib/fwritable.c (fwritable): Likewise.
33572         * lib/fwriting.c (fwriting): Likewise.
33573         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33574         Hourihane.
33575         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33576
33577 2009-02-28  Bruno Haible  <bruno@clisp.org>
33578
33579         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33580         SIGCHLD.
33581         Reported by Jim Meyering.
33582
33583 2009-02-28  Bruno Haible  <bruno@clisp.org>
33584
33585         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33586         Mention the results of these tests on various platforms.
33587         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33588         order.
33589         * doc/posix-functions/printf.texi: Likewise.
33590         * doc/posix-functions/snprintf.texi: Likewise.
33591         * doc/posix-functions/sprintf.texi: Likewise.
33592         * doc/posix-functions/vfprintf.texi: Likewise.
33593         * doc/posix-functions/vprintf.texi: Likewise.
33594         * doc/posix-functions/vsnprintf.texi: Likewise.
33595         * doc/posix-functions/vsprintf.texi: Likewise.
33596         * doc/glibc-functions/obstack_printf.texi: Likewise.
33597         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33598
33599 2009-02-28  Bruno Haible  <bruno@clisp.org>
33600
33601         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33602         Reported by Loïc Minier <lool@dooz.org>.
33603
33604 2009-02-27  Bruno Haible  <bruno@clisp.org>
33605
33606         * gnulib-tool (func_import): Make the sed expression used to create the
33607         sed script for updating the .gitignore file POSIX compliant.
33608         Reported by Eric Blake.
33609
33610 2009-02-27  Bruno Haible  <bruno@clisp.org>
33611
33612         * gnulib-tool (sed): Don't alias as "sed --posix".
33613         Reported by Eric Blake.
33614
33615 2009-02-27  Bruno Haible  <bruno@clisp.org>
33616
33617         Avoid test link errors.
33618         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33619         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33620         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33621         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33623
33624 2009-02-27  Bruno Haible  <bruno@clisp.org>
33625
33626         Avoid spurious "(cached)" in configure output.
33627         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33628         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33629         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33630         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33631         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33632         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33633         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33634         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33635         Reported by Eric Blake.
33636
33637 2009-02-27  Eric Blake  <ebb9@byu.net>
33638
33639         printf: fix regression in previous patch
33640         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33641
33642 2009-02-27  Bruno Haible  <bruno@clisp.org>
33643
33644         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33645         value.
33646         * lib/stdint.in.h: Likewise.
33647         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33648
33649 2009-02-27  Eric Blake  <ebb9@byu.net>
33650
33651         doc: mention more functions added in cygwin 1.7.0
33652         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33653         addition.
33654         * doc/posix-functions/open_wmemstream.texi: Likewise.
33655         * doc/posix-functions/wcsnlen.texi: Likewise.
33656         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33657         * doc/posix-functions/wcstod.texi: Likewise.
33658         * doc/posix-functions/wcstof.texi: Likewise.
33659         * doc/posix-functions/wcstoimax.texi: Likewise.
33660         * doc/posix-functions/wcstok.texi: Likewise.
33661         * doc/posix-functions/wcstoumax.texi: Likewise.
33662
33663         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33664         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33665         * doc/posix-functions/fprintf.texi: Update.
33666         * doc/posix-functions/printf.texi: Update.
33667         * doc/posix-functions/snprintf.texi: Update.
33668         * doc/posix-functions/sprintf.texi: Update.
33669         * doc/posix-functions/vfprintf.texi: Update.
33670         * doc/posix-functions/vprintf.texi: Update.
33671         * doc/posix-functions/vsnprintf.texi: Update.
33672         * doc/posix-functions/vsprintf.texi: Update.
33673         * doc/glibc-functions/obstack_printf.texi: Update.
33674         * doc/glibc-functions/obstack_vprintf.texi: Update.
33675
33676 2009-02-26  Eric Blake  <ebb9@byu.net>
33677
33678         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33679         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33680         compilation bug by using runtime conversion.
33681         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33682         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33683         * modules/ceill-tests (Files): Use nan.h.
33684         * modules/floorl-tests (Files): Likewise.
33685         * modules/frexpl-tests (Files): Likewise.
33686         * modules/isnanl-tests (Files): Likewise.
33687         * modules/ldexpl-tests (Files): Likewise.
33688         * modules/roundl-tests (Files): Likewise.
33689         * modules/truncl-tests (Files): Likewise.
33690         * tests/test-ceill.c (main): Use a working NaN.
33691         * tests/test-floorl.c (main): Likewise.
33692         * tests/test-frexpl.c (main): Likewise.
33693         * tests/test-isnan.c (test_long_double): Likewise.
33694         * tests/test-isnanl.h (main): Likewise.
33695         * tests/test-ldexpl.h (main): Likewise.
33696         * tests/test-roundl.h (main): Likewise.
33697         * tests/test-truncl.h (main): Likewise.
33698         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33699
33700 2009-02-26  Eric Blake  <ebb9@byu.net>
33701             Bruno Haible  <bruno@clisp.org>
33702
33703         Work around a *printf bug with %ls on Solaris.
33704         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33705         precision is specified, sprintf stops converting the wide string
33706         argument when the number of bytes that have been produced by this
33707         conversion equals or exceeds the precision.
33708         * doc/posix-functions/fprintf.texi: Update.
33709         * doc/posix-functions/printf.texi: Update.
33710         * doc/posix-functions/snprintf.texi: Update.
33711         * doc/posix-functions/sprintf.texi: Update.
33712         * doc/posix-functions/vfprintf.texi: Update.
33713         * doc/posix-functions/vprintf.texi: Update.
33714         * doc/posix-functions/vsnprintf.texi: Update.
33715         * doc/posix-functions/vsprintf.texi: Update.
33716         * doc/glibc-functions/obstack_printf.texi: Update.
33717         * doc/glibc-functions/obstack_vprintf.texi: Update.
33718
33719 2009-02-26  Eric Blake  <ebb9@byu.net>
33720
33721         stdlib: favor compiler check of random.h
33722         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33723         to avoid an ObjC random.h installed by Swarm.
33724
33725 2009-02-26  Bruno Haible  <bruno@clisp.org>
33726
33727         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33728         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33729         Reported by Gary V. Vaughan <gary@gnu.org>.
33730
33731 2009-02-26  Bruno Haible  <bruno@clisp.org>
33732
33733         Fix *printf behaviour regarding the %ls directive.
33734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33735         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33736         NEED_PRINTF_DIRECTIVE_LS.
33737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33738         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33739         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33740         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33741         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33742         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33743         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33745         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33746         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33747         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33748         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33749         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33751         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33752         * doc/posix-functions/fprintf.texi: Update.
33753         * doc/posix-functions/printf.texi: Update.
33754         * doc/posix-functions/snprintf.texi: Update.
33755         * doc/posix-functions/sprintf.texi: Update.
33756         * doc/posix-functions/vfprintf.texi: Update.
33757         * doc/posix-functions/vprintf.texi: Update.
33758         * doc/posix-functions/vsnprintf.texi: Update.
33759         * doc/posix-functions/vsprintf.texi: Update.
33760         * doc/glibc-functions/obstack_printf.texi: Update.
33761         * doc/glibc-functions/obstack_vprintf.texi: Update.
33762         Reported by Eric Blake.
33763
33764 2009-02-25  Bruno Haible  <bruno@clisp.org>
33765
33766         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33767         with known value.
33768         Reported by Gary V. Vaughan <gary@gnu.org>.
33769
33770 2009-02-25  Bruno Haible  <bruno@clisp.org>
33771
33772         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33773         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33774         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33775         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33776         Reported by Gary V. Vaughan <gary@gnu.org>.
33777
33778 2009-02-25  Bruno Haible  <bruno@clisp.org>
33779
33780         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33781         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33782         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33783         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33784         Reported by Gary V. Vaughan <gary@gnu.org>.
33785
33786 2009-02-25  Eric Blake  <ebb9@byu.net>
33787
33788         tests: skip fseek/ftell tests if ungetc is broken
33789         * m4/ungetc.m4: New file.
33790         * modules/fseek-tests: Split test, so ungetc dependency is
33791         separate from rest of test.
33792         * modules/fseeko-tests: Likewise.
33793         * modules/ftell-tests: Likewise.
33794         * modules/ftello-tests: Likewise.
33795         * tests/test-fseek.c (main): Isolate ungetc dependency.
33796         * tests/test-fseeko.c (main): Likewise.
33797         * tests/test-ftell.c (main): Likewise.
33798         * tests/test-ftello.c (main): Likewise.
33799         * tests/test-fseek2.sh: New file.
33800         * tests/test-fseeko2.sh: Likewise.
33801         * tests/test-ftell2.sh: Likewise.
33802         * tests/test-ftello2.sh: Likewise.
33803
33804 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33805
33806         test-getaddrinfo: fix usage of skip return code 77
33807         * tests/test-gettaddrinfo.c: Return skip code 77 only
33808         for first occurance of skip (4x77 is not 77)
33809
33810 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33811
33812         strtod: avoid C99 decl-after-statement
33813         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33814
33815 2009-02-24  Eric Blake  <ebb9@byu.net>
33816
33817         strtod: detect HP-UX 11.31 bug
33818         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33819         Reported by Gary V. Vaughan.
33820
33821 2009-02-23  Bruno Haible  <bruno@clisp.org>
33822
33823         Fix invalid read past end of memory block.
33824         * lib/vasnprintf.c (DCHAR_SET): Define.
33825         (local_wcslen): Define only when needed.
33826         (local_strnlen, local_wcsnlen): New functions.
33827         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33828         directives that involve a conversion ourselves.
33829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33830         wcsnlen, mbrtowc, wcrtomb.
33831         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33832         * tests/test-vasprintf-posix.c (test_function): Likewise.
33833         * tests/test-snprintf-posix.h (test_function): Likewise.
33834         * tests/test-sprintf-posix.h (test_function): Likewise.
33835         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33836
33837 2009-02-22  Bruno Haible  <bruno@clisp.org>
33838
33839         Implement new clarified decomposition of Hangul syllables.
33840         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33841         of type LTV, return only a pairwise decomposition.
33842         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33843         Likewise.
33844         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33845         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33846         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33847
33848 2009-02-22  Bruno Haible  <bruno@clisp.org>
33849
33850         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33851         zero-length results and shrink excess allocated memory.
33852         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33853         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33854         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33855         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33856         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33857         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33858         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33859         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33860         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33861         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33862         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33863         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33864
33865 2009-02-21  Bruno Haible  <bruno@clisp.org>
33866
33867         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33868         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33869         spaces after a period. Put a space between a macro name and its
33870         argument list. Trivial rewordings.
33871         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33872         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33873         (main): Return 0 explicitly.
33874
33875 2009-02-21  Bruno Haible  <bruno@clisp.org>
33876
33877         Tests for module 'uninorm/filter'.
33878         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33879         * modules/uninorm/filter-tests: New file.
33880
33881         New module 'uninorm/filter'.
33882         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33883         uninorm_filter_flush, uninorm_filter_free): New declarations.
33884         * lib/uninorm/uninorm-filter.c: New file.
33885         * modules/uninorm/filter: New file.
33886
33887 2009-02-21  Bruno Haible  <bruno@clisp.org>
33888
33889         Tests for module 'uninorm/nfkc'.
33890         * tests/uninorm/test-nfkc.c: New file.
33891         * tests/uninorm/test-u8-nfkc.c: New file.
33892         * tests/uninorm/test-u16-nfkc.c: New file.
33893         * tests/uninorm/test-u32-nfkc.c: New file.
33894         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33895         * tests/uninorm/test-u32-nfkc-big.c: New file.
33896         * modules/uninorm/nfkc-tests: New file.
33897
33898         New module 'uninorm/nfkc'.
33899         * lib/uninorm/nfkc.c: New file.
33900         * modules/uninorm/nfkc: New file.
33901
33902         Tests for module 'uninorm/nfkd'.
33903         * tests/uninorm/test-nfkd.c: New file.
33904         * tests/uninorm/test-u8-nfkd.c: New file.
33905         * tests/uninorm/test-u16-nfkd.c: New file.
33906         * tests/uninorm/test-u32-nfkd.c: New file.
33907         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33908         * tests/uninorm/test-u32-nfkd-big.c: New file.
33909         * modules/uninorm/nfkd-tests: New file.
33910
33911         New module 'uninorm/nfkd'.
33912         * lib/uninorm/nfkd.c: New file.
33913         * modules/uninorm/nfkd: New file.
33914
33915         Tests for module 'uninorm/nfc'.
33916         * tests/uninorm/test-nfc.c: New file.
33917         * tests/uninorm/test-u8-nfc.c: New file.
33918         * tests/uninorm/test-u16-nfc.c: New file.
33919         * tests/uninorm/test-u32-nfc.c: New file.
33920         * tests/uninorm/test-u32-nfc-big.sh: New file.
33921         * tests/uninorm/test-u32-nfc-big.c: New file.
33922         * modules/uninorm/nfc-tests: New file.
33923
33924         New module 'uninorm/nfc'.
33925         * lib/uninorm/nfc.c: New file.
33926         * modules/uninorm/nfc: New file.
33927
33928         Tests for module 'uninorm/nfd'.
33929         * tests/uninorm/test-nfd.c: New file.
33930         * tests/uninorm/test-u8-nfd.c: New file.
33931         * tests/uninorm/test-u16-nfd.c: New file.
33932         * tests/uninorm/test-u32-nfd.c: New file.
33933         * tests/uninorm/test-u32-nfd-big.sh: New file.
33934         * tests/uninorm/test-u32-nfd-big.c: New file.
33935         * tests/uninorm/test-u32-normalize-big.h: New file.
33936         * tests/uninorm/test-u32-normalize-big.c: New file.
33937         * tests/uninorm/NormalizationTest.txt: New file, created from
33938         Unicode 5.1.0 NormalizationTest.txt.
33939         * modules/uninorm/nfd-tests: New file.
33940
33941         New module 'uninorm/nfd'.
33942         * lib/uninorm/nfd.c: New file.
33943         * modules/uninorm/nfd: New file.
33944
33945         New module 'uninorm/u32-normalize'.
33946         * lib/uninorm/u32-normalize.c: New file.
33947         * modules/uninorm/u32-normalize: New file.
33948
33949         New module 'uninorm/u16-normalize'.
33950         * lib/uninorm/u16-normalize.c: New file.
33951         * modules/uninorm/u16-normalize: New file.
33952
33953         New module 'uninorm/u8-normalize'.
33954         * lib/uninorm/u8-normalize.c: New file.
33955         * lib/uninorm/normalize-internal.h: New file.
33956         * lib/uninorm/u-normalize-internal.h: New file.
33957         * modules/uninorm/u8-normalize: New file.
33958
33959         New module 'uninorm/decompose-internal'.
33960         * lib/uninorm/decompose-internal.c: New file.
33961         * modules/uninorm/decompose-internal: New file.
33962
33963         Tests for module 'uninorm/composition'.
33964         * tests/uninorm/test-composition.c: New file.
33965         * modules/uninorm/composition-tests: New file.
33966
33967         New module 'uninorm/composition'.
33968         * lib/uninorm/composition.c: New file.
33969         * lib/uninorm/composition-table.gperf: New file, generated by
33970         gen-uni-tables.
33971         * modules/uninorm/composition: New file.
33972
33973         Tests for module 'uninorm/compat-decomposition'.
33974         * tests/uninorm/test-compat-decomposition.c: New file.
33975         * modules/uninorm/compat-decomposition-tests: New file.
33976
33977         New module 'uninorm/compat-decomposition'.
33978         * lib/uninorm/decompose-internal.h: New file.
33979         * lib/uninorm/compat-decomposition.c: New file.
33980         * modules/uninorm/compat-decomposition: New file.
33981
33982         Tests for module 'uninorm/canonical-decomposition'.
33983         * tests/uninorm/test-canonical-decomposition.c: New file.
33984         * modules/uninorm/canonical-decomposition-tests: New file.
33985
33986         New module 'uninorm/canonical-decomposition'.
33987         * lib/uninorm/canonical-decomposition.c: New file.
33988         * modules/uninorm/canonical-decomposition: New file.
33989
33990         Tests for module 'uninorm/decomposition'.
33991         * tests/uninorm/test-decomposition.c: New file.
33992         * modules/uninorm/decomposition-tests: New file.
33993
33994         New module 'uninorm/decomposition'.
33995         * lib/uninorm/decomposition.c: New file.
33996         * modules/uninorm/decomposition: New file.
33997
33998         New module 'uninorm/decomposition-table'.
33999         * lib/uninorm/decomposition-table.h: New file.
34000         * lib/uninorm/decomposition-table.c: New file.
34001         * lib/uninorm/decomposition-table1.h: New file, generated by
34002         gen-uni-tables.
34003         * lib/uninorm/decomposition-table2.h: New file, generated by
34004         gen-uni-tables.
34005         * modules/uninorm/decomposition-table: New file.
34006
34007         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
34008         (UC_DECOMP_*): New enumeration items.
34009         (get_decomposition): New function.
34010         (struct decomp_table): New type.
34011         (output_decomposition, output_decomposition_tables): New functions.
34012         (unicode_composition_exclusions): New variable.
34013         (fill_composition_exclusions, debug_output_composition_tables): New
34014         functions.
34015         (main): Accept one more argument. Invoke fill_composition_exclusions.
34016         Output decomposition and composition tables.
34017
34018         New module 'uninorm/base'.
34019         * lib/uninorm.h: New file.
34020         * lib/unictype.h: Update comment.
34021         * modules/uninorm/base: New file.
34022
34023 2009-02-21  David Lutterkort  <lutter@redhat.com>
34024
34025         Tests for module 'safe-alloc'.
34026         * tests/test-safe-alloc.c: New file.
34027         * modules/safe-alloc-tests: New file.
34028
34029         New module 'safe-alloc'.
34030         * lib/safe-alloc.h: New file.
34031         * lib/safe-alloc.c: New file.
34032         * m4/safe-alloc.m4: New file.
34033         * modules/safe-alloc: New file.
34034         * doc/safe-alloc.texi: New file.
34035         * doc/gnulib.texi: Include it.
34036         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
34037         safe-alloc.
34038
34039 2009-02-18  Bruno Haible  <bruno@clisp.org>
34040
34041         Fix link error on non-glibc systems.
34042         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
34043         variable.
34044         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34045
34046 2009-02-18  Jim Meyering  <meyering@redhat.com>
34047
34048         fts: avoid used-uninitialized error due to recent change
34049         * lib/fts.c (fts_read): Guard uses of the new member,
34050         parent->fts_n_dirs_remaining, since it's not relevant for
34051         the parent of a directory specified on the command-line.
34052
34053 2009-02-17  James Youngman  <jay@gnu.org>
34054             Bruno Haible  <bruno@clisp.org>
34055
34056         * m4/include_next.m4: Reformulate comment.
34057
34058 2009-02-16  Jim Meyering  <meyering@redhat.com>
34059
34060         fts: add #if guards so that the fts_lgpl module still builds
34061         * lib/fts.c: Guard just-added hash-table-using parts with
34062         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
34063         Reported by Simon Josefsson.
34064
34065 2009-02-15  Bruno Haible  <bruno@clisp.org>
34066
34067         * modules/array-mergesort-tests: New file.
34068         * tests/test-array-mergesort.c: New file.
34069
34070         New module 'array-mergesort'.
34071         * modules/array-mergesort: New file.
34072         * lib/array-mergesort.h: New file.
34073
34074 2009-02-15  Bruno Haible  <bruno@clisp.org>
34075
34076         Fix 2009-02-07 commit.
34077         * lib/gen-uni-tables.c (output_predicate, output_category,
34078         output_combclass, output_bidi_category, output_decimal_digit,
34079         output_digit, output_numeric, output_mirror, output_scripts,
34080         output_ident_category, output_simple_mapping): Fix format directives.
34081         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
34082
34083 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
34084
34085         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
34086         fixes are available from IBM.
34087
34088 2009-02-13  Jim Meyering  <meyering@redhat.com>
34089
34090         fts: arrange not to stat non-directories in more cases
34091         This makes GNU find (when it doesn't need to stat each file)
34092         *much* more efficient at traversing reiserfs file systems.
34093         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
34094         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
34095         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
34096         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
34097         (leaf_optimization_applies): New function.
34098         (LCO_hash, LCO_compare): New helper functions.
34099         (link_count_optimize_ok): New function.
34100         (fts_stat): Initialize new member (if dir).
34101         (fts_read): Decrement parent's fts_n_dirs_remaining count if
34102         we've just stat'ed a directory.  Skip the stat call when possible.
34103         ---
34104         Note this AFS-related exchange:
34105         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
34106         and note find's pioctl call in find/fstype.c.
34107         But that is necessary only if you want to enable the
34108         optimization for AFS, and for now, I don't.
34109
34110         fts: move a function definition "up" (no semantic change)
34111         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
34112         "up" to precede upcoming use of a related function.
34113
34114 2009-02-11  Jim Meyering  <meyering@redhat.com>
34115
34116         fts: correct internal computation of nlinks (optimization-related)
34117         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
34118         whether the current entry is a directory, so don't test it.
34119
34120 2009-02-10  Bruno Haible  <bruno@clisp.org>
34121
34122         Tests for module 'uniwbrk/ulc-wordbreaks'.
34123         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
34124         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
34125         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
34126
34127         Tests for module 'uniwbrk/u32-wordbreaks'.
34128         * modules/uniwbrk/u32-wordbreaks-tests: New file.
34129         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
34130
34131         Tests for module 'uniwbrk/u16-wordbreaks'.
34132         * modules/uniwbrk/u16-wordbreaks-tests: New file.
34133         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
34134
34135         Tests for module 'uniwbrk/u8-wordbreaks'.
34136         * modules/uniwbrk/u8-wordbreaks-tests: New file.
34137         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
34138
34139 2009-02-10  Bruno Haible  <bruno@clisp.org>
34140
34141         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
34142         property.
34143         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
34144         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
34145         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
34146
34147 2009-02-10  Simon Josefsson  <simon@josefsson.org>
34148
34149         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
34150         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
34151
34152 2009-02-10  Bruno Haible  <bruno@clisp.org>
34153
34154         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
34155         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
34156         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
34157         * lib/unilbrk/u8-possible-linebreaks.c: Update.
34158         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
34159         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
34160
34161 2009-02-09  Simon Josefsson  <simon@josefsson.org>
34162
34163         * lib/sockets.h (gl_fd_to_handle): New function.
34164
34165         * tests/test-sockets.c: Call gl_fd_to_handle.
34166
34167 2009-02-09  Bruno Haible  <bruno@clisp.org>
34168
34169         * doc/havelib.texi: Document the conventions on bi-arch systems.
34170
34171 2009-02-08  Bruno Haible  <bruno@clisp.org>
34172
34173         Document the AC_LIB_LINKFLAGS macro.
34174         * doc/havelib.texi: New file, mostly written on 2005-05-24.
34175         * doc/gnulib.texi: Include it.
34176
34177 2009-02-08  Bruno Haible  <bruno@clisp.org>
34178
34179         Fix wrong order of sections, compared to TOC.
34180         * doc/gnulib.texi: Include relocatable-maint.texi after the
34181         "Regular expressions" node, not before.
34182
34183 2009-02-08  Bruno Haible  <bruno@clisp.org>
34184
34185         Tests for module 'unicase/totitle'.
34186         * modules/unicase/totitle-tests: New file.
34187
34188         Tests for module 'unicase/tolower'.
34189         * modules/unicase/tolower-tests: New file.
34190
34191         Tests for module 'unicase/toupper'.
34192         * modules/unicase/toupper-tests: New file.
34193         * tests/unicase/test-mapping-part1.h: New file.
34194         * tests/unicase/test-mapping-part2.h: New file.
34195
34196         New module 'unicase/totitle'.
34197         * modules/unicase/totitle: New file.
34198         * lib/unicase/totitle.c: New file.
34199
34200         New module 'unicase/tolower'.
34201         * modules/unicase/tolower: New file.
34202         * lib/unicase/tolower.c: New file.
34203
34204         New module 'unicase/toupper'.
34205         * modules/unicase/toupper: New file.
34206         * lib/unicase/toupper.c: New file.
34207         * lib/unicase/simple-mapping.h: New file.
34208
34209         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
34210         (mapping_table): New structure.
34211         (output_simple_mapping): New function.
34212         (main): Invoke output_simple_mapping_test and output_simple_mapping.
34213         * modules/gen-uni-tables (Description): Update.
34214         * lib/unicase/toupper.h: New file, automatically generated by
34215         gen-uni-tables.
34216         * lib/unicase/tolower.h: New file, automatically generated by
34217         gen-uni-tables.
34218         * lib/unicase/totitle.h: New file, automatically generated by
34219         gen-uni-tables.
34220         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
34221         gen-uni-tables.
34222         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
34223         gen-uni-tables.
34224         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
34225         gen-uni-tables.
34226
34227         New module 'unicase/base'.
34228         * modules/unicase/base: New file.
34229         * lib/unicase.h: New file.
34230
34231 2009-02-08  Bruno Haible  <bruno@clisp.org>
34232
34233         New module 'uniwbrk/ulc-wordbreaks'.
34234         * modules/uniwbrk/ulc-wordbreaks: New file.
34235         * lib/uniwbrk/ulc-wordbreaks.c: New file.
34236
34237         New module 'uniwbrk/u32-wordbreaks'.
34238         * modules/uniwbrk/u32-wordbreaks: New file.
34239         * lib/uniwbrk/u32-wordbreaks.c: New file.
34240
34241         New module 'uniwbrk/u16-wordbreaks'.
34242         * modules/uniwbrk/u16-wordbreaks: New file.
34243         * lib/uniwbrk/u16-wordbreaks.c: New file.
34244
34245         New module 'uniwbrk/u8-wordbreaks'.
34246         * modules/uniwbrk/u8-wordbreaks: New file.
34247         * lib/uniwbrk/u8-wordbreaks.c: New file.
34248         * lib/uniwbrk/u-wordbreaks.h: New file.
34249
34250         New module 'uniwbrk/table'.
34251         * modules/uniwbrk/table: New file.
34252         * lib/uniwbrk/wbrktable.h: New file.
34253         * lib/uniwbrk/wbrktable.c: New file.
34254
34255         New module 'uniwbrk/wordbreak-property'.
34256         * modules/uniwbrk/wordbreak-property: New file.
34257         * lib/uniwbrk/wordbreak-property.c: New file.
34258
34259         * lib/gen-uni-tables.c (WBP_*): New enum items.
34260         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
34261         (unicode_org_wbp): New variable.
34262         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
34263         New functions.
34264         (wbp_table): New structure.
34265         (output_wbp, output_wbrk_tables): New functions.
34266         (main): Accept additional argument. Invoke fill_org_wbp,
34267         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
34268         output_wbrk_tables.
34269         * modules/gen-uni-tables (Description): Update.
34270         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
34271         gen-uni-tables.
34272
34273         New module 'uniwbrk/base'.
34274         * modules/uniwbrk/base: New file.
34275         * lib/uniwbrk.h: New file.
34276
34277 2009-02-08  Bruno Haible  <bruno@clisp.org>
34278
34279         Update to Unicode 5.1.0.
34280         * lib/gen-uni-tables.c (is_property_alphabetic): Include
34281         U+2185..U+2188.
34282         (is_property_default_ignorable_code_point): Don't include characters
34283         of category Cc or Cs and not-a-characters.
34284         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
34285         U+0D79, U+109E, U+109F, U+A60C.
34286         * lib/unictype/bidi_of.h: Regenerated.
34287         * lib/unictype/blocks.h: Regenerated.
34288         * lib/unictype/categ_C.h: Regenerated.
34289         * lib/unictype/categ_Cf.h: Regenerated.
34290         * lib/unictype/categ_Cn.h: Regenerated.
34291         * lib/unictype/categ_L.h: Regenerated.
34292         * lib/unictype/categ_Ll.h: Regenerated.
34293         * lib/unictype/categ_Lm.h: Regenerated.
34294         * lib/unictype/categ_Lo.h: Regenerated.
34295         * lib/unictype/categ_Lu.h: Regenerated.
34296         * lib/unictype/categ_M.h: Regenerated.
34297         * lib/unictype/categ_Mc.h: Regenerated.
34298         * lib/unictype/categ_Me.h: Regenerated.
34299         * lib/unictype/categ_Mn.h: Regenerated.
34300         * lib/unictype/categ_N.h: Regenerated.
34301         * lib/unictype/categ_Nd.h: Regenerated.
34302         * lib/unictype/categ_Nl.h: Regenerated.
34303         * lib/unictype/categ_No.h: Regenerated.
34304         * lib/unictype/categ_P.h: Regenerated.
34305         * lib/unictype/categ_Pd.h: Regenerated.
34306         * lib/unictype/categ_Pe.h: Regenerated.
34307         * lib/unictype/categ_Pf.h: Regenerated.
34308         * lib/unictype/categ_Pi.h: Regenerated.
34309         * lib/unictype/categ_Po.h: Regenerated.
34310         * lib/unictype/categ_Ps.h: Regenerated.
34311         * lib/unictype/categ_S.h: Regenerated.
34312         * lib/unictype/categ_Sk.h: Regenerated.
34313         * lib/unictype/categ_Sm.h: Regenerated.
34314         * lib/unictype/categ_So.h: Regenerated.
34315         * lib/unictype/categ_of.h: Regenerated.
34316         * lib/unictype/combining.h: Regenerated.
34317         * lib/unictype/ctype_alnum.h: Regenerated.
34318         * lib/unictype/ctype_alpha.h: Regenerated.
34319         * lib/unictype/ctype_graph.h: Regenerated.
34320         * lib/unictype/ctype_lower.h: Regenerated.
34321         * lib/unictype/ctype_print.h: Regenerated.
34322         * lib/unictype/ctype_punct.h: Regenerated.
34323         * lib/unictype/ctype_upper.h: Regenerated.
34324         * lib/unictype/decdigit.h: Regenerated.
34325         * lib/unictype/digit.h: Regenerated.
34326         * lib/unictype/mirror.h: Regenerated.
34327         * lib/unictype/numeric.h: Regenerated.
34328         * lib/unictype/pr_alphabetic.h: Regenerated.
34329         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
34330         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
34331         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
34332         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
34333         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
34334         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
34335         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
34336         * lib/unictype/pr_combining.h: Regenerated.
34337         * lib/unictype/pr_dash.h: Regenerated.
34338         * lib/unictype/pr_decimal_digit.h: Regenerated.
34339         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
34340         * lib/unictype/pr_deprecated.h: Regenerated.
34341         * lib/unictype/pr_diacritic.h: Regenerated.
34342         * lib/unictype/pr_extender.h: Regenerated.
34343         * lib/unictype/pr_format_control.h: Regenerated.
34344         * lib/unictype/pr_grapheme_base.h: Regenerated.
34345         * lib/unictype/pr_grapheme_extend.h: Regenerated.
34346         * lib/unictype/pr_grapheme_link.h: Regenerated.
34347         * lib/unictype/pr_id_continue.h: Regenerated.
34348         * lib/unictype/pr_id_start.h: Regenerated.
34349         * lib/unictype/pr_ideographic.h: Regenerated.
34350         * lib/unictype/pr_ignorable_control.h: Regenerated.
34351         * lib/unictype/pr_lowercase.h: Regenerated.
34352         * lib/unictype/pr_math.h: Regenerated.
34353         * lib/unictype/pr_numeric.h: Regenerated.
34354         * lib/unictype/pr_other_alphabetic.h: Regenerated.
34355         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
34356         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
34357         * lib/unictype/pr_other_id_continue.h: Regenerated.
34358         * lib/unictype/pr_other_lowercase.h: Regenerated.
34359         * lib/unictype/pr_other_math.h: Regenerated.
34360         * lib/unictype/pr_punctuation.h: Regenerated.
34361         * lib/unictype/pr_sentence_terminal.h: Regenerated.
34362         * lib/unictype/pr_soft_dotted.h: Regenerated.
34363         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
34364         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
34365         * lib/unictype/pr_unified_ideograph.h: Regenerated.
34366         * lib/unictype/pr_uppercase.h: Regenerated.
34367         * lib/unictype/pr_xid_continue.h: Regenerated.
34368         * lib/unictype/pr_xid_start.h: Regenerated.
34369         * lib/unictype/pr_zero_width.h: Regenerated.
34370         * lib/unictype/scripts.h: Regenerated.
34371         * lib/unictype/scripts_byname.gperf: Regenerated.
34372         * lib/unictype/sy_java_ident.h: Regenerated.
34373         * lib/unilbrk/lbrkprop1.h: Regenerated.
34374         * lib/unilbrk/lbrkprop2.h: Regenerated.
34375         * tests/unictype/test-categ_C.c: Regenerated.
34376         * tests/unictype/test-categ_Cf.c: Regenerated.
34377         * tests/unictype/test-categ_Cn.c: Regenerated.
34378         * tests/unictype/test-categ_L.c: Regenerated.
34379         * tests/unictype/test-categ_Ll.c: Regenerated.
34380         * tests/unictype/test-categ_Lm.c: Regenerated.
34381         * tests/unictype/test-categ_Lo.c: Regenerated.
34382         * tests/unictype/test-categ_Lu.c: Regenerated.
34383         * tests/unictype/test-categ_M.c: Regenerated.
34384         * tests/unictype/test-categ_Mc.c: Regenerated.
34385         * tests/unictype/test-categ_Me.c: Regenerated.
34386         * tests/unictype/test-categ_Mn.c: Regenerated.
34387         * tests/unictype/test-categ_N.c: Regenerated.
34388         * tests/unictype/test-categ_Nd.c: Regenerated.
34389         * tests/unictype/test-categ_Nl.c: Regenerated.
34390         * tests/unictype/test-categ_No.c: Regenerated.
34391         * tests/unictype/test-categ_P.c: Regenerated.
34392         * tests/unictype/test-categ_Pd.c: Regenerated.
34393         * tests/unictype/test-categ_Pe.c: Regenerated.
34394         * tests/unictype/test-categ_Pf.c: Regenerated.
34395         * tests/unictype/test-categ_Pi.c: Regenerated.
34396         * tests/unictype/test-categ_Po.c: Regenerated.
34397         * tests/unictype/test-categ_Ps.c: Regenerated.
34398         * tests/unictype/test-categ_S.c: Regenerated.
34399         * tests/unictype/test-categ_Sk.c: Regenerated.
34400         * tests/unictype/test-categ_Sm.c: Regenerated.
34401         * tests/unictype/test-categ_So.c: Regenerated.
34402         * tests/unictype/test-ctype_alnum.c: Regenerated.
34403         * tests/unictype/test-ctype_alpha.c: Regenerated.
34404         * tests/unictype/test-ctype_graph.c: Regenerated.
34405         * tests/unictype/test-ctype_lower.c: Regenerated.
34406         * tests/unictype/test-ctype_print.c: Regenerated.
34407         * tests/unictype/test-ctype_punct.c: Regenerated.
34408         * tests/unictype/test-ctype_upper.c: Regenerated.
34409         * tests/unictype/test-decdigit.h: Regenerated.
34410         * tests/unictype/test-digit.h: Regenerated.
34411         * tests/unictype/test-numeric.h: Regenerated.
34412         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34413         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34414         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34415         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34416         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34417         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34418         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34419         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34420         * tests/unictype/test-pr_combining.c: Regenerated.
34421         * tests/unictype/test-pr_dash.c: Regenerated.
34422         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34423         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34424         * tests/unictype/test-pr_deprecated.c: Regenerated.
34425         * tests/unictype/test-pr_diacritic.c: Regenerated.
34426         * tests/unictype/test-pr_extender.c: Regenerated.
34427         * tests/unictype/test-pr_format_control.c: Regenerated.
34428         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34429         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34430         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34431         * tests/unictype/test-pr_id_continue.c: Regenerated.
34432         * tests/unictype/test-pr_id_start.c: Regenerated.
34433         * tests/unictype/test-pr_ideographic.c: Regenerated.
34434         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34435         * tests/unictype/test-pr_lowercase.c: Regenerated.
34436         * tests/unictype/test-pr_math.c: Regenerated.
34437         * tests/unictype/test-pr_numeric.c: Regenerated.
34438         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34439         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34440         Regenerated.
34441         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34442         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34443         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34444         * tests/unictype/test-pr_other_math.c: Regenerated.
34445         * tests/unictype/test-pr_punctuation.c: Regenerated.
34446         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34447         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34448         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34449         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34450         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34451         * tests/unictype/test-pr_uppercase.c: Regenerated.
34452         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34453         * tests/unictype/test-pr_xid_start.c: Regenerated.
34454         * tests/unictype/test-pr_zero_width.c: Regenerated.
34455
34456         Update to Unicode 5.1.0.
34457         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34458         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34459         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34460         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34461         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34462         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34463         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34464         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34465         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34466         (nonspacing_table_ind): Update.
34467         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34468
34469         Update to Unicode 5.1.0.
34470         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34471         code transform.
34472         * lib/uniname/uniname.c (unicode_character_name,
34473         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34474         * lib/uniname/uninames.h: Regenerated.
34475         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34476
34477 2009-02-07  Bruno Haible  <bruno@clisp.org>
34478
34479         Merge gen-ctype and gen-lbrk into a single program.
34480         * lib/gen-uni-tables.c: New file, incorporating
34481         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34482         Add directory prefixes to the names of the generated files.
34483         * lib/unictype/gen-ctype.c: Remove file.
34484         * lib/unilbrk/gen-lbrk.c: Remove file.
34485         * modules/gen-uni-tables: New file.
34486         * modules/unictype/gen-ctype: Remove file.
34487         * modules/unilbrk/gen-lbrk: Remove file.
34488
34489 2009-02-07  Bruno Haible  <bruno@clisp.org>
34490
34491         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34492
34493         New module 'unistr/u32-strcoll'.
34494         * modules/unistr/u32-strcoll: New file.
34495         * lib/unistr/u32-strcoll.c: New file.
34496
34497         New module 'unistr/u16-strcoll'.
34498         * modules/unistr/u16-strcoll: New file.
34499         * lib/unistr/u16-strcoll.c: New file.
34500
34501         New module 'unistr/u8-strcoll'.
34502         * modules/unistr/u8-strcoll: New file.
34503         * lib/unistr/u8-strcoll.c: New file.
34504         * lib/unistr/u-strcoll.h: New file.
34505
34506 2009-02-07  Bruno Haible  <bruno@clisp.org>
34507
34508         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34509         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34510         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34511         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34512         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34513         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34514
34515 2009-02-07  Bruno Haible  <bruno@clisp.org>
34516
34517         Make 64-bit clean.
34518         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34519         output_combclass, output_bidi_category, output_decimal_digit,
34520         output_digit, output_numeric, output_mirror, output_scripts,
34521         output_ident_category): Use proper width specifier in format strings.
34522
34523 2009-02-07  Bruno Haible  <bruno@clisp.org>
34524
34525         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34526         failure behaviour.
34527
34528 2009-02-07  Jim Meyering  <meyering@redhat.com>
34529
34530         regex: avoid compilation failure with upcoming gcc-4.4
34531         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34532         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34533         "... error: integer overflow in preprocessor expression".
34534
34535 2009-02-05  Ben Pfaff  <blp@gnu.org>
34536
34537         Fix link errors on Windows when close module is used.
34538         * modules/close: Add $(LIB_CLOSE) to Link section.
34539         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34540         $(LIB_CLOSE) on Windows.
34541
34542 2009-02-05  Jim Meyering  <meyering@redhat.com>
34543
34544         still avoid unused-parameter warnings, but do it cleanly
34545         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34546         (get_fs_usage): Cast to void instead.
34547         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34548         (dev_from_mount_options, read_file_system_list): Cast to void.
34549         Prompted by Bruno Haible.
34550
34551 2009-02-04  Jim Meyering  <meyering@redhat.com>
34552
34553         fsusage.c: correct copyright year
34554         * lib/fsusage.c: Reflect year in which the change is pushed into
34555
34556         avoid misc. warnings
34557         * lib/fsusage.c (UNUSED_PARAM): Define.
34558         (get_fs_usage): Mark parameter "disk" as unused.
34559         * lib/getugroups.c (getgrent): Use "void" in prototype.
34560         * lib/mountlist.c: Mark unused parameters.
34561         (read_file_system_list): Declare a local with "const".
34562         * lib/nanosleep.c (getnow): Declare static.
34563         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34564
34565         dirfd: set errno upon failure
34566         * lib/dirfd.c: Include <errno.h>.
34567         Set errno to ENOTSUP when returning -1.
34568         * modules/dirfd (Depends-on): Add errno.
34569         Suggested by John Kodis <kodis@comcast.net>.
34570
34571 2009-02-01  Bruno Haible  <bruno@clisp.org>
34572
34573         Don't assume sizeof (long) >= sizeof (void *).
34574         * lib/memcmp.c: Include stdint.h.
34575         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34576         srcp2 to 'const byte *'.
34577         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34578         types to uintptr_t.
34579         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34580         * modules/memcmp (Depends-on): Add stdint.
34581         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34582
34583 2009-01-30  Eric Blake  <ebb9@byu.net>
34584
34585         fix more require-before-expand issues
34586         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34587         expand, AC_PROG_AWK.
34588         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34589
34590 2009-01-28  Eric Blake  <ebb9@byu.net>
34591
34592         version-etc: use consistent URL formatting
34593         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34594         Improve formatting.  Use fputs for string without %.
34595
34596 2009-01-28  Jim Meyering  <meyering@redhat.com>
34597
34598         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34599         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34600         "underquoted definition of NAME" from autoconf-2.59.
34601
34602 2009-01-28  Bruno Haible  <bruno@clisp.org>
34603
34604         * doc/gnulib.texi: Add "Obsolete modules" to index.
34605
34606 2009-01-28  Jim Meyering  <meyering@redhat.com>
34607
34608         useless-if-before-free: recognize more variants
34609         * build-aux/useless-if-before-free: Also recognize e.g.,
34610         if (NULL != p) free (p);
34611
34612 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34613
34614         test-getaddrinfo: skip (don't fail) this test when there's no network
34615         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34616         on the presumption that it means you lack network access.
34617
34618 2009-01-26  Jim Meyering  <meyering@redhat.com>
34619
34620         fflush: avoid warnings on modern systems
34621         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34622         pos and result, into scopes where they're used.
34623
34624 2009-01-26  Eric Blake  <ebb9@byu.net>
34625
34626         Silence warning reintroduced by recent extensions patch.
34627         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34628         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34629         autoconf.
34630
34631         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34632         * m4/00gnulib.m4: New file.
34633         * gnulib-tool (func_get_filelist): Always use it.
34634         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34635         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34636
34637 2009-01-25  Bruno Haible  <bruno@clisp.org>
34638
34639         Make test-quotearg work on MacOS X and AIX.
34640         * tests/test-quotearg.sh: New file.
34641         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34642         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34643         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34644         include <libintl.h>.
34645         (fake_locale): Remove variable.
34646         (gettext, dgettext, dcgettext): Remove functions.
34647         (main): Instead of setting a fake locale, set a real locale. Call
34648         textdomain and bindtextdomain.
34649         * modules/quotearg-tests (Files): Add the new files.
34650         (Depends-on): Add gettext, setenv, unsetenv.
34651         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34652         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34653         Augment TESTS_ENVIRONMENT.
34654
34655 2009-01-25  Bruno Haible  <bruno@clisp.org>
34656
34657         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34658         fr_FR.ISO8859-1 locale on MacOS X.
34659         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34660         ja_JP.eucJP locale on MacOS X.
34661         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34662         zh_CN.GB18030 locale on MacOS X.
34663
34664 2009-01-25  Bruno Haible  <bruno@clisp.org>
34665
34666         Avoid link errors on MacOS X 10.3.
34667         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34668         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34669
34670 2009-01-25  Bruno Haible  <bruno@clisp.org>
34671
34672         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34673         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34674         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34675         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34676         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34677         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34678         posix_spawnattr_init, posix_spawnattr_setsigmask,
34679         posix_spawnattr_setflags, posix_spawnattr_destroy.
34680
34681         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34682         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34683         * modules/execute (Files): Remove m4/posix_spawn.m4.
34684         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34685         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34686         posix_spawnattr_init, posix_spawnattr_setsigmask,
34687         posix_spawnattr_setflags, posix_spawnattr_destroy.
34688
34689 2009-01-25  Bruno Haible  <bruno@clisp.org>
34690
34691         * lib/glthread/threadlib.c: Include <stdlib.h>.
34692
34693 2009-01-25  Bruno Haible  <bruno@clisp.org>
34694
34695         * lib/glthread/threadlib.c (dummy): New declaration.
34696
34697 2009-01-25  Bruno Haible  <bruno@clisp.org>
34698
34699         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34700         multibyte characters also for the GB18030 encoding. Don't crash when
34701         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34702
34703 2009-01-25  Bruno Haible  <bruno@clisp.org>
34704
34705         Avoid redefining 'struct random_data' on OSF/1 5.1.
34706         * lib/stdlib.in.h: Include <random.h> if it exists.
34707         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34708         HAVE_RANDOM_H. Include <random.h> when testing whether
34709         'struct random_data' exists.
34710         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34711
34712 2009-01-25  Bruno Haible  <bruno@clisp.org>
34713
34714         Don't install charset.alias on MacOS X >= 10.3.
34715         * lib/localcharset.c (DARWIN7): New macro.
34716         (get_charset_aliases): Hardcode the result for Darwin7.
34717         * modules/localcharset (install-exec-local): Don't install
34718         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34719
34720 2009-01-25  Bruno Haible  <bruno@clisp.org>
34721
34722         Don't install charset.alias on mingw and Cygwin.
34723         * modules/localcharset (install-exec-local): Don't install
34724         charset.alias on mingw and Cygwin, if the file does not yet exist.
34725         The result for these platforms is hardcoded in localcharset.c.
34726
34727 2009-01-25  Bruno Haible  <bruno@clisp.org>
34728
34729         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34730         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34731         before requiring AC_USE_SYSTEM_EXTENSIONS.
34732
34733 2009-01-25  Jim Meyering  <meyering@redhat.com>
34734
34735         c-strtod: avoid warnings
34736         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34737         "assignment discards qualifiers from pointer target type" warnings.
34738
34739 2009-01-24  Bruno Haible  <bruno@clisp.org>
34740
34741         Add support for non-UTF-8 locales on MacOS X.
34742         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34743         canonical encodings. For Darwin 7 and newer, don't map traditional
34744         encodings to UTF-8.
34745         Reported by Vincent Lefevre <vincent@vinc17.org>
34746         at <http://savannah.gnu.org/bugs/?25235>.
34747
34748 2009-01-24  Bruno Haible  <bruno@clisp.org>
34749
34750         * doc/gnulib.texi (Obsolete modules): New section.
34751         Reported by Mike Frysinger <vapier@gentoo.org>.
34752
34753 2009-01-24  Bruno Haible  <bruno@clisp.org>
34754
34755         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34756         (%.dvi): New rule.
34757
34758 2009-01-24  Bruno Haible  <bruno@clisp.org>
34759
34760         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34761         Reported by Eric Blake.
34762
34763 2009-01-24  Bruno Haible  <bruno@clisp.org>
34764
34765         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34766         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34767         Reported by Gary V. Vaughan <gary@gnu.org>.
34768
34769 2009-01-24  Bruno Haible  <bruno@clisp.org>
34770
34771         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34772
34773 2009-01-23  Bruno Haible  <bruno@clisp.org>
34774
34775         Make c-strtod, c-strtold usable in libraries.
34776         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34777         (C_STRTOD): Call strdup instead of xstrdup.
34778         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34779         * modules/c-strtold (Depends-on): Likewise.
34780         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34781         * NEWS: Mention the change.
34782         Reported by Michael Gold <mgold@ncf.ca>.
34783
34784 2009-01-23  Jim Meyering  <meyering@redhat.com>
34785
34786         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34787         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34788         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34789
34790 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34791
34792         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34793         GNU CoreUtils.
34794         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34795         * modules/version-etc (Description): Update.
34796
34797 2009-01-22  Bruno Haible  <bruno@clisp.org>
34798
34799         Cache the C locale object.
34800         * lib/c-strtod.c (c_locale_cache): New variable.
34801         (c_locale): New function.
34802         (C_STRTOD): Use it, and don't call freelocale.
34803         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34804         Suggested by Paolo Bonzini.
34805
34806 2009-01-21  Bruno Haible  <bruno@clisp.org>
34807
34808         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34809         conditions other than overflow.
34810
34811 2009-01-21  Bruno Haible  <bruno@clisp.org>
34812
34813         * lib/c-strtod.c: Include errno.h.
34814         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34815         value from STRTOD_L and STRTOD.
34816
34817 2009-01-21  Bruno Haible  <bruno@clisp.org>
34818         and Jim Meyering  <meyering@redhat.com>
34819
34820         nanosleep: skip configure test (fail it) for apple universal builds
34821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34822         universal builds, assume that nanosleep does not work.
34823         * modules/nanosleep (Depends-on): Add multiarch.
34824
34825         mktime: skip configure test (fail it) for apple universal builds
34826         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34827         universal builds, assume that mktime does not work.
34828         * modules/mktime (Depends-on): Add multiarch.
34829
34830 2009-01-21  Eric Blake  <ebb9@byu.net>
34831
34832         multiarch: avoid expand-before-require warning
34833         * modules/multiarch (configure.ac): Require, rather than expand,
34834         gl_MULTIARCH.
34835         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34836         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34837         enforce that all clients require it.  Partial reversion of
34838         2008-12-29 patch.
34839
34840         error: avoid expand-before-require warning
34841         * modules/errno (configure.ac): Require, rather than expand,
34842         gl_HEADER_ERRNO_H.
34843         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34844         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34845         enforce that all clients require it.
34846
34847         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34848         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34849         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34850         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34851
34852 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34853
34854         Revert:
34855         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34856
34857         regex: do not depend on obsolete modules.
34858         * modules/regex: Remove memcmp and memmove.
34859
34860 2009-01-20  Bruno Haible  <bruno@clisp.org>
34861
34862         Make the 'link' module link on Windows NT 4.
34863         * lib/link.c (_WIN32_WINNT): Don't define.
34864         (CreateHardLinkFuncType): New type.
34865         (CreateHardLinkFunc, initialized): New variables.
34866         (initialize): New function.
34867         (link): Invoke CreateHardLink indirectly through the function pointer.
34868
34869 2009-01-20  Bruno Haible  <bruno@clisp.org>
34870
34871         Fix compilation failure on mingw.
34872         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34873
34874 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34875
34876         * doc/c-strtod.texi: Mention a couple of restrictions.
34877
34878 2009-01-20  Jim Meyering  <meyering@redhat.com>
34879
34880         gettimeofday: move more declarations out of functions
34881         * lib/gettimeofday.c: Move extern declarations of tzset and
34882         gmtime out of containing functions.  Prompted by Bruno Haible.
34883
34884 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34885
34886         regex: do not depend on obsolete modules.
34887         * modules/regex: Remove memcmp and memmove.
34888
34889 2009-01-19  Bruno Haible  <bruno@clisp.org>
34890
34891         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34892         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34893         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34894         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34895         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34896
34897 2009-01-19  Bruno Haible  <bruno@clisp.org>
34898
34899         * tests/test-link.c: Include <errno.h>.
34900         (main): Exit with code 77 when a hard link cannot be created due to
34901         the file system.
34902         * tests/test-link.sh: Skip test when a hard link cannot be created due
34903         to the file system.
34904         Suggested by Eric Blake.
34905
34906 2009-01-19  Martin Lambers  <marlam@marlam.de>
34907
34908         * modules/link-tests: New file.
34909         * tests/test-link.sh: New file.
34910         * tests/test-link.c: New file.
34911
34912 2009-01-19  Eric Blake  <ebb9@byu.net>
34913
34914         doc: mention another function added in cygwin 1.7.0
34915         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34916         Another new function in cygwin 1.7.
34917
34918 2009-01-19  Bruno Haible  <bruno@clisp.org>
34919
34920         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34921         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34922         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34923         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34924         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34925         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34926         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34927         * m4/md4.m4 (gl_MD4): Likewise.
34928         * m4/md5.m4 (gl_MD5): Likewise.
34929         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34930         * m4/sha1.m4 (gl_SHA1): Likewise.
34931         * m4/sha256.m4 (gl_SHA256): Likewise.
34932         * m4/sha512.m4 (gl_SHA512): Likewise.
34933
34934 2009-01-19  Bruno Haible  <bruno@clisp.org>
34935
34936         * modules/uniname/uniname-tests (Depends-on): Add progname.
34937         * tests/uniname/test-uninames.c: Include progname.h.
34938         (main): Call set_program_name.
34939
34940         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34941         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34942         (main): Call set_program_name.
34943
34944         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34945         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34946         (main): Call set_program_name.
34947
34948         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34949         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34950         (main): Call set_program_name.
34951
34952         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34953         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34954         (main): Call set_program_name.
34955
34956         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34957         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34958         (main): Call set_program_name.
34959
34960         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34961         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34962         (main): Call set_program_name.
34963
34964         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34965         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34966         (main): Call set_program_name.
34967
34968         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34969         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34970         (main): Call set_program_name.
34971
34972 2009-01-19  Eric Blake  <ebb9@byu.net>
34973
34974         test-unistd: test previous patch
34975         * tests/test-unistd.c: Test *_FILENO macros.
34976
34977         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34978         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34979         Guarantee a definition.
34980         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34981         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34982         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34983         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34984         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34985         Likewise.
34986         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34987         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34988         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34989         Likewise.
34990         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34991         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34992         (STDERR_FILENO): Likewise.
34993         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34994         (STDERR_FILENO): Likewise.
34995         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34996         (STDERR_FILENO): Likewise.
34997         Reported by Elbert Pol.
34998
34999 2009-01-19  Eric Blake  <ebb9@byu.net>
35000
35001         doc: mention more functions added in cygwin 1.7.0
35002         * doc/posix-functions/abort.texi (abort): Update wording related
35003         to cygwin.
35004         * doc/posix-functions/daylight.texi (daylight): Likewise.
35005         * doc/posix-functions/optarg.texi (optarg): Likewise.
35006         * doc/posix-functions/optarg.texi (opterr): Likewise.
35007         * doc/posix-functions/optarg.texi (optind): Likewise.
35008         * doc/posix-functions/optarg.texi (optopt): Likewise.
35009         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
35010         worked in 1.5.x, and was withdrawn in 1.7.
35011         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35012         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
35013         cygwin versions.
35014         * doc/posix-functions/perror.texi (perror): Likewise.
35015         * doc/posix-functions/printf.texi (printf): Likewise.
35016         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
35017         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
35018         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35019         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35020         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35021         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
35022         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35023         Likewise.
35024         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35025         Likewise.
35026         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
35027         this function.
35028         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
35029         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
35030         Likewise.
35031         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
35032         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
35033         * doc/posix-functions/confstr.texi (confstr): Likewise.
35034         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
35035         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
35036         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
35037         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
35038         * doc/posix-functions/fputws.texi (fputws): Likewise.
35039         * doc/posix-functions/fwide.texi (fwide): Likewise.
35040         * doc/posix-functions/getwc.texi (getwc): Likewise.
35041         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
35042         * doc/posix-functions/putwc.texi (putwc): Likewise.
35043         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35044         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
35045         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
35046         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35047         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
35048         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
35049         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
35050         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
35051         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
35052         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
35053         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
35054
35055 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35056
35057         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
35058         * lib/ioctl.c: Include <sys/ioctl.h>.
35059
35060 2009-01-19  Simon Josefsson  <simon@josefsson.org>
35061
35062         * modules/getdate-tests (Depends-on): Add progname.
35063         * tests/test-getdate.c: Use progname module, to avoid link errors
35064         on non-glibc systems.
35065
35066 2009-01-18  Simon Josefsson  <simon@josefsson.org>
35067
35068         * modules/filenamecat-tests (Depends-on): Add progname.
35069         * modules/fstrcmp-tests (Depends-on): Likewise.
35070
35071         * tests/test-filenamecat.c: Use progname module, to avoid link
35072         errors on non-glibc systems.
35073         * tests/test-fstrcmp.c: Likewise.
35074
35075 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35076
35077         gettimeofday: avoid warning: nested extern declaration of 'localtime'
35078         * lib/gettimeofday.c: Move extern declaration out of function.
35079
35080 2009-01-18  Bruno Haible  <bruno@clisp.org>
35081
35082         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
35083         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
35084         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
35085
35086 2009-01-18  Bruno Haible  <bruno@clisp.org>
35087
35088         * lib/strftime.c (MEMPCPY): Remove unused macro.
35089         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
35090
35091 2009-01-18  Martin Lambers  <marlam@marlam.de>
35092
35093         New module 'link'.
35094         * lib/unistd.in.h (link): New declaration.
35095         * lib/link.c: New file.
35096         * m4/link.m4: New file.
35097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
35098         HAVE_LINK.
35099         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
35100         * modules/link: New file.
35101         * doc/posix-functions/link.texi: Mention the new module.
35102
35103 2009-01-18  Bruno Haible  <bruno@clisp.org>
35104
35105         * tests/test-avltree_list.c (main): Call set_program_name.
35106         * tests/test-avltree_oset.c (main): Likewise.
35107         * tests/test-obstack-printf.c: Include progname.h.
35108         (main): Call set_program_name.
35109         * tests/test-quotearg.c: Include progname.h.
35110         (main): Call set_program_name.
35111         * tests/test-xmemdup0.c: Include progname.h.
35112         (main): Call set_program_name.
35113
35114 2009-01-18  Bruno Haible  <bruno@clisp.org>
35115
35116         New module 'alphasort'.
35117         * lib/dirent.in.h (alphasort): New declaration.
35118         * lib/alphasort.c: New file, from glibc with modifications.
35119         * m4/alphasort.m4: New file.
35120         * modules/alphasort: New file.
35121         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
35122         HAVE_ALPHASORT.
35123         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
35124         HAVE_ALPHASORT.
35125         * doc/posix-functions/alphasort.texi: Mention the new module and the
35126         portability problems.
35127
35128 2009-01-18  Bruno Haible  <bruno@clisp.org>
35129
35130         New module 'scandir'.
35131         * lib/dirent.in.h (scandir): New declaration.
35132         * lib/scandir.c: New file, from glibc with modifications.
35133         * m4/scandir.m4: New file.
35134         * modules/scandir: New file.
35135         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
35136         HAVE_SCANDIR.
35137         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
35138         HAVE_SCANDIR.
35139         * doc/posix-functions/scandir.texi: Mention the new module and the
35140         portability problems.
35141
35142 2009-01-17  Bruno Haible  <bruno@clisp.org>
35143
35144         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
35145         Update documentation.
35146         (func_remove_suffix): Escape all dots in the suffix. Update
35147         documentation.
35148         (func_filter_filelist): Update documentation.
35149         Reported by Ralf Wildenhues.
35150
35151 2009-01-17  Bruno Haible  <bruno@clisp.org>
35152
35153         * modules/dprintf-posix-tests: New file.
35154         * tests/test-dprintf-posix.sh: New file.
35155         * tests/test-dprintf-posix.c: New file.
35156
35157         New modules 'dprintf', 'dprintf-posix'.
35158         * lib/stdio.in.h (dprintf): New declaration.
35159         * lib/dprintf.c: New file.
35160         * m4/dprintf.m4: New file.
35161         * m4/dprintf-posix.m4: New file.
35162         * modules/dprintf: New file.
35163         * modules/dprintf-posix: New file.
35164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
35165         HAVE_DPRINTF, REPLACE_DPRINTF.
35166         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
35167         HAVE_DPRINTF, REPLACE_DPRINTF.
35168         * doc/posix-functions/dprintf.texi: Mention the new modules.
35169
35170 2009-01-17  Bruno Haible  <bruno@clisp.org>
35171
35172         * modules/vdprintf-posix-tests: New file.
35173         * tests/test-vdprintf-posix.sh: New file.
35174         * tests/test-vdprintf-posix.c: New file.
35175
35176         New modules 'vdprintf', 'vdprintf-posix'.
35177         * lib/stdio.in.h (vdprintf): New declaration.
35178         * lib/vdprintf.c: New file.
35179         * m4/vdprintf.m4: New file.
35180         * m4/vdprintf-posix.m4: New file.
35181         * modules/vdprintf: New file.
35182         * modules/vdprintf-posix: New file.
35183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
35184         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35185         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
35186         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35187         * doc/posix-functions/vdprintf.texi: Mention the new modules.
35188
35189 2009-01-17  Bruno Haible  <bruno@clisp.org>
35190
35191         Fix replacement of fopen on mingw.
35192         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
35193         mingw.
35194
35195 2009-01-17  Bruno Haible  <bruno@clisp.org>
35196
35197         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
35198         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
35199
35200 2009-01-17  Bruno Haible  <bruno@clisp.org>
35201
35202         Avoid test-fflush2.sh failure on mingw.
35203         * tests/test-fflush2.c: Include binary-io.h.
35204         (main): Put standard input into binary mode.
35205         * modules/fflush-tests (Depends-on): Add binary-io.
35206
35207 2009-01-17  Bruno Haible  <bruno@clisp.org>
35208
35209         * lib/wchar.in.h: In another particular situation, include only the
35210         system's <wchar.h> file.
35211         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
35212         Reported by Albert Chin-A-Young <china@thewrittenword.com>
35213         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
35214
35215 2009-01-17  Bruno Haible  <bruno@clisp.org>
35216
35217         Support for stripping executables in --enable-relocatable.
35218         * build-aux/install-reloc: Expect one more argument, or an environment
35219         variable RELOC_STRIP_PROG. If set, strip the destination program and
35220         its wrapper.
35221         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
35222         RELOC_STRIP_PROG.
35223         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
35224         to set RELOCATABLE_STRIP.
35225         * NEWS: Mention the new Makefile requirement.
35226
35227 2009-01-17  Bruno Haible  <bruno@clisp.org>
35228
35229         * build-aux/install-reloc: Remove debugging information left over by
35230         C compiler on MacOS X.
35231
35232 2009-01-17  Bruno Haible  <bruno@clisp.org>
35233
35234         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
35235         * lib/progreloc.c (find_executable): Fix type of pointer passed to
35236         _NSGetExecutablePath.
35237
35238 2009-01-16  Jim Meyering  <meyering@redhat.com>
35239
35240         strerror: avoid warnings about discarding "const"
35241         * lib/strerror.c (rpl_strerror): Instead of returning a const
35242         string from each and every "case", use a variable, and add a single
35243         cast after the switch.
35244
35245 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
35246
35247         * lib/arpa_inet.in.h: Add extern "C" block for C++.
35248
35249 2009-01-16  Bruno Haible  <bruno@clisp.org>
35250
35251         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
35252         array initializer syntax that also works in C++ mode.
35253         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35254
35255 2009-01-16  Jim Meyering  <meyering@redhat.com>
35256
35257         poll: suppress a warning
35258         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
35259         to ignore "...unsigned expression < 0 is always false" warnings.
35260
35261 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
35262
35263         poll: remove declarations of unused variables
35264         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
35265         sockbuf and optlen.
35266
35267 2009-01-15  Bruno Haible  <bruno@clisp.org>
35268
35269         Make fflush-after-ungetc POSIX compliant on BSD systems.
35270         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
35271         (clear_ungetc_buffer): Implement also for other systems.
35272         (rpl_fflush): On glibc systems, invoke
35273         clear_ungetc_buffer_preserving_position. Otherwise, invoke
35274         clear_ungetc_buffer after fetching the stream's position, not before.
35275
35276 2009-01-15  Bruno Haible  <bruno@clisp.org>
35277
35278         Make fflush-after-ungetc POSIX compliant on glibc systems.
35279         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
35280         after ungetc.
35281         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
35282         (rpl_fflush): On glibc systems, simply call the system's fflush
35283         function after clearing the ungetc buffer.
35284         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
35285         Instead, lseek only to the end of file, then use the system's fseeko
35286         for the rest. On glibc systems, reset the EOF indicator bit.
35287
35288 2009-01-15  Jim Meyering  <meyering@redhat.com>
35289
35290         openmp.m4: revert quote-adding change, for portability to older autoconf
35291         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
35292         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
35293         Simon Josefsson noticed the problem when using autoconf-2.61.
35294
35295 2009-01-15  Bruno Haible  <bruno@clisp.org>
35296
35297         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
35298         * tests/test-fflush2.c (ASSERT): Always fail.
35299         (main): Add two tests for fflush() after ungetc(), taking into account
35300         the Austin Group's clarification.
35301         Suggested by Eric Blake.
35302
35303 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
35304
35305         mktime.m4: remove K&R-style function prototypes
35306         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
35307         for the Sun C++ compiler.
35308
35309 2009-01-14  Bruno Haible  <bruno@clisp.org>
35310
35311         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
35312         while including <wchar.h>.
35313         * lib/wchar.in.h: In two particular situations on HP-UX, include only
35314         the system's <wchar.h> file.
35315         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35316
35317 2009-01-14  Bruno Haible  <bruno@clisp.org>
35318
35319         * m4/csharp.m4: Don't mention gettext on the serial number line.
35320         * m4/csharpexec.m4: Likewise.
35321         * m4/eaccess.m4: Likewise.
35322         * m4/javaexec.m4: Likewise.
35323         * m4/sig_atomic_t.m4: Likewise.
35324         * m4/tmpdir.m4: Likewise.
35325         * m4/intldir.m4: Bump gettext version.
35326         * m4/lib-ld.m4: Likewise.
35327
35328 2009-01-14  Bruno Haible  <bruno@clisp.org>
35329
35330         * lib/progname.c (set_program_name): Add more comments.
35331         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35332
35333 2009-01-14  Simon Josefsson  <simon@josefsson.org>
35334
35335         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
35336         were sys/stat.h does not define it.
35337
35338 2009-01-14  Jim Meyering  <meyering@redhat.com>
35339
35340         many *.m4 files: improve m4 quoting
35341         99% of this change was performed by running the following commands:
35342         git ls-files | grep '\.m4$' | xargs perl -pi \
35343           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
35344           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35345           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35346           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
35347         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
35348         The remainder were to add Copyright dates, increment serial numbers,
35349         undo some changes in comments, exclude m4/intl.m4, and add quotes
35350         around the "1" in ",1" where the unusual spacing prohibited the
35351         above regexps from doing the job.  For more details, see
35352         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
35353         * m4/acl.m4: Modified.
35354         * m4/afs.m4: Likewise.
35355         * m4/alloca.m4: Likewise.
35356         * m4/argp.m4: Likewise.
35357         * m4/argz.m4: Likewise.
35358         * m4/atexit.m4: Likewise.
35359         * m4/bison-i18n.m4: Likewise.
35360         * m4/bison.m4: Likewise.
35361         * m4/byteswap.m4: Likewise.
35362         * m4/c-stack.m4: Likewise.
35363         * m4/c-strtod.m4: Likewise.
35364         * m4/calloc.m4: Likewise.
35365         * m4/canonicalize-lgpl.m4: Likewise.
35366         * m4/chown.m4: Likewise.
35367         * m4/clock_time.m4: Likewise.
35368         * m4/codeset.m4: Likewise.
35369         * m4/copy-file.m4: Likewise.
35370         * m4/csharp.m4: Likewise.
35371         * m4/csharpcomp.m4: Likewise.
35372         * m4/csharpexec.m4: Likewise.
35373         * m4/d-ino.m4: Likewise.
35374         * m4/d-type.m4: Likewise.
35375         * m4/dirfd.m4: Likewise.
35376         * m4/double-slash-root.m4: Likewise.
35377         * m4/eaccess.m4: Likewise.
35378         * m4/eealloc.m4: Likewise.
35379         * m4/environ.m4: Likewise.
35380         * m4/errno_h.m4: Likewise.
35381         * m4/euidaccess.m4: Likewise.
35382         * m4/execute.m4: Likewise.
35383         * m4/fatal-signal.m4: Likewise.
35384         * m4/fchdir.m4: Likewise.
35385         * m4/fcntl_h.m4: Likewise.
35386         * m4/fileblocks.m4: Likewise.
35387         * m4/filenamecat.m4: Likewise.
35388         * m4/findprog.m4: Likewise.
35389         * m4/flexmember.m4: Likewise.
35390         * m4/fnmatch.m4: Likewise.
35391         * m4/fopen.m4: Likewise.
35392         * m4/fpending.m4: Likewise.
35393         * m4/fprintf-posix.m4: Likewise.
35394         * m4/free.m4: Likewise.
35395         * m4/frexp.m4: Likewise.
35396         * m4/frexpl.m4: Likewise.
35397         * m4/fsusage.m4: Likewise.
35398         * m4/ftruncate.m4: Likewise.
35399         * m4/gc-camellia.m4: Likewise.
35400         * m4/gc-random.m4: Likewise.
35401         * m4/gc.m4: Likewise.
35402         * m4/getaddrinfo.m4: Likewise.
35403         * m4/getcwd-abort-bug.m4: Likewise.
35404         * m4/getcwd-path-max.m4: Likewise.
35405         * m4/getdate.m4: Likewise.
35406         * m4/getdomainname.m4: Likewise.
35407         * m4/getgroups.m4: Likewise.
35408         * m4/gethostname.m4: Likewise.
35409         * m4/gethrxtime.m4: Likewise.
35410         * m4/getline.m4: Likewise.
35411         * m4/getloadavg.m4: Likewise.
35412         * m4/getndelim2.m4: Likewise.
35413         * m4/getpass.m4: Likewise.
35414         * m4/gettext.m4: Likewise.
35415         * m4/gettime.m4: Likewise.
35416         * m4/gettimeofday.m4: Likewise.
35417         * m4/gnulib-common.m4: Likewise.
35418         * m4/group-member.m4: Likewise.
35419         * m4/host-os.m4: Likewise.
35420         * m4/iconv.m4: Likewise.
35421         * m4/iconv_open.m4: Likewise.
35422         * m4/inet_ntop.m4: Likewise.
35423         * m4/inet_pton.m4: Likewise.
35424         * m4/inline.m4: Likewise.
35425         * m4/intldir.m4: Likewise.
35426         * m4/intlmacosx.m4: Likewise.
35427         * m4/intmax.m4: Likewise.
35428         * m4/intmax_t.m4: Likewise.
35429         * m4/inttypes.m4: Likewise.
35430         * m4/inttypes_h.m4: Likewise.
35431         * m4/inttypes-pri.m4: Likewise.
35432         * m4/isapipe.m4: Likewise.
35433         * m4/isnand.m4: Likewise.
35434         * m4/isnanf.m4: Likewise.
35435         * m4/isnanl.m4: Likewise.
35436         * m4/javacomp.m4: Likewise.
35437         * m4/javaexec.m4: Likewise.
35438         * m4/jm-winsz1.m4: Likewise.
35439         * m4/jm-winsz2.m4: Likewise.
35440         * m4/lchown.m4: Likewise.
35441         * m4/lcmessage.m4: Likewise.
35442         * m4/ldexpl.m4: Likewise.
35443         * m4/lib-ld.m4: Likewise.
35444         * m4/lib-link.m4: Likewise.
35445         * m4/libsigsegv.m4: Likewise.
35446         * m4/link-follow.m4: Likewise.
35447         * m4/localcharset.m4: Likewise.
35448         * m4/locale-fr.m4: Likewise.
35449         * m4/locale-ja.m4: Likewise.
35450         * m4/locale-tr.m4: Likewise.
35451         * m4/locale-zh.m4: Likewise.
35452         * m4/lock.m4: Likewise.
35453         * m4/longlong.m4: Likewise.
35454         * m4/ls-mntd-fs.m4: Likewise.
35455         * m4/lstat.m4: Likewise.
35456         * m4/malloc.m4: Likewise.
35457         * m4/mathl.m4: Likewise.
35458         * m4/mbrtowc.m4: Likewise.
35459         * m4/mbstate_t.m4: Likewise.
35460         * m4/mbswidth.m4: Likewise.
35461         * m4/memchr.m4: Likewise.
35462         * m4/memcmp.m4: Likewise.
35463         * m4/memcpy.m4: Likewise.
35464         * m4/memmem.m4: Likewise.
35465         * m4/memmove.m4: Likewise.
35466         * m4/mempcpy.m4: Likewise.
35467         * m4/memrchr.m4: Likewise.
35468         * m4/memset.m4: Likewise.
35469         * m4/minmax.m4: Likewise.
35470         * m4/mkdir-slash.m4: Likewise.
35471         * m4/mkdtemp.m4: Likewise.
35472         * m4/mktime.m4: Likewise.
35473         * m4/mmap-anon.m4: Likewise.
35474         * m4/mountlist.m4: Likewise.
35475         * m4/nanosleep.m4: Likewise.
35476         * m4/nls.m4: Likewise.
35477         * m4/nocrash.m4: Likewise.
35478         * m4/open.m4: Likewise.
35479         * m4/openat.m4: Likewise.
35480         * m4/openmp.m4: Likewise.
35481         * m4/pathmax.m4: Likewise.
35482         * m4/perl.m4: Likewise.
35483         * m4/physmem.m4: Likewise.
35484         * m4/pipe.m4: Likewise.
35485         * m4/po.m4: Likewise.
35486         * m4/poll.m4: Likewise.
35487         * m4/posixtm.m4: Likewise.
35488         * m4/posixver.m4: Likewise.
35489         * m4/printf-frexp.m4: Likewise.
35490         * m4/printf-frexpl.m4: Likewise.
35491         * m4/printf-posix.m4: Likewise.
35492         * m4/printf-posix-rpl.m4: Likewise.
35493         * m4/printf.m4: Likewise.
35494         * m4/progtest.m4: Likewise.
35495         * m4/putenv.m4: Likewise.
35496         * m4/readline.m4: Likewise.
35497         * m4/readlink.m4: Likewise.
35498         * m4/readutmp.m4: Likewise.
35499         * m4/realloc.m4: Likewise.
35500         * m4/regex.m4: Likewise.
35501         * m4/relocatable.m4: Likewise.
35502         * m4/relocatable-lib.m4: Likewise.
35503         * m4/rename-dest-slash.m4: Likewise.
35504         * m4/rename.m4: Likewise.
35505         * m4/rmdir-errno.m4: Likewise.
35506         * m4/rmdir.m4: Likewise.
35507         * m4/roundf.m4: Likewise.
35508         * m4/roundl.m4: Likewise.
35509         * m4/rpmatch.m4: Likewise.
35510         * m4/save-cwd.m4: Likewise.
35511         * m4/selinux-selinux-h.m4: Likewise.
35512         * m4/setenv.m4: Likewise.
35513         * m4/settime.m4: Likewise.
35514         * m4/sig2str.m4: Likewise.
35515         * m4/sig_atomic_t.m4: Likewise.
35516         * m4/signalblocking.m4: Likewise.
35517         * m4/signbit.m4: Likewise.
35518         * m4/sigpipe.m4: Likewise.
35519         * m4/sockets.m4: Likewise.
35520         * m4/sockpfaf.m4: Likewise.
35521         * m4/st_dm_mode.m4: Likewise.
35522         * m4/stat-time.m4: Likewise.
35523         * m4/stdbool.m4: Likewise.
35524         * m4/stdint.m4: Likewise.
35525         * m4/stdint_h.m4: Likewise.
35526         * m4/stpcpy.m4: Likewise.
35527         * m4/stpncpy.m4: Likewise.
35528         * m4/strcase.m4: Likewise.
35529         * m4/strchrnul.m4: Likewise.
35530         * m4/strcspn.m4: Likewise.
35531         * m4/strdup.m4: Likewise.
35532         * m4/strftime.m4: Likewise.
35533         * m4/strndup.m4: Likewise.
35534         * m4/strnlen.m4: Likewise.
35535         * m4/strpbrk.m4: Likewise.
35536         * m4/strptime.m4: Likewise.
35537         * m4/strsep.m4: Likewise.
35538         * m4/strtod.m4: Likewise.
35539         * m4/strtoimax.m4: Likewise.
35540         * m4/strtok_r.m4: Likewise.
35541         * m4/strtol.m4: Likewise.
35542         * m4/strtoll.m4: Likewise.
35543         * m4/strtoul.m4: Likewise.
35544         * m4/strtoull.m4: Likewise.
35545         * m4/strtoumax.m4: Likewise.
35546         * m4/strverscmp.m4: Likewise.
35547         * m4/threadlib.m4: Likewise.
35548         * m4/timegm.m4: Likewise.
35549         * m4/tm_gmtoff.m4: Likewise.
35550         * m4/tmpdir.m4: Likewise.
35551         * m4/tmpfile.m4: Likewise.
35552         * m4/tzset.m4: Likewise.
35553         * m4/uintmax_t.m4: Likewise.
35554         * m4/unlinkdir.m4: Likewise.
35555         * m4/unlocked-io.m4: Likewise.
35556         * m4/uptime.m4: Likewise.
35557         * m4/userspec.m4: Likewise.
35558         * m4/utimbuf.m4: Likewise.
35559         * m4/utime.m4: Likewise.
35560         * m4/utimes-null.m4: Likewise.
35561         * m4/utimes.m4: Likewise.
35562         * m4/vararrays.m4: Likewise.
35563         * m4/vasnprintf.m4: Likewise.
35564         * m4/vfprintf-posix.m4: Likewise.
35565         * m4/vprintf-posix.m4: Likewise.
35566         * m4/wait-process.m4: Likewise.
35567         * m4/wchar_t.m4: Likewise.
35568         * m4/wint_t.m4: Likewise.
35569         * m4/write-any-file.m4: Likewise.
35570         * m4/yield.m4: Likewise.
35571
35572 2009-01-13  Bruno Haible  <bruno@clisp.org>
35573
35574         Avoid test-copy-file.sh failures when ACL support insufficient.
35575         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35576         TESTS_ENVIRONMENT.
35577         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35578         Reported by Jim Meyering.
35579
35580 2009-01-13  Bruno Haible  <bruno@clisp.org>
35581
35582         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35583         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35584         * modules/unistdio/u8-printf-parse (Files): Likewise.
35585         * modules/unistdio/u32-printf-parse (Files): Likewise.
35586         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35587
35588 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35589
35590         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35591         and m4/inttypes_h.m4 too.
35592
35593 2009-01-12  Eric Blake  <ebb9@byu.net>
35594
35595         tests: IRIX 6.2 cc can't compile -0.0 into .data
35596         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35597         rather than at compile-time.
35598         * tests/test-floorl.c (minus_zero): Likewise.
35599         * tests/test-frexpl.c (minus_zero): Likewise.
35600         * tests/test-isnan.c (minus_zerol): Likewise.
35601         * tests/test-isnanl.h (minus_zero): Likewise.
35602         * tests/test-ldexpl.c (minus_zero): Likewise.
35603         * tests/test-roundl.c (minus_zero): Likewise.
35604         * tests/test-signbit.c (minus_zerol): Likewise.
35605         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35606         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35607         * tests/test-truncl.c (minus_zero): Likewise.
35608         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35609         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35610         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35611
35612 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35613
35614         regex: fix glibc bug 9697
35615         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35616         handling.
35617
35618 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35619
35620         regex: fix glibc bug 697
35621         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35622         being NULL also if there are no backreferences.
35623
35624 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35625
35626         regex: merge glibc changes
35627         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35628         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35629         re_string_skip_chars, re_string_reconstruct): Likewise.
35630         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35631
35632 2009-01-07  Jim Meyering  <meyering@redhat.com>
35633
35634         poll: filter through cppi
35635         * lib/poll.c: Indent cpp directives to reflect nesting.
35636
35637 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35638
35639         poll: don't return uninitialized
35640         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35641
35642 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35643
35644         avoid compile failure on AIX 6.1
35645         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35646         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35647
35648 2009-01-04  Jim Meyering  <meyering@redhat.com>
35649
35650         remove duplicate inclusion of <stdio.h>
35651         * tests/test-fprintf-posix.c: Likewise.
35652         * tests/test-printf-posix.c: Likewise.
35653         * tests/test-snprintf-posix.c: Likewise.
35654         * tests/test-sprintf-posix.c: Likewise.
35655         * tests/test-vasprintf-posix.c: Likewise.
35656         * tests/test-vfprintf-posix.c: Likewise.
35657         * tests/test-vprintf-posix.c: Likewise.
35658         * tests/test-vsnprintf-posix.c: Likewise.
35659         * tests/test-vsprintf-posix.c: Likewise.
35660
35661 2009-01-03  Jim Meyering  <meyering@redhat.com>
35662
35663         gnulib-tool: fix sed-based filtering
35664         * gnulib-tool (func_filter_filelist): Remove extra backslash
35665         in sed_fff_filter definition.
35666
35667 2009-01-02  Jim Meyering  <meyering@redhat.com>
35668
35669         strftime: avoid compilation failure on Solaris 2.6
35670         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35671         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35672         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35673         be available.  Reported by Tom G. Christensen.  Details in
35674         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35675
35676 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35677             Bruno Haible  <bruno@clisp.org>
35678
35679         Speed up gnulib-tool by doing more string processing through shell
35680         built-ins.
35681         * gnulib-tool (fast_func_append): New variable.
35682         (func_remove_prefix, func_remove_suffix): New functions.
35683         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35684         (func_filter_filelist): New function.
35685         (func_get_dependencies): Use func_remove_suffix instead of sed.
35686         (func_get_automake_snippet): Use func_filter_filelist instead of a
35687         subshell and sed invocation.
35688
35689 2009-01-01  Bruno Haible  <bruno@clisp.org>
35690
35691         Fix a security bug.
35692         * gnulib-tool (func_import, import, update): Don't allow the characters
35693         '"', '$', '`', '\' in macro arguments that become part of commands that
35694         are evaluated.
35695
35696 2009-01-01  Bruno Haible  <bruno@clisp.org>
35697
35698         * gnulib-tool (func_reset_sigpipe): Add more comments.
35699
35700 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35701
35702         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35703         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35704         already know the answer.
35705
35706 2009-01-01  Jim Meyering  <meyering@redhat.com>
35707
35708         * lib/version-etc.c (version_etc_va): Update copyright year.
35709
35710 2008-12-30  Bruno Haible  <bruno@clisp.org>
35711
35712         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35713         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35714         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35715
35716 2008-12-29  Eric Blake  <ebb9@byu.net>
35717
35718         multiarch: avoid autoconf AC_REQUIRE bug
35719         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35720         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35721         2.63 and older.
35722         Reported by Bruno Haible, and analyzed in
35723         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35724
35725 2008-12-29  Bruno Haible  <bruno@clisp.org>
35726
35727         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35728         files in subdirectories correctly.
35729         Reported by Ralf Wildenhues.
35730
35731 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35732
35733         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35734         rather than 'join FILE -', for Solaris join.
35735
35736 2008-12-29  Bruno Haible  <bruno@clisp.org>
35737
35738         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35739         quoting.
35740         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35741         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35742         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35743         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35744         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35745         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35746         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35747         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35748         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35749         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35750         * m4/nls.m4 (AM_NLS): Likewise.
35751         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35752         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35753         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35754         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35755         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35756         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35757         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35758         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35759         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35760         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35761         * m4/xsize.m4 (gl_XSIZE): Likewise.
35762         Suggested by Jim Meyering.
35763
35764 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35765
35766         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35767         * lib/parse-duration.c: use a switch instead of cascading if's.
35768
35769 2008-12-29  Eric Blake  <ebb9@byu.net>
35770
35771         wchar.h: supply WEOF on Irix 5.3
35772         * lib/wchar.in.h (wint_t): Also supply WEOF.
35773         * lib/wctype.in.h (wint_t): Likewise.
35774         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35775         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35776         Reported by Tom G. Christensen.
35777
35778 2008-12-26  Bruno Haible  <bruno@clisp.org>
35779
35780         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35781         i486, i586, i686.
35782
35783 2008-12-26  Bruno Haible  <bruno@clisp.org>
35784
35785         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35786
35787 2008-12-26  Bruno Haible  <bruno@clisp.org>
35788
35789         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35790         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35791         not __STDC_CONSTANT_MACROS.
35792         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35793
35794 2008-12-25  Bruno Haible  <bruno@clisp.org>
35795
35796         Add support for universal builds to vasnprintf.
35797         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35798         universal builds, guess no.
35799         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35800         * modules/vasprintf-posix (Depends-on): Likewise.
35801         * modules/fprintf-posix (Depends-on): Likewise.
35802         * modules/vfprintf-posix (Depends-on): Likewise.
35803         * modules/snprintf-posix (Depends-on): Likewise.
35804         * modules/vsnprintf-posix (Depends-on): Likewise.
35805         * modules/sprintf-posix (Depends-on): Likewise.
35806         * modules/vsprintf-posix (Depends-on): Likewise.
35807         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35808         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35809         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35810         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35811         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35812         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35813         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35814
35815         Add support for universal builds to <inttypes.h>.
35816         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35817         _SCNu64_PREFIX): In Apple
35818         universal builds, define directly, using _LP64.
35819         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35820         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35821         * modules/inttypes (Depends-on): Add multiarch.
35822         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35823
35824         Add support for universal builds to <stdint.h>.
35825         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35826         universal builds, define directly, using _LP64.
35827         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35828         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35829         and size_t.
35830         * modules/stdint (Depends-on): Add multiarch.
35831         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35832
35833         New module 'multiarch'.
35834         * modules/multiarch: New file.
35835         * m4/multiarch.m4: New file.
35836
35837 2008-12-25  Bruno Haible  <bruno@clisp.org>
35838
35839         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35840
35841 2008-12-25  Bruno Haible  <bruno@clisp.org>
35842
35843         * modules/btowc (License): Relicense under LGPLv2+.
35844         * modules/mbsinit (License): Likewise.
35845         * modules/mbrtowc (License): Likewise.
35846         * modules/wcrtomb (License): Likewise.
35847         * modules/streq (License): Likewise.
35848         Reported by David Lutterkort <lutter@redhat.com>.
35849
35850 2008-12-23  Bruno Haible  <bruno@clisp.org>
35851
35852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35853
35854 2008-12-23  Bruno Haible  <bruno@clisp.org>
35855
35856         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35857         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35858         GETADDRINFO_LIB, not in LIBS.
35859         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35860         * modules/canon-host (Link): Likewise.
35861         * NEWS: Mention the change.
35862         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35863         GETADDRINFO_LIB.
35864
35865 2008-12-22  Bruno Haible  <bruno@clisp.org>
35866
35867         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35868         * doc/posix-functions/iswalpha_l.texi: Likewise.
35869         * doc/posix-functions/iswblank_l.texi: Likewise.
35870         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35871         * doc/posix-functions/iswctype_l.texi: Likewise.
35872         * doc/posix-functions/iswdigit_l.texi: Likewise.
35873         * doc/posix-functions/iswgraph_l.texi: Likewise.
35874         * doc/posix-functions/iswlower_l.texi: Likewise.
35875         * doc/posix-functions/iswprint_l.texi: Likewise.
35876         * doc/posix-functions/iswpunct_l.texi: Likewise.
35877         * doc/posix-functions/iswspace_l.texi: Likewise.
35878         * doc/posix-functions/iswupper_l.texi: Likewise.
35879         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35880         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35881         * doc/posix-functions/open_wmemstream.texi: Likewise.
35882         * doc/posix-functions/swscanf.texi: Likewise.
35883         * doc/posix-functions/towctrans_l.texi: Likewise.
35884         * doc/posix-functions/towlower.texi: Likewise.
35885         * doc/posix-functions/towlower_l.texi: Likewise.
35886         * doc/posix-functions/towupper.texi: Likewise.
35887         * doc/posix-functions/towupper_l.texi: Likewise.
35888         * doc/posix-functions/vfwprintf.texi: Likewise.
35889         * doc/posix-functions/vfwscanf.texi: Likewise.
35890         * doc/posix-functions/vswscanf.texi: Likewise.
35891         * doc/posix-functions/vwprintf.texi: Likewise.
35892         * doc/posix-functions/vwscanf.texi: Likewise.
35893         * doc/posix-functions/wcpcpy.texi: Likewise.
35894         * doc/posix-functions/wcpncpy.texi: Likewise.
35895         * doc/posix-functions/wcscasecmp.texi: Likewise.
35896         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35897         * doc/posix-functions/wcscoll_l.texi: Likewise.
35898         * doc/posix-functions/wcsdup.texi: Likewise.
35899         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35900         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35901         * doc/posix-functions/wcsnlen.texi: Likewise.
35902         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35903         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35904         * doc/posix-functions/wctrans_l.texi: Likewise.
35905         * doc/posix-functions/wctype_l.texi: Likewise.
35906         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35907         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35908         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35909         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35910         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35911         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35912         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35913         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35914         * doc/glibc-functions/wcschrnul.texi: Likewise.
35915         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35916         * doc/glibc-functions/wcstod_l.texi: Likewise.
35917         * doc/glibc-functions/wcstof_l.texi: Likewise.
35918         * doc/glibc-functions/wcstol_l.texi: Likewise.
35919         * doc/glibc-functions/wcstold_l.texi: Likewise.
35920         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35921         * doc/glibc-functions/wcstoq.texi: Likewise.
35922         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35923         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35924         * doc/glibc-functions/wcstouq.texi: Likewise.
35925         * doc/glibc-functions/wmempcpy.texi: Likewise.
35926
35927 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35928             Eric Blake  <ebb9@byu.net>
35929             Paolo Bonzini  <bonzini@gnu.org>
35930             Bruno Haible  <bruno@clisp.org>
35931
35932         Make c-stack work on Haiku.
35933         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35934         (c_stack_action): Use SA_ONSTACK flag.
35935
35936 2008-12-22  Bruno Haible  <bruno@clisp.org>
35937
35938         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35939
35940 2008-12-22  Bruno Haible  <bruno@clisp.org>
35941
35942         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35943         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35944         being overridden.
35945         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35946         New macros.
35947         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35948         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35949         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35950         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35951
35952 2008-12-22  Bruno Haible  <bruno@clisp.org>
35953
35954         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35955         from test code.
35956
35957 2008-12-22  Eric Blake  <ebb9@byu.net>
35958
35959         Avoid gcc warnings on cygwin.
35960         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35961         Avoid unused variable.
35962         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35963         Likewise.
35964
35965 2008-12-22  Bruno Haible  <bruno@clisp.org>
35966
35967         Remove HAVE_MBRTOWC conditionals.
35968         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35969         (mbscasecmp): Assume mbrtowc function.
35970         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35971         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35972         * lib/mbschr.c: Include mbuiter.h unconditionally.
35973         (mbschr): Assume mbrtowc function.
35974         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35975         (mbscspn): Assume mbrtowc function.
35976         * lib/mbslen.c: Include mbuiter.h unconditionally.
35977         (mbslen): Assume mbrtowc function.
35978         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35979         (mbsncasecmp): Assume mbrtowc function.
35980         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35981         (mbsnlen): Assume mbrtowc function.
35982         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35983         (mbspbrk): Assume mbrtowc function.
35984         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35985         (mbspcasecmp): Assume mbrtowc function.
35986         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35987         (mbsrchr): Assume mbrtowc function.
35988         * lib/mbssep.c: Include mbuiter.h unconditionally.
35989         (mbssep): Assume mbrtowc function.
35990         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35991         (mbsspn): Assume mbrtowc function.
35992         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35993         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35994         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35995         (mbstok_r): Assume mbrtowc function.
35996         * lib/propername.c: Include mbuiter.h unconditionally.
35997         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35998         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35999         (trim2): Assume mbrtowc function.
36000         * lib/mbswidth.c (mbsinit): Remove fallback definition.
36001         (mbsnwidth): Assume mbrtowc function.
36002         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
36003         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
36004         fallback definitions.
36005         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
36006
36007 2008-12-22  Bruno Haible  <bruno@clisp.org>
36008
36009         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
36010
36011 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
36012
36013         * modules/regex: Request emulations for the mb*/wc* functions we need.
36014         * m4/regex.m4: Don't look for those functions here.
36015         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
36016
36017 2008-12-22  Bruno Haible  <bruno@clisp.org>
36018
36019         * modules/fnmatch (Depends-on): Remove duplicated dependency.
36020
36021 2008-12-21  Bruno Haible  <bruno@clisp.org>
36022
36023         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
36024         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
36025         (Include): Remove conditionalization.
36026         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
36027         (Include): Remove conditionalization.
36028         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
36029         (Include): Remove conditionalization.
36030         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
36031         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36032         * NEWS: Mention the change.
36033         Reported by Alan Hourihane <alanh@fairlite.co.uk>
36034         via Sergey Poznyakoff <gray@gnu.org.ua>.
36035
36036 2008-12-21  Bruno Haible  <bruno@clisp.org>
36037
36038         * MODULES.html.sh (Extended multibyte and wide character utilities
36039         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
36040         wcrtomb, wcsrtombs.
36041         (Support for systems lacking POSIX:2008): Add accept, bind, close,
36042         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
36043         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
36044         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
36045
36046 2008-12-21  Bruno Haible  <bruno@clisp.org>
36047
36048         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
36049
36050 2008-12-21  Bruno Haible  <bruno@clisp.org>
36051
36052         * modules/wcsnrtombs-tests: New file.
36053         * tests/test-wcsnrtombs1.sh: New file.
36054         * tests/test-wcsnrtombs2.sh: New file.
36055         * tests/test-wcsnrtombs3.sh: New file.
36056         * tests/test-wcsnrtombs4.sh: New file.
36057         * tests/test-wcsnrtombs.c: New file.
36058
36059         New module 'wcsnrtombs'.
36060         * lib/wchar.in.h (wcsnrtombs): New declaration.
36061         * lib/wcsnrtombs.c: New file.
36062         * lib/wcsrtombs-state.c: New file.
36063         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
36064         (internal_state): Remove variable.
36065         * m4/wcsnrtombs.m4: New file.
36066         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
36067         compilation units.
36068         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
36069         HAVE_WCSNRTOMBS.
36070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
36071         HAVE_WCSNRTOMBS.
36072         * modules/wcsnrtombs: New file.
36073         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
36074         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
36075
36076 2008-12-21  Bruno Haible  <bruno@clisp.org>
36077
36078         * modules/wcsrtombs-tests: New file.
36079         * tests/test-wcsrtombs1.sh: New file.
36080         * tests/test-wcsrtombs2.sh: New file.
36081         * tests/test-wcsrtombs3.sh: New file.
36082         * tests/test-wcsrtombs4.sh: New file.
36083         * tests/test-wcsrtombs.c: New file.
36084
36085         New module 'wcsrtombs'.
36086         * lib/wchar.in.h (wcsrtombs): New declaration.
36087         * lib/wcsrtombs.c: New file.
36088         * m4/wcsrtombs.m4: New file.
36089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
36090         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36091         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
36092         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36093         * modules/wcsrtombs: New file.
36094         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
36095         bugs.
36096
36097 2008-12-21  Bruno Haible  <bruno@clisp.org>
36098
36099         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
36100         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
36101         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
36102         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
36103         if not correct.
36104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
36105         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
36106         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36107         m4/locale-zh.m4, m4/codeset.m4.
36108         * doc/posix-functions/wcrtomb.texi: Document the bug.
36109
36110 2008-12-21  Bruno Haible  <bruno@clisp.org>
36111
36112         Work around a btowc() bug on IRIX 6.5.
36113         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
36114         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
36115         REPLACE_WTOBC if not.
36116         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
36117         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
36118         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
36119
36120 2008-12-21  Bruno Haible  <bruno@clisp.org>
36121
36122         * modules/wcrtomb-tests: New file.
36123         * tests/test-wcrtomb.sh: New file.
36124         * tests/test-wcrtomb.c: New file.
36125
36126         New module 'wcrtomb'.
36127         * lib/wchar.in.h (wcrtomb): New declaration.
36128         * lib/wcrtomb.c: New file.
36129         * m4/wcrtomb.m4: New file.
36130         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
36131         HAVE_WCRTOMB.
36132         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
36133         HAVE_WCRTOMB.
36134         * modules/wcrtomb: New file.
36135         * doc/posix-functions/wcrtomb.texi: Mention the new module.
36136
36137 2008-12-21  Bruno Haible  <bruno@clisp.org>
36138
36139         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
36140         * modules/mbsrtowcs (Files): Likewise.
36141         * modules/wctob (Files): Likewise.
36142         * modules/c-strcase-tests (Files): Likewise.
36143         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36144         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36145         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36146         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36147         * modules/vasnprintf-posix-tests (Files): Likewise.
36148
36149 2008-12-21  William Pursell  <bill.pursell@gmail.com>
36150
36151         gitlog-to-changelog: pass all command-line arguments to git-log
36152         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
36153         it is sometimes convenient to filter the commits in various ways.
36154         gitlog-to-changelog only allows --since to specify a start date,
36155         but git-log itself supports many other filtering mechanisms.
36156         At the moment, I want to filter by branch name.  Rather than
36157         adding a --branch option to gitlog-to-changelog, it seems more
36158         flexible to simply pass all options directly to git-log and let
36159         git do the work.  Notice that this effectively makes --since a
36160         redundant option for gitlog-to-changelog, but removing it would
36161         require current usage to change since calls would then require
36162         an additional '--'.
36163
36164 2008-12-21  Bruno Haible  <bruno@clisp.org>
36165
36166         * modules/mbsnrtowcs-tests: New file.
36167         * tests/test-mbsnrtowcs1.sh: New file.
36168         * tests/test-mbsnrtowcs2.sh: New file.
36169         * tests/test-mbsnrtowcs3.sh: New file.
36170         * tests/test-mbsnrtowcs4.sh: New file.
36171         * tests/test-mbsnrtowcs.c: New file.
36172
36173         New module 'mbsnrtowcs'.
36174         * lib/wchar.in.h (mbsnrtowcs): New declaration.
36175         * lib/mbsnrtowcs.c: New file.
36176         * lib/mbsrtowcs-state.c: New file.
36177         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
36178         (internal_state): Remove variable.
36179         * m4/mbsnrtowcs.m4: New file.
36180         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
36181         compilation units.
36182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
36183         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36184         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
36185         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36186         * modules/mbsnrtowcs: New file.
36187         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
36188         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
36189         portability problem.
36190
36191 2008-12-21  Bruno Haible  <bruno@clisp.org>
36192
36193         Work around mbsrtowcs bug.
36194         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
36195         (gl_FUNC_MBSRTOWCS): Invoke it.
36196         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36197         m4/locale-zh.m4.
36198         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
36199
36200 2008-12-21  Bruno Haible  <bruno@clisp.org>
36201
36202         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
36203
36204 2008-12-21  Bruno Haible  <bruno@clisp.org>
36205
36206         Update doc for AIX.
36207         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
36208         16-bit wchar_t type.
36209         * doc/posix-functions/btowc.texi: Likewise.
36210         * doc/posix-functions/fgetwc.texi: Likewise.
36211         * doc/posix-functions/fgetws.texi: Likewise.
36212         * doc/posix-functions/fputwc.texi: Likewise.
36213         * doc/posix-functions/fputws.texi: Likewise.
36214         * doc/posix-functions/fwide.texi: Likewise.
36215         * doc/posix-functions/fwprintf.texi: Likewise.
36216         * doc/posix-functions/fwscanf.texi: Likewise.
36217         * doc/posix-functions/getwchar.texi: Likewise.
36218         * doc/posix-functions/getwc.texi: Likewise.
36219         * doc/posix-functions/iswalnum.texi: Likewise.
36220         * doc/posix-functions/iswalpha.texi: Likewise.
36221         * doc/posix-functions/iswblank.texi: Likewise.
36222         * doc/posix-functions/iswcntrl.texi: Likewise.
36223         * doc/posix-functions/iswctype.texi: Likewise.
36224         * doc/posix-functions/iswdigit.texi: Likewise.
36225         * doc/posix-functions/iswgraph.texi: Likewise.
36226         * doc/posix-functions/iswlower.texi: Likewise.
36227         * doc/posix-functions/iswprint.texi: Likewise.
36228         * doc/posix-functions/iswpunct.texi: Likewise.
36229         * doc/posix-functions/iswspace.texi: Likewise.
36230         * doc/posix-functions/iswupper.texi: Likewise.
36231         * doc/posix-functions/iswxdigit.texi: Likewise.
36232         * doc/posix-functions/mbrtowc.texi: Likewise.
36233         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36234         * doc/posix-functions/mbstowcs.texi: Likewise.
36235         * doc/posix-functions/mbtowc.texi: Likewise.
36236         * doc/posix-functions/putwchar.texi: Likewise.
36237         * doc/posix-functions/putwc.texi: Likewise.
36238         * doc/posix-functions/swprintf.texi: Likewise.
36239         * doc/posix-functions/tolower.texi: Likewise.
36240         * doc/posix-functions/toupper.texi: Likewise.
36241         * doc/posix-functions/towctrans.texi: Likewise.
36242         * doc/posix-functions/ungetwc.texi: Likewise.
36243         * doc/posix-functions/vswprintf.texi: Likewise.
36244         * doc/posix-functions/wcrtomb.texi: Likewise.
36245         * doc/posix-functions/wcscat.texi: Likewise.
36246         * doc/posix-functions/wcschr.texi: Likewise.
36247         * doc/posix-functions/wcscmp.texi: Likewise.
36248         * doc/posix-functions/wcscoll.texi: Likewise.
36249         * doc/posix-functions/wcscpy.texi: Likewise.
36250         * doc/posix-functions/wcscspn.texi: Likewise.
36251         * doc/posix-functions/wcsftime.texi: Likewise.
36252         * doc/posix-functions/wcslen.texi: Likewise.
36253         * doc/posix-functions/wcsncat.texi: Likewise.
36254         * doc/posix-functions/wcsncmp.texi: Likewise.
36255         * doc/posix-functions/wcsncpy.texi: Likewise.
36256         * doc/posix-functions/wcspbrk.texi: Likewise.
36257         * doc/posix-functions/wcsrchr.texi: Likewise.
36258         * doc/posix-functions/wcsrtombs.texi: Likewise.
36259         * doc/posix-functions/wcsspn.texi: Likewise.
36260         * doc/posix-functions/wcsstr.texi: Likewise.
36261         * doc/posix-functions/wcstod.texi: Likewise.
36262         * doc/posix-functions/wcstof.texi: Likewise.
36263         * doc/posix-functions/wcstoimax.texi: Likewise.
36264         * doc/posix-functions/wcstok.texi: Likewise.
36265         * doc/posix-functions/wcstold.texi: Likewise.
36266         * doc/posix-functions/wcstoll.texi: Likewise.
36267         * doc/posix-functions/wcstol.texi: Likewise.
36268         * doc/posix-functions/wcstombs.texi: Likewise.
36269         * doc/posix-functions/wcstoull.texi: Likewise.
36270         * doc/posix-functions/wcstoul.texi: Likewise.
36271         * doc/posix-functions/wcstoumax.texi: Likewise.
36272         * doc/posix-functions/wcswidth.texi: Likewise.
36273         * doc/posix-functions/wcsxfrm.texi: Likewise.
36274         * doc/posix-functions/wctob.texi: Likewise.
36275         * doc/posix-functions/wctomb.texi: Likewise.
36276         * doc/posix-functions/wctrans.texi: Likewise.
36277         * doc/posix-functions/wctype.texi: Likewise.
36278         * doc/posix-functions/wcwidth.texi: Likewise.
36279         * doc/posix-functions/wmemchr.texi: Likewise.
36280         * doc/posix-functions/wmemcmp.texi: Likewise.
36281         * doc/posix-functions/wmemcpy.texi: Likewise.
36282         * doc/posix-functions/wmemmove.texi: Likewise.
36283         * doc/posix-functions/wmemset.texi: Likewise.
36284         * doc/posix-functions/wprintf.texi: Likewise.
36285         * doc/posix-functions/wscanf.texi: Likewise.
36286
36287 2008-12-21  Bruno Haible  <bruno@clisp.org>
36288
36289         Update doc for HP-UX 11.11.
36290         * doc/posix-functions/btowc.texi: Clarify that the function is missing
36291         in HP-UX version 11.00, not in all versions of HP-UX 11.
36292         * doc/posix-functions/fwide.texi: Likewise.
36293         * doc/posix-functions/fwprintf.texi: Likewise.
36294         * doc/posix-functions/fwscanf.texi: Likewise.
36295         * doc/posix-functions/inet_ntop.texi: Likewise.
36296         * doc/posix-functions/inet_pton.texi: Likewise.
36297         * doc/posix-functions/mbrlen.texi: Likewise.
36298         * doc/posix-functions/mbrtowc.texi: Likewise.
36299         * doc/posix-functions/mbsinit.texi: Likewise.
36300         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36301         * doc/posix-functions/swprintf.texi: Likewise.
36302         * doc/posix-functions/swscanf.texi: Likewise.
36303         * doc/posix-functions/towctrans.texi: Likewise.
36304         * doc/posix-functions/vfwprintf.texi: Likewise.
36305         * doc/posix-functions/vswprintf.texi: Likewise.
36306         * doc/posix-functions/vwprintf.texi: Likewise.
36307         * doc/posix-functions/wcrtomb.texi: Likewise.
36308         * doc/posix-functions/wcsrtombs.texi: Likewise.
36309         * doc/posix-functions/wcsstr.texi: Likewise.
36310         * doc/posix-functions/wctob.texi: Likewise.
36311         * doc/posix-functions/wctrans.texi: Likewise.
36312         * doc/posix-functions/wmemchr.texi: Likewise.
36313         * doc/posix-functions/wmemcmp.texi: Likewise.
36314         * doc/posix-functions/wmemcpy.texi: Likewise.
36315         * doc/posix-functions/wmemmove.texi: Likewise.
36316         * doc/posix-functions/wmemset.texi: Likewise.
36317         * doc/posix-functions/wprintf.texi: Likewise.
36318         * doc/posix-functions/wscanf.texi: Likewise.
36319
36320 2008-12-21  Bruno Haible  <bruno@clisp.org>
36321
36322         Work around a portability problem.
36323         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
36324         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
36325
36326 2008-12-20  Bruno Haible  <bruno@clisp.org>
36327
36328         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
36329         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
36330         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
36331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
36332         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
36333
36334         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
36335         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
36336         set.
36337         (GNULIB_defined_mbstate_t): New macro.
36338         (mbsinit): Redefine if REPLACE_MBSINIT is set.
36339         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
36340         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
36341         reuses the system's mbrtowc function but works around the bugs.
36342         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
36343         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
36344         macros.
36345         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
36346         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
36347         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
36348         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
36349         REPLACE_MBSINIT if mbsinit needs to be overridden.
36350         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
36351         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36352         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
36353         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36354         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36355         m4/locale-zh.m4.
36356         (Depends): Add mbsinit.
36357         * modules/mbsinit (Depends): Add mbrtowc.
36358         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
36359
36360 2008-12-20  Bruno Haible  <bruno@clisp.org>
36361
36362         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
36363         so that there are no conversion errors on AIX.
36364         * tests/test-mbsrtowcs.c (main): LIkewise.
36365
36366 2008-12-20  Bruno Haible  <bruno@clisp.org>
36367
36368         Work around wctob bug on Solaris <= 9.
36369         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
36370         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
36371         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
36372         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
36373         * modules/wctob (Files): Add m4/locale-fr.m4.
36374         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
36375
36376 2008-12-20  Bruno Haible  <bruno@clisp.org>
36377
36378         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
36379         /dev/null.
36380         * tests/test-select-in.sh: Likewise.
36381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36382
36383 2008-12-20  Bruno Haible  <bruno@clisp.org>
36384
36385         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
36386         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
36387         Cygwin 1.5.x.
36388
36389 2008-12-20  Bruno Haible  <bruno@clisp.org>
36390
36391         Ensure mbstate_t is defined on HP-UX 11.11.
36392         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
36393         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
36394         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
36395         AC_USE_SYSTEM_EXTENSIONS.
36396         * modules/fnmatch (Depends-on): Add extensions.
36397         * modules/mbrlen (Depends-on): Likewise.
36398         * modules/mbrtowc (Depends-on): Likewise.
36399         * modules/mbsinit (Depends-on): Likewise.
36400         * modules/mbsrtowcs (Depends-on): Likewise.
36401         * modules/mbswidth (Depends-on): Likewise.
36402         * modules/quotearg (Depends-on): Likewise.
36403         * modules/strftime (Depends-on): Likewise.
36404
36405 2008-12-20  Bruno Haible  <bruno@clisp.org>
36406
36407         Ensure wctob is declared on IRIX 6.5.
36408         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36409         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36410         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36412         of HAVE_WCTOB.
36413         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36414         HAVE_WCTOB.
36415         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36416
36417 2008-12-19  Bruno Haible  <bruno@clisp.org>
36418
36419         * modules/mbsrtowcs-tests: New file.
36420         * tests/test-mbsrtowcs1.sh: New file.
36421         * tests/test-mbsrtowcs2.sh: New file.
36422         * tests/test-mbsrtowcs3.sh: New file.
36423         * tests/test-mbsrtowcs4.sh: New file.
36424         * tests/test-mbsrtowcs.c: New file.
36425
36426         New module 'mbsrtowcs'.
36427         * lib/wchar.in.h (mbsrtowcs): New declaration.
36428         * lib/mbsrtowcs.c: New file.
36429         * m4/mbsrtowcs.m4: New file.
36430         * modules/mbsrtowcs: New file.
36431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36432         HAVE_MBSRTOWCS.
36433         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36434         HAVE_MBSRTOWCS.
36435         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36436
36437 2008-12-19  Bruno Haible  <bruno@clisp.org>
36438
36439         New module 'mbrlen'.
36440         * lib/wchar.in.h (mbrlen): New declaration.
36441         * lib/mbrlen.c: New file.
36442         * m4/mbrlen.m4: New file.
36443         * modules/mbrlen: New file.
36444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36445         HAVE_MBRLEN.
36446         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36447         HAVE_MBRLEN.
36448         * doc/posix-functions/mbrlen.texi: Document the new module.
36449
36450 2008-12-19  Bruno Haible  <bruno@clisp.org>
36451
36452         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36453         * modules/mbrtowc (Depends-on): Add verify.
36454         Suggested by Paul Eggert.
36455
36456 2008-12-18  Bruno Haible  <bruno@clisp.org>
36457
36458         * modules/mbsinit-tests: New file.
36459         * tests/test-mbsinit.sh: New file.
36460         * tests/test-mbsinit.c: New file.
36461
36462 2008-12-18  Bruno Haible  <bruno@clisp.org>
36463
36464         * modules/mbrtowc-tests: New file.
36465         * tests/test-mbrtowc1.sh: New file.
36466         * tests/test-mbrtowc2.sh: New file.
36467         * tests/test-mbrtowc3.sh: New file.
36468         * tests/test-mbrtowc4.sh: New file.
36469         * tests/test-mbrtowc.c: New file.
36470
36471         New module 'mbrtowc'.
36472         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36473         mbsinit and mbrtowc.
36474         (mbrtowc): New declaration.
36475         * lib/mbrtowc.c: New file.
36476         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36477         * modules/mbrtowc: New file.
36478         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36479         HAVE_MBRTOWC.
36480         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36481         HAVE_MBRTOWC.
36482         * doc/posix-functions/mbrtowc.texi: Document the new module.
36483
36484 2008-12-18  Bruno Haible  <bruno@clisp.org>
36485
36486         New module 'wctob'.
36487         * lib/wchar.in.h (wctob): New declaration.
36488         * lib/wctob.c: New file.
36489         * m4/wctob.m4: New file.
36490         * modules/wctob: New file.
36491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36492         HAVE_WCTOB.
36493         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36494         * doc/posix-functions/wctob.texi: Document the new module.
36495
36496 2008-12-18  Bruno Haible  <bruno@clisp.org>
36497
36498         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36499         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36500
36501 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36502
36503         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36504         G. Christensen" <tgc@jupiterrise.com>.
36505
36506         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36507         G. Christensen" <tgc@jupiterrise.com>.
36508
36509         * lib/flock.c: Need to include string.h.  Reported by "Tom
36510         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36511         <ebb9@byu.net>.
36512
36513 2008-12-18  Bruno Haible  <bruno@clisp.org>
36514
36515         * m4/locale-ja.m4: New file, from GNU gettext.
36516
36517 2008-12-17  Bruno Haible  <bruno@clisp.org>
36518
36519         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36520         Suggested by Eric Blake.
36521
36522 2008-12-17  Bruno Haible  <bruno@clisp.org>
36523
36524         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36525
36526 2008-12-17  Bruno Haible  <bruno@clisp.org>
36527
36528         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36529         * modules/mbsinit (Depends-on): Add verify.
36530         Suggested by Paul Eggert.
36531
36532 2008-12-17  Bruno Haible  <bruno@clisp.org>
36533
36534         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36535         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36536         gl_FUNC_MBRTOWC.
36537         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36538         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36539         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36540         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36541         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36542         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36543         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36544         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36545         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36546         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36547         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36548         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36549         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36550         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36551         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36552         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36553         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36554         * modules/trim (configure.ac): Likewise.
36555
36556 2008-12-17  Bruno Haible  <bruno@clisp.org>
36557
36558         * modules/btowc-tests: New file.
36559         * tests/test-btowc1.sh: New file.
36560         * tests/test-btowc2.sh: New file.
36561         * tests/test-btowc.c: New file.
36562
36563         New module 'btowc'.
36564         * lib/wchar.in.h (btowc): New declaration.
36565         * lib/btowc.c: New file.
36566         * m4/btowc.m4: New file.
36567         * modules/btowc: New file.
36568         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36569         HAVE_BTOWC.
36570         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36571         * doc/posix-functions/btowc.texi: Document the new module.
36572
36573 2008-12-17  Bruno Haible  <bruno@clisp.org>
36574
36575         New module 'mbsinit'.
36576         * lib/wchar.in.h (mbsinit): New declaration.
36577         * lib/mbsinit.c: New file.
36578         * m4/mbsinit.m4: New file.
36579         * modules/mbsinit: New file.
36580         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36581         HAVE_MBSINIT.
36582         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36583         HAVE_MBSINIT.
36584         * doc/posix-functions/mbsinit.texi: Document the new module.
36585
36586 2008-12-16  Bruno Haible  <bruno@clisp.org>
36587
36588         * lib/unistd.in.h: Add comment.
36589         * tests/test-environ.c: Don't include <stdlib.h>.
36590
36591 2008-12-16  Bruno Haible  <bruno@clisp.org>
36592
36593         * lib/parse-duration.h (parse_duration): Document return value
36594         convention.
36595         * lib/parse-duration.c: Include specification header first. Add
36596         comments.
36597         (_): Remove macro.
36598         (parse_year_month_day, parse_hour_minute_second): Move side effects
36599         outside of strchr call.
36600         (parse_non_iso8601): Move side effects outside of isspace call.
36601         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36602         call.
36603
36604 2008-12-16  Bruno Haible  <bruno@clisp.org>
36605
36606         * tests/test-parse-duration.sh: Produce no output when the test
36607         succeeds.
36608
36609 2008-12-16  Bruno Haible  <bruno@clisp.org>
36610
36611         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36612         expressions.
36613
36614 2008-12-15  Bruno Haible  <bruno@clisp.org>
36615
36616         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36617         * doc/glibc-functions/flistxattr.texi: Likewise.
36618         * doc/glibc-functions/fopencookie.texi: Likewise.
36619         * doc/glibc-functions/fremovexattr.texi: Likewise.
36620         * doc/glibc-functions/fsetxattr.texi: Likewise.
36621         * doc/glibc-functions/getxattr.texi: Likewise.
36622         * doc/glibc-functions/lgetxattr.texi: Likewise.
36623         * doc/glibc-functions/listxattr.texi: Likewise.
36624         * doc/glibc-functions/llistxattr.texi: Likewise.
36625         * doc/glibc-functions/lremovexattr.texi: Likewise.
36626         * doc/glibc-functions/lsetxattr.texi: Likewise.
36627         * doc/glibc-functions/removexattr.texi: Likewise.
36628         * doc/glibc-functions/setxattr.texi: Likewise.
36629         * doc/posix-functions/open_memstream.texi: Likewise.
36630
36631 2008-12-15  Eric Blake  <ebb9@byu.net>
36632
36633         Update doc for cygwin 1.7.
36634         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36635         functions.
36636         * doc/posix-functions/fchmodat.texi: Likewise.
36637         * doc/posix-functions/fchownat.texi: Likewise.
36638         * doc/posix-functions/fdopendir.texi: Likewise.
36639         * doc/posix-functions/fmemopen.texi: Likewise.
36640         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36641         * doc/posix-functions/fstatat.texi: Likewise.
36642         * doc/posix-functions/futimens.texi: Likewise.
36643         * doc/posix-functions/gai_strerror.texi: Likewise.
36644         * doc/posix-functions/getaddrinfo.texi: Likewise.
36645         * doc/posix-functions/getnameinfo.texi: Likewise.
36646         * doc/posix-functions/if_freenameindex.texi: Likewise.
36647         * doc/posix-functions/if_indextoname.texi: Likewise.
36648         * doc/posix-functions/if_nameindex.texi: Likewise.
36649         * doc/posix-functions/if_nametoindex.texi: Likewise.
36650         * doc/posix-functions/insque.texi: Likewise.
36651         * doc/posix-functions/linkat.texi: Likewise.
36652         * doc/posix-functions/llrint.texi: Likewise.
36653         * doc/posix-functions/llrintf.texi: Likewise.
36654         * doc/posix-functions/llrintl.texi: Likewise.
36655         * doc/posix-functions/lockf.texi: Likewise.
36656         * doc/posix-functions/lrintl.texi: Likewise.
36657         * doc/posix-functions/mkdirat.texi: Likewise.
36658         * doc/posix-functions/mkfifoat.texi: Likewise.
36659         * doc/posix-functions/mknodat.texi: Likewise.
36660         * doc/posix-functions/mq_close.texi: Likewise.
36661         * doc/posix-functions/mq_getattr.texi: Likewise.
36662         * doc/posix-functions/mq_notify.texi: Likewise.
36663         * doc/posix-functions/mq_open.texi: Likewise.
36664         * doc/posix-functions/mq_receive.texi: Likewise.
36665         * doc/posix-functions/mq_send.texi: Likewise.
36666         * doc/posix-functions/mq_setattr.texi: Likewise.
36667         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36668         * doc/posix-functions/mq_timedsend.texi: Likewise.
36669         * doc/posix-functions/mq_unlink.texi: Likewise.
36670         * doc/posix-functions/open_memstream.texi: Likewise.
36671         * doc/posix-functions/openat.texi: Likewise.
36672         * doc/posix-functions/posix_fadvise.texi: Likewise.
36673         * doc/posix-functions/posix_fallocate.texi: Likewise.
36674         * doc/posix-functions/posix_madvise.texi: Likewise.
36675         * doc/posix-functions/posix_memalign.texi: Likewise.
36676         * doc/posix-functions/posix_openpt.texi: Likewise.
36677         * doc/posix-functions/readlinkat.texi: Likewise.
36678         * doc/posix-functions/remque.texi: Likewise.
36679         * doc/posix-functions/renameat.texi: Likewise.
36680         * doc/posix-functions/rintl.texi: Likewise.
36681         * doc/posix-functions/sem_unlink.texi: Likewise.
36682         * doc/posix-functions/shm_open.texi: Likewise.
36683         * doc/posix-functions/shm_unlink.texi: Likewise.
36684         * doc/posix-functions/signgam.texi: Likewise.
36685         * doc/posix-functions/sigset.texi: Likewise.
36686         * doc/posix-functions/stpcpy.texi: Likewise.
36687         * doc/posix-functions/stpncpy.texi: Likewise.
36688         * doc/posix-functions/strerror.texi: Likewise.
36689         * doc/posix-functions/strtod.texi: Likewise.
36690         * doc/posix-functions/symlinkat.texi: Likewise.
36691         * doc/posix-functions/unlinkat.texi: Likewise.
36692         * doc/posix-functions/utimensat.texi: Likewise.
36693         * doc/glibc-functions/bindresvport.texi: Likewise.
36694         * doc/glibc-functions/dn_expand.texi: Likewise.
36695         * doc/glibc-functions/exp10.texi: Likewise.
36696         * doc/glibc-functions/exp10f.texi: Likewise.
36697         * doc/glibc-functions/fgetxattr.texi: Likewise.
36698         * doc/glibc-functions/flistxattr.texi: Likewise.
36699         * doc/glibc-functions/fopencookie.texi: Likewise.
36700         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36701         * doc/glibc-functions/fremovexattr.texi: Likewise.
36702         * doc/glibc-functions/fsetxattr.texi: Likewise.
36703         * doc/glibc-functions/getifaddrs.texi: Likewise.
36704         * doc/glibc-functions/getxattr.texi: Likewise.
36705         * doc/glibc-functions/lgetxattr.texi: Likewise.
36706         * doc/glibc-functions/listxattr.texi: Likewise.
36707         * doc/glibc-functions/llistxattr.texi: Likewise.
36708         * doc/glibc-functions/lremovexattr.texi: Likewise.
36709         * doc/glibc-functions/lsetxattr.texi: Likewise.
36710         * doc/glibc-functions/pow10.texi: Likewise.
36711         * doc/glibc-functions/pow10f.texi: Likewise.
36712         * doc/glibc-functions/rcmd_af.texi: Likewise.
36713         * doc/glibc-functions/removexattr.texi: Likewise.
36714         * doc/glibc-functions/res_init.texi: Likewise.
36715         * doc/glibc-functions/res_mkquery.texi: Likewise.
36716         * doc/glibc-functions/res_query.texi: Likewise.
36717         * doc/glibc-functions/res_querydomain.texi: Likewise.
36718         * doc/glibc-functions/res_send.texi: Likewise.
36719         * doc/glibc-functions/rresvport_af.texi: Likewise.
36720         * doc/glibc-functions/setxattr.texi: Likewise.
36721         * doc/glibc-functions/strcasestr.texi: Likewise.
36722
36723 2008-12-15  Bruno Haible  <bruno@clisp.org>
36724
36725         Fix compilation error on OSF/1 4.0.
36726         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36727         <sys/time.h>, simply delegate to the system header.
36728         Reported by Daniel Richard G. <oss@teragram.com>.
36729
36730 2008-12-15  Bruno Haible  <bruno@clisp.org>
36731
36732         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36733         * doc/posix-functions/fchmodat.texi: Likewise.
36734         * doc/posix-functions/fchownat.texi: Likewise.
36735         * doc/posix-functions/fdopendir.texi: Likewise.
36736         * doc/posix-functions/fstatat.texi: Likewise.
36737         * doc/posix-functions/mkdirat.texi: Likewise.
36738         * doc/posix-functions/unlinkat.texi: Likewise.
36739
36740 2008-12-14  Bruno Haible  <bruno@clisp.org>
36741
36742         Update doc for POSIX:2008.
36743         * doc/posix-functions/faccessat.texi: New file.
36744         * doc/posix-functions/fchmodat.texi: New file.
36745         * doc/posix-functions/fchownat.texi: New file.
36746         * doc/posix-functions/fdopendir.texi: New file.
36747         * doc/posix-functions/fstatat.texi: New file.
36748         * doc/posix-functions/futimens.texi: New file.
36749         * doc/posix-functions/linkat.texi: New file.
36750         * doc/posix-functions/mkdirat.texi: New file.
36751         * doc/posix-functions/mkfifoat.texi: New file.
36752         * doc/posix-functions/mknodat.texi: New file.
36753         * doc/posix-functions/open_wmemstream.texi: New file.
36754         * doc/posix-functions/openat.texi: New file.
36755         * doc/posix-functions/psiginfo.texi: New file.
36756         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36757         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36758         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36759         * doc/posix-functions/readlinkat.texi: New file.
36760         * doc/posix-functions/renameat.texi: New file.
36761         * doc/posix-functions/strerror_l.texi: New file.
36762         * doc/posix-functions/symlinkat.texi: New file.
36763         * doc/posix-functions/unlinkat.texi: New file.
36764         * doc/posix-functions/utimensat.texi: New file.
36765         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36766
36767 2008-12-14  Bruno Haible  <bruno@clisp.org>
36768
36769         Update doc for POSIX:2008.
36770         * doc/posix-functions/alphasort.texi: Renamed from
36771         doc/glibc-functions/alphasort.texi.
36772         * doc/posix-functions/dirfd.texi: Renamed from
36773         doc/glibc-functions/dirfd.texi.
36774         * doc/posix-functions/dprintf.texi: Renamed from
36775         doc/glibc-functions/dprintf.texi.
36776         * doc/posix-functions/duplocale.texi: Renamed from
36777         doc/glibc-functions/duplocale.texi.
36778         * doc/posix-functions/fexecve.texi: Renamed from
36779         doc/glibc-functions/fexecve.texi.
36780         * doc/posix-functions/fmemopen.texi: Renamed from
36781         doc/glibc-functions/fmemopen.texi.
36782         * doc/posix-functions/freelocale.texi: Renamed from
36783         doc/glibc-functions/freelocale.texi.
36784         * doc/posix-functions/getdate_err.texi: Renamed from
36785         doc/glibc-functions/getdate_err.texi.
36786         * doc/posix-functions/isalnum_l.texi: Renamed from
36787         doc/glibc-functions/isalnum_l.texi.
36788         * doc/posix-functions/isalpha_l.texi: Renamed from
36789         doc/glibc-functions/isalpha_l.texi.
36790         * doc/posix-functions/isblank_l.texi: Renamed from
36791         doc/glibc-functions/isblank_l.texi.
36792         * doc/posix-functions/iscntrl_l.texi: Renamed from
36793         doc/glibc-functions/iscntrl_l.texi.
36794         * doc/posix-functions/isdigit_l.texi: Renamed from
36795         doc/glibc-functions/isdigit_l.texi.
36796         * doc/posix-functions/isgraph_l.texi: Renamed from
36797         doc/glibc-functions/isgraph_l.texi.
36798         * doc/posix-functions/islower_l.texi: Renamed from
36799         doc/glibc-functions/islower_l.texi.
36800         * doc/posix-functions/isprint_l.texi: Renamed from
36801         doc/glibc-functions/isprint_l.texi.
36802         * doc/posix-functions/ispunct_l.texi: Renamed from
36803         doc/glibc-functions/ispunct_l.texi.
36804         * doc/posix-functions/isspace_l.texi: Renamed from
36805         doc/glibc-functions/isspace_l.texi.
36806         * doc/posix-functions/isupper_l.texi: Renamed from
36807         doc/glibc-functions/isupper_l.texi.
36808         * doc/posix-functions/iswalnum_l.texi: Renamed from
36809         doc/glibc-functions/iswalnum_l.texi.
36810         * doc/posix-functions/iswalpha_l.texi: Renamed from
36811         doc/glibc-functions/iswalpha_l.texi.
36812         * doc/posix-functions/iswblank_l.texi: Renamed from
36813         doc/glibc-functions/iswblank_l.texi.
36814         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36815         doc/glibc-functions/iswcntrl_l.texi.
36816         * doc/posix-functions/iswctype_l.texi: Renamed from
36817         doc/glibc-functions/iswctype_l.texi.
36818         * doc/posix-functions/iswdigit_l.texi: Renamed from
36819         doc/glibc-functions/iswdigit_l.texi.
36820         * doc/posix-functions/iswgraph_l.texi: Renamed from
36821         doc/glibc-functions/iswgraph_l.texi.
36822         * doc/posix-functions/iswlower_l.texi: Renamed from
36823         doc/glibc-functions/iswlower_l.texi.
36824         * doc/posix-functions/iswprint_l.texi: Renamed from
36825         doc/glibc-functions/iswprint_l.texi.
36826         * doc/posix-functions/iswpunct_l.texi: Renamed from
36827         doc/glibc-functions/iswpunct_l.texi.
36828         * doc/posix-functions/iswspace_l.texi: Renamed from
36829         doc/glibc-functions/iswspace_l.texi.
36830         * doc/posix-functions/iswupper_l.texi: Renamed from
36831         doc/glibc-functions/iswupper_l.texi.
36832         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36833         doc/glibc-functions/iswxdigit_l.texi.
36834         * doc/posix-functions/isxdigit_l.texi: Renamed from
36835         doc/glibc-functions/isxdigit_l.texi.
36836         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36837         doc/glibc-functions/mbsnrtowcs.texi.
36838         * doc/posix-functions/mkdtemp.texi: Renamed from
36839         doc/glibc-functions/mkdtemp.texi.
36840         * doc/posix-functions/newlocale.texi: Renamed from
36841         doc/glibc-functions/newlocale.texi.
36842         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36843         doc/glibc-functions/nl_langinfo_l.texi.
36844         * doc/posix-functions/open_memstream.texi: Renamed from
36845         doc/glibc-functions/open_memstream.texi.
36846         * doc/posix-functions/opterr.texi: Renamed from
36847         doc/glibc-functions/opterr.texi.
36848         * doc/posix-functions/optind.texi: Renamed from
36849         doc/glibc-functions/optind.texi.
36850         * doc/posix-functions/optopt.texi: Renamed from
36851         doc/glibc-functions/optopt.texi.
36852         * doc/posix-functions/psignal.texi: Renamed from
36853         doc/glibc-functions/psignal.texi.
36854         * doc/posix-functions/scandir.texi: Renamed from
36855         doc/glibc-functions/scandir.texi.
36856         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36857         doc/glibc-functions/sched_get_priority_min.texi.
36858         * doc/posix-functions/signgam.texi: Renamed from
36859         doc/glibc-functions/signgam.texi.
36860         * doc/posix-functions/stpcpy.texi: Renamed from
36861         doc/glibc-functions/stpcpy.texi.
36862         * doc/posix-functions/stpncpy.texi: Renamed from
36863         doc/glibc-functions/stpncpy.texi.
36864         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36865         doc/glibc-functions/strcasecmp_l.texi.
36866         * doc/posix-functions/strcoll_l.texi: Renamed from
36867         doc/glibc-functions/strcoll_l.texi.
36868         * doc/posix-functions/strfmon_l.texi: Renamed from
36869         doc/glibc-functions/strfmon_l.texi.
36870         * doc/posix-functions/strftime_l.texi: Renamed from
36871         doc/glibc-functions/strftime_l.texi.
36872         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36873         doc/glibc-functions/strncasecmp_l.texi.
36874         * doc/posix-functions/strndup.texi: Renamed from
36875         doc/glibc-functions/strndup.texi.
36876         * doc/posix-functions/strnlen.texi: Renamed from
36877         doc/glibc-functions/strnlen.texi.
36878         * doc/posix-functions/strsignal.texi: Renamed from
36879         doc/glibc-functions/strsignal.texi.
36880         * doc/posix-functions/strxfrm_l.texi: Renamed from
36881         doc/glibc-functions/strxfrm_l.texi.
36882         * doc/posix-functions/timer_gettime.texi: Renamed from
36883         doc/glibc-functions/timer_gettime.texi.
36884         * doc/posix-functions/tolower_l.texi: Renamed from
36885         doc/glibc-functions/tolower_l.texi.
36886         * doc/posix-functions/toupper_l.texi: Renamed from
36887         doc/glibc-functions/toupper_l.texi.
36888         * doc/posix-functions/towctrans_l.texi: Renamed from
36889         doc/glibc-functions/towctrans_l.texi.
36890         * doc/posix-functions/towlower_l.texi: Renamed from
36891         doc/glibc-functions/towlower_l.texi.
36892         * doc/posix-functions/towupper_l.texi: Renamed from
36893         doc/glibc-functions/towupper_l.texi.
36894         * doc/posix-functions/uselocale.texi: Renamed from
36895         doc/glibc-functions/uselocale.texi.
36896         * doc/posix-functions/vdprintf.texi: Renamed from
36897         doc/glibc-functions/vdprintf.texi.
36898         * doc/posix-functions/wcpcpy.texi:
36899         Renamed from doc/glibc-functions/wcpcpy.texi.
36900         * doc/posix-functions/wcpncpy.texi: Renamed from
36901         doc/glibc-functions/wcpncpy.texi.
36902         * doc/posix-functions/wcscasecmp.texi: Renamed from
36903         doc/glibc-functions/wcscasecmp.texi.
36904         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36905         doc/glibc-functions/wcscasecmp_l.texi.
36906         * doc/posix-functions/wcscoll_l.texi: Renamed from
36907         doc/glibc-functions/wcscoll_l.texi.
36908         * doc/posix-functions/wcsdup.texi: Renamed from
36909         doc/glibc-functions/wcsdup.texi.
36910         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36911         doc/glibc-functions/wcsncasecmp.texi.
36912         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36913         doc/glibc-functions/wcsncasecmp_l.texi.
36914         * doc/posix-functions/wcsnlen.texi: Renamed from
36915         doc/glibc-functions/wcsnlen.texi.
36916         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36917         doc/glibc-functions/wcsnrtombs.texi.
36918         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36919         doc/glibc-functions/wcsxfrm_l.texi.
36920         * doc/posix-functions/wctrans_l.texi: Renamed from
36921         doc/glibc-functions/wctrans_l.texi.
36922         * doc/posix-functions/wctype_l.texi: Renamed from
36923         doc/glibc-functions/wctype_l.texi.
36924         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36925         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36926         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36927         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36928         these subsections.
36929         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36930         Remove sections.
36931
36932 2008-12-14  Bruno Haible  <bruno@clisp.org>
36933
36934         Update doc for POSIX:2008.
36935         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36936
36937 2008-12-14  Bruno Haible  <bruno@clisp.org>
36938
36939         Update doc for POSIX:2008.
36940         * doc/pastposix-functions/bcmp.texi: Renamed from
36941         doc/posix-functions/bcmp.texi.
36942         * doc/pastposix-functions/bcopy.texi: Renamed from
36943         doc/posix-functions/bcopy.texi.
36944         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36945         doc/posix-functions/bsd_signal.texi.
36946         * doc/pastposix-functions/bzero.texi: Renamed from
36947         doc/posix-functions/bzero.texi.
36948         * doc/pastposix-functions/ecvt.texi: Renamed from
36949         doc/posix-functions/ecvt.texi.
36950         * doc/pastposix-functions/fcvt.texi: Renamed from
36951         doc/posix-functions/fcvt.texi.
36952         * doc/pastposix-functions/ftime.texi: Renamed from
36953         doc/posix-functions/ftime.texi.
36954         * doc/pastposix-functions/gcvt.texi: Renamed from
36955         doc/posix-functions/gcvt.texi.
36956         * doc/pastposix-functions/getcontext.texi: Renamed from
36957         doc/posix-functions/getcontext.texi.
36958         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36959         doc/posix-functions/gethostbyaddr.texi.
36960         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36961         doc/posix-functions/gethostbyname.texi.
36962         * doc/pastposix-functions/getwd.texi: Renamed from
36963         doc/posix-functions/getwd.texi.
36964         * doc/pastposix-functions/h_errno.texi: Renamed from
36965         doc/posix-functions/h_errno.texi.
36966         * doc/pastposix-functions/index.texi: Renamed from
36967         doc/posix-functions/index.texi.
36968         * doc/pastposix-functions/makecontext.texi: Renamed from
36969         doc/posix-functions/makecontext.texi.
36970         * doc/pastposix-functions/mktemp.texi: Renamed from
36971         doc/posix-functions/mktemp.texi.
36972         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36973         doc/posix-functions/pthread_attr_getstackaddr.texi.
36974         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36975         doc/posix-functions/pthread_attr_setstackaddr.texi.
36976         * doc/pastposix-functions/rindex.texi: Renamed from
36977         doc/posix-functions/rindex.texi.
36978         * doc/pastposix-functions/scalb.texi: Renamed from
36979         doc/posix-functions/scalb.texi.
36980         * doc/pastposix-functions/setcontext.texi: Renamed from
36981         doc/posix-functions/setcontext.texi.
36982         * doc/pastposix-functions/swapcontext.texi: Renamed from
36983         doc/posix-functions/swapcontext.texi.
36984         * doc/pastposix-functions/ualarm.texi: Renamed from
36985         doc/posix-functions/ualarm.texi.
36986         * doc/pastposix-functions/usleep.texi: Renamed from
36987         doc/posix-functions/usleep.texi.
36988         * doc/pastposix-functions/vfork.texi: Renamed from
36989         doc/posix-functions/vfork.texi.
36990         * doc/pastposix-functions/wcswcs.texi: Renamed from
36991         doc/posix-functions/wcswcs.texi.
36992         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36993         (Function Substitutes): Update.
36994
36995 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36996
36997         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36998         m4/strerror.m4.
36999
37000 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37001             Bruno Haible  <bruno@clisp.org>
37002
37003         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
37004
37005 2008-12-13  Bruno Haible  <bruno@clisp.org>
37006
37007         * modules/strtoull (Depends-on): Remove unistd.
37008
37009 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37010
37011         * modules/strtoull (Depends-on): Add stdlib.
37012
37013 2008-12-11  Simon Josefsson  <simon@josefsson.org>
37014
37015         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
37016
37017 2008-12-10  Jim Meyering  <meyering@redhat.com>
37018
37019         gl_ASSERT: don't say assertions are disabled when they're not
37020         * m4/assert.m4 (gl_ASSERT): Do not make configure report
37021         "checking whether to enable assertions... no", when they are in
37022         fact enabled.  This is solely a bug in the output of configure.
37023         In spite of saying "no", NDEBUG was not defined in that case.
37024         Also, as noted by Eric Blake, leave assertions enabled upon
37025         --enable-assert=INVALID.
37026
37027 2008-12-10  Bruno Haible  <bruno@clisp.org>
37028
37029         Change MODULES.html to refer to POSIX:2008 where possible.
37030         * MODULES.html.sh (POSIX2008_URL): New variable.
37031         (posix_headers): Remove sys/timeb, ucontext.
37032         (posix2001_headers): New variable.
37033         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
37034         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
37035         index, makecontext, mktemp, pthread_attr_getstackaddr,
37036         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
37037         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
37038         (posix2001_functions): New variable.
37039         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
37040         otherwise.
37041
37042 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37043
37044         add missing include to parse-duration.c
37045         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
37046         * modules/parse-duration (Depends-on): Add xalloc.
37047
37048         fix sed script reading maint.mk
37049         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
37050         (syntax-check-rules): Use it.
37051
37052 2008-12-09  Bruno Haible  <bruno@clisp.org>
37053
37054         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
37055         MacOS X 10.4/PowerPC.
37056         Reported by Simon Josefsson.
37057
37058 2008-12-08  Jim Meyering  <meyering@redhat.com>
37059
37060         work around mingw's lack of some S_IF definitions
37061         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
37062         Reported by Simon Josefsson.
37063
37064 2008-12-08  Bruno Haible  <bruno@clisp.org>
37065
37066         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
37067         applied to variables. Needed on MacOS X 10.4/PowerPC.
37068         Reported by Simon Josefsson.
37069
37070 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
37071         and Eric Blake  <ebb9@byu.net>
37072
37073         assert: honor --enable-assert
37074         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
37075         order to honor --enable-assert, rather than treating it as a
37076         synonym for --disable-assert.
37077
37078 2008-12-08  Jim Meyering  <meyering@redhat.com>
37079
37080         * lib/posixtm.c: Remove now-useless declaration of mktime.
37081
37082         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
37083
37084 2008-12-07  Bruno Haible  <bruno@clisp.org>
37085
37086         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
37087         test_once): Mark functions as static.
37088         * tests/test-tls.c (test_tls): Likewise.
37089
37090 2008-12-07  Bruno Haible  <bruno@clisp.org>
37091
37092         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
37093         iconv_register_autodetect.
37094
37095 2008-12-07  Jim Meyering  <meyering@redhat.com>
37096
37097         posixtm.c: avoid a warning
37098         * lib/posixtm.c (posixtime): Don't initialize tm0.
37099         It's no longer needed to placate gcc4's -Wuninitialized,
37100         and the attempt to placate would elicit a new warning.
37101
37102         unicodeio.c: mark unused parameters
37103         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37104         (fallback_failure_callback): Likewise.
37105
37106 2008-12-07  Bruno Haible  <bruno@clisp.org>
37107
37108         * gnulib-tool (func_create_testdir): When building the tests
37109         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
37110         Reported by Simon Josefsson.
37111
37112 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37113
37114         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
37115
37116 2008-12-06  Bruno Haible  <bruno@clisp.org>
37117
37118         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
37119         Suggested by Eric Blake.
37120
37121 2008-12-06  Bruno Haible  <bruno@clisp.org>
37122
37123         Fix a c-stack test failure on MacOS X.
37124         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
37125         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
37126         handler for SIGBUS as well.
37127         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
37128         install a signal handler for SIGBUS as well.
37129         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
37130
37131 2008-12-06  Bruno Haible  <bruno@clisp.org>
37132
37133         Advocacy documentation.
37134         * doc/gnulib-intro.texi (Benefits): New section.
37135         * doc/gnulib.texi: Update.
37136
37137 2008-12-06  Bruno Haible  <bruno@clisp.org>
37138
37139         Document the 'manywarnings' module.
37140         * doc/manywarnings.texi: New file.
37141         * doc/gnulib.texi: Include it.
37142
37143 2008-12-05  Eric Blake  <ebb9@byu.net>
37144
37145         tests: silence some gcc warnings
37146         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
37147         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
37148         type mismatches.
37149
37150 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37151             Bruno Haible  <bruno@clisp.org>
37152
37153         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
37154
37155 2008-11-29  Jim Meyering  <meyering@redhat.com>
37156
37157         unicodeio.c: mark unused parameters
37158         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37159         (fallback_failure_callback): Likewise.
37160
37161         fts: fix a thinko
37162         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
37163         (set_stat_type): Return S_IF*-valued "type" directly.
37164         Prompted by James Youngman's spotting a related bug.
37165         Confirmed by further testing through find.
37166
37167         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
37168         * lib/fts.c (D_TYPE): Define.
37169         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
37170         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
37171         (s_ifmt_shift_bits): New function.
37172         (set_stat_type): New function.
37173         (fts_build): When not calling fts_stat, call set_stat_type
37174         to propagate dirent.d_type info to fts_read caller.
37175         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
37176         fts_statp->st_mode type information may be valid.
37177
37178 2008-11-28  Simon Josefsson  <simon@josefsson.org>
37179
37180         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
37181         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
37182         <sds@gnu.org>.
37183
37184 2008-11-20  Bruno Haible  <bruno@clisp.org>
37185
37186         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
37187         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
37188         INCLUDE_NEXT.
37189         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
37190         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
37191         * modules/math (Makefile.am): Substitute
37192         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
37193         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37194
37195 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37196             Bruno Haible  <bruno@clisp.org>
37197
37198         * lib/stdint.in.h: Define all type macros so that their expansion is
37199         a single typedef'ed token. Fixes a compilation failure in Boost which
37200         does "using ::int8_t;".
37201
37202 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37203
37204         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
37205         gl_MANYWARN_ALL_GCC.
37206         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
37207         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
37208         * modules/manywarnings: New file.
37209         * MODULES.html.sh: Mention manywarnings module.
37210
37211 2008-11-18  Bruno Haible  <bruno@clisp.org>
37212
37213         * doc/gnulib-tool.texi (Unit tests): New section.
37214
37215 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37216
37217         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
37218         paths like 'lib/po/foo.po'.
37219
37220 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37221
37222         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
37223         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
37224
37225 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37226
37227         * m4/warnings.m4: Use CPPFLAGS to really check whether the
37228         parameter works.
37229
37230 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37231
37232         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
37233
37234 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37235
37236         * modules/parse-duration-tests: New file.
37237         * tests/test-parse-duration.sh: New file.
37238         * tests/test-parse-duration.c: New file.
37239
37240         New module 'parse-duration'.
37241         * lib/parse-duration.h: New file.
37242         * lib/parse-duration.c: New file.
37243         * modules/parse-duration: New file.
37244
37245 2008-11-17  Bruno Haible  <bruno@clisp.org>
37246
37247         * tests/test-select-out.sh: Comment out the first pipe test.
37248         Reported by Simon Josefsson.
37249
37250 2008-11-17  Bruno Haible  <bruno@clisp.org>
37251
37252         * modules/getaddrinfo (Depends-on): Add servent, hostent.
37253         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
37254         gl_HOSTENT.
37255
37256 2008-11-17  Bruno Haible  <bruno@clisp.org>
37257
37258         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
37259         -lnetwork and -lnet. Needed for Haiku and BeOS.
37260
37261 2008-11-16  Bruno Haible  <bruno@clisp.org>
37262
37263         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
37264
37265 2008-11-16  Bruno Haible  <bruno@clisp.org>
37266
37267         Avoid test failure on Haiku.
37268         * tests/test-fsync.c: Include <errno.h>.
37269         (main): Don't require that fsync (0) fails.
37270
37271 2008-11-15  Bruno Haible  <bruno@clisp.org>
37272
37273         New module 'hostent'.
37274         * modules/hostent: New file.
37275         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
37276
37277 2008-11-15  Bruno Haible  <bruno@clisp.org>
37278
37279         New module 'servent'.
37280         * modules/servent: New file.
37281         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
37282
37283 2008-11-15  Bruno Haible  <bruno@clisp.org>
37284
37285         Avoid generating same test program with two different rules.
37286         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
37287         test-frexp to test-frexp-nolibm.
37288         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
37289         test-frexpl to test-frexpl-nolibm.
37290
37291 2008-11-15  Bruno Haible  <bruno@clisp.org>
37292
37293         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
37294         $(FREXPL_LIBM).
37295
37296 2008-11-15  Bruno Haible  <bruno@clisp.org>
37297
37298         * lib/netdb.in.h: Activate the definitions also when the system's
37299         <netdb.h> has 'struct addrinfo'.
37300         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
37301         EAI_OVERFLOW or AI_NUMERICSERV.
37302         * doc/posix-headers/netdb.texi: Document the problem.
37303
37304 2008-11-15  Bruno Haible  <bruno@clisp.org>
37305
37306         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
37307
37308         Make the 'sched' module work on platforms where <sched.h> exists but
37309         is incomplete (such as Haiku).
37310         * lib/sched.in.h; Include the system's <sched.h> if it exists.
37311         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
37312         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
37313         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
37314         HAVE_STRUCT_SCHED_PARAM.
37315         * modules/sched (Depends-on): Add include_next.
37316         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
37317         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
37318         * doc/posix-headers/sched.texi: Document the issue.
37319
37320 2008-11-13  Jim Meyering  <meyering@redhat.com>
37321
37322         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
37323         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
37324         test would fail due to the difference in the Report bugs to ...
37325         line.  The expected address is empty, "<>", while the actual
37326         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
37327
37328 2008-11-12  Bruno Haible  <bruno@clisp.org>
37329
37330         lstat: don't compile lstat.c on systems lacking lstat
37331         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
37332         which don't have lstat; this is handled by lib/sys_stat.in.h already.
37333         Reported by Daniel P. Berrange via Jim Meyering.
37334
37335 2008-11-12  Jim Meyering  <meyering@redhat.com>
37336
37337         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
37338
37339 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37340
37341         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
37342         instead.
37343
37344 2008-11-12  Bruno Haible  <bruno@clisp.org>
37345
37346         * lib/unicodeio.c: Include unistr.h.
37347         (utf8_wctomb): Remove function.
37348         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
37349
37350 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37351
37352         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
37353         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
37354         <bruno@clisp.org>.
37355         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
37356
37357 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37358
37359         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
37360         * doc/gnulib.texi: Add section for warnings.
37361
37362 2008-11-11  Bruno Haible  <bruno@clisp.org>
37363
37364         * lib/sockets.h: Add a comment.
37365
37366 2008-11-11  Karl Berry  <karl@gnu.org>
37367
37368         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
37369
37370 2008-11-11  Eric Blake  <ebb9@byu.net>
37371
37372         fdl.texi: avoid git symlinks
37373         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
37374
37375 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37376
37377         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
37378
37379 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37380
37381         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
37382         (gl_WARN_ADD): Substitute $2 if literal.
37383
37384 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37385
37386         * m4/warning.m4: Remove.
37387
37388 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37389
37390         * m4/warnings.m4: Almost complete rewrite. :-)
37391
37392 2008-11-10  Simon Josefsson  <simon@josefsson.org>
37393
37394         * modules/warnings: New module.
37395         * m4/warnings.m4: New file.
37396         * MODULES.html.sh: Mention warnings module.
37397         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37398         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37399
37400 2008-11-10  Eric Blake  <ebb9@byu.net>
37401
37402         fdl.texi: make a symlink to the latest version
37403         * doc/standards.texi: Revert today's earlier change.
37404         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37405         * doc/fdl.texi: ...and replace this with a symlink to the newer
37406         fdl-1.3.texi.
37407
37408 2008-11-10  Bruno Haible  <bruno@clisp.org>
37409
37410         * tests/test-select-fd.c (main): Accept the result file name as fourth
37411         argument.
37412         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37413         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37414
37415 2008-11-10  Bruno Haible  <bruno@clisp.org>
37416
37417         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37418         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37419         as autoconf-substituted macros.
37420         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37421         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37422         gl_NETDB_H_DEFAULTS. Set these variables.
37423         * modules/netdb (Makefile.am): Substitute these variables.
37424
37425 2008-11-10  Eric Blake  <ebb9@byu.net>
37426
37427         standards.texi: include correct file for FDL 1.3
37428         * doc/standards.texi (GNU Free Documentation License): Change
37429         include file to pull in FDL 1.3, not 1.2.
37430
37431         fdl.texi: revert accidental change to license
37432         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37433
37434 2008-11-10  Bruno Haible  <bruno@clisp.org>
37435
37436         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37437         cross-compiling guesses also when the native compile gives no result.
37438
37439 2008-11-10  Bruno Haible  <bruno@clisp.org>
37440
37441         * lib/spawni.c (__spawni): Force variable into the stack.
37442
37443 2008-11-10  Bruno Haible  <bruno@clisp.org>
37444
37445         Add support for Haiku.
37446         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37447         glibc and BeOS, but also on Haiku.
37448         * lib/fpurge.c (fpurge): Likewise.
37449         * lib/freadable.c (freadable): Likewise.
37450         * lib/freadahead.c (freadahead): Likewise.
37451         * lib/freading.c (freading): Likewise.
37452         * lib/freadptr.c (freadptr): Likewise.
37453         * lib/freadseek.c (freadptrinc): Likewise.
37454         * lib/fseeko.c (rpl_fseeko): Likewise.
37455         * lib/fseterr.c (fseterr): Likewise.
37456         * lib/fwritable.c (fwritable): Likewise.
37457         * lib/fwriting.c (fwriting): Likewise.
37458         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37459
37460 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37461
37462         * lib/config.charset: Treat Haiku like BeOS.
37463
37464 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37465
37466         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37467         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37468
37469 2008-11-08  Bruno Haible  <bruno@clisp.org>
37470
37471         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37472         AC_CACHE_CHECK.
37473
37474 2008-11-08  Bruno Haible  <bruno@clisp.org>
37475
37476         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37477
37478 2008-11-08  Bruno Haible  <bruno@clisp.org>
37479
37480         * tests/test-select-fd.c: New file.
37481         * tests/test-select-in.sh: New file.
37482         * tests/test-select-out.sh: New file.
37483         * tests/test-select-stdin.c: New file.
37484         * modules/select-tests (Files): Add the new files.
37485         (Depends-on): Add gettimeofday.
37486         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37487         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37488         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37489
37490 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37491             Bruno Haible  <bruno@clisp.org>
37492
37493         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37494
37495 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37496
37497         * build-aux/pmccabe2html: Added support for C++ source files.
37498
37499 2008-11-05  Ben Pfaff  <blp@gnu.org>
37500
37501         Fix lib/close.c build on Windows.
37502         * modules/close (Files): Add lib/w32sock.h.
37503
37504 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37505
37506         Accept Bison's NEWS format.
37507         * build-aux/announce-gen (print_news_deltas): Tweak
37508         $re_prefix.
37509
37510 2008-11-04  Bruno Haible  <bruno@clisp.org>
37511
37512         * modules/random_r (Maintainer): Add glibc.
37513
37514 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37515
37516         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37517         by karl@freefriends.org (Karl Berry).
37518         * doc/alloca.texi: Likewise.
37519         * doc/c-ctype.texi: Likewise.
37520         * doc/c-strcase.texi: Likewise.
37521         * doc/c-strcaseeq.texi: Likewise.
37522         * doc/c-strcasestr.texi: Likewise.
37523         * doc/c-strstr.texi: Likewise.
37524         * doc/c-strtod.texi: Likewise.
37525         * doc/c-strtold.texi: Likewise.
37526         * doc/ctime.texi: Likewise.
37527         * doc/error.texi: Likewise.
37528         * doc/fdl.texi: Likewise.
37529         * doc/gcd.texi: Likewise.
37530         * doc/getdate.texi: Likewise.
37531         * doc/gnulib-intro.texi: Likewise.
37532         * doc/gnulib-tool.texi: Likewise.
37533         * doc/gnulib.texi: Likewise.
37534         * doc/inet_ntoa.texi: Likewise.
37535         * doc/maintain.texi: Likewise.
37536         * doc/make-stds.texi: Likewise.
37537         * doc/quote.texi: Likewise.
37538         * doc/regexprops-generic.texi: Likewise.
37539         * doc/standards.texi: Likewise.
37540         * doc/verify.texi: Likewise.
37541         * doc/visibility.texi: Likewise.
37542         * doc/gnulib.texi (GNU Free Documentation License): Include
37543         fdl-1.3.texi instead of fdl.texi.
37544
37545 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37546
37547         * doc/fdl-1.3.texi: New file, from
37548         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37549         * modules/fdl-1.3: Add.
37550         * MODULES.html.sh: Add fdl-1.3.
37551
37552 2008-11-03  Bruno Haible  <bruno@clisp.org>
37553
37554         Make determination of absolute name of header file work with AIX xlc.
37555         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37556         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37557         preprocessing.
37558         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37559         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37560
37561 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37562
37563         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37564         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37565         <ludo@gnu.org>.
37566
37567 2008-11-02  Bruno Haible  <bruno@clisp.org>
37568
37569         Mark 'strpbrk' obsolete.
37570         * modules/strpbrk (Status, Notice): New sections.
37571         * modules/strtok_r (Depends-on): Add strpbrk.
37572
37573 2008-11-02  Bruno Haible  <bruno@clisp.org>
37574
37575         Mark 'strdup' obsolete.
37576         * modules/strdup (Status, Notice): New sections.
37577         * modules/findprog (Depends-on): Add strdup.
37578         * modules/getaddrinfo (Depends-on): Likewise.
37579         * modules/localename (Depends-on): Likewise.
37580         * modules/relocatable-lib (Depends-on): Likewise.
37581         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37582         * modules/relocatable-prog (Depends-on): Likewise.
37583         * modules/trim (Depends-on): Likewise.
37584         * modules/unictype/gen-ctype (Depends-on): Likewise.
37585         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37586
37587 2008-11-02  Bruno Haible  <bruno@clisp.org>
37588
37589         Mark 'strcspn' obsolete.
37590         * modules/strcspn (Status, Notice): New sections.
37591
37592 2008-11-02  Bruno Haible  <bruno@clisp.org>
37593
37594         Mark 'rmdir' obsolete.
37595         * modules/rmdir (Status, Notice): New sections.
37596         * modules/clean-temp (Depends-on): Add rmdir.
37597         * modules/openat (Depends-on): Likewise.
37598
37599 2008-11-02  Bruno Haible  <bruno@clisp.org>
37600
37601         Mark 'raise' obsolete.
37602         * modules/raise (Status, Notice): New sections.
37603         (Include): Specify <signal.h>.
37604         * modules/stdio (Depends-on): Add raise.
37605         * modules/write (Depends-on): Likewise.
37606
37607 2008-11-02  Bruno Haible  <bruno@clisp.org>
37608
37609         Mark 'memset' obsolete.
37610         * modules/memset (Status, Notice): New sections.
37611
37612 2008-11-02  Bruno Haible  <bruno@clisp.org>
37613
37614         Mark 'memmove' obsolete.
37615         * modules/memmove (Status, Notice): New sections.
37616         * modules/argp (Depends-on): Add memmove.
37617         * modules/argz (Depends-on): Likewise.
37618         * modules/canonicalize (Depends-on): Likewise.
37619         * modules/canonicalize-lgpl (Depends-on): Likewise.
37620         * modules/fts (Depends-on): Likewise.
37621         * modules/getcwd (Depends-on): Likewise.
37622         * modules/human (Depends-on): Likewise.
37623         * modules/regex (Depends-on): Likewise.
37624         * modules/striconveh (Depends-on): Likewise.
37625         * modules/trim (Depends-on): Likewise.
37626         * modules/unistr/u8-move (Depends-on): Likewise.
37627         * modules/unistr/u16-move (Depends-on): Likewise.
37628         * modules/unistr/u32-move (Depends-on): Likewise.
37629
37630 2008-11-02  Bruno Haible  <bruno@clisp.org>
37631
37632         Mark 'memcpy' obsolete.
37633         * modules/memcpy (Status, Notice): New sections.
37634
37635 2008-11-02  Bruno Haible  <bruno@clisp.org>
37636
37637         Mark 'memcmp' obsolete.
37638         * modules/memcmp (Status, Notice): New sections.
37639         * modules/argmatch (Depends-on): Add memchr.
37640         * modules/backupfile (Depends-on): Likewise.
37641         * modules/c-strcasestr (Depends-on): Likewise.
37642         * modules/crypto/des (Depends-on): Likewise.
37643         * modules/csharpcomp (Depends-on): Likewise.
37644         * modules/fnmatch (Depends-on): Likewise.
37645         * modules/git-merge-changelog (Depends-on): Likewise.
37646         * modules/isnand (Depends-on): Likewise.
37647         * modules/isnand-nolibm (Depends-on): Likewise.
37648         * modules/isnanf (Depends-on): Likewise.
37649         * modules/isnanf-nolibm (Depends-on): Likewise.
37650         * modules/isnanl (Depends-on): Likewise.
37651         * modules/isnanl-nolibm (Depends-on): Likewise.
37652         * modules/mbchar (Depends-on): Likewise.
37653         * modules/memcoll (Depends-on): Likewise.
37654         * modules/quotearg (Depends-on): Likewise.
37655         * modules/regex (Depends-on): Likewise.
37656         * modules/relocatable-prog (Depends-on): Likewise.
37657         * modules/same (Depends-on): Likewise.
37658         * modules/signbit (Depends-on): Likewise.
37659         * modules/strcasestr-simple (Depends-on): Likewise.
37660         * modules/unictype/gen-ctype (Depends-on): Likewise.
37661         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37662         * modules/uniname/uniname (Depends-on): Likewise.
37663         * modules/unistr/u8-cmp (Depends-on): Likewise.
37664
37665 2008-11-02  Bruno Haible  <bruno@clisp.org>
37666
37667         Mark 'memchr' obsolete.
37668         * modules/memchr (Status, Notice): New sections.
37669         * modules/argp (Depends-on): Add memchr.
37670         * modules/base64 (Depends-on): Likewise.
37671         * modules/c-strcasestr (Depends-on): Likewise.
37672         * modules/chdir-long (Depends-on): Likewise.
37673         * modules/fnmatch (Depends-on): Likewise.
37674         * modules/getsubopt (Depends-on): Likewise.
37675         * modules/git-merge-changelog (Depends-on): Likewise.
37676         * modules/glob (Depends-on): Likewise.
37677         * modules/strcasestr-simple (Depends-on): Likewise.
37678         * modules/strnlen (Depends-on): Likewise.
37679
37680 2008-11-02  Bruno Haible  <bruno@clisp.org>
37681
37682         Mark 'atexit' obsolete.
37683         * modules/atexit (Status, Notice): New sections.
37684         * modules/chdir-long (Depends-on): Add atexit.
37685         * modules/wait-process (Depends-on): Likewise.
37686
37687 2008-11-02  Bruno Haible  <bruno@clisp.org>
37688
37689         * gnulib-tool: New option --with-obsolete.
37690         (func_usage): Document it.
37691         (func_modules_transitive_closure): Drop obsolete dependencies if
37692         incobsolete is not true.
37693         (func_import): Read and save the incobsolete variable to the cache.
37694
37695 2008-11-02  Bruno Haible  <bruno@clisp.org>
37696
37697         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37698         * gnulib-tool: New option --extract-status.
37699         (func_usage): Document it.
37700         (sed_extract_prog): Recognize it.
37701         (func_get_status): New function.
37702
37703 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37704
37705         * modules/sockets (License): Change from LGPL to LGPLv2+.
37706
37707 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37708
37709         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37710
37711 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37712
37713         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37714         Mention times and sys_times.
37715         * modules/sys_times, modules/sys_times-tests: New modules.
37716         * modules/times, modules/times-tests: Likewise
37717         * m4/sys_times_h.m4: New file.
37718         * lib/sys_times.in.h: Likewise
37719         * lib/times.c: Likewise.
37720         * tests/test-sys_times.c: Likewise.
37721         * tests/test-times.c: Likewise.
37722         * doc/posix-headers/sys_times.texi: Update.
37723         * doc/posix-functions/times.texi: Update.
37724
37725 2008-10-28  Jim Meyering  <meyering@redhat.com>
37726
37727         * modules/tempname (Depends-on): Add lstat.
37728
37729         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37730
37731 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37732
37733         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37734         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37735         using idiom used elsewhere in gnulib.
37736
37737 2008-10-27  Jim Meyering  <meyering@redhat.com>
37738
37739         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37740
37741 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37742
37743         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37744         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37745         programs.
37746         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37747
37748 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37749
37750         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37751
37752 2008-10-27  Bruno Haible  <bruno@clisp.org>
37753
37754         * tests/test-lstat.c: Include <stdio.h>.
37755
37756 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37757
37758         * modules/lstat-tests: New module.
37759         * tests/test-lstat.c: New file.
37760
37761 2008-10-26  Jim Meyering  <meyering@redhat.com>
37762
37763         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37764
37765 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37766             Bruno Haible  <bruno@clisp.org>
37767
37768         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37769         * modules/configmake (Include): Add a note that the include must come
37770         after all system headers.
37771         * lib/javaversion.c: Include configmake.h after all other includes.
37772
37773 2008-10-26  Bruno Haible  <bruno@clisp.org>
37774
37775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37776         HAVE_STRUCT_RANDOM_DATA to 1.
37777         (gl_STDLIB_H): Simplify.
37778
37779 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37780
37781         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37782         substitute HAVE_STRUCT_RANDOM_DATA.
37783         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37784         random_data.
37785         * modules/stdlib (Makefile.am): Substitute
37786         HAVE_STRUCT_RANDOM_DATA.
37787
37788 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37789
37790         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37791         * doc/gnulib-intro.texi (Copyright): Likewise.
37792
37793 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37794
37795         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37796         findings.
37797
37798 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37799             Bruno Haible  <bruno@clisp.org>
37800
37801         * lib/unistd.in.h: Include <winsock2.h>.
37802         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37803         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37804         Provide dummy declarations.
37805         (gethostname): Override.
37806         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37807         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37808         gl_PREREQ_SYS_H_WINSOCK2.
37809         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37810         * doc/posix-functions/gethostname.texi: More details.
37811
37812 2008-10-25  Bruno Haible  <bruno@clisp.org>
37813
37814         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37815         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37816         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37817
37818         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37819         here ...
37820         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37821         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37822         gl_UNISTD_H_DEFAULTS.
37823
37824 2008-10-25  Eric Blake  <ebb9@byu.net>
37825
37826         signbit: avoid spurious compiler failure
37827         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37828         declarations inside function.
37829
37830 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37831             Bruno Haible  <bruno@clisp.org>
37832
37833         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37834         * modules/random_r (Depends-on): Add stdint.
37835
37836 2008-10-24  Bruno Haible  <bruno@clisp.org>
37837
37838         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37839         Eggert.
37840         * modules/strerror (License): Likewise.
37841
37842 2008-10-24  Jim Meyering  <meyering@redhat.com>
37843
37844         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37845         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37846
37847 2008-10-24  Eric Blake  <ebb9@byu.net>
37848
37849         getgroups: fix compilation when getgroups is available
37850         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37851         but with <config.h> override of getgroups disabled.
37852
37853 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37854
37855         * doc/gnulib.texi (Header files): Add note about C++ problems.
37856         Explained by Bruno Haible <bruno@clisp.org>.
37857
37858 2008-10-23  Bruno Haible  <bruno@clisp.org>
37859
37860         Define a dummy SA_NODEFER macro on Interix.
37861         * lib/signal.in.h (SA_NODEFER): Define fallback.
37862         Reported by Aleksey Cheusov <cheusov@tut.by> via
37863         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37864
37865 2008-10-23  Bruno Haible  <bruno@clisp.org>
37866
37867         * modules/freadahead (License): Change to LGPLv2+.
37868         Suggested by Simon Josefsson.
37869
37870 2008-10-23  Jim Meyering  <meyering@redhat.com>
37871
37872         random_r: new module
37873         * modules/random_r: New file.
37874         * m4/random_r.m4: New file.
37875         * lib/random_r.c: New file, from glibc.
37876         * modules/random_r-tests: New file.
37877         * tests/test-random_r.c: New file.
37878         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37879          Declare.
37880         (RAND_MAX): Define.
37881         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37882         * modules/stdlib: Substitute them, too.
37883         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37884         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37885         * doc/glibc-functions/random_r.texi: Likewise.
37886         * doc/glibc-functions/setstate_r.texi: Likewise.
37887         * doc/glibc-functions/srandom_r.texi: Likewise.
37888         * config/srclist.txt: Mention it.
37889
37890 2008-10-23  David Lutterkort  <lutter@redhat.com>
37891
37892         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37893         link requirement
37894
37895 2008-10-23  Jim Meyering  <meyering@redhat.com>
37896
37897         selinux-h: mark parameters of stub functions as intentionally unused
37898         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37899         * lib/se-context.in.h: Likewise.
37900
37901 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37902
37903         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37904
37905 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37906
37907         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37908
37909 2008-10-22  Eric Blake  <ebb9@byu.net>
37910
37911         glthread/thread: avoid compiler warning
37912         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37913         Add unreachable abort to silence compiler.
37914
37915 2008-10-22  Eric Blake  <ebb9@byu.net>
37916
37917         netdb: also supply struct addrinfo for cygwin 1.5.x
37918         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37919         older cygwin.
37920         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37921         cygwin.
37922         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37923
37924 2008-10-22  Bruno Haible  <bruno@clisp.org>
37925
37926         * users.txt: Update entry about pspp.
37927
37928 2008-10-21  Bruno Haible  <bruno@clisp.org>
37929
37930         Simplification.
37931         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37932         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37933
37934         Simplification.
37935         * lib/ioctl.c (ioctl): Don't undefine.
37936         * lib/socket.c (socket): Don't undefine.
37937
37938         Remove unused module indicator macros.
37939         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37940         GNULIB_$1 as a C macro.
37941
37942         * doc/posix-functions/close.texi: Undo last change.
37943         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37944         Windows platforms.
37945
37946 2008-10-21  Bruno Haible  <bruno@clisp.org>
37947
37948         Add gethostname() declaration to <unistd.h>.
37949         * lib/unistd.in.h (gethostname): New declaration.
37950         * lib/gethostname.c: Include <unistd.h>.
37951         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37952         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37954         and HAVE_GETHOSTNAME.
37955         * modules/gethostname (Depends-on): Add unistd.
37956         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37957         (Include): Specify <unistd.h>.
37958         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37959         HAVE_GETHOSTNAME.
37960         * tests/test-gethostname.c: Include <unistd.h> first.
37961
37962 2008-10-21  Bruno Haible  <bruno@clisp.org>
37963
37964         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37965         * modules/select-tests (Depends-on): Likewise.
37966         Reported by Simon Josefsson.
37967
37968 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37969
37970         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37971         * lib/accept.c: New file, based on winsock.c.
37972         * lib/bind.c: New file, based on winsock.c.
37973         * lib/connect.c: New file, based on winsock.c.
37974         * lib/getpeername.c: New file, based on winsock.c.
37975         * lib/getsockname.c: New file, based on winsock.c.
37976         * lib/getsockopt.c: New file, based on winsock.c.
37977         * lib/ioctl.c: New file, based on winsock.c.
37978         * lib/listen.c: New file, based on winsock.c.
37979         * lib/recv.c: New file, based on winsock.c.
37980         * lib/recvfrom.c: New file, based on winsock.c.
37981         * lib/send.c: New file, based on winsock.c.
37982         * lib/sendto.c: New file, based on winsock.c.
37983         * lib/setsockopt.c: New file, based on winsock.c.
37984         * lib/shutdown.c: New file, based on winsock.c.
37985         * lib/socket.c: New file, based on winsock.c.
37986         * lib/w32sock.h: New file, based on winsock.c.
37987         * lib/winsock.c: Remove file.
37988         * modules/accept: Likewise.
37989         * modules/bind: Likewise.
37990         * modules/connect: Likewise.
37991         * modules/getpeername: Likewise.
37992         * modules/getsockname: Likewise.
37993         * modules/getsockopt: Likewise.
37994         * modules/ioctl: Likewise.
37995         * modules/listen: Likewise.
37996         * modules/recv: Likewise.
37997         * modules/recvfrom: Likewise.
37998         * modules/send: Likewise.
37999         * modules/sendto: Likewise.
38000         * modules/setsockopt: Likewise.
38001         * modules/shutdown: Likewise.
38002         * modules/socket: Use socket.c instead of winsock.c.
38003         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
38004         * doc/posix-functions/accept.texi: Doc fix.
38005         * doc/posix-functions/bind.texi: Doc fix.
38006         * doc/posix-functions/close.texi: Doc fix.
38007         * doc/posix-functions/connect.texi: Doc fix.
38008         * doc/posix-functions/getpeername.texi: Doc fix.
38009         * doc/posix-functions/getsockname.texi: Doc fix.
38010         * doc/posix-functions/getsockopt.texi: Doc fix.
38011         * doc/posix-functions/ioctl.texi: Doc fix.
38012         * doc/posix-functions/listen.texi: Doc fix.
38013         * doc/posix-functions/recv.texi: Doc fix.
38014         * doc/posix-functions/recvfrom.texi: Doc fix.
38015         * doc/posix-functions/send.texi: Doc fix.
38016         * doc/posix-functions/sendto.texi: Doc fix.
38017         * doc/posix-functions/setsockopt.texi: Doc fix.
38018         * doc/posix-functions/shutdown.texi: Doc fix.
38019         * doc/posix-functions/socket.texi: Doc fix.
38020
38021 2008-10-20  Bruno Haible  <bruno@clisp.org>
38022
38023         Take into account the role of SIGABRT_COMPAT on Windows 2008.
38024         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
38025         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
38026         as an alias for SIGABRT.
38027         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
38028         (sigaction): Map it to SIGABRT.
38029         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
38030
38031 2008-10-20  Bruno Haible  <bruno@clisp.org>
38032
38033         * lib/fts.c: Don't include lstat.h.
38034         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
38035
38036         Move the lstat() declaration to <sys/stat.h>.
38037         * lib/lstat.h: Remove file.
38038         * lib/sys_stat.in.h: Add special invocation convention.
38039         (lstat): New declaration.
38040         * lib/lstat.c (orig_lstat): New function.
38041         (rpl_lstat): Use orig_lstat instead of lstat.
38042         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
38043         AC_C_INLINE. Set REPLACE_LSTAT.
38044         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
38045         and REPLACE_LSTAT.
38046         * modules/lstat (Files): Remove lib/lstat.h.
38047         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38048         (Include): Specify <sys/stat.h> instead of lstat.h.
38049         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
38050         REPLACE_LSTAT.
38051         * NEWS: Mention the change.
38052
38053 2008-10-20  Bruno Haible  <bruno@clisp.org>
38054
38055         * modules/posix_spawn-tests: New file.
38056         * tests/test-posix_spawn3.c: New file.
38057
38058 2008-10-20  Bruno Haible  <bruno@clisp.org>
38059
38060         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
38061         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38062         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
38063         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38064         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
38065
38066 2008-10-20  Bruno Haible  <bruno@clisp.org>
38067
38068         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
38069         of posix_spawn on AIX 5.3.
38070
38071 2008-10-20  Bruno Haible  <bruno@clisp.org>
38072
38073         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
38074
38075 2008-10-20  Bruno Haible  <bruno@clisp.org>
38076
38077         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
38078         of AC_LANG_PROGRAM.
38079
38080 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38081
38082         * lib/netdb.in.h: Don't define GNU specific constants until they
38083         are supported or needed.  Reported by Bruno Haible
38084         <bruno@clisp.org>.
38085
38086 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38087
38088         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
38089
38090 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38091
38092         * lib/getaddrinfo.h: Remove file.
38093         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
38094         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
38095         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
38096         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
38097         * modules/netdb: Substitute GNULIB_GETADDRINFO.
38098         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
38099         * tests/test-getaddrinfo.c: Likewise.
38100         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
38101         * NEWS: Mention change.
38102
38103 2008-10-19  Bruno Haible  <bruno@clisp.org>
38104
38105         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
38106
38107 2008-10-19  Bruno Haible  <bruno@clisp.org>
38108
38109         * lib/wait-process.c: Include simply <sys/wait.h>.
38110         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
38111         WIFSTOPPED): Remove fallback definitions.
38112         * modules/wait-process (Depends-on): Add sys_wait.
38113
38114         New module 'sys_wait'.
38115         * modules/sys_wait: New file.
38116         * lib/sys_wait.in.h: New file, partially copied from
38117         lib/wait-process.c.
38118         * m4/sys_wait_h.m4: New file.
38119         * doc/posix-headers/sys_wait.texi: Mention the new module.
38120
38121 2008-10-19  Bruno Haible  <bruno@clisp.org>
38122
38123         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
38124
38125 2008-10-19  Bruno Haible  <bruno@clisp.org>
38126
38127         Assume that waitpid() fills an 'int' status, not a 'union wait'.
38128         * lib/wait-process.c (WAIT_T): Remove type.
38129         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
38130         (wait_subprocess): Update.
38131
38132 2008-10-19  Bruno Haible  <bruno@clisp.org>
38133
38134         New module 'atoll'.
38135         * modules/atoll: New file.
38136         * lib/stdlib.in.h (atoll): New declaration.
38137         * lib/atoll.c: New file, from glibc with modifications.
38138         * m4/atoll.m4: New file.
38139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
38140         HAVE_ATOLL.
38141         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
38142         * doc/posix-functions/atoll.texi: Mention the new module.
38143
38144 2008-10-19  Bruno Haible  <bruno@clisp.org>
38145
38146         Add strtoull() declaration to <stdlib.h>.
38147         * lib/stdlib.in.h (strtoull): New declaration.
38148         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38149         Set HAVE_STRTOULL.
38150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
38151         HAVE_STRTOULL.
38152         * modules/strtoull (Depends-on): Add stdlib.
38153         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38154         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
38155         HAVE_STRTOULL.
38156
38157 2008-10-19  Bruno Haible  <bruno@clisp.org>
38158
38159         Add strtoll() declaration to <stdlib.h>.
38160         * lib/stdlib.in.h (strtoll): New declaration.
38161         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38162         Set HAVE_STRTOLL.
38163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
38164         HAVE_STRTOLL.
38165         * modules/strtoll (Depends-on): Add stdlib.
38166         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38167         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
38168
38169 2008-10-19  Bruno Haible  <bruno@clisp.org>
38170
38171         * modules/bcopy (Depends-on): Add strings.
38172         (Include): Specify <strings.h>.
38173
38174 2008-10-19  Bruno Haible  <bruno@clisp.org>
38175
38176         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
38177
38178 2008-10-19  Bruno Haible  <bruno@clisp.org>
38179
38180         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
38181         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
38182         mingw.
38183
38184 2008-10-19  Bruno Haible  <bruno@clisp.org>
38185
38186         * lib/atanl.c: Don't include isnanl.h.
38187         * lib/cosl.c: Likewise.
38188         * lib/ldexpl.c: Likewise.
38189         * lib/logl.c: Likewise.
38190         * lib/sinl.c: Likewise.
38191         * lib/sqrtl.c: Likewise.
38192         * lib/tanl.c: Likewise.
38193
38194         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
38195         * lib/isnanf.h: Remove file.
38196         * lib/isnand.h: Remove file.
38197         * lib/isnanl.h: Remove file.
38198         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
38199         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
38200         macros.
38201         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
38202         HAVE_ISNANF, don't define it as a C macro.
38203         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
38204         HAVE_ISNAND, don't define it as a C macro.
38205         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
38206         HAVE_ISNANL, don't define it as a C macro.
38207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
38208         HAVE_ISNAN[FDL].
38209         * modules/isnanf (Files): Remove lib/isnanf.h.
38210         (Depends-on): Add math.
38211         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38212         (Include): Specify <math.h> instead of isnanf.h.
38213         * modules/isnand (Files): Remove lib/isnand.h.
38214         (Depends-on): Add math.
38215         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38216         (Include): Specify <math.h> instead of isnand.h.
38217         * modules/isnanl (Files): Remove lib/isnanl.h.
38218         (Depends-on): Add math.
38219         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38220         (Include): Specify <math.h> instead of isnanl.h.
38221         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
38222         HAVE_ISNAN[FDL].
38223         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
38224         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
38225         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
38226         * NEWS: Mention the change.
38227
38228 2008-10-18  Bruno Haible  <bruno@clisp.org>
38229
38230         Add getusershell(), setusershell(), endusershell() declarations to
38231         <unistd.h>.
38232         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
38233         declarations.
38234         * lib/getusershell.c: Include unistd.h.
38235         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
38236         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38237         HAVE_GETUSERSHELL.
38238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
38239         and HAVE_GETUSERSHELL.
38240         * modules/getusershell (Depends-on): Add unistd, extensions.
38241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38242         (Include): Specify <unistd.h>.
38243         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
38244         HAVE_GETUSERSHELL.
38245
38246 2008-10-18  Bruno Haible  <bruno@clisp.org>
38247
38248         Add a getloadavg() declaration to <stdlib.h>.
38249         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
38250         getloadavg declaration.
38251         (getloadavg): New declaration.
38252         * lib/getloadavg.c: Include <stdlib.h> first.
38253         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
38254         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
38255         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
38256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
38257         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38258         * modules/getloadavg (Depends-on): Add stdlib, extensions.
38259         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38260         (Include): Specify <stdlib.h>.
38261         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
38262         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38263
38264 2008-10-18  Bruno Haible  <bruno@clisp.org>
38265
38266         * lib/dirchownmod.c: Don't include lchmod.h.
38267
38268         Move the lchmod() declaration to <sys/stat.h>.
38269         * lib/lchmod.h: Remove file.
38270         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
38271         (lchmod): New declaration, moved here from lib/lchown.h.
38272         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
38273         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
38274         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
38275         and HAVE_LCHMOD.
38276         * modules/lchmod (Files): Remove lib/lchmod.h.
38277         (Depends-on): Add sys_stat, extensions.
38278         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38279         (Include): Specify <sys/stat.h> instead of lchmod.h.
38280         * modules/sys_stat (Depends-on): Add link-warning.
38281         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
38282         definition of GL_LINK_WARNING.
38283         * NEWS: Mention the change.
38284
38285 2008-10-18  Bruno Haible  <bruno@clisp.org>
38286
38287         * lib/fchdir.c: Don't include dirfd.h.
38288         * lib/fts.c: Likewise.
38289         * lib/getcwd.c: Likewise.
38290         * lib/glob.c: Likewise.
38291
38292         Move the dirfd() declaration to <dirent.h>.
38293         * lib/dirfd.h: Remove file.
38294         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
38295         (dirfd): New declaration.
38296         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
38297         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
38298         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
38299         HAVE_DECL_DIRFD.
38300         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
38301         HAVE_DECL_DIRFD.
38302         * modules/dirfd (Files): Remove lib/dirfd.h.
38303         (Depends-on): Add dirent, extensions.
38304         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
38305         (Include): Specify <dirent.h> instead of dirfd.h.
38306         * modules/dirent (Depends-on): Add link-warning.
38307         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
38308         definition of GL_LINK_WARNING.
38309         * NEWS: Mention the change.
38310
38311 2008-10-18  Bruno Haible  <bruno@clisp.org>
38312
38313         Move the euidaccess() declaration to <unistd.h>.
38314         * lib/euidaccess.h: Remove file.
38315         * lib/unistd.in.h (euidaccess): New declaration.
38316         * lib/euidaccess.c: Don't include euidaccess.h.
38317         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
38318         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
38319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
38320         and HAVE_EUIDACCESS.
38321         * modules/euidaccess (Files): Remove lib/euidaccess.h.
38322         (Depends-on): Add unistd.
38323         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38324         (Include): Specify <unistd.h> instead of euidaccess.h.
38325         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
38326         HAVE_EUIDACCESS.
38327         * NEWS: Mention the change.
38328
38329 2008-10-18  Bruno Haible  <bruno@clisp.org>
38330
38331         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
38332
38333         Move the getdomainname() declaration to <unistd.h>.
38334         * lib/getdomainname.h: Remove file.
38335         * lib/unistd.in.h (getdomainname): New declaration.
38336         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
38337         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38338         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38339         HAVE_GETDOMAINNAME.
38340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38341         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
38342         * modules/getdomainname (Files): Remove lib/getdomainname.h.
38343         (Depends-on): Add unistd, extensions.
38344         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38345         (Includes): Specify <unistd.h> instead of getdomainname.h.
38346         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
38347         HAVE_GETDOMAINNAME.
38348         * NEWS: Mention the change.
38349
38350 2008-10-18  Bruno Haible  <bruno@clisp.org>
38351
38352         * modules/dirent: New file.
38353         * m4/dirent_h.m4: New file.
38354         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
38355         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
38356         * modules/fchdir (Files): Remove lib/dirent.in.h.
38357         (Depends-on): Add dirent.
38358         (Makefile.am): Move rules to modules/dirent.
38359         * doc/posix-headers/dirent.texi: Mention the new module.
38360
38361 2008-10-18  Bruno Haible  <bruno@clisp.org>
38362
38363         Avoid -Wunused-parameter warnings in public gnulib header files.
38364         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
38365         macro.
38366         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
38367
38368 2008-10-18  Bruno Haible  <bruno@clisp.org>
38369
38370         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
38371         * doc/glibc-functions/error.texi: Mention the module 'error'.
38372         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
38373         * doc/glibc-functions/getdomainname.texi: Mention the module
38374         'getdomainname'.
38375         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
38376         * doc/glibc-functions/getpagesize.texi: Mention the module
38377         'getpagesize'.
38378         * doc/glibc-functions/getusershell.texi: Mention the module
38379         'getusershell'.
38380         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
38381         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
38382         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
38383         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
38384         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
38385         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
38386         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38387         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
38388         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
38389         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
38390         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
38391         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
38392         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
38393         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
38394
38395 2008-10-17  Bruno Haible  <bruno@clisp.org>
38396
38397         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
38398         HP-UX and IRIX, use -0.0L.
38399         * tests/test-ceill.c (minus_zero): Likewise.
38400         * tests/test-floorl.c (minus_zero): Likewise.
38401         * tests/test-frexpl.c (minus_zero): Likewise.
38402         * tests/test-isnan.c (minus_zerol): Likewise.
38403         * tests/test-isnanl.h (minus_zero): Likewise.
38404         * tests/test-ldexpl.c (minus_zero): Likewise.
38405         * tests/test-roundl.c (minus_zero): Likewise.
38406         * tests/test-signbit.c (minus_zerol): Likewise.
38407         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38408         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38409         * tests/test-truncl.c (minus_zero): Likewise.
38410         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38411         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38412         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38413         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38414
38415 2008-10-17  Bruno Haible  <bruno@clisp.org>
38416
38417         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38418         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38419         that it gets activated only for gcc >= 3.0.
38420         * lib/dirent.in.h: Likewise.
38421         * lib/errno.in.h: Likewise.
38422         * lib/fcntl.in.h: Likewise.
38423         * lib/float.in.h: Likewise.
38424         * lib/iconv.in.h: Likewise.
38425         * lib/inttypes.in.h: Likewise.
38426         * lib/locale.in.h: Likewise.
38427         * lib/math.in.h: Likewise.
38428         * lib/netdb.in.h: Likewise.
38429         * lib/netinet_in.in.h: Likewise.
38430         * lib/search.in.h: Likewise.
38431         * lib/signal.in.h: Likewise.
38432         * lib/spawn.in.h: Likewise.
38433         * lib/stdarg.in.h: Likewise.
38434         * lib/stdint.in.h: Likewise.
38435         * lib/stdio.in.h: Likewise.
38436         * lib/stdlib.in.h: Likewise.
38437         * lib/string.in.h: Likewise.
38438         * lib/strings.in.h: Likewise.
38439         * lib/sys_file.in.h: Likewise.
38440         * lib/sys_ioctl.in.h: Likewise.
38441         * lib/sys_select.in.h: Likewise.
38442         * lib/sys_socket.in.h: Likewise.
38443         * lib/sys_stat.in.h: Likewise.
38444         * lib/sys_time.in.h: Likewise.
38445         * lib/sysexits.in.h: Likewise.
38446         * lib/time.in.h: Likewise.
38447         * lib/unistd.in.h: Likewise.
38448         * lib/wchar.in.h: Likewise.
38449         * lib/wctype.in.h: Likewise.
38450         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38451
38452 2008-10-17  Jim Meyering  <meyering@redhat.com>
38453
38454         ignore-value: don't depend on inline module
38455         * modules/ignore-value (Depends-on): Remove 'inline'.
38456         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38457         Suggestion from Bruno Haible.
38458
38459 2008-10-17  Bruno Haible  <bruno@clisp.org>
38460
38461         New implementation of condition variables for Win32.
38462         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38463         (gl_linked_waitqueue_t): New type.
38464         (gl_cond_t): Use it.
38465         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38466         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38467         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38468         (glthread_cond_init_func, glthread_cond_wait_func,
38469         glthread_cond_timedwait_func, glthread_cond_signal_func,
38470         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38471         Reimplemented on the basis of gl_linked_waitqueue_t.
38472         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38473         gl_waitqueue_t.
38474         (gl_rwlock_t): Update.
38475         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38476
38477 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38478
38479         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38480         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38481
38482 2008-10-17  Jim Meyering  <meyering@redhat.com>
38483
38484         ignore-value: new module
38485         * modules/ignore-value: New file.
38486         * lib/ignore-value.h: New file.
38487         * MODULES.html.sh (Compiler warning management): New section,
38488         just for this module.  More to come.
38489
38490 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38491
38492         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38493         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38494         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38495
38496 2008-10-16  Jim Meyering  <meyering@redhat.com>
38497
38498         openat-die.c: avoid 'no previous prototype' warning
38499         * lib/openat-die.c: Include "openat.h".
38500         Reported by Reuben Thomas <rrt@sc3d.org>.
38501
38502 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38503
38504         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38505         * lib/netdb.in.h: Fix typo.
38506         Reported by Bruno Haible  <bruno@clisp.org>
38507
38508         * lib/netdb.in.h: Include sys/socket.h for platforms without
38509         netdb.h, to get structures like hostent on MinGW.
38510         * modules/netdb (Depends-on): Add sys_socket.
38511
38512 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38513
38514         * modules/netdb, modules/netdb-tests: New file.
38515         * m4/netdb_h.m4: New file.
38516         * lib/netdb.in.h: Add, currently just an empty file pending
38517         definitions.
38518         * tests/test-netdb.c: New file.
38519         * doc/posix-headers/netdb.texi: Mention that we replace it if
38520         needed.
38521         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38522         netdb.
38523
38524 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38525
38526         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38527         with code.
38528
38529 2008-10-13  Bruno Haible  <bruno@clisp.org>
38530
38531         * lib/glthread/cond.c (glthread_cond_wait_func,
38532         glthread_cond_timedwait_func): Add a comment.
38533
38534 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38535
38536         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38537         * tests/test-select.c: Likewise,
38538
38539 2008-10-13  Bruno Haible  <bruno@clisp.org>
38540
38541         * lib/glthread/cond.c (glthread_cond_wait_func,
38542         glthread_cond_timedwait_func): Fix variable name.
38543         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38544
38545 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38546
38547         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38548         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38549         struct sockaddr.sa_len.
38550         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38551
38552 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38553
38554         * build-aux/pmccabe2html: Add css and css_url parameters.
38555
38556 2008-10-12  Bruno Haible  <bruno@clisp.org>
38557
38558         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38559         calling aclx_get.
38560         Reported by Rainer Tammer <tammer@tammer.net>.
38561
38562 2008-10-12  Bruno Haible  <bruno@clisp.org>
38563
38564         Use msvcrt aware primitives for creation/termination of Win32 threads.
38565         * lib/glthread/thread.c: Include <process.h>.
38566         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38567         (wrapper_func): Update signature.
38568         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38569
38570 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38571             Bruno Haible  <bruno@clisp.org>
38572
38573         Provide a Win32 implementation of the 'cond' module.
38574         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38575         * lib/glthread/cond.c (glthread_cond_init_func,
38576         glthread_cond_wait_func, glthread_cond_timedwait_func,
38577         glthread_cond_signal_func, glthread_cond_broadcast_func,
38578         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38579         * modules/cond (Dependencies): Add gettimeofday.
38580
38581 2008-10-11  Bruno Haible  <bruno@clisp.org>
38582
38583         Make sleep work on older versions of mingw.
38584         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38585         only whether it exists.
38586         * doc/posix-functions/sleep.texi: Mention the problem with older
38587         versions of mingw.
38588
38589 2008-10-11  Bruno Haible  <bruno@clisp.org>
38590
38591         New module 'shutdown'.
38592         * modules/shutdown: New file.
38593         * lib/sys_socket.in.h (shutdown): New declaration.
38594         * lib/winsock.c (shutdown): New function.
38595         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38596         GNULIB_SHUTDOWN.
38597         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38598         * doc/posix-functions/shutdown.texi: Document the new module.
38599
38600 2008-10-11  Jim Meyering  <meyering@redhat.com>
38601
38602         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38603
38604 2008-10-11  Bruno Haible  <bruno@clisp.org>
38605
38606         New module 'fclose'.
38607         * modules/fclose: New file.
38608         * lib/stdio.in.h (fclose): New declaration.
38609         * lib/fclose.c: New file.
38610         * m4/fclose.m4: New file.
38611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38612         REPLACE_FCLOSE.
38613         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38614         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38615         REPLACE_FCLOSE.
38616         * modules/close (Depends-on): fclose.
38617         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38618
38619 2008-10-11  Bruno Haible  <bruno@clisp.org>
38620
38621         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38622         set errno and don't call _close.
38623
38624 2008-10-10  Bruno Haible  <bruno@clisp.org>
38625
38626         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38627         ACL, not afterwards. Fixes test failure on Cygwin.
38628
38629 2008-10-09  Ben Pfaff  <blp@gnu.org>
38630
38631         * build-aux/announce-gen: Fix gnulib version related part of usage
38632         message.  Die with a useful error message if no tarballs are
38633         found.
38634
38635 2008-10-10  Jim Meyering  <meyering@redhat.com>
38636
38637         bootstrap: use git's --depth=N option only if it's supported
38638         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38639         recognize the --depth option.  Reported by Pádraig Brady.
38640
38641 2008-10-09  Bruno Haible  <bruno@clisp.org>
38642
38643         New module 'ioctl'.
38644         * modules/ioctl: New file.
38645         * lib/sys_socket.in.h (ioctl): Remove declaration.
38646         * lib/winsock.c: Include <sys/ioctl.h>.
38647         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38648         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38649         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38650         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38651         * doc/posix-functions/ioctl.texi: Mention the new module.
38652
38653 2008-10-09  Bruno Haible  <bruno@clisp.org>
38654
38655         New module 'sys_ioctl'.
38656         * lib/sys_ioctl.in.h: New file.
38657         * m4/sys_ioctl_h.m4: New file.
38658         * modules/sys_ioctl: New file.
38659         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38660
38661 2008-10-09  Bruno Haible  <bruno@clisp.org>
38662
38663         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38664         * lib/winsock.c: Include <stdarg.h>.
38665         (rpl_ioctl): Change to second argument 'int' and then varargs.
38666
38667 2008-10-09  Bruno Haible  <bruno@clisp.org>
38668
38669         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38670         when the sys_socket module is present and the system has <winsock2.h>.
38671
38672 2008-10-09  Bruno Haible  <bruno@clisp.org>
38673
38674         * doc/posix-functions/close.texi: Mention module 'close' instead of
38675         module 'sys_socket'.
38676
38677 2008-10-09  Bruno Haible  <bruno@clisp.org>
38678
38679         * doc/glibc-headers/sys_ioctl.texi: New file.
38680         * doc/gnulib.texi: Include it.
38681
38682 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38683             Bruno Haible  <bruno@clisp.org>
38684
38685         Combine the two replacements of 'close'.
38686         * lib/sys_socket.in.h (close): Define to a reminder to include
38687         <unistd.h>.
38688         (_gl_close_fd_maybe_socket): New declaration.
38689         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38690         * lib/winsock.c (close): Remove undefinition.
38691         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38692         needed for the gnulib module 'close'.
38693         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38694         define to an error symbol or to a warning, if suitable.
38695         * lib/close.c: Include <sys/socket.h>.
38696         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38697         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38698         UNISTD_H_HAVE_WINSOCK2_H.
38699         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38701         UNISTD_H_HAVE_WINSOCK2_H.
38702         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38703         (configure.ac): Set a module indicator.
38704         (Makefile.am): Substitute GNULIB_CLOSE.
38705         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38706         * modules/poll-tests (Depends-on): Add close.
38707         * modules/select-tests (Depends-on): Likewise.
38708
38709 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38710             Bruno Haible  <bruno@clisp.org>
38711
38712         New module 'close'.
38713         * modules/close: New file.
38714         * lib/unistd.in.h (close): Move declaration out of the
38715         FCHDIR_REPLACEMENT scope.
38716         (_gl_unregister_fd): New declaration.
38717         * lib/close.c: New file.
38718         * lib/fchdir.c (rpl_close): Remove function.
38719         * m4/close.m4: New file.
38720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38721         close.
38722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38723         REPLACE_CLOSE.
38724         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38725         REPLACE_CLOSE.
38726         * modules/fchdir (Depends-on): Add close.
38727
38728 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38729             Bruno Haible  <bruno@clisp.org>
38730
38731         * lib/fcntl.in.h (open): Simplify conditionals.
38732         (_gl_register_fd): New declaration.
38733         * lib/fchdir.c (rpl_open): Remove function.
38734         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38735         also.
38736         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38738         open.
38739
38740 2008-10-09  Jim Meyering  <meyering@redhat.com>
38741
38742         GNUmakefile: use the more name-space-friendly "_version"
38743         * top/GNUmakefile (_dummy): Update.
38744         (_version): Rename from "version".
38745
38746 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38747             Bruno Haible  <bruno@clisp.org>
38748
38749         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38750         rpl_close.
38751         (_gl_register_fd): New function, extracted from rpl_open.
38752         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38753         (rpl_open, rpl_opendir): Use _gl_register_fd.
38754
38755 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38756
38757         Fix organization of 'open' replacement.
38758         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38759         (gl_FUNC_OPEN): Use it.
38760         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38761
38762 2008-10-08  Bruno Haible  <bruno@clisp.org>
38763
38764         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38765
38766 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38767
38768         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38769         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38770         listen).
38771
38772 2008-10-08  Eric Blake  <ebb9@byu.net>
38773
38774         GNUmakefile: add 'make version' target
38775         * top/GNUmakefile (_curr-ver): Split version update rules...
38776         (version): ...into a target.
38777
38778 2008-10-07  Bruno Haible  <bruno@clisp.org>
38779
38780         Use a more portable replacement expression for -0.0L.
38781         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38782         instead of -0.0L. Fix m4 quotation.
38783
38784         * tests/test-signbit.c: Include <float.h>.
38785         (minus_zero): New variable.
38786         (test_signbitl): Use minus_zero instead of -zero.
38787         * modules/signbit-tests (Depends-on): Add float.
38788
38789         * tests/test-ceill.c: Include <float.h>.
38790         (zero): Remove variable.
38791         (minus_zero): New variable.
38792         (main): Use minus_zero instead of -zero.
38793         * modules/ceill-tests (Depends-on): Add float.
38794
38795         * tests/test-floorl.c: Include <float.h>.
38796         (zero): Remove variable.
38797         (minus_zero): New variable.
38798         (main): Use minus_zero instead of -zero.
38799         * modules/floorl-tests (Depends-on): Add float.
38800
38801         * tests/test-roundl.c: Include <float.h>.
38802         (zero): Remove variable.
38803         (minus_zero): New variable.
38804         (main): Use minus_zero instead of -zero.
38805         * modules/roundl-tests (Depends-on): Add float.
38806
38807         * tests/test-truncl.c: Include <float.h>.
38808         (zero): Remove variable.
38809         (minus_zero): New variable.
38810         (main): Use minus_zero instead of -zero.
38811         * modules/truncl-tests (Depends-on): Add float.
38812
38813         * tests/test-frexpl.c (zero): Remove variable.
38814         (minus_zero): New variable.
38815         (main): Use minus_zero instead of -zero.
38816         * modules/frexpl-tests (Depends-on): Add float.
38817
38818         * tests/test-isnan.c (zerol): Remove variable.
38819         (minus_zerol): New variable.
38820         (test_long_double): Use minus_zerol instead of -zerol.
38821         * modules/isnan-tests (Depends-on): Add float.
38822
38823         * tests/test-isnanl.h (zero): Remove variable.
38824         (minus_zero): New variable.
38825         (main): Use minus_zero instead of -zero.
38826         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38827         * modules/isnanl-tests (Depends-on): Add float.
38828
38829         * tests/test-ldexpl.c (zero): Remove variable.
38830         (minus_zero): New variable.
38831         (main): Use minus_zero instead of -zero.
38832         * modules/ldexpl-tests (Depends-on): Add float.
38833
38834         * tests/test-snprintf-posix.h (zerol): Remove variable.
38835         (minus_zerol): New variable.
38836         (test_function): Use minus_zerol instead of -zerol.
38837         * modules/snprintf-posix-tests (Depends-on): Add float.
38838         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38839
38840         * tests/test-sprintf-posix.h (zerol): Remove variable.
38841         (minus_zerol): New variable.
38842         (test_function): Use minus_zerol instead of -zerol.
38843         * modules/sprintf-posix-tests (Depends-on): Add float.
38844         * modules/vsprintf-posix-tests (Depends-on): Add float.
38845
38846         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38847         (minus_zerol): New variable.
38848         (test_function): Use minus_zerol instead of -zerol.
38849         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38850
38851         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38852         (minus_zerol): New variable.
38853         (test_function): Use minus_zerol instead of -zerol.
38854         * modules/vasprintf-posix-tests (Depends-on): Add float.
38855
38856 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38857
38858         * MODULES.html.sh (Support for building documentation): Mention
38859         pmccabe2html.  Sort entries.
38860
38861         Add pmccabe2html module, from gnupdf.
38862         * build-aux/pmccabe.css: New file.
38863         * build-aux/pmccabe2html: New file.
38864         * m4/pmccabe2html.m4: New file.
38865         * modules/pmccabe2html: New file.
38866
38867 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38868
38869         flock: new module
38870         * MODULES.html.sh: Add to list of modules.
38871         * lib/flock.c: flock implementation for Windows and Unix systems
38872         which have fcntl.
38873         * doc/glibc-functions/flock.texi: Update documentation.
38874         * lib/sys_file.in.h: <sys/file.h> header file.
38875         * m4/flock.m4: M4 macros.
38876         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38877         * modules/flock: flock module.
38878         * modules/flock-tests: flock tests module.
38879         * modules/sys_file: sys/file.h module.
38880         * tests/test-flock.c: test suite for flock.
38881
38882 2008-10-06  Jim Meyering  <meyering@redhat.com>
38883
38884         bootstrap: check for LT_INIT more portably still ;-)
38885         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38886         Spotted by Bruno Haible.
38887
38888 2008-10-06  Eric Blake  <ebb9@byu.net>
38889
38890         test-signbit: avoid tripping Irix cc bug on -0.0L
38891         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38892         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38893         entire testsuite consistent and avoids an Irix 6.2 bug.
38894
38895 2008-10-05  Bruno Haible  <bruno@clisp.org>
38896             Jim Meyering  <jim@meyering.net>
38897
38898         Add an option for ignoring EPIPE during close_stdout.
38899         * lib/closeout.h: Include <stdbool.h>.
38900         (close_stdout_set_ignore_EPIPE): New declaration.
38901         * lib/closeout.c: Include <stdbool.h>.
38902         (ignore_EPIPE): New variable.
38903         (close_stdout_set_ignore_EPIPE): New function.
38904         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38905         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38906         failure.
38907         * modules/closeout (Depends-on): Add stdbool.
38908
38909 2008-10-05  Bruno Haible  <bruno@clisp.org>
38910
38911         * modules/accept: New file.
38912         * modules/bind: New file.
38913         * modules/connect: New file.
38914         * modules/getpeername: New file.
38915         * modules/getsockname: New file.
38916         * modules/getsockopt: New file.
38917         * modules/listen: New file.
38918         * modules/recv: New file.
38919         * modules/recvfrom: New file.
38920         * modules/send: New file.
38921         * modules/sendto: New file.
38922         * modules/setsockopt: New file.
38923         * modules/socket: New file.
38924         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38925         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38926         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38927         the particular module is requested. Add a link warning when the
38928         particular module is not requested.
38929         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38930         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38931         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38932         the particular module is requested.
38933         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38934         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38935         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38936         * modules/sys_socket (Depends-on): Add link-warning.
38937         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38938         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38939         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38940         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38941         GL_LINK_WARNING.
38942         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38943         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38944         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38945         * doc/posix-functions/getpeername.texi: Mention the new module
38946         'getpeername'.
38947         * doc/posix-functions/getsockname.texi: Mention the new module
38948         'getsockname'.
38949         * doc/posix-functions/getsockopt.texi: Mention the new module
38950         'getsockopt'.
38951         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38952         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38953         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38954         * doc/posix-functions/send.texi: Mention the new module 'send'.
38955         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38956         * doc/posix-functions/setsockopt.texi: Mention the new module
38957         'setsockopt'.
38958         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38959         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38960         listen, connect, accept.
38961         * modules/select-tests (Depends-on): Likewise.
38962
38963 2008-10-05  Bruno Haible  <bruno@clisp.org>
38964
38965         * lib/winsock.c (strerror): Remove unused #undef.
38966         (rpl_close): Remove unused local variable.
38967
38968         * modules/sys_socket (Depends-on); Add errno.
38969
38970 2008-10-05  Bruno Haible  <bruno@clisp.org>
38971
38972         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38973         (select): Add a link warning when the 'select' module is not used.
38974         * modules/sys_select (Depends-on): Add link-warning.
38975         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38976         Suggested by Paolo Bonzini.
38977
38978 2008-10-05  Jim Meyering  <meyering@redhat.com>
38979
38980         bootstrap: check for LT_INIT more portably
38981         * build-aux/bootstrap: Avoid using grep -E, since it's not
38982         portable enough.  Suggestion from Bruno Haible.
38983
38984 2008-10-05  Bruno Haible  <bruno@clisp.org>
38985
38986         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38987         as being fixed by gnulib.
38988
38989 2008-10-05  Bruno Haible  <bruno@clisp.org>
38990
38991         * modules/select-tests: New file, mostly copied from
38992         modules/sys_select-tests.
38993         * tests/test-select.c: New file, mostly copied from
38994         tests/test-sys_select.c.
38995         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38996         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38997         (Makefile.am): Remove test_sys_select_LDADD.
38998
38999         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
39000         to an undefined symbol, for an error message.
39001         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
39002         (gl_SYS_SELECT_H_DEFAULTS): New macro.
39003         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
39004         winsock-select.c here.
39005         * modules/sys_select (Files): Remove lib/winsock-select.c.
39006         (Depends-on): Remove alloca.
39007         (Makefile.am): Substitute GNULIB_SELECT.
39008         * modules/select: New file.
39009         * doc/posix-functions/select.texi: Update.
39010
39011 2008-10-05  Bruno Haible  <bruno@clisp.org>
39012
39013         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
39014         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
39015         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
39016         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
39017         getdtablesize.
39018         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39019         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39020
39021 2008-10-05  Bruno Haible  <bruno@clisp.org>
39022
39023         * modules/getdtablesize-tests: New file.
39024         * tests/test-getdtablesize.c: New file.
39025
39026         New module 'getdtablesize'.
39027         * lib/unistd.in.h (getdtablesize): New declaration.
39028         * lib/getdtablesize.c: New file.
39029         * m4/getdtablesize.m4: New file.
39030         * modules/getdtablesize: New file.
39031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39032         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
39033         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
39034         HAVE_GETDTABLESIZE.
39035         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
39036
39037 2008-10-05  Bruno Haible  <bruno@clisp.org>
39038
39039         * modules/sched (Makefile.am): Fix typo.
39040         Reported by Simon Josefsson.
39041
39042 2008-10-05  Jim Meyering  <meyering@redhat.com>
39043
39044         bootstrap: check for LT_INIT, too
39045         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
39046         are deprecated.  Suggestion from Ralf Wildenhues.
39047
39048 2008-10-05  Bruno Haible  <bruno@clisp.org>
39049
39050         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
39051         overriding them by ours.
39052         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
39053
39054 2008-10-05  Jim Meyering  <meyering@redhat.com>
39055
39056         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
39057         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
39058         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
39059
39060 2008-10-04  Bruno Haible  <bruno@clisp.org>
39061
39062         * modules/dup2 (License): Change to LGPLv2+.
39063         * modules/sleep (License): Likewise.
39064         * modules/perror (License): Likewise.
39065         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
39066         Blake.
39067         * modules/signal (License): Likewise.
39068         * modules/sigprocmask (License): Likewise.
39069         * modules/raise (License): Change to LGPLv2+, with approval by Jim
39070         Meyering.
39071
39072 2008-10-04  Bruno Haible  <bruno@clisp.org>
39073
39074         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
39075         Reported by Rainer Tammer <tammer@tammer.net>.
39076
39077 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
39078             Bruno Haible  <bruno@clisp.org>
39079
39080         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
39081         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
39082         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
39083
39084 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
39085
39086         filevercmp: new module
39087         * lib/filevercmp.h: New function filevercmp comparing version strings.
39088         * lib/filevercmp.c: Implementation of filevercmp function.
39089         * modules/filevercmp: Module metadata.
39090         * tests/test-filevercmp.c: Unit test for new module.
39091         * modules/filevercmp-tests: Unit test metadata.
39092         * MODULES.html.sh: Add filevercmp module.
39093
39094 2008-10-03  Bruno Haible  <bruno@clisp.org>
39095
39096         * lib/c-ctype.h: Add comment.
39097         Reported by Jim Meyering.
39098
39099 2008-10-02  Bruno Haible  <bruno@clisp.org>
39100
39101         * modules/posix_spawn-internal (Depends-on): Add 'open'.
39102
39103 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39104
39105         * build-aux/bootstrap: Allow renaming bootstrap, and change the
39106         name of bootstrap.conf accordingly.
39107
39108 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39109
39110         * build-aux/bootstrap: Install git-merge-changelog configuration
39111         items into .gitconfig if needed.
39112
39113 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39114
39115         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
39116         git repository, and initialize/update it accordingly.
39117
39118 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
39119
39120         * modules/fsync-tests: New file.
39121         * tests/test-fsync.c: New file.
39122
39123         New module 'fsync'.
39124         * lib/fsync.c: New file.
39125         * m4/fsync.m4: New file.
39126         * modules/fsync: New file.
39127         * lib/unistd.in.h (fsync): New declaration.
39128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
39129         GNULIB_FSYNC and HAVE_FSYNC.
39130         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
39131         * MODULES.html.sh (posix_functions): Add fsync.
39132         * doc/posix-functions/fsync.texi: Mention the new module.
39133
39134 2008-10-02  Jim Meyering  <meyering@redhat.com>
39135
39136         fts.c: sync with similar code from coreutils' remove.c
39137         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
39138         Guard also with "#if defined __linux__", since for now at least,
39139         this code is Linux-kernel-specific.
39140
39141 2008-10-02  Jim Meyering  <meyering@redhat.com>
39142
39143         fts: bug fixes
39144         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
39145         Include <sys/vfs.h>, not <sys/statfs.h>.
39146
39147         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
39148         Include <sys/vfs.h>, not <sys/statfs.h>.
39149
39150 2008-10-01  Bruno Haible  <bruno@clisp.org>
39151
39152         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
39153         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
39154         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
39155         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
39156         * doc/posix-functions/posix_spawnp.texi: Likewise.
39157         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
39158         whether posix_spawn actually works.
39159         * m4/pipe.m4 (gl_PIPE): Likewise.
39160         * modules/execute (Files): Add m4/posix_spawn.m4.
39161         * modules/pipe (Files): Add m4/posix_spawn.m4.
39162         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
39163
39164 2008-10-01  Jim Meyering  <meyering@redhat.com>
39165
39166         remove trailing spaces
39167         * NEWS: Likewise.
39168         * lib/poll.c (poll): Likewise.
39169         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
39170         * lib/winsock.c (rpl_close): Likewise.
39171         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
39172         * modules/yield: Likewise.
39173         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
39174         * tests/test-sys_select.c (connect_to_socket): Likewise.
39175
39176         fts.c: adjust a new interface to be more generally useful
39177         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
39178         (fts_build): Adjust caller.
39179
39180 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39181
39182         * modules/cond-tests: New file.
39183         * tests/test-cond.c: New file.
39184
39185 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39186             Bruno Haible  <bruno@clisp.org>
39187
39188         * modules/cond (Dependencies): Add errno, time.
39189         * lib/glthread/cond.h: Include <time.h>.
39190         (gl_cond_define, gl_cond_define_initialized): Use the same definition
39191         across platforms.
39192
39193 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39194             Bruno Haible  <bruno@clisp.org>
39195
39196         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
39197
39198 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39199             Bruno Haible  <bruno@clisp.org>
39200
39201         * modules/tls-tests (Depends-on): Add thread, yield.
39202         (configure.ac): Remove all checks.
39203         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
39204         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39205         gl_thread_self): Remove definitions. Include glthread/thread.h and
39206         glthread/yield.h instead.
39207         (test_tls): Pass an additional NULL argument to gl_thread_join.
39208
39209 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39210             Bruno Haible  <bruno@clisp.org>
39211
39212         * modules/lock-tests (Depends-on): Add thread, yield.
39213         (configure.ac): Remove all checks.
39214         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
39215         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39216         gl_thread_self): Remove definitions. Include glthread/thread.h and
39217         glthread/yield.h instead.
39218         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
39219         additional NULL argument to gl_thread_join.
39220
39221 2008-09-30  Bruno Haible  <bruno@clisp.org>
39222
39223         Fix the Win32 implementation of the 'thread' module.
39224         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
39225         pointer type.
39226         (gl_thread_self): Invoke gl_thread_self_func.
39227         (gl_thread_self_func): New declaration.
39228         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
39229         (do_init_self_key, init_self_key): New functions.
39230         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
39231         Remove some fields.
39232         (running_threads, running_lock): Remove variables.
39233         (get_current_thread_handle): New function.
39234         (gl_thread_self_func, wrapper_func, glthread_create_func,
39235         glthread_join_func, gl_thread_exit_func): Largely rewritten and
39236         simplified.
39237
39238 2008-09-30  Bruno Haible  <bruno@clisp.org>
39239
39240         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
39241         files.
39242
39243 2008-09-30  Jim Meyering  <meyering@redhat.com>
39244
39245         fts.m4: correct the test for statfs.f_type
39246         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
39247         when checking for statfs.f_type.
39248
39249 2008-09-15  Simon Josefsson  <simon@josefsson.org>
39250
39251         tests: avoid some compiler warnings
39252         * tests/test-memchr.c (main): Pass NULL indirectly.
39253         * tests/test-getdate.c (main): Remove unused variable 'ret'.
39254
39255 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
39256
39257         getdate.y: disallow countable dayshifts like "4 yesterday ago"
39258         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
39259         exactly specified dayshifts.
39260         (dayshift): New rule.
39261         (rel): Add dayshift.
39262         (relative_time_table) [tomorrow, yesterday, today, now]:
39263         Use tDAY_SHIFT in place of tDAY_UNIT.
39264         * tests/test-getdate.c: Add tests for now-disallowed countable
39265         dayshifts, e.g., "4 yesterday ago".
39266
39267 2008-09-29  Bruno Haible  <bruno@clisp.org>
39268
39269         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
39270         * tests/test-posix_spawn1.in.sh: Renamed from
39271         tests/test-posix_spawn.in.sh.
39272         * tests/test-posix_spawn2.c: New file.
39273         * tests/test-posix_spawn2.in.sh: New file.
39274         * modules/posix_spawnp-tests (Files): Update.
39275         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
39276
39277 2008-09-29  Bruno Haible  <bruno@clisp.org>
39278
39279         Propagate effects of putenv/setenv/unsetenv to child processes.
39280         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
39281         * lib/pipe.c (create_pipe): Likewise.
39282
39283 2008-09-29  Bruno Haible  <bruno@clisp.org>
39284
39285         Enable use of shell scripts as executables in mingw.
39286         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
39287         run the program as a shell script.
39288         * lib/pipe.c (create_pipe): Likewise.
39289         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
39290         resulting array.
39291
39292 2008-09-29  Eric Blake  <ebb9@byu.net>
39293
39294         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
39295
39296 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
39297
39298         * doc/posix-functions/accept.texi: Update mingw problems.
39299         * doc/posix-functions/bind.texi: Update mingw problems.
39300         * doc/posix-functions/close.texi: Update mingw problems.
39301         * doc/posix-functions/connect.texi: Update mingw problems.
39302         * doc/posix-functions/getpeername.texi: Update mingw problems.
39303         * doc/posix-functions/getsockname.texi: Update mingw problems.
39304         * doc/posix-functions/getsockopt.texi: Update mingw problems.
39305         * doc/posix-functions/ioctl.texi: Update mingw problems.
39306         * doc/posix-functions/listen.texi: Update mingw problems.
39307         * doc/posix-functions/recv.texi: Update mingw problems.
39308         * doc/posix-functions/recvfrom.texi: Update mingw problems.
39309         * doc/posix-functions/select.texi: Update mingw problems.
39310         * doc/posix-functions/send.texi: Update mingw problems.
39311         * doc/posix-functions/sendto.texi: Update mingw problems.
39312         * doc/posix-functions/setsockopt.texi: Update mingw problems.
39313         * doc/posix-functions/socket.texi: Update mingw problems.
39314
39315 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
39316             Bruno Haible  <bruno@clisp.org>
39317
39318         * lib/sys_select.in.h: Include sys/time.h.
39319         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
39320         * modules/sys_select: Depend on sys_time.
39321         * tests/test-sys_select.c: Test that sys/select.h defines struct
39322         timeval fully.
39323
39324 2008-09-29  Bruno Haible  <bruno@clisp.org>
39325
39326         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
39327         * lib/sys_select.in.h: Likewise.
39328
39329 2008-09-29  Bruno Haible  <bruno@clisp.org>
39330
39331         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
39332
39333 2008-09-29  Bruno Haible  <bruno@clisp.org>
39334
39335         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
39336         Set LIBSOCKET instead of augmenting LIBS.
39337         * modules/sockets (Link): New section.
39338         * modules/sockets-tests (test_sockets_LDADD): New variable.
39339         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
39340         * modules/poll-tests (test_poll_LDADD): New variable.
39341         * NEWS: Document the change.
39342
39343 2008-09-29  Bruno Haible  <bruno@clisp.org>
39344
39345         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
39346         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
39347         ARPA_INET_H directly.
39348         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39349
39350 2008-09-28  Bruno Haible  <bruno@clisp.org>
39351
39352         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
39353         from gl_HEADER_SYS_SOCKET.
39354         (gl_HEADER_SYS_SOCKET): Invoke it.
39355         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39356
39357 2008-09-28  Bruno Haible  <bruno@clisp.org>
39358
39359         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
39360         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
39361         Needed on OSF/1 4.0.
39362
39363 2008-09-28  Bruno Haible  <bruno@clisp.org>
39364
39365         Override open more carefully.
39366         * lib/open.c (orig_open): New function.
39367         (rpl_open): Use orig_open instead of open.
39368         * lib/fcntl.in.h: Add special invocation convention.
39369         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
39370         (gl_FUNC_OPEN): Invoke it.
39371
39372         Override freopen more carefully.
39373         * lib/freopen.c (orig_freopen): New function.
39374         (rpl_freopen): Use orig_freopen instead of freopen.
39375         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
39376         (gl_FUNC_FREOPEN): Invoke it.
39377
39378         Override fopen more carefully.
39379         * lib/fopen.c (orig_fopen): New function.
39380         (rpl_fopen): Use orig_fopen instead of fopen.
39381         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
39382         (gl_FUNC_FOPEN): Invoke it.
39383         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
39384
39385 2008-09-28  Bruno Haible  <bruno@clisp.org>
39386
39387         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
39388         SIGPIPE.
39389
39390 2008-09-28  Bruno Haible  <bruno@clisp.org>
39391
39392         * tests/test-sigaction.c (handler, main): Disable the check whether
39393         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
39394         glibc systems with LinuxThreads.
39395
39396 2008-09-28  Bruno Haible  <bruno@clisp.org>
39397
39398         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
39399
39400         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
39401         with AIX xlc.
39402         * lib/fcntl.in.h (open): Likewise.
39403         Reported by Rainer Tammer <tammer@tammer.net>.
39404
39405 2008-09-28  Bruno Haible  <bruno@clisp.org>
39406
39407         * modules/posix_spawnp-tests: New file.
39408         * tests/test-posix_spawn.c: New file.
39409         * tests/test-posix_spawn.in.sh: New file.
39410
39411         New module 'posix_spawnp'.
39412         * modules/posix_spawnp: New file.
39413         * lib/spawnp.c: New file, from GNU libc with modifications.
39414         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39415
39416         New module 'posix_spawn'.
39417         * modules/posix_spawn: New file.
39418         * lib/spawn.c: New file, from GNU libc with modifications.
39419         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39420
39421         New module 'posix_spawnattr_destroy'.
39422         * modules/posix_spawnattr_destroy: New file.
39423         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39424         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39425         module.
39426
39427         New module 'posix_spawnattr_setsigmask'.
39428         * modules/posix_spawnattr_setsigmask: New file.
39429         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39430         modifications.
39431         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39432         new module.
39433
39434         New module 'posix_spawnattr_getsigmask'.
39435         * modules/posix_spawnattr_getsigmask: New file.
39436         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39437         modifications.
39438         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39439         new module.
39440
39441         New module 'posix_spawnattr_setsigdefault'.
39442         * modules/posix_spawnattr_setsigdefault: New file.
39443         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39444         modifications.
39445         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39446         new module.
39447
39448         New module 'posix_spawnattr_getsigdefault'.
39449         * modules/posix_spawnattr_getsigdefault: New file.
39450         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39451         modifications.
39452         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39453         new module.
39454
39455         New module 'posix_spawnattr_setschedpolicy'.
39456         * modules/posix_spawnattr_setschedpolicy: New file.
39457         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39458         modifications.
39459         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39460         new module.
39461
39462         New module 'posix_spawnattr_getschedpolicy'.
39463         * modules/posix_spawnattr_getschedpolicy: New file.
39464         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39465         modifications.
39466         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39467         new module.
39468
39469         New module 'posix_spawnattr_setschedparam'.
39470         * modules/posix_spawnattr_setschedparam: New file.
39471         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39472         modifications.
39473         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39474         new module.
39475
39476         New module 'posix_spawnattr_getschedparam'.
39477         * modules/posix_spawnattr_getschedparam: New file.
39478         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39479         modifications.
39480         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39481         new module.
39482
39483         New module 'posix_spawnattr_setpgroup'.
39484         * modules/posix_spawnattr_setpgroup: New file.
39485         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39486         modifications.
39487         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39488         module.
39489
39490         New module 'posix_spawnattr_getpgroup'.
39491         * modules/posix_spawnattr_getpgroup: New file.
39492         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39493         modifications.
39494         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39495         module.
39496
39497         New module 'posix_spawnattr_setflags'.
39498         * modules/posix_spawnattr_setflags: New file.
39499         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39500         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39501         module.
39502
39503         New module 'posix_spawnattr_getflags'.
39504         * modules/posix_spawnattr_getflags: New file.
39505         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39506         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39507         module.
39508
39509         New module 'posix_spawnattr_init'.
39510         * modules/posix_spawnattr_init: New file.
39511         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39512         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39513         module.
39514
39515         New module 'posix_spawn_file_actions_destroy'.
39516         * modules/posix_spawn_file_actions_destroy: New file.
39517         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39518         modifications.
39519         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39520         the new module.
39521
39522         New module 'posix_spawn_file_actions_addopen'.
39523         * modules/posix_spawn_file_actions_addopen: New file.
39524         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39525         modifications.
39526         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39527         the new module.
39528
39529         New module 'posix_spawn_file_actions_adddup2'.
39530         * modules/posix_spawn_file_actions_adddup2: New file.
39531         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39532         modifications.
39533         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39534         the new module.
39535
39536         New module 'posix_spawn_file_actions_addclose'.
39537         * modules/posix_spawn_file_actions_addclose: New file.
39538         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39539         modifications.
39540         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39541         the new module.
39542
39543         New module 'posix_spawn_file_actions_init'.
39544         * modules/posix_spawn_file_actions_init: New file.
39545         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39546         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39547         new module.
39548
39549         New module 'posix_spawn-internal'.
39550         * modules/posix_spawn-internal: New file.
39551         * lib/spawn_int.h: New file, from GNU libc with modifications.
39552         * lib/spawni.c: New file, from GNU libc with modifications.
39553         * m4/posix_spawn.m4: New file.
39554
39555         New module 'spawn'.
39556         * modules/spawn: New file.
39557         * lib/spawn.in.h: New file, from GNU libc with modifications.
39558         * m4/spawn_h.m4: New file.
39559         * doc/posix-headers/spawn.texi: Mention the new module.
39560
39561 2008-09-28  Bruno Haible  <bruno@clisp.org>
39562
39563         * modules/sched-tests: New file.
39564         * tests/test-sched.c: New file.
39565
39566         New module 'sched'.
39567         * modules/sched: New file.
39568         * lib/sched.in.h: New file.
39569         * m4/sched_h.m4: New file.
39570         * doc/posix-headers/sched.texi: Mention the new module.
39571
39572 2008-09-27  Eric Blake  <ebb9@byu.net>
39573
39574         Fix previous patch, and tweak references to $0.
39575         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39576         (func_version, func_gnulib_dir): Don't call this program
39577         gnulib-tool.
39578         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39579         with using $0 in function.
39580         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39581         (func_fatal_error): Reuse the name the user invoked us with.
39582
39583 2008-09-27  Bruno Haible  <bruno@clisp.org>
39584
39585         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39586         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39587         (gl_ICONV_H): Not here.
39588         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39589         instead of assigning ICONV_H directly.
39590
39591         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39593         WCHAR_H directly.
39594
39595 2008-09-27  Bruno Haible  <bruno@clisp.org>
39596
39597         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39598         * modules/arpa_inet (Depends-on): Add link-warning.
39599         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39600         * modules/unistd (Makefile.am): Likewise.
39601
39602 2008-09-26  Bruno Haible  <bruno@clisp.org>
39603
39604         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39605         variables.
39606         (func_version): Essentially copied from gnulib-tool.
39607         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39608         func_readlink): Copied from gnulib-tool.
39609
39610 2008-09-26  Bruno Haible  <bruno@clisp.org>
39611
39612         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39613         invoking git-version-gen.
39614
39615 2008-09-26  Bruno Haible  <bruno@clisp.org>
39616
39617         * posix-modules: Update to directory names changed on 2008-01-19.
39618         Remove commas in output before splitting into words. No more need to
39619         avoid 'ftruncate' since 2007-02-19.
39620
39621 2008-09-26  Bruno Haible  <bruno@clisp.org>
39622
39623         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39624
39625 2008-09-26  Bruno Haible  <bruno@clisp.org>
39626
39627         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39628         * modules/fwriteerror (Depends-on): Add errno.
39629
39630 2008-09-26  Bruno Haible  <bruno@clisp.org>
39631
39632         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39633         * tests/test-vc-list-files-cvs.sh: Likewise.
39634
39635 2008-09-26  Bruno Haible  <bruno@clisp.org>
39636
39637         * doc/posix-headers/sys_resource.texi: Reorder items.
39638
39639 2008-09-26  Jim Meyering  <meyering@redhat.com>
39640
39641         fts: tweak inode comparison function
39642         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39643         inode numbers, as documented.
39644
39645         fts: sort dirent entries on inode number before traversing
39646         This avoids a quadratic, seek-related performance penalty when
39647         operating on a directory containing many entries (measurable at 10k;
39648         3.5 hours at 2 million entries with a cold cache) on certain types
39649         of file systems, including ext3 and ext4, but not tmpfs.
39650         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39651         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39652         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39653         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39654         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39655         (fts_build): Set the stat.st_ino member from D_INO.
39656         If it is likely to be useful, sort dirent entries on inode number.
39657
39658         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39659         and the struct statfs.f_type member.
39660         * modules/fts (Depends-on): Add d-ino.
39661
39662 2008-09-26  Bruno Haible  <bruno@clisp.org>
39663
39664         * modules/sigpipe-die (Depends-on): Add sigpipe.
39665
39666         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39667         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39668         and GNULIB_STDIO_H_SIGPIPE are set.
39669         * lib/stdio-write.c: New file.
39670         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39671         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39672         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39673         REPLACE_STDIO_WRITE_FUNCS.
39674         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39675         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39676         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39677         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39678         * modules/stdio (Files): Add lib/stdio-write.c.
39679         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39680         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39681         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39682         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39683         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39684         REPLACE_FPRINTF_POSIX.
39685         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39686         REPLACE_PRINTF_POSIX.
39687         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39688         REPLACE_VFPRINTF_POSIX.
39689         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39690         REPLACE_VPRINTF_POSIX.
39691         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39692         SIGPIPE issue.
39693         * doc/posix-functions/fputc.texi: Likewise.
39694         * doc/posix-functions/fputs.texi: Likewise.
39695         * doc/posix-functions/fwrite.texi: Likewise.
39696         * doc/posix-functions/printf.texi: Likewise.
39697         * doc/posix-functions/putc.texi: Likewise.
39698         * doc/posix-functions/putchar.texi: Likewise.
39699         * doc/posix-functions/puts.texi: Likewise.
39700         * doc/posix-functions/vfprintf.texi: Likewise.
39701         * doc/posix-functions/vprintf.texi: Likewise.
39702
39703         * modules/safe-write (Depends-on): Add write.
39704
39705         * modules/sigpipe-tests: New file.
39706         * tests/test-sigpipe.c: New file.
39707         * tests/test-sigpipe.sh: New file.
39708
39709         * modules/write: New file.
39710         * lib/unistd.in.h: Include <sys/types.h>.
39711         (write): New declaration.
39712         * lib/write.c: New file.
39713         * m4/write.m4: New file.
39714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39715         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39716         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39717         GNULIB_WRITE, REPLACE_WRITE.
39718         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39719         and the SIGPIPE issue.
39720
39721         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39722         (raise): New declaration.
39723         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39724         (ext_signal): New function.
39725         (rpl_raise): New function.
39726         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39727         GNULIB_SIGNAL_H_SIGPIPE.
39728         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39729         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39730
39731         * modules/sigpipe: New file.
39732         * m4/sigpipe.m4: New file.
39733
39734 2008-09-25  Derek Price  <derek@ximbiot.com>
39735             Bruno Haible  <bruno@clisp.org>
39736
39737         * gnulib-tool (func_import): Report all license incompatibilities, not
39738         just the first one.
39739
39740 2008-09-25  Bruno Haible  <bruno@clisp.org>
39741
39742         * gnulib-tool (func_import): When computing the edits, consider not
39743         only the Makefile.ams that exist but also those that will be generated.
39744
39745 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39746
39747         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39748         fixes gnulib-tool --test warning about duplicate dependency.
39749
39750 2008-09-25  Bruno Haible  <bruno@clisp.org>
39751
39752         * gnulib-tool: Don't ask the user to perform edits in the generated
39753         Makefile.ams.
39754         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39755         apply to the Makefile.am being generated.
39756         (func_emit_tests_Makefile_am): Execute edits that apply to the
39757         Makefile.am being generated.
39758         (func_import): Setup list of Makefile.am edits before emitting the
39759         Makefile.ams, not at the end.
39760         (func_create_testdir): Update.
39761         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39762
39763 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39764
39765         * gnulib-tool (func_import): Store the --tests-base option in the
39766         comment in gnulib-cache.m4.
39767
39768 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39769
39770         * NEWS: Document increased portability that sys_select now provides.
39771
39772         * lib/sys_select.in.h: Install select wrapper.
39773         * lib/sys_socket.in.h: Use more descriptive name when there is no
39774         select wrapper.
39775         * lib/winsock-select.c: New.
39776         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39777         Require gl_HEADER_SYS_SOCKET.
39778         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39779         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39780         * tests/test-sys_select.c: Add functional tests.
39781
39782 2008-09-24  Eric Blake  <ebb9@byu.net>
39783
39784         open, fopen: close fd leak in last patch
39785         * lib/open.c (rpl_open): Close fd before returning error.
39786         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39787         * doc/posix-functions/open.texi (open): Document that Irix also
39788         has the bug.
39789         * doc/posix-functions/fopen.texi (fopen): Likewise.
39790         Reported by Paolo Bonzini.
39791
39792 2008-09-24  Bruno Haible  <bruno@clisp.org>
39793
39794         Ensure that a filename ending in a slash cannot be used to access a
39795         non-directory.
39796         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39797         to check whether it's really a directory.
39798         * lib/fopen.c: Include fcntl.h, unistd.h.
39799         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39800         and fdopen().
39801         * modules/fopen (Depends-on): Add unistd.
39802         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39803         * tests/test-fopen.c (main): Likewise.
39804         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39805         * doc/posix-functions/fopen.texi: Likewise.
39806         Reported by Eric Blake.
39807
39808 2008-09-23  Eric Blake  <ebb9@byu.net>
39809
39810         c-stack: avoid compiler optimizations when provoking overflow
39811         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39812         recursion harder to optimize, to ensure a stack overflow occurs.
39813         * tests/test-c-stack.c (recurse): Likewise.
39814         Borrowed from libsigsegv.
39815
39816         c-stack: work around Irix sigaltstack bug
39817         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39818         whether sigaltstack uses wrong end of stack_t (copied in part from
39819         libsigsegv).
39820         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39821         Irix bug, without requiring an over-allocation.
39822         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39823         bug.
39824
39825         fopen: document mingw bug on directories
39826         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39827         not allowing a stream visiting a directory, even though reading
39828         from such a stream is not portable.
39829
39830 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39831
39832         * lib/poll.c: Rewrite.
39833         * modules/poll: Depend on alloca.
39834
39835 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39836
39837         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39838         instead define prototypes for a full set of wrappers.  Ensure
39839         that Cygwin does not use the compatibility code, which is only
39840         for MinGW.
39841         * lib/winsock.c: New.
39842         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39843         * modules/sys_socket: Add lib/winsock.c.
39844
39845         * modules/poll-tests: Add errno and perror.
39846         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39847
39848 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39849
39850         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39851
39852 2008-09-23  Bruno Haible  <bruno@clisp.org>
39853
39854         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39855         * doc/glibc-functions/*: Likewise.
39856
39857 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39858
39859         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39860         success.
39861
39862 2008-09-22  Eric Blake  <ebb9@byu.net>
39863             Bruno Haible  <bruno@clisp.org>
39864
39865         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39866         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39867         supply %A but mishandle pseudo-NaN.
39868         Reported by Simon Josefsson.
39869
39870 2008-09-21  Bruno Haible  <bruno@clisp.org>
39871
39872         * tests/test-lock.c (main): Tweak skip message.
39873         * tests/test-tls.c (main): Likewise.
39874
39875 2008-09-21  Bruno Haible  <bruno@clisp.org>
39876
39877         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39878         whether 'struct sigaction' has sa_sigaction here...
39879         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39880         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39881
39882 2008-09-21  Bruno Haible  <bruno@clisp.org>
39883
39884         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39885         section.
39886         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39887         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39888         the new section.
39889         (Support for obsolete systems lacking POSIX:2001): New section.
39890         (String handling <string.h>): Move strdup to the new section.
39891         Suggested by Simon Josefsson and Paolo Bonzini.
39892
39893 2008-09-21  Bruno Haible  <bruno@clisp.org>
39894
39895         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39896         exponents in %e and %g results on 'long double'. Needed for mingw's
39897         improved *printf functions.
39898         * tests/test-vasprintf-posix.c (test_function): Likewise.
39899         * tests/test-snprintf-posix.h (test_function): Likewise.
39900         * tests/test-sprintf-posix.h (test_function): Likewise.
39901         Reported by Eric Blake.
39902
39903 2008-09-21  Bruno Haible  <bruno@clisp.org>
39904
39905         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39906         * tests/test-sprintf-posix.h (test_function): Likewise.
39907
39908 2008-09-21  Bruno Haible  <bruno@clisp.org>
39909
39910         * modules/getpass (Depends-on): Add strdup-posix.
39911
39912         New module 'strdup-posix'.
39913         * modules/strdup-posix: New file.
39914         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39915         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39917         REPLACE_STRDUP.
39918         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39919         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39921         strdup-posix.
39922
39923         * modules/strdup (Depends-on): Remove malloc-posix.
39924
39925 2008-09-20  Bruno Haible  <bruno@clisp.org>
39926
39927         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39928         Wildenhues.
39929
39930 2008-09-20  Bruno Haible  <bruno@clisp.org>
39931
39932         Ensure that wint_t gets defined on IRIX 5.3.
39933         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39934         * lib/wctype.in.h (wint_t): Likewise.
39935         (__wctype_wint_t): Remove type.
39936         (isw*): Use wint_t instead of __wctype_wint_t.
39937         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39938         * modules/wchar (Files): Add m4/wint_t.m4.
39939         (Makefile.am): Substitute HAVE_WINT_T.
39940         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39941         * tests/test-wctype.c: Check that wint_t is defined.
39942         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39943         * doc/posix-headers/wctype.texi: Likewise.
39944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39945
39946 2008-09-18  Bruno Haible  <bruno@clisp.org>
39947
39948         * gnulib-tool (func_exit): Update comment.
39949
39950 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39951
39952         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39953         assumes strdup exists and does not depend on strdup to return
39954         ENOMEM on out of memory conditions.
39955
39956 2008-09-18  Bruno Haible  <bruno@clisp.org>
39957
39958         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39959         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39960         digits for the exponent.
39961
39962 2008-09-18  Jim Meyering  <meyering@redhat.com>
39963             Bruno Haible  <bruno@clisp.org>
39964
39965         * lib/vasnprintf.c (decimal_point_char): Define also if
39966         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39967
39968 2008-09-16  Bruno Haible  <bruno@clisp.org>
39969         and Eric Blake  <ebb9@byu.net>
39970
39971         vasnprintf: support Irix 5.3
39972         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39973         that mishandle long double infinity.
39974         Reported by Tom G. Christensen.
39975
39976 2008-09-16  Bruno Haible  <bruno@clisp.org>
39977
39978         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39979         Solaris 9.
39980         * doc/glibc-functions/alphasort.texi: Likewise.
39981         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39982
39983 2008-09-16  Jim Meyering  <meyering@redhat.com>
39984
39985         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39986         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39987         a umask modification leak out of a subshell.  Otherwise, the
39988         opensolaris /bin/sh would be accepted and thus cause unwarranted
39989         failures in the coreutils test suite.
39990
39991 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39992
39993         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39994         to succeed.
39995
39996 2008-09-16  Jim Meyering  <meyering@redhat.com>
39997
39998         avoid spurious test failure when library is built without ACL support
39999         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
40000         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
40001         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
40002         * tests/test-copy-acl.sh: Likewise.
40003
40004 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40005
40006         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
40007         based on character occurrence counts.
40008
40009 2008-09-15  Eric Blake  <ebb9@byu.net>
40010
40011         tests: avoid some compiler warnings
40012         * tests/test-memchr.c (main): Pass NULL indirectly.
40013         * tests/test-closein.c (main): Avoid unused variable.
40014
40015 2008-09-15  Bruno Haible  <bruno@clisp.org>
40016
40017         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
40018         are missing on OpenBSD 4.0 individually.
40019         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40020
40021 2008-09-15  Bruno Haible  <bruno@clisp.org>
40022
40023         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
40024         * doc/posix-functions/strerror.texi: Mention also Cygwin.
40025         * doc/posix-functions/perror.texi: Likewise.
40026         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
40027         is missing.
40028         Reported by Eric Blake.
40029
40030         * lib/errno.in.h: Use replacement values >= 2000.
40031         Reported by Eric Blake.
40032
40033 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40034
40035         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
40036         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
40037         limit.
40038         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
40039         compareseq was aborted.
40040
40041 2008-09-14  Bruno Haible  <bruno@clisp.org>
40042
40043         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
40044         yvec_edit_count.
40045         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
40046         (fstrcmp_bounded): Simplify result computation accordingly.
40047
40048 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40049
40050         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
40051         (fstrcmp): Define in terms of fstrcmp_bounded.
40052         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
40053         lower_bound argument.
40054         Return quickly if the result is certainly < lower_bound.
40055         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
40056
40057 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40058
40059         * lib/diffseq.h (EARLY_ABORT): New macro.
40060         (compareseq): Change return type to bool. Return true when EARLY_ABORT
40061         evaluates to true.
40062
40063 2008-09-14  Bruno Haible  <bruno@clisp.org>
40064
40065         * modules/perror-tests: New file.
40066         * tests/test-perror.sh: New file.
40067         * tests/test-perror.c: New file.
40068
40069         New module 'perror'.
40070         * lib/stdio.in.h (perror): New declaration.
40071         * lib/perror.c: New file.
40072         * m4/perror.m4: New file.
40073         * modules/perror: New file.
40074         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
40075         * doc/posix-functions/perror.texi: Mention the perror module.
40076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
40077         REPLACE_PERROR.
40078         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
40079         REPLACE_PERROR.
40080
40081 2008-09-14  Bruno Haible  <bruno@clisp.org>
40082
40083         * modules/stdio (Makefile.am): Reorder to match the order in
40084         lib/stdio.in.h.
40085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40086
40087 2008-09-13  Bruno Haible  <bruno@clisp.org>
40088
40089         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
40090
40091 2008-09-13  Bruno Haible  <bruno@clisp.org>
40092
40093         Extend strerror to cover the added errno values.
40094         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
40095         (rpl_strerror): Provide error messages for the added errno values and
40096         for the WSA* values.
40097         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
40098         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
40099         strerror.
40100         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
40101         * modules/strerror (Depends-on): Add errno.
40102         * doc/posix-functions/strerror.texi: Document the change.
40103         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
40104         and EOVERFLOW.
40105
40106 2008-09-13  Bruno Haible  <bruno@clisp.org>
40107
40108         * modules/EOVERFLOW: Remove file.
40109         * m4/eoverflow.m4: Remove file.
40110         * modules/EOVERFLOW-tests: Remove file.
40111         * tests/test-EOVERFLOW.c: Remove file.
40112         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
40113         * modules/ftell (Depends-on): Likewise.
40114         * modules/getdelim (Depends-on): Likewise.
40115         * modules/getugroups (Depends-on): Likewise.
40116         * modules/poll (Depends-on): Likewise.
40117         * modules/snprintf (Depends-on): Likewise.
40118         * modules/sprintf-posix (Depends-on): Likewise.
40119         * modules/vasnprintf (Depends-on): Likewise.
40120         * modules/vasprintf (Depends-on): Likewise.
40121         * modules/vfprintf-posix (Depends-on): Likewise.
40122         * modules/vsnprintf (Depends-on): Likewise.
40123         * modules/vsprintf-posix (Depends-on): Likewise.
40124         * modules/xvasprintf (Depends-on): Likewise.
40125         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40126         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
40127         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
40128         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
40129         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40130         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
40131         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
40132         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
40133         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40134         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
40135         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
40136         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
40137         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40138         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
40139         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
40140         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
40141         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40142         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
40143         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
40144         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
40145         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40146         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
40147         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
40148         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
40149         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
40150         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40151         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
40152         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
40153         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
40154         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
40155         * MODULES.html.sh: Remove EOVERFLOW.
40156         * NEWS: Mention the change.
40157
40158 2008-09-13  Bruno Haible  <bruno@clisp.org>
40159
40160         * modules/errno-tests: New file.
40161         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
40162
40163         * lib/errno.in.h: New file.
40164         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
40165         * modules/errno: New file.
40166         * doc/posix-headers/errno.texi: Update documentation.
40167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
40168
40169 2008-09-13  Bruno Haible  <bruno@clisp.org>
40170
40171         * tests/test-poll.c: Use #if for native Windows, rather than testing
40172         __MSVCRT__.
40173
40174 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40175             Bruno Haible  <bruno@clisp.org>
40176
40177         * lib/glob.c: Don't include <pwd.h> on native Windows.
40178         (WINDOWS32): New macro.
40179         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
40180
40181 2008-09-13  Bruno Haible  <bruno@clisp.org>
40182
40183         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
40184         (ETIMEDOUT): Remove macro.
40185         (glthread_cond_timedwait_multithreaded): New declaration.
40186         (glthread_cond_timedwait): Use it.
40187         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
40188         (glthread_cond_timedwait_multithreaded): New function.
40189
40190 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40191
40192         * modules/poll-tests: Do not check for io.h.
40193         * tests/test-poll.c: Check for __MSVCRT__ instead.
40194
40195 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40196
40197         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
40198         * modules/poll-tests: Add inet_pton, stdbool, sockets.
40199         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40200
40201 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40202
40203         * modules/poll-tests: New.
40204         * tests/test-poll.c: New.
40205
40206 2008-09-12  Eric Blake  <ebb9@byu.net>
40207
40208         frexp: test for NetBSD failure on -0.0
40209         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
40210         not all, bugs from NetBSD 3.0 have been fixed.
40211         * doc/posix-functions/frexp.texi (frexp): Document bug.
40212         Reported by Thomas Klausner.
40213
40214         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
40215         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
40216         literal -0.0.
40217         Reported by Jonathan C. Patschke <jp@centtech.com>.
40218
40219 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40220
40221         * lib/glthread/cond.h: Use dummy implementation also if
40222         USE_WIN32_THREADS.
40223
40224 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40225
40226         * modules/fnmatch-posix (License): Change to LGPLv2+.
40227         * modules/fnmatch-gnu (License): Likewise.
40228
40229 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40230
40231         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
40232
40233 2008-09-11  Jim Meyering  <meyering@redhat.com>
40234
40235         * users.txt: Add gtk-vnc.
40236
40237 2008-09-08  Simon Josefsson  <simon@josefsson.org>
40238
40239         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
40240         rotate amounts.
40241
40242         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
40243         required for 16-bit and 8-bit rotates.
40244         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
40245         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
40246         UINT8_MAX instead of hard-coded constants.
40247         Suggested by Paul Eggert.
40248
40249 2008-09-07  Bruno Haible  <bruno@clisp.org>
40250
40251         * tests/test-striconveh.c (main): Check behaviour when converting from
40252         UTF-7.
40253
40254         Make striconveh work better with stateful encodings.
40255         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
40256         that iconv does not increment the inptr when returning -1/EINVAL.
40257
40258 2008-09-07  Bruno Haible  <bruno@clisp.org>
40259
40260         * build-aux/config.rpath: Update according to libtool-2.2.6.
40261         * build-aux/config.libpath: Likewise.
40262
40263 2008-09-06  Bruno Haible  <bruno@clisp.org>
40264
40265         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
40266         * lib/freadptr.c (freadptr): Likewise.
40267         * lib/freadseek.c (freadptrinc): Likewise.
40268         Reported by Simon Josefsson.
40269
40270 2008-09-06  Bruno Haible  <bruno@clisp.org>
40271
40272         * modules/freadptr (License): Change to LGPLv2+.
40273         * modules/freadseek (License): Likewise.
40274         Suggested by Eric Blake.
40275
40276         * modules/memchr2 (License): Change to LGPLv2+.
40277         Approved by Eric Blake.
40278
40279 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40280             Bruno Haible  <bruno@clisp.org>
40281
40282         Make gnulib-tool work with native 'sed' on AIX.
40283         * gnulib-tool (sed_noop): New variable.
40284         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
40285         func_add_or_update, func_create_testdir): Use it to initialize sed
40286         script variables.
40287         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40288
40289 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
40290             Bruno Haible  <bruno@clisp.org>
40291
40292         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
40293         also works after #include directives.
40294
40295 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
40296
40297         getdate.y: reject an out-of-range timezone value
40298         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
40299         the range [-24...+24].  When specified with only one or two digits,
40300         * tests/test-getdate.c: Tests for the fix.
40301         * doc/getdate.texi: Document this change.
40302
40303 2008-09-03  Bruno Haible  <bruno@clisp.org>
40304
40305         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
40306
40307 2008-09-02  Simon Josefsson  <simon@josefsson.org>
40308
40309         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
40310         <bruce.korb@gmail.com> with ideas from Ben Pfaff
40311         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
40312         Blake <ebb9@byu.net>.
40313
40314         * tests/test-bitrotate.c: Add more test vectors.
40315
40316 2008-09-02  Eric Blake  <ebb9@byu.net>
40317
40318         vasnprintf-posix: handle large precision via %.*d
40319         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
40320         when handling it ourselves.
40321         * tests/test-vasnprintf-posix.c (test_function): Add test.
40322         * tests/test-snprintf-posix.h (test_function): Likewise.
40323         * tests/test-sprintf-posix.h (test_function): Likewise.
40324         * tests/test-vasprintf-posix.c (test_function): Likewise.
40325         Reported by Alain Guibert.
40326
40327 2008-09-01  Eric Blake  <ebb9@byu.net>
40328
40329         c-stack: make configure-time check more robust
40330         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
40331         successful sigaction call.
40332         Reported by Tom G. Christensen.
40333
40334 2008-09-01  Bruno Haible  <bruno@clisp.org>
40335
40336         New module 'findprog-lgpl'.
40337         * modules/findprog-lgpl: New file.
40338         * lib/findprog-lgpl.c: New file.
40339         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
40340         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
40341         to decide whether to use strdup or xstrdup, concatenated_filename or
40342         xconcatenated_filename.
40343
40344 2008-09-01  Bruno Haible  <bruno@clisp.org>
40345
40346         Split module 'concat-filename' into 'concat-filename' (LGPL) and
40347         'xconcat-filename' (GPL).
40348         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
40349         (License): Change to LGPLv2+.
40350         * modules/xconcat-filename: New file.
40351         * lib/concat-filename.h (concatenated_filename): Change specification.
40352         (xconcatenated_filename): New declaration.
40353         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
40354         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
40355         memory situations.
40356         * lib/xconcat-filename.c: New file.
40357         * NEWS: Mention the change.
40358         * lib/findprog.c: Include concat-filename.h, not filename.h.
40359         (find_in_path): Use xconcatenated_filename instead of
40360         concatenated_filename.
40361         * lib/javacomp.c: Include concat-filename.h, not filename.h.
40362         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40363         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40364         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40365         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
40366         instead of concatenated_filename.
40367         * lib/javaexec.c: Include concat-filename.h, not filename.h.
40368         (execute_java_class): Use xconcatenated_filename instead of
40369         concatenated_filename.
40370         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
40371         * modules/javacomp (Depends-on): Likewise.
40372         * modules/javaexec (Depends-on): Likewise.
40373
40374 2008-09-01  Bruno Haible  <bruno@clisp.org>
40375
40376         Split module 'filename' into 'filename' and 'concat-filename'.
40377         * modules/filename: Keep only lib/filename.h.
40378         (License): Change to LGPLv2+.
40379         * modules/concat-filename: New file, extracted from modules/filename.
40380         * lib/filename.h (concatenated_filename): Remove declaration.
40381         * lib/concat-filename.h: New file, extracted from lib/filename.h.
40382         * lib/concat-filename.c: Include concat-filename.h.
40383         * NEWS: Mention the change.
40384
40385 2008-09-01  Simon Josefsson  <simon@josefsson.org>
40386
40387         * lib/bitrotate.h (rotl8, rotr8): Add.
40388
40389         * modules/bitrotate (configure.ac): Need
40390         AC_REQUIRE([AC_C_INLINE]).
40391         (Description): Mention stdint.h.  Reported by Bruno Haible
40392         <bruno@clisp.org>.
40393
40394         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
40395         Paolo Bonzini <bonzini@gnu.org>.
40396
40397 2008-08-31  Bruno Haible  <bruno@clisp.org>
40398
40399         Assume Solaris specific bi-arch conventions on Solaris systems.
40400         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
40401         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40402         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40403         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40404         like acl_libdirstem.
40405         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40406         acl_libdirstem.
40407         * NEWS: Mention the change.
40408         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40409
40410 2008-08-31  Jim Meyering  <meyering@redhat.com>
40411
40412         * lib/strftime.h: Add comments describing the two added arguments.
40413
40414         remove duplicate #include directives
40415         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40416         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40417
40418 2008-08-31  Bruno Haible  <bruno@clisp.org>
40419
40420         New module 'sigpipe-die'.
40421         * modules/sigpipe-die: New file.
40422         * lib/sigpipe-die.h: New file.
40423         * lib/sigpipe-die.c: New file.
40424         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40425
40426 2008-08-31  Bruno Haible  <bruno@clisp.org>
40427
40428         Don't override previously installed signal handlers.
40429         * lib/fatal-signal.c (saved_sigactions): New variable.
40430         (uninstall_handlers): Reset the signal to the saved handler, not
40431         to SIG_DFL (except when ignored).
40432         (install_handlers): Save the previous handlers.
40433
40434 2008-08-30  Bruno Haible  <bruno@clisp.org>
40435
40436         * gnulib-tool (func_reset_sigpipe): New function.
40437         (func_get_automake_snippet, func_modules_transitive_closure,
40438         func_import): Invoke it before a join command that reads from stdin,
40439         to avoid "echo: write error: Broken pipe" error messages on stderr.
40440         Reported by Sam Steingold <sds@gnu.org>.
40441
40442 2008-08-30  Bruno Haible  <bruno@clisp.org>
40443
40444         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40445         Code copied from m4/open.m4.
40446         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40447         access and the filename ends in a slash. Code copied from lib/open.c.
40448         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40449         * tests/test-fopen.c (main): Check against bug with trailing slash.
40450
40451 2008-08-29  Bruno Haible  <bruno@clisp.org>
40452
40453         Avoid some "gcc -pedantic" warnings.
40454         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40455         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40456         * lib/dirent.in.h: Likewise.
40457         * lib/fcntl.in.h: Likewise.
40458         * lib/float.in.h: Likewise.
40459         * lib/iconv.in.h: Likewise.
40460         * lib/inttypes.in.h: Likewise.
40461         * lib/locale.in.h: Likewise.
40462         * lib/math.in.h: Likewise.
40463         * lib/netinet_in.in.h: Likewise.
40464         * lib/search.in.h: Likewise.
40465         * lib/signal.in.h: Likewise.
40466         * lib/stdarg.in.h: Likewise.
40467         * lib/stdint.in.h: Likewise.
40468         * lib/stdio.in.h: Likewise.
40469         * lib/stdlib.in.h: Likewise.
40470         * lib/string.in.h: Likewise.
40471         * lib/strings.in.h: Likewise.
40472         * lib/sys_select.in.h: Likewise.
40473         * lib/sys_socket.in.h: Likewise.
40474         * lib/sys_stat.in.h: Likewise.
40475         * lib/sys_time.in.h: Likewise.
40476         * lib/sysexits.in.h: Likewise.
40477         * lib/time.in.h: Likewise.
40478         * lib/unistd.in.h: Likewise.
40479         * lib/wchar.in.h: Likewise.
40480         * lib/wctype.in.h: Likewise.
40481         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40482         * modules/fchdir (Makefile.am): Likewise.
40483         * modules/fcntl (Makefile.am): Likewise.
40484         * modules/float (Makefile.am): Likewise.
40485         * modules/iconv_open (Makefile.am): Likewise.
40486         * modules/inttypes (Makefile.am): Likewise.
40487         * modules/locale (Makefile.am): Likewise.
40488         * modules/math (Makefile.am): Likewise.
40489         * modules/netinet_in (Makefile.am): Likewise.
40490         * modules/search (Makefile.am): Likewise.
40491         * modules/signal (Makefile.am): Likewise.
40492         * modules/stdarg (Makefile.am): Likewise.
40493         * modules/stdint (Makefile.am): Likewise.
40494         * modules/stdio (Makefile.am): Likewise.
40495         * modules/stdlib (Makefile.am): Likewise.
40496         * modules/string (Makefile.am): Likewise.
40497         * modules/strings (Makefile.am): Likewise.
40498         * modules/sys_select (Makefile.am): Likewise.
40499         * modules/sys_socket (Makefile.am): Likewise.
40500         * modules/sys_stat (Makefile.am): Likewise.
40501         * modules/sys_time (Makefile.am): Likewise.
40502         * modules/sysexits (Makefile.am): Likewise.
40503         * modules/time (Makefile.am): Likewise.
40504         * modules/unistd (Makefile.am): Likewise.
40505         * modules/wchar (Makefile.am): Likewise.
40506         * modules/wctype (Makefile.am): Likewise.
40507         Reported by Reuben Thomas <rrt@sc3d.org>.
40508
40509 2008-08-29  Bruno Haible  <bruno@clisp.org>
40510
40511         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40512         any more.
40513
40514 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40515
40516         * MODULES.html.sh (Misc): Add bitrotate.
40517
40518         * modules/bitrotate: New file.
40519
40520         * lib/bitrotate.h: New file.
40521
40522         * modules/bitrotate-tests: New file.
40523
40524         * tests/test-bitrotate.c: New file.
40525
40526         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40527         on the bitrotate module.
40528
40529         * lib/arctwo.c: Use new bitrotate module.
40530
40531 2008-08-29  Jim Meyering  <meyering@redhat.com>
40532
40533         bootstrap: merge changes from coreutils
40534         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40535         of copied files.  Remove a kludge, now that this is fixed.
40536         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40537         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40538         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40539
40540 2008-08-29  Bruno Haible  <bruno@clisp.org>
40541
40542         * MODULES.html.sh: Remove --cvs-urls option.
40543
40544 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40545
40546         maint.mk: adjust to file name change
40547         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40548
40549 2008-08-28  Jim Meyering  <meyering@redhat.com>
40550
40551         * modules/getndelim2 (License): Relicense to LGPLv2+.
40552         Approved by Richard Stallman for the version of 1995, and by
40553         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40554
40555 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40556
40557         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40558         dummy if one is not available.  Do not touch them if
40559         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40560         (getc_maybe_unlocked): New.
40561         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40562
40563 2008-08-26  Eric Blake  <ebb9@byu.net>
40564
40565         doc/INSTALL: resync from autoconf
40566         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40567         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40568         moving...
40569         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40570         * INSTALL: Regenerate.
40571         * INSTALL.ISO: New file.
40572         * INSTALL.UTF-8: Likewise.
40573
40574 2008-08-26  Jim Meyering  <meyering@redhat.com>
40575
40576         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40577         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40578         these definitions conditional, so that they may be overridden, too.
40579
40580 2008-08-26  Bruno Haible  <bruno@clisp.org>
40581
40582         Generate INSTALL file variants with prettier quotes.
40583         * doc/Makefile (INSTALL_PRELUDE): New macro.
40584         (INSTALL): Use it.
40585         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40586
40587 2008-08-26  Bruno Haible  <bruno@clisp.org>
40588
40589         Run makeinfo in an English locale.
40590         * doc/Makefile (MAKEINFO): New variable.
40591
40592 2008-08-26  Bruno Haible  <bruno@clisp.org>
40593
40594         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40595         Suggested by Eric Blake.
40596
40597 2008-08-25  Bruno Haible  <bruno@clisp.org>
40598
40599         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40600
40601 2008-08-25  Eric Blake  <ebb9@byu.net>
40602
40603         c-stack: test that stack overflow can be caught
40604         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40605         that platform allows handling stack overflow; at least OS/2 EMX
40606         has sigaltstack, but crashes before transferring control to
40607         handler on stack overflow.
40608         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40609         check for HAVE_STACK_OVERFLOW_HANDLING.
40610         Reported by Elbert Pol.
40611
40612 2008-08-25  Bruno Haible  <bruno@clisp.org>
40613
40614         * doc/posix-functions/strftime.texi: Fix description of strftime
40615         module.
40616
40617 2008-08-24  Bruno Haible  <bruno@clisp.org>
40618
40619         * tests/uniwidth/test-uc_width2.c: New file.
40620         * tests/uniwidth/test-uc_width2.sh: New file.
40621         * modules/uniwidth/width-tests (Files): Add the new files.
40622         (TESTS): Add uniwidth/test-uc_width2.sh.
40623         (TESTS_ENVIRONMENT): New variable.
40624         (check_PROGRAMS): Add test-uc_width2.
40625         (test_uc_width2_SOURCES): New variable.
40626
40627         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40628         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40629         not 0x00AB.
40630         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40631
40632 2008-08-22  Eric Blake  <ebb9@byu.net>
40633
40634         test-lock, test-tls: mention why a test is skipped
40635         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40636         skipped.
40637         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40638
40639         count-one-bits: relax license
40640         * modules/count-one-bits (License): Relicense to LGPLv2+.
40641         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40642
40643 2008-08-22  Andreas Schwab  <schwab@suse.de>
40644
40645         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40646         Remove spurious space in assignment.
40647
40648 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40649
40650         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40651         Paul Eggert <eggert@CS.UCLA.EDU>.
40652
40653 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40654
40655         * modules/gettext: Add m4/threadlib.m4.
40656
40657 2008-08-19  Eric Blake  <ebb9@byu.net>
40658
40659         test-c-stack: fix compilation failure on FreeBSD 5.0
40660         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40661         headers before <sys/resource.h>.
40662         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40663         the bug.
40664         Reported by Nelson H. F. Beebe.
40665
40666         strverscmp: migrate from "strverscmp.h" to <string.h>
40667         * modules/string (Makefile.am): Add new hooks.
40668         * modules/strverscmp (Files): Remove strverscmp.h.
40669         (Depends-on): Add string.
40670         (configure.ac): Add indicator.
40671         (Include): Mention new header.
40672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40673         defaults.
40674         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40675         results.
40676         * lib/strverscmp.h: Delete.
40677         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40678         * tests/test-strverscmp.c (includes): Adjust client.
40679         * lib/check-version.c (includes): Likewise.
40680         * NEWS: Document the change.
40681
40682         strverscmp: add unit test
40683         * modules/strverscmp-tests: New file.
40684         * tests/test-strverscmp.c: Likewise.
40685
40686 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40687
40688         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40689         regarding Windows crypto stuff, from Mono.
40690
40691 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40692
40693         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40694         if present, for intel RND.  Return error on failures.
40695
40696 2008-08-18  Ben Pfaff  <blp@gnu.org>
40697
40698         gitlog-to-changelog: give better diagnostic for failed pipe-open
40699         * build-aux/gitlog-to-changelog: Improve error message: suggest
40700         that the version of Git may be too old.
40701
40702 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40703
40704         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40705         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40706
40707 2008-08-18  Bruno Haible  <bruno@clisp.org>
40708
40709         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40710         pthread_in_use().
40711
40712 2008-08-18  Bruno Haible  <bruno@clisp.org>
40713
40714         * lib/glthread/threadlib.c: Include <pthread.h>.
40715
40716 2008-08-18  Bruno Haible  <bruno@clisp.org>
40717
40718         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40719         glthread_recursive_lock_* macros.
40720         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40721         Fix syntax error.
40722
40723 2008-08-18  Bruno Haible  <bruno@clisp.org>
40724
40725         * lib/glthread/thread.c: Avoid forcing a context switch right after
40726         thread creation.
40727
40728 2008-08-17  Bruno Haible  <bruno@clisp.org>
40729
40730         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40731         * lib/glthread/thread.h: Provide Win32 specific implementation.
40732         * modules/thread (Files): Add lib/glthread/thread.c.
40733         (Depends-on): Add lock.
40734         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40735
40736 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40737
40738         New module 'yield'.
40739         * modules/yield: New file.
40740         * lib/glthread/yield.h: New file.
40741         * m4/yield.m4: New file.
40742         * MODULES.html.sh (Multithreading): Add yield.
40743
40744 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40745
40746         New module 'thread'.
40747         * modules/thread: New file.
40748         * lib/glthread/thread.h: New file.
40749         * m4/thread.m4: New file.
40750         * MODULES.html.sh (Multithreading): Add thread.
40751
40752 2008-08-17  Bruno Haible  <bruno@clisp.org>
40753
40754         * lib/glthread/lock.h: Include <stdlib.h> always.
40755         * lib/glthread/tls.h: Likewise.
40756         * lib/glthread/cond.h: Likewise.
40757
40758 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40759
40760         New module 'cond'.
40761         * modules/cond: New file.
40762         * lib/glthread/cond.h: New file.
40763         * lib/glthread/cond.c: New file.
40764         * m4/cond.m4: New file.
40765         * MODULES.html.sh (Multithreading): Add cond.
40766
40767 2008-08-16  Eric Blake  <ebb9@byu.net>
40768
40769         c-stack: fix regression on Irix 5.3 from 2008-06-21
40770         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40771         sa_sigaction...
40772         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40773         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40774         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40775         * modules/signal (Makefile.am): Use the value.
40776         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40777         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40778         * doc/posix-headers/signal.texi (signal.h): Document this
40779         portability issue.
40780         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40781         Reported by Tom G. Christensen.
40782
40783 2008-08-17  Bruno Haible  <bruno@clisp.org>
40784
40785         New module 'threadlib'.
40786         * modules/threadlib: New file.
40787         * lib/glthread/threadlib.c: New file, extracted from
40788         lib/glthread/lock.c.
40789         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40790         functions.
40791         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40792         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40793         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40794         macros.
40795         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40796         (gl_DISABLE_THREADS): Remove macro.
40797         * modules/lock (Files): Remove build-aux/config.rpath.
40798         (Depends-on): Remove havelib. Add threadlib.
40799         (configure.ac-early): Remove section.
40800         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40801         * modules/tls (Depends-on): Remove lock. Add threadlib.
40802         (Link): New section, copied from threadlib.
40803         * MODULES.html.sh (Multithreading): Add threadlib.
40804
40805 2008-08-14  Bruno Haible  <bruno@clisp.org>
40806
40807         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40808         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40809         glthread_rwlock_unlock, glthread_rwlock_destroy,
40810         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40811         glthread_recursive_lock_destroy): Define as macros always.
40812         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40813         glthread_lock_lock.
40814         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40815         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40816         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40817         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40818         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40819         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40820         (glthread_recursive_lock_lock_func): Renamed from
40821         glthread_recursive_lock_lock.
40822         (glthread_recursive_lock_unlock_func): Renamed from
40823         glthread_recursive_lock_unlock.
40824         (glthread_recursive_lock_destroy_func): Renamed from
40825         glthread_recursive_lock_destroy.
40826
40827 2008-08-14  Bruno Haible  <bruno@clisp.org>
40828
40829         * lib/glthread/lock.h: Renamed from lib/lock.h.
40830         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40831         * lib/glthread/tls.h: Renamed from lib/tls.h.
40832         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40833         * lib/fstrcmp.c: Update includes.
40834         * lib/strsignal.c: Update includes.
40835         * modules/lock (Files, Makefile.am): Update.
40836         (Include): Change to "glthread/lock.h".
40837         * modules/tls (Files, Makefile.am): Update.
40838         (Include): Change to "glthread/tls.h".
40839         * tests/test-lock.c: Update includes.
40840         * tests/test-tls.c: Update includes.
40841         * NEWS: Mention the renamed header files.
40842
40843 2008-08-11  Jim Meyering  <meyering@redhat.com>
40844
40845         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40846
40847 2008-08-11  Eric Blake  <ebb9@byu.net>
40848
40849         test-c-stack: avoid C99-ism
40850         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40851         before statement.
40852         Reported by Alain Guibert.
40853
40854 2008-08-10  Jim Meyering  <meyering@redhat.com>
40855
40856         ensure that return value of uinttostr et al are not ignored
40857         * lib/inttostr.h (__GNUC_PREREQ): Define.
40858         (__attribute_warn_unused_result__): Define.
40859         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40860
40861 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40862
40863         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40864         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40865
40866 2008-08-07  Jim Meyering  <meyering@redhat.com>
40867
40868         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40869
40870         * modules/mkstemp (License): Relicense under LGPLv2+.
40871         * modules/tempname (License): Likewise.
40872
40873 2008-08-06  Bruno Haible  <bruno@clisp.org>
40874
40875         * lib/poll.c (poll): Further micro-optimization.
40876
40877 2008-08-06  Jim Meyering  <meyering@redhat.com>
40878
40879         inet_pton.c: use locale-independent tolower
40880         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40881         (inet_pton6): Use c_tolower rather than tolower.
40882         * modules/inet_pton (Depends-on): Add c-ctype.
40883
40884 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40885
40886         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40887         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40888
40889 2008-08-06  Jim Meyering  <meyering@redhat.com>
40890
40891         * modules/inet_pton (License): Relicense under LGPLv2+.
40892
40893 2008-08-03  Bruno Haible  <bruno@clisp.org>
40894
40895         Additional non-aborting API for lock and tls.
40896         * lib/lock.h: Include <errno.h>.
40897         (glthread_lock_init): New macro/function.
40898         (gl_lock_init): Define as wrapper around glthread_lock_init.
40899         (glthread_lock_lock): New macro/function.
40900         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40901         (glthread_lock_unlock): New macro/function.
40902         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40903         (glthread_lock_destroy): New macro/function.
40904         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40905         (glthread_rwlock_init): New macro/function.
40906         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40907         (glthread_rwlock_rdlock): New macro/function.
40908         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40909         (glthread_rwlock_wrlock): New macro/function.
40910         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40911         (glthread_rwlock_unlock): New macro/function.
40912         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40913         (glthread_rwlock_destroy): New macro/function.
40914         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40915         (glthread_recursive_lock_init): New macro/function.
40916         (gl_recursive_lock_init): Define as wrapper around
40917         glthread_recursive_lock_init.
40918         (glthread_recursive_lock_lock): New macro/function.
40919         (gl_recursive_lock_lock): Define as wrapper around
40920         glthread_recursive_lock_lock.
40921         (glthread_recursive_lock_unlock): New macro/function.
40922         (gl_recursive_lock_unlock): Define as wrapper around
40923         glthread_recursive_lock_unlock.
40924         (glthread_recursive_lock_destroy): New macro/function.
40925         (gl_recursive_lock_destroy): Define as wrapper around
40926         glthread_recursive_lock_destroy.
40927         (glthread_once): New macro/function.
40928         (gl_once): Define as wrapper around glthread_once.
40929         Update function declarations.
40930         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40931         glthread_rwlock_init. Return error code.
40932         (glthread_rwlock_rdlock_multithreaded): Renamed from
40933         glthread_rwlock_rdlock. Return error code.
40934         (glthread_rwlock_wrlock_multithreaded): Renamed from
40935         glthread_rwlock_wrlock. Return error code.
40936         (glthread_rwlock_unlock_multithreaded): Renamed from
40937         glthread_rwlock_unlock. Return error code.
40938         (glthread_rwlock_destroy_multithreaded): Renamed from
40939         glthread_rwlock_destroy. Return error code.
40940         (glthread_recursive_lock_init_multithreaded): Renamed from
40941         glthread_recursive_lock_init. Return error code.
40942         (glthread_recursive_lock_lock_multithreaded): Renamed from
40943         glthread_recursive_lock_lock. Return error code.
40944         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40945         glthread_recursive_lock_unlock. Return error code.
40946         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40947         glthread_recursive_lock_destroy. Return error code.
40948         (glthread_once_call): Make static.
40949         (glthread_once_multithreaded): Renamed from glthread_once.
40950         * lib/tls.h: Include <errno.h>.
40951         (glthread_tls_key_init): New macro/function.
40952         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40953         (glthread_tls_set): New macro/function.
40954         (gl_tls_set): Define as wrapper around glthread_tls_set.
40955         (glthread_tls_key_destroy): New macro/function.
40956         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40957         Update function declarations.
40958         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40959         glthread_tls_get.
40960         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40961
40962 2008-08-04  Eric Blake  <ebb9@byu.net>
40963
40964         gnumakefile: use space, not TAB, outside of targets
40965         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40966
40967 2008-08-02  Jim Meyering  <meyering@redhat.com>
40968
40969         getdate.y: avoid locale-dependent date parsing failure
40970         In Turkish locales, getdate would fail to recognize keywords
40971         containing a lowercase "i".  The solution is not to rely on
40972         locale-sensitive case-conversion.
40973         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40974         (lookup_word): Use c_toupper in place of toupper.
40975         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40976         Reported by Vefa Bicakci <bicave@superonline.com> in
40977         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40978         * modules/getdate (Depends-on): Add c-ctype.
40979
40980 2008-08-02  Bruno Haible  <bruno@clisp.org>
40981
40982         * gnulib-tool (func_import): When updating or creating a .gitignore
40983         file, prepend each added line with a slash, and ignore leading slashes
40984         from the existing lines.
40985         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40986
40987 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40988
40989         Portability fix for GNU make 3.79.1.
40990         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40991         versions do not understand.
40992
40993 2008-08-01  Bruno Haible  <bruno@clisp.org>
40994
40995         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40996         * tests/test-isnanf.h (zero): New variable.
40997         (main): Avoid literal -0.0f.
40998         * tests/test-isnand.h (zero): New variable.
40999         (main): Avoid literal -0.0.
41000         * tests/test-isnanl.h (zero): New variable.
41001         (main): Avoid literal -0.0L.
41002         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
41003         (test_float, test_double, test_long_double): Avoid literals -0.0f,
41004         -0.0, -0.0L.
41005         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
41006         (test_signbitd): Avoid literal -0.0.
41007         (test_signbitl): Avoid literal -0.0L.
41008         * tests/test-ceilf1.c (zero): New variable.
41009         (main): Avoid literal -0.0f.
41010         * tests/test-ceill.c (zero): New variable.
41011         (main): Avoid literal -0.0L.
41012         * tests/test-floorf1.c (zero): New variable.
41013         (main): Avoid literal -0.0f.
41014         * tests/test-floorl.c (zero): New variable.
41015         (main): Avoid literal -0.0L.
41016         * tests/test-roundf1.c (zero): New variable.
41017         (main): Avoid literal -0.0f.
41018         * tests/test-round1.c (zero): New variable.
41019         (main): Avoid literal -0.0.
41020         * tests/test-roundl.c (zero): New variable.
41021         (main): Avoid literal -0.0L.
41022         * tests/test-truncf1.c (zero): New variable.
41023         (main): Avoid literal -0.0f.
41024         * tests/test-trunc1.c (zero): New variable.
41025         (main): Avoid literal -0.0.
41026         * tests/test-truncl.c (zero): New variable.
41027         (main): Avoid literal -0.0L.
41028         * tests/test-frexp.c (zero): New variable.
41029         (main): Avoid literal -0.0.
41030         * tests/test-frexpl.c (zero): New variable.
41031         (main): Avoid literal -0.0L.
41032         * tests/test-ldexpl.c (zero): New variable.
41033         (main): Avoid literal -0.0L.
41034         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41035         (zerod, zerol): New variables.
41036         (test_function): Avoid literals -0.0, -0.0L.
41037         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41038         (zerod, zerol): New variables.
41039         (test_function): Avoid literals -0.0, -0.0L.
41040         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41041         (zerod, zerol): New variables.
41042         (test_function): Avoid literals -0.0, -0.0L.
41043         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41044         (zerod, zerol): New variables.
41045         (test_function): Avoid literals -0.0, -0.0L.
41046         * tests/test-strtod.c (zero): New variable.
41047         (main): Avoid literal -0.0.
41048         Reported by Jonathan C. Patschke <jp@centtech.com>.
41049
41050 2008-07-31  Jim Meyering  <meyering@redhat.com>
41051
41052         sha256.h: correct definition of SHA224_DIGEST_SIZE
41053         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
41054         Reported by Paulie Pena IV <paulie4@gmail.com>.
41055         Define as 224 / 8, rather than as a literal.
41056         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
41057         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
41058         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
41059
41060 2008-07-31  Bruno Haible  <bruno@clisp.org>
41061
41062         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
41063         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
41064         Reported by Jonathan Patschke <jp@centtech.com>.
41065
41066 2008-07-31  Bruno Haible  <bruno@clisp.org>
41067
41068         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
41069         Reported by Paolo Bonzini <bonzini@gnu.org>.
41070
41071 2008-07-30  Eric Blake  <ebb9@byu.net>
41072
41073         test-strtod: allow compilation without -lm
41074         * tests/test-strtod.c (main): Avoid link dependence on fabs.
41075         Reported by Dennis Clarke <blastwave@gmail.com>.
41076
41077 2008-07-28  Jim Meyering  <meyering@redhat.com>
41078
41079         bootstrap: work also when there are no .po files in po/
41080         * build-aux/bootstrap (update_po_files): Complete the change
41081         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
41082
41083 2008-07-27  Jim Meyering  <meyering@redhat.com>
41084
41085         * users.txt: Add zile.
41086
41087 2008-07-26  Ben Pfaff  <blp@gnu.org>
41088
41089         Add missing dependencies on new m4/exponent[fdl].m4 files.
41090         * modules/isnanf-nolibm: Add m4/exponentf.m4.
41091         * modules/isnand-nolibm: Add m4/exponentd.m4.
41092         * modules/isnanl-nolibm: Add m4/exponentl.m4.
41093         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
41094         m4/isnan[fdl].m4, because the macros actually used moved.
41095         Reported by Jim Meyering.
41096
41097 2008-07-14  Ben Pfaff  <blp@gnu.org>
41098
41099         Add isinf module.
41100         * lib/isinf.c: New file.
41101         * lib/math.in.h: Define isinf macro if we have decided to replace
41102         it.
41103         * m4/isinf.m4: New file.
41104         * m4/math_h.m4: Initialize and substitute variables for isinf
41105         module.
41106         * modules/isinf: New file.
41107         * modules/isinf-tests: New file.
41108         * modules/math: Add substitutions for new module.
41109         * tests/test-isinf.c: New file.
41110         * doc/posix-functions/isinf.texi: Mention new module.
41111         * MODULES.html.sh: Mention new module.
41112
41113 2008-07-14  Ben Pfaff  <blp@gnu.org>
41114
41115         Factor out some macros for use by additional modules.
41116         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
41117         exponentf.m4.
41118         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
41119         exponentd.m4.
41120         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
41121         file exponentl.m4.
41122         * m4/exponentf.m4: New file.
41123         * m4/exponentd.m4: New file.
41124         * m4/exponentl.m4: New file.
41125         * modules/isnanf: Use new file m4/exponentf.m4.
41126         * modules/isnand: Use new file m4/exponentd.m4.
41127         * modules/isnanl: Use new file m4/exponentl.m4.
41128
41129 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
41130
41131         mktime.c: normalize tp->tm_isdst value to -1/0/1.
41132         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
41133         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
41134         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
41135
41136         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
41137         readlink on platforms without PATH_MAX.
41138
41139 2008-07-21  Eric Blake  <ebb9@byu.net>
41140
41141         Warn, not fail, on stale version.
41142         * top/GNUmakefile (_curr-ver): Tone down previous patch.
41143
41144         Don't allow installation with stale devel version number.
41145         * top/GNUmakefile (_is-install-target): New macro.
41146         (_curr-ver): Forbid installation with stale version number.
41147
41148 2008-07-20  Bruno Haible  <bruno@clisp.org>
41149
41150         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
41151         TESTS_ENVIRONMENT.
41152         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
41153
41154 2008-07-20  Bruno Haible  <bruno@clisp.org>
41155
41156         * lib/c-stack.h (c_stack_action): Add documentation.
41157         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
41158
41159 2008-07-20  Bruno Haible  <bruno@clisp.org>
41160
41161         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
41162         * modules/readlink (License): Likewise.
41163
41164 2008-07-17  Eric Blake  <ebb9@byu.net>
41165
41166         * modules/c-stack (Link): Fix typo.
41167
41168         Make c-stack use libsigsegv, when available.
41169         * modules/c-stack (Depends-on): Add libsigsegv.
41170         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
41171         needed.
41172         * lib/c-stack.c (SIGSTKSZ): Define fallback.
41173         (segv_handler, overflow_handler, c_stack_action)
41174         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
41175         implementation when libsigsegv is available, but only when using
41176         the library is necessary.
41177         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
41178         comment, explaining why XSI check fails on Linux.
41179         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
41180         * tests/test-c-stack2.sh: Tweak skip message.
41181         * NEWS: Document new link-time requirements.
41182
41183 2008-07-16  Eric Blake  <ebb9@byu.net>
41184
41185         c-stack: Expose false positives when not using libsigsegv.
41186         * modules/c-stack-tests (Files): Expand test.
41187         * tests/test-c-stack.c (main): Add means to conditionally trigger
41188         non-overflow SIGSEGV.
41189         * tests/test-c-stack2.sh: New file.
41190
41191 2008-07-14  Bruno Haible  <bruno@clisp.org>
41192
41193         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
41194         Reported by Eric Blake.
41195
41196 2008-07-14  Sam Steingold  <sds@gnu.org>
41197             Bruno Haible  <bruno@clisp.org>
41198
41199         New module libsigsegv.
41200         * modules/libsigsegv: New file.
41201         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
41202         modifications.
41203         * MODULES.html.sh (Signal handling): New section.
41204
41205 2008-07-14  Bruno Haible  <bruno@clisp.org>
41206
41207         * modules/unictype/ctype-* (Description): Add the word "function".
41208         Improves the resulting doc in MODULES.html.
41209
41210 2008-07-12  Ben Pfaff  <blp@gnu.org>
41211
41212         Add longlong module.
41213         * modules/longlong: New file.
41214
41215 2008-07-12  Bruno Haible  <bruno@clisp.org>
41216
41217         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
41218         to empty.
41219
41220 2008-07-10  Ben Pfaff  <blp@gnu.org>
41221
41222         Add isnan module.
41223         * doc/posix-functions/isnan.texi: Mention new module.
41224         * lib/math.in.h: Define isnan macro if we have decided to replace
41225         it.
41226         * m4/isnan.m4: New file.
41227         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
41228         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
41229         also.
41230         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
41231         redundancy.
41232         * m4/math_h.m4: Initialize and substitute variables for isnan
41233         module.
41234         * modules/isnan: New file.
41235         * modules/isnan-tests: New file.
41236         * modules/math: Add substitutions for new module.
41237         * tests/test-isnan.c: New file.
41238         * MODULES.html.sh: Mention new module.
41239
41240 2008-07-10  Ben Pfaff  <blp@gnu.org>
41241
41242         Add isnanf module.
41243         * lib/isnanf.m4: New file.
41244         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
41245         (gl_HAVE_ISNANF_IN_LIBM): New macro.
41246         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
41247         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
41248         * modules/isnanf: New file.
41249         * modules/isnanf-tests: New file.
41250         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
41251         files.
41252         * tests/test-isnanf-nolibm.c: factored most of its contents into
41253         new file tests/test-isnanf.h.
41254         * tests/test-isnanf.h: New file.
41255         * tests/test-isnanf.c: New file.
41256         * MODULES.html.sh: Mention new module.
41257         * doc/glibc-functions/isnanf.texi: Mention new module.
41258
41259 2008-07-10  Ben Pfaff  <blp@gnu.org>
41260
41261         Add isnand module.
41262         * lib/isnand.h: New file.
41263         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
41264         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
41265         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
41266         functionality also.
41267         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
41268         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
41269         (gl_HAVE_ISNAND_IN_LIBM): New macro.
41270         * modules/isnand: New file.
41271         * modules/isnand-tests: New file.
41272         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
41273         files.
41274         * tests/test-isnand-nolibm.c: factored most of its contents into
41275         new file tests/test-isnand.h.
41276         * tests/test-isnand.h: New file.
41277         * tests/test-isnand.c: New file.
41278         * MODULES.html.sh: Mention new module.
41279
41280 2008-07-10  Ben Pfaff  <blp@gnu.org>
41281
41282         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
41283         * lib/isnand.h: Rename lib/isnand-nolibm.h.
41284         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
41285         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
41286         * modules/isnanf-nolibm: Update references to renamed files.
41287         * modules/isnand-nolibm: Likewise.
41288         * modules/isnanf-nolibm-tests: Likewise.
41289         * modules/isnand-nolibm-tests: Likewise.
41290         * lib/frexp.c: Likewise.
41291         * lib/isfinite.c: Likewise.
41292         * lib/signbitd.c: Likewise.
41293         * lib/signbitf.c: Likewise.
41294         * lib/vasnprintf.c: Likewise.
41295         * tests/test-ceilf1.c: Likewise.
41296         * tests/test-ceilf2.c: Likewise.
41297         * tests/test-floorf1.c: Likewise.
41298         * tests/test-floorf2.c: Likewise.
41299         * tests/test-frexp.c: Likewise.
41300         * tests/test-round1.c: Likewise.
41301         * tests/test-round2.c: Likewise.
41302         * tests/test-roundf1.c: Likewise.
41303         * tests/test-strtod.c: Likewise.
41304         * tests/test-trunc1.c: Likewise.
41305         * tests/test-trunc2.c: Likewise.
41306         * tests/test-truncf1.c: Likewise.
41307         * tests/test-truncf2.c: Likewise.
41308         * NEWS: Mention the renamed header files.
41309
41310 2008-07-11  Jim Meyering  <meyering@redhat.com>
41311
41312         vc-list-files: make the last-resort awk code more portable
41313         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
41314         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
41315         does not support it.
41316
41317 2008-07-10  Eric Blake  <ebb9@byu.net>
41318
41319         Work with tar's bootstrap.
41320         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
41321         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
41322         an m4 comment.
41323
41324 2008-07-09  Jim Meyering  <meyering@redhat.com>
41325
41326         posix-shell.m4: fix typo that made this test malfunction
41327         * m4/posix-shell.m4: Remove capitalization in variable name.
41328
41329 2008-07-08  Bruno Haible  <bruno@clisp.org>
41330
41331         * m4/onceonly.m4: Update comments.
41332         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41333
41334 2008-07-04  Jim Meyering  <meyering@redhat.com>
41335
41336         * users.txt: Add vc-dwim.
41337         (bison, coreutils): Use the gitweb URL.
41338
41339 2008-07-03  Jim Meyering  <meyering@redhat.com>
41340
41341         * users.txt: Add libffcall.  From Sam Steingold.
41342
41343 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
41344
41345         getdate.y: do not ignore TZ with relative day, month or year offset
41346         * lib/getdate.y (get_date): Move the tz-handling block to follow the
41347         relative-date-handling, since otherwise, the latter would clobber the
41348         sole output (an updated Start value) of the tz-handling block.
41349         * tests/test-getdate.c: Tests for the fix
41350
41351 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41352
41353         Recognize 'foo_LIBRARIES += libgnu.a'.
41354         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
41355         makefile snippet has already specified an installation location,
41356         also using '+='.
41357
41358 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
41359
41360         getdate.y: factor out common actions
41361         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
41362         Use them in place of open-coded actions.
41363
41364 2008-07-01  Simon Josefsson  <simon@josefsson.org>
41365
41366         Add self-test for getdate module.
41367         * modules/getdate-tests: New file.
41368         * tests/test-getdate.c: New file.
41369
41370 2008-06-29  Bruno Haible  <bruno@clisp.org>
41371
41372         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
41373         .gitignore.
41374         Reported by Sylvain Beucler <beuc@beuc.net>.
41375
41376 2008-06-29  Bruno Haible  <bruno@clisp.org>
41377
41378         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
41379         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
41380
41381 2008-06-29  Bruno Haible  <bruno@clisp.org>
41382
41383         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
41384         EXTRA_DIST.
41385         Reported by Sylvain Beucler <beuc@beuc.net>.
41386
41387 2008-06-26  Jim Meyering  <meyering@redhat.com>
41388
41389         make several modules depend on the "open" module
41390         This provides slightly increased consistency when opening-for-write
41391         the name of a non-directory spelled with a trailing slash.
41392         * modules/chdir-safer: Likewise.
41393         * modules/chown: Likewise.
41394         * modules/clean-temp: Likewise.
41395         * modules/copy-file: Likewise.
41396         * modules/fchdir: Likewise.
41397         * modules/fcntl-safer: Likewise.
41398         * modules/pipe: Likewise.
41399         * modules/utime: Likewise.
41400         Prompted by Eric Blake and Bruno Haible.
41401
41402 2008-06-24  Andreas Schwab  <schwab@suse.de>
41403
41404         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41405         literals can be used as initializers for global variables.
41406
41407 2008-06-23  Eric Blake  <ebb9@byu.net>
41408
41409         Make gnulib-cache.m4 easier to diff.
41410         * gnulib-tool (func_import): Allow newlines when reading cached
41411         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41412
41413 2008-06-23  Bruno Haible  <bruno@clisp.org>
41414
41415         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41416         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41417         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41418         m4/signalblocking.m4.
41419         (gl_PREREQ_SIGACTION): Don't invoke it.
41420         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41421         gl_PREREQ_SIG_HANDLER_H.
41422         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41423         Don't check for sigaction here.
41424
41425 2008-06-23  Bruno Haible  <bruno@clisp.org>
41426
41427         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41428         (install_handlers): Don't set the SA_RESETHAND flag.
41429
41430 2008-06-23  Bruno Haible  <bruno@clisp.org>
41431
41432         * m4/sigaction.m4: Comment fixes.
41433         * lib/signal.in.h: Likewise.
41434
41435 2008-06-23  Eric Blake  <ebb9@byu.net>
41436
41437         Fix typo.
41438         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41439
41440         Avoid SA_ namespace.
41441         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41442         Reported by Ralf Wildenhues.
41443
41444         Avoid test failure due to SA_RESTORER.
41445         * tests/test-sigaction.c (SA_MASK): New macro.
41446         (main): Avoid failing due to extension flags being set.
41447         Reported by Jim Meyering.
41448
41449         Revert use of sig-handler.h in sigprocmask.c.
41450         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41451         it requires the existence of struct sigaction.
41452         * lib/sigprocmask.c (handler_t): Restore typedef.
41453         (rpl_signal, old_handlers): Use local type.
41454
41455 2008-06-22  Bruno Haible  <bruno@clisp.org>
41456
41457         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41458         conditionally.
41459         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41460
41461 2008-06-22  Bruno Haible  <bruno@clisp.org>
41462
41463         * doc/posix-functions/siginterrupt.texi: Move note.
41464
41465         * lib/signal.in.h (SA_RESTART): New macro.
41466         * lib/sigaction.c: Update comment.
41467
41468         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41469
41470         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41471         (gl_PREREQ_SIGPROCMASK): Invoke it.
41472         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41473
41474         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41475
41476         * lib/sigprocmask.c: Update a comment.
41477
41478 2008-06-21  Eric Blake  <ebb9@byu.net>
41479
41480         Use sigaction module rather than signal().
41481         * modules/c-stack (Depends-on): Add sigaction.
41482         * modules/fatal-signal (Depends-on): Likewise.
41483         * modules/nanosleep (Depends-on): Likewise.
41484         * modules/sigprocmask (Files): Add sig-handler.h.
41485         * modules/sigaction (Files): Likewise.
41486         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41487         Eggert.
41488         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41489         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41490         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41491         (init_fatal_signals): Likewise.
41492         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41493         (siginterrupt): Delete fallback.
41494         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41495         instead.
41496         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41497         siginterrupt.
41498
41499         New module sigaction, for mingw.
41500         * modules/sigaction: New module...
41501         * modules/sigaction-tests: ...and its test.
41502         * m4/sigaction.m4: New file.
41503         * lib/sigaction.c: Likewise.
41504         * tests/test-sigaction.c: Likewise.
41505         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41506         * modules/signal (Makefile.am): Likewise.
41507         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41508         needed.
41509         * doc/posix-headers/signal.texi (signal.h): Mention provided
41510         types.
41511         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41512         that sigaction is preferable.
41513         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41514         module.
41515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41516         sigaction.
41517
41518         Improve robustness of sigprocmask by overriding signal.
41519         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41520         is in use.
41521         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41522         (SIGKILL, SIGSTOP): Provide fallbacks.
41523         (rpl_signal): Implement.
41524         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41525         signal can be called inside handlers.
41526
41527         Fix nanosleep module on mingw.
41528         * modules/nanosleep (Depends-on): Add sys_select.
41529         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41530
41531         Fix licensing of sigprocmask.
41532         * modules/raise (License): Relicense as LGPL.
41533
41534 2008-06-21  Bruno Haible  <bruno@clisp.org>
41535
41536         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41537         result if it contains question marks.
41538         Reported by Michael Geng <linux@michaelgeng.de>.
41539
41540 2008-06-19  Bruno Haible  <bruno@clisp.org>
41541
41542         Fix CVS-ism.
41543         * doc/gnulib.texi: Include updated-stamp.texi.
41544         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41545         (updated-stamp.texi): New rule.
41546         (gnulib.info): Depend on it.
41547         * doc/.gitignore: Add updated-stamp.texi.
41548         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41549
41550 2008-06-19  Bruno Haible  <bruno@clisp.org>
41551
41552         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41553         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41554
41555 2008-06-19  Eric Blake  <ebb9@byu.net>
41556
41557         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41558         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41559         Reported by Stepan Kasal.
41560
41561 2008-06-18  Bruno Haible  <bruno@clisp.org>
41562
41563         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41564         Reported by Eric Blake.
41565
41566 2008-06-18  Eric Blake  <ebb9@byu.net>
41567
41568         Work around cygwin 1.5.25 strsignal bug.
41569         * tests/test-strsignal.c: Allow for const char *.
41570         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41571
41572 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41573
41574         * users.txt: Update URL to article and add author/date
41575         information.
41576
41577 2008-06-17  Bruno Haible  <bruno@clisp.org>
41578
41579         New macro gl_DISABLE_THREADS.
41580         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41581         if the user did not pass --enable-threads or --disable-threads option.
41582         (gl_DISABLE_THREADS): New macro.
41583         Reported by Eric Blake <ebb9@byu.net>.
41584
41585 2008-06-17  Bruno Haible  <bruno@clisp.org>
41586
41587         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41588         when the macro ignores it.
41589         Based on a patch by Eric Blake <ebb9@byu.net>.
41590
41591 2008-06-17  Bruno Haible  <bruno@clisp.org>
41592
41593         * modules/tls (License): Change to LGPLv2+.
41594         Reported by Eric Blake.
41595
41596 2008-06-17  Eric Blake  <ebb9@byu.net>
41597
41598         Simplify c-stack prerequisites.
41599         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41600         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41601         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41602         check.
41603         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41604         <sys/resource.h>.
41605
41606         Move c-stack test into testsuite.
41607         * modules/c-stack-tests: New file.
41608         * lib/c-stack.c [DEBUG]: Move test program...
41609         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41610         fail test if sigaltstack is lacking.
41611         * tests/test-c-stack.sh: New driver file.
41612
41613 2008-06-16  Eric Blake  <ebb9@byu.net>
41614
41615         Use raise module consistently.
41616         * modules/fatal-signal (Depends-on): Add raise.
41617         * modules/sigprocmask (Depends-on): Likewise.
41618         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41619         * lib/sigprocmask.c (sigprocmask): Likewise.
41620         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41621         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41622
41623         Fix compliance bug in sigpending.
41624         * lib/sigprocmask.c (sigpending): Return pending array via
41625         parameter, not return value.
41626
41627 2008-06-14  Eric Blake  <ebb9@byu.net>
41628
41629         Improve obstack-printf test code.
41630         * tests/test-obstack-printf.c (test_function): Fix comment, and
41631         simplify usage of obstack_* in macros.  Add a test for coverage.
41632         Reported by Bruno Haible.
41633
41634 2008-06-14  Bruno Haible  <bruno@clisp.org>
41635
41636         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41637         array size as a constant, not as a const variable.
41638         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41639         AC_USE_SYSTEM_EXTENSIONS.
41640         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41641         Test whether the obstack_printf function actually exists.
41642         * modules/obstack-printf (Depends-on): Add extensions.
41643         (Include): Remove obstack.h.
41644         * modules/obstack-printf-posix (Depends-on): Add extensions.
41645         (Include): Remove obstack.h.
41646
41647 2008-06-13  Eric Blake  <ebb9@byu.net>
41648
41649         Add obstack-printf and obstack-printf-posix modules.
41650         * modules/obstack-printf: New file.
41651         * modules/obstack-printf-posix: Likewise.
41652         * MODULES.html.sh (Misc): Mention them.
41653         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41654         Likewise.
41655         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41656         Likewise.
41657         * modules/stdio (Makefile.am): Accomodate new modules.
41658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41659         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41660         Declare.
41661         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41662         functions.
41663         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41664         (gl_REPLACE_OBSTACK_PRINTF): New macros
41665         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41666         * tests/test-obstack-printf.c: New file.
41667         * modules/obstack-printf-tests: Likewise.
41668         * modules/obstack-printf-posix-tests: Likewise.
41669
41670 2008-06-11  Bruno Haible  <bruno@clisp.org>
41671
41672         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41673         * lib/open.c: Include errno.h.
41674         (open): Fail when attempting to write to a file that has a trailing
41675         slash.
41676         * tests/test-open.c (main): Test against trailing slash bug.
41677         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41678
41679 2008-06-10  Bruno Haible  <bruno@clisp.org>
41680
41681         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41682         for $? to work inside the trap command, with various /bin/sh-s.
41683         * tests/test-vc-list-files-cvs.sh: Likewise.
41684
41685 2008-06-10  Bruno Haible  <bruno@clisp.org>
41686
41687         * lib/acl-internal.h: Don't include gettext.h here.
41688         * lib/set-mode-acl.c: Include gettext.h here.
41689         * lib/copy-acl.c: Likewise.
41690
41691 2008-06-10  Bruno Haible  <bruno@clisp.org>
41692
41693         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41694         * lib/wait-process.c (wait_subprocess): Likewise.
41695         * lib/execute.h (execute): Add termsigp argument.
41696         * lib/execute.c (execute): Likewise.
41697         * lib/csharpcomp.c (compile_csharp_using_pnet,
41698         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41699         * lib/csharpexec.c (execute_csharp_using_pnet,
41700         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41701         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41702         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41703         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41704         is_jikes_present): Update.
41705         * lib/javaexec.c (execute_java_class): Update.
41706         * lib/javaversion.c (execute_and_read_line): Update.
41707         * NEWS: Document the changes.
41708         Reported by Eric Blake.
41709
41710 2008-06-10  Eric Blake  <ebb9@byu.net>
41711
41712         Add missing include.
41713         * tests/test-strstr.c (includes): Add <signal.h>.
41714         * tests/test-strcasestr.c (includes): Likewise.
41715         * tests/test-memmem.c (includes): Likewise.
41716
41717 2008-06-10  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/wait-process.c (wait_subprocess): Add an assertion.
41720
41721 2008-06-10  Bruno Haible  <bruno@clisp.org>
41722
41723         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41724
41725 2008-06-10  Bruno Haible  <bruno@clisp.org>
41726
41727         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41728         using alarm().
41729         * tests/test-strcasestr.c (main): Likewise.
41730         * tests/test-strstr.c (main): Likewise.
41731
41732 2008-06-09  Bruno Haible  <bruno@clisp.org>
41733
41734         Work around the Solaris 10 ACE ACLs ABI change.
41735         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41736         declare if ACL_NO_TRIVIAL is present.
41737         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41738         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41739         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41740         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41741         define if ACL_NO_TRIVIAL is present.
41742         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41743         and use the current ABI.
41744         (file_has_acl): Use same #if condition as elsewhere.
41745         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41746         in use, and use the current ABI.
41747         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41748         Reported by Jim Meyering.
41749
41750 2008-06-09  Eric Blake  <ebb9@byu.net>
41751
41752         Work around environments that (stupidly) ignore SIGALRM.
41753         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41754         before using alarm().
41755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41756         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41757         Reported by Ian Beckwith <ianb@erislabs.net>.
41758
41759         Produce autobuild blurb earlier in log.
41760         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41761
41762 2008-06-09  Jim Meyering  <meyering@redhat.com>
41763         and OndÅ™ej Vašík  <ovasik@redhat.com>
41764
41765         utimens.c: correct kernel bug work-around
41766         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41767         failure, not success, and the kernel bug we're trying to work
41768         around affects not just the utimensat call, but also the fallback
41769         futimens call.
41770         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41771         not success.
41772         [HAVE_FUTIMENS]: Use the same work-around, here.
41773
41774 2008-06-09  Jim Meyering  <meyering@redhat.com>
41775
41776         add more guards around definition of ACE_-related code
41777         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41778         ALLOW and ACE_OWNER are also defined.
41779
41780 2008-06-08  Bruno Haible  <bruno@clisp.org>
41781
41782         * lib/acl-internal.h: Add me as co-author.
41783         * lib/file-has-acl.c: Likewise.
41784         * lib/set-mode-acl.c: Likewise.
41785         * lib/copy-acl.c: Likewise.
41786
41787 2008-06-08  Bruno Haible  <bruno@clisp.org>
41788
41789         Add support for AIX ACLs.
41790         * lib/acl-internal.h (acl_nontrivial): New declaration.
41791         * lib/file-has-acl.c (acl_nontrivial): New function.
41792         (file_has_acl): Add implementation using AIX 4 ACL API.
41793         * lib/set-mode-acl.c (qset_acl): Likewise.
41794         * lib/copy-acl.c (qcopy_acl): Likewise.
41795
41796 2008-06-08  Bruno Haible  <bruno@clisp.org>
41797
41798         Add support for HP-UX ACLs.
41799         * lib/acl-internal.h (acl_nontrivial): New declaration.
41800         * lib/file-has-acl.c (acl_nontrivial): New function.
41801         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41802         * lib/set-mode-acl.c (qset_acl): Likewise.
41803         * lib/copy-acl.c (qcopy_acl): Likewise.
41804
41805 2008-06-08  Bruno Haible  <bruno@clisp.org>
41806
41807         Add support for Cygwin ACLs.
41808         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41809         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41810         the chmod_or_fchmod call.
41811         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41812
41813 2008-06-08  Bruno Haible  <bruno@clisp.org>
41814
41815         Fix bug with setuid modes in Solaris 10+ code.
41816         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41817         succeeded, when the mode contains some special bits.
41818
41819 2008-06-08  Bruno Haible  <bruno@clisp.org>
41820
41821         Add support for Solaris 7..10 ACLs.
41822         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41823         declarations.
41824         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41825         functions.
41826         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41827         * lib/set-mode-acl.c (qset_acl): Likewise.
41828         * lib/copy-acl.c (qcopy_acl): Likewise.
41829
41830 2008-06-08  Bruno Haible  <bruno@clisp.org>
41831
41832         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41833         declaration.
41834         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41835         (acl_access_nontrivial): Remove MacOS X case.
41836         (file_has_acl): Use acl_extended_nontrivial.
41837         * lib/copy-acl.c (qcopy_acl): Likewise.
41838
41839 2008-06-08  Bruno Haible  <bruno@clisp.org>
41840
41841         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41842
41843 2008-06-08  Jim Meyering  <meyering@redhat.com>
41844
41845         * modules/acl (Maintainer): Add Bruno Haible.
41846
41847 2008-06-07  Bruno Haible  <bruno@clisp.org>
41848
41849         Improve support for Tru64 ACLs.
41850         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41851         ACL on OSF/1.
41852
41853 2008-06-07  Bruno Haible  <bruno@clisp.org>
41854
41855         Add support for MacOS X ACLs.
41856         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41857         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41858         * lib/set-mode-acl.c (qset_acl): Likewise.
41859         * lib/copy-acl.c (qcopy_acl): Likewise.
41860
41861 2008-06-07  Bruno Haible  <bruno@clisp.org>
41862
41863         Fix memory leak introduced on 2008-05-22.
41864         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41865         use.
41866
41867 2008-06-07  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41870         to construct an empty ACL.
41871
41872 2008-06-07  Bruno Haible  <bruno@clisp.org>
41873
41874         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41875         precisely.
41876         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41877
41878 2008-06-07  Bruno Haible  <bruno@clisp.org>
41879
41880         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41881         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41882
41883 2008-06-07  Bruno Haible  <bruno@clisp.org>
41884
41885         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41886         regardless of POSIX.
41887         * doc/posix-functions/_longjmp.texi: Likewise.
41888         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41889         SystemV platform in this case.
41890
41891 2008-06-06  Eric Blake  <ebb9@byu.net>
41892
41893         Document abort() bugs.
41894         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41895
41896         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41897         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41898         sigsetjmp.
41899         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41900         siglongjmp, but only as a macro.
41901         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41902         is obsolete.
41903         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41904
41905         Tweak documentation to cover cygwin argz bugs.
41906         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41907         argz bug fix; no code change needed since no cygwin releases
41908         occurred between the last fix and the bug being tested.
41909         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41910         module and recently fixed cygwin bugs.
41911         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41912         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41913         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41914         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41915         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41916         Likewise.
41917         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41918         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41919         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41920         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41921         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41922         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41923         Likewise.
41924
41925         Avoid gcc warning on cygwin.
41926         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41927         !ACL_NO_TRIVIAL]: Avoid unused variable.
41928
41929 2008-06-05  Eric Blake  <ebb9@byu.net>
41930
41931         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41932         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41933         git-version-gen fails to come up with a version.
41934         Reported by Simon Josefsson.
41935
41936 2008-06-05  Jim Meyering  <meyering@redhat.com>
41937             Paul Eggert  <eggert@cs.ucla.edu>
41938
41939         utimens.c: work around a probable Linux kernel bug
41940         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41941         appears to be a kernel bug that causes utimensat to return 280
41942         instead of 0, indicating success.
41943
41944 2008-06-04  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41947         2008-06-01 commit.
41948
41949 2008-06-04  Bruno Haible  <bruno@clisp.org>
41950
41951         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41952         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41953         (file_has_acl): Use it. Save errno afterwards.
41954         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41955
41956 2008-06-03  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41959         draft code. Simplify #ifs.
41960         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41961         Put Solaris code after POSIX-draft code. Fix comments regarding
41962         Solaris 10, HP-UX. Mention Cygwin.
41963         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41964
41965 2008-06-03  Eric Blake  <ebb9@byu.net>
41966
41967         Provide fallback for older kernels.
41968         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41969         Provide runtime fallback if kernel lacks support.
41970         Reported by Mike Frysinger.
41971
41972 2008-06-02  Bruno Haible  <bruno@clisp.org>
41973
41974         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41975         it exists.
41976
41977 2008-06-02  Bruno Haible  <bruno@clisp.org>
41978
41979         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41980         * lib/copy-acl.c (qcopy_acl): Update comment.
41981
41982 2008-06-02  Bruno Haible  <bruno@clisp.org>
41983
41984         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41985         like ACL APIs.
41986
41987 2008-06-02  Bruno Haible  <bruno@clisp.org>
41988
41989         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41990         * tests/test-set-mode-acl.sh: Likewise.
41991         * tests/test-copy-acl.sh: Likewise.
41992         * tests/test-copy-file.sh: Likewise.
41993
41994 2008-06-02  Bruno Haible  <bruno@clisp.org>
41995
41996         * tests/test-file-has-acl.sh: Remove unused code.
41997
41998 2008-06-01  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
42001         (copy_acl): Just a wrapper around qcopy_acl that emits the error
42002         messages.
42003         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
42004
42005 2008-06-01  Bruno Haible  <bruno@clisp.org>
42006
42007         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
42008         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
42009         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
42010         APIs.
42011         * modules/acl-tests (configure.ac): Remove tests now contained in
42012         m4/acl.m4.
42013
42014 2008-06-02  Jim Meyering  <meyering@redhat.com>
42015
42016         announce-gen: use a better key-server host name
42017         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
42018         it may be more consistently reliable.  Suggested by Werner Koch
42019         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
42020
42021 2008-06-01  Bruno Haible  <bruno@clisp.org>
42022
42023         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
42024         Reported by Voroskoi Andras <voroskoi@gmail.com>.
42025
42026 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
42027
42028         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
42029
42030 2008-06-01  Bruno Haible  <bruno@clisp.org>
42031
42032         New ACL tests.
42033         * tests/test-file-has-acl.sh: New file.
42034         * tests/test-file-has-acl.c: New file.
42035         * tests/test-set-mode-acl.sh: New file.
42036         * tests/test-set-mode-acl.c: New file.
42037         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
42038         * tests/test-copy-acl.c: New file.
42039         * modules/acl-tests: New file, based on modules/copy-file-tests.
42040         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
42041         (Depends-on): Add acl-tests.
42042         (configure.ac): Remove checks.
42043         (Makefile.am): Don't create test-sameacls program here any more.
42044
42045 2008-06-01  Bruno Haible  <bruno@clisp.org>
42046
42047         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
42048         * tests/test-sameacls.c: Include progname.h.
42049         (main): Invoke set_program_name. Portability fixes for MacOS X,
42050         Solaris, HP-UX.
42051
42052 2008-06-01  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
42055         function.
42056         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
42057
42058 2008-06-01  Bruno Haible  <bruno@clisp.org>
42059
42060         * modules/rpmatch (Depends-on): Add strdup.
42061
42062 2008-06-01  Bruno Haible  <bruno@clisp.org>
42063
42064         * lib/pipe.c: Include unistd-safer.h.
42065         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
42066         * modules/pipe (Depends-on): Add unistd-safer.
42067
42068 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42069
42070         * modules/autobuild (configure.ac): Call AB_INIT.
42071
42072 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42073
42074         * tests/test-getaddrinfo.c: Don't print debug messages by default.
42075         Suggested by Bruno Haible <bruno@clisp.org>.
42076
42077 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42078
42079         * tests/test-base64.c: Cast size_t to unsigned long when invoking
42080         printf.  Use %lu instead of %d.  Reported by Bruno Haible
42081         <bruno@clisp.org>.
42082
42083 2008-05-29  Eric Blake  <ebb9@byu.net>
42084
42085         Prefer new POSIX 200x interfaces over futimesat.
42086         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
42087         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
42088         when available.
42089         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
42090
42091 2008-05-28  Bruno Haible  <bruno@clisp.org>
42092
42093         * modules/stpcpy (License): Change to LGPLv2+.
42094         Requested by David Lutterkort <dlutter@redhat.com>.
42095
42096 2008-05-27  Bruno Haible  <bruno@clisp.org>
42097
42098         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
42099         current mingw.
42100         Reported by Jose E. Marchesi <jemarch@gnu.org>.
42101
42102 2008-05-27  Bruno Haible  <bruno@clisp.org>
42103
42104         * modules/iconv_open (Link): New section, from module 'iconv'.
42105         * modules/striconv (Link): Likewise.
42106         * modules/striconveh (Link): Likewise.
42107         * modules/xstriconv (Link): Likewise.
42108         * modules/unicodeio (Link): Likewise.
42109         * modules/propername (Link): Likewise.
42110         Reported by Jim Meyering.
42111
42112 2008-05-26  Jim Meyering  <meyering@redhat.com>
42113
42114         sha256: do not artificially restrict buffer length to be < 2^32
42115         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
42116         uint32_t to size_t.
42117         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
42118         to match.
42119
42120         avoid unaligned access errors, e.g., on sparc
42121         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
42122         direct access through a possibly-unaligned uint64* pointer.
42123         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
42124         direct access through a possibly-unaligned uint32* pointer.
42125         Prompted by this patch from Tom "spot" Callaway:
42126         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
42127
42128         sha512.c: fix typo in comment
42129         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
42130
42131 2008-05-25  Bruno Haible  <bruno@clisp.org>
42132
42133         * lib/set-mode-acl.c: Renamed from lib/acl.c.
42134         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
42135         (Makefile.am): Update lib_SOURCES.
42136
42137 2008-05-25  Bruno Haible  <bruno@clisp.org>
42138
42139         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
42140
42141 2008-05-25  Jim Meyering  <meyering@redhat.com>
42142
42143         useless-if-before-free: freed expr may have white-space differences
42144         * build-aux/useless-if-before-free: Recognize cases in which the
42145         freed expression differs from the tested one in embedded white
42146         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
42147         $1 was used, so we can't make any regexp shy.  Improved tests now
42148         detect this.
42149
42150         useless-if-before-free: accept white space in the expression.
42151         * build-aux/useless-if-before-free: For now, any white space
42152         in the expression must be identical in the free argument.
42153
42154         useless-if-before-free: efficiency tweak
42155         * build-aux/useless-if-before-free: Make the expression-matching
42156         regexp "shy".
42157         Make the *outer* regexp shy, not the expr-matching one.
42158
42159         update code-in-comment to accept cast of free arg
42160         * build-aux/useless-if-before-free: Update regexp.
42161
42162 2008-05-25  Bruno Haible  <bruno@clisp.org>
42163
42164         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
42165         * modules/copy-file-tests (Files, Makefile.am): Update.
42166         * tests/test-copy-file.c (func_test_copy): Update.
42167
42168 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
42169
42170         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
42171
42172 2008-05-23  Bruno Haible  <bruno@clisp.org>
42173
42174         Improve support for ACLs on OSF/1.
42175         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
42176         Remove fallback for unknown flavors of ACLs.
42177
42178 2008-05-22  Bruno Haible  <bruno@clisp.org>
42179
42180         Add support for ACLs on OSF/1.
42181         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
42182         replacements.
42183         (acl_free_text): New macro fallback.
42184         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
42185         acl_free.
42186         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
42187         acl_free_text function. Require AC_C_INLINE.
42188
42189 2008-05-22  Bruno Haible  <bruno@clisp.org>
42190
42191         Make copy_acl work on MacOS X 10.5.
42192         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
42193         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42194         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
42195         If MODE_INSIDE_ACL, don't assume that every system has the same text
42196         representation for ACLs as FreeBSD.
42197         * lib/copy-acl.c (copy_acl): Add support for platforms with
42198         !MODE_INSIDE_ACL.
42199         * lib/file-has-acl.c (file_has_acl): Likewise.
42200         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
42201         FreeBSD, MacOS X, or IRIX, respectively.
42202
42203 2008-05-22  Bruno Haible  <bruno@clisp.org>
42204
42205         * lib/acl.h: Don't include <sys/acl.h>.
42206         (GETACLCNT): Move fallback to lib/acl-internal.h.
42207         * lib/acl-internal.h: Include <sys/acl.h> here.
42208         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
42209
42210 2008-05-22  Bruno Haible  <bruno@clisp.org>
42211
42212         Split off copy_acl function to separate file.
42213         * lib/copy-acl.c: New file, extracted from lib/acl.c.
42214         * lib/acl.c (copy_acl): Moved function to separate file.
42215         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
42216         * modules/acl (Files): Add lib/copy-acl.c.
42217         (Makefiles.am): Augment lib_SOURCES.
42218
42219 2008-05-22  Bruno Haible  <bruno@clisp.org>
42220
42221         * modules/copy-file-tests: New file.
42222         * tests/test-copy-file.sh: New file.
42223         * tests/test-copy-file.c: New file.
42224         * tests/test-copy-file-sameacls.c: New file.
42225
42226 2008-05-22  Eric Blake  <ebb9@byu.net>
42227
42228         Avoid gcc warning.
42229         * tests/test-memcmp.c (main): Pass NULL indirectly.
42230
42231 2008-05-21  Bruno Haible  <bruno@clisp.org>
42232
42233         Add reference doc about ACLs.
42234         * doc/acl-resources.txt: New file.
42235         * doc/acl-cygwin.txt: New file.
42236
42237 2008-05-21  Bruno Haible  <bruno@clisp.org>
42238
42239         Avoid one more warning from gcc.
42240         * lib/vasnprintf.c (IF_LINT): Update comments.
42241         (VASNPRINTF): Use it also for the 'prefix' array initializer.
42242
42243 2008-05-21  Jim Meyering  <meyering@redhat.com>
42244
42245         avoid a warning from gcc
42246         * lib/vasnprintf.c (IF_LINT): Define.
42247         (scale10_round_decimal_long_double):
42248         Use it to avoid a "may be used uninitialized" warning.
42249         (scale10_round_decimal_double): Likewise.
42250
42251 2008-05-21  Simon Josefsson  <simon@josefsson.org>
42252
42253         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
42254         declared.
42255
42256 2008-05-20  Bruno Haible  <bruno@clisp.org>
42257
42258         * tests/test-memcmp.c (main): Test also the sign of the result. Test
42259         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
42260
42261 2008-05-20  Simon Josefsson  <simon@josefsson.org>
42262
42263         * modules/memcmp-tests: New file.
42264         * tests/test-memcmp.c: New file.
42265
42266 2008-05-19  Bruno Haible  <bruno@clisp.org>
42267
42268         * modules/propername (Notice, configure.ac): Put quoted "..." into
42269         --keyword option.
42270         * lib/propername.h: Update comments accordingly.
42271         Reported by Eric Blake.
42272
42273 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
42274
42275         * modules/getpass-gnu (Depends-on): Add fseeko.
42276
42277 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42278
42279         * modules/base64-tests: New file.
42280
42281 2008-05-19  Bo Borgerson <gigabo@gmail.com>
42282
42283         * lib/base64.c (base64_decode_ctx): If a decode context structure
42284         was passed in use it to ignore newlines.  If a context structure
42285         was _not_ passed in, continue to treat newlines as garbage (this
42286         is the historical behavior).  Formerly base64_decode.
42287         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42288         takes a decode context structure.
42289         * lib/base64.h (base64_decode): Macro for four-argument calls.
42290         (base64_decode_alloc): Likewise.
42291         * lib/base64.c (base64_decode_ctx): If a decode context structure
42292         was passed in use it to ignore newlines.  If a context structure
42293         was _not_ passed in, continue to treat newlines as garbage (this
42294         is the historical behavior).  Formerly base64_decode.
42295         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42296         takes a decode context structure.
42297         * lib/base64.h (base64_decode): Macro for four-argument calls.
42298         (base64_decode_alloc): Likewise.
42299
42300 2008-05-19  Jim Meyering  <meyering@redhat.com>
42301
42302         avoid a warning from gcc
42303         * lib/trim.c (IF_LINT): Define.
42304         (trim2): Use it to avoid a "may be used uninitialized" warning.
42305
42306         Fix doc typo.
42307         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
42308
42309 2008-05-19  Bruno Haible  <bruno@clisp.org>
42310
42311         * doc/glibc-functions/getpass.texi: Document limits of other
42312         implementations.
42313
42314 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42315             Bruno Haible <bruno@clisp.org>
42316
42317         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
42318
42319 2008-05-18  Bruno Haible  <bruno@clisp.org>
42320
42321         * modules/propername: New file, from GNU gettext.
42322         * lib/propername.h: New file, from GNU gettext.
42323         * lib/propername.c: New file, from GNU gettext.
42324         * MODULES.html.sh (Internationalization functions): Add propername.
42325
42326 2008-05-16  Jim Meyering  <meyering@redhat.com>
42327             Bruno Haible  <bruno@clisp.org>
42328
42329         Avoid some warnings from "gcc -Wshadow".
42330         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
42331
42332 2008-05-15  Eric Blake  <ebb9@byu.net>
42333
42334         Extend previous patch to cygwin 1.7.0.
42335         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
42336         fast implementation in cygwin >= 1.7.0.
42337         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42339
42340 2008-05-15  Bruno Haible  <bruno@clisp.org>
42341
42342         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
42343         implementation in glibc >= 2.9.
42344         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42346
42347 2008-05-15  Bruno Haible  <bruno@clisp.org>
42348
42349         * MODULES.html.sh (Internationalization functions): Remove linebreak.
42350         (Unicode string functions): Add unilbrk/*.
42351         Reported by Karl Berry.
42352
42353 2008-05-15  Eric Blake  <ebb9@byu.net>
42354
42355         Fix violation of <stdbool.h> replacement in regex.
42356         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
42357         * lib/regexec.c (re_search_internal): Likewise.
42358         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
42359
42360 2008-05-15  Jim Meyering  <meyering@redhat.com>
42361
42362         avoid distracting test output when git or cvs is not found
42363         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
42364         * tests/test-vc-list-files-git.sh: Likewise.
42365
42366 2008-05-15  Eric Blake  <ebb9@byu.net>
42367
42368         Glibc finally accepted the memmem speedup code, bugzilla #5514.
42369         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
42370         glibc version.
42371         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42372         * doc/posix-functions/strstr.texi (strstr): Likewise.
42373         * lib/str-two-way.h (MAX): Sychronize with glibc.
42374
42375 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
42376
42377         * lib/regcomp.c (optimize_utf8): Add a note on why we test
42378         opr.ctx_type.
42379         (calc_first): Initialize constraint field.
42380         (duplicate_node_closure): Use it instead of special casing ANCHORS.
42381         Fix grammar.
42382         (duplicate_node): Merge constraint field for all node types.
42383         (calc_eclosure_iter): Look at constraint field for all node types.
42384         * lib/regex_internal.c (create_cd_newstate): Don't look at
42385         opr.ctx_type.
42386
42387 2008-05-14  Bruno Haible  <bruno@clisp.org>
42388
42389         Help GCC to do better code generation.
42390         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
42391         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42392         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
42393         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
42394         Declare with attribute 'malloc' if supported.
42395
42396 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
42397
42398         use "echo STR|wc -c" rather than unportable "expr length STR"
42399         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
42400         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
42401
42402 2008-05-14  Jim Meyering  <meyering@redhat.com>
42403
42404         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42405         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42406         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42407         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42408         via Collin Lasse.
42409
42410 2008-05-14  Eric Blake  <ebb9@byu.net>
42411
42412         Avoid quadratic growth in gl_LIBSOURCES.
42413         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42414         Suggested by Bruno Haible.
42415
42416         Test xmemdup0.
42417         * modules/xmemdup0-tests: New file.
42418         * tests/test-xmemdup0.c: Likewise.
42419
42420 2008-05-13  Eric Blake  <ebb9@byu.net>
42421
42422         Split xmemdup0 into its own module.
42423         * modules/xmemdup0: New file.
42424         * lib/xmemdup0.h: Likewise.
42425         * lib/xmemdup0.c: Likewise.
42426         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42427         * lib/xalloc.h (xmemdup0): Remove.
42428         * lib/xmalloc.c (xmemdup0): Likewise.
42429
42430 2008-05-13  Eric Blake  <ebb9@byu.net>
42431             Bruno Haible  <bruno@clisp.org>
42432
42433         Reduce number of forks required during autoconf.
42434         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42435         and gl_LIBSOURCES_DIR.
42436         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42437         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42438         m4_syscmd per file.
42439         <m4_foreach_w>: Move...
42440         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42441
42442 2008-05-13  Eric Blake  <ebb9@byu.net>
42443
42444         * gnulib-tool: Fix various comment typos.
42445
42446 2008-05-12  Bruno Haible  <bruno@clisp.org>
42447
42448         Tailor the linebreaking algorithm.
42449         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42450
42451 2008-05-12  Bruno Haible  <bruno@clisp.org>
42452
42453         Update to Unicode 5.0.0.
42454         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42455         LBP_JV, LBP_JT. Redistribute values.
42456         (unilbrk_table): Change size.
42457         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42458         Unicode TR#14 rev. 22.
42459         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42460         LBP_JV, LBP_JT. Redistribute values.
42461         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42462         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42463         Update.
42464         * lib/unilbrk/lbrkprop1.h: Regenerated.
42465         * lib/unilbrk/lbrkprop2.h: Regenerated.
42466         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42467         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42468         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42469         Likewise.
42470         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42471         Likewise.
42472         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42473         result.
42474         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42475         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42476         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42477         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42478         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42479         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42480
42481 2008-05-11  Bruno Haible  <bruno@clisp.org>
42482
42483         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42484
42485 2008-05-11  Bruno Haible  <bruno@clisp.org>
42486
42487         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42488         * modules/unilbrk/gen-lbrk: New file.
42489
42490 2008-05-11  Bruno Haible  <bruno@clisp.org>
42491
42492         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42493         * m4/sha512.m4 (gl_SHA512): Likewise.
42494
42495 2008-05-11  Jim Meyering  <meyering@redhat.com>
42496
42497         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42498         * modules/crypto/sha256: New file.
42499         * modules/crypto/sha512: Likewise.
42500         * lib/sha256.c: Likewise.
42501         * lib/sha256.h: Likewise.
42502         * lib/sha512.c: Likewise.
42503         * lib/sha512.h: Likewise.
42504         * lib/u64.h: Likewise.
42505         * m4/sha256.m4: Likewise.
42506         * m4/sha512.m4: Likewise.
42507         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42508
42509 2008-05-10  Bruno Haible  <bruno@clisp.org>
42510
42511         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42512         (Input/Output <stdio.h>): Add xprintf.
42513         (Signal handling <signal.h>): Add strsignal.
42514         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42515         (Core language properties): Add func.
42516         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42517         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42518         strings.
42519         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42520         (Input/output): New section.
42521         (File system functions): Add openat-die, stat-macros.
42522         (Networking functions): Add sockets.
42523         (Unicode string functions): Add unictype/*.
42524         (Support for building libraries and executables): Add gperf.
42525         (Support for building documentation): Add agpl-3.0.
42526         (Misc): Add nocrash.
42527
42528 2008-05-10  Bruno Haible  <bruno@clisp.org>
42529
42530         * modules/unictype/gen-ctype: New file.
42531
42532 2008-05-10  Jim Meyering  <meyering@redhat.com>
42533
42534         Make chdir-safer.c more efficient on a system with no symlinks.
42535         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42536         also if ELOOP is zero.  Suggested by Bruno Haible.
42537
42538         Make chdir-safer.c slightly safer.
42539         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42540         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42541
42542         Avoid compile failure on systems without ELOOP (like mingw).
42543         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42544         Reported by Bruno Haible.
42545
42546 2008-05-10  Bruno Haible  <bruno@clisp.org>
42547
42548         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42549         (is_utf8_encoding): Use a case-insensitive comparison.
42550         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42551         streq.
42552
42553 2008-05-10  Bruno Haible  <bruno@clisp.org>
42554
42555         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42556         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42557         * lib/unilbrk/ulc-common.h (iconv_string_length,
42558         iconv_string_keeping_offsets): Remove declarations.
42559         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42560         Don't include <iconv.h>, streq.h, xsize.h.
42561         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42562         conversion.
42563         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42564         <iconv.h>, streq.h, xsize.h.
42565         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42566         conversion.
42567         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42568         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42569         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42570         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42571
42572 2008-05-10  Bruno Haible  <bruno@clisp.org>
42573
42574         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42575         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42576
42577         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42578         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42579
42580         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42581         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42582
42583         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42584         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42585
42586         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42587         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42588
42589         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42590         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42591
42592         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42593         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42594
42595         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42596         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42597
42598 2008-05-10  Bruno Haible  <bruno@clisp.org>
42599
42600         Split up 'linebreak' module.
42601         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42602         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42603         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42604         modifications.
42605         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42606         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42607         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42608         lib/linebreak.c.
42609         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42610         lib/linebreak.c.
42611         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42612         lib/linebreak.c.
42613         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42614         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42615         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42616         lib/linebreak.c.
42617         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42618         lib/linebreak.c.
42619         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42620         lib/linebreak.c.
42621         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42622         lib/linebreak.c.
42623         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42624         lib/linebreak.c.
42625         * modules/unilbrk/base: New file.
42626         * modules/unilbrk/tables: New file.
42627         * modules/unilbrk/u8-possible-linebreaks: New file.
42628         * modules/unilbrk/u16-possible-linebreaks: New file.
42629         * modules/unilbrk/u32-possible-linebreaks: New file.
42630         * modules/unilbrk/ulc-common: New file.
42631         * modules/unilbrk/ulc-possible-linebreaks: New file.
42632         * modules/unilbrk/u8-width-linebreaks: New file.
42633         * modules/unilbrk/u16-width-linebreaks: New file.
42634         * modules/unilbrk/u32-width-linebreaks: New file.
42635         * modules/unilbrk/ulc-width-linebreaks: New file.
42636         * lib/linebreak.h: Remove file.
42637         * lib/linebreak.c: Remove file.
42638         * m4/linebreak.m4: Remove file.
42639         * modules/linebreak: Remove file.
42640         * NEWS: Mention the changes.
42641
42642 2008-05-09  Eric Blake  <ebb9@byu.net>
42643
42644         Add xmemdup0.
42645         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42646         implementation.
42647         * lib/xmalloc.c (xmemdup0): New C implementation.
42648
42649 2008-05-08  Bruno Haible  <bruno@clisp.org>
42650
42651         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42652
42653 2008-05-07  Eric Blake  <ebb9@byu.net>
42654
42655         Support cross-compilation of <wctype.h>.
42656         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42657         AC_CACHE_CHECK.
42658
42659 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42660
42661         * build-aux/vc-list-files: Add support for bzr.
42662
42663 2008-05-03  Jim Meyering  <meyering@redhat.com>
42664
42665         avoid failed assertion with tight malloc
42666         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42667
42668 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42669
42670         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42671         are needed from arpa/inet.h.
42672         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42673         Reported by Bruno Haible.
42674
42675 2008-05-02  Jim Meyering  <meyering@redhat.com>
42676
42677         avoid compilation error on FreeBSD 6
42678         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42679
42680 2008-05-01  Jim Meyering  <meyering@redhat.com>
42681
42682         useless-if-before-free: correct --help's exit status description
42683         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42684         for one or more matches, etc.  Reported by Bruno Haible.
42685
42686         vc-list-files: make the stand-alone gnulib test work
42687         * modules/vc-list-files-tests (configure.ac):
42688         Define and AC_SUBST abs_aux_dir.
42689         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42690         $(abs_top_srcdir) to each script and having each of them
42691         duplicate the work of setting PATH, set PATH here, using
42692         the new variable, abs_aux_dir instead.
42693         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42694         * tests/test-vc-list-files-git.sh: Likewise.
42695         Reported by Bruno Haible.
42696
42697 2008-05-01  Bruno Haible  <bruno@clisp.org>
42698
42699         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42700         reallocation. Rename 'done' to 'found_delimiter'.
42701
42702 2008-05-01  Jim Meyering  <meyering@redhat.com>
42703
42704         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42705         * build-aux/vc-list-files: Use `...`, not $(...).
42706
42707 2008-04-30  Jim Meyering  <meyering@redhat.com>
42708
42709         add tests for vc-list-files
42710         * modules/vc-list-files-tests: New module.
42711         * tests/test-vc-list-files-cvs.sh: New file.
42712         * tests/test-vc-list-files-git.sh: New file.
42713
42714         avoid a warning from gcc
42715         * lib/getndelim2.c (IF_LINT): Define.
42716         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42717
42718         vc-list-files: work properly with build-aux/cvsu, too
42719         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42720         to all cvs-based clauses.
42721
42722         vc-list-files: work properly in the CVS+awk case, too
42723         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42724
42725         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42726         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42727         take more than one file argument, so .  Add quotes, just in case $dir
42728         ever contains a shell meta-character.  Prompted by Soren Hansen in
42729         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42730
42731 2008-04-29  Eric Blake  <ebb9@byu.net>
42732
42733         Optimize getndelim2 to use block operations when possible.
42734         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42735         freadseek, and memchr2.
42736         * lib/getndelim2.c (getndelim2): Use them for block reads.
42737
42738 2008-04-29  Bruno Haible  <bruno@clisp.org>
42739
42740         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42741         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42742         * modules/inet_ntop (Depends-on): Add extensions.
42743         * modules/inet_pton (Depends-on): Likewise.
42744         Reported by Simon Josefsson.
42745
42746 2008-04-29  Jim Meyering  <meyering@redhat.com>
42747
42748         When the is more than one match in a block, match all of them.
42749         * build-aux/useless-if-before-free: Iterate through each block
42750         until there are no more matches.
42751
42752         Fix broken useless-if-before-free script.
42753         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42754         the expression to match cast of argument to free-like function.
42755
42756 2008-04-29  Eric Blake  <ebb9@byu.net>
42757
42758         Use new header.
42759         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42760
42761 2008-04-29  Jim Meyering  <meyering@redhat.com>
42762
42763         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42764         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42765         by gnulib to exist and to declare e.g., inet_ntop.
42766         Don't include "inet_ntop.h", now removed.
42767
42768         * m4/arpa_inet_h.m4: Remove trailing blanks.
42769
42770 2008-04-29  Eric Blake  <ebb9@byu.net>
42771
42772         Silence valgrind on safe reads beyond potential array bounds.
42773         * lib/rawmemchr.valgrind: New file.
42774         * lib/strchrnul.valgrind: Likewise.
42775         * modules/rawmemchr (Files): Distribute new file.
42776         * modules/strchrnul (Files): Likewise.
42777         Suggested by Bruno Haible.
42778
42779 2008-04-29  Bruno Haible  <bruno@clisp.org>
42780
42781         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42782         (inet_ntop, inet_pton): Change portability warning's wording.
42783         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42784         Invoke gl_CHECK_NEXT_HEADERS.
42785         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42786         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42787         set ARPA_INET_H.
42788         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42789         * modules/arpa_inet (Description): No longer only for systems that
42790         lack it.
42791         (Depends-on): Add include_next.
42792         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42793         HAVE_ARPA_INET_H.
42794
42795 2008-04-29  Jim Meyering  <meyering@redhat.com>
42796
42797         * modules/mkdir (License): Re-license as LGPLv2+.
42798
42799 2008-04-29  Bruno Haible  <bruno@clisp.org>
42800
42801         * modules/rawmemchr (Maintainer): Set to Eric.
42802         * modules/strchrnul (Maintainer): Likewise.
42803
42804 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42805
42806         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42807         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42808
42809         * modules/arpa_inet (arpa/inet.h): Use them.
42810
42811 2008-04-28  Eric Blake  <ebb9@byu.net>
42812
42813         Test getndelim2.
42814         * modules/getndelim2-tests: New file.
42815         * tests/test-getndelim2.c: Likewise.
42816         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42817         stream.
42818         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42819
42820         * MODULES.html.sh: Document new module.
42821
42822 2008-04-20  Bruno Haible  <bruno@clisp.org>
42823
42824         * lib/c-stack.c (die): Use raise.
42825         * modules/c-stack (Depends-on): Add raise.
42826
42827 2008-04-28  Bruno Haible  <bruno@clisp.org>
42828
42829         Expect rpmatch to be declared.
42830         * lib/yesno.c (rpmatch): Remove declaration.
42831
42832         Declare rpmatch.
42833         * lib/stdlib.in.h (rpmatch): New declaration.
42834         * lib/rpmatch.c: Include <stdlib.h> first.
42835         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42836         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42838         HAVE_RPMATCH.
42839         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42840         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42841         (Include): Set to <stdlib.h>.
42842         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42843         HAVE_RPMATCH.
42844         * NEWS: Document the change.
42845
42846 2008-04-28  Bruno Haible  <bruno@clisp.org>
42847
42848         Change rpmatch to use nl_langinfo when appropriate.
42849         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42850         (N_): New macro.
42851         (localized_pattern): New function/macro.
42852         (try): Remove match, nomatch arguments. Copy the pattern into safe
42853         memory before caching it.
42854         (rpmatch): Use localized_pattern. Add translator comments.
42855         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42856         Suggested by Eric Blake.
42857         * modules/rpmatch (Depends-on): Add stdbool.
42858
42859 2008-04-28  Eric Blake  <ebb9@byu.net>
42860
42861         Add rawmemchr module, matching glibc.
42862         * modules/string (Makefile.am): New indicator.
42863         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42864         * lib/string.in.h (rawmemchr): Declare when appropriate.
42865         * modules/rawmemchr: New file.
42866         * m4/rawmemchr.m4: Likewise.
42867         * lib/rawmemchr.c: Likewise.
42868         * modules/rawmemchr-tests: Likewise.
42869         * tests/test-rawmemchr.c: Likewise.
42870         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42871         module.
42872         * modules/strchrnul (Depends-on): Add rawmemchr.
42873         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42874
42875         Whitespace cleanup.
42876         * tests/test-strchrnul.c: Reindent.
42877         * lib/strchrnul.c: Likewise.
42878
42879         Optimize and test strchrnul.
42880         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42881         * modules/strchrnul-tests: New file.
42882         * tests/test-strchrnul.c: Likewise.
42883
42884         Remove intprops dependency.
42885         * modules/memchr (Depends-on): Remove intprops.
42886         * modules/memrchr (Depends-on): Likewise.
42887         * modules/memchr2 (Depends-on): Likewise.
42888         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42889         * lib/memrchr.c (__memrchr): Likewise.
42890         * lib/memrchr2.c (memchr2): Likewise.
42891         Reported by Simon Josefsson.
42892
42893 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42894
42895         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42896         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42897
42898 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42899
42900         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42901
42902         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42903
42904         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42905
42906         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42907         declarations.
42908         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42909
42910         * m4/inet_pton.m4: Don't check for header files.
42911
42912         * m4/inet_ntop.m4: Don't check for header files.
42913
42914 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42915
42916         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42917         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42918         trigger for cygwin).
42919         Reported by Bruno Haible  <bruno@clisp.org>.
42920
42921 2008-04-28  Bruno Haible  <bruno@clisp.org>
42922
42923         * doc/posix-functions/strdup.texi: Mention mingw problem.
42924
42925 2008-04-27  Bruno Haible  <bruno@clisp.org>
42926
42927         * modules/stat-time-tests (Depends-on): Add sleep.
42928         * tests/test-stat-time.c (force_unlink): New function.
42929         (cleanup): Use it.
42930         (test_mtime): Remove the ctime related tests.
42931         (test_ctime): New function, containing the ctime related tests.
42932         (main): Call test_ctime, except on native Windows platforms.
42933
42934 2008-04-27  Bruno Haible  <bruno@clisp.org>
42935
42936         * lib/rpmatch.c (rpmatch): Add some comments.
42937         Reported by James Youngman <jay@gnu.org>.
42938
42939 2008-04-27  Bruno Haible  <bruno@clisp.org>
42940
42941         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42942         quiet NaNs.
42943
42944 2008-04-27  Bruno Haible  <bruno@clisp.org>
42945
42946         Make test-yesno.sh work on mingw.
42947         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42948         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42949         (main): Set stdin to binary mode.
42950         * modules/yesno-tests (Depends-on): Add binary-io.
42951
42952 2008-04-27  Bruno Haible  <bruno@clisp.org>
42953
42954         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42955         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42956         argument that lie outside the IEEE 854 domain.
42957         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42958         (gl_ISFINITE): Use it.
42959         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42960
42961 2008-04-27  Bruno Haible  <bruno@clisp.org>
42962
42963         Allow local renaming in config.h.
42964         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42965
42966 2008-04-27  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/memchr.c (__memchr): Change type of 'i'.
42969         * lib/memchr2.c (memchr2): Likewise.
42970
42971 2008-04-26  Eric Blake  <ebb9@byu.net>
42972         and Bruno Haible  <bruno@clisp.org>
42973
42974         Optimize and test memrchr.
42975         * modules/memrchr (Depends-on): Add intprops.
42976         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42977         * modules/memrchr-tests: New file.
42978         * tests/test-memrchr.c: New file.
42979
42980 2008-04-26  Bruno Haible  <bruno@clisp.org>
42981
42982         Add tentative support for DragonFly BSD.
42983         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42984         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42985         fp.
42986         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42987         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42988         * lib/fpurge.c (fpurge): Likewise.
42989         * lib/freadable.c (freaadable): Likewise.
42990         * lib/freadahead.c (freadahead): Likewise.
42991         * lib/freading.c (freading): Likewise.
42992         * lib/freadptr.c (freadptr): Likewise.
42993         * lib/freadseek.c (freadptrinc): Likewise.
42994         * lib/fseeko.c (fseeko): Likewise.
42995         * lib/fseterr.c (fseterr): Likewise.
42996         * lib/fwritable.c (fwritable): Likewise.
42997         * lib/fwriting.c (fwriting): Likewise.
42998
42999 2008-04-26  Bruno Haible  <bruno@clisp.org>
43000
43001         * lib/stdio-impl.h: New file.
43002         * lib/fbufmode.c: Include stdio-impl.h.
43003         (fbufmode): Use fp_, remove redundant #defines.
43004         * lib/fflush.c: Include stdio-impl.h.
43005         (clear_ungetc_buffer): Remove redundant #defines.
43006         * lib/fpurge.c: Include stdio-impl.h.
43007         (fpurge): Remove redundant #defines.
43008         * lib/freadable.c: Include stdio-impl.h.
43009         (freadable): Remove redundant #defines.
43010         * lib/freadahead.c: Include stdio-impl.h.
43011         (freadahead): Remove redundant #defines.
43012         * lib/freading.c: Include stdio-impl.h.
43013         (freading): Remove redundant #defines.
43014         * lib/freadptr.c: Include stdio-impl.h.
43015         (freadptr): Remove redundant #defines.
43016         * lib/freadseek.c: Include stdio-impl.h.
43017         (freadptrinc): Remove redundant #defines.
43018         * lib/fseeko.c: Include stdio-impl.h.
43019         (rpl_fseeko): Remove redundant #defines.
43020         * lib/fseterr.c: Include stdio-impl.h.
43021         (fseterr): Remove redundant #defines.
43022         * lib/fwritable.c: Include stdio-impl.h.
43023         (fwritable: Remove redundant #defines.
43024         * lib/fwriting.c: Include stdio-impl.h.
43025         (fwriting): Remove redundant #defines.
43026         * modules/fbufmode (Files): Add lib/stdio-impl.h.
43027         * modules/fflush (Files): Likewise.
43028         * modules/fpurge (Files): Likewise.
43029         * modules/freadable (Files): Likewise.
43030         * modules/freadahead (Files): Likewise.
43031         * modules/freading (Files): Likewise.
43032         * modules/freadptr (Files): Likewise.
43033         * modules/freadseek (Files): Likewise.
43034         * modules/fseeko (Files): Likewise.
43035         * modules/fseterr (Files): Likewise.
43036         * modules/fwritable (Files): Likewise.
43037         * modules/fwriting (Files): Likewise.
43038
43039 2008-04-26  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43042         restore_seek_optimization, update_fpos_cache): New functions, extracted
43043         from rpl_fflush.
43044         (rpl_fflush): Use them.
43045         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
43046         (gl_REPLACE_FFLUSH): Use it.
43047
43048 2008-04-26  Bruno Haible  <bruno@clisp.org>
43049
43050         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
43051         on Solaris.
43052         * tests/test-xstrtoimax.sh: Likewise.
43053         * tests/test-xstrtoumax.sh: Likewise.
43054         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43055
43056 2008-04-26  Bruno Haible  <bruno@clisp.org>
43057
43058         * modules/memchr-tests: New file.
43059         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
43060
43061 2008-04-26  Eric Blake  <ebb9@byu.net>
43062             Bruno Haible  <bruno@clisp.org>
43063
43064         * lib/memchr.c: Include intprops.h.
43065         (__memchr): Optimize parallel detection of matching bytes. Rename local
43066         variables. Add explanatory comments.
43067
43068 2008-04-26  Bruno Haible  <bruno@clisp.org>
43069
43070         Fix module 'memchr', broken since 2000-10-28.
43071         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
43072
43073 2008-04-26  Bruno Haible  <bruno@clisp.org>
43074
43075         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
43076         comments.
43077
43078 2008-04-25  Eric Blake  <ebb9@byu.net>
43079
43080         Use native fstatat on cygwin 1.7.0.
43081         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
43082         first.
43083
43084 2008-04-23  Eric Blake  <ebb9@byu.net>
43085
43086         Improve memchr2 performance.
43087         * lib/memchr2.c (memchr2): Further optimize parallel detection of
43088         NUL bytes.
43089         * modules/memchr2 (Depends-on): Use intprops.h.
43090
43091 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43092
43093         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
43094         an inline function instead of a CPP macro.  Patch by Ben Pfaff
43095         <blp@cs.stanford.edu>.
43096
43097 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43098
43099         * lib/arpa_inet.in.h: New file.
43100
43101         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
43102         (Makefile.am): Sed in substitute header file.
43103
43104         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
43105         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
43106
43107         * modules/inet_ntop (configure.ac): Use
43108         gl_ARPA_INET_MODULE_INDICATOR.
43109
43110         * modules/inet_pton (configure.ac): Use
43111         gl_ARPA_INET_MODULE_INDICATOR.
43112
43113 2008-04-22  Jim Meyering  <meyering@redhat.com>
43114
43115         * modules/verify (License): Re-license as LGPLv2+.
43116
43117 2008-04-22  Simon Josefsson  <simon@josefsson.org>
43118
43119         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
43120         parameter to void* as per POSIX standard (MinGW uses char*).
43121
43122 2008-04-21  Bruno Haible  <bruno@clisp.org>
43123
43124         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43125         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43126         Define to replacements if REPLACE_ISWCNTRL is 1.
43127         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
43128         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
43129         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
43130         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
43131         what it fixes.
43132         * doc/posix-functions/iswalpha.texi: Likewise.
43133         * doc/posix-functions/iswblank.texi: Likewise.
43134         * doc/posix-functions/iswcntrl.texi: Likewise.
43135         * doc/posix-functions/iswdigit.texi: Likewise.
43136         * doc/posix-functions/iswgraph.texi: Likewise.
43137         * doc/posix-functions/iswlower.texi: Likewise.
43138         * doc/posix-functions/iswprint.texi: Likewise.
43139         * doc/posix-functions/iswpunct.texi: Likewise.
43140         * doc/posix-functions/iswspace.texi: Likewise.
43141         * doc/posix-functions/iswupper.texi: Likewise.
43142         * doc/posix-functions/iswxdigit.texi: Likewise.
43143         Reported by Alain Guibert.
43144
43145 2008-04-21  Bruno Haible  <bruno@clisp.org>
43146
43147         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
43148         Patch by Alain Guibert.
43149
43150 2008-04-21  Bruno Haible  <bruno@clisp.org>
43151
43152         Fix test failures on mingw.
43153         * tests/test-xstrtol.c (print_no_progname): New function.
43154         (main): Install it in error_print_progname hook.
43155         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
43156         * tests/test-xstrtoimax.sh: Likewise.
43157         * tests/test-xstrtoumax.sh: Likewise.
43158
43159 2008-04-21  Bruno Haible  <bruno@clisp.org>
43160
43161         Fix test failure on mingw.
43162         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
43163
43164 2008-04-21  Bruno Haible  <bruno@clisp.org>
43165
43166         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
43167         Actually assign a value.
43168
43169 2008-04-20  Bruno Haible  <bruno@clisp.org>
43170
43171         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
43172         take 2.
43173         * lib/canonicalize.c (canonicalize_file_name): Elide if the
43174         'canonicalize-lgpl' module is also used.
43175         * lib/canonicalize-lgpl.c: Undo last change.
43176         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
43177
43178 2008-04-20  Bruno Haible  <bruno@clisp.org>
43179
43180         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
43181         config.h. Provide _mkdir based fallback for mingw.
43182         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
43183         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
43184         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
43185         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
43186         rather than defining mkdir in config.h.
43187         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
43188         (gl_SYS_STAT_H_DEFAULTS): New macro.
43189         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
43190         HAVE_IO_H any more.
43191         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
43192         HAVE_DECL_MKDIR and HAVE_IO_H.
43193
43194 2008-04-20  Bruno Haible  <bruno@clisp.org>
43195
43196         * lib/isapipe.c: Port to native Windows platforms.
43197
43198 2008-04-20  Bruno Haible  <bruno@clisp.org>
43199
43200         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
43201
43202 2008-04-21  Eric Blake  <ebb9@byu.net>
43203
43204         Work around preprocessors that don't handle UINTMAX_MAX.
43205         * lib/memchr2.c (memchr2): Avoid embedded #if.
43206         Reported by Alain Guibert, fix suggested by Bruno Haible.
43207
43208 2008-04-21  Simon Josefsson  <simon@josefsson.org>
43209
43210         * doc/posix-functions/strftime.texi (strftime): Explain better
43211         Windows incompatibility.  Suggested by Micah Cowan
43212         <micah@cowan.name>.
43213
43214 2008-04-20  Bruno Haible  <bruno@clisp.org>
43215
43216         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
43217         unistr/u8-mblen.
43218
43219 2008-04-20  Bruno Haible  <bruno@clisp.org>
43220
43221         Fix test failure on platforms with non-GNU iconv.
43222         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
43223         (U_TO_U8): Use it, rather than u16_to_u8.
43224         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
43225         units at the end of the input string.
43226         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
43227
43228 2008-04-20  Bruno Haible  <bruno@clisp.org>
43229
43230         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
43231         when the resulting length is 0.
43232         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
43233
43234 2008-04-20  Bruno Haible  <bruno@clisp.org>
43235
43236         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
43237         works.
43238         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
43239
43240 2008-04-20  Bruno Haible  <bruno@clisp.org>
43241
43242         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
43243         * modules/tsearch-tests (configure.ac): Test for initstate function.
43244
43245 2008-04-20  Bruno Haible  <bruno@clisp.org>
43246
43247         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
43248         for nlink_t if missing.
43249         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
43250
43251 2008-04-19  Bruno Haible  <bruno@clisp.org>
43252
43253         Work around snprintf bug on Linux libc5.
43254         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
43255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43256         gl_SNPRINTF_SIZE1.
43257         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43258         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
43259         that test failed.
43260         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43261         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
43262         * modules/snprintf (Files): Add m4/printf.m4.
43263         * modules/vsnprintf (Files): Likewise.
43264         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
43265         * doc/posix-functions/vsnprintf.texi: Likewise.
43266
43267 2008-04-19  Bruno Haible  <bruno@clisp.org>
43268
43269         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
43270         from 0.0058 to less than 10^-7.
43271
43272 2008-04-19  Bruno Haible  <bruno@clisp.org>
43273
43274         Fix rounding when a precision is given.
43275         * lib/vasnprintf.c (is_borderline): New function.
43276         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
43277         9...9x.
43278         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
43279         %e, %g.
43280         * tests/test-vasprintf-posix.c (test_function): Likewise.
43281         * tests/test-snprintf-posix.h (test_function): Likewise.
43282         * tests/test-sprintf-posix.h (test_function): Likewise.
43283         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
43284         * tests/test-printf-posix.h (test_function): Likewise.
43285         * tests/test-printf-posix.output: Update.
43286         Reported by John Darrington <john@darrington.wattle.id.au> via
43287         Ben Pfaff <blp@cs.stanford.edu>.
43288
43289 2008-04-18  Simon Josefsson  <simon@josefsson.org>
43290
43291         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
43292         Suggested by Bruno Haible <bruno@clisp.org>.
43293
43294 2008-04-17  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
43297         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
43298         implementation.
43299         Patch by Bruce Merry <bmerry@gmail.com>.
43300
43301 2008-04-17  Simon Josefsson  <simon@josefsson.org>
43302
43303         * doc/posix-functions/strftime.texi (strftime): Mention that %e
43304         doesn't work under Windows.
43305
43306 2008-04-16  Bruno Haible  <bruno@clisp.org>
43307
43308         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43309         New macros.
43310         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
43311         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
43312         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
43313         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
43314         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
43315         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
43316         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
43317         macros.
43318         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
43319         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
43320         Northern Sotho, Uighur.
43321
43322 2008-04-16  Bruno Haible  <bruno@clisp.org>
43323
43324         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
43325         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
43326         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
43327         Reported by Daniel Bergström <daniel@octocode.com>.
43328
43329 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
43330             Bruno Haible  <bruno@clisp.org>
43331
43332         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
43333         function.
43334         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
43335         New functions, mostly extracted from gl_locale_name_default.
43336         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
43337
43338 2008-04-16  Eric Blake  <ebb9@byu.net>
43339
43340         Adjust strtod detection to catch glibc 2.7 bug.
43341         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
43342         Reported by John Gatewood Ham.
43343
43344 2008-04-16  Bruno Haible  <bruno@clisp.org>
43345
43346         Add tentative support for Linux libc5.
43347         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
43348         * lib/fpurge.c (fpurge): Likewise.
43349         * lib/freadable.c (freadable): Likewise.
43350         * lib/freadahead.c (freadahead): Likewise.
43351         * lib/freading.c (freading): Likewise.
43352         * lib/freadptr.c (freadptr): Likewise.
43353         * lib/freadseek.c (freadptrinc): Likewise.
43354         * lib/fseeko.c (rpl_fseeko): Likewise.
43355         * lib/fseterr.c (fseterr): Likewise.
43356         * lib/fwritable.c (fwritable): Likewise.
43357         * lib/fwriting.c (fwriting): Likewise.
43358         Reported by Alain Guibert <alguibert+bts@free.fr>.
43359
43360 2008-04-15  Bruno Haible  <bruno@clisp.org>
43361
43362         * modules/mathl (configure.ac): Define module indicator.
43363
43364 2008-04-15  Bruno Haible  <bruno@clisp.org>
43365
43366         * lib/logl.c (logl): Remove unused variables.
43367
43368 2008-04-15  Bruno Haible  <bruno@clisp.org>
43369
43370         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
43371         fails.
43372
43373 2008-04-15  Bruno Haible  <bruno@clisp.org>
43374
43375         * lib/trim.c (trim2): Fix argument of isspace() macro.
43376
43377 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
43378
43379         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
43380         to 0.
43381         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
43382
43383 2008-04-14  Bruno Haible  <bruno@clisp.org>
43384
43385         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
43386         AC_LANG_PROGRAM argument.
43387         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
43388         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
43389         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43390         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43391         * m4/math_h.m4 (gl_MATH_H): Likewise.
43392         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43393         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43394         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43395         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
43396         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43397         * m4/regex.m4 (gl_REGEX): Likewise.
43398         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
43399         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
43400         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43401         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43402         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43403         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43404         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43406
43407 2008-04-14  Jim Meyering  <meyering@redhat.com>
43408
43409         test-strtod: fix typos: s/abs/fabs/
43410         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43411
43412 2008-04-13  Bruno Haible  <bruno@clisp.org>
43413
43414         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43415         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43416         module is also used and while not building the reloc-wrapper.
43417
43418 2008-04-13  Bruno Haible  <bruno@clisp.org>
43419
43420         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43421
43422 2008-04-13  Bruno Haible  <bruno@clisp.org>
43423
43424         Fix AIX compilation failure introduced on 2008-04-02.
43425         * tests/test-frexp.c (exp): Undefine before redefining.
43426         * tests/test-frexpl.c (exp): Likewise.
43427
43428 2008-04-13  Bruno Haible  <bruno@clisp.org>
43429
43430         Work around a HP-UX stdio bug.
43431         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43432         * tests/test-ftello.c (main): Likewise.
43433         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43434         * doc/posix-functions/ftello.texi: Likewise.
43435
43436 2008-04-13  Bruno Haible  <bruno@clisp.org>
43437
43438         Make test-signbit pass on HP-UX/hppa.
43439         * tests/test-signbit.c (minus_zerol): New variable.
43440         (test_signbitl): Use it.
43441
43442 2008-04-13  Bruno Haible  <bruno@clisp.org>
43443
43444         Make truncl work on OSF/1 4.0.
43445         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43446         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43447         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43449         HAVE_DECL_TRUNCL.
43450         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43451         HAVE_DECL_TRUNCL.
43452         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43453
43454 2008-04-13  Bruno Haible  <bruno@clisp.org>
43455
43456         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43457
43458 2008-04-13  Bruno Haible  <bruno@clisp.org>
43459
43460         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43461         expression, so as to avoid HP-UX 11 cc compiler bug.
43462
43463 2008-04-13  Bruno Haible  <bruno@clisp.org>
43464
43465         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43466
43467 2008-04-13  Bruno Haible  <bruno@clisp.org>
43468
43469         * lib/git-merge-changelog.c: Remove empty declaration outside of
43470         functions.
43471
43472 2008-04-13  Bruno Haible  <bruno@clisp.org>
43473
43474         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43475
43476 2008-04-13  Bruno Haible  <bruno@clisp.org>
43477
43478         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43479         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43480         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43481         also if it exists but lacks definitions of the SHUT_* macros.
43482         * modules/sys_socket (Description): Update.
43483         Reported by Elbert Pol <e.pol@chello.nl>.
43484
43485 2008-04-13  Bruno Haible  <bruno@clisp.org>
43486
43487         * lib/localcharset.c (OS2): Don't redefine if already defined.
43488         Reported by Elbert Pol <e.pol@chello.nl>.
43489
43490 2008-04-13  Bruno Haible  <bruno@clisp.org>
43491
43492         * lib/binary-io.h [__EMX__]: Include <io.h>.
43493         Reported by Elbert Pol <e.pol@chello.nl>.
43494
43495 2008-04-12  Bruno Haible  <bruno@clisp.org>
43496
43497         * lib/fpucw.h: Enable the definitions also for x86_64.
43498         Needed for NetBSD/x86_64.
43499         Reported by Thomas Klausner <tk@giga.or.at>.
43500
43501 2008-04-12  Bruno Haible  <bruno@clisp.org>
43502
43503         * tests/test-strtod.c: Include isnand.h.
43504         (main): Use isnand instead of isnan.
43505         Reported by Jim Meyering.
43506
43507 2008-04-12  Bruno Haible  <bruno@clisp.org>
43508
43509         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43510         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43511
43512 2008-04-12  Jim Meyering  <meyering@redhat.com>
43513
43514         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43515
43516 2008-04-12  Bruno Haible  <bruno@clisp.org>
43517
43518         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43519         Reported by Elbert Pol <e.pol@chello.nl>.
43520
43521 2008-04-12  Eric Blake  <ebb9@byu.net>
43522
43523         Work around Solaris 10 math.h bug.
43524         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43525         (gl_MATH_H_DEFAULTS): Set up default.
43526         * modules/math (Makefile.am): Replace new indicators.
43527         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43528         * tests/test-math.c (main): Test this.
43529         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43530         * doc/posix-headers/math.texi (math.h): Mention bug.
43531         Reported by Nelson H. F. Beebe and Jim Meyering.
43532
43533 2008-04-11  Bruno Haible  <bruno@clisp.org>
43534
43535         Adapt to future versions of Apple GCC.
43536         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43537         Reported by Peter O'Gorman <peter@pogma.com>.
43538
43539 2008-04-11  Bruno Haible  <bruno@clisp.org>
43540
43541         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43542
43543 2008-04-11  Bruno Haible  <bruno@clisp.org>
43544
43545         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43546
43547         * modules/getaddrinfo-tests (Makefile.am): Define
43548         test_getaddrinfo_LDADD.
43549
43550 2008-04-11  Bruno Haible  <bruno@clisp.org>
43551
43552         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43553         (init): Fix syntax error.
43554         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43555         is declared.
43556
43557 2008-04-11  Bruno Haible  <bruno@clisp.org>
43558
43559         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43560         * modules/glob (Depends-on): Add stdbool.
43561
43562 2008-04-11  Bruno Haible  <bruno@clisp.org>
43563
43564         * lib/trim.c: Include <string.h>.
43565
43566 2008-04-11  Eric Blake  <ebb9@byu.net>
43567
43568         Avoid compile failure on OS/2.
43569         * lib/regex_internal.h (internal_function): Disable optimization
43570         on OS/2 (__EMX__), where it caused compiler error.
43571         Reported by Elbert Pol.
43572
43573 2008-04-11  Bruno Haible  <bruno@clisp.org>
43574
43575         Flush the standard error stream before aborting. Needed on mingw.
43576         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43577         * tests/test-array_list.c (ASSERT): Likewise.
43578         * tests/test-array_oset.c (ASSERT): Likewise.
43579         * tests/test-avltree_list.c (ASSERT): Likewise.
43580         * tests/test-avltree_oset.c (ASSERT): Likewise.
43581         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43582         * tests/test-binary-io.c (ASSERT): Likewise.
43583         * tests/test-byteswap.c (ASSERT): Likewise.
43584         * tests/test-c-ctype.c (ASSERT): Likewise.
43585         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43586         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43587         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43588         * tests/test-c-strstr.c (ASSERT): Likewise.
43589         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43590         * tests/test-canonicalize.c (ASSERT): Likewise.
43591         * tests/test-carray_list.c (ASSERT): Likewise.
43592         * tests/test-ceilf1.c (ASSERT): Likewise.
43593         * tests/test-ceilf2.c (ASSERT): Likewise.
43594         * tests/test-ceill.c (ASSERT): Likewise.
43595         * tests/test-count-one-bits.c (ASSERT): Likewise.
43596         * tests/test-fbufmode.c (ASSERT): Likewise.
43597         * tests/test-fflush2.c (ASSERT): Likewise.
43598         * tests/test-floorf1.c (ASSERT): Likewise.
43599         * tests/test-floorf2.c (ASSERT): Likewise.
43600         * tests/test-floorl.c (ASSERT): Likewise.
43601         * tests/test-fopen.c (ASSERT): Likewise.
43602         * tests/test-fpending.c (ASSERT): Likewise.
43603         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43604         * tests/test-fpurge.c (ASSERT): Likewise.
43605         * tests/test-freadable.c (ASSERT): Likewise.
43606         * tests/test-freadahead.c (ASSERT): Likewise.
43607         * tests/test-freading.c (ASSERT): Likewise.
43608         * tests/test-freadptr.c (ASSERT): Likewise.
43609         * tests/test-freadptr2.c (ASSERT): Likewise.
43610         * tests/test-freadseek.c (ASSERT): Likewise.
43611         * tests/test-freopen.c (ASSERT): Likewise.
43612         * tests/test-frexp.c (ASSERT): Likewise.
43613         * tests/test-frexpl.c (ASSERT): Likewise.
43614         * tests/test-fseek.c (ASSERT): Likewise.
43615         * tests/test-fseeko.c (ASSERT): Likewise.
43616         * tests/test-fstrcmp.c (ASSERT): Likewise.
43617         * tests/test-ftell.c (ASSERT): Likewise.
43618         * tests/test-ftello.c (ASSERT): Likewise.
43619         * tests/test-func.c (ASSERT): Likewise.
43620         * tests/test-fwritable.c (ASSERT): Likewise.
43621         * tests/test-fwriting.c (ASSERT): Likewise.
43622         * tests/test-getdelim.c (ASSERT): Likewise.
43623         * tests/test-getline.c (ASSERT): Likewise.
43624         * tests/test-i-ring.c (ASSERT): Likewise.
43625         * tests/test-iconv-utf.c (ASSERT): Likewise.
43626         * tests/test-iconv.c (ASSERT): Likewise.
43627         * tests/test-isfinite.c (ASSERT): Likewise.
43628         * tests/test-isnand.c (ASSERT): Likewise.
43629         * tests/test-isnanf.c (ASSERT): Likewise.
43630         * tests/test-isnanl.h (ASSERT): Likewise.
43631         * tests/test-ldexpl.c (ASSERT): Likewise.
43632         * tests/test-linked_list.c (ASSERT): Likewise.
43633         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43634         * tests/test-localename.c (ASSERT): Likewise.
43635         * tests/test-lseek.c (ASSERT): Likewise.
43636         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43637         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43638         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43639         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43640         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43641         * tests/test-mbschr.c (ASSERT): Likewise.
43642         * tests/test-mbscspn.c (ASSERT): Likewise.
43643         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43644         * tests/test-mbspbrk.c (ASSERT): Likewise.
43645         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43646         * tests/test-mbsrchr.c (ASSERT): Likewise.
43647         * tests/test-mbsspn.c (ASSERT): Likewise.
43648         * tests/test-mbsstr1.c (ASSERT): Likewise.
43649         * tests/test-mbsstr2.c (ASSERT): Likewise.
43650         * tests/test-mbsstr3.c (ASSERT): Likewise.
43651         * tests/test-memchr2.c (ASSERT): Likewise.
43652         * tests/test-memmem.c (ASSERT): Likewise.
43653         * tests/test-open.c (ASSERT): Likewise.
43654         * tests/test-printf-frexp.c (ASSERT): Likewise.
43655         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43656         * tests/test-printf-posix.c (ASSERT): Likewise.
43657         * tests/test-quotearg.c (ASSERT): Likewise.
43658         * tests/test-rbtree_list.c (ASSERT): Likewise.
43659         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43660         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43661         * tests/test-round1.c (ASSERT): Likewise.
43662         * tests/test-roundf1.c (ASSERT): Likewise.
43663         * tests/test-roundl.c (ASSERT): Likewise.
43664         * tests/test-signbit.c (ASSERT): Likewise.
43665         * tests/test-sleep.c (ASSERT): Likewise.
43666         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43667         * tests/test-snprintf.c (ASSERT): Likewise.
43668         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43669         * tests/test-stat-time.c (ASSERT): Likewise.
43670         * tests/test-strcasestr.c (ASSERT): Likewise.
43671         * tests/test-strerror.c (ASSERT): Likewise.
43672         * tests/test-striconv.c (ASSERT): Likewise.
43673         * tests/test-striconveh.c (ASSERT): Likewise.
43674         * tests/test-striconveha.c (ASSERT): Likewise.
43675         * tests/test-strsignal.c (ASSERT): Likewise.
43676         * tests/test-strstr.c (ASSERT): Likewise.
43677         * tests/test-strtod.c (ASSERT): Likewise.
43678         * tests/test-trunc1.c (ASSERT): Likewise.
43679         * tests/test-trunc2.c (ASSERT): Likewise.
43680         * tests/test-truncf1.c (ASSERT): Likewise.
43681         * tests/test-truncf2.c (ASSERT): Likewise.
43682         * tests/test-truncl.c (ASSERT): Likewise.
43683         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43684         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43685         * tests/test-vasnprintf.c (ASSERT): Likewise.
43686         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43687         * tests/test-vasprintf.c (ASSERT): Likewise.
43688         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43689         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43690         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43691         * tests/test-vsnprintf.c (ASSERT): Likewise.
43692         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43693         * tests/test-wcwidth.c (ASSERT): Likewise.
43694         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43695         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43696         * tests/test-xvasprintf.c (ASSERT): Likewise.
43697         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43698         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43699         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43700         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43701         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43702         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43703         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43704         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43705         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43706         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43707         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43708         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43709         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43710         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43711         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43712         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43713         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43714         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43715         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43716         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43717         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43718         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43719         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43720         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43721         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43722         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43723         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43724         * tests/unictype/test-combining.c (ASSERT): Likewise.
43725         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43726         * tests/unictype/test-digit.c (ASSERT): Likewise.
43727         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43728         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43729         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43730         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43731         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43732         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43733         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43734         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43735         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43736         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43737         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43738         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43739         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43740         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43741         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43742         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43743         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43744         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43745         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43746         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43747         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43748         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43749         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43750         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43751         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43752         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43753         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43754         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43755         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43756         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43757         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43758         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43759         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43760         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43761         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43762         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43763         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43764         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43765         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43766         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43767         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43768         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43769         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43770         Reported by Eric Blake.
43771
43772 2008-04-11  Bruno Haible  <bruno@clisp.org>
43773
43774         * lib/wchar.in.h: Tweak comment.
43775
43776 2008-04-11  Bruno Haible  <bruno@clisp.org>
43777
43778         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43779         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43780         gl_COMMON.
43781         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43782
43783 2008-04-11  Bruno Haible  <bruno@clisp.org>
43784
43785         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43786
43787 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43788
43789         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43790         of attempting to use non-existing /dev/*random.  Based on patch
43791         from Adam Strzelecki <ono@java.pl> in
43792         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43793
43794 2008-04-08  Bruno Haible  <bruno@clisp.org>
43795
43796         Add tentative support for emx+gcc.
43797         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43798         * lib/fpurge.c (fpurge): Likewise.
43799         * lib/freadable.c (freadable): Likewise.
43800         * lib/freadahead.c (freadahead): Likewise.
43801         * lib/freading.c (freading): Likewise.
43802         * lib/freadptr.c (freadptr): Likewise.
43803         * lib/freadseek.c (freadptrinc): Likewise.
43804         * lib/fseeko.c (rpl_fseeko): Likewise.
43805         * lib/fseterr.c (fseterr): Likewise.
43806         * lib/fwritable.c (fwritable): Likewise.
43807         * lib/fwriting.c (fwriting): Likewise.
43808         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43809
43810 2008-04-09  Eric Blake  <ebb9@byu.net>
43811
43812         Avoid some autoconf warnings.
43813         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43814         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43815         * m4/afs.m4 (gl_AFS): Likewise.
43816         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43817         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43818         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43819         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43820         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43821         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43822         (AC_CHECK_DECLS_ONCE): Likewise.
43823         Rename file...
43824         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43825         gnulib-tool requires autoconf 2.59 or better.
43826         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43827
43828 2008-04-08  Eric Blake  <ebb9@byu.net>
43829
43830         Use 'git describe --match' if present (added in git 1.5.5).
43831         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43832         if possible.
43833
43834 2008-04-08  Bruno Haible  <bruno@clisp.org>
43835
43836         Add tentative support for OpenServer.
43837         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43838         _ptr, _cnt.
43839         * lib/fpurge.c (fpurge): Likewise.
43840         * lib/freadable.c (freadable): Likewise.
43841         * lib/freadahead.c (freadahead): Likewise.
43842         * lib/freading.c (freading): Likewise.
43843         * lib/freadptr.c (freadptr): Likewise.
43844         * lib/freadseek.c (freadptrinc): Likewise.
43845         * lib/fseeko.c (rpl_fseeko): Likewise.
43846         * lib/fseterr.c (fseterr): Likewise.
43847         * lib/fwritable.c (fwritable): Likewise.
43848         * lib/fwriting.c (fwriting): Likewise.
43849         Reported by Roger Cornelius <rac@tenzing.org> and
43850         Brian K. White <brian@aljex.com>.
43851
43852 2008-04-06  Jim Meyering  <meyering@redhat.com>
43853
43854         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43855
43856 2008-04-06  Bruno Haible  <bruno@clisp.org>
43857
43858         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43859         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43860         * tests/test-printf-posix.sh: Likewise.
43861         * tests/test-vfprintf-posix.sh: Likewise.
43862         * tests/test-vprintf-posix.sh: Likewise.
43863         * tests/test-xprintf-posix.sh: Likewise.
43864
43865 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43866
43867         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43868         hide error from 'ls', needed on OS/2.
43869         Report by Elbert Pol <elbert.pol@gmail.com>.
43870
43871 2008-04-04  Eric Blake  <ebb9@byu.net>
43872
43873         Make test-fseeko.c failures meaningful.
43874         * tests/test-fseeko.c: Print line number on failure.
43875         * tests/test-fseek.c: Likewise.
43876         Reported by Nelson H. F. Beebe.
43877
43878         Improve strtod bug detection check.
43879         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43880         required for Solaris 10.
43881         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43882
43883 2008-04-04  Bruno Haible  <bruno@clisp.org>
43884
43885         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43886         by m4/setenv.m4.
43887
43888 2008-04-03  Eric Blake  <ebb9@byu.net>
43889
43890         Ensure sane .version contents.
43891         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43892         version string.
43893         * build-aux/git-version-gen: Improve documentation.
43894
43895         Make GNU make output nicer.
43896         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43897         MAKECMDGOALS to enforce message for all command line targets.  Set
43898         srcdir for use in maint.mk.
43899
43900         Another maintainer tweak.
43901         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43902         a target that regenerates version.
43903
43904 2008-04-03  Jim Meyering  <meyering@redhat.com>
43905
43906         vc-list-files: don't cause coreutils "make po-check" failure
43907         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43908
43909 2008-04-03  Eric Blake  <ebb9@byu.net>
43910
43911         Allow VPATH usage of vc-list-files.
43912         * build-aux/vc-list-files (scriptversion): Add timestamp.
43913         (options): Add --help, --version, -C.
43914         (CVS): Support installed cvsu.
43915
43916 2008-04-02  Bruno Haible  <bruno@clisp.org>
43917
43918         Avoid some "statement with no effect" warnings from gcc.
43919         * tests/test-wctype.c (main): Explicitly ignore unused values.
43920         Reported by Jim Meyering.
43921
43922 2008-04-02  Jim Meyering  <meyering@redhat.com>
43923
43924         Avoid some warnings from "gcc -Wshadow".
43925         * tests/test-frexp.c (exp): Define to a different identifier.
43926         * tests/test-frexpl.c (exp): Likewise.
43927
43928 2008-04-03  Jim Meyering  <meyering@redhat.com>
43929
43930         bootstrap: remove dangling *.[ch] symlinks from lib
43931         * build-aux/bootstrap [dangling symlink removal]: Move find's
43932         -depth option to precede all others, to avoid a warning.
43933         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43934
43935 2008-04-02  Bruno Haible  <bruno@clisp.org>
43936
43937         Avoid some warnings from "gcc -Wshadow".
43938         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43939         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43940         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43941         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43942         Reported by Jim Meyering.
43943
43944 2008-04-01  Bruno Haible  <bruno@clisp.org>
43945
43946         Fix test to work on IRIX 6.5 with cc.
43947         * tests/test-math.c (numeric_equal): New function.
43948         (main): Use it.
43949
43950 2008-04-01  Bruno Haible  <bruno@clisp.org>
43951
43952         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43953
43954 2008-04-01  Bruno Haible  <bruno@clisp.org>
43955
43956         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43957         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43958         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43959         (Depends-on): Remove math.
43960
43961         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43962         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43963         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43964         (Depends-on): Remove math.
43965
43966         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43967         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43968         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43969         (Depends-on): Remove math.
43970         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43971         (Depends-on): Remove math.
43972
43973         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43974         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43975         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43976         (Depends-on): Remove math.
43977         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43978         (Depends-on): Remove math.
43979
43980         * tests/test-round1.c: Include nan.h.
43981         (main): Use NaNd instead of NAN.
43982         * modules/round-tests (Files): Add tests/nan.h.
43983
43984         * tests/test-trunc1.c: Include nan.h.
43985         (main): Use NaNd instead of NAN.
43986         * modules/trunc-tests (Files): Add tests/nan.h.
43987
43988         * tests/test-roundf1.c: Include nan.h.
43989         (main): Use NaNf instead of NAN.
43990         * modules/roundf-tests (Files): Add tests/nan.h.
43991
43992         * tests/test-truncf1.c: Include nan.h.
43993         (main): Use NaNf instead of NAN.
43994         * modules/truncf-tests (Files): Add tests/nan.h.
43995
43996         * tests/test-ceilf1.c: Include nan.h.
43997         (main): Use NaNf instead of NAN.
43998         * modules/ceilf-tests (Files): Add tests/nan.h.
43999
44000         * tests/test-floorf1.c: Include nan.h.
44001         (main): Use NaNf instead of NAN.
44002         * modules/floorf-tests (Files): Add tests/nan.h.
44003
44004         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
44005         (main): Use NaNf instead of NAN.
44006         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
44007
44008         * tests/test-isnand.c: Include nan.h instead of <math.h>.
44009         (main): Use NaNd instead of NAN.
44010         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
44011
44012         * tests/test-frexp.c: Include nan.h.
44013         (main): Use NaNd instead of NAN.
44014         * modules/frexp-tests (Files): Add tests/nan.h.
44015
44016         * lib/isnan.c: Don't include <math.h>.
44017         (FUNC): Don't use NAN macro.
44018         * modules/isnand-nolibm (Depends-on): Remove math.
44019         * modules/isnanf-nolibm (Depends-on): Remove math.
44020         * modules/isnanl (Depends-on): Remove math.
44021         * modules/isnanl-nolibm (Depends-on): Remove math.
44022
44023         * tests/nan.h: New file.
44024
44025 2008-04-01  Eric Blake  <ebb9@byu.net>
44026
44027         Fix typos.
44028         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
44029         values to be the right type.
44030
44031         For now, cater to gnulib strtod inaccuracies.
44032         * tests/test-strtod.c (main): Allow 1-ulp error on expected
44033         fractional results.  While not as nice from a QoI perspective, it
44034         is a quicker patch than correctly implementing decimal to binary
44035         rounding.
44036
44037 2008-03-31  Eric Blake  <ebb9@byu.net>
44038
44039         Guarantee a definition of NAN.
44040         * lib/math.in.h (NAN): Define if missing.
44041         * tests/test-math.c (main): Test it.
44042         * doc/posix-headers/math.texi (math.h): Document this.
44043         * lib/isnan.c (rpl_isnand): Use it.
44044         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
44045         * tests/test-floorf1.c (NaN): Likewise.
44046         * tests/test-frexp.c (NaN): Likewise.
44047         * tests/test-isnand.c (NaN): Likewise.
44048         * tests/test-isnanf.c (NaN): Likewise.
44049         * tests/test-round1.c (NaN): Likewise.
44050         * tests/test-roundf1.c (NaN): Likewise.
44051         * tests/test-snprintf-posix.h (NaN): Likewise.
44052         * tests/test-sprintf-posix.h (NaN): Likewise.
44053         * tests/test-trunc1.c (NaN): Likewise.
44054         * tests/test-truncf1.c (NaN): Likewise.
44055         * tests/test-vasnprintf-posix.c (NaN): Likewise.
44056         * tests/test-vasprintf-posix.c (NaN): Likewise.
44057         * modules/isnand-nolibm (Depends-on): Add math.
44058         * modules/isnanf-nolibm (Depends-on): Likewise.
44059         * modules/isnanl (Depends-on): Likewise.
44060         * modules/isnanl-nolibm (Depends-on): Likewise.
44061         * modules/snprintf-posix-tests (Depends-on): Likewise.
44062         * modules/sprintf-posix-tests (Depends-on): Likewise.
44063         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
44064         * modules/vsprintf-posix-tests (Depends-on): Likewise.
44065         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
44066         * modules/vasprintf-posix-tests (Depends-on): Likewise.
44067
44068 2008-03-31  Bruno Haible  <bruno@clisp.org>
44069
44070         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
44071         * doc/posix-functions/strtod.texi: Likewise.
44072
44073 2008-03-31  Bruno Haible  <bruno@clisp.org>
44074
44075         * tests/test-strtod.c (main): Don't use C99 syntax.
44076
44077 2008-03-31  Bruno Haible  <bruno@clisp.org>
44078
44079         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
44080         Reported by Eric Blake.
44081
44082 2008-03-31  Jim Meyering  <meyering@redhat.com>
44083
44084         Don't compare actual signbit return values.
44085         * tests/test-strtod.c (main): Rather, compare only their
44086         zero/non-zero nature.
44087
44088 2008-03-31  Eric Blake  <ebb9@byu.net>
44089
44090         More strtod documentation.
44091         * doc/posix-functions/strtod.texi (strtod): Interpret more test
44092         failures as distinct bugs.
44093
44094 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44095
44096         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
44097         Problem reported by Erik Benada in
44098         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
44099
44100 2008-03-30  Bruno Haible  <bruno@clisp.org>
44101
44102         * tests/test-strtod.c: Add comments about which assertion fails on which
44103         platform.
44104         * doc/posix-functions/strtod.texi: Add info about many more platforms.
44105
44106 2008-03-30  Eric Blake  <ebb9@byu.net>
44107
44108         Test signbit behavior on zeros.
44109         * tests/test-signbit.c (test_signbitf): Add tests for zero.
44110         (test_signbitd, test_signbitl): Likewise.
44111
44112         More strtod touchups.
44113         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
44114         sign of negative underflow, for now.  Use .5, not .1.
44115         * doc/posix-functions/strtod.texi (strtod): Mention these
44116         limitations.
44117         Reported by Jim Meyering.
44118
44119 2008-03-30  Bruno Haible  <bruno@clisp.org>
44120
44121         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
44122         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
44123
44124 2008-03-30  Bruno Haible  <bruno@clisp.org>
44125
44126         Avoid failure when attempting to return empty iconv results on some
44127         platforms.
44128         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
44129         allocation, don't report ENOMEM when the resulting string is empty.
44130
44131 2008-03-30  Bruno Haible  <bruno@clisp.org>
44132
44133         Fix buffer overrun.
44134         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
44135         Don't consider the width for tmp_length. Check count against tmp_length
44136         before doing the padding. Ensure enough allocation during padding.
44137
44138 2008-03-30  Eric Blake  <ebb9@byu.net>
44139
44140         strtod touchups.
44141         * lib/strtod.c (strtod): Avoid compiler warnings.
44142         Reported by Jim Meyering.
44143
44144 2008-03-30  Bruno Haible  <bruno@clisp.org>
44145
44146         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
44147         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
44148         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
44149         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
44150         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
44151         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
44152         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
44153         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
44154
44155         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
44156         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
44157         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
44158         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
44159         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
44160         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
44161         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44162         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
44163
44164         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
44165         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
44166         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
44167         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
44168         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
44169         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
44170         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
44171         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
44172
44173         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
44174         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
44175
44176         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
44177         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
44178
44179         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
44180         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
44181
44182         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
44183         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
44184         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
44185
44186         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
44187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
44188         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
44189
44190         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
44191         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
44192         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
44193
44194         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
44195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
44196         * modules/vasprintf (Depends-on): Add EOVERFLOW.
44197
44198         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
44199         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
44200         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
44201         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
44202         (Depends-on): Add EOVERFLOW.
44203         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
44204         (Depends-on): Add EOVERFLOW.
44205         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44206         (Depends-on): Add EOVERFLOW.
44207         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44208         (Depends-on): Add EOVERFLOW.
44209         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44210         (Depends-on): Add EOVERFLOW.
44211         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44212         (Depends-on): Add EOVERFLOW.
44213         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44214         (Depends-on): Add EOVERFLOW.
44215         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44216         (Depends-on): Add EOVERFLOW.
44217
44218         * lib/sprintf.c (EOVERFLOW): Remove fallback.
44219         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
44220         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
44221
44222         * lib/snprintf.c (EOVERFLOW): Remove fallback.
44223         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
44224         * modules/snprintf (Depends-on): Add EOVERFLOW.
44225
44226         * lib/poll.c (EOVERFLOW): Remove fallback.
44227         * modules/poll (Depends-on): Add EOVERFLOW.
44228
44229         * lib/getugroups.c (EOVERFLOW): Remove fallback.
44230         * modules/getugroups (Depends-on): Add EOVERFLOW.
44231
44232         * lib/getdelim.c (EOVERFLOW): Remove fallback.
44233         * modules/getdelim (Depends-on): Add EOVERFLOW.
44234
44235         * lib/ftell.c (EOVERFLOW): Remove fallback.
44236         * modules/ftell (Depends-on): Add EOVERFLOW.
44237
44238         * lib/fprintf.c (EOVERFLOW): Remove fallback.
44239         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
44240         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
44241
44242         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
44243
44244         * modules/EOVERFLOW-tests: New file.
44245         * tests/test-EOVERFLOW.c: New file.
44246
44247         * modules/EOVERFLOW: New file.
44248         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
44249
44250 2008-03-30  Bruno Haible  <bruno@clisp.org>
44251
44252         Fix bug introduced on 2007-06-10.
44253         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
44254         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
44255
44256 2008-03-30  Bruno Haible  <bruno@clisp.org>
44257
44258         Improve freadseek's efficiency after ungetc.
44259         * lib/freadseek.c: Include freadahead.h.
44260         (freadptrinc): New function, extracted from freadseek.
44261         (freadseek): Use it in a loop. Use freadahead to determine the number
44262         of loop iterations.
44263         * modules/freadseek (Depends-on): Add freadahead.
44264         (configure.ac): Require AC_C_INLINE.
44265
44266 2008-03-30  Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/freadseek.c (freadseek): Don't ignore the return value of
44269         freadptr.
44270
44271 2008-03-29  Eric Blake  <ebb9@byu.net>
44272
44273         Add hex float support.
44274         * modules/strtod (Depends-on): Add c-ctype.
44275         (Link): Mention POW_LIB.
44276         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
44277         whitespace between 'e' and exponent.
44278         * tests/test-strtod.c (main): Enable hex float tests.
44279         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
44280         now provides.
44281
44282         Document various strtod bugs, with some fixes.
44283         * doc/posix-functions/strtod.texi (strtod): Document bugs with
44284         "-0x", "inf", "nan", and hex constants.
44285         * doc/posix-functions/atof.texi (atof): Likewise.
44286         * modules/stdlib (Makefile.am): Support strtod.
44287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44288         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
44289         detect additional strtod bugs.
44290         * lib/stdlib.in.h (rpl_strtod): Add declarations.
44291         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
44292         bool where appropriate.  Parse 'inf' and 'nan'.
44293         * tests/test-strtod.c: New file.
44294         * modules/strtod (Depends-on): Add stdbool, stdlib.
44295         (configure.ac): Turn on module indicator.
44296         * modules/strtod-tests: New module.
44297
44298 2008-03-29  Eric Blake  <ebb9@byu.net>
44299
44300         Fix ftell on mingw.
44301         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
44302         * modules/ftell-tests (Depends-on): Add binary-io.
44303         * modules/ftello-tests (Depends-on): Likewise.
44304         * tests/test-ftell.c (main): Enhance test to cover behavior after
44305         ungetc.  Enforce binary mode.
44306         * tests/test-ftello.c (main): Likewise.
44307
44308         Pass test-freadseek on cygwin.
44309         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
44310         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
44311         ungetc buffer.
44312
44313         * tests/test-fflush2.c (main): Fix typo.
44314
44315 2008-03-29  Bruno Haible  <bruno@clisp.org>
44316
44317         * tests/test-fflush2.c (main): Temporarily disable the contents of
44318         this test.
44319         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
44320         Reported by Eric Blake.
44321
44322 2008-03-28  Simon Josefsson  <simon@josefsson.org>
44323
44324         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
44325         (GC_SHA224_DIGEST_SIZE): Add.
44326
44327         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
44328         (gc_hash_digest_length): Likewise.
44329         (gc_hash_buffer): Likewise.
44330
44331 2008-03-25  Bruno Haible  <bruno@clisp.org>
44332
44333         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
44334         detail which gettext release to use.
44335         Reported by Simon Josefsson.
44336
44337 2008-03-26  Jim Meyering  <meyering@redhat.com>
44338
44339         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
44340         * modules/gnumakefile (clean-GNUmakefile): Also, use
44341         test ... && ... || : syntax rather than if-then ... fi.
44342
44343         gnumakefile: Don't double-quote-expand $(VPATH) value.
44344         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
44345
44346 2008-03-24  Eric Blake  <ebb9@byu.net>
44347
44348         Alter GNUmakefile to install into top directory.
44349         * modules/maintainer-makefile: Split, and add dependency...
44350         * modules/gnumakefile: to this new module.
44351         * build-aux/GNUmakefile: Move...
44352         * top/GNUmakefile: ...here.
44353         * build-aux/maint.mk: Move...
44354         * top/maint.mk: ...here.
44355         * MODULES.html.sh (Support for maintaining...): Document new
44356         module.
44357
44358 2008-03-23  Bruno Haible  <bruno@clisp.org>
44359
44360         * gnulib-tool: New options --vc-files, --no-vc-files.
44361         (func_usage): Document them.
44362         (vc_files): New variable.
44363         (func_import): Consider vc_files.
44364         (func_create_testdir): Set vc_files to empty.
44365         Suggested by Jim Meyering and Karl Berry.
44366
44367 2008-03-23  Bruno Haible  <bruno@clisp.org>
44368
44369         Fix regex compilation error on HP-UX 11.
44370         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
44371         * modules/regex (Files): Add m4/mbstate_t.m4.
44372         Reported by Ton Voon <ton.voon@altinity.com>.
44373
44374 2008-03-23  Bruno Haible  <bruno@clisp.org>
44375
44376         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
44377
44378 2008-03-23  Eric Blake  <ebb9@byu.net>
44379             Bruno Haible  <bruno@clisp.org>
44380
44381         Install files from top/ in the destination directory.
44382         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44383         augmentation also for the files from top/.
44384         (func_import, func_create_testdir): Rewrite file names:
44385         top/filename -> filename.
44386
44387 2008-03-23  Bruno Haible  <bruno@clisp.org>
44388
44389         Tweak "gnulib --version" output.
44390         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
44391
44392 2008-03-23  Bruno Haible  <bruno@clisp.org>
44393
44394         Tweak "gnulib --version" output.
44395         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
44396         rather than contents of ChangeLog, when possible.
44397
44398 2008-03-21  Eric Blake  <ebb9@byu.net>
44399
44400         More --version tweaks.
44401         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44402         date of last ChangeLog entry.
44403
44404 2008-03-21  Jim Meyering  <meyering@redhat.com>
44405
44406         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44407
44408 2008-03-20  Eric Blake  <ebb9@byu.net>
44409
44410         VPATH fix.
44411         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44412
44413 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44414
44415         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44416         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44417
44418 2008-03-20  Eric Blake  <ebb9@byu.net>
44419
44420         Sync GNUmakefile with coreutils.
44421         * build-aux/GNUmakefile (have-Makefile): Rename...
44422         (_have-Makefile): ...to this, for namespace consideration.
44423         (GNUmakefile.cfg): Include, if present.
44424         (_autoreconf): Define a default.
44425         (_is-dist-target): New rule for rebuilds to pick up intra-release
44426         version.
44427         (maint-cfg.mk): Rename...
44428         (cfg.mk): ...to this.
44429
44430 2008-03-18  Jim Meyering  <meyering@redhat.com>
44431
44432         New script and module: mktempd
44433         * MODULES.html.sh (maint+release support): Add mktempd.
44434         * build-aux/mktempd: New file.
44435         * modules/mktempd: New file.
44436
44437 2008-03-15  Jim Meyering  <meyering@redhat.com>
44438
44439         Undo last change.
44440         * lib/sha1.c, lib/md5.c: 63 != ~63.
44441         Reported by Andreas Schwab.
44442
44443         sha1.c, md5.c: Hoist a redundant expression.
44444         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44445         "ctx->buflen" only once, before calling *_process_block.
44446         * lib/md5.c (md5_process_bytes): Likewise.
44447
44448 2008-03-14  Eric Blake  <ebb9@byu.net>
44449
44450         Bump copyright year in files generated by gnulib-tool.
44451         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44452         gnulib-tool, rather than hard-coding it.
44453
44454         Fix 'gnulib-tool --version' output to work with git.
44455         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44456         (startup): ...here.
44457         (func_version): Use it to invoke git-version-gen, rather than
44458         relying on CVS keyword expansion.  Modernize wording.
44459         (cvsdatestamp, last_checkin_date, version): Kill unused
44460         variables.
44461
44462 2008-03-12  Jim Meyering  <meyering@redhat.com>
44463
44464         Recognize optional cast of the argument to free.
44465         * build-aux/useless-if-before-free: Update regexps.
44466
44467         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44468
44469 2008-03-11  Bruno Haible  <bruno@clisp.org>
44470
44471         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44472         by a single package.
44473         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44474         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44475         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44476         Reported by Sam Steingold <sds@gnu.org>.
44477
44478 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44479
44480         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44481         repositories.
44482
44483 2008-03-11  Bruno Haible  <bruno@clisp.org>
44484
44485         Avoid conflicts between local macro definitions.
44486         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44487         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44488
44489 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44490             Bruno Haible  <bruno@clisp.org>
44491
44492         Make va_copy work with some version of xlc on AIX 5.1.
44493         * lib/stdarg.in.h: New file.
44494         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44495         On AIX, use a <stdarg.h> file substitute.
44496         * modules/stdarg (Files): Add lib/stdarg.in.h.
44497         (Depends-on): Add include_next.
44498         (Makefile.am): Build a stdarg.h substitute if requested.
44499         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44500
44501 2008-03-10  Bruno Haible  <bruno@clisp.org>
44502
44503         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44504         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44505         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44506
44507 2008-03-10  Bruno Haible  <bruno@clisp.org>
44508
44509         * modules/stdlib (Depends-on): Add include_next, remove
44510         absolute-header.
44511
44512 2008-03-09  Bruno Haible  <bruno@clisp.org>
44513
44514         * lib/freadahead.h (freadahead): Document more precisely.
44515         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44516         the sum of both buffer sizes.
44517         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44518         * NEWS: Document the change.
44519
44520 2008-03-09  Bruno Haible  <bruno@clisp.org>
44521
44522         Extend freadptr to return also the buffer size.
44523         * lib/freadptr.h (freadptr): Add sizep argument.
44524         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44525         (freadptr): Add sizep argument. Determine buffer size like freadahead
44526         does.
44527         * tests/test-freadptr.c: Don't include freadahead.h.
44528         (main): Adapt for new calling convention of freadptr.
44529         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44530         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44531         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44532         tests/test-freadptr2.sh.
44533         (Depends): Remove freadahead.
44534         (TESTS): Add test-freadptr2.sh.
44535         (check_PROGRAMS): Add test-freadptr2.
44536
44537 2008-03-09  Bruno Haible  <bruno@clisp.org>
44538
44539         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44540         Report and solution by Simon Josefsson.
44541
44542 2008-03-06  Bruno Haible  <bruno@clisp.org>
44543
44544         Make fflush after ungetc work on BSD platforms.
44545         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44546         * tests/test-fflush2.c: New file.
44547         * tests/test-fflush2.sh: New file.
44548         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44549         tests/test-fflush2.c.
44550         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44551         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44552
44553 2008-03-06  Eric Blake  <ebb9@byu.net>
44554
44555         Likewise for ftello.
44556         * modules/ftello (Dependencies): Add extensions.
44557         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44558
44559 2008-03-06  Bruno Haible  <bruno@clisp.org>
44560
44561         * modules/fseeko (Dependencies): Add extensions.
44562         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44563         Needed on glibc systems.
44564
44565 2008-03-06  Bruno Haible  <bruno@clisp.org>
44566
44567         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44568         email address.
44569         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44570
44571 2008-03-06  Bruno Haible  <bruno@clisp.org>
44572
44573         * users.txt: Add libgnupdf.
44574
44575 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44576
44577         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44578         (Header File Substitutes, Function Substitutes,
44579         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44580         (Build robot for gnulib): Fix typo.
44581
44582 2008-03-06  Bruno Haible  <bruno@clisp.org>
44583
44584         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44585         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44586
44587 2008-03-06  Bruno Haible  <bruno@clisp.org>
44588
44589         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44590         * doc/gnulib.texi: Include it.
44591
44592 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44593
44594         * modules/func (License): Change license to unlimited; there was
44595         no LGPL parts in the module anyway.
44596
44597 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44598
44599         * modules/__func__: Renamed to modules/func.
44600         * modules/__func__-tests: Renamed to modules/func-tests.
44601         * tests/test-__func__.c: Renamed to tests/test-func.c.
44602         * m4/__func__.m4: Renamed to m4/func.m4.
44603         * doc/gnulib.texi (__func__): Section renamed to func.
44604         Suggested by Eric Blake <ebb9@byu.net>.
44605
44606 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44607
44608         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44609         about __func__.  Make example self-contained.  Suggested by Eric
44610         Blake <ebb9@byu.net>.
44611
44612         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44613         Suggested by Eric Blake <ebb9@byu.net>.
44614
44615 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44616
44617         * modules/__func__: New file.
44618         * modules/__func__-tests: New file.
44619         * tests/test-__func__.c: New file.
44620         * m4/__func__.m4: New file.
44621         * doc/gnulib.texi (__func__): Document __func__ module.
44622
44623 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44624
44625         * modules/byteswap (License): Re-license as LGPLv2+.
44626
44627 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44628
44629         * doc/Makefile: Add pdf target.
44630
44631 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44632
44633         * modules/inline (License): Use 'unlimited', since there are only
44634         *.m4 files in this module.
44635
44636 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44637             Bruno Haible  <bruno@clisp.org>
44638
44639         Add support for HP C 7.1 on OpenVMS 8.3.
44640         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44641
44642 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44643
44644         Update VMS specifics.
44645         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44646
44647 2008-03-02  Jim Meyering  <meyering@redhat.com>
44648
44649         Remove the last dependency on the "free" module.
44650         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44651         Reported by Bob Proulx.
44652
44653         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44654
44655         Remove useless "if" tests before free.  Deprecate "free" module.
44656         * doc/posix-functions/free.texi: Mention that this
44657         module is no longer useful.
44658         * modules/free (Notice): Say this module is obsolete.
44659         * modules/readutmp (Depends-on): Remove free.
44660         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44661         * lib/putenv.c (putenv): Likewise.
44662         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44663         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44664         * tests/test-c-strcasestr.c (main): Likewise.
44665         * tests/test-c-strstr.c (main): Likewise.
44666         * tests/test-mbscasestr1.c (main): Likewise.
44667         * tests/test-mbscasestr2.c (main): Likewise.
44668         * tests/test-mbsstr1.c (main): Likewise.
44669         * tests/test-mbsstr2.c (main): Likewise.
44670         * tests/test-memmem.c (main): Likewise.
44671         * tests/test-strcasestr.c (main): Likewise.
44672         * tests/test-striconv.c (main): Likewise.
44673         * tests/test-striconveh.c (main): Likewise.
44674         * tests/test-striconveha.c (main): Likewise.
44675         * tests/test-strstr.c (main): Likewise.
44676
44677         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44678
44679         bootstrap: sync from coreutils again
44680         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44681
44682 2008-03-01  Jim Meyering  <meyering@redhat.com>
44683
44684         bootstrap: sync from coreutils
44685         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44686         also when the target doesn't exist.
44687
44688 2008-03-01  Eric Blake  <ebb9@byu.net>
44689
44690         Fix bugs in last patch.
44691         * lib/memchr2.c (memchr2): Fix typo.
44692         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44693         extension.
44694         Reported by Bruce Korb.
44695
44696         New module 'memchr2'.
44697         * modules/memchr2: New file.
44698         * modules/memchr2-tests: Likewise.
44699         * lib/memchr2.h: Likewise.
44700         * lib/memchr2.c: Likewise, based on memchr.c.
44701         * tests/test-memchr2.c: New test.
44702         * MODULES.html.sh (String handling): Add memchr2.
44703
44704 2008-02-29  Bruno Haible  <bruno@clisp.org>
44705
44706         * modules/freadseek-tests: New file.
44707         * tests/test-freadseek.sh: New file.
44708         * tests/test-freadseek.c: New file.
44709
44710         New module 'freadseek'.
44711         * modules/freadseek: New file.
44712         * lib/freadseek.h: New file.
44713         * lib/freadseek.c: New file.
44714         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44715
44716 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44717
44718         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44719         wydawca.
44720
44721         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44722         program_invocation_name and program_invocation_short_name are
44723         present.
44724
44725 2008-02-28  Bruno Haible  <bruno@clisp.org>
44726
44727         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44728         * tests/test-freadptr.sh: Also test non-seekable stdin.
44729
44730 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44731
44732         * build-aux/bootstrap (source_base, m4_base)
44733         (doc_base, tests_base): New variables.
44734         (gnulib_tool_options): Do not hardcode base directories, use
44735         the above variables instead.
44736
44737 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44738
44739         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44740
44741 2008-02-28  Bruno Haible  <bruno@clisp.org>
44742
44743         * modules/freadptr-tests: New file.
44744         * tests/test-freadptr.sh: New file.
44745         * tests/test-freadptr.c: New file.
44746
44747         New module 'freadptr'.
44748         * modules/freadptr: New file.
44749         * lib/freadptr.h: New file.
44750         * lib/freadptr.c: New file.
44751         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44752
44753 2008-02-26  Karl Berry  <karl@freefriends.org>
44754
44755         Sync from Libtool:
44756         * libltdl/argz.c (argz_add, argz_count): New functions.
44757         * libltdl/argz.in.h: Declare them.
44758         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44759
44760 2008-02-22  Bruno Haible  <bruno@clisp.org>
44761
44762         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44763         is a pointer type.  Needed for HP-UX 10.
44764         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44765         * doc/posix-functions/gmtime_r.texi: Likewise.
44766         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44767
44768 2008-02-24  Bruno Haible  <bruno@clisp.org>
44769
44770         * modules/environ-tests: New file.
44771         * tests/test-environ.c: New file.
44772
44773         New module 'environ'.
44774         * modules/environ: New file.
44775         * lib/unistd.in.h (environ): New declaration.
44776         * m4/environ.m4: New file.
44777         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44778         after use.
44779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44780         HAVE_DECL_ENVIRON.
44781         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44782         HAVE_DECL_ENVIRON.
44783         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44784         wrong claim that 'environ' is missing on some systems.
44785         * modules/execute (Depends-on): Add environ.
44786         * lib/execute.c (environ): Remove fallback declaration.
44787         * modules/pipe (Depends-on): Add environ.
44788         * lib/pipe.c (environ): Remove fallback declaration.
44789         * modules/setenv (Depends-on): Add environ.
44790         * lib/setenv.c (environ): Remove fallback declaration.
44791         * modules/unsetenv (Depends-on): Add environ.
44792         * lib/unsetenv.c (environ): Remove fallback declaration.
44793         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44794         m4/environ.m4.
44795         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44796         (gl_PREREQ_UNSETENV): Likewise.
44797
44798 2008-02-24  Bruno Haible  <bruno@clisp.org>
44799
44800         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44801
44802 2008-02-20  Bob Proulx  <bob@proulx.com>
44803
44804         Enable use of older two part flavor 'git describe'.
44805         * build-aux/git-version-gen: If using the older two part flavor of
44806         git version then recreate the third part now present in the
44807         newer three part flavor of git describe.
44808
44809 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44810
44811         * lib/fts.c (fts_build): Typo correction to comment.
44812
44813 2008-02-17  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44816         generating no-op conflicts.
44817
44818 2008-02-17  Bruno Haible  <bruno@clisp.org>
44819
44820         Speed up by 10%.
44821         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44822         result_entries, rather than an index-based loop.
44823
44824 2008-02-17  Bruno Haible  <bruno@clisp.org>
44825
44826         Speed up by 25%.
44827         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44828         'hashcode_cached'.
44829         (entry_create): New function.
44830         (entry_hashcode): Use the cached hashcode if possible.
44831         (read_changelog_file, try_split_merged_entry): Use entry_create.
44832
44833 2008-02-17  Bruno Haible  <bruno@clisp.org>
44834
44835         Speed up from O(n^2) to O(n) for long ChangeLog files.
44836         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44837         (read_changelog_file): Change implementation of entries_reversed list
44838         to rbtreehash.
44839         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44840
44841 2008-02-17  Bruno Haible  <bruno@clisp.org>
44842
44843         New option --split-merged-entry.
44844         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44845         (find_paragraph_end, try_split_merged_entry): New functions.
44846         (long_options): Add option --split-merged-entry.
44847         (usage): Document option --split-merged-entry.
44848         (main): Implement option --split-merged-entry.
44849         Reported by Eric Blake.
44850
44851 2008-02-17  Bruno Haible  <bruno@clisp.org>
44852
44853         * lib/git-merge-changelog.c: Include c-strstr.h.
44854         (main): Support the "git pull --rebase" situation.
44855         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44856         Reported by Eric Blake.
44857
44858 2008-02-16  Eric Blake  <ebb9@byu.net>
44859
44860         Avoid doubling \ in common case of "c-maybe" quoting style.
44861         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44862         eliding outer quotes.
44863         * lib/quotearg.h: Document this.
44864         * tests/test-quotearg.c (result_strings, inputs, results_g)
44865         (flag_results, locale_results): Test it by adding a new string to
44866         each test group.
44867         (compare_strings): Test new string.
44868
44869 2008-02-13  Eric Blake  <ebb9@byu.net>
44870
44871         Avoid trigraph quoting in default output.
44872         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44873         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44874         unless explicitly requested.
44875         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44876
44877 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44878
44879         Don't rely on signed integer overflowing to negative value.
44880         * lib/getugroups.c (getugroups): Include <limits.h>.
44881         Instead, compare against INT_MAX, and increment only if the test passes.
44882
44883 2008-02-13  Jim Meyering  <meyering@redhat.com>
44884         and Eric Blake  <ebb9@byu.net>
44885
44886         Avoid shadowing warning and compile errors on Linux.
44887         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44888         forwarding macros on Linux.
44889         (dcgettext): Define a stub, for Linux.
44890         (results_g, main): Avoid warnings.
44891
44892 2008-02-12  Eric Blake  <ebb9@byu.net>
44893
44894         Silence warning in last patch.
44895         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44896
44897         Quotearg part 4: add tests, fix c-maybe colon quoting.
44898         * lib/quotearg.h: Improve documentation.
44899         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44900         escapes when adding outer quotes.  When quoting trigraphs, use
44901         valid C notation.  When quoting NUL, omit extra characters if next
44902         character is not digit.  Alter prototype.
44903         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44904         callers.
44905         * modules/quotearg-tests: New module.
44906         * tests/test-quotearg.c: New test.
44907
44908 2008-02-07  Eric Blake  <ebb9@byu.net>
44909
44910         Quotearg part 3: add flag to control outer quote elision.
44911         * lib/quotearg.h (c_maybe_quoting_style): New style.
44912         (enum quoting_flags): Better documentation of flags.
44913         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44914         c-maybe style.
44915         (quotearg_buffer_restyled): Handle new flag to elide outer
44916         quotes.
44917
44918         Quotearg part 2: add flag that can control NUL elision.
44919         * lib/quotearg.h (set_quoting_flags): New prototype.
44920         * lib/quotearg.c (struct quoting_options): Add flag field.
44921         (set_quoting_flags): New function.
44922         (quotearg_buffer_restyled): Add flags parameter.
44923         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44924         (quotearg_n_options): Set the flag, since length cannot be
44925         returned.
44926         (quoting_options_from_style): Default flags correctly.
44927
44928         Quotearg part 1: more wrappers, restore quotearg_char state.
44929         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44930         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44931         (quotearg_colon_mem): New wrappers.
44932         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44933         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44934         functions.
44935         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44936         (quotearg_colon_mem): New functions.
44937
44938 2008-02-11  Bruno Haible  <bruno@clisp.org>
44939
44940         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44941         library in the current directory: it does not work with parallel make.
44942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44943
44944 2008-02-11  Bruno Haible  <bruno@clisp.org>
44945
44946         * .gitattributes: New file.
44947
44948 2008-02-11  Jim Meyering  <meyering@redhat.com>
44949
44950         useless-if-before-free: Fix reversed exit values.
44951         * build-aux/useless-if-before-free: Use correct values
44952         for EXIT_MATCH and EXIT_NO_MATCH.
44953
44954         * build-aux/useless-if-before-free: Close stdout carefully.
44955
44956 2008-02-10  Bruno Haible  <bruno@clisp.org>
44957
44958         New module 'git-merge-changelog'.
44959         * modules/git-merge-changelog: New file.
44960         * lib/git-merge-changelog.c: New file.
44961
44962 2008-02-10  Jim Meyering  <meyering@redhat.com>
44963
44964         useless-if-before-free: New option: --list (-l).
44965
44966         useless-if-before-free: Don't exit immediately upon open failure.
44967         * build-aux/useless-if-before-free: Exit 2 for errors.
44968         Upon failure to open a file, don't exit immediately.
44969         Rather, just warn and continue with any remaining files.
44970
44971 2008-02-10  Bruno Haible  <bruno@clisp.org>
44972
44973         New abstract list operation 'node_set_value'.
44974         * lib/gl_list.h (gl_list_node_set_value): New function.
44975         (struct gl_list_implementation): New field node_set_value.
44976         * lib/gl_list.c (gl_list_node_set_value): New function.
44977         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44978         (gl_array_list_implementation): Update.
44979         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44980         (gl_carray_list_implementation): Update.
44981         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44982         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44983         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44984         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44985         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44986         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44987         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44988         Update.
44989         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44990         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44991         (gl_sublist_list_implementation): Update.
44992
44993 2008-02-10  Bruno Haible  <bruno@clisp.org>
44994
44995         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44996         Needed when ELEMENT is #defined to 'some_type *'.
44997
44998 2008-02-10  Jim Meyering  <meyering@redhat.com>
44999
45000         New script and module: useless-if-before-free
45001         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
45002         * build-aux/useless-if-before-free: New file.
45003         * modules/useless-if-before-free: New file.
45004
45005         * build-aux/gitlog-to-changelog: Use committer date, not author date.
45006
45007         xstrtol_error: Fix typo.
45008         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
45009         s/exit_failure/exit_status/.
45010
45011 2008-02-09  Jim Meyering  <meyering@redhat.com>
45012
45013         New script and module: gitlog-to-changelog
45014         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
45015         * modules/gitlog-to-changelog: New file.
45016         * build-aux/gitlog-to-changelog: New file.
45017
45018 2008-02-08  Jim Meyering  <meyering@redhat.com>
45019
45020         Avoid two "parameter unused" warnings.
45021         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
45022         Mark "st" as used.
45023
45024         Use "git COMMAND", not "git-COMMAND".
45025         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
45026         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
45027         * build-aux/git-version-gen: Use "git status", not "git-status".
45028
45029 2008-02-07  Bruno Haible  <bruno@clisp.org>
45030
45031         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
45032         Avoids a crash on Windows Vista.
45033         Reported by Adam Strzelecki <ono@java.pl> via
45034         Simon Josefsson <simon@josefsson.org>.
45035
45036 2008-02-06  Bruno Haible  <bruno@clisp.org>
45037
45038         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
45039         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
45040         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
45041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
45042         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45043         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45044         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
45045         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
45046         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45047         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45048         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45049         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45050         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45051         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45052         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45053         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
45054         left-adjust flag.
45055         * tests/test-snprintf-posix.h (test_function): Likewise.
45056         * tests/test-sprintf-posix.h (test_function): Likewise.
45057         * tests/test-vasprintf-posix.c (test_function): Likewise.
45058         * doc/posix-functions/fprintf.texi: Update.
45059         * doc/posix-functions/printf.texi: Update.
45060         * doc/posix-functions/snprintf.texi: Update.
45061         * doc/posix-functions/sprintf.texi: Update.
45062         * doc/posix-functions/vfprintf.texi: Update.
45063         * doc/posix-functions/vprintf.texi: Update.
45064         * doc/posix-functions/vsnprintf.texi: Update.
45065         * doc/posix-functions/vsprintf.texi: Update.
45066         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45067
45068 2008-02-06  Bruno Haible  <bruno@clisp.org>
45069
45070         Fix bug introduced on 2008-01-26.
45071         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
45072
45073 2008-02-06  Bruno Haible  <bruno@clisp.org>
45074
45075         Fix bug introduced on 2007-06-10.
45076         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
45077         !NEED_PRINTF_FLAG_ZERO.
45078
45079 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
45080
45081         getloadavg: use libperfstat on AIX5
45082         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
45083
45084 2008-02-03  Bruno Haible  <bruno@clisp.org>
45085
45086         * lib/diffseq.h: Add comments about required #includes.
45087         Reported by Michael Biggs <gnulib@doubleplum.net>.
45088
45089 2008-02-01  Bruno Haible  <bruno@clisp.org>
45090
45091         * users.txt: Add gnuit.
45092
45093 2008-01-31  Bruno Haible  <bruno@clisp.org>
45094
45095         * lib/md4.c (set_uint32): Mark as inline.
45096         * lib/md5.c (set_uint32): Likewise.
45097         * lib/sha1.c (set_uint32): Likewise.
45098         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
45099         * m4/md5.m4 (gl_MD5): Likewise.
45100         * m4/sha1.m4 (gl_SHA1): Likewise.
45101
45102 2008-01-31  Jim Meyering  <meyering@redhat.com>
45103
45104         Use "sizeof VAR", rather than a literal "4".
45105         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
45106         * lib/md4.c (md4_read_ctx): Likewise.
45107         * lib/sha1.c (sha1_read_ctx): Likewise.
45108
45109 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45110
45111         * tests/test-sha1.c: New file, based on test-md5.c.
45112
45113         * modules/crypto/sha1-tests: New file.
45114
45115 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45116
45117         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
45118
45119 2008-01-31  Jim Meyering  <meyering@redhat.com>
45120
45121         Prefer "sizeof v" over the equivalent "4".
45122         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
45123         * lib/md5.c (set_uint32): Likewise.
45124         * lib/sha1.c (set_uint32): Likewise.
45125
45126 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45127
45128         * lib/sha1.c (set_uint32): Mark function as static.
45129
45130 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45131
45132         md2: clarify comments to say that alignment is not required.
45133         * lib/md2.h: Remove warning about alignment in comment.
45134         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
45135         never been required.
45136
45137 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45138
45139         md4: adapt alignment constraint fix from sha1.
45140         * lib/md4.c (set_uint32): New function, from sha1.c
45141         (md4_read_ctx): Use it.
45142         (md4_finish_ctx): Doc fix.
45143         * lib/md4.h: Doc fix.
45144
45145 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45146
45147         md5: adapt alignment constraint fix from sha1.
45148         * lib/md5.c (set_uint32): New function, from sha1.c
45149         (md5_read_ctx): Use it.
45150         (md5_finish_ctx): Doc fix.
45151         * lib/md5.h: Doc fix.
45152
45153 2008-01-30  Peter Palfrader  <weasel@debian.org>
45154
45155         sha1: remove the result buffer alignment constraint
45156         * lib/sha1.c (set_uint32): New function.
45157         (sha1_read_ctx): Rewrite to remove the result buffer alignment
45158         constraint.
45159         (sha1_finish_ctx): Remove comment warning about alignment constraint.
45160         * lib/sha1.h: Likewise.
45161
45162 2008-01-30  Andreas Schwab  <schwab@suse.de>
45163             Bruno Haible  <bruno@clisp.org>
45164
45165         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
45166         correct definition of LDBL_MIN_EXP.
45167
45168 2008-01-30  Karl Berry  <karl@gnu.org>
45169
45170         * config/srclist-update: try to preserve x bit on updates.
45171         * config/srclistvars.sh: update for karl.
45172
45173 2008-01-29  Jim Meyering  <meyering@redhat.com>
45174
45175         vasnprintf.c: Avoid warning about unused label
45176         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
45177         "overflow" label definition and associated code with the
45178         same cpp condition that guards the sole use of that label.
45179
45180 2008-01-26  Bruno Haible  <bruno@clisp.org>
45181
45182         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
45183         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
45184         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
45185         * lib/isnanl-nolibm.h (isnanl): Likewise.
45186         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45187
45188 2008-01-26  Bruno Haible  <bruno@clisp.org>
45189
45190         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
45191         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
45192
45193 2008-01-26  Bruno Haible  <bruno@clisp.org>
45194
45195         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
45196         GCC >= 4.0 built-in.
45197         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
45198
45199 2008-01-26  Bruno Haible  <bruno@clisp.org>
45200
45201         Rename isnan, applicable to 'double' only, to isnand.
45202         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
45203         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
45204         (configure.ac): Update.
45205         (Include): Replace "isnan.h" with "isnand.h".
45206         * m4/isnand.m4: Renamed from m4/isnan.m4.
45207         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
45208         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
45209         instead of isnan.c.
45210         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
45211         instead of HAVE_ISNAN_IN_LIBC.
45212         (isnand): Renamed from isnan.
45213         * lib/isnand.c: New file.
45214         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
45215         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
45216         (Makefile.am): Update.
45217         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
45218         Include isnand.h instead of isnan.h.
45219         (main): Test isnand instead of isnan.
45220         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
45221         isnan-nolibm.
45222         * modules/frexp (Depends-on): Likewise.
45223         * modules/frexp-tests (Depends-on): Likewise.
45224         * modules/frexp-nolibm (Depends-on): Likewise.
45225         * modules/frexp-nolibm-tests (Depends-on): Likewise.
45226         * modules/isfinite (Depends-on): Likewise.
45227         * modules/round-tests (Depends-on): Likewise.
45228         * modules/signbit (Depends-on): Likewise.
45229         * modules/signbit-tests (Depends-on): Likewise.
45230         * modules/snprintf-posix (Depends-on): Likewise.
45231         * modules/sprintf-posix (Depends-on): Likewise.
45232         * modules/trunc-tests (Depends-on): Likewise.
45233         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45234         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45235         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45236         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45237         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45238         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45239         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45240         * modules/vasnprintf-posix (Depends-on): Likewise.
45241         * modules/vasprintf-posix (Depends-on): Likewise.
45242         * modules/vfprintf-posix (Depends-on): Likewise.
45243         * modules/vsnprintf-posix (Depends-on): Likewise.
45244         * modules/vsprintf-posix (Depends-on): Likewise.
45245         * lib/frexp.c: Include isnand.h instead of isnan.h.
45246         (ISNAN): Set to isnand instead of isnan.
45247         * lib/isfinite.c: Include isnand.h instead of isnan.h.
45248         (gl_isfinited): Use isnand instead of isnan.
45249         * lib/signbitd.c: Include isnand.h instead of isnan.h.
45250         (gl_signbitd): Use isnand instead of isnan.
45251         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
45252         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
45253         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
45254         (main): Use isnand instead of isnan.
45255         * tests/test-round1.c: Include isnand.h.
45256         (main): Use isnand instead of isnan.
45257         * tests/test-round2.c: Include isnand.h instead of isnan.h.
45258         (ISNAN): Set to isnand instead of isnan.
45259         * tests/test-trunc1.c: Include isnand.h.
45260         (main): Use isnand instead of isnan.
45261         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
45262         (equal): Use isnand instead of isnan.
45263         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
45264         isnand-nolibm.
45265         * NEWS: Mention the change.
45266
45267 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45268             Bruno Haible  <bruno@clisp.org>
45269
45270         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
45271         the GCC builtins for signbits are present and set
45272         REPLACE_SIGNBIT_USING_GCC if so.
45273         * lib/math.in.h (signbit): Define using GCC builtins if
45274         REPLACE_SIGNBIT_USING_GCC is set.
45275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
45276         REPLACE_SIGNBIT_USING_GCC.
45277         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
45278
45279 2008-01-25  Jim Meyering  <meyering@redhat.com>
45280
45281         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
45282         * lib/poll.c: Include <config.h>, not "config.h".
45283         * tests/test-getaddrinfo.c: Likewise.
45284
45285 2008-01-25  Simon Josefsson  <simon@josefsson.org>
45286
45287         * modules/sockets-tests: New file.
45288
45289 2008-01-24  Simon Josefsson  <simon@josefsson.org>
45290
45291         * modules/sockets: New module, can be used to call WSA_Startup and
45292         WSA_Cleanup when needed.
45293
45294         * lib/sockets.h, lib/sockets.c: New files.
45295
45296         * m4/sockets.m4: New file.
45297
45298         * tests/test-sockets.c: New file.
45299
45300 2008-01-19  Bruno Haible  <bruno@clisp.org>
45301
45302         * doc/posix-headers: Renamed from doc/headers.
45303         * doc/posix-functions: Renamed from doc/functions.
45304         * doc/gnulib.texi: Update.
45305
45306 2008-01-19  Bruno Haible  <bruno@clisp.org>
45307
45308         * doc/glibc-functions/strcasestr.texi: Include contents of
45309         doc/functions/strcasestr.texi, fixing the list of platforms.
45310         * doc/functions/strcasestr.texi: Remove file.
45311
45312 2008-01-19  Bruno Haible  <bruno@clisp.org>
45313
45314         * doc/glibc-functions/memmem.texi: Include contents of
45315         doc/functions/memmem.texi.
45316         * doc/functions/memmem.texi: Remove file.
45317
45318 2008-01-18  Bruno Haible  <bruno@clisp.org>
45319
45320         * doc/glibc-functions/*.texi: New files.
45321         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
45322         to use the new files.
45323
45324 2008-01-17  Bruno Haible  <bruno@clisp.org>
45325
45326         * tests/test-gethostname.c (main): Fix printf statement.
45327
45328 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45329
45330         * modules/gethostname-tests: New file.
45331
45332         * tests/test-gethostname.c: New file.
45333
45334 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45335
45336         * lib/gethostname.c: Include string.h unconditionally, strncpy is
45337         used by the UNAME case.  Reported by Bruno Haible
45338         <bruno@clisp.org>.
45339
45340 2008-01-17  Eric Blake  <ebb9@byu.net>
45341
45342         Convert c-strcasestr to be more efficient.
45343         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
45344         (Depends-on): Add c-strcase, remove malloca, strnlen.
45345         * tests/test-c-strcasestr.c (main): Enhance test.
45346         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
45347
45348 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45349
45350         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
45351         Use it in creating po/Makevars.
45352
45353 2008-01-15  Simon Josefsson  <simon@josefsson.org>
45354
45355         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
45356         Applications that requires it should initialize libgcrypt
45357         manually.
45358
45359 2008-01-16  Simon Josefsson  <simon@josefsson.org>
45360
45361         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
45362
45363 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
45364
45365         Fix problem with getdate on mingw32 reported by Simon Josefsson
45366         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
45367         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
45368         tzname", when deciding whether to declare tzname.
45369         * lib/strftime.c (tzname): Likewise.
45370
45371 2008-01-15  Bruno Haible  <bruno@clisp.org>
45372
45373         Work around a MacOS X 10.5 bug in frexpl().
45374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
45375         * doc/functions/frexpl.texi: Document the bug.
45376         Reported by Elias Pipping <pipping@gentoo.org>.
45377
45378 2008-01-14  Eric Blake  <ebb9@byu.net>
45379
45380         Touch up previous patch.
45381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
45382         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
45383
45384         Convert strcasestr module to use Two-Way algorithm.
45385         * modules/strcasestr-simple: New module, based on the old
45386         strcasestr, but with Two-Way rather than KMP.
45387         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
45388         * lib/string.in.h (rpl_strcasestr): Declare.
45389         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
45390         performance.
45391         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
45392         * modules/string (Makefile.am): Support strcasestr.
45393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45394         * modules/strcasestr-tests (Depends-on): Check for alarm.
45395         * tests/test-strcasestr.c: Augment test.
45396         * lib/str-two-way.h: Clean up stray macro.
45397         * NEWS: Document new module.
45398         * MODULES.html.sh (string handling): Likewise.
45399         * doc/functions/strcasestr.texi: New file.
45400         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
45401         here, since it is not a POSIX function.
45402
45403 2008-01-14  Colin Watson  <cjwatson@debian.org>
45404             Bruno Haible  <bruno@clisp.org>
45405
45406         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45407         works fine; if not, set REPLACE_STRSIGNAL.
45408         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45410         REPLACE_STRSIGNAL.
45411         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45412         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45413         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45414
45415 2008-01-14  Bruno Haible  <bruno@clisp.org>
45416
45417         * modules/strsignal (Include): Change to <string.h>.
45418
45419 2008-01-14  Colin Watson  <cjwatson@debian.org>
45420
45421         * modules/argp (Notice): Add a notice recommending to change
45422         XGETTEXT_OPTIONS.
45423         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45424
45425 2008-01-13  Colin Watson  <cjwatson@debian.org>
45426
45427         * modules/strsignal-tests: New file.
45428         * tests/test-strsignal.c: New file.
45429
45430         * lib/strsignal.c: New file, from glibc with modifications.
45431         * lib/siglist.h: New file, from glibc with modifications.
45432         * lib/string.in.h (strsignal): New declaration.
45433         * m4/strsignal.m4: New file.
45434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45435         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45436         * modules/strsignal: New file.
45437         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45438         HAVE_DECL_STRSIGNAL.
45439
45440 2008-01-13  Bruno Haible  <bruno@clisp.org>
45441
45442         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45443         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45444         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45445         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45446
45447 2008-01-13  Bruno Haible  <bruno@clisp.org>
45448
45449         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45450         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45451         * lib/argp.h (__attribute__): Likewise.
45452         * lib/c-stack.c (__attribute__): Likewise.
45453         * lib/error.h (__attribute__): Likewise.
45454         * lib/fts.c (__attribute__): Likewise.
45455         * lib/openat.h (__attribute__): Likewise.
45456         * lib/stdio.in.h (__attribute__): Likewise.
45457         * lib/string.in.h (__attribute__): Likewise.
45458         * lib/utimens.c (__attribute__): Likewise.
45459         * lib/vasnprintf.h (__attribute__): Likewise.
45460         * lib/xalloc.h (__attribute__): Likewise.
45461         * lib/xprintf.h (__attribute__): Likewise.
45462         * lib/xstrtol.h (__attribute__): Likewise.
45463         * lib/xvasprintf.h (__attribute__): Likewise.
45464
45465 2008-01-12  Bruno Haible  <bruno@clisp.org>
45466
45467         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45468         * doc/glibc-headers/a.out.texi: New file.
45469         * doc/glibc-headers/aliases.texi: New file.
45470         * doc/glibc-headers/alloca.texi: New file.
45471         * doc/glibc-headers/ar.texi: New file.
45472         * doc/glibc-headers/argp.texi: New file.
45473         * doc/glibc-headers/argz.texi: New file.
45474         * doc/glibc-headers/byteswap.texi: New file.
45475         * doc/glibc-headers/crypt.texi: New file.
45476         * doc/glibc-headers/endian.texi: New file.
45477         * doc/glibc-headers/envz.texi: New file.
45478         * doc/glibc-headers/err.texi: New file.
45479         * doc/glibc-headers/error.texi: New file.
45480         * doc/glibc-headers/execinfo.texi: New file.
45481         * doc/glibc-headers/fpu_control.texi: New file.
45482         * doc/glibc-headers/fstab.texi: New file.
45483         * doc/glibc-headers/fts.texi: New file.
45484         * doc/glibc-headers/getopt.texi: New file.
45485         * doc/glibc-headers/ieee754.texi: New file.
45486         * doc/glibc-headers/ifaddrs.texi: New file.
45487         * doc/glibc-headers/libintl.texi: New file.
45488         * doc/glibc-headers/mcheck.texi: New file.
45489         * doc/glibc-headers/mntent.texi: New file.
45490         * doc/glibc-headers/obstack.texi: New file.
45491         * doc/glibc-headers/paths.texi: New file.
45492         * doc/glibc-headers/printf.texi: New file.
45493         * doc/glibc-headers/pty.texi: New file.
45494         * doc/glibc-headers/resolv.texi: New file.
45495         * doc/glibc-headers/shadow.texi: New file.
45496         * doc/glibc-headers/sysexits.texi: New file.
45497         * doc/glibc-headers/ttyent.texi: New file.
45498
45499 2008-01-12  Jim Meyering  <meyering@redhat.com>
45500
45501         announce-gen: emit Gnulib's git-based version string.
45502         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45503         New option --gnulib-version=V, where V is expected to be
45504         the output of running git describe in the gnulib directory.
45505         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45506         not useful, and plan to stop publishing an xdelta file with each
45507         coreutils release.
45508
45509         * build-aux/announce-gen: Also check for lzma-compressed files.
45510
45511 2008-01-11  Bruno Haible  <bruno@clisp.org>
45512
45513         * tests/test-memmem.c (main): Increase maximum allowed time.
45514         * tests/test-strstr.c (main): Likewise.
45515
45516 2008-01-11  Bruno Haible  <bruno@clisp.org>
45517
45518         * doc/functions/memmem.texi: Add more precisions about platforms.
45519         * doc/functions/strstr.texi: Likewise.
45520
45521 2008-01-10  Eric Blake  <ebb9@byu.net>
45522
45523         * m4/strstr.m4: Delete cruft from copy-n-paste.
45524         Reported by Bruno Haible.
45525
45526 2008-01-10  Bruno Haible  <bruno@clisp.org>
45527
45528         Make c-strstr rely on strstr.
45529         * lib/c-strstr.c: Don't include str-kmp.h.
45530         (c_strstr): Define in terms of strstr.
45531         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45532         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45533
45534 2008-01-10  Bruno Haible  <bruno@clisp.org>
45535
45536         * doc/gnulib.texi (String Functions in C Locale): New section.
45537         * doc/c-ctype.texi: New file.
45538         * doc/c-strcase.texi: New file.
45539         * doc/c-strcaseeq.texi: New file.
45540         * doc/c-strcasestr.texi: New file.
45541         * doc/c-strstr.texi: New file.
45542         * doc/c-strtod.texi: New file.
45543         * doc/c-strtold.texi: New file.
45544
45545 2008-01-10  Eric Blake  <ebb9@byu.net>
45546
45547         * lib/relocatable.h: Fix a comment.
45548
45549 2008-01-10  Eric Blake  <ebb9@byu.net>
45550
45551         Share two-way algorithm.
45552         * lib/str-two-way.h: New file, merged from...
45553         * lib/memmem.c: ...here...
45554         * lib/strstr.c: ...and here.
45555         * modules/memmem (Files): Use it.
45556         * modules/strstr (Files): Likewise.
45557
45558         Avoid quadratic strstr implementations.
45559         * lib/strstr.c: New file.
45560         * m4/strstr.m4: Likewise.
45561         * modules/strstr: Likewise.
45562         * modules/strstr-tests: Likewise.
45563         * tests/test-strstr.c: Likewise.
45564         * lib/string.in.h (rpl_strstr): Declare.
45565         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45567         * modules/string (Makefile.am): Likewise.
45568         * MODULES.html.sh (string handling): Mention new module.
45569         * doc/functions/strstr.texi (strstr): Document the bug.
45570
45571 2008-01-10  Bruno Haible  <bruno@clisp.org>
45572
45573         * lib/relocatable.h (relocate): State whether result is freshly
45574         allocated or not.
45575         * lib/relocatable.c (relocate): Return a freshly allocated string
45576         instead of a pointer to a privately held string.
45577         Reported by Sylvain Beucler <beuc@gnu.org>.
45578
45579 2008-01-10  Colin Watson  <cjwatson@debian.org>
45580
45581         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45582         s/S_ISNLK/S_ISLNK/.
45583
45584 2008-01-09  Bruno Haible  <bruno@clisp.org>
45585
45586         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45587         and other files.
45588         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45589         if it's only a guess.
45590         * modules/memmem: Simplify by depending on memmem-simple.
45591
45592 2008-01-09  Bruno Haible  <bruno@clisp.org>
45593
45594         Work around OpenBSD 4.0 tdelete() bug.
45595         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45596         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45597         macros and don't redefine the enum values.
45598         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45599         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45600         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45601
45602 2008-01-09  Bruno Haible  <bruno@clisp.org>
45603
45604         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45605         (main): Don't perform the tests if setlocale did not install a UTF-8
45606         locale. Needed on OpenBSD 4.0.
45607         * modules/wcwidth-tests (Depends-on): Add localcharset.
45608
45609 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45610
45611         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45612         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45613         * NEWS: announce this.
45614         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45615
45616 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45617         and Eric Blake  <ebb9@byu.net>
45618
45619         Add memmem-simple module.
45620         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45621         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45622         * modules/memmem-simple: New file.
45623         * modules/memmem (Description): Tweak.
45624         * MODULES.html.sh (string handling): Mention new module.
45625         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45626         addressed by memmem-simple.
45627         * NEWS: Document the difference.
45628
45629 2008-01-09  Eric Blake  <ebb9@byu.net>
45630
45631         Give gcc some memmem optimization hints.
45632         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45633         (strcasestr): Declare as pure.
45634         * modules/memmem (Maintainer): Claim my implementation.
45635
45636 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45637
45638         Support AIX 6.1 and higher.
45639         * build-aux/config.libpath: Likewise.
45640         * build-aux/config.rpath: Likewise.
45641
45642 2008-01-08  Jim Meyering  <meyering@redhat.com>
45643             Bruno Haible  <bruno@clisp.org>
45644
45645         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45646         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45647         Reported by Peter Fales in
45648         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45649
45650 2008-01-08  Bruno Haible  <bruno@clisp.org>
45651
45652         * modules/unictype/category-of (Depends-on): Add
45653         unictype/category-none.
45654         * modules/unictype/category-and-tests (Depends-on): Add
45655         unictype/category-{L,N,Lu,Nd}.
45656         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45657         * modules/unictype/category-or-tests (Depends-on): Add
45658         unictype/category-{L,N}.
45659         * modules/unictype/category-name-tests (Depends-on): Add
45660         unictype/category-{Z,Nl}.
45661         Reported by Simon Josefsson.
45662
45663 2008-01-08  Bruno Haible  <bruno@clisp.org>
45664
45665         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45666         convention better.
45667         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45668         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45669         Reported by Peter Miller <millerp@canb.auug.org.au>.
45670
45671 2008-01-08  Eric Blake  <ebb9@byu.net>
45672
45673         Rewrite memmem to guarantee linear complexity without malloc.
45674         * lib/memmem.c (memmem): Use Two-Way rather than
45675         Knuth-Morris-Pratt, to allow O(1) space usage.
45676         (critical_factorization, two_way_short_needle)
45677         (two_way_long_needle): New functions.
45678         (knuth_morris_pratt): Delete.
45679         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45680         Add stdint.
45681         * tests/test-memmem.c (main): Add tests for periodic needle and
45682         sublinear performance.
45683         * doc/functions/memmem.texi (memmem): Document other deficiencies
45684         in cygwin and older glibc.
45685
45686 2008-01-08  Bruno Haible  <bruno@clisp.org>
45687
45688         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45689         augmentation.
45690
45691 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45692
45693         Add a configure time option: --disable-acl.
45694         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45695         AC_ARG_ENABLE(acl).
45696
45697 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45698
45699         * tests/test-localename.c: Don't include obsolete "setenv.h".
45700
45701         * modules/localename-tests (Depends-on): Need unsetenv.
45702
45703 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45704
45705         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45706
45707 2008-01-06  Colin Watson  <cjwatson@debian.org>
45708
45709         * users.txt: Add man-db.
45710
45711 2008-01-07  Bruno Haible  <bruno@clisp.org>
45712
45713         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45714         previous section name.
45715
45716 2008-01-07  Bruno Haible  <bruno@clisp.org>
45717
45718         * lib/progname.c (set_program_name): Don't strip off a leading
45719         "lt-" prefix outside a .libs directory.
45720         Suggested by Paul Eggert.
45721
45722 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45723             Bruno Haible  <bruno@clisp.org>
45724
45725         Improve memory cleanup in 'relocatable' module.
45726         * lib/relocatable.h (compute_curr_prefix): Change return type to
45727         'char *'.
45728         * lib/relocatable.c (compute_curr_prefix): Change return type to
45729         'char *'. Free curr_installdir after use.
45730         (relocate): Free curr_prefix_better after use.
45731         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45732
45733 2008-01-01  Bruno Haible  <bruno@clisp.org>
45734
45735         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45736         failure on older glibc systems.
45737         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45738
45739 2008-01-05  Eric Blake  <ebb9@byu.net>
45740
45741         Avoid quadratic system memmem.
45742         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45743         Reported by Ralf Wildenhues.
45744
45745         Fix memmem test for mingw.
45746         * modules/memmem-tests (configure.ac): Check for alarm.
45747         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45748         it.
45749         * doc/functions/memmem.texi: New file.
45750         * doc/gnulib.texi (Function Substitutes): Add memmem.
45751         Reported by Bruno Haible.
45752
45753 2008-01-04  Bruno Haible  <bruno@clisp.org>
45754
45755         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45756         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45757         gl_HEADER_STRING_H_DEFAULTS.
45758
45759 2008-01-04  Eric Blake  <ebb9@byu.net>
45760
45761         Shorten duration of memmem test.
45762         * tests/test-memmem.c (main): Use alarm to declare failure if test
45763         is taking too long.
45764         Reported by Ralf Wildenhues.
45765
45766 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45767
45768         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45769         string, needed by strerror.
45770
45771 2008-01-03  Colin Watson  <cjwatson@debian.org>
45772             Bruno Haible  <bruno@clisp.org>
45773
45774         * doc/gnulib-tool.texi (Localization): New section.
45775
45776 2008-01-02  Bruno Haible  <bruno@clisp.org>
45777
45778         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45779         variables to 'unsigned char *' type.
45780         Reported by Paul Eggert.
45781
45782 2008-01-02  Jim Meyering  <jim@meyering.net>
45783
45784         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45785
45786 2007-12-31  Jim Meyering  <jim@meyering.net>
45787
45788         Avoid use of private FTS type name.
45789         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45790
45791 2007-12-30  Karl Berry  <karl@gnu.org>
45792
45793         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45794         work around defect in Texinfo and/or the standalone Info browser.
45795
45796 2007-12-30  Bruno Haible  <bruno@clisp.org>
45797
45798         Unify 5 copies of the KMP code.
45799         * lib/str-kmp.h: New file.
45800         * lib/c-strcasestr.c: Include str-kmp.h.
45801         (knuth_morris_pratt): Remove function.
45802         (c_strcasestr): Update.
45803         * lib/c-strstr.c: Include str-kmp.h.
45804         (knuth_morris_pratt): Remove function.
45805         (c_strcasestr): Update.
45806         * lib/mbscasestr.c: Include str-kmp.h.
45807         (knuth_morris_pratt_unibyte): Remove function.
45808         * lib/mbsstr.c: Include str-kmp.h.
45809         (knuth_morris_pratt_unibyte): Remove function.
45810         * lib/strcasestr.c: Include str-kmp.h.
45811         (knuth_morris_pratt): Remove function.
45812         (strcasestr): Update.
45813         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45814         * modules/c-strstr (Files): Likewise.
45815         * modules/mbscasestr (Files): Likewise.
45816         * modules/mbsstr (Files): Likewise.
45817         * modules/strcasestr (Files): Likewise.
45818         Suggested by Paul Eggert.
45819
45820 2007-12-30  Bruno Haible  <bruno@clisp.org>
45821
45822         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45823         defined.
45824
45825 2007-12-30  Bruno Haible  <bruno@clisp.org>
45826
45827         * lib/xmalloca.h: Include xalloc.h.
45828         (xnmalloca): New macro.
45829
45830 2007-12-30  Bruno Haible  <bruno@clisp.org>
45831
45832         * lib/malloca.h (nmalloca): New macro.
45833         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45834         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45835         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45836         knuth_morris_pratt_multibyte): Likewise.
45837         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45838         knuth_morris_pratt_multibyte): Likewise.
45839         * lib/memmem.c (knuth_morris_pratt): Likewise.
45840         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45841
45842 2007-12-25  Bruno Haible  <bruno@clisp.org>
45843
45844         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45845         * lib/glob.c: Don't include openat.h.
45846         (link_exists2_p): Add back the code that deals with the
45847         !GLOB_ALTDIRFUNC case.
45848         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45849         let it do the filename concatenation.
45850         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45851         * modules/glob (Depends-on): Remove openat.
45852
45853 2007-12-31  Bruno Haible  <bruno@clisp.org>
45854
45855         * modules/dirfd (License): Change to LGPLv2+.
45856         Approved by Jim Meyering.
45857
45858 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45859
45860         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45861         when multiplying M by sizeof (size_t).
45862
45863 2007-12-10  Martin Lambers  <marlam@marlam.de>
45864
45865         Override getpagesize on mingw.
45866         * lib/getpagesize.c: New file.
45867         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45868         * modules/getpagesize (Files): Add lib/getpagesize.c.
45869         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45871         REPLACE_GETPAGESIZE.
45872         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45873
45874 2007-12-25  Bruno Haible  <bruno@clisp.org>
45875
45876         * modules/localcharset (Notice): New field.
45877         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45878         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45879
45880 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45881             Bruno Haible  <bruno@clisp.org>
45882
45883         Avoid using the syntax symbol() in formatted documentation.
45884         * MODULES.html.sh (func_module): When replacing symbol() with a
45885         hyperlink, remove the parentheses. Show an error if some remain.
45886         Recognize and render the '...' syntax.
45887         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45888         Rework. Add paragraph about GCC's inlining.
45889         * doc/alloca.texi: Likewise.
45890         * doc/error.texi: Remove parentheses from symbol reference.
45891         * doc/gnulib-intro.texi: Likewise.
45892         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45893         * modules/fnmatch (Description): Reword to say "the ... function".
45894         * modules/full-read (Description): Likewise.
45895         * modules/full-write (Description): Likewise.
45896         * modules/safe-read (Description): Likewise.
45897         * modules/safe-write (Description): Likewise.
45898         * modules/strchrnul (Description): Likewise.
45899         * modules/trim (Description): Likewise.
45900         * modules/error (Description): Remove parentheses from symbol
45901         references.
45902         * modules/verror (Description): Likewise.
45903         Reported by Karl Berry.
45904
45905 2007-12-25  Bruno Haible  <bruno@clisp.org>
45906
45907         Fixup after 2007-10-16 commit.
45908         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45909
45910 2007-12-24  Bruno Haible  <bruno@clisp.org>
45911
45912         Make --enable-relocatable work with DESTDIR.
45913         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45914         to compute installdir from destprog.
45915         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45916         also set the RELOC_DESTDIR variable.
45917         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45918
45919 2007-12-24  Bruno Haible  <bruno@clisp.org>
45920
45921         Fix link error due to xalloc_die().
45922         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45923         of xreadlink.
45924         * lib/relocwrapper.c: Update comments.
45925         * build-aux/install-reloc: Remove xreadlink.c from file list.
45926         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45927         xreadlink.c.
45928         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45929
45930 2007-12-24  Bruno Haible  <bruno@clisp.org>
45931
45932         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45933         * lib/setenv.h: Remove file.
45934         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45935         lib/setenv.h.
45936         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45937         (Depends-on): Add stdlib.
45938         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45939         gl_FUNC_UNSETENV.
45940         (Include): Replace setenv.h with <stdlib.h>.
45941         * modules/unsetenv: New file.
45942         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45943         * lib/unsetenv.c: Include <stdlib.h> first.
45944         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45945         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45946         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45947         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45948         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45949         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45951         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45952         * doc/functions/unsetenv.texi: Update.
45953         * modules/xsetenv (Depends-on): Add unsetenv.
45954         * modules/getdate (Depends-on): Likewise.
45955         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45956         * lib/xsetenv.c: Don't include setenv.h.
45957         * lib/getdate.y: Likewise.
45958         * lib/relocwrapper.c: Likewise.
45959         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45960         (Depends-on): Add stdlib.
45961         * NEWS: Mention the changes.
45962         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45963
45964 2007-12-23  Bruno Haible  <bruno@clisp.org>
45965
45966         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45967         indentation.
45968
45969 2007-12-23  Bruno Haible  <bruno@clisp.org>
45970
45971         * lib/c-strcasestr.c: Add more comments.
45972         * lib/c-strstr.c: Likewise.
45973         * lib/mbscasestr.c: Likewise.
45974         * lib/mbsstr.c: Likewise.
45975         * lib/strcasestr.c: Likewise.
45976         * lib/memmem.c: Likewise.
45977
45978 2007-12-23  Bruno Haible  <bruno@clisp.org>
45979
45980         * tests/test-memmem.c: Include <string.h> first.
45981
45982 2007-12-22  Bruno Haible  <bruno@clisp.org>
45983
45984         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45985         the contents of $testsbase.
45986         Reported by Ralf Wildenhues.
45987
45988 2007-12-22  Bruno Haible  <bruno@clisp.org>
45989
45990         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45991         two variables local_ldadd_before, local_ldadd_last.
45992
45993 2007-12-20  Eric Blake  <ebb9@byu.net>
45994
45995         Work around circular library issue when cross-compiling.
45996         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45997         that progname.o does not need to pull in rpl_memcmp.
45998
45999 2007-12-19  Eric Blake  <ebb9@byu.net>
46000
46001         Fix memmem to avoid O(n^2) worst-case complexity.
46002         * lib/memmem.c (knuth_morris_pratt): New function.
46003         (memmem): Use it if first few naive iterations fail.
46004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
46005         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
46006         * modules/memchr (License): Likewise.
46007         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
46008         malloca.
46009         * tests/test-memmem.c: Rewrite, borrowing ideas from
46010         test-mbsstr1.c; the old version wouldn't even compile!
46011         * modules/memmem-tests: New file.
46012         * lib/string.in.h (rpl_memmem): Add declaration.
46013         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
46014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
46015         REPLACE_MEMMEM.
46016
46017 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46018
46019         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
46020         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
46021         before any system include files, and undef after them all.  This
46022         should fix a problem on VMS reported by John E. Malmberg in
46023         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
46024
46025 2007-12-17  Eric Blake  <ebb9@byu.net>
46026
46027         Revert addition of verify, for BSD/OS.
46028         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
46029         can't handle large files, for the sake of obsolete platforms.
46030         * modules/fseeko (Depends-on): Remove verify.
46031         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
46032         * doc/functions/ftello.texi (ftello): Likewise.
46033         * doc/functions/fgetpos.texi (fgetpos): Likewise.
46034         Reported by Larry Jones.
46035
46036 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
46037
46038         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
46039         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
46040
46041 2007-12-17  Jim Meyering  <meyering@redhat.com>
46042
46043         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
46044         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
46045         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
46046         * modules/getcwd (Depends-on): Add openat.
46047         Reported by Petr Salinger.
46048
46049 2007-12-17  Bruno Haible  <bruno@clisp.org>
46050
46051         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
46052         avoid a segmentation fault of the configure test on x86_64 systems.
46053
46054 2007-12-15  Jim Meyering  <meyering@redhat.com>
46055
46056         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
46057
46058 2007-12-13  Eric Blake  <ebb9@byu.net>
46059
46060         Another fseek test.
46061         * tests/test-fseek.c (main): Also test ungetc handling.
46062         * tests/test-fseeko.c (main): Likewise.
46063         * modules/fseeko (Depends-on): Add verify.
46064         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
46065         large.
46066         Reported by Larry Jones.
46067
46068         Fix fseeko on mingw.
46069         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
46070         seek.
46071
46072         Beef up fseek tests.
46073         * tests/test-fseek.c (main): Also test eof handling.
46074         * tests/test-fseeko.c (main): Likewise.
46075         Reported by Larry Jones.
46076
46077 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
46078
46079         Fix fseeko on BSD-based platforms.
46080         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
46081         successful seek.
46082
46083 2007-12-12  Eric Blake  <ebb9@byu.net>
46084
46085         Allow circular dependency of separate libtests.a
46086         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
46087         when use_libtests.
46088
46089 2007-12-11  Eric Blake  <ebb9@byu.net>
46090
46091         Fix bug with -0.0L in previous patch.
46092         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
46093         * tests/test-isnan.c (main): Also test on zeroes.
46094         * tests/test-isnanf.c (main): Likewise.
46095         * tests/test-isnanl.h (main): Likewise.
46096
46097         Detect pseudo-denormals on x86 even when cross-compiling.
46098         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
46099         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
46100         invalid bit patterns that happen to satisfy ==.
46101
46102         Avoid link failures with separate libtests.a.
46103         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
46104         last, to satisfy circular dependencies.
46105
46106 2007-12-11  Eric Blake  <ebb9@byu.net>
46107         and Bruno Haible  <bruno@clisp.org>
46108
46109         Fix OpenBSD 4.0 <float.h> handling of long double.
46110         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
46111         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
46112         * doc/headers/float.texi (float.h): Document OpenBSD bug.
46113
46114 2007-12-11  Jim Meyering  <meyering@redhat.com>
46115
46116         * users.txt: Add libvirt.
46117
46118         Support versions of autoconf prior to 2.59c.
46119         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
46120         if it is not already defined.
46121
46122 2007-12-09  Bruno Haible  <bruno@clisp.org>
46123
46124         Let 'gnulib-tool --import' collect sources needed for the tests in
46125         tests/ rather than in lib/.
46126         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
46127         argument. If true, add rules to generate libtests.a, and put libtests.a
46128         into $(LDADD). Consider source files in subdirectories and set
46129         uses_subdirs.
46130         (func_emit_initmacro_start, func_emit_initmacro_end,
46131         func_emit_initmacro_done): Pass all arguments explicitly.
46132         (func_import): Determine two module lists main_modules,
46133         testsrelated_modules. Determine use_libtests. Determine two variables
46134         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
46135         instead of just sed_transform_lib_file. Determine two variables
46136         main_files and testsrelated_files. Compute 'files' as the union of
46137         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
46138         func_add_or_update. In the generated gnulib-comp.m4, collect the
46139         object files for tests/ in different variables than those for lib/.
46140         Substitute LIBTESTS_LIBDEPS.
46141         (func_create_testdir): Combine the uses_subdirs results from
46142         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
46143
46144 2007-12-09  Bruno Haible  <bruno@clisp.org>
46145
46146         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
46147         the build-aux directory.
46148
46149 2007-12-09  Bruno Haible  <bruno@clisp.org>
46150
46151         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
46152         introduced on 2006-09-09.
46153
46154 2007-12-07  Jim Meyering  <meyering@redhat.com>
46155
46156         Let these macros work also with autoconf-2.59.
46157         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
46158         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
46159         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46160
46161 2007-12-06  Jim Meyering  <meyering@redhat.com>
46162
46163         Avoid a configure-time syntax error in gl_FUNC_ACL.
46164         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
46165         function in each branch, before testing the cache variable.
46166
46167 2007-12-04  Eric Blake  <ebb9@byu.net>
46168
46169         Make scripts executable.
46170         * build-aux/config.guess: Add execute permissions.
46171         * build-aux/config.sub: Likewise.
46172         * build-aux/gendocs.sh: Likewise.
46173
46174         Fix frexp on mingw.
46175         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
46176         cross-compiling.
46177         * doc/functions/frexp.texi (frexp): Document the bug.
46178
46179         Make cygwin fseeko check more reliable.
46180         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
46181         version numbers, rather than unrelated feature check.
46182         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
46183         * doc/functions/ftello.texi (ftello): Likewise.
46184         Reported by Bruno Haible.
46185
46186         * m4/strerror.m4: Bump version number.
46187
46188 2007-12-03  Bruno Haible  <bruno@clisp.org>
46189
46190         * doc/functions/mprotect.texi: Mention the mingw problem.
46191
46192 2007-12-03  Eric Blake  <ebb9@byu.net>
46193
46194         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
46195         REPLACE_STRERROR is initialized before this macro.
46196
46197 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46198
46199         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
46200         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
46201         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
46202         put -lsec in even for programs other than 'ls'.  This fixes a problem
46203         for gettext reported by Bruno Haible in
46204         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
46205         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46206         Add support for Solaris 10.  This isn't efficient, but should get the
46207         job done for now.
46208
46209 2007-12-03  James Youngman  <jay@gnu.org>
46210
46211         * doc/regexprops-generic.texi: change "an close-group" to "a
46212         close-group" and "illegal" to "not allowed".
46213
46214 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46215
46216         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
46217         pr_byname.h. Needed for the rare case when the maintainer has done
46218         "make maintainer-clean" in the source directory and then attempts a
46219         build outside the source directory.
46220         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
46221         scripts_byname.h.
46222
46223 2007-12-02  Martin Lambers <marlam@marlam.de>
46224             Bruno Haible  <bruno@clisp.org>
46225
46226         * lib/getpagesize.h: Remove file.
46227         * lib/unistd.in.h: Include declaration of getpagesize here.
46228         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
46229         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
46230         HAVE_SYS_PARAM_H.
46231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
46232         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46233         * modules/getpagesize (Files): Remove lib/getpagesize.h.
46234         (Depends-on): Add unistd.
46235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46236         (Include): Use <unistd.h> instead of getpagesize.h.
46237         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
46238         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46239         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
46240         gl_GETPAGESIZE invocation, already handled by module dependency.
46241         * lib/pagealign_alloc.c: Don't include getpagesize.h.
46242
46243 2007-12-02  Bruno Haible  <bruno@clisp.org>
46244
46245         * modules/strings-tests: New file.
46246         * tests/test-strings.c: New file.
46247
46248         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
46249         * lib/strings.in.h: New file.
46250         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
46251         * m4/strings_h.m4: New file.
46252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
46253         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
46254         * modules/strings: New file.
46255         * modules/string (Makefile.am): Update.
46256         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
46257         Reported by Karl Berry.
46258
46259 2007-12-01  Eric Blake  <ebb9@byu.net>
46260
46261         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
46262         accomodate fix in cygwin 1.5.25.
46263
46264 2007-12-01  Jim Meyering  <meyering@redhat.com>
46265
46266         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
46267         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
46268         that would inhibit utf8-optimization of a regexp containing line-
46269         or buffer-anchors, e.g., `^', `$'.
46270
46271 2007-11-30  Bruno Haible  <bruno@clisp.org>
46272
46273         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
46274         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
46275         glthread_recursive_lock_init.
46276         * lib/lock.c (glthread_recursive_lock_init)
46277         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
46278         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46279
46280 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
46281
46282         New function qset_acl, like set_acl but with syscall semantics.
46283         * lib/acl.h (qset_acl): New decl.
46284         * lib/acl.c (qset_acl): New function.
46285         (set_acl): Use new function.  Use more-consistent diagnostics.
46286
46287 2007-11-28  Jim Meyering  <meyering@redhat.com>
46288
46289         * modules/physmem (License): Change from GPL to LGPLv2+.
46290
46291 2007-11-26  Bruno Haible  <bruno@clisp.org>
46292
46293         * lib/vasnprintf.c (decode_long_double): Don't abort if the
46294         'long double' type has excess precision.
46295         Reported by Jim Meyering in
46296         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
46297
46298 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46299
46300         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
46301         Sync from <http://gnu.org/licenses>.
46302         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
46303         with license text from same location.
46304         * doc/maintain.texi, doc/standards.texi:  Sync from
46305         <http://savannah.gnu.org/projects/gnustandards>.
46306
46307 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
46308         and Jim Meyering  <meyering@redhat.com>
46309
46310         Adjust getdate' grammar to accept a slightly more regular language.
46311         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
46312         Before, the former was rejected.
46313         * lib/getdate.y (digits_to_date_time): New function, factored
46314         out of ...
46315         (number): ...here.  Just call digits_to_date_time.
46316         (hybrid): New non-terminal to handle an <unsigned number,
46317         signed relative offset> sequence consistently.
46318
46319 2007-11-18  Jim Meyering  <meyering@redhat.com>
46320
46321         Pull my changes from coreutils:
46322         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
46323         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
46324         use of $gnulib_tool_option_extras, so that it's separated from the
46325         preceding argument.
46326
46327         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
46328         * build-aux/bootstrap (cp_mark_as_generated): Create any required
46329         parent destination directories before copying a file into place.
46330
46331 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46332
46333         bootstrap: work also with 4-argument variant of AC_INIT
46334         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
46335
46336 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46337
46338         Port test-getaddrinfo to Solaris.
46339         Problem reported by Bruno Haible in
46340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
46341         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
46342         explanation of setting 'hints'.
46343         Don't reject an implementation merely because it returns EAI_SERVICE.
46344         (EAI_SERVICE): Define to 0 if not defined.
46345
46346 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46347
46348         The license of gnu-make and posix-shell is now "GPLed build tool".
46349         * modules/gnu-make (License): Likewise.
46350         * modules/posix-shell (License): Likewise.
46351
46352         New module posix-shell, for determining a POSIX shell
46353         or perhaps something that is close enough to a POSIX shell.
46354         * m4/posix-shell.m4: New file.
46355         * modules/posix-shell: New file.
46356
46357         * MODULES.html.sh: Mention new module.
46358
46359         New module gnu-make, for determining whether we're using GNU Make.
46360         * m4/gnu-make.m4: New file.
46361         * modules/gnu-make: New file.
46362         * MODULES.html.sh: Mention new module.
46363
46364 2007-11-14  Jim Meyering  <meyering@redhat.com>
46365
46366         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
46367         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
46368         use this macro to create a function _definition_.
46369         Remove useless "#undef ARGMATCH_DIE".
46370
46371 2007-11-14  Bruno Haible  <bruno@clisp.org>
46372
46373         * lib/config.charset: Update for OpenBSD 4.1.
46374         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
46375
46376 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
46377
46378         Document 64-bit #if problems in stdint.texi.
46379         * doc/headers/stdint.texi (stdint.h): Mention problems with
46380         64-bit-#if, and how to work around them.
46381
46382         Don't insist on 'long long int' support in the preprocessor.  It
46383         breaks too many things.  For example, PRIdMAX still uses a 'long
46384         long int' format with the latest Sun compiler, even though
46385         HAVE_LONG_LONG_INT isn't defined due to that compiler's
46386         preprocessor problem.  This causes the latest coreutils to dump
46387         core on Solaris 10 sparc with the Sun C compiler.
46388         Instead, fix the 2007-10-16 problem in a different way, by evaluating
46389         the troublesome expressions at configure-time, not at #if-time.
46390         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
46391         preprocessor.
46392         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
46393         compile-time C checks, done at 'configure'-time.
46394         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
46395         * modules/inttypes (Makefile): Substitute the new symbols that
46396         gl_INTTYPES_H now generates.
46397         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
46398
46399 2007-11-12  Bruno Haible  <bruno@clisp.org>
46400
46401         Tests for Unicode character classification functions.
46402
46403         * modules/unictype/bidicategory-byname-tests: New file.
46404         * modules/unictype/bidicategory-name-tests: New file.
46405         * modules/unictype/bidicategory-of-tests: New file.
46406         * modules/unictype/bidicategory-test-tests: New file.
46407         * modules/unictype/block-list-tests: New file.
46408         * modules/unictype/block-of-tests: New file.
46409         * modules/unictype/block-test-tests: New file.
46410         * modules/unictype/category-C-tests: New file.
46411         * modules/unictype/category-Cc-tests: New file.
46412         * modules/unictype/category-Cf-tests: New file.
46413         * modules/unictype/category-Cn-tests: New file.
46414         * modules/unictype/category-Co-tests: New file.
46415         * modules/unictype/category-Cs-tests: New file.
46416         * modules/unictype/category-L-tests: New file.
46417         * modules/unictype/category-Ll-tests: New file.
46418         * modules/unictype/category-Lm-tests: New file.
46419         * modules/unictype/category-Lo-tests: New file.
46420         * modules/unictype/category-Lt-tests: New file.
46421         * modules/unictype/category-Lu-tests: New file.
46422         * modules/unictype/category-M-tests: New file.
46423         * modules/unictype/category-Mc-tests: New file.
46424         * modules/unictype/category-Me-tests: New file.
46425         * modules/unictype/category-Mn-tests: New file.
46426         * modules/unictype/category-N-tests: New file.
46427         * modules/unictype/category-Nd-tests: New file.
46428         * modules/unictype/category-Nl-tests: New file.
46429         * modules/unictype/category-No-tests: New file.
46430         * modules/unictype/category-P-tests: New file.
46431         * modules/unictype/category-Pc-tests: New file.
46432         * modules/unictype/category-Pd-tests: New file.
46433         * modules/unictype/category-Pe-tests: New file.
46434         * modules/unictype/category-Pf-tests: New file.
46435         * modules/unictype/category-Pi-tests: New file.
46436         * modules/unictype/category-Po-tests: New file.
46437         * modules/unictype/category-Ps-tests: New file.
46438         * modules/unictype/category-S-tests: New file.
46439         * modules/unictype/category-Sc-tests: New file.
46440         * modules/unictype/category-Sk-tests: New file.
46441         * modules/unictype/category-Sm-tests: New file.
46442         * modules/unictype/category-So-tests: New file.
46443         * modules/unictype/category-Z-tests: New file.
46444         * modules/unictype/category-Zl-tests: New file.
46445         * modules/unictype/category-Zp-tests: New file.
46446         * modules/unictype/category-Zs-tests: New file.
46447         * modules/unictype/category-and-not-tests: New file.
46448         * modules/unictype/category-and-tests: New file.
46449         * modules/unictype/category-byname-tests: New file.
46450         * modules/unictype/category-name-tests: New file.
46451         * modules/unictype/category-none-tests: New file.
46452         * modules/unictype/category-of-tests: New file.
46453         * modules/unictype/category-or-tests: New file.
46454         * modules/unictype/category-test-withtable-tests: New file.
46455         * modules/unictype/combining-class-tests: New file.
46456         * modules/unictype/ctype-alnum-tests: New file.
46457         * modules/unictype/ctype-alpha-tests: New file.
46458         * modules/unictype/ctype-blank-tests: New file.
46459         * modules/unictype/ctype-cntrl-tests: New file.
46460         * modules/unictype/ctype-digit-tests: New file.
46461         * modules/unictype/ctype-graph-tests: New file.
46462         * modules/unictype/ctype-lower-tests: New file.
46463         * modules/unictype/ctype-print-tests: New file.
46464         * modules/unictype/ctype-punct-tests: New file.
46465         * modules/unictype/ctype-space-tests: New file.
46466         * modules/unictype/ctype-upper-tests: New file.
46467         * modules/unictype/ctype-xdigit-tests: New file.
46468         * modules/unictype/decimal-digit-tests: New file.
46469         * modules/unictype/digit-tests: New file.
46470         * modules/unictype/mirror-tests: New file.
46471         * modules/unictype/numeric-tests: New file.
46472         * modules/unictype/property-alphabetic-tests: New file.
46473         * modules/unictype/property-ascii-hex-digit-tests: New file.
46474         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46475         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46476         * modules/unictype/property-bidi-block-separator-tests: New file.
46477         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46478         * modules/unictype/property-bidi-common-separator-tests: New file.
46479         * modules/unictype/property-bidi-control-tests: New file.
46480         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46481         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46482         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46483         * modules/unictype/property-bidi-european-digit-tests: New file.
46484         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46485         * modules/unictype/property-bidi-left-to-right-tests: New file.
46486         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46487         * modules/unictype/property-bidi-other-neutral-tests: New file.
46488         * modules/unictype/property-bidi-pdf-tests: New file.
46489         * modules/unictype/property-bidi-segment-separator-tests: New file.
46490         * modules/unictype/property-bidi-whitespace-tests: New file.
46491         * modules/unictype/property-byname-tests: New file.
46492         * modules/unictype/property-combining-tests: New file.
46493         * modules/unictype/property-composite-tests: New file.
46494         * modules/unictype/property-currency-symbol-tests: New file.
46495         * modules/unictype/property-dash-tests: New file.
46496         * modules/unictype/property-decimal-digit-tests: New file.
46497         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46498         * modules/unictype/property-deprecated-tests: New file.
46499         * modules/unictype/property-diacritic-tests: New file.
46500         * modules/unictype/property-extender-tests: New file.
46501         * modules/unictype/property-format-control-tests: New file.
46502         * modules/unictype/property-grapheme-base-tests: New file.
46503         * modules/unictype/property-grapheme-extend-tests: New file.
46504         * modules/unictype/property-grapheme-link-tests: New file.
46505         * modules/unictype/property-hex-digit-tests: New file.
46506         * modules/unictype/property-hyphen-tests: New file.
46507         * modules/unictype/property-id-continue-tests: New file.
46508         * modules/unictype/property-id-start-tests: New file.
46509         * modules/unictype/property-ideographic-tests: New file.
46510         * modules/unictype/property-ids-binary-operator-tests: New file.
46511         * modules/unictype/property-ids-trinary-operator-tests: New file.
46512         * modules/unictype/property-ignorable-control-tests: New file.
46513         * modules/unictype/property-iso-control-tests: New file.
46514         * modules/unictype/property-join-control-tests: New file.
46515         * modules/unictype/property-left-of-pair-tests: New file.
46516         * modules/unictype/property-line-separator-tests: New file.
46517         * modules/unictype/property-logical-order-exception-tests: New file.
46518         * modules/unictype/property-lowercase-tests: New file.
46519         * modules/unictype/property-math-tests: New file.
46520         * modules/unictype/property-non-break-tests: New file.
46521         * modules/unictype/property-not-a-character-tests: New file.
46522         * modules/unictype/property-numeric-tests: New file.
46523         * modules/unictype/property-other-alphabetic-tests: New file.
46524         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46525         * modules/unictype/property-other-grapheme-extend-tests: New file.
46526         * modules/unictype/property-other-id-continue-tests: New file.
46527         * modules/unictype/property-other-id-start-tests: New file.
46528         * modules/unictype/property-other-lowercase-tests: New file.
46529         * modules/unictype/property-other-math-tests: New file.
46530         * modules/unictype/property-other-uppercase-tests: New file.
46531         * modules/unictype/property-paired-punctuation-tests: New file.
46532         * modules/unictype/property-paragraph-separator-tests: New file.
46533         * modules/unictype/property-pattern-syntax-tests: New file.
46534         * modules/unictype/property-pattern-white-space-tests: New file.
46535         * modules/unictype/property-private-use-tests: New file.
46536         * modules/unictype/property-punctuation-tests: New file.
46537         * modules/unictype/property-quotation-mark-tests: New file.
46538         * modules/unictype/property-radical-tests: New file.
46539         * modules/unictype/property-sentence-terminal-tests: New file.
46540         * modules/unictype/property-soft-dotted-tests: New file.
46541         * modules/unictype/property-space-tests: New file.
46542         * modules/unictype/property-terminal-punctuation-tests: New file.
46543         * modules/unictype/property-test-tests: New file.
46544         * modules/unictype/property-titlecase-tests: New file.
46545         * modules/unictype/property-unassigned-code-value-tests: New file.
46546         * modules/unictype/property-unified-ideograph-tests: New file.
46547         * modules/unictype/property-uppercase-tests: New file.
46548         * modules/unictype/property-variation-selector-tests: New file.
46549         * modules/unictype/property-white-space-tests: New file.
46550         * modules/unictype/property-xid-continue-tests: New file.
46551         * modules/unictype/property-xid-start-tests: New file.
46552         * modules/unictype/property-zero-width-tests: New file.
46553         * modules/unictype/scripts-tests: New file.
46554         * modules/unictype/syntax-c-ident-tests: New file.
46555         * modules/unictype/syntax-c-whitespace-tests: New file.
46556         * modules/unictype/syntax-java-ident-tests: New file.
46557         * modules/unictype/syntax-java-whitespace-tests: New file.
46558         * tests/unictype/test-bidi_byname.c: New file.
46559         * tests/unictype/test-bidi_name.c: New file.
46560         * tests/unictype/test-bidi_of.c: New file.
46561         * tests/unictype/test-bidi_test.c: New file.
46562         * tests/unictype/test-block_list.c: New file.
46563         * tests/unictype/test-block_of.c: New file.
46564         * tests/unictype/test-block_test.c: New file.
46565         * tests/unictype/test-categ_and.c: New file.
46566         * tests/unictype/test-categ_and_not.c: New file.
46567         * tests/unictype/test-categ_byname.c: New file.
46568         * tests/unictype/test-categ_name.c: New file.
46569         * tests/unictype/test-categ_none.c: New file.
46570         * tests/unictype/test-categ_of.c: New file.
46571         * tests/unictype/test-categ_or.c: New file.
46572         * tests/unictype/test-categ_test_withtable.c: New file.
46573         * tests/unictype/test-combining.c: New file.
46574         * tests/unictype/test-decdigit.c: New file.
46575         * tests/unictype/test-digit.c: New file.
46576         * tests/unictype/test-mirror.c: New file.
46577         * tests/unictype/test-numeric.c: New file.
46578         * tests/unictype/test-pr_byname.c: New file.
46579         * tests/unictype/test-pr_test.c: New file.
46580         * tests/unictype/test-predicate-part1.h: New file.
46581         * tests/unictype/test-predicate-part2.h: New file.
46582         * tests/unictype/test-scripts.c: New file.
46583         * tests/unictype/test-sy_c_ident.c: New file.
46584         * tests/unictype/test-sy_java_ident.c: New file.
46585
46586         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46587         for Unicode 5.0.0.
46588         * tests/unictype/test-categ_Cc.c: Likewise.
46589         * tests/unictype/test-categ_Cf.c: Likewise.
46590         * tests/unictype/test-categ_Cn.c: Likewise.
46591         * tests/unictype/test-categ_Co.c: Likewise.
46592         * tests/unictype/test-categ_Cs.c: Likewise.
46593         * tests/unictype/test-categ_L.c: Likewise.
46594         * tests/unictype/test-categ_Ll.c: Likewise.
46595         * tests/unictype/test-categ_Lm.c: Likewise.
46596         * tests/unictype/test-categ_Lo.c: Likewise.
46597         * tests/unictype/test-categ_Lt.c: Likewise.
46598         * tests/unictype/test-categ_Lu.c: Likewise.
46599         * tests/unictype/test-categ_M.c: Likewise.
46600         * tests/unictype/test-categ_Mc.c: Likewise.
46601         * tests/unictype/test-categ_Me.c: Likewise.
46602         * tests/unictype/test-categ_Mn.c: Likewise.
46603         * tests/unictype/test-categ_N.c: Likewise.
46604         * tests/unictype/test-categ_Nd.c: Likewise.
46605         * tests/unictype/test-categ_Nl.c: Likewise.
46606         * tests/unictype/test-categ_No.c: Likewise.
46607         * tests/unictype/test-categ_P.c: Likewise.
46608         * tests/unictype/test-categ_Pc.c: Likewise.
46609         * tests/unictype/test-categ_Pd.c: Likewise.
46610         * tests/unictype/test-categ_Pe.c: Likewise.
46611         * tests/unictype/test-categ_Pf.c: Likewise.
46612         * tests/unictype/test-categ_Pi.c: Likewise.
46613         * tests/unictype/test-categ_Po.c: Likewise.
46614         * tests/unictype/test-categ_Ps.c: Likewise.
46615         * tests/unictype/test-categ_S.c: Likewise.
46616         * tests/unictype/test-categ_Sc.c: Likewise.
46617         * tests/unictype/test-categ_Sk.c: Likewise.
46618         * tests/unictype/test-categ_Sm.c: Likewise.
46619         * tests/unictype/test-categ_So.c: Likewise.
46620         * tests/unictype/test-categ_Z.c: Likewise.
46621         * tests/unictype/test-categ_Zl.c: Likewise.
46622         * tests/unictype/test-categ_Zp.c: Likewise.
46623         * tests/unictype/test-categ_Zs.c: Likewise.
46624         * tests/unictype/test-ctype_alnum.c: Likewise.
46625         * tests/unictype/test-ctype_alpha.c: Likewise.
46626         * tests/unictype/test-ctype_blank.c: Likewise.
46627         * tests/unictype/test-ctype_cntrl.c: Likewise.
46628         * tests/unictype/test-ctype_digit.c: Likewise.
46629         * tests/unictype/test-ctype_graph.c: Likewise.
46630         * tests/unictype/test-ctype_lower.c: Likewise.
46631         * tests/unictype/test-ctype_print.c: Likewise.
46632         * tests/unictype/test-ctype_punct.c: Likewise.
46633         * tests/unictype/test-ctype_space.c: Likewise.
46634         * tests/unictype/test-ctype_upper.c: Likewise.
46635         * tests/unictype/test-ctype_xdigit.c: Likewise.
46636         * tests/unictype/test-decdigit.h: Likewise.
46637         * tests/unictype/test-digit.h: Likewise.
46638         * tests/unictype/test-numeric.h: Likewise.
46639         * tests/unictype/test-pr_alphabetic.c: Likewise.
46640         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46641         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46642         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46643         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46644         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46645         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46646         * tests/unictype/test-pr_bidi_control.c: Likewise.
46647         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46648         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46649         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46650         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46651         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46652         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46653         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46654         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46655         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46656         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46657         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46658         * tests/unictype/test-pr_combining.c: Likewise.
46659         * tests/unictype/test-pr_composite.c: Likewise.
46660         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46661         * tests/unictype/test-pr_dash.c: Likewise.
46662         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46663         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46664         * tests/unictype/test-pr_deprecated.c: Likewise.
46665         * tests/unictype/test-pr_diacritic.c: Likewise.
46666         * tests/unictype/test-pr_extender.c: Likewise.
46667         * tests/unictype/test-pr_format_control.c: Likewise.
46668         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46669         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46670         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46671         * tests/unictype/test-pr_hex_digit.c: Likewise.
46672         * tests/unictype/test-pr_hyphen.c: Likewise.
46673         * tests/unictype/test-pr_id_continue.c: Likewise.
46674         * tests/unictype/test-pr_id_start.c: Likewise.
46675         * tests/unictype/test-pr_ideographic.c: Likewise.
46676         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46677         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46678         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46679         * tests/unictype/test-pr_iso_control.c: Likewise.
46680         * tests/unictype/test-pr_join_control.c: Likewise.
46681         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46682         * tests/unictype/test-pr_line_separator.c: Likewise.
46683         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46684         * tests/unictype/test-pr_lowercase.c: Likewise.
46685         * tests/unictype/test-pr_math.c: Likewise.
46686         * tests/unictype/test-pr_non_break.c: Likewise.
46687         * tests/unictype/test-pr_not_a_character.c: Likewise.
46688         * tests/unictype/test-pr_numeric.c: Likewise.
46689         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46690         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46691         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46692         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46693         * tests/unictype/test-pr_other_id_start.c: Likewise.
46694         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46695         * tests/unictype/test-pr_other_math.c: Likewise.
46696         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46697         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46698         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46699         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46700         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46701         * tests/unictype/test-pr_private_use.c: Likewise.
46702         * tests/unictype/test-pr_punctuation.c: Likewise.
46703         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46704         * tests/unictype/test-pr_radical.c: Likewise.
46705         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46706         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46707         * tests/unictype/test-pr_space.c: Likewise.
46708         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46709         * tests/unictype/test-pr_titlecase.c: Likewise.
46710         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46711         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46712         * tests/unictype/test-pr_uppercase.c: Likewise.
46713         * tests/unictype/test-pr_variation_selector.c: Likewise.
46714         * tests/unictype/test-pr_white_space.c: Likewise.
46715         * tests/unictype/test-pr_xid_continue.c: Likewise.
46716         * tests/unictype/test-pr_xid_start.c: Likewise.
46717         * tests/unictype/test-pr_zero_width.c: Likewise.
46718         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46719         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46720
46721 2007-11-12  Bruno Haible  <bruno@clisp.org>
46722
46723         Unicode character classification functions.
46724         * lib/unictype.h: New file.
46725         * modules/unictype/base: New file.
46726         * modules/unictype/category-L: New file.
46727         * modules/unictype/category-Lu: New file.
46728         * modules/unictype/category-Ll: New file.
46729         * modules/unictype/category-Lt: New file.
46730         * modules/unictype/category-Lm: New file.
46731         * modules/unictype/category-Lo: New file.
46732         * modules/unictype/category-M: New file.
46733         * modules/unictype/category-Mn: New file.
46734         * modules/unictype/category-Mc: New file.
46735         * modules/unictype/category-Me: New file.
46736         * modules/unictype/category-N: New file.
46737         * modules/unictype/category-Nd: New file.
46738         * modules/unictype/category-Nl: New file.
46739         * modules/unictype/category-No: New file.
46740         * modules/unictype/category-P: New file.
46741         * modules/unictype/category-Pc: New file.
46742         * modules/unictype/category-Pd: New file.
46743         * modules/unictype/category-Ps: New file.
46744         * modules/unictype/category-Pe: New file.
46745         * modules/unictype/category-Pi: New file.
46746         * modules/unictype/category-Pf: New file.
46747         * modules/unictype/category-Po: New file.
46748         * modules/unictype/category-S: New file.
46749         * modules/unictype/category-Sm: New file.
46750         * modules/unictype/category-Sc: New file.
46751         * modules/unictype/category-Sk: New file.
46752         * modules/unictype/category-So: New file.
46753         * modules/unictype/category-Z: New file.
46754         * modules/unictype/category-Zs: New file.
46755         * modules/unictype/category-Zl: New file.
46756         * modules/unictype/category-Zp: New file.
46757         * modules/unictype/category-C: New file.
46758         * modules/unictype/category-Cc: New file.
46759         * modules/unictype/category-Cf: New file.
46760         * modules/unictype/category-Cs: New file.
46761         * modules/unictype/category-Co: New file.
46762         * modules/unictype/category-Cn: New file.
46763         * modules/unictype/category-or: New file.
46764         * modules/unictype/category-of: New file.
46765         * modules/unictype/category-test: New file.
46766         * modules/unictype/category-test-withtable: New file.
46767         * modules/unictype/category-byname: New file.
46768         * modules/unictype/category-none: New file.
46769         * modules/unictype/category-and: New file.
46770         * modules/unictype/category-and-not: New file.
46771         * modules/unictype/category-name: New file.
46772         * modules/unictype/combining-class: New file.
46773         * modules/unictype/category-all: New file.
46774         * modules/unictype/bidicategory-all: New file.
46775         * modules/unictype/bidicategory-byname: New file.
46776         * modules/unictype/bidicategory-name: New file.
46777         * modules/unictype/bidicategory-of: New file.
46778         * modules/unictype/bidicategory-test: New file.
46779         * modules/unictype/decimal-digit: New file.
46780         * modules/unictype/digit: New file.
46781         * modules/unictype/numeric: New file.
46782         * modules/unictype/mirror: New file.
46783         * modules/unictype/property-white-space: New file.
46784         * modules/unictype/property-alphabetic: New file.
46785         * modules/unictype/property-other-alphabetic: New file.
46786         * modules/unictype/property-not-a-character: New file.
46787         * modules/unictype/property-default-ignorable-code-point: New file.
46788         * modules/unictype/property-other-default-ignorable-code-point: New
46789         file.
46790         * modules/unictype/property-deprecated: New file.
46791         * modules/unictype/property-logical-order-exception: New file.
46792         * modules/unictype/property-variation-selector: New file.
46793         * modules/unictype/property-private-use: New file.
46794         * modules/unictype/property-unassigned-code-value: New file.
46795         * modules/unictype/property-uppercase: New file.
46796         * modules/unictype/property-other-uppercase: New file.
46797         * modules/unictype/property-lowercase: New file.
46798         * modules/unictype/property-other-lowercase: New file.
46799         * modules/unictype/property-titlecase: New file.
46800         * modules/unictype/property-soft-dotted: New file.
46801         * modules/unictype/property-id-start: New file.
46802         * modules/unictype/property-other-id-start: New file.
46803         * modules/unictype/property-id-continue: New file.
46804         * modules/unictype/property-other-id-continue: New file.
46805         * modules/unictype/property-xid-start: New file.
46806         * modules/unictype/property-xid-continue: New file.
46807         * modules/unictype/property-pattern-white-space: New file.
46808         * modules/unictype/property-pattern-syntax: New file.
46809         * modules/unictype/property-join-control: New file.
46810         * modules/unictype/property-grapheme-base: New file.
46811         * modules/unictype/property-grapheme-extend: New file.
46812         * modules/unictype/property-other-grapheme-extend: New file.
46813         * modules/unictype/property-grapheme-link: New file.
46814         * modules/unictype/property-bidi-control: New file.
46815         * modules/unictype/property-bidi-left-to-right: New file.
46816         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46817         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46818         * modules/unictype/property-bidi-european-digit: New file.
46819         * modules/unictype/property-bidi-eur-num-separator: New file.
46820         * modules/unictype/property-bidi-eur-num-terminator: New file.
46821         * modules/unictype/property-bidi-arabic-digit: New file.
46822         * modules/unictype/property-bidi-common-separator: New file.
46823         * modules/unictype/property-bidi-block-separator: New file.
46824         * modules/unictype/property-bidi-segment-separator: New file.
46825         * modules/unictype/property-bidi-whitespace: New file.
46826         * modules/unictype/property-bidi-non-spacing-mark: New file.
46827         * modules/unictype/property-bidi-boundary-neutral: New file.
46828         * modules/unictype/property-bidi-pdf: New file.
46829         * modules/unictype/property-bidi-embedding-or-override: New file.
46830         * modules/unictype/property-bidi-other-neutral: New file.
46831         * modules/unictype/property-hex-digit: New file.
46832         * modules/unictype/property-ascii-hex-digit: New file.
46833         * modules/unictype/property-ideographic: New file.
46834         * modules/unictype/property-unified-ideograph: New file.
46835         * modules/unictype/property-radical: New file.
46836         * modules/unictype/property-ids-binary-operator: New file.
46837         * modules/unictype/property-ids-trinary-operator: New file.
46838         * modules/unictype/property-zero-width: New file.
46839         * modules/unictype/property-space: New file.
46840         * modules/unictype/property-non-break: New file.
46841         * modules/unictype/property-iso-control: New file.
46842         * modules/unictype/property-format-control: New file.
46843         * modules/unictype/property-dash: New file.
46844         * modules/unictype/property-hyphen: New file.
46845         * modules/unictype/property-punctuation: New file.
46846         * modules/unictype/property-line-separator: New file.
46847         * modules/unictype/property-paragraph-separator: New file.
46848         * modules/unictype/property-quotation-mark: New file.
46849         * modules/unictype/property-sentence-terminal: New file.
46850         * modules/unictype/property-terminal-punctuation: New file.
46851         * modules/unictype/property-currency-symbol: New file.
46852         * modules/unictype/property-math: New file.
46853         * modules/unictype/property-other-math: New file.
46854         * modules/unictype/property-paired-punctuation: New file.
46855         * modules/unictype/property-left-of-pair: New file.
46856         * modules/unictype/property-combining: New file.
46857         * modules/unictype/property-composite: New file.
46858         * modules/unictype/property-decimal-digit: New file.
46859         * modules/unictype/property-numeric: New file.
46860         * modules/unictype/property-diacritic: New file.
46861         * modules/unictype/property-extender: New file.
46862         * modules/unictype/property-ignorable-control: New file.
46863         * modules/unictype/property-test: New file.
46864         * modules/unictype/property-byname: New file.
46865         * modules/unictype/property-all: New file.
46866         * modules/unictype/scripts: New file.
46867         * modules/unictype/scripts-all: New file.
46868         * modules/unictype/block-of: New file.
46869         * modules/unictype/block-test: New file.
46870         * modules/unictype/block-list: New file.
46871         * modules/unictype/block-all: New file.
46872         * modules/unictype/syntax-c-whitespace: New file.
46873         * modules/unictype/syntax-java-whitespace: New file.
46874         * modules/unictype/syntax-c-ident: New file.
46875         * modules/unictype/syntax-java-ident: New file.
46876         * modules/unictype/ctype-alnum: New file.
46877         * modules/unictype/ctype-alpha: New file.
46878         * modules/unictype/ctype-cntrl: New file.
46879         * modules/unictype/ctype-digit: New file.
46880         * modules/unictype/ctype-graph: New file.
46881         * modules/unictype/ctype-lower: New file.
46882         * modules/unictype/ctype-print: New file.
46883         * modules/unictype/ctype-punct: New file.
46884         * modules/unictype/ctype-space: New file.
46885         * modules/unictype/ctype-upper: New file.
46886         * modules/unictype/ctype-xdigit: New file.
46887         * modules/unictype/ctype-blank: New file.
46888         * lib/unictype/bidi_byname.c: New file.
46889         * lib/unictype/bidi_name.c: New file.
46890         * lib/unictype/bidi_of.c: New file.
46891         * lib/unictype/bidi_test.c: New file.
46892         * lib/unictype/bitmap.h: New file.
46893         * lib/unictype/block_test.c: New file.
46894         * lib/unictype/blocks.c: New file.
46895         * lib/unictype/categ_C.c: New file.
46896         * lib/unictype/categ_Cc.c: New file.
46897         * lib/unictype/categ_Cf.c: New file.
46898         * lib/unictype/categ_Cn.c: New file.
46899         * lib/unictype/categ_Co.c: New file.
46900         * lib/unictype/categ_Cs.c: New file.
46901         * lib/unictype/categ_L.c: New file.
46902         * lib/unictype/categ_Ll.c: New file.
46903         * lib/unictype/categ_Lm.c: New file.
46904         * lib/unictype/categ_Lo.c: New file.
46905         * lib/unictype/categ_Lt.c: New file.
46906         * lib/unictype/categ_Lu.c: New file.
46907         * lib/unictype/categ_M.c: New file.
46908         * lib/unictype/categ_Mc.c: New file.
46909         * lib/unictype/categ_Me.c: New file.
46910         * lib/unictype/categ_Mn.c: New file.
46911         * lib/unictype/categ_N.c: New file.
46912         * lib/unictype/categ_Nd.c: New file.
46913         * lib/unictype/categ_Nl.c: New file.
46914         * lib/unictype/categ_No.c: New file.
46915         * lib/unictype/categ_P.c: New file.
46916         * lib/unictype/categ_Pc.c: New file.
46917         * lib/unictype/categ_Pd.c: New file.
46918         * lib/unictype/categ_Pe.c: New file.
46919         * lib/unictype/categ_Pf.c: New file.
46920         * lib/unictype/categ_Pi.c: New file.
46921         * lib/unictype/categ_Po.c: New file.
46922         * lib/unictype/categ_Ps.c: New file.
46923         * lib/unictype/categ_S.c: New file.
46924         * lib/unictype/categ_Sc.c: New file.
46925         * lib/unictype/categ_Sk.c: New file.
46926         * lib/unictype/categ_Sm.c: New file.
46927         * lib/unictype/categ_So.c: New file.
46928         * lib/unictype/categ_Z.c: New file.
46929         * lib/unictype/categ_Zl.c: New file.
46930         * lib/unictype/categ_Zp.c: New file.
46931         * lib/unictype/categ_Zs.c: New file.
46932         * lib/unictype/categ_and.c: New file.
46933         * lib/unictype/categ_and_not.c: New file.
46934         * lib/unictype/categ_byname.c: New file.
46935         * lib/unictype/categ_name.c: New file.
46936         * lib/unictype/categ_none.c: New file.
46937         * lib/unictype/categ_of.c: New file.
46938         * lib/unictype/categ_or.c: New file.
46939         * lib/unictype/categ_test.c: New file.
46940         * lib/unictype/combining.c: New file.
46941         * lib/unictype/ctype_alnum.c: New file.
46942         * lib/unictype/ctype_alpha.c: New file.
46943         * lib/unictype/ctype_blank.c: New file.
46944         * lib/unictype/ctype_cntrl.c: New file.
46945         * lib/unictype/ctype_digit.c: New file.
46946         * lib/unictype/ctype_graph.c: New file.
46947         * lib/unictype/ctype_lower.c: New file.
46948         * lib/unictype/ctype_print.c: New file.
46949         * lib/unictype/ctype_punct.c: New file.
46950         * lib/unictype/ctype_space.c: New file.
46951         * lib/unictype/ctype_upper.c: New file.
46952         * lib/unictype/ctype_xdigit.c: New file.
46953         * lib/unictype/decdigit.c: New file.
46954         * lib/unictype/digit.c: New file.
46955         * lib/unictype/identsyntaxmap.h: New file.
46956         * lib/unictype/mirror.c: New file.
46957         * lib/unictype/numeric.c: New file.
46958         * lib/unictype/pr_alphabetic.c: New file.
46959         * lib/unictype/pr_ascii_hex_digit.c: New file.
46960         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46961         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46962         * lib/unictype/pr_bidi_block_separator.c: New file.
46963         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46964         * lib/unictype/pr_bidi_common_separator.c: New file.
46965         * lib/unictype/pr_bidi_control.c: New file.
46966         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46967         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46968         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46969         * lib/unictype/pr_bidi_european_digit.c: New file.
46970         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46971         * lib/unictype/pr_bidi_left_to_right.c: New file.
46972         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46973         * lib/unictype/pr_bidi_other_neutral.c: New file.
46974         * lib/unictype/pr_bidi_pdf.c: New file.
46975         * lib/unictype/pr_bidi_segment_separator.c: New file.
46976         * lib/unictype/pr_bidi_whitespace.c: New file.
46977         * lib/unictype/pr_byname.c: New file.
46978         * lib/unictype/pr_byname.gperf: New file.
46979         * lib/unictype/pr_combining.c: New file.
46980         * lib/unictype/pr_composite.c: New file.
46981         * lib/unictype/pr_currency_symbol.c: New file.
46982         * lib/unictype/pr_dash.c: New file.
46983         * lib/unictype/pr_decimal_digit.c: New file.
46984         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46985         * lib/unictype/pr_deprecated.c: New file.
46986         * lib/unictype/pr_diacritic.c: New file.
46987         * lib/unictype/pr_extender.c: New file.
46988         * lib/unictype/pr_format_control.c: New file.
46989         * lib/unictype/pr_grapheme_base.c: New file.
46990         * lib/unictype/pr_grapheme_extend.c: New file.
46991         * lib/unictype/pr_grapheme_link.c: New file.
46992         * lib/unictype/pr_hex_digit.c: New file.
46993         * lib/unictype/pr_hyphen.c: New file.
46994         * lib/unictype/pr_id_continue.c: New file.
46995         * lib/unictype/pr_id_start.c: New file.
46996         * lib/unictype/pr_ideographic.c: New file.
46997         * lib/unictype/pr_ids_binary_operator.c: New file.
46998         * lib/unictype/pr_ids_trinary_operator.c: New file.
46999         * lib/unictype/pr_ignorable_control.c: New file.
47000         * lib/unictype/pr_iso_control.c: New file.
47001         * lib/unictype/pr_join_control.c: New file.
47002         * lib/unictype/pr_left_of_pair.c: New file.
47003         * lib/unictype/pr_line_separator.c: New file.
47004         * lib/unictype/pr_logical_order_exception.c: New file.
47005         * lib/unictype/pr_lowercase.c: New file.
47006         * lib/unictype/pr_math.c: New file.
47007         * lib/unictype/pr_non_break.c: New file.
47008         * lib/unictype/pr_not_a_character.c: New file.
47009         * lib/unictype/pr_numeric.c: New file.
47010         * lib/unictype/pr_other_alphabetic.c: New file.
47011         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
47012         * lib/unictype/pr_other_grapheme_extend.c: New file.
47013         * lib/unictype/pr_other_id_continue.c: New file.
47014         * lib/unictype/pr_other_id_start.c: New file.
47015         * lib/unictype/pr_other_lowercase.c: New file.
47016         * lib/unictype/pr_other_math.c: New file.
47017         * lib/unictype/pr_other_uppercase.c: New file.
47018         * lib/unictype/pr_paired_punctuation.c: New file.
47019         * lib/unictype/pr_paragraph_separator.c: New file.
47020         * lib/unictype/pr_pattern_syntax.c: New file.
47021         * lib/unictype/pr_pattern_white_space.c: New file.
47022         * lib/unictype/pr_private_use.c: New file.
47023         * lib/unictype/pr_punctuation.c: New file.
47024         * lib/unictype/pr_quotation_mark.c: New file.
47025         * lib/unictype/pr_radical.c: New file.
47026         * lib/unictype/pr_sentence_terminal.c: New file.
47027         * lib/unictype/pr_soft_dotted.c: New file.
47028         * lib/unictype/pr_space.c: New file.
47029         * lib/unictype/pr_terminal_punctuation.c: New file.
47030         * lib/unictype/pr_test.c: New file.
47031         * lib/unictype/pr_titlecase.c: New file.
47032         * lib/unictype/pr_unassigned_code_value.c: New file.
47033         * lib/unictype/pr_unified_ideograph.c: New file.
47034         * lib/unictype/pr_uppercase.c: New file.
47035         * lib/unictype/pr_variation_selector.c: New file.
47036         * lib/unictype/pr_white_space.c: New file.
47037         * lib/unictype/pr_xid_continue.c: New file.
47038         * lib/unictype/pr_xid_start.c: New file.
47039         * lib/unictype/pr_zero_width.c: New file.
47040         * lib/unictype/scripts.c: New file.
47041         * lib/unictype/sy_c_ident.c: New file.
47042         * lib/unictype/sy_c_whitespace.c: New file.
47043         * lib/unictype/sy_java_ident.c: New file.
47044         * lib/unictype/sy_java_whitespace.c: New file.
47045
47046         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
47047         Unicode 5.0.0.
47048         * lib/unictype/blocks.h: Likewise.
47049         * lib/unictype/categ_C.h: Likewise.
47050         * lib/unictype/categ_Cc.h: Likewise.
47051         * lib/unictype/categ_Cf.h: Likewise.
47052         * lib/unictype/categ_Cn.h: Likewise.
47053         * lib/unictype/categ_Co.h: Likewise.
47054         * lib/unictype/categ_Cs.h: Likewise.
47055         * lib/unictype/categ_L.h: Likewise.
47056         * lib/unictype/categ_Ll.h: Likewise.
47057         * lib/unictype/categ_Lm.h: Likewise.
47058         * lib/unictype/categ_Lo.h: Likewise.
47059         * lib/unictype/categ_Lt.h: Likewise.
47060         * lib/unictype/categ_Lu.h: Likewise.
47061         * lib/unictype/categ_M.h: Likewise.
47062         * lib/unictype/categ_Mc.h: Likewise.
47063         * lib/unictype/categ_Me.h: Likewise.
47064         * lib/unictype/categ_Mn.h: Likewise.
47065         * lib/unictype/categ_N.h: Likewise.
47066         * lib/unictype/categ_Nd.h: Likewise.
47067         * lib/unictype/categ_Nl.h: Likewise.
47068         * lib/unictype/categ_No.h: Likewise.
47069         * lib/unictype/categ_P.h: Likewise.
47070         * lib/unictype/categ_Pc.h: Likewise.
47071         * lib/unictype/categ_Pd.h: Likewise.
47072         * lib/unictype/categ_Pe.h: Likewise.
47073         * lib/unictype/categ_Pf.h: Likewise.
47074         * lib/unictype/categ_Pi.h: Likewise.
47075         * lib/unictype/categ_Po.h: Likewise.
47076         * lib/unictype/categ_Ps.h: Likewise.
47077         * lib/unictype/categ_S.h: Likewise.
47078         * lib/unictype/categ_Sc.h: Likewise.
47079         * lib/unictype/categ_Sk.h: Likewise.
47080         * lib/unictype/categ_Sm.h: Likewise.
47081         * lib/unictype/categ_So.h: Likewise.
47082         * lib/unictype/categ_Z.h: Likewise.
47083         * lib/unictype/categ_Zl.h: Likewise.
47084         * lib/unictype/categ_Zp.h: Likewise.
47085         * lib/unictype/categ_Zs.h: Likewise.
47086         * lib/unictype/categ_of.h: Likewise.
47087         * lib/unictype/combining.h: Likewise.
47088         * lib/unictype/ctype_alnum.h: Likewise.
47089         * lib/unictype/ctype_alpha.h: Likewise.
47090         * lib/unictype/ctype_blank.h: Likewise.
47091         * lib/unictype/ctype_cntrl.h: Likewise.
47092         * lib/unictype/ctype_digit.h: Likewise.
47093         * lib/unictype/ctype_graph.h: Likewise.
47094         * lib/unictype/ctype_lower.h: Likewise.
47095         * lib/unictype/ctype_print.h: Likewise.
47096         * lib/unictype/ctype_punct.h: Likewise.
47097         * lib/unictype/ctype_space.h: Likewise.
47098         * lib/unictype/ctype_upper.h: Likewise.
47099         * lib/unictype/ctype_xdigit.h: Likewise.
47100         * lib/unictype/decdigit.h: Likewise.
47101         * lib/unictype/digit.h: Likewise.
47102         * lib/unictype/mirror.h: Likewise.
47103         * lib/unictype/numeric.h: Likewise.
47104         * lib/unictype/pr_alphabetic.h: Likewise.
47105         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
47106         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
47107         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
47108         * lib/unictype/pr_bidi_block_separator.h: Likewise.
47109         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
47110         * lib/unictype/pr_bidi_common_separator.h: Likewise.
47111         * lib/unictype/pr_bidi_control.h: Likewise.
47112         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
47113         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
47114         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
47115         * lib/unictype/pr_bidi_european_digit.h: Likewise.
47116         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
47117         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
47118         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
47119         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
47120         * lib/unictype/pr_bidi_pdf.h: Likewise.
47121         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
47122         * lib/unictype/pr_bidi_whitespace.h: Likewise.
47123         * lib/unictype/pr_combining.h: Likewise.
47124         * lib/unictype/pr_composite.h: Likewise.
47125         * lib/unictype/pr_currency_symbol.h: Likewise.
47126         * lib/unictype/pr_dash.h: Likewise.
47127         * lib/unictype/pr_decimal_digit.h: Likewise.
47128         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
47129         * lib/unictype/pr_deprecated.h: Likewise.
47130         * lib/unictype/pr_diacritic.h: Likewise.
47131         * lib/unictype/pr_extender.h: Likewise.
47132         * lib/unictype/pr_format_control.h: Likewise.
47133         * lib/unictype/pr_grapheme_base.h: Likewise.
47134         * lib/unictype/pr_grapheme_extend.h: Likewise.
47135         * lib/unictype/pr_grapheme_link.h: Likewise.
47136         * lib/unictype/pr_hex_digit.h: Likewise.
47137         * lib/unictype/pr_hyphen.h: Likewise.
47138         * lib/unictype/pr_id_continue.h: Likewise.
47139         * lib/unictype/pr_id_start.h: Likewise.
47140         * lib/unictype/pr_ideographic.h: Likewise.
47141         * lib/unictype/pr_ids_binary_operator.h: Likewise.
47142         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
47143         * lib/unictype/pr_ignorable_control.h: Likewise.
47144         * lib/unictype/pr_iso_control.h: Likewise.
47145         * lib/unictype/pr_join_control.h: Likewise.
47146         * lib/unictype/pr_left_of_pair.h: Likewise.
47147         * lib/unictype/pr_line_separator.h: Likewise.
47148         * lib/unictype/pr_logical_order_exception.h: Likewise.
47149         * lib/unictype/pr_lowercase.h: Likewise.
47150         * lib/unictype/pr_math.h: Likewise.
47151         * lib/unictype/pr_non_break.h: Likewise.
47152         * lib/unictype/pr_not_a_character.h: Likewise.
47153         * lib/unictype/pr_numeric.h: Likewise.
47154         * lib/unictype/pr_other_alphabetic.h: Likewise.
47155         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
47156         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
47157         * lib/unictype/pr_other_id_continue.h: Likewise.
47158         * lib/unictype/pr_other_id_start.h: Likewise.
47159         * lib/unictype/pr_other_lowercase.h: Likewise.
47160         * lib/unictype/pr_other_math.h: Likewise.
47161         * lib/unictype/pr_other_uppercase.h: Likewise.
47162         * lib/unictype/pr_paired_punctuation.h: Likewise.
47163         * lib/unictype/pr_paragraph_separator.h: Likewise.
47164         * lib/unictype/pr_pattern_syntax.h: Likewise.
47165         * lib/unictype/pr_pattern_white_space.h: Likewise.
47166         * lib/unictype/pr_private_use.h: Likewise.
47167         * lib/unictype/pr_punctuation.h: Likewise.
47168         * lib/unictype/pr_quotation_mark.h: Likewise.
47169         * lib/unictype/pr_radical.h: Likewise.
47170         * lib/unictype/pr_sentence_terminal.h: Likewise.
47171         * lib/unictype/pr_soft_dotted.h: Likewise.
47172         * lib/unictype/pr_space.h: Likewise.
47173         * lib/unictype/pr_terminal_punctuation.h: Likewise.
47174         * lib/unictype/pr_titlecase.h: Likewise.
47175         * lib/unictype/pr_unassigned_code_value.h: Likewise.
47176         * lib/unictype/pr_unified_ideograph.h: Likewise.
47177         * lib/unictype/pr_uppercase.h: Likewise.
47178         * lib/unictype/pr_variation_selector.h: Likewise.
47179         * lib/unictype/pr_white_space.h: Likewise.
47180         * lib/unictype/pr_xid_continue.h: Likewise.
47181         * lib/unictype/pr_xid_start.h: Likewise.
47182         * lib/unictype/pr_zero_width.h: Likewise.
47183         * lib/unictype/scripts.h: Likewise.
47184         * lib/unictype/scripts_byname.gperf: Likewise.
47185         * lib/unictype/sy_c_ident.h: Likewise.
47186         * lib/unictype/sy_c_whitespace.h: Likewise.
47187         * lib/unictype/sy_java_ident.h: Likewise.
47188         * lib/unictype/sy_java_whitespace.h: Likewise.
47189
47190         * lib/unictype/Makefile: New file.
47191         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
47192         glibc.
47193         * lib/unictype/3level.h: New file, copied from glibc.
47194         * lib/unictype/3levelbit.h: New file.
47195
47196 2007-11-11  Bruno Haible  <bruno@clisp.org>
47197
47198         * modules/gperf: New file.
47199         * modules/iconv_open (Depends-on): Add it.
47200         (Makefile.am): Remove the GPERF definition.
47201
47202 2007-11-11  Bruno Haible  <bruno@clisp.org>
47203
47204         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
47205         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
47206
47207 2007-11-11  Bruno Haible  <bruno@clisp.org>
47208
47209         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
47210         (usage): Remove function.
47211
47212 2007-11-11  Bruno Haible  <bruno@clisp.org>
47213
47214         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
47215         gl_FUNC_CEILF_LIBS.
47216         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
47217         gl_FUNC_CEIL_LIBS.
47218         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
47219         gl_FUNC_CEILL_LIBS.
47220         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
47221         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
47222         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
47223
47224 2007-11-11  Bruno Haible  <bruno@clisp.org>
47225
47226         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
47227         roundf were declared but do not exist on functions.
47228         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
47229         roundl were declared but do not exist on functions.
47230         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
47231         HAVE_FLOORL_AND_CEILL, respectively.
47232         Needed for Sun C on Solaris 10.
47233
47234 2007-11-11  Bruno Haible  <bruno@clisp.org>
47235
47236         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
47237         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
47238         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
47239         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
47240         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
47241         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47242         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
47243         HAVE_DECL_ROUNDF.
47244         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
47245         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
47246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
47247         of HAVE_DECL_ROUND*.
47248         * modules/math (Makefile.am): Update.
47249
47250 2007-11-10  Bruno Haible  <bruno@clisp.org>
47251
47252         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
47253         ptrdiff_t as m4/intl.m4.
47254
47255 2007-11-10  Jim Meyering  <meyering@redhat.com>
47256
47257         Avoid link failure for the argmatch test.
47258         * tests/test-argmatch.c (usage): Define function to avoid a link
47259         failure: argmatch_die requires a usage function.
47260
47261 2007-11-09  Bruno Haible  <bruno@clisp.org>
47262
47263         * doc/functions/snprintf.texi: Mention BeOS deficiency.
47264         * doc/functions/vsnprintf.texi: Likewise.
47265         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
47266         with a size argument < 2.
47267
47268 2007-11-09  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
47271         buffer. Fixes an inefficiency introduced on 2007-11-03.
47272
47273 2007-11-09  Bruno Haible  <bruno@clisp.org>
47274
47275         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
47276         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
47277
47278 2007-11-08  Jim Meyering  <meyering@redhat.com>
47279
47280         Change cache variable name prefix "jm_" to "gl_" everywhere.
47281         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
47282         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
47283         * m4/uptime.m4: s/gl_/jm_/
47284
47285 2007-11-07  Bruno Haible  <bruno@clisp.org>
47286
47287         Update to GNU gettext 0.17.
47288         * m4/intl.m4: Update to GNU gettext 0.17.
47289         * m4/po.m4: Likewise.
47290         * modules/gettext (Files): Remove m4/ulonglong.m4.
47291         (configure.ac): Require gettext infrastructure from version 0.17.
47292
47293 2007-11-06  Bruno Haible  <bruno@clisp.org>
47294
47295         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
47296         symbolic values are not defined in a public header.
47297         * lib/freadable.c (freadable) [QNX]: Likewise.
47298         * lib/freadahead.c (freadahead) [QNX]: Likewise.
47299         * lib/freading.c (freading) [QNX]: Likewise.
47300         * lib/fseterr.c (fseterr) [QNX]: Likewise.
47301         * lib/fwritable.c (fwritable) [QNX]: Likewise.
47302         * lib/fwriting.c (fwriting) [QNX]: Likewise.
47303         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
47304         Reported by Alain Magloire.
47305
47306         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
47307
47308 2007-11-05  Bruno Haible  <bruno@clisp.org>
47309
47310         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
47311         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
47312         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
47313         Reported by Eric Blake.
47314
47315 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47316             Bruno Haible  <bruno@clisp.org>
47317
47318         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
47319         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
47320         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
47321         (malloc): Undefine also before including <stdlib.h>.
47322         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
47323         Needed on OSF/1 4.0.
47324
47325 2007-11-05  Jim Meyering  <meyering@redhat.com>
47326
47327         git-version-gen: sync from coreutils.
47328         * build-aux/git-version-gen: Add comments.
47329         Change the first '-' to '.' in the snapshot version string,
47330         e.g., 6.9-377-08144 -> 6.9.377-08144
47331         Remove first parameter.
47332         Don't declare a version "-dirty" merely because a time
47333         stamp has changed.
47334
47335 2007-11-04  Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/lock.h: Protect all macro definitions containing an 'if'
47338         statement through a "do { ... } while (0)".
47339         * lib/tls.h: Likewise.
47340
47341 2007-11-04  Bruno Haible  <bruno@clisp.org>
47342
47343         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
47344
47345 2007-11-04  Bruno Haible  <bruno@clisp.org>
47346
47347         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
47348         * modules/fprintf-posix (Depends-on): Add nocrash.
47349         * modules/snprintf-posix (Depends-on): Likewise.
47350         * modules/sprintf-posix (Depends-on): Likewise.
47351         * modules/vasnprintf-posix (Depends-on): Likewise.
47352         * modules/vasprintf-posix (Depends-on): Likewise.
47353         * modules/vfprintf-posix (Depends-on): Likewise.
47354         * modules/vsnprintf-posix (Depends-on): Likewise.
47355         * modules/vsprintf-posix (Depends-on): Likewise.
47356         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47357         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47358         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47359         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47360         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47361         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47362         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47363
47364 2007-11-04  Bruno Haible  <bruno@clisp.org>
47365
47366         * modules/nocrash: New file.
47367         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
47368         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
47369
47370 2007-11-04  Bruno Haible  <bruno@clisp.org>
47371
47372         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
47373         precision handling.
47374         * tests/test-vasprintf-posix.c (test_function): Likewise.
47375         * tests/test-snprintf-posix.h (test_function): Likewise.
47376         * tests/test-sprintf-posix.h (test_function): Likewise.
47377
47378         Fix *printf behaviour for large precisions on mingw and BeOS.
47379         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
47380         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
47381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
47382         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47383         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47384         gl_PRINTF_PRECISION and test its result. Invoke
47385         gl_PREREQ_VASNPRINTF_PRECISION.
47386         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47387         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47388         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47389         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47390         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47391         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47392         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47393         * doc/functions/fprintf.texi: Update.
47394         * doc/functions/printf.texi: Update.
47395         * doc/functions/snprintf.texi: Update.
47396         * doc/functions/sprintf.texi: Update.
47397         * doc/functions/vfprintf.texi: Update.
47398         * doc/functions/vprintf.texi: Update.
47399         * doc/functions/vsnprintf.texi: Update.
47400         * doc/functions/vsprintf.texi: Update.
47401
47402 2007-11-04  Bruno Haible  <bruno@clisp.org>
47403
47404         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47405
47406 2007-11-04  Bruno Haible  <bruno@clisp.org>
47407
47408         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47409         Reported by Sylvain Beucler <beuc@gnu.org>.
47410
47411 2007-11-03  Bruno Haible  <bruno@clisp.org>
47412
47413         * tests/test-fprintf-posix2.sh: New file.
47414         * tests/test-fprintf-posix2.c: New file.
47415         * modules/fprintf-posix-tests (Files): Add them.
47416         (TESTS): Add test-fprintf-posix2.sh.
47417         (configure.ac): Check for getrlimit and setrlimit.
47418         (check_PROGRAMS): Add test-fprintf-posix2.
47419
47420         * tests/test-printf-posix2.sh: New file.
47421         * tests/test-printf-posix2.c: New file.
47422         * modules/printf-posix-tests (Files): Add them.
47423         (TESTS): Add test-printf-posix2.sh.
47424         (configure.ac): Check for getrlimit and setrlimit.
47425         (check_PROGRAMS): Add test-printf-posix2.
47426
47427         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47428         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47429         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47430         (decode_double): New function, copied from decode_long_double.
47431         (scale10_round_decimal_decoded): New function, extracted from
47432         scale10_round_decimal_long_double.
47433         (scale10_round_decimal_long_double): Use it.
47434         (scale10_round_decimal_double): New function.
47435         (floorlog10): New function.
47436         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47438         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47439         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47440         gl_PRINTF_ENOMEM and test its result. Invoke
47441         gl_PREREQ_VASNPRINTF_ENOMEM.
47442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47444         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47445         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47446         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47448         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47449         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47450         * modules/snprintf-posix (Depends-on): Likewise.
47451         * modules/sprintf-posix (Depends-on): Likewise.
47452         * modules/vasnprintf-posix (Depends-on): Likewise.
47453         * modules/vasprintf-posix (Depends-on): Likewise.
47454         * modules/vfprintf-posix (Depends-on): Likewise.
47455         * modules/vsnprintf-posix (Depends-on): Likewise.
47456         * modules/vsprintf-posix (Depends-on): Likewise.
47457         * doc/functions/fprintf.texi: Update.
47458         * doc/functions/printf.texi: Update.
47459         * doc/functions/snprintf.texi: Update.
47460         * doc/functions/sprintf.texi: Update.
47461         * doc/functions/vfprintf.texi: Update.
47462         * doc/functions/vprintf.texi: Update.
47463         * doc/functions/vsnprintf.texi: Update.
47464         * doc/functions/vsprintf.texi: Update.
47465
47466 2007-11-03  Bruno Haible  <bruno@clisp.org>
47467
47468         * modules/frexp-nolibm-tests: New file.
47469
47470         * modules/frexp-nolibm: New file.
47471         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47472
47473 2007-11-03  Bruno Haible  <bruno@clisp.org>
47474
47475         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47476         value is C99 compliant.
47477         Needed for OSF/1 5.1.
47478
47479 2007-11-03  Bruno Haible  <bruno@clisp.org>
47480
47481         Fix out-of-memory handling of vasnprintf.
47482         * lib/printf-parse.c: Include <errno.h>.
47483         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47484         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47485         is already set.
47486
47487 2007-11-02  Eric Blake  <ebb9@byu.net>
47488
47489         Fix tests on cygwin.
47490         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47491
47492 2007-11-01  Bruno Haible  <bruno@clisp.org>
47493
47494         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47495         warning.
47496         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47497         needed for POSIX compatibility.
47498
47499 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47500
47501         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47502         for compatibility with GNU.
47503
47504 2007-11-01  Bruno Haible  <bruno@clisp.org>
47505
47506         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47507         (putenv): Renamed from rpl_putenv. Change argument type from
47508         'const char *' to 'char *'.
47509         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47510         of defining putenv in config.h, just set REPLACE_PUTENV.
47511         * modules/putenv (Depends-on): Add stdlib.
47512         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47513         (Include): Use <stdlib.h>.
47514         * lib/stdlib.in.h (putenv): New declaration.
47515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47516         REPLACE_PUTENV.
47517         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47518         REPLACE_PUTENV.
47519         Needed for MacOS X 10.5.0.
47520         Reported by Peter O'Gorman <peter@pogma.com>.
47521
47522 2007-11-01  Jim Meyering  <meyering@redhat.com>
47523
47524         Treat an empty date string exactly like "0".
47525         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47526         if the remaining date string (to be parsed) is empty, use "0".
47527         Reported by Mischa Molhoek and discussed in this thread:
47528         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47529
47530 2007-10-31  Bruno Haible  <bruno@clisp.org>
47531
47532         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47533         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47534         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47535         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47536         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47537         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47538
47539 2007-10-31  Bruno Haible  <bruno@clisp.org>
47540
47541         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47542         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47543         (AC_TYPE_LONG_LONG_INT): Use it.
47544         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47545         it as well.
47546         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47547         to m4/longlong.m4.
47548         * modules/stdint (Files): Remove m4/ulonglong.m4.
47549         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47550         m4/ulonglong.m4.
47551         * modules/strtoumax (Files): Likewise.
47552
47553 2007-10-30  Bruno Haible  <bruno@clisp.org>
47554
47555         * modules/xvasprintf-posix: New file.
47556         Suggested by Eric Blake.
47557
47558 2007-10-30  Bruno Haible  <bruno@clisp.org>
47559
47560         * modules/xprintf-posix-tests: New file.
47561         * tests/test-xprintf-posix.sh: New file.
47562         * tests/test-xprintf-posix.c: New file.
47563         * tests/test-xfprintf-posix.c: New file.
47564
47565         * modules/xprintf-posix: New file.
47566
47567 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47568
47569         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47570         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47571         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47572
47573 2007-10-29  Bruno Haible  <bruno@clisp.org>
47574
47575         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47576         contain the special marker '_cv_'.
47577         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47578         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47579         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47580         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47581         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47582         Reported by Ralf Wildenhues.
47583
47584 2007-10-29  Bruno Haible  <bruno@clisp.org>
47585
47586         * gnulib-tool (func_import): When --lgpl is not specified, set
47587         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47588         GPLv3.
47589         Reported by Simon Josefsson.
47590
47591 2007-10-28  Bruno Haible  <bruno@clisp.org>
47592
47593         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47594         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47595         HAVE_DECL_ISFINITE.
47596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47597         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47598         HAVE_DECL_ISFINITE.
47599
47600 2007-10-28  Bruno Haible  <bruno@clisp.org>
47601
47602         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47603         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47604
47605 2007-10-28  Bruno Haible  <bruno@clisp.org>
47606
47607         Fix link errors with Sun C 5.0 on Solaris 10.
47608         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47609         function is declared but not present in the compiler's libm.
47610         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47611         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47612         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47613         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47614         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47615         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47616         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47618         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47619         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47620         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47621         HAVE_DECL_FLOORL.
47622
47623 2007-10-28  Bruno Haible  <bruno@clisp.org>
47624
47625         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47626         gl_FUNC_FLOORL. Cache the result.
47627         (gl_FUNC_FLOORL): Use it.
47628         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47629         gl_FUNC_CEILL. Cache the result.
47630         (gl_FUNC_CEILL): Use it.
47631
47632         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47633         gl_FUNC_FLOOR. Cache the result.
47634         (gl_FUNC_FLOOR): Use it.
47635         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47636         gl_FUNC_CEIL. Cache the result.
47637         (gl_FUNC_CEIL): Use it.
47638
47639         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47640         gl_FUNC_FLOORF. Cache the result.
47641         (gl_FUNC_FLOORF): Use it.
47642         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47643         gl_FUNC_CEILF. Cache the result.
47644         (gl_FUNC_CEILF): Use it.
47645
47646 2007-10-28  Bruno Haible  <bruno@clisp.org>
47647
47648         * gnulib-tool: Allow specifying the LGPL version number through
47649         --lgpl=2 or --lgpl=3.
47650         (func_usage): Document --lgpl with argument.
47651         Handle --lgpl=... arguments.
47652         (func_import): Recognize also gl_LGPL calls with an argument. When
47653         --lgpl=2 is used and the module's license is just LGPL, report an
47654         error. Set sed_transform_lib_file according to the lgpl variable. In
47655         the generated files, use --lgpl or gl_LGPL invocations with argument,
47656         if necessary.
47657         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47658         an LGPv2+ license.
47659         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47660         gl_LGPL macro.
47661
47662 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47663             Bruno Haible  <bruno@clisp.org>
47664
47665         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47666         (u16_uctomb_aux): Likewise.
47667         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47668         !HAVE_INLINE.
47669         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47670
47671 2007-10-28  Bruno Haible  <bruno@clisp.org>
47672
47673         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47674         Invoke AM_GETTEXT_OPTION if it exists.
47675         * modules/vasprintf: Likewise.
47676         * modules/verror: Likewise.
47677         * modules/xprintf: Likewise.
47678         * modules/xvasprintf: Likewise.
47679
47680 2007-10-27  Ben Pfaff  <blp@gnu.org>
47681
47682         * lib/math.in.h: Define isfinite macro and prototypes for
47683         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47684         implementations.
47685         * m4/math_h.m4: New substitutions for isfinite module.
47686         * lib/isfinite.c: New file.
47687         * m4/isfinite.m4: New file.
47688         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47689         * modules/isfinite: New file.
47690         * modules/isfinite-tests: New file.
47691         * tests/tests-isfinite.c: New file.
47692         * doc/functions/isfinite.texi: Mention isfinite module.
47693         * MODULES.html.sh: Mention new module.
47694
47695 2007-10-27  Ben Pfaff  <blp@gnu.org>
47696
47697         Ralf Wildenhues reported that Tru64 4.0D declares the round
47698         functions but does not have definitions.
47699         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47700         cannot be found in any library, set the output variable to
47701         "missing" instead of "".
47702         * m4/round.m4: Also use our substitute if we cannot find round in
47703         any library, even if it is declared.
47704         * m4/roundf.m4: Likewise for roundf.
47705         * m4/roundl.m4: Likewise for roundl.
47706         * lib/math.in.h: Undefine roundf, round, roundl before defining
47707         their replacements, to allow for hypothetical systems where these
47708         may be defined as macros but not available in libraries.
47709
47710 2007-10-27  Bruno Haible  <bruno@clisp.org>
47711
47712         * doc/gnulib.texi: Invoke @firstparagraphindent.
47713         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47714         changes in gnulib.
47715         (Source changes): New section.
47716
47717 2007-10-26  Bruno Haible  <bruno@clisp.org>
47718
47719         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47720         borrowed from autoconf.
47721
47722 2007-10-26  Bruno Haible  <bruno@clisp.org>
47723
47724         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47725         strerror returned the empty string. Needed on HP-UX 11.00.
47726
47727 2007-10-24  Micah Cowan  <micah@cowan.name>
47728
47729         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47730         * build-aux/bootstrap: Remove support for now-unnecessary option,
47731         --cvs-user, and envvars CVS_USER, CVS_RSH.
47732
47733 2007-10-24  Jim Meyering  <meyering@redhat.com>
47734
47735         Avoid diagnostics from sha1sum when there is no cached checksum.
47736         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47737         if the po.s1 file hasn't been created yet.
47738
47739         * build-aux/bootstrap: Sync from coreutils:
47740         2007-10-24  Jim Meyering  <meyering@redhat.com>
47741         Get gnulib from the git repository, not from an obsolete cvs one.
47742         * build-aux/bootstrap: Suggestion from Micah Cowan.
47743         2007-10-04  Jim Meyering  <jim@meyering.net>
47744         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47745         (update_po_files): Work also when there are no .po files in po/.
47746
47747 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47748
47749         * README: Append ".git" to git and cg examples.
47750         Problem reported by Benoit Sigoure.
47751
47752 2007-10-23  Micah Cowan  <micah@cowan.name>
47753
47754         * users.txt: Add wget.
47755
47756 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47757
47758         Fix linking of some unistdio tests on FreeBSD.
47759         * modules/unistdio/u16-vsnprintf-tests
47760         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47761         * modules/unistdio/u16-vsprintf-tests
47762         (test_u16_vsnprintf1_LDADD): Likewise.
47763         * modules/unistdio/u32-vsnprintf-tests
47764         (test_u32_vsnprintf1_LDADD): Likewise.
47765         * modules/unistdio/u32-vsprintf-tests
47766         (test_u32_vsprintf1_LDADD): Likewise.
47767         * modules/unistdio/u8-vsnprintf-tests
47768         (test_u8_vsnprintf1_LDADD): Likewise.
47769         * modules/unistdio/u8-vsprintf-tests
47770         (test_u8_vsprintf1_LDADD): Likewise.
47771         * modules/unistdio/ulc-vsnprintf-tests
47772         (test_ulc_vsnprintf1_LDADD): Likewise.
47773         * modules/unistdio/ulc-vsprintf-tests
47774         (test_ulc_vsprintf1_LDADD): Likewise.
47775
47776         Fix linking of some uniconv tests on FreeBSD.
47777         * modules/uniconv/u16-conv-from-enc-tests
47778         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47779         * modules/uniconv/u16-conv-to-enc-tests
47780         (test_u16_conv_to_enc_LDADD): Likewise.
47781         * modules/uniconv/u16-strconv-from-enc-tests
47782         (test_u16_strconv_from_enc_LDADD): Likewise.
47783         * modules/uniconv/u16-strconv-to-enc-tests
47784         (test_u16_strconv_to_enc_LDADD): Likewise.
47785         * modules/uniconv/u32-conv-from-enc-tests
47786         (test_u32_conv_from_enc_LDADD): Likewise.
47787         * modules/uniconv/u32-conv-to-enc-tests
47788         (test_u32_conv_to_enc_LDADD): Likewise.
47789         * modules/uniconv/u32-strconv-from-enc-tests
47790         (test_u32_strconv_from_enc_LDADD): Likewise.
47791         * modules/uniconv/u32-strconv-to-enc-tests
47792         (test_u32_strconv_to_enc_LDADD): Likewise.
47793         * modules/uniconv/u8-conv-from-enc-tests
47794         (test_u8_conv_from_enc_LDADD): Likewise.
47795         * modules/uniconv/u8-conv-to-enc-tests
47796         (test_u8_conv_to_enc_LDADD): Likewise.
47797         * modules/uniconv/u8-strconv-from-enc-tests
47798         (test_u8_strconv_from_enc_LDADD): Likewise.
47799         * modules/uniconv/u8-strconv-to-enc-tests
47800         (test_u8_strconv_to_enc_LDADD): Likewise.
47801
47802 2007-10-22  Bruno Haible  <bruno@clisp.org>
47803
47804         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47805         size.
47806
47807 2007-10-22  Eric Blake  <ebb9@byu.net>
47808
47809         Tweak x*printf documentation.
47810         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47811         variable name and comments.
47812         Suggested by Bruno Haible.
47813
47814 2007-10-22  Bruno Haible  <bruno@clisp.org>
47815
47816         * lib/acl.c (copy_acl): Fix file name in comment.
47817
47818 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47819
47820         Fix Tru64 problem with stdbool.h.
47821         * lib/stdbool.in.h (false, true):
47822         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47823         Don't declare as an enum in this situation; it runs afoul of Tru64.
47824         Problem reported by Steven M. Schweda in
47825         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47826
47827 2007-10-22  Eric Blake  <ebb9@byu.net>
47828
47829         Also wrap vf?printf.
47830         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47831         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47832         (xvprintf, xvfprintf): New functions.
47833
47834 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47835
47836         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47837         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47838
47839         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47840         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47841
47842 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47843
47844         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47845         by Bruno Haible.
47846
47847 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47848
47849         * lib/getloadavg.c
47850         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47851         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47852
47853         * tests/test-i-ring.c: Work for C89.
47854
47855 2007-10-22  Bruno Haible  <bruno@clisp.org>
47856
47857         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47858         -1u, in preprocessor expression, so that we don't test for the bug
47859         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47860         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47861
47862 2007-10-22  Eric Blake  <ebb9@byu.net>
47863
47864         * tests/test-yesno.sh: Silence stderr during test.
47865
47866 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47867
47868         * modules/crypto/gc-camellia: New file.
47869
47870         * m4/gc-camellia.m4: New file.
47871
47872         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47873
47874         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47875
47876 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47877
47878         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47879         --help to stdout.  Reported by sms@antinode.org (Steven
47880         M. Schweda).
47881
47882 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47883
47884         * users.txt: Fix link to libksba.
47885
47886 2007-10-21  Ben Pfaff  <blp@gnu.org>
47887
47888         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47889         round.c roundf implementation that depends on floorf and ceilf to
47890         be tested unconditionally.
47891
47892 2007-10-21  Ben Pfaff  <blp@gnu.org>
47893
47894         * m4/check-libm-func.m4: Removed.
47895         * m4/check-math-lib.m4: New file.
47896         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47897         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47898         definition and lack of AC_LIBOBJ([roundf]).
47899         * m4/roundl.m4: Ditto, and similarly for roundl.
47900         * modules/round: Reference new m4 file.
47901         * modules/roundf: Ditto.
47902         * modules/roundl: Ditto.
47903         * tests/test-round2.c (main): Use ROUND instead of round.
47904         Bug report from Bruno Haible.
47905
47906 2007-10-21  Bruno Haible  <bruno@clisp.org>
47907
47908         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47909         context.
47910
47911 2007-10-21  Bruno Haible  <bruno@clisp.org>
47912
47913         * tests/test-wcwidth.c (main): Allow negative result for some control
47914         characters.
47915
47916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47917         Needed on OSF/1 5.1.
47918
47919 2007-10-21  Bruno Haible  <bruno@clisp.org>
47920
47921         * tests/test-floorf1.c: Include isnanf.h.
47922         (main): Use isnanf() instead of isnan().
47923         * tests/test-ceilf1.c: Include isnanf.h.
47924         (main): Use isnanf() instead of isnan().
47925         * tests/test-truncf1.c: Include isnanf.h.
47926         (main): Use isnanf() instead of isnan().
47927         * tests/test-roundf1.c: Include isnanf.h.
47928         (main): Use isnanf() instead of isnan().
47929
47930 2007-10-21  Eric Blake  <ebb9@byu.net>
47931
47932         * users.txt: Update URL for m4.
47933
47934 2007-10-21  Bruno Haible  <bruno@clisp.org>
47935
47936         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47937
47938 2007-10-21  Bruno Haible  <bruno@clisp.org>
47939
47940         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47941         Git's management files if the CVS files are not present.
47942
47943 2007-10-20  Bruno Haible  <bruno@clisp.org>
47944
47945         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47946         gcc-3.4.x.
47947
47948 2007-10-20  Ben Pfaff  <blp@gnu.org>
47949
47950         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47951         implementations.
47952         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47953         * lib/round.c: New file.
47954         * lib/roundf.c: New file.
47955         * lib/roundl.c: New file.
47956         * m4/round.m4: New file.
47957         * m4/roundf.m4: New file.
47958         * m4/roundl.m4: New file.
47959         * m4/check-libm-func-m4: New file.
47960         * modules/math: Replace round, roundf, roundl related @VARS@ in
47961         math.in.h.
47962         * modules/round: New file.
47963         * modules/round-tests: New file.
47964         * modules/roundf: New file.
47965         * modules/roundf-tests: New file.
47966         * modules/roundl: New file.
47967         * modules/roundl-tests: New file.
47968         * tests/test-round1.c: New file.
47969         * tests/test-round2.c: New file.
47970         * tests/test-roundf1.c: New file.
47971         * tests/test-roundf2.c: New file.
47972         * tests/test-roundl.c: New file.
47973         * doc/functions/round.texi: Mention round module.
47974         * doc/functions/roundf.texi: Mention roundf module.
47975         * doc/functions/roundl.texi: Mention roundl module.
47976         * MODULES.html.sh: Mention new modules.
47977         Thanks to Bruno Haible for suggestions.
47978
47979 2007-10-20  Jim Meyering  <meyering@redhat.com>
47980
47981         * lib/xprintf.c: Include <config.h> unconditionally.
47982
47983         Change xprintf's license to GPL.
47984         * modules/xprintf (License): s/LGPL/GPL/, since this module
47985         depends on modules (exit and exitfail) which are GPL.
47986         Suggestion from Bruno Haible.
47987
47988         xprintf fixes.
47989         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47990         Use a clearer diagnostic.
47991         Patch from Bruno Haible.
47992
47993 2007-10-20  Bruno Haible  <bruno@clisp.org>
47994
47995         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47996         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47997         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47998
47999 2007-10-20  Bruno Haible  <bruno@clisp.org>
48000
48001         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
48002         precision in the comparison result > x - 1 or similar.
48003         * tests/test-ceilf2.c (correct_result_p): Likewise.
48004         * tests/test-truncf2.c (correct_result_p): Likewise.
48005         * tests/test-trunc2.c (correct_result_p): Likewise.
48006         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48007
48008 2007-10-20  Bruno Haible  <bruno@clisp.org>
48009
48010         * modules/ceil: New file.
48011         * m4/ceil.m4: New file.
48012         * doc/functions/ceil.texi: Mention the 'ceil' module.
48013
48014 2007-10-20  Bruno Haible  <bruno@clisp.org>
48015
48016         * modules/floor: New file.
48017         * m4/floor.m4: New file.
48018         * doc/functions/floor.texi: Mention the 'floor' module.
48019
48020 2007-10-20  Bruno Haible  <bruno@clisp.org>
48021
48022         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
48023         of %a.
48024         * modules/floorf-tests (Depends-on): Likewise.
48025         * modules/truncf-tests (Depends-on): Likewise.
48026         * modules/trunc-tests (Depends-on): Likewise.
48027         Reported by Ben Pfaff.
48028
48029 2007-10-19  Jim Meyering  <meyering@redhat.com>
48030
48031         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
48032         Don't bother testing specific errno values.  Just test ferror.
48033
48034         New module: xprintf
48035         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
48036
48037 2007-10-19  Bruno Haible  <bruno@clisp.org>
48038
48039         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
48040         syntax.
48041         * modules/javaexec (Makefile.am): Likewise.
48042         * modules/relocatable-prog (Makefile.am): Likewise.
48043         Suggested by Jim Meyering.
48044
48045 2007-10-18  Bruno Haible  <bruno@clisp.org>
48046
48047         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
48048         Reported by Jim Meyering.
48049
48050 2007-10-18  Eric Blake  <ebb9@byu.net>
48051
48052         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
48053
48054 2007-10-18  Bruno Haible  <bruno@clisp.org>
48055
48056         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
48057         the format string into writable memory. Needed in Fortify conditions.
48058
48059 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
48060             Bruno Haible  <bruno@clisp.org>
48061
48062         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
48063         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
48064         * modules/trim (Depends-on): Add mbchar.
48065         (configure.ac): Add gl_FUNC_MBRTOWC.
48066         (Makefile.am): Augment lib_SOURCES.
48067
48068 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48069
48070         Modify glob.c to use fstatat and dirfd, to simplify it.
48071         Suggested by Eric Blake.
48072         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
48073         Don't include <stdbool.h>; not used.
48074         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
48075         (link_exists_p): Simplify implementation, since we can now assume
48076         dirfd and fstatat.
48077         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
48078
48079 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48080
48081         * gnulib-tool (func_get_dependencies): Fix sed script to
48082         match only tests.
48083
48084 2007-10-17  Bruno Haible  <bruno@clisp.org>
48085
48086         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
48087         allow locale names without encoding suffix.
48088         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48089         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48090
48091 2007-10-16  Bruno Haible  <bruno@clisp.org>
48092
48093         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
48094         * lib/getgroups.c (getgroups): Likewise.
48095         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
48096
48097 2007-10-16  Bruno Haible  <bruno@clisp.org>
48098
48099         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
48100         * modules/malloc-posix (License): Likewise.
48101         * modules/realloc-posix (License): Likewise.
48102         * modules/calloc-posix (License): Likewise.
48103         * modules/intprops (License): Change from GPL to LGPL, with
48104         Paul Eggert's approval.
48105
48106 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48107
48108         Merge glibc changes into lib/glob.c.
48109
48110         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
48111         2007-10-15 04:59:03 UTC.  Here are the changes:
48112
48113         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
48114
48115         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
48116
48117         * lib/glob.c: Add some branch prediction throughout.
48118
48119         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
48120
48121         [BZ #5103]
48122         * lib/glob.c (glob): Recognize patterns starting \/.
48123
48124         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
48125
48126         [BZ #3996]
48127         * lib/glob.c (attribute_hidden): Define if not defined.
48128         (glob): Unescape dirname, filename or username when needed and not
48129         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
48130         is NULL.  Handle unescaped [ in pattern without closing ].
48131         Don't pass GLOB_CHECK down to recursive glob for directories.
48132         (__glob_pattern_type): New function.
48133         (__glob_pattern_p): Implement using __glob_pattern_type.
48134         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
48135         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
48136         Remove unreachable code.
48137
48138         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
48139
48140         * lib/glob.c (glob_in_dir): Add some comments and asserts to
48141         explain why there are no leaks.
48142
48143         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
48144
48145         [BZ #3253]
48146         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
48147         time, rather allocate increasingly bigger arrays of pointers, if
48148         possible with alloca, if too large with malloc.
48149
48150 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48151
48152         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
48153         Problem reported by H.Merijn Brand in
48154         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
48155         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
48156         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48157
48158 2007-10-15  Bruno Haible  <bruno@clisp.org>
48159
48160         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
48161         with explicit rpl_ prefix.
48162         * lib/fopen.c (fopen): Likewise.
48163         * lib/freopen.c (freopen): Likewise.
48164         * lib/iconv.c (iconv): Likewise.
48165         * lib/iconv_close.c (iconv_close): Likewise.
48166
48167 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48168
48169         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
48170
48171 2007-10-15  Bruno Haible  <bruno@clisp.org>
48172
48173         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
48174         <stddef.h> instead of <stdlib.h> since we only need NULL.
48175         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48176
48177 2007-10-15  Bruno Haible  <bruno@clisp.org>
48178
48179         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
48180         Replace paragraph talking about LIBOBJS.
48181         Reported by Colin Watson <cjwatson@debian.org>.
48182
48183 2007-10-15  Bruno Haible  <bruno@clisp.org>
48184
48185         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
48186         <stdlib.h> before using NULL.
48187
48188 2007-10-15  Simon Josefsson  <simon@josefsson.org>
48189
48190         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
48191         Reported by Albert Chin <china@thewrittenword.com>.
48192
48193 2007-10-14  Bruno Haible  <bruno@clisp.org>
48194
48195         * modules/iconv_open-utf-tests: New file.
48196         * tests/test-iconv-utf.c: New file.
48197
48198         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
48199         * modules/iconv_open-utf: New file.
48200         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
48201         (iconv, iconv_close): New declarations.
48202         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
48203         be defined.
48204         (iconv_open): Add special handling of conversion between UTF-8 and
48205         UTF-{16,32}{BE,LE}.
48206         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
48207         * lib/iconv_close.c: New file.
48208         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
48209         gl_FUNC_ICONV_OPEN.
48210         (gl_FUNC_ICONV_OPEN): Use it.
48211         (gl_FUNC_ICONV_OPEN_UTF): New macro.
48212         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
48213         and REPLACE_ICONV_UTF.
48214         * modules/iconv_open (Depends-on): Add c-strcase.
48215         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
48216         ICONV_CONST.
48217         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
48218
48219 2007-10-13  Albert Chin  <china@thewrittenword.com>
48220             Bruno Haible  <bruno@clisp.org>
48221
48222         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
48223         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
48224
48225 2007-10-13  Bruno Haible  <bruno@clisp.org>
48226
48227         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
48228         defined, use the ISO C99 inline semantics.
48229         * lib/argp.h (ARGP_EI): Likewise.
48230
48231 2007-10-13  Bruno Haible  <bruno@clisp.org>
48232
48233         Handle 'inline' change in gcc 4.3.0.
48234         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
48235         argp_fmtstream_write, argp_fmtstream_set_lmargin,
48236         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
48237         argp_fmtstream_point): Disable 'extern' declaration if the function
48238         definition is going to be provided inline.
48239         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
48240         semantics, not the ISO C99 inline semantics.
48241         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
48242         'extern' declaration if the function definition is going to be provided
48243         inline.
48244         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
48245         the GNU C inline semantics, not the ISO C99 inline semantics. With
48246         GCC 4.2, avoid a warning.
48247
48248 2007-10-13  Bruno Haible  <bruno@clisp.org>
48249
48250         * lib/freading.h (freading): Enable the use of __freading for
48251         glibc >= 2.7.
48252         * lib/freading.c (freading): Likewise.
48253
48254 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48255
48256         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
48257         "warning: C99 inline functions are not supported; using GNU89".
48258
48259 2007-10-12  Bruno Haible  <bruno@clisp.org>
48260
48261         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
48262         of 2.
48263         * tests/test-ceilf2.c: New file.
48264         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
48265
48266         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
48267         * modules/ceilf-tests: Update.
48268
48269 2007-10-12  Bruno Haible  <bruno@clisp.org>
48270
48271         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
48272         of 2.
48273         * tests/test-floorf2.c: New file.
48274         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
48275
48276         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
48277         * modules/floorf-tests: Update.
48278
48279 2007-10-12  Bruno Haible  <bruno@clisp.org>
48280
48281         * tests/test-trunc2.c: New file.
48282         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
48283
48284         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
48285         * modules/trunc-tests: Update.
48286
48287 2007-10-12  Bruno Haible  <bruno@clisp.org>
48288
48289         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
48290         of 2.
48291         * tests/test-truncf2.c: New file.
48292         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
48293
48294         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
48295         * modules/truncf-tests: Update.
48296
48297 2007-10-11  Eric Blake  <ebb9@byu.net>
48298
48299         Don't claim strerror is broken on Interix.
48300         * doc/functions/strerror.texi (strerror): Known broken systems are
48301         now Solaris 8, and not Interix.
48302         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
48303         Interix on cross-compile.
48304         Reported by Martin Koeppe in
48305         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
48306
48307 2007-10-11  Bruno Haible  <bruno@clisp.org>
48308
48309         * modules/i-ring-tests: New file.
48310         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
48311         instead of assert.
48312
48313 2007-10-11  Bruno Haible  <bruno@clisp.org>
48314
48315         * modules/filenamecat-tests: New file.
48316         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
48317         * lib/filenamecat.c: Remove test code.
48318
48319 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48320
48321         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
48322
48323         * lib/strerror.c: Include <string.h> always, to test interface,
48324         and to remove the need for the dummy.
48325         Include intprops.h to compute width instead of doing it ourselves
48326         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
48327         (strerror): Define it to return NULL if there's no system strerror.
48328         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48329         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
48330         ancient pre-strerror Unix systems well any more.  Saying "unknown
48331         system error" is enough.
48332         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
48333         simpler strerror.c implementation.
48334         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
48335         Simplify the tests to reflect the simpler strerror implementation.
48336         * modules/strerror (Depends-on): Add intprops.
48337
48338 2007-10-09  Eric Blake  <ebb9@byu.net>
48339
48340         Silence test-fpending.
48341         * modules/fpending-tests (Files): Add wrapper script.
48342         * tests/test-fpending.sh: New file.
48343
48344 2007-10-09  Bruno Haible  <bruno@clisp.org>
48345
48346         * MODULES.html.sh (func_module): Don't create a hyperlink for
48347         function names like 'printf_frexp'.
48348         (Misc): Add crc, memxor.
48349         (Characteristics of floating types): New section.
48350         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
48351         isnanf-nolibm, signbit, trunc, truncf, truncl.
48352         (Enhancements for ISO C 99 functions): New subsection Input/output.
48353         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
48354         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
48355         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
48356         (Compatibility checks for POSIX:2001 functions): Add clock-time.
48357         (Enhancements for POSIX:2001 functions): Add chdir-long.
48358         (File system functions): Add areadlink, chdir-safer, read-file.
48359         Remove cycle-check.
48360         (File system as inode set): New section.
48361         (Date and time): Add gethrxtime.
48362         (Multithreading): Add openmp.
48363         (Internationalization functions): Add localename.
48364         (Unicode string functions): Add unistr/u*-mbsnlen.
48365         (Support for maintaining and releasing projects): Add git-version-gen.
48366         (Lone files): Remove directories.
48367
48368 2007-10-08  Ben Pfaff  <blp@gnu.org>
48369
48370         * lib/xmalloca.h: Fix typo in comment.
48371
48372 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48373
48374         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
48375         when avoiding problems with integer overflow.  Use a portable test
48376         instead.
48377
48378 2007-10-08  Simon Josefsson  <simon@josefsson.org>
48379
48380         * modules/dummy (License): Change to LGPLv2+.
48381         * modules/float (License): Likewise
48382         * modules/realloc (License): Likewise
48383         * modules/stdlib (License): Likewise
48384
48385 2007-10-07  Bruno Haible  <bruno@clisp.org>
48386
48387         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
48388         * floor.c (TWO_MANT_DIG): Likewise.
48389         * ceil.c (TWO_MANT_DIG): Likewise.
48390         Reported by Ben Pfaff.
48391
48392 2007-10-07  Bruno Haible  <bruno@clisp.org>
48393
48394         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
48395         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
48396         * lib/frexp.c (FUNC): Likewise.
48397         * lib/printf-frexp.h (printf_frexp): Likewise.
48398         * lib/printf-frexpl.h (printf_frexpl): Likewise.
48399         * lib/printf-frexp.c (FUNC): Likewise.
48400         Suggested by Jim Meyering.
48401
48402 2007-10-07  Jim Meyering  <meyering@redhat.com>
48403
48404         Make xnanosleep's integer overflow test more robust.
48405         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48406         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48407
48408 2007-10-07  Bruno Haible  <bruno@clisp.org>
48409
48410         * NEWS: Mention the license change.
48411
48412         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48413         abbreviations in the modules files.
48414
48415         Change copyright notice from GPLv2+ to GPLv3+.
48416         * README: Change copyright notice.
48417         * MODULES.html.sh: Likewise.
48418         * build-aux/bootstrap.conf: Likewise.
48419         * build-aux/config.libpath: Likewise.
48420         * build-aux/csharpcomp.sh.in: Likewise.
48421         * build-aux/csharpexec.sh.in: Likewise.
48422         * build-aux/install-reloc: Likewise.
48423         * build-aux/javacomp.sh.in: Likewise.
48424         * build-aux/javaexec.sh.in: Likewise.
48425         * build-aux/ldd.sh.in: Likewise.
48426         * build-aux/reloc-ldflags: Likewise.
48427         * build-aux/relocatable.sh.in: Likewise.
48428         * build-aux/x-to-1.in: Likewise.
48429         * check-module: Likewise.
48430         * config/srclistvars.sh: Likewise.
48431         * gnulib-tool: Likewise.
48432         * lib/acl-internal.h: Likewise.
48433         * lib/acl.c: Likewise.
48434         * lib/acl.h: Likewise.
48435         * lib/acl_entries.c: Likewise.
48436         * lib/areadlink-with-size.c: Likewise.
48437         * lib/areadlink.c: Likewise.
48438         * lib/areadlink.h: Likewise.
48439         * lib/argmatch.c: Likewise.
48440         * lib/argmatch.h: Likewise.
48441         * lib/argp-ba.c: Likewise.
48442         * lib/argp-eexst.c: Likewise.
48443         * lib/argp-fmtstream.c: Likewise.
48444         * lib/argp-fmtstream.h: Likewise.
48445         * lib/argp-fs-xinl.c: Likewise.
48446         * lib/argp-help.c: Likewise.
48447         * lib/argp-namefrob.h: Likewise.
48448         * lib/argp-parse.c: Likewise.
48449         * lib/argp-pin.c: Likewise.
48450         * lib/argp-pv.c: Likewise.
48451         * lib/argp-pvh.c: Likewise.
48452         * lib/argp-xinl.c: Likewise.
48453         * lib/argp.h: Likewise.
48454         * lib/at-func.c: Likewise.
48455         * lib/atanl.c: Likewise.
48456         * lib/backupfile.c: Likewise.
48457         * lib/backupfile.h: Likewise.
48458         * lib/basename.c: Likewise.
48459         * lib/binary-io.h: Likewise.
48460         * lib/byteswap.in.h: Likewise.
48461         * lib/c-stack.c: Likewise.
48462         * lib/c-stack.h: Likewise.
48463         * lib/c-strcasestr.c: Likewise.
48464         * lib/c-strcasestr.h: Likewise.
48465         * lib/c-strstr.c: Likewise.
48466         * lib/c-strstr.h: Likewise.
48467         * lib/c-strtod.c: Likewise.
48468         * lib/calloc.c: Likewise.
48469         * lib/canon-host.c: Likewise.
48470         * lib/canon-host.h: Likewise.
48471         * lib/canonicalize-lgpl.c: Likewise.
48472         * lib/canonicalize.c: Likewise.
48473         * lib/canonicalize.h: Likewise.
48474         * lib/ceil.c: Likewise.
48475         * lib/ceilf.c: Likewise.
48476         * lib/ceill.c: Likewise.
48477         * lib/chdir-long.c: Likewise.
48478         * lib/chdir-long.h: Likewise.
48479         * lib/chdir-safer.c: Likewise.
48480         * lib/chdir-safer.h: Likewise.
48481         * lib/chown.c: Likewise.
48482         * lib/classpath.c: Likewise.
48483         * lib/classpath.h: Likewise.
48484         * lib/clean-temp.c: Likewise.
48485         * lib/clean-temp.h: Likewise.
48486         * lib/cloexec.c: Likewise.
48487         * lib/close-stream.c: Likewise.
48488         * lib/closein.c: Likewise.
48489         * lib/closein.h: Likewise.
48490         * lib/closeout.c: Likewise.
48491         * lib/closeout.h: Likewise.
48492         * lib/concat-filename.c: Likewise.
48493         * lib/copy-file.c: Likewise.
48494         * lib/copy-file.h: Likewise.
48495         * lib/count-one-bits.h: Likewise.
48496         * lib/crc.c: Likewise.
48497         * lib/crc.h: Likewise.
48498         * lib/creat-safer.c: Likewise.
48499         * lib/csharpcomp.c: Likewise.
48500         * lib/csharpcomp.h: Likewise.
48501         * lib/csharpexec.c: Likewise.
48502         * lib/csharpexec.h: Likewise.
48503         * lib/cycle-check.c: Likewise.
48504         * lib/cycle-check.h: Likewise.
48505         * lib/diacrit.c: Likewise.
48506         * lib/diacrit.h: Likewise.
48507         * lib/diffseq.h: Likewise.
48508         * lib/dirchownmod.c: Likewise.
48509         * lib/dirent.in.h: Likewise.
48510         * lib/dirfd.c: Likewise.
48511         * lib/dirfd.h: Likewise.
48512         * lib/dirname.c: Likewise.
48513         * lib/dirname.h: Likewise.
48514         * lib/dummy.c: Likewise.
48515         * lib/dup-safer.c: Likewise.
48516         * lib/dup2.c: Likewise.
48517         * lib/eealloc.h: Likewise.
48518         * lib/error.c: Likewise.
48519         * lib/error.h: Likewise.
48520         * lib/euidaccess.c: Likewise.
48521         * lib/exclude.c: Likewise.
48522         * lib/exclude.h: Likewise.
48523         * lib/execute.c: Likewise.
48524         * lib/execute.h: Likewise.
48525         * lib/exitfail.c: Likewise.
48526         * lib/exitfail.h: Likewise.
48527         * lib/expl.c: Likewise.
48528         * lib/fatal-signal.c: Likewise.
48529         * lib/fatal-signal.h: Likewise.
48530         * lib/fbufmode.c: Likewise.
48531         * lib/fbufmode.h: Likewise.
48532         * lib/fchdir.c: Likewise.
48533         * lib/fchmodat.c: Likewise.
48534         * lib/fchownat.c: Likewise.
48535         * lib/fcntl--.h: Likewise.
48536         * lib/fcntl-safer.h: Likewise.
48537         * lib/fcntl.in.h: Likewise.
48538         * lib/fd-safer.c: Likewise.
48539         * lib/fflush.c: Likewise.
48540         * lib/file-has-acl.c: Likewise.
48541         * lib/file-set.c: Likewise.
48542         * lib/file-type.c: Likewise.
48543         * lib/file-type.h: Likewise.
48544         * lib/fileblocks.c: Likewise.
48545         * lib/filemode.c: Likewise.
48546         * lib/filemode.h: Likewise.
48547         * lib/filename.h: Likewise.
48548         * lib/filenamecat.c: Likewise.
48549         * lib/filenamecat.h: Likewise.
48550         * lib/findprog.c: Likewise.
48551         * lib/findprog.h: Likewise.
48552         * lib/float.in.h: Likewise.
48553         * lib/floor.c: Likewise.
48554         * lib/floorf.c: Likewise.
48555         * lib/floorl.c: Likewise.
48556         * lib/fopen-safer.c: Likewise.
48557         * lib/fopen.c: Likewise.
48558         * lib/fpending.c: Likewise.
48559         * lib/fpending.h: Likewise.
48560         * lib/fprintf.c: Likewise.
48561         * lib/fprintftime.h: Likewise.
48562         * lib/fpucw.h: Likewise.
48563         * lib/fpurge.c: Likewise.
48564         * lib/fpurge.h: Likewise.
48565         * lib/freadable.c: Likewise.
48566         * lib/freadable.h: Likewise.
48567         * lib/freadahead.c: Likewise.
48568         * lib/freadahead.h: Likewise.
48569         * lib/freading.c: Likewise.
48570         * lib/freading.h: Likewise.
48571         * lib/free.c: Likewise.
48572         * lib/freopen.c: Likewise.
48573         * lib/frexp.c: Likewise.
48574         * lib/frexpl.c: Likewise.
48575         * lib/fseek.c: Likewise.
48576         * lib/fseterr.c: Likewise.
48577         * lib/fseterr.h: Likewise.
48578         * lib/fstatat.c: Likewise.
48579         * lib/fstrcmp.c: Likewise.
48580         * lib/fstrcmp.h: Likewise.
48581         * lib/fsusage.c: Likewise.
48582         * lib/fsusage.h: Likewise.
48583         * lib/ftell.c: Likewise.
48584         * lib/ftello.c: Likewise.
48585         * lib/fts-cycle.c: Likewise.
48586         * lib/fts.c: Likewise.
48587         * lib/fts_.h: Likewise.
48588         * lib/full-read.c: Likewise.
48589         * lib/full-read.h: Likewise.
48590         * lib/full-write.c: Likewise.
48591         * lib/full-write.h: Likewise.
48592         * lib/fwritable.c: Likewise.
48593         * lib/fwritable.h: Likewise.
48594         * lib/fwriteerror.c: Likewise.
48595         * lib/fwriteerror.h: Likewise.
48596         * lib/fwriting.c: Likewise.
48597         * lib/fwriting.h: Likewise.
48598         * lib/gcd.c: Likewise.
48599         * lib/gcd.h: Likewise.
48600         * lib/getcwd.c: Likewise.
48601         * lib/getdate.h: Likewise.
48602         * lib/getdate.y: Likewise.
48603         * lib/getdomainname.c: Likewise.
48604         * lib/getdomainname.h: Likewise.
48605         * lib/getgroups.c: Likewise.
48606         * lib/gethostname.c: Likewise.
48607         * lib/gethrxtime.c: Likewise.
48608         * lib/gethrxtime.h: Likewise.
48609         * lib/getloadavg.c: Likewise.
48610         * lib/getndelim2.c: Likewise.
48611         * lib/getndelim2.h: Likewise.
48612         * lib/getnline.c: Likewise.
48613         * lib/getnline.h: Likewise.
48614         * lib/getopt.c: Likewise.
48615         * lib/getopt.in.h: Likewise.
48616         * lib/getopt1.c: Likewise.
48617         * lib/getopt_int.h: Likewise.
48618         * lib/getpagesize.h: Likewise.
48619         * lib/getsubopt.c: Likewise.
48620         * lib/gettime.c: Likewise.
48621         * lib/getugroups.c: Likewise.
48622         * lib/getugroups.h: Likewise.
48623         * lib/getusershell.c: Likewise.
48624         * lib/gl_anyavltree_list1.h: Likewise.
48625         * lib/gl_anyavltree_list2.h: Likewise.
48626         * lib/gl_anyhash_list1.h: Likewise.
48627         * lib/gl_anyhash_list2.h: Likewise.
48628         * lib/gl_anylinked_list1.h: Likewise.
48629         * lib/gl_anylinked_list2.h: Likewise.
48630         * lib/gl_anyrbtree_list1.h: Likewise.
48631         * lib/gl_anyrbtree_list2.h: Likewise.
48632         * lib/gl_anytree_list1.h: Likewise.
48633         * lib/gl_anytree_list2.h: Likewise.
48634         * lib/gl_anytree_oset.h: Likewise.
48635         * lib/gl_anytreehash_list1.h: Likewise.
48636         * lib/gl_anytreehash_list2.h: Likewise.
48637         * lib/gl_array_list.c: Likewise.
48638         * lib/gl_array_list.h: Likewise.
48639         * lib/gl_array_oset.c: Likewise.
48640         * lib/gl_array_oset.h: Likewise.
48641         * lib/gl_avltree_list.c: Likewise.
48642         * lib/gl_avltree_list.h: Likewise.
48643         * lib/gl_avltree_oset.c: Likewise.
48644         * lib/gl_avltree_oset.h: Likewise.
48645         * lib/gl_avltreehash_list.c: Likewise.
48646         * lib/gl_avltreehash_list.h: Likewise.
48647         * lib/gl_carray_list.c: Likewise.
48648         * lib/gl_carray_list.h: Likewise.
48649         * lib/gl_linked_list.c: Likewise.
48650         * lib/gl_linked_list.h: Likewise.
48651         * lib/gl_linkedhash_list.c: Likewise.
48652         * lib/gl_linkedhash_list.h: Likewise.
48653         * lib/gl_list.c: Likewise.
48654         * lib/gl_list.h: Likewise.
48655         * lib/gl_oset.c: Likewise.
48656         * lib/gl_oset.h: Likewise.
48657         * lib/gl_rbtree_list.c: Likewise.
48658         * lib/gl_rbtree_list.h: Likewise.
48659         * lib/gl_rbtree_oset.c: Likewise.
48660         * lib/gl_rbtree_oset.h: Likewise.
48661         * lib/gl_rbtreehash_list.c: Likewise.
48662         * lib/gl_rbtreehash_list.h: Likewise.
48663         * lib/gl_sublist.c: Likewise.
48664         * lib/gl_sublist.h: Likewise.
48665         * lib/group-member.c: Likewise.
48666         * lib/group-member.h: Likewise.
48667         * lib/hard-locale.c: Likewise.
48668         * lib/hard-locale.h: Likewise.
48669         * lib/hash-pjw.c: Likewise.
48670         * lib/hash-pjw.h: Likewise.
48671         * lib/hash-triple.c: Likewise.
48672         * lib/hash.c: Likewise.
48673         * lib/hash.h: Likewise.
48674         * lib/human.c: Likewise.
48675         * lib/human.h: Likewise.
48676         * lib/i-ring.c: Likewise.
48677         * lib/i-ring.h: Likewise.
48678         * lib/idcache.c: Likewise.
48679         * lib/imaxabs.c: Likewise.
48680         * lib/imaxdiv.c: Likewise.
48681         * lib/inet_pton.c: Likewise.
48682         * lib/inet_pton.h: Likewise.
48683         * lib/intprops.h: Likewise.
48684         * lib/inttostr.c: Likewise.
48685         * lib/inttostr.h: Likewise.
48686         * lib/inttypes.in.h: Likewise.
48687         * lib/isapipe.c: Likewise.
48688         * lib/isdir.c: Likewise.
48689         * lib/isnan.c: Likewise.
48690         * lib/isnan.h: Likewise.
48691         * lib/isnanf.c: Likewise.
48692         * lib/isnanf.h: Likewise.
48693         * lib/isnanl-nolibm.h: Likewise.
48694         * lib/isnanl.c: Likewise.
48695         * lib/isnanl.h: Likewise.
48696         * lib/javacomp.c: Likewise.
48697         * lib/javacomp.h: Likewise.
48698         * lib/javaexec.c: Likewise.
48699         * lib/javaexec.h: Likewise.
48700         * lib/javaversion.c: Likewise.
48701         * lib/javaversion.h: Likewise.
48702         * lib/javaversion.java: Likewise.
48703         * lib/lbrkprop.h: Likewise.
48704         * lib/lchmod.h: Likewise.
48705         * lib/lchown.c: Likewise.
48706         * lib/ldexpl.c: Likewise.
48707         * lib/linebreak.c: Likewise.
48708         * lib/linebreak.h: Likewise.
48709         * lib/linebuffer.c: Likewise.
48710         * lib/linebuffer.h: Likewise.
48711         * lib/locale.in.h: Likewise.
48712         * lib/logl.c: Likewise.
48713         * lib/long-options.c: Likewise.
48714         * lib/long-options.h: Likewise.
48715         * lib/lstat.c: Likewise.
48716         * lib/lstat.h: Likewise.
48717         * lib/math.in.h: Likewise.
48718         * lib/mbchar.c: Likewise.
48719         * lib/mbchar.h: Likewise.
48720         * lib/mbfile.h: Likewise.
48721         * lib/mbiter.h: Likewise.
48722         * lib/mbscasecmp.c: Likewise.
48723         * lib/mbscasestr.c: Likewise.
48724         * lib/mbschr.c: Likewise.
48725         * lib/mbscspn.c: Likewise.
48726         * lib/mbslen.c: Likewise.
48727         * lib/mbsncasecmp.c: Likewise.
48728         * lib/mbsnlen.c: Likewise.
48729         * lib/mbspbrk.c: Likewise.
48730         * lib/mbspcasecmp.c: Likewise.
48731         * lib/mbsrchr.c: Likewise.
48732         * lib/mbssep.c: Likewise.
48733         * lib/mbsspn.c: Likewise.
48734         * lib/mbsstr.c: Likewise.
48735         * lib/mbstok_r.c: Likewise.
48736         * lib/mbswidth.c: Likewise.
48737         * lib/mbswidth.h: Likewise.
48738         * lib/mbuiter.h: Likewise.
48739         * lib/memcasecmp.c: Likewise.
48740         * lib/memcasecmp.h: Likewise.
48741         * lib/memchr.c: Likewise.
48742         * lib/memcmp.c: Likewise.
48743         * lib/memcoll.c: Likewise.
48744         * lib/memcoll.h: Likewise.
48745         * lib/memcpy.c: Likewise.
48746         * lib/memrchr.c: Likewise.
48747         * lib/mkancesdirs.c: Likewise.
48748         * lib/mkdir-p.c: Likewise.
48749         * lib/mkdir-p.h: Likewise.
48750         * lib/mkdir.c: Likewise.
48751         * lib/mkdirat.c: Likewise.
48752         * lib/mkdtemp.c: Likewise.
48753         * lib/mkstemp-safer.c: Likewise.
48754         * lib/mkstemp.c: Likewise.
48755         * lib/modechange.c: Likewise.
48756         * lib/modechange.h: Likewise.
48757         * lib/mountlist.c: Likewise.
48758         * lib/mountlist.h: Likewise.
48759         * lib/mpsort.c: Likewise.
48760         * lib/nanosleep.c: Likewise.
48761         * lib/obstack.c: Likewise.
48762         * lib/obstack.h: Likewise.
48763         * lib/open-safer.c: Likewise.
48764         * lib/open.c: Likewise.
48765         * lib/openat-die.c: Likewise.
48766         * lib/openat-priv.h: Likewise.
48767         * lib/openat-proc.c: Likewise.
48768         * lib/openat.c: Likewise.
48769         * lib/openat.h: Likewise.
48770         * lib/pagealign_alloc.c: Likewise.
48771         * lib/pagealign_alloc.h: Likewise.
48772         * lib/physmem.c: Likewise.
48773         * lib/physmem.h: Likewise.
48774         * lib/pipe-safer.c: Likewise.
48775         * lib/pipe.c: Likewise.
48776         * lib/pipe.h: Likewise.
48777         * lib/posixtm.c: Likewise.
48778         * lib/posixtm.h: Likewise.
48779         * lib/posixver.c: Likewise.
48780         * lib/printf-frexp.c: Likewise.
48781         * lib/printf-frexp.h: Likewise.
48782         * lib/printf-frexpl.c: Likewise.
48783         * lib/printf-frexpl.h: Likewise.
48784         * lib/printf.c: Likewise.
48785         * lib/progname.c: Likewise.
48786         * lib/progname.h: Likewise.
48787         * lib/progreloc.c: Likewise.
48788         * lib/putenv.c: Likewise.
48789         * lib/quote.c: Likewise.
48790         * lib/quote.h: Likewise.
48791         * lib/quotearg.c: Likewise.
48792         * lib/quotearg.h: Likewise.
48793         * lib/raise.c: Likewise.
48794         * lib/readline.c: Likewise.
48795         * lib/readline.h: Likewise.
48796         * lib/readlink.c: Likewise.
48797         * lib/readtokens.c: Likewise.
48798         * lib/readtokens.h: Likewise.
48799         * lib/readtokens0.c: Likewise.
48800         * lib/readtokens0.h: Likewise.
48801         * lib/readutmp.c: Likewise.
48802         * lib/readutmp.h: Likewise.
48803         * lib/realloc.c: Likewise.
48804         * lib/relocwrapper.c: Likewise.
48805         * lib/rename-dest-slash.c: Likewise.
48806         * lib/rename.c: Likewise.
48807         * lib/rmdir.c: Likewise.
48808         * lib/rpmatch.c: Likewise.
48809         * lib/safe-read.c: Likewise.
48810         * lib/safe-read.h: Likewise.
48811         * lib/safe-write.c: Likewise.
48812         * lib/safe-write.h: Likewise.
48813         * lib/same-inode.h: Likewise.
48814         * lib/same.c: Likewise.
48815         * lib/same.h: Likewise.
48816         * lib/save-cwd.c: Likewise.
48817         * lib/save-cwd.h: Likewise.
48818         * lib/savedir.c: Likewise.
48819         * lib/savedir.h: Likewise.
48820         * lib/savewd.c: Likewise.
48821         * lib/savewd.h: Likewise.
48822         * lib/search.in.h: Likewise.
48823         * lib/setenv.c: Likewise.
48824         * lib/setenv.h: Likewise.
48825         * lib/settime.c: Likewise.
48826         * lib/sh-quote.c: Likewise.
48827         * lib/sh-quote.h: Likewise.
48828         * lib/sig2str.c: Likewise.
48829         * lib/sig2str.h: Likewise.
48830         * lib/signal.in.h: Likewise.
48831         * lib/signbitd.c: Likewise.
48832         * lib/signbitf.c: Likewise.
48833         * lib/signbitl.c: Likewise.
48834         * lib/sigprocmask.c: Likewise.
48835         * lib/sincosl.c: Likewise.
48836         * lib/sleep.c: Likewise.
48837         * lib/sprintf.c: Likewise.
48838         * lib/sqrtl.c: Likewise.
48839         * lib/stat-time.h: Likewise.
48840         * lib/stdio--.h: Likewise.
48841         * lib/stdio-safer.h: Likewise.
48842         * lib/stdlib--.h: Likewise.
48843         * lib/stdlib-safer.h: Likewise.
48844         * lib/stdlib.in.h: Likewise.
48845         * lib/stpcpy.c: Likewise.
48846         * lib/stpncpy.c: Likewise.
48847         * lib/strchrnul.c: Likewise.
48848         * lib/strcspn.c: Likewise.
48849         * lib/strerror.c: Likewise.
48850         * lib/strftime.c: Likewise.
48851         * lib/strftime.h: Likewise.
48852         * lib/striconveh.c: Likewise.
48853         * lib/striconveh.h: Likewise.
48854         * lib/striconveha.c: Likewise.
48855         * lib/striconveha.h: Likewise.
48856         * lib/stripslash.c: Likewise.
48857         * lib/strnlen1.c: Likewise.
48858         * lib/strnlen1.h: Likewise.
48859         * lib/strtod.c: Likewise.
48860         * lib/strtoimax.c: Likewise.
48861         * lib/strtok_r.c: Likewise.
48862         * lib/strtol.c: Likewise.
48863         * lib/strtoll.c: Likewise.
48864         * lib/strtoul.c: Likewise.
48865         * lib/strtoull.c: Likewise.
48866         * lib/sysexits.in.h: Likewise.
48867         * lib/tempname.c: Likewise.
48868         * lib/tempname.h: Likewise.
48869         * lib/timespec.h: Likewise.
48870         * lib/tls.c: Likewise.
48871         * lib/tls.h: Likewise.
48872         * lib/tmpdir.c: Likewise.
48873         * lib/tmpdir.h: Likewise.
48874         * lib/tmpfile-safer.c: Likewise.
48875         * lib/tmpfile.c: Likewise.
48876         * lib/trigl.c: Likewise.
48877         * lib/trigl.h: Likewise.
48878         * lib/trim.c: Likewise.
48879         * lib/trim.h: Likewise.
48880         * lib/trunc.c: Likewise.
48881         * lib/truncf.c: Likewise.
48882         * lib/truncl.c: Likewise.
48883         * lib/tsearch.c: Likewise.
48884         * lib/unicodeio.c: Likewise.
48885         * lib/unicodeio.h: Likewise.
48886         * lib/unistd--.h: Likewise.
48887         * lib/unistd-safer.h: Likewise.
48888         * lib/unistdio/ulc-fprintf.c: Likewise.
48889         * lib/unistdio/ulc-vfprintf.c: Likewise.
48890         * lib/unlinkdir.c: Likewise.
48891         * lib/unlinkdir.h: Likewise.
48892         * lib/unlocked-io.h: Likewise.
48893         * lib/unsetenv.c: Likewise.
48894         * lib/userspec.c: Likewise.
48895         * lib/utime.c: Likewise.
48896         * lib/utimecmp.c: Likewise.
48897         * lib/utimecmp.h: Likewise.
48898         * lib/utimens.c: Likewise.
48899         * lib/verify.h: Likewise.
48900         * lib/verror.c: Likewise.
48901         * lib/verror.h: Likewise.
48902         * lib/version-etc-fsf.c: Likewise.
48903         * lib/version-etc.c: Likewise.
48904         * lib/version-etc.h: Likewise.
48905         * lib/vfprintf.c: Likewise.
48906         * lib/vprintf.c: Likewise.
48907         * lib/vsprintf.c: Likewise.
48908         * lib/w32spawn.h: Likewise.
48909         * lib/wait-process.c: Likewise.
48910         * lib/wait-process.h: Likewise.
48911         * lib/wcwidth.c: Likewise.
48912         * lib/write-any-file.c: Likewise.
48913         * lib/xalloc-die.c: Likewise.
48914         * lib/xalloc.h: Likewise.
48915         * lib/xasprintf.c: Likewise.
48916         * lib/xgetcwd.c: Likewise.
48917         * lib/xgetcwd.h: Likewise.
48918         * lib/xgetdomainname.c: Likewise.
48919         * lib/xgetdomainname.h: Likewise.
48920         * lib/xgethostname.c: Likewise.
48921         * lib/xmalloc.c: Likewise.
48922         * lib/xmalloca.c: Likewise.
48923         * lib/xmalloca.h: Likewise.
48924         * lib/xmemcoll.c: Likewise.
48925         * lib/xnanosleep.c: Likewise.
48926         * lib/xreadlink.c: Likewise.
48927         * lib/xreadlink.h: Likewise.
48928         * lib/xsetenv.c: Likewise.
48929         * lib/xsetenv.h: Likewise.
48930         * lib/xstriconv.c: Likewise.
48931         * lib/xstriconv.h: Likewise.
48932         * lib/xstrndup.c: Likewise.
48933         * lib/xstrndup.h: Likewise.
48934         * lib/xstrtod.c: Likewise.
48935         * lib/xstrtod.h: Likewise.
48936         * lib/xstrtol-error.c: Likewise.
48937         * lib/xstrtol.c: Likewise.
48938         * lib/xstrtol.h: Likewise.
48939         * lib/xtime.h: Likewise.
48940         * lib/xvasprintf.c: Likewise.
48941         * lib/xvasprintf.h: Likewise.
48942         * lib/yesno.c: Likewise.
48943         * lib/yesno.h: Likewise.
48944         * posix-modules: Likewise.
48945         * tests/test-alloca-opt.c: Likewise.
48946         * tests/test-arcfour.c: Likewise.
48947         * tests/test-arctwo.c: Likewise.
48948         * tests/test-argmatch.c: Likewise.
48949         * tests/test-argp-2.sh: Likewise.
48950         * tests/test-argp.c: Likewise.
48951         * tests/test-arpa_inet.c: Likewise.
48952         * tests/test-array_list.c: Likewise.
48953         * tests/test-array_oset.c: Likewise.
48954         * tests/test-atexit.c: Likewise.
48955         * tests/test-avltree_list.c: Likewise.
48956         * tests/test-avltree_oset.c: Likewise.
48957         * tests/test-avltreehash_list.c: Likewise.
48958         * tests/test-base64.c: Likewise.
48959         * tests/test-binary-io.c: Likewise.
48960         * tests/test-byteswap.c: Likewise.
48961         * tests/test-c-ctype.c: Likewise.
48962         * tests/test-c-strcasecmp.c: Likewise.
48963         * tests/test-c-strcasestr.c: Likewise.
48964         * tests/test-c-strncasecmp.c: Likewise.
48965         * tests/test-c-strstr.c: Likewise.
48966         * tests/test-canonicalize-lgpl.c: Likewise.
48967         * tests/test-canonicalize.c: Likewise.
48968         * tests/test-carray_list.c: Likewise.
48969         * tests/test-ceilf.c: Likewise.
48970         * tests/test-ceill.c: Likewise.
48971         * tests/test-count-one-bits.c: Likewise.
48972         * tests/test-crc.c: Likewise.
48973         * tests/test-dirname.c: Likewise.
48974         * tests/test-fbufmode.c: Likewise.
48975         * tests/test-fcntl.c: Likewise.
48976         * tests/test-fflush.c: Likewise.
48977         * tests/test-floorf.c: Likewise.
48978         * tests/test-floorl.c: Likewise.
48979         * tests/test-fopen.c: Likewise.
48980         * tests/test-fprintf-posix.c: Likewise.
48981         * tests/test-fprintf-posix.h: Likewise.
48982         * tests/test-fpurge.c: Likewise.
48983         * tests/test-freadable.c: Likewise.
48984         * tests/test-freadahead.c: Likewise.
48985         * tests/test-freading.c: Likewise.
48986         * tests/test-freopen.c: Likewise.
48987         * tests/test-frexp.c: Likewise.
48988         * tests/test-frexpl.c: Likewise.
48989         * tests/test-fseek.c: Likewise.
48990         * tests/test-fseeko.c: Likewise.
48991         * tests/test-fseterr.c: Likewise.
48992         * tests/test-fstrcmp.c: Likewise.
48993         * tests/test-ftell.c: Likewise.
48994         * tests/test-ftello.c: Likewise.
48995         * tests/test-fwritable.c: Likewise.
48996         * tests/test-fwriting.c: Likewise.
48997         * tests/test-getaddrinfo.c: Likewise.
48998         * tests/test-getpass.c: Likewise.
48999         * tests/test-gettimeofday.c: Likewise.
49000         * tests/test-hmac-md5.c: Likewise.
49001         * tests/test-hmac-sha1.c: Likewise.
49002         * tests/test-iconv.c: Likewise.
49003         * tests/test-iconvme.c: Likewise.
49004         * tests/test-inttypes.c: Likewise.
49005         * tests/test-isnan.c: Likewise.
49006         * tests/test-isnanf.c: Likewise.
49007         * tests/test-isnanl-nolibm.c: Likewise.
49008         * tests/test-isnanl.c: Likewise.
49009         * tests/test-isnanl.h: Likewise.
49010         * tests/test-ldexpl.c: Likewise.
49011         * tests/test-linked_list.c: Likewise.
49012         * tests/test-linkedhash_list.c: Likewise.
49013         * tests/test-locale.c: Likewise.
49014         * tests/test-localename.c: Likewise.
49015         * tests/test-lock.c: Likewise.
49016         * tests/test-lseek.c: Likewise.
49017         * tests/test-malloca.c: Likewise.
49018         * tests/test-math.c: Likewise.
49019         * tests/test-mbscasecmp.c: Likewise.
49020         * tests/test-mbscasestr1.c: Likewise.
49021         * tests/test-mbscasestr2.c: Likewise.
49022         * tests/test-mbscasestr3.c: Likewise.
49023         * tests/test-mbscasestr4.c: Likewise.
49024         * tests/test-mbschr.c: Likewise.
49025         * tests/test-mbscspn.c: Likewise.
49026         * tests/test-mbsncasecmp.c: Likewise.
49027         * tests/test-mbspbrk.c: Likewise.
49028         * tests/test-mbspcasecmp.c: Likewise.
49029         * tests/test-mbsrchr.c: Likewise.
49030         * tests/test-mbsspn.c: Likewise.
49031         * tests/test-mbsstr1.c: Likewise.
49032         * tests/test-mbsstr2.c: Likewise.
49033         * tests/test-mbsstr3.c: Likewise.
49034         * tests/test-md5.c: Likewise.
49035         * tests/test-memmem.c: Likewise.
49036         * tests/test-netinet_in.c: Likewise.
49037         * tests/test-open.c: Likewise.
49038         * tests/test-printf-frexp.c: Likewise.
49039         * tests/test-printf-frexpl.c: Likewise.
49040         * tests/test-printf-posix.c: Likewise.
49041         * tests/test-printf-posix.h: Likewise.
49042         * tests/test-rbtree_list.c: Likewise.
49043         * tests/test-rbtree_oset.c: Likewise.
49044         * tests/test-rbtreehash_list.c: Likewise.
49045         * tests/test-read-file.c: Likewise.
49046         * tests/test-rijndael.c: Likewise.
49047         * tests/test-search.c: Likewise.
49048         * tests/test-signbit.c: Likewise.
49049         * tests/test-sleep.c: Likewise.
49050         * tests/test-snprintf-posix.c: Likewise.
49051         * tests/test-snprintf-posix.h: Likewise.
49052         * tests/test-snprintf.c: Likewise.
49053         * tests/test-sprintf-posix.c: Likewise.
49054         * tests/test-sprintf-posix.h: Likewise.
49055         * tests/test-stat-time.c: Likewise.
49056         * tests/test-stdbool.c: Likewise.
49057         * tests/test-stdint.c: Likewise.
49058         * tests/test-stdio.c: Likewise.
49059         * tests/test-stdlib.c: Likewise.
49060         * tests/test-stpncpy.c: Likewise.
49061         * tests/test-strcasestr.c: Likewise.
49062         * tests/test-striconv.c: Likewise.
49063         * tests/test-striconveh.c: Likewise.
49064         * tests/test-striconveha.c: Likewise.
49065         * tests/test-string.c: Likewise.
49066         * tests/test-sys_select.c: Likewise.
49067         * tests/test-sys_socket.c: Likewise.
49068         * tests/test-sys_stat.c: Likewise.
49069         * tests/test-sys_time.c: Likewise.
49070         * tests/test-sysexits.c: Likewise.
49071         * tests/test-time.c: Likewise.
49072         * tests/test-tls.c: Likewise.
49073         * tests/test-trunc.c: Likewise.
49074         * tests/test-truncf.c: Likewise.
49075         * tests/test-truncl.c: Likewise.
49076         * tests/test-unistd.c: Likewise.
49077         * tests/test-vasnprintf-posix.c: Likewise.
49078         * tests/test-vasnprintf-posix2.c: Likewise.
49079         * tests/test-vasnprintf.c: Likewise.
49080         * tests/test-vasprintf-posix.c: Likewise.
49081         * tests/test-vasprintf.c: Likewise.
49082         * tests/test-verify.c: Likewise.
49083         * tests/test-vfprintf-posix.c: Likewise.
49084         * tests/test-vprintf-posix.c: Likewise.
49085         * tests/test-vsnprintf-posix.c: Likewise.
49086         * tests/test-vsnprintf.c: Likewise.
49087         * tests/test-vsprintf-posix.c: Likewise.
49088         * tests/test-wchar.c: Likewise.
49089         * tests/test-wctype.c: Likewise.
49090         * tests/test-wcwidth.c: Likewise.
49091         * tests/test-xstrtol.c: Likewise.
49092         * tests/test-xvasprintf.c: Likewise.
49093         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49094         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49095         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49096         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49097         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49098         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49099         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49100         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49101         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49102         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49103         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49104         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49105         * tests/uniname/test-uninames.c: Likewise.
49106         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49107         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
49108         * tests/unistdio/test-u16-printf1.h: Likewise.
49109         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49110         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49111         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49112         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49113         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49114         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49115         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49116         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
49117         * tests/unistdio/test-u32-printf1.h: Likewise.
49118         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49119         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49120         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49121         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49122         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49123         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49124         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49125         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
49126         * tests/unistdio/test-u8-printf1.h: Likewise.
49127         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49128         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49129         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49130         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49131         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49132         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49133         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49134         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
49135         * tests/unistdio/test-ulc-printf1.h: Likewise.
49136         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49137         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49138         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49139         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49140         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49141         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49142         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49143         * tests/uniwidth/test-u16-width.c: Likewise.
49144         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49145         * tests/uniwidth/test-u32-width.c: Likewise.
49146         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49147         * tests/uniwidth/test-u8-width.c: Likewise.
49148         * tests/uniwidth/test-uc_width.c: Likewise.
49149         * config/srclist-update: Likewise.
49150         (fixlicense): Update to GPLv3+.
49151
49152         Change copyright notice from LGPLv2.1+ to LGPLv3+.
49153         * tests/test-tsearch.c: Change copyright notice.
49154
49155         Change copyright notice from LGPLv2.0+ to LGPLv3+.
49156         * lib/c-strcaseeq.h: Change copyright notice.
49157         * lib/streq.h: Likewise.
49158         * lib/uniconv.h: Likewise.
49159         * lib/uniconv/u-conv-from-enc.h: Likewise.
49160         * lib/uniconv/u-conv-to-enc.h: Likewise.
49161         * lib/uniconv/u-strconv-from-enc.h: Likewise.
49162         * lib/uniconv/u-strconv-to-enc.h: Likewise.
49163         * lib/uniconv/u16-conv-from-enc.c: Likewise.
49164         * lib/uniconv/u16-conv-to-enc.c: Likewise.
49165         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
49166         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
49167         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
49168         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
49169         * lib/uniconv/u32-conv-from-enc.c: Likewise.
49170         * lib/uniconv/u32-conv-to-enc.c: Likewise.
49171         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
49172         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
49173         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
49174         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
49175         * lib/uniconv/u8-conv-from-enc.c: Likewise.
49176         * lib/uniconv/u8-conv-to-enc.c: Likewise.
49177         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
49178         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
49179         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
49180         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
49181         * lib/uniname.h: Likewise.
49182         * lib/uniname/uniname.c: Likewise.
49183         * lib/unistdio.h: Likewise.
49184         * lib/unistdio/u-asnprintf.h: Likewise.
49185         * lib/unistdio/u-asprintf.h: Likewise.
49186         * lib/unistdio/u-printf-args.c: Likewise.
49187         * lib/unistdio/u-printf-args.h: Likewise.
49188         * lib/unistdio/u-printf-parse.h: Likewise.
49189         * lib/unistdio/u-snprintf.h: Likewise.
49190         * lib/unistdio/u-sprintf.h: Likewise.
49191         * lib/unistdio/u-vasprintf.h: Likewise.
49192         * lib/unistdio/u-vsnprintf.h: Likewise.
49193         * lib/unistdio/u-vsprintf.h: Likewise.
49194         * lib/unistdio/u16-asnprintf.c: Likewise.
49195         * lib/unistdio/u16-asprintf.c: Likewise.
49196         * lib/unistdio/u16-printf-parse.c: Likewise.
49197         * lib/unistdio/u16-snprintf.c: Likewise.
49198         * lib/unistdio/u16-sprintf.c: Likewise.
49199         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
49200         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49201         * lib/unistdio/u16-u16-snprintf.c: Likewise.
49202         * lib/unistdio/u16-u16-sprintf.c: Likewise.
49203         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
49204         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
49205         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
49206         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
49207         * lib/unistdio/u16-vasnprintf.c: Likewise.
49208         * lib/unistdio/u16-vasprintf.c: Likewise.
49209         * lib/unistdio/u16-vsnprintf.c: Likewise.
49210         * lib/unistdio/u16-vsprintf.c: Likewise.
49211         * lib/unistdio/u32-asnprintf.c: Likewise.
49212         * lib/unistdio/u32-asprintf.c: Likewise.
49213         * lib/unistdio/u32-printf-parse.c: Likewise.
49214         * lib/unistdio/u32-snprintf.c: Likewise.
49215         * lib/unistdio/u32-sprintf.c: Likewise.
49216         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
49217         * lib/unistdio/u32-u32-asprintf.c: Likewise.
49218         * lib/unistdio/u32-u32-snprintf.c: Likewise.
49219         * lib/unistdio/u32-u32-sprintf.c: Likewise.
49220         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
49221         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
49222         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
49223         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
49224         * lib/unistdio/u32-vasnprintf.c: Likewise.
49225         * lib/unistdio/u32-vasprintf.c: Likewise.
49226         * lib/unistdio/u32-vsnprintf.c: Likewise.
49227         * lib/unistdio/u32-vsprintf.c: Likewise.
49228         * lib/unistdio/u8-asnprintf.c: Likewise.
49229         * lib/unistdio/u8-asprintf.c: Likewise.
49230         * lib/unistdio/u8-printf-parse.c: Likewise.
49231         * lib/unistdio/u8-snprintf.c: Likewise.
49232         * lib/unistdio/u8-sprintf.c: Likewise.
49233         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
49234         * lib/unistdio/u8-u8-asprintf.c: Likewise.
49235         * lib/unistdio/u8-u8-snprintf.c: Likewise.
49236         * lib/unistdio/u8-u8-sprintf.c: Likewise.
49237         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
49238         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
49239         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
49240         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
49241         * lib/unistdio/u8-vasnprintf.c: Likewise.
49242         * lib/unistdio/u8-vasprintf.c: Likewise.
49243         * lib/unistdio/u8-vsnprintf.c: Likewise.
49244         * lib/unistdio/u8-vsprintf.c: Likewise.
49245         * lib/unistdio/ulc-asnprintf.c: Likewise.
49246         * lib/unistdio/ulc-asprintf.c: Likewise.
49247         * lib/unistdio/ulc-printf-parse.c: Likewise.
49248         * lib/unistdio/ulc-snprintf.c: Likewise.
49249         * lib/unistdio/ulc-sprintf.c: Likewise.
49250         * lib/unistdio/ulc-vasnprintf.c: Likewise.
49251         * lib/unistdio/ulc-vasprintf.c: Likewise.
49252         * lib/unistdio/ulc-vsnprintf.c: Likewise.
49253         * lib/unistdio/ulc-vsprintf.c: Likewise.
49254         * lib/unistr.h: Likewise.
49255         * lib/unistr/u-cpy-alloc.h: Likewise.
49256         * lib/unistr/u-cpy.h: Likewise.
49257         * lib/unistr/u-endswith.h: Likewise.
49258         * lib/unistr/u-move.h: Likewise.
49259         * lib/unistr/u-set.h: Likewise.
49260         * lib/unistr/u-startswith.h: Likewise.
49261         * lib/unistr/u-stpcpy.h: Likewise.
49262         * lib/unistr/u-stpncpy.h: Likewise.
49263         * lib/unistr/u-strcat.h: Likewise.
49264         * lib/unistr/u-strcpy.h: Likewise.
49265         * lib/unistr/u-strcspn.h: Likewise.
49266         * lib/unistr/u-strdup.h: Likewise.
49267         * lib/unistr/u-strlen.h: Likewise.
49268         * lib/unistr/u-strncat.h: Likewise.
49269         * lib/unistr/u-strncpy.h: Likewise.
49270         * lib/unistr/u-strnlen.h: Likewise.
49271         * lib/unistr/u-strpbrk.h: Likewise.
49272         * lib/unistr/u-strspn.h: Likewise.
49273         * lib/unistr/u-strstr.h: Likewise.
49274         * lib/unistr/u-strtok.h: Likewise.
49275         * lib/unistr/u16-check.c: Likewise.
49276         * lib/unistr/u16-chr.c: Likewise.
49277         * lib/unistr/u16-cmp.c: Likewise.
49278         * lib/unistr/u16-cpy-alloc.c: Likewise.
49279         * lib/unistr/u16-cpy.c: Likewise.
49280         * lib/unistr/u16-endswith.c: Likewise.
49281         * lib/unistr/u16-mblen.c: Likewise.
49282         * lib/unistr/u16-mbsnlen.c: Likewise.
49283         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49284         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49285         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49286         * lib/unistr/u16-mbtouc.c: Likewise.
49287         * lib/unistr/u16-mbtoucr.c: Likewise.
49288         * lib/unistr/u16-move.c: Likewise.
49289         * lib/unistr/u16-next.c: Likewise.
49290         * lib/unistr/u16-prev.c: Likewise.
49291         * lib/unistr/u16-set.c: Likewise.
49292         * lib/unistr/u16-startswith.c: Likewise.
49293         * lib/unistr/u16-stpcpy.c: Likewise.
49294         * lib/unistr/u16-stpncpy.c: Likewise.
49295         * lib/unistr/u16-strcat.c: Likewise.
49296         * lib/unistr/u16-strchr.c: Likewise.
49297         * lib/unistr/u16-strcmp.c: Likewise.
49298         * lib/unistr/u16-strcpy.c: Likewise.
49299         * lib/unistr/u16-strcspn.c: Likewise.
49300         * lib/unistr/u16-strdup.c: Likewise.
49301         * lib/unistr/u16-strlen.c: Likewise.
49302         * lib/unistr/u16-strmblen.c: Likewise.
49303         * lib/unistr/u16-strmbtouc.c: Likewise.
49304         * lib/unistr/u16-strncat.c: Likewise.
49305         * lib/unistr/u16-strncmp.c: Likewise.
49306         * lib/unistr/u16-strncpy.c: Likewise.
49307         * lib/unistr/u16-strnlen.c: Likewise.
49308         * lib/unistr/u16-strpbrk.c: Likewise.
49309         * lib/unistr/u16-strrchr.c: Likewise.
49310         * lib/unistr/u16-strspn.c: Likewise.
49311         * lib/unistr/u16-strstr.c: Likewise.
49312         * lib/unistr/u16-strtok.c: Likewise.
49313         * lib/unistr/u16-to-u32.c: Likewise.
49314         * lib/unistr/u16-to-u8.c: Likewise.
49315         * lib/unistr/u16-uctomb-aux.c: Likewise.
49316         * lib/unistr/u16-uctomb.c: Likewise.
49317         * lib/unistr/u32-check.c: Likewise.
49318         * lib/unistr/u32-chr.c: Likewise.
49319         * lib/unistr/u32-cmp.c: Likewise.
49320         * lib/unistr/u32-cpy-alloc.c: Likewise.
49321         * lib/unistr/u32-cpy.c: Likewise.
49322         * lib/unistr/u32-endswith.c: Likewise.
49323         * lib/unistr/u32-mblen.c: Likewise.
49324         * lib/unistr/u32-mbsnlen.c: Likewise.
49325         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49326         * lib/unistr/u32-mbtouc.c: Likewise.
49327         * lib/unistr/u32-mbtoucr.c: Likewise.
49328         * lib/unistr/u32-move.c: Likewise.
49329         * lib/unistr/u32-next.c: Likewise.
49330         * lib/unistr/u32-prev.c: Likewise.
49331         * lib/unistr/u32-set.c: Likewise.
49332         * lib/unistr/u32-startswith.c: Likewise.
49333         * lib/unistr/u32-stpcpy.c: Likewise.
49334         * lib/unistr/u32-stpncpy.c: Likewise.
49335         * lib/unistr/u32-strcat.c: Likewise.
49336         * lib/unistr/u32-strchr.c: Likewise.
49337         * lib/unistr/u32-strcmp.c: Likewise.
49338         * lib/unistr/u32-strcpy.c: Likewise.
49339         * lib/unistr/u32-strcspn.c: Likewise.
49340         * lib/unistr/u32-strdup.c: Likewise.
49341         * lib/unistr/u32-strlen.c: Likewise.
49342         * lib/unistr/u32-strmblen.c: Likewise.
49343         * lib/unistr/u32-strmbtouc.c: Likewise.
49344         * lib/unistr/u32-strncat.c: Likewise.
49345         * lib/unistr/u32-strncmp.c: Likewise.
49346         * lib/unistr/u32-strncpy.c: Likewise.
49347         * lib/unistr/u32-strnlen.c: Likewise.
49348         * lib/unistr/u32-strpbrk.c: Likewise.
49349         * lib/unistr/u32-strrchr.c: Likewise.
49350         * lib/unistr/u32-strspn.c: Likewise.
49351         * lib/unistr/u32-strstr.c: Likewise.
49352         * lib/unistr/u32-strtok.c: Likewise.
49353         * lib/unistr/u32-to-u16.c: Likewise.
49354         * lib/unistr/u32-to-u8.c: Likewise.
49355         * lib/unistr/u32-uctomb.c: Likewise.
49356         * lib/unistr/u8-check.c: Likewise.
49357         * lib/unistr/u8-chr.c: Likewise.
49358         * lib/unistr/u8-cmp.c: Likewise.
49359         * lib/unistr/u8-cpy-alloc.c: Likewise.
49360         * lib/unistr/u8-cpy.c: Likewise.
49361         * lib/unistr/u8-endswith.c: Likewise.
49362         * lib/unistr/u8-mblen.c: Likewise.
49363         * lib/unistr/u8-mbsnlen.c: Likewise.
49364         * lib/unistr/u8-mbtouc-aux.c: Likewise.
49365         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49366         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49367         * lib/unistr/u8-mbtouc.c: Likewise.
49368         * lib/unistr/u8-mbtoucr.c: Likewise.
49369         * lib/unistr/u8-move.c: Likewise.
49370         * lib/unistr/u8-next.c: Likewise.
49371         * lib/unistr/u8-prev.c: Likewise.
49372         * lib/unistr/u8-set.c: Likewise.
49373         * lib/unistr/u8-startswith.c: Likewise.
49374         * lib/unistr/u8-stpcpy.c: Likewise.
49375         * lib/unistr/u8-stpncpy.c: Likewise.
49376         * lib/unistr/u8-strcat.c: Likewise.
49377         * lib/unistr/u8-strchr.c: Likewise.
49378         * lib/unistr/u8-strcmp.c: Likewise.
49379         * lib/unistr/u8-strcpy.c: Likewise.
49380         * lib/unistr/u8-strcspn.c: Likewise.
49381         * lib/unistr/u8-strdup.c: Likewise.
49382         * lib/unistr/u8-strlen.c: Likewise.
49383         * lib/unistr/u8-strmblen.c: Likewise.
49384         * lib/unistr/u8-strmbtouc.c: Likewise.
49385         * lib/unistr/u8-strncat.c: Likewise.
49386         * lib/unistr/u8-strncmp.c: Likewise.
49387         * lib/unistr/u8-strncpy.c: Likewise.
49388         * lib/unistr/u8-strnlen.c: Likewise.
49389         * lib/unistr/u8-strpbrk.c: Likewise.
49390         * lib/unistr/u8-strrchr.c: Likewise.
49391         * lib/unistr/u8-strspn.c: Likewise.
49392         * lib/unistr/u8-strstr.c: Likewise.
49393         * lib/unistr/u8-strtok.c: Likewise.
49394         * lib/unistr/u8-to-u16.c: Likewise.
49395         * lib/unistr/u8-to-u32.c: Likewise.
49396         * lib/unistr/u8-uctomb-aux.c: Likewise.
49397         * lib/unistr/u8-uctomb.c: Likewise.
49398         * lib/unitypes.h: Likewise.
49399         * lib/uniwidth.h: Likewise.
49400         * lib/uniwidth/cjk.h: Likewise.
49401         * lib/uniwidth/u16-strwidth.c: Likewise.
49402         * lib/uniwidth/u16-width.c: Likewise.
49403         * lib/uniwidth/u32-strwidth.c: Likewise.
49404         * lib/uniwidth/u32-width.c: Likewise.
49405         * lib/uniwidth/u8-strwidth.c: Likewise.
49406         * lib/uniwidth/u8-width.c: Likewise.
49407         * lib/uniwidth/width.c: Likewise.
49408
49409 2007-10-07  Bruno Haible  <bruno@clisp.org>
49410
49411         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49412         The file is still under LGPL (see modules/inttypes).
49413
49414 2007-10-06  Bruno Haible  <bruno@clisp.org>
49415
49416         * modules/trunc (Dependencies): Add 'extensions'.
49417         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49418         Reported by Ben Pfaff <blp@gnu.org>.
49419
49420 2007-10-06  Bruno Haible  <bruno@clisp.org>
49421
49422         * modules/freopen-tests: New file.
49423         * tests/test-freopen.c: New file.
49424
49425         * modules/fopen-tests: New file.
49426         * tests/test-fopen.c: New file.
49427
49428         * modules/fopen: New file.
49429         * lib/fopen.c: New file.
49430         * m4/fopen.m4: New file.
49431         * modules/freopen: New file.
49432         * lib/freopen.c: New file.
49433         * m4/freopen.m4: New file.
49434         * lib/stdio.in.h (fopen, freopen): New declarations.
49435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49436         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49437         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49438         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49439         * doc/functions/fopen.texi: Mention the 'fopen' module.
49440         * doc/functions/freopen.texi: Mention the 'freopen' module.
49441
49442 2007-10-06  Bruno Haible  <bruno@clisp.org>
49443
49444         * modules/open-tests: New file.
49445         * tests/test-open.c: New file.
49446
49447         * modules/open: New file.
49448         * lib/open.c: New file.
49449         * m4/open.m4: New file.
49450         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49451         lib/open.c does.
49452         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49453         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49454         macros.
49455         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49456         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49457         REPLACE_OPEN.
49458         * doc/functions/open.texi: Mention the 'open' module.
49459
49460 2007-10-04  Bruno Haible  <bruno@clisp.org>
49461
49462         * modules/ceill-tests: New file.
49463         * tests/test-ceill.c: New file.
49464
49465         * modules/ceill: New file.
49466         * lib/ceill.c: Replace entire file.
49467         * m4/ceill.m4: New file.
49468         * lib/math.in.h (ceill): Replace declaration.
49469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49470         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49471         * doc/functions/ceill.texi: Mention the 'ceill' module.
49472         * modules/mathl (Files): Remove lib/ceill.c.
49473         (Depends-on): Add ceill.
49474
49475 2007-10-04  Bruno Haible  <bruno@clisp.org>
49476
49477         * modules/ceilf-tests: New file.
49478         * tests/test-ceilf.c: New file.
49479
49480         * modules/ceilf: New file.
49481         * lib/ceil.c: New file.
49482         * lib/ceilf.c: New file.
49483         * m4/ceilf.m4: New file.
49484         * lib/math.in.h (ceilf): New declaration.
49485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49486         HAVE_DECL_CEILF.
49487         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49488         HAVE_DECL_CEILF.
49489         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49490
49491 2007-10-04  Bruno Haible  <bruno@clisp.org>
49492
49493         * modules/floorl-tests: New file.
49494         * tests/test-floorl.c: New file.
49495
49496         * modules/floorl: New file.
49497         * lib/floorl.c: Replace entire file.
49498         * m4/floorl.m4: New file.
49499         * lib/math.in.h (floorl): Replace declaration.
49500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49501         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49502         * doc/functions/floorl.texi: Mention the 'floorl' module.
49503         * modules/mathl (Files): Remove lib/floorl.c.
49504         (Depends-on): Add floorl.
49505
49506 2007-10-04  Bruno Haible  <bruno@clisp.org>
49507
49508         * modules/floorf-tests: New file.
49509         * tests/test-floorf.c: New file.
49510
49511         * modules/floorf: New file.
49512         * lib/floor.c: New file.
49513         * lib/floorf.c: New file.
49514         * m4/floorf.m4: New file.
49515         * lib/math.in.h (floorf): New declaration.
49516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49517         HAVE_DECL_FLOORF.
49518         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49519         HAVE_DECL_FLOORF.
49520         * doc/functions/floorf.texi: Mention the 'floorf' module.
49521
49522 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49523             Bruno Haible  <bruno@clisp.org>
49524
49525         Advertise for the Git server instead of the CVS server.
49526         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49527         repository instead of the CVS one.
49528         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49529         about all VCS systems generically.
49530         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49531
49532 2007-10-04  Bruno Haible  <bruno@clisp.org>
49533
49534         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49535         means.
49536         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49537
49538 2007-10-04  Bruno Haible  <bruno@clisp.org>
49539
49540         * modules/truncl-tests: New file.
49541         * tests/test-truncl.c: New file.
49542
49543         * modules/truncl: New file.
49544         * lib/truncl.c: New file.
49545         * m4/truncl.m4: New file.
49546         * lib/math.in.h (truncl): New declaration.
49547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49548         HAVE_DECL_TRUNCL.
49549         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49550         HAVE_DECL_TRUNCL.
49551         * doc/functions/truncl.texi: Mention the 'truncl' module.
49552
49553 2007-10-04  Bruno Haible  <bruno@clisp.org>
49554
49555         * modules/truncf-tests: New file.
49556         * tests/test-truncf.c: New file.
49557
49558         * modules/truncf: New file.
49559         * lib/trunc.c: Make paramerizable through USE_* macros.
49560         * lib/truncf.c: New file.
49561         * m4/truncf.m4: New file.
49562         * lib/math.in.h (truncf): New declaration.
49563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49564         HAVE_DECL_TRUNCF.
49565         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49566         HAVE_DECL_TRUNCF.
49567         * doc/functions/truncf.texi: Mention the 'truncf' module.
49568
49569 2007-10-03  Bruno Haible  <bruno@clisp.org>
49570
49571         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49572         augmentation also for tests modules.
49573         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49574         * modules/atexit-tests (Makefile.am): Likewise.
49575         * modules/binary-io-tests (Makefile.am): Likewise.
49576         * modules/c-strcase-tests (Makefile.am): Likewise.
49577         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49578         * modules/canonicalize-tests (Makefile.am): Likewise.
49579         * modules/closein-tests (Makefile.am): Likewise.
49580         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49581         * modules/freadahead-tests (Makefile.am): Likewise.
49582         * modules/fseek-tests (Makefile.am): Likewise.
49583         * modules/fseeko-tests (Makefile.am): Likewise.
49584         * modules/ftell-tests (Makefile.am): Likewise.
49585         * modules/ftello-tests (Makefile.am): Likewise.
49586         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49587         * modules/isnanl-tests (Makefile.am): Likewise.
49588         * modules/lseek-tests (Makefile.am): Likewise.
49589         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49590         * modules/mbscasestr-tests (Makefile.am): Likewise.
49591         * modules/mbschr-tests (Makefile.am): Likewise.
49592         * modules/mbscspn-tests (Makefile.am): Likewise.
49593         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49594         * modules/mbspbrk-tests (Makefile.am): Likewise.
49595         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49596         * modules/mbsrchr-tests (Makefile.am): Likewise.
49597         * modules/mbsspn-tests (Makefile.am): Likewise.
49598         * modules/mbsstr-tests (Makefile.am): Likewise.
49599         * modules/printf-posix-tests (Makefile.am): Likewise.
49600         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49601         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49602         * modules/tsearch-tests (Makefile.am): Likewise.
49603         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49604         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49605         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49606         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49607         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49608         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49609         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49610         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49611         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49612         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49613         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49614         * modules/xstrtol-tests (Makefile.am): Likewise.
49615         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49616         * modules/yesno-tests (Makefile.am): Likewise.
49617
49618 2007-10-03  Bruno Haible  <bruno@clisp.org>
49619
49620         * modules/trunc-tests: New file.
49621         * tests/test-trunc.c: New file.
49622
49623         * modules/trunc: New file.
49624         * lib/trunc.c: New file.
49625         * m4/trunc.m4: New file.
49626         * lib/math.in.h (trunc): New declaration.
49627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49628         HAVE_DECL_TRUNC.
49629         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49630         HAVE_DECL_TRUNC.
49631         * doc/functions/trunc.texi: Mention the 'trunc' module.
49632
49633 2007-10-03  Bruno Haible  <bruno@clisp.org>
49634
49635         * tests/test-fpending.c: New file, mostly copied
49636         from coreutils/lib/t-fpending.c.
49637         * modules/fpending-tests: New file.
49638
49639 2007-10-03  Bruno Haible  <bruno@clisp.org>
49640
49641         Port the stdio extensions to QNX (untested).
49642         * lib/fseterr.c (fseterr): Add support for QNX.
49643         * lib/fbufmode.c (fbufmode): Likewise.
49644         * lib/freadable.c (freadable): Likewise.
49645         * lib/fwritable.c (fwritable): Likewise.
49646         * lib/freading.c (freading): Likewise.
49647         * lib/fwriting.c (fwriting): Likewise.
49648         * lib/freadahead.c (freadahed): Likewise.
49649         * lib/fpurge.c (fpurge): Likewise.
49650         * lib/fseeko.c (rpl_fseeko): Likewise.
49651
49652 2007-10-03  Bruno Haible  <bruno@clisp.org>
49653             Jim Meyering  <jim@meyering.net>
49654             Eric Blake  <ebb9@byu.net>
49655
49656         * doc/relocatable.texi: Use @command instead of @program.
49657
49658 2007-10-02  Jim Meyering  <jim@meyering.net>
49659
49660         Perform one more "_.h" -> ".in.h" substitution.
49661         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49662         instead of unistd_.h here, too.
49663
49664 2007-10-01  Bruno Haible  <bruno@clisp.org>
49665
49666         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49667         Needed for the alloca-opt module.
49668
49669 2007-09-30  Bruno Haible  <bruno@clisp.org>
49670
49671         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49672         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49673         alloca_.h.
49674         * lib/argz.in.h: Renamed from lib/argz_.h.
49675         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49676         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49677         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49678         byteswap_.h.
49679         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49680         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49681         dirent_.h.
49682         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49683         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49684         fcntl_.h.
49685         * lib/float.in.h: Renamed from lib/float_.h.
49686         * modules/float (Files, Makefile.am): Use float.in.h instead of
49687         float_.h.
49688         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49689         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49690         fnmatch_.h.
49691         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49692         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49693         getopt_.h.
49694         * lib/glob.in.h: Renamed from lib/glob_.h.
49695         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49696         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49697         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49698         iconv_.h.
49699         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49700         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49701         inttypes_.h.
49702         * lib/locale.in.h: Renamed from lib/locale_.h.
49703         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49704         locale_.h.
49705         * lib/math.in.h: Renamed from lib/math_.h.
49706         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49707         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49708         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49709         of netinet_in_.h. Add dependency.
49710         * lib/poll.in.h: Renamed from lib/poll_.h.
49711         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49712         * lib/search.in.h: Renamed from lib/search_.h.
49713         * modules/search (Files, Makefile.am): Use search.in.h instead of
49714         search_.h.
49715         * lib/signal.in.h: Renamed from lib/signal_.h.
49716         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49717         _signal.h.
49718         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49719         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49720         stdbool_.h.
49721         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49722         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49723         stdint_.h.
49724         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49725         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49726         stdio_.h.
49727         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49728         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49729         stdlib_.h.
49730         * lib/string.in.h: Renamed from lib/string_.h.
49731         * modules/string (Files, Makefile.am): Use string.in.h instead of
49732         string_.h.
49733         * doc/gnulib-tool.texi (Initial import): Update.
49734         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49735         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49736         of sys_select_.h. Add dependency.
49737         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49738         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49739         of sys_socket_.h.
49740         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49741         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49742         sys_stat_.h.
49743         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49744         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49745         sys_time_.h.
49746         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49747         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49748         sysexits_.h.
49749         * lib/time.in.h: Renamed from lib/time_.h.
49750         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49751         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49752         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49753         unistd_.h.
49754         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49755         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49756         wchar_.h.
49757         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49758         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49759         wctype_.h.
49760         * build-aux/bootstrap (slurp): Update.
49761         * lib/.cppi-disable: Update.
49762
49763 2007-09-30  Bruno Haible  <bruno@clisp.org>
49764
49765         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49766         Needed on BeOS.
49767
49768 2007-09-30  Bruno Haible  <bruno@clisp.org>
49769
49770         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49771
49772 2007-09-29  Bruno Haible  <bruno@clisp.org>
49773
49774         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49775
49776 2007-09-29  Bruno Haible  <bruno@clisp.org>
49777
49778         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49779         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49780         * build-aux/install-reloc: Compile also areadlink.c.
49781         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49782
49783 2007-09-29  Bruno Haible  <bruno@clisp.org>
49784
49785         * gnulib-tool (func_emit_initmacro_done): Indentation.
49786
49787 2007-09-29  Bruno Haible  <bruno@clisp.org>
49788
49789         * README: Add CVS checkout update instructions.
49790         Info from Bob Proulx <bob@proulx.com>.
49791
49792 2007-09-28  Eric Blake  <ebb9@byu.net>
49793
49794         Provide move-if-change.
49795         * build-aux/move-if-change: New file, based on best practice
49796         rather than any canonical upstream location.
49797
49798 2007-09-28  Jim Meyering  <jim@meyering.net>
49799
49800         Fix canonicalize loop-detection corner case.
49801         Do not attempt to stat the symlink values stored via seen_triple.
49802         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49803         on linux-2.6.18, (but not 2.6.22).
49804         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49805         triple_compare.  The former compares dev,ino,filename, while the latter
49806         would actually stat dirname(filename) when dev and ino were equal.
49807         * lib/hash-triple.c: Install <string.h>.
49808         (STREQ): Define.
49809         (triple_compare_ino_str): New function.
49810         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49811
49812 2007-09-28  Eric Blake  <ebb9@byu.net>
49813
49814         Enforce that AC_REPLACE_FUNCS files exist.
49815         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49816         override check for typos.
49817
49818         Fix test-closein on Solaris 10.
49819         * tests/test-closein.c (main): Don't assume stdin can be inherited
49820         closed on all systems.
49821         * tests/test-closein.sh: Likewise.
49822         Reported by Piotr Tarnowski.
49823
49824 2007-09-28  Jim Meyering  <jim@meyering.net>
49825
49826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49827
49828 2007-09-27  Jim Meyering  <jim@meyering.net>
49829
49830         canonicalize: Avoid a false-positive cycle failure.
49831         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49832         Sort.  Remove cycle-check.
49833         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49834         not cycle-check.h.
49835         (seen_triple): New function.
49836         (canonicalize_filename_mode): Use it instead of cycle-check.
49837         * tests/test-canonicalize.c: Add a test for this bug.
49838         * tests/test-canonicalize.sh: Set up and run the test.
49839
49840         New module, file-set, from coreutils.
49841         * modules/file-set: Define it.
49842         * lib/file-set.c, lib/file-set.h: Implement.
49843
49844         New module, hash-triple, from coreutils.
49845         * modules/hash-triple: Define it.
49846         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49847
49848 2007-09-25  Eric Blake  <ebb9@byu.net>
49849
49850         Fix strerror on Interix.
49851         * lib/string_.h (strerror): Declare replacement.
49852         * doc/functions/strerror.texi (strerror): Document the Interix
49853         shortcoming.
49854         * modules/string (Makefile.am): Support new hooks.
49855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49856         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49857         gl_FUNC_STRERROR_SEPARATE.
49858         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49859         * lib/strerror.c (rpl_strerror): Provide replacement.
49860         * modules/strerror (Depends-on): Add string.
49861         (configure.ac): Detect use of module.
49862         * tests/test-strerror.c: New file.
49863         * modules/strerror-tests: New test module.
49864         * modules/argp (Depends-on): Add strerror.
49865         * modules/error (Depends-on): Likewise.
49866         Reported by Martin Koeppe.
49867
49868 2007-09-24  Bruno Haible  <bruno@clisp.org>
49869
49870         * README: Update git instructions.
49871
49872 2007-09-24  Eric Blake  <ebb9@byu.net>
49873
49874         Revert fpending breakage from 2007-09-08.
49875         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49876         __fpending.c.
49877
49878 2007-09-24  Jim Meyering  <jim@meyering.net>
49879
49880         filenamecat.c: Add a test.
49881         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49882         showing how the function works when DIR is the empty string.
49883
49884 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49885
49886         * tests/test-canonicalize.sh: Turn on executable bit.
49887
49888 2007-09-19  Eric Blake  <ebb9@byu.net>
49889
49890         * README: Update CVS instructions.
49891
49892 2007-09-18  Bruno Haible  <bruno@clisp.org>
49893
49894         * modules/areadlink: New file.
49895         * lib/areadlink.h (areadlink): New declaration.
49896         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49897
49898 2007-09-17  Jim Meyering  <jim@meyering.net>
49899
49900         * lib/savewd.c (ESTALE) [!defined]: Define.
49901         Reported to be required on Interix by Martin Koeppe.
49902
49903 2007-09-17  Bruno Haible  <bruno@clisp.org>
49904
49905         * gnulib-tool (func_version): Use $version.
49906
49907 2007-09-16  Bruno Haible  <bruno@clisp.org>
49908
49909         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49910         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49911         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49912         Reported by Greg Schafer <gschafer@zip.com.au>.
49913
49914 2007-09-15  Bruno Haible  <bruno@clisp.org>
49915
49916         * gnulib-tool (sed): Try a little harder to make bash understand the
49917         alias.
49918         Reported by Bruce Korb <bruce.korb@gmail.com>.
49919
49920 2007-09-13  Eric Blake  <ebb9@byu.net>
49921
49922         * ChangeLog: Remove conflict markers.
49923
49924 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49925
49926         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49927         Reported by Bruno Haible <bruno@clisp.org>.
49928
49929 2007-09-12  Bruno Haible  <bruno@clisp.org>
49930
49931         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49932         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49933         is not defined.
49934
49935 2007-09-12  Eric Blake  <ebb9@byu.net>
49936
49937         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49938         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49939         Autoconf definition.
49940         * modules/euidaccess (Depends-on): Add extensions, for
49941         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49942         * modules/fnmatch (Depends-on): Likewise.
49943         * modules/getaddrinfo (Depends-on): Likewise.
49944         * modules/getdelim (Depends-on): Likewise.
49945         * modules/getline (Depends-on): Likewise.
49946         * modules/getsubopt (Depends-on): Likewise.
49947         * modules/gettext (Depends-on): Likewise.
49948         * modules/group-member (Depends-on): Likewise.
49949         * modules/mbchar (Depends-on): Likewise.
49950         * modules/memmem (Depends-on): Likewise.
49951         * modules/mempcpy (Depends-on): Likewise.
49952         * modules/memrchr (Depends-on): Likewise.
49953         * modules/pagealign_alloc (Depends-on): Likewise.
49954         * modules/readutmp (Depends-on): Likewise.
49955         * modules/stpcpy (Depends-on): Likewise.
49956         * modules/stpncpy (Depends-on): Likewise.
49957         * modules/strchrnul (Depends-on): Likewise.
49958         * modules/strndup (Depends-on): Likewise.
49959         * modules/strsep (Depends-on): Likewise.
49960         * modules/strverscmp (Depends-on): Likewise.
49961         * modules/vasprintf (Depends-on): Likewise.
49962         * modules/wcwidth (Depends-on): Likewise.
49963         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49964         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49965         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49966         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49967         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49968         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49969         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49970         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49971         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49972         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49973         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49974         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49975         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49976         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49977         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49978         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49979         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49980         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49981         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49982         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49983         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49984         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49985         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49986         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49987         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49989         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49990         so that lock.m4 can be used in gettext without extensions module.
49991
49992 2007-09-11  Bruno Haible  <bruno@clisp.org>
49993
49994         * m4/isc-posix.m4: Remove file.
49995         Suggested by Eric Blake.
49996
49997 2007-09-11  Eric Blake  <ebb9@byu.net>
49998
49999         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
50000
50001 2007-09-10  Bruno Haible  <bruno@clisp.org>
50002
50003         * posix-modules: Fix typo in error message.
50004         Reported by Matt <mkraai@beckman.com>.
50005
50006 2007-09-09  Bruno Haible  <bruno@clisp.org>
50007
50008         * doc/functions/getdelim.texi: Update list of platforms lacking the
50009         function.
50010         * doc/functions/getline.texi: Likewise.
50011
50012 2007-09-09  Jim Meyering  <jim@meyering.net>
50013
50014         * lib/hash.c (hash_initialize): Detect calloc failure.
50015         Reported by Bruno Haible.
50016
50017 2007-09-09  Bruno Haible  <bruno@clisp.org>
50018
50019         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
50020         malloc or realloc fails.
50021
50022 2007-09-09  Bruno Haible  <bruno@clisp.org>
50023
50024         * modules/getcwd (Depends-on): Add malloc-posix.
50025         * modules/glob (Depends-on): Likewise.
50026         * modules/putenv (Depends-on): Likewise.
50027         * modules/strdup (Depends-on): Likewise.
50028         * modules/getdelim (Depends-on): Add realloc-posix.
50029         * modules/read-file (Depends-on): Likewise.
50030
50031 2007-09-09  Bruno Haible  <bruno@clisp.org>
50032
50033         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
50034         (gl_FUNC_MALLOC_POSIX): Require it.
50035         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
50036         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
50037         * modules/realloc (Files): Add m4/malloc.m4.
50038         * modules/calloc (Files): Likewise.
50039
50040 2007-09-09  Bruno Haible  <bruno@clisp.org>
50041
50042         * modules/malloc-posix: New file.
50043         * modules/malloc (Depends-on): Add malloc-posix.
50044         * lib/malloc.c: Include errno.h.
50045         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
50046         and a POSIX-compatible malloc into a single function. Set ENOMEM
50047         when returning NULL.
50048         * m4/malloc.m4: New file.
50049         * doc/functions/malloc.texi: Mention the malloc-posix module.
50050         * lib/stdlib_.h (malloc): New declaration.
50051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50052         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
50053         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
50054         and HAVE_MALLOC_POSIX.
50055
50056 2007-09-09  Bruno Haible  <bruno@clisp.org>
50057
50058         * modules/realloc-posix: New file.
50059         * modules/realloc (Depends-on): Add realloc-posix.
50060         * lib/realloc.c: Include errno.h.
50061         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
50062         and a POSIX-compatible realloc into a single function. Set ENOMEM
50063         when returning NULL.
50064         * m4/realloc.m4: New file.
50065         * doc/functions/realloc.texi: Mention the realloc-posix module.
50066         * lib/stdlib_.h (realloc): New declaration.
50067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50068         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
50069         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
50070         and HAVE_REALLOC_POSIX.
50071
50072 2007-09-09  Bruno Haible  <bruno@clisp.org>
50073
50074         * modules/calloc-posix: New file.
50075         * modules/calloc (Depends-on): Add calloc-posix.
50076         * lib/calloc.c: Include errno.h.
50077         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
50078         and a POSIX-compatible calloc into a single function. Set ENOMEM
50079         when returning NULL.
50080         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
50081         * doc/functions/calloc.texi: Mention the calloc-posix module.
50082         * lib/stdlib_.h (calloc): New declaration.
50083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50084         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
50085         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
50086         and HAVE_CALLOC_POSIX.
50087
50088 2007-09-09  Bruno Haible  <bruno@clisp.org>
50089
50090         Allow for modules to show an arbitrary notice.
50091         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
50092         * gnulib-tool: New option --extract-notice.
50093         (func_usage): Document it.
50094         (sed_extract_prog): Update.
50095         (func_get_notice): New function.
50096         (func_modules_notice): New function.
50097         (func_import, func_create_testdir): Invoke it.
50098         Suggested by Jim Meyering.
50099
50100 2007-09-09  Bruno Haible  <bruno@clisp.org>
50101
50102         * gnulib-tool: New options --verbose, --quiet.
50103         (func_usage): Document them.
50104         (verbose): New variable.
50105         (func_execute_command): New function.
50106         (func_import): Don't show the module list and the file list if
50107         $verbose < 0.
50108         (func_create_testdir): Likewise. Use func_execute_command.
50109         (func_create_megatestdir): Use func_execute_command.
50110
50111 2007-09-08  Bruno Haible  <bruno@clisp.org>
50112
50113         * gnulib-tool (func_import): Prefer rsync over wget when available,
50114         for fetching the PO files.
50115
50116 2007-09-08  Bruno Haible  <bruno@clisp.org>
50117
50118         * posix-modules: New file. Portions copied from gnulib-tool.
50119         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
50120
50121 2007-09-08  Jim Meyering  <jim@meyering.net>
50122
50123         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
50124         * lib/fpending.h: Rename from __fpending.h.
50125         * lib/fpending.c: Rename from __fpending.c.
50126         Include "fpending.h", not "__fpending.h".
50127         * lib/__fpending.h, lib/__fpending.c: Remove files.
50128         * modules/fpending (Files): Reflect new file names.
50129         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
50130
50131 2007-09-08  Bruno Haible  <bruno@clisp.org>
50132
50133         * m4/inttypes-h.m4: Remove stub file.
50134
50135 2007-09-07  Simon Josefsson  <simon@josefsson.org>
50136
50137         * doc/headers/stdint.texi: Discuss #include_next issue.
50138
50139 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50140
50141         * build-aux/bootstrap: Remove obsolete comment about wget --help.
50142
50143 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50144
50145         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
50146         in variable name.
50147
50148 2007-09-03  Jim Meyering  <jim@meyering.net>
50149
50150         New module: git-version-gen.
50151         * modules/git-version-gen: New file.
50152
50153         Import changes from coreutils for bootstrap script.
50154
50155         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
50156
50157         bootstrap: uses rsync to download the .po files
50158         * build-aux/bootstrap (po_download_command_format): New global.
50159         (download_po_files): Use rsync.
50160         (update_po_files): Don't remove .po files after download,
50161         so future rsync runs can take advantage of the copies.
50162
50163         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
50164
50165         Solve the unnecessary-.po-file-regeneration problem once and for all.
50166         * build-aux/bootstrap (download_po_files): New function, renamed from
50167         get_translations.  Now, downloads, but doesn't update LINGUAS.
50168         (update_po_files): New function.
50169
50170         bootstrap: Ignore more.
50171         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
50172         uniwidth to e.g., lib/.gitignore.
50173         (slurp): Handle the sys_stat_.h -> sys mapping, too.
50174
50175         * build-aux/bootstrap: New setting: vc_ignore.
50176         (insert_sorted_if_absent): Create $file if absent.
50177         Adapt to new, possibly empty, list: $vc_ignore.
50178
50179         bootstrap: generate more ignorable names
50180         * build-aux/bootstrap (slurp): When generating ignorable names,
50181         also map .sin to .sed, .gperf to .c, and .y to .c.
50182
50183 2007-09-03  Jim Meyering  <jim@meyering.net>
50184
50185         * build-aux/git-version-gen: New file, from coreutils.  For details, see
50186         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
50187
50188 2007-09-02  Bruno Haible  <bruno@clisp.org>
50189
50190         Fix mis-recognition of 'mcs' on QNX 6.
50191         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
50192         output contains the string "Mono".
50193         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
50194         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
50195
50196 2007-09-01  Bruno Haible  <bruno@clisp.org>
50197
50198         Fix collision between uniwidth/* and linebreak modules.
50199         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
50200         u32_width): Remove declarations.
50201         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
50202         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
50203         streq3, streq2, streq1, streq0): Remove functions.
50204         (STREQ): Remove macro.
50205         (is_cjk_encoding): Remove function.
50206         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
50207         (uc_width, u8_width, u16_width, u32_width): Remove functions.
50208         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
50209         * NEWS: Document the change.
50210
50211 2007-09-01  Bruno Haible  <bruno@clisp.org>
50212
50213         * lib/streq.h: Add double-inclusion guard.
50214
50215 2007-09-01  Karl Berry  <karl@gnu.org>
50216
50217         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
50218
50219 2007-08-28  Jim Meyering  <jim@meyering.net>
50220
50221         Rename mreadlink_with_size to areadlink_with_size.
50222         * NEWS: Document the change.
50223         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
50224         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
50225         * lib/mreadlink.h: Rename this to...
50226         * lib/areadlink.h: ...this.
50227         * modules/mreadlink-with-size: Rename this to...
50228         * modules/areadlink-with-size: ...this.
50229         * lib/canonicalize.c: Reflect the renaming.
50230         * modules/canonicalize: Likewise.
50231
50232 2007-08-26  Bruno Haible  <bruno@clisp.org>
50233
50234         * gnulib-tool (func_import): When deciding which files to remove,
50235         consider also dangling symbolic links.
50236         Reported by Eric Blake.
50237
50238 2007-08-26  Bruno Haible  <bruno@clisp.org>
50239
50240         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
50241
50242 2007-08-23  Simon Josefsson  <simon@josefsson.org>
50243
50244         * lib/readline.c: Don't include getline.h, the prototype is now
50245         found in stdio.h.
50246
50247 2007-08-23  Jim Meyering  <jim@meyering.net>
50248
50249         Getdelim touchup.
50250         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
50251         around the funlockfile call, since funlockfile never sets errno.
50252         Don't set errno upon failed realloc.
50253
50254 2007-08-22  Eric Blake  <ebb9@byu.net>
50255
50256         Getline touchups.
50257         * lib/getdelim.c (getdelim): Revert regression that required *n to
50258         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
50259         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
50260         getdelim, rather than whether implementation is missing.
50261         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
50262         * lib/stdio_.h (getline): Also declare if replacement is
50263         required.
50264         * doc/functions/getdelim.texi: New file.
50265         * doc/functions/getline.texi: Likewise.
50266         * doc/gnulib.texi (Function Substitutes): Add new files.
50267         Reported by Bruno Haible.
50268
50269 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
50270
50271         * users.txt: Add Guile.
50272
50273 2007-08-22  Eric Blake  <ebb9@byu.net>
50274
50275         * tests/test-getdelim.c (main): Use remove, not unlink.
50276         * tests/test-getline.c (main): Likewise.
50277
50278         Move getline and getdelim into stdio.h, per POSIX 200x.
50279         * modules/getline (Files): Remove getline.h.
50280         (Depends-on): Add stdio.
50281         (configure.ac): Add module indicator.
50282         * modules/getdelim (Files): Remove getdelim.h.
50283         (Depends-on): Add stdio.
50284         (configure.ac): Add module indicator.
50285         * modules/stdio (Makefile.am): Work with new indicators.
50286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
50287         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
50288         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50289         * lib/getdelim.h: Delete.
50290         * lib/getline.h: Delete.
50291         * lib/stdio_.h (getdelim, getline): Declare.
50292         * modules/getdelim-tests: New module.
50293         * modules/getline-tests: Likewise.
50294         * tests/test-getdelim.c: New file.
50295         * tests/test-getline.c: Likewise.
50296         * NEWS: Document the change.
50297         * lib/getline.c: Update choice of header.
50298         * lib/csharpcomp.c: Likewise.
50299         * lib/getpass.c: Likewise.
50300         * lib/javacomp.c: Likewise.
50301         * lib/javaversion.c: Likewise.
50302         * lib/yesno.c: Likewise.
50303         * lib/getdelim.c: Likewise.
50304         (getdelim): Set errno on failure, and avoid memory leak.
50305
50306 2007-08-19  Bruno Haible  <bruno@clisp.org>
50307
50308         * modules/closein (Depends-on): Add freadahead.
50309         * lib/closein.c: Include freadahead.h.
50310         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
50311         is zero.
50312
50313 2007-08-19  Bruno Haible  <bruno@clisp.org>
50314
50315         * modules/freadahead-tests: New file.
50316         * tests/test-freadahead.sh: New file.
50317         * tests/test-freadahead.c: New file.
50318
50319         * modules/freadahead: New file.
50320         * lib/freadahead.h: New file.
50321         * lib/freadahead.c: New file.
50322         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
50323         fbufmode, fpurge, freadable, fwritable.
50324
50325 2007-08-19  Eric Blake  <ebb9@byu.net>
50326
50327         Test yesno in combination with closein.
50328         * lib/yesno.c (yesno): Document use of stdin.
50329         * modules/yesno-tests (Files): New module.
50330         * tests/test-yesno.c (main): New file.
50331         * tests/test-yesno.sh: Likewise.
50332
50333 2007-08-19  Bruno Haible  <bruno@clisp.org>
50334
50335         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
50336         * lib/fseeko.c (rpl_fseeko): Likewise.
50337         * lib/fseterr.c (fseterr): Likewise.
50338
50339 2007-08-19  Bruno Haible  <bruno@clisp.org>
50340
50341         * tests/test-lseek.c (main): Disable a test for BeOS.
50342         * doc/functions/lseek.texi: Document the BeOS bug.
50343
50344 2007-08-19  Bruno Haible  <bruno@clisp.org>
50345             Eric Blake  <ebb9@byu.net>
50346
50347         * lib/lseek.c: Include <sys/stat.h>.
50348         (rpl_lseek): Add workaround code also for Unix platforms.
50349         Needed for BeOS.
50350         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
50351         * doc/functions/lseek.texi: Document BeOS definiency.
50352
50353 2007-08-18  Bruno Haible  <bruno@clisp.org>
50354
50355         * modules/fstrcmp-tests: New file.
50356         * tests/test-fstrcmp.c: New file.
50357
50358 2007-08-18  Bruno Haible  <bruno@clisp.org>
50359
50360         * modules/fstrcmp: New file, from GNU gettext with modifications.
50361         * lib/fstrcmp.h: New file, from GNU gettext.
50362         * lib/fstrcmp.c: New file, from GNU gettext.
50363         * MODULES.html.sh (String handling): Add fstrcmp.
50364
50365 2007-08-18  Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
50368         'bool'.
50369         (diag, compareseq): Remove const from the ctxt argument.
50370         (USE_HEURISTIC): Undefine at the end.
50371
50372 2007-08-18  Jim Meyering  <jim@meyering.net>
50373
50374         New file: lib/idcache.h
50375         * NEWS: Mention the addition.
50376         * modules/idcache (Files): Add lib/idcache.h
50377         * lib/idcache.c: Include "idcache.h".
50378         Don't include <sys/types.h>.
50379         Add a FIXME comment.
50380         Move file-scoped "static" declarations to the top.
50381         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
50382
50383 2007-08-17  Bruno Haible  <bruno@clisp.org>
50384         and Paul Eggert  <eggert@cs.ucla.edu>
50385
50386         * MODULES.html.sh: Add diffseq.
50387         * modules/diffseq: New file.
50388         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
50389         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
50390
50391 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50392
50393         Import changes from coreutils for bootstrap script.
50394
50395         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
50396
50397         * build-aux/bootstrap (slurp): Work even in environments where
50398         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
50399         current code does not slurp files whose names start with ".", and
50400         this looks like it might be a troublesome area.
50401
50402         2007-07-11  Jim Meyering  <jim@meyering.net>
50403
50404         If there's a GPL vN copyright comment, require that N == 3.
50405
50406         2007-07-08  Jim Meyering  <jim@meyering.net>
50407
50408         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50409         * build-aux/bootstrap (mam_template): Move definition out of loop.
50410
50411         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50412
50413         * build-aux/bootstrap (symlink_to_dir): Rename function from
50414         symlink_to_gnulib.  Add a directory parameter.  Update all
50415         callers.
50416         (cp_mark_as_generated): Also check for -- and link to -- files in
50417         gl/.
50418
50419         2007-07-08  Jim Meyering  <jim@meyering.net>
50420
50421         Adapt to deeper hierarchy in gnulib.
50422         * build-aux/bootstrap (symlink_to_dir): If the destination
50423         directory doesn't exist, create it. This is required at least for
50424         "lib/uniwidth/cjk.h".
50425
50426         2007-05-15  Jim Meyering  <jim@meyering.net>
50427
50428         * build-aux/bootstrap: Now that generated Makefile.am files
50429         are no longer under version control, they must be created at
50430         bootstrap time.
50431
50432 2007-08-14  Ben Pfaff  <blp@gnu.org>
50433
50434         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50435
50436 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50437
50438         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50439         given the changes below.
50440         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50441         even on hosts that have padding bits beyond the supported 64.
50442
50443 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50444
50445         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50446         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50447         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50448         depends on it.
50449         (xstrtol_error): Remove.
50450         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50451         but with a different signature.
50452         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50453         * lib/xstrtol-error.c: Include exitfail.h.
50454         (xstrtol_fatal): New function, with a different signature from the
50455         old xstrtol_error, so that the caller need not worry about passing
50456         in an exit status, or about storage management of the option argument.
50457         (xstrtol_error): Now a static function.  Redo signature to
50458         implement xstrtol_fatal.  Output the correct number of hyphens in
50459         front of the option so that the caller need not worry about
50460         storage management.
50461         (N_): New macro.
50462         (_): Remove; not used now.
50463         * modules/xstrtol: Depend on getopt.
50464         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50465         of old STRTOL_FATAL_ERROR macro.
50466         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50467         of test program.
50468         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50469         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50470
50471 2007-08-08  Eric Blake  <ebb9@byu.net>
50472
50473         * lib/xstrtol-error.c: Add missing include.
50474
50475         Move xstrtol messages into gnulib domain, when --pobase is used.
50476         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50477         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50478         * modules/xstrtol (Files): Distribute new file.
50479         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50480         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50481         * tests/test-xstrtol.c: ...into new file.
50482         * tests/test-xstrtoul.c: Also test xstrtoul.
50483         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50484         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50485         * tests/test-xstrtol.sh: Drive the tests.
50486         * tests/test-xstrtoimax.sh: Likewise.
50487         * tests/test-xstrtoumax.sh: Likewise.
50488         * modules/xstrtol-tests: New module.
50489         * modules/xstrtoimax-tests: Likewise.
50490         * modules/xstrtoumax-tests: Likewise.
50491
50492 2007-08-08  Jim Meyering  <jim@meyering.net>
50493
50494         New function: mfile_name_concat.
50495         * lib/filenamecat.c (mfile_name_concat): New function, just like
50496         file_name_concat, but return NULL upon failure rather than exiting
50497         with a diagnostic.
50498         * lib/filenamecat.h: Declare it.
50499
50500 2007-08-07  Bruno Haible  <bruno@clisp.org>
50501
50502         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50503         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50504         warning from gcc.
50505         Reported by Eric Blake.
50506
50507 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50508
50509         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50510         * modules/crypto/arcfour (License): Likewise.
50511         * modules/crypto/des-tests (License): Likewise.
50512         * modules/crypto/gc-arctwo-tests (License): Likewise.
50513         * modules/crypto/gc-des-tests (License): Likewise.
50514         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50515         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50516         * modules/crypto/gc-md2-tests (License): Likewise.
50517         * modules/crypto/gc-md4-tests (License): Likewise.
50518         * modules/crypto/gc-md5-tests (License): Likewise.
50519         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50520         * modules/crypto/gc-rijndael-tests (License): Likewise.
50521         * modules/crypto/gc-sha1-tests (License): Likewise.
50522         * modules/crypto/gc-tests (License): Likewise.
50523         * modules/crypto/hmac-md5 (License): Likewise.
50524         * modules/crypto/hmac-sha1 (License): Likewise.
50525         * modules/crypto/md2-tests (License): Likewise.
50526         * modules/crypto/md4-tests (License): Likewise.
50527         * modules/crypto/md5 (License): Likewise.
50528         * modules/crypto/rijndael (License): Likewise.
50529         * modules/crypto/sha1 (License): Likewise.
50530         * modules/memxor (License): Likewise.
50531
50532 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50533         and Bruno Haible  <bruno@clisp.org>
50534
50535         * NEWS: Describe interface changes to human, xstrtol.
50536         * lib/human.h: Include <xstrtol.h>.
50537         (human_options): Return enum strtol_error, not int.  Remove
50538         bool arg; take int * instead.
50539         * lib/human.c: Don't include "gettext.h".
50540         (_): Remove; no longer used.
50541         Don't include <xstrtol.h>, since human.h does it.
50542         (human_options): Adjust to abovementioned interface changes.
50543         Do not report error to stderr; that's now the caller's
50544         responsibility.
50545         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50546         interface change.
50547         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50548         Str, Argument_type_string.  All uses changed.  Put " argument"
50549         in diagnostics to make them clearer.  Change wording of suffix
50550         message for clarity.
50551         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50552         Argument_type_string.
50553         (STRTOL_FATAL_WARN): Remove; no longer used.
50554         * modules/human (Depends-on): Remove gettext-h.
50555
50556 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50557
50558         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50559
50560 2007-07-31  Bruno Haible  <bruno@clisp.org>
50561
50562         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50563         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50564         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50565
50566 2007-07-31  Bruno Haible  <bruno@clisp.org>
50567
50568         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50569         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50570
50571 2007-07-30  Bruno Haible  <bruno@clisp.org>
50572
50573         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50574         * modules/c-ctype (License): Likewise.
50575         * modules/c-strcase (License): Likewise.
50576         * modules/check-version (License): Likewise.
50577         * modules/iconv (License): Likewise.
50578         * modules/iconv_open (License): Likewise.
50579         * modules/read-file (License): Likewise.
50580         * modules/striconv (License): Likewise.
50581         * modules/strverscmp (License): Likewise.
50582         * modules/vasprintf (License): Likewise.
50583         * modules/crypto/des (License): Likewise.
50584         * modules/crypto/gc (License): Likewise.
50585         * modules/crypto/gc-arcfour (License): Likewise.
50586         * modules/crypto/gc-arctwo (License): Likewise.
50587         * modules/crypto/gc-des (License): Likewise.
50588         * modules/crypto/gc-hmac-md5 (License): Likewise.
50589         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50590         * modules/crypto/gc-md2 (License): Likewise.
50591         * modules/crypto/gc-md4 (License): Likewise.
50592         * modules/crypto/gc-md5 (License): Likewise.
50593         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50594         * modules/crypto/gc-random (License): Likewise.
50595         * modules/crypto/gc-rijndael (License): Likewise.
50596         * modules/crypto/gc-sha1 (License): Likewise.
50597         * modules/crypto/md2 (License): Likewise.
50598         * modules/crypto/md4 (License): Likewise.
50599
50600 2007-07-30  Jim Meyering  <jim@meyering.net>
50601
50602         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50603         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50604         it has valid stat data.  This bug would cause du not to count the
50605         sizes of inaccessible directories.
50606         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50607         in <http://bugzilla.redhat.com/250077>.
50608
50609 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50610             Bruno Haible  <bruno@clisp.org>
50611
50612         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50613         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50614         #include_next, gives a diagnostic about it, but reports no error in
50615         the exit code.
50616         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50617
50618 2007-07-24  Ben Pfaff  <blp@gnu.org>
50619
50620         Improve name: "count-one-bits" is better than "popcount".
50621         * MODULES.html.sh: Update name.
50622         * lib/popcount.h: Renamed lib/count-one-bits.h.
50623         (popcount): Renamed count_one_bits.
50624         (popcountl): Renamed count_one_bits_l.
50625         (popcountll): Renamed count_one_bits_ll.
50626         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50627         * modules/popcount: Renamed module/count-one-bits.
50628         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50629         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50630
50631 2007-07-23  Ben Pfaff  <blp@gnu.org>
50632
50633         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50634         better code generation, and add U to large constants to avoid
50635         warnings, in non-GCC case.
50636         Suggested by Bruno Haible.
50637
50638 2007-07-23  Ben Pfaff  <blp@gnu.org>
50639
50640         * lib/popcount.h: Use verify_true instead of if...abort.
50641         * modules/popcount: Depend on verify module.
50642         Suggested by Jim Meyering.
50643
50644 2007-07-23  Bruno Haible  <bruno@clisp.org>
50645
50646         * gnulib-tool (func_import): Create a .cvsignore file also when the
50647         directory is not yet in CVS but the toplevel directory is. When
50648         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50649         Reported by Karl Berry.
50650
50651 2007-07-22  Ben Pfaff  <blp@gnu.org>
50652
50653         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50654         case.
50655         Suggested by Eric Blake.
50656
50657 2007-07-22  Ben Pfaff  <blp@gnu.org>
50658
50659         New module: popcount.
50660         * MODULES.html.sh: Add popcount.
50661         * modules/popcount: New file.
50662         * modules/popcount-tests: New file.
50663         * tests/test-popcount.c: New file.
50664         * lib/popcount.h: New file.
50665         * m4/popcount.m4: New file.
50666
50667 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50668
50669         * build-aux/announce-gen: Update to GPLv3.
50670
50671         * build-aux/config.guess: Update from config.
50672
50673 2007-07-21  Bruno Haible  <bruno@clisp.org>
50674
50675         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50676         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50677
50678 2007-07-20  Jim Meyering  <jim@meyering.net>
50679
50680         * check-module: Diagnose a self-dependency.
50681
50682 2007-07-19  Bruno Haible  <bruno@clisp.org>
50683
50684         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50685         empty.
50686         Reported by Eric Blake.
50687
50688 2007-07-18  Bruno Haible  <bruno@clisp.org>
50689
50690         * gnulib-tool: New options --po-base, --po-domain.
50691         (func_usage): Document them.
50692         (pobase, po_domain): New variables.
50693         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50694         DEFAULT_TEXT_DOMAIN.
50695         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50696         (func_import): Consider pobase and po_domain. Create a po/ directory.
50697         (func_create_testdir): Set pobase and po_domain to empty.
50698         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50699         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50700
50701 2007-07-18  Bruno Haible  <bruno@clisp.org>
50702
50703         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50704         EXTRA_DIST augmentation for files in build-aux/.
50705
50706 2007-07-16  Bruno Haible  <bruno@clisp.org>
50707
50708         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50709         * modules/getdelim (License): Likewise.
50710
50711 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50712
50713         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50714         * modules/d-type (License): Likewise.
50715         * modules/extensions (License): Likewise.
50716         * modules/fnmatch (License): Likewise.
50717         * modules/fseeko (License): Likewise.
50718         * modules/getaddrinfo (License): Likewise.
50719         * modules/getline (License): Likewise.
50720         * modules/getlogin_r (License): Likewise.
50721         * modules/getpass (License): Likewise.
50722         * modules/gettimeofday (License): Likewise.
50723         * modules/glob (License): Likewise.
50724         * modules/inet_ntop (License): Likewise.
50725         * modules/malloc (License): Likewise.
50726         * modules/malloca (License): Likewise.
50727         * modules/memmem (License): Likewise.
50728         * modules/mempcpy (License): Likewise.
50729         * modules/memset (License): Likewise.
50730         * modules/minmax (License): Likewise.
50731         * modules/mktime (License): Likewise.
50732         * modules/netinet_in (License): Likewise.
50733         * modules/pathmax (License): Likewise.
50734         * modules/poll (License): Likewise.
50735         * modules/regex (License): Likewise.
50736         * modules/snprintf (License): Likewise.
50737         * modules/stdbool (License): Likewise.
50738         * modules/stdint (License): Likewise.
50739         * modules/stdio (License): Likewise.
50740         * modules/strcase (License): Likewise.
50741         * modules/strcasestr (License): Likewise.
50742         * modules/strdup (License): Likewise.
50743         * modules/string (License): Likewise.
50744         * modules/strndup (License): Likewise.
50745         * modules/strnlen (License): Likewise.
50746         * modules/strpbrk (License): Likewise.
50747         * modules/strptime (License): Likewise.
50748         * modules/strsep (License): Likewise.
50749         * modules/sys_select (License): Likewise.
50750         * modules/sys_socket (License): Likewise.
50751         * modules/sys_stat (License): Likewise.
50752         * modules/sys_time (License): Likewise.
50753         * modules/time (License): Likewise.
50754         * modules/time_r (License): Likewise.
50755         * modules/timegm (License): Likewise.
50756         * modules/unistd (License): Likewise.
50757         * modules/vsnprintf (License): Likewise.
50758         * modules/wctype (License): Likewise.
50759
50760 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50761
50762         * modules/argz (License): LGPLv2+.
50763
50764 2007-07-15  Karl Berry  <karl@gnu.org>
50765
50766         * doc/gnulib.texi: revise node structure per new fdl.texi.
50767
50768 2007-07-14  Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50771         the output file.
50772         * lib/uniname/uninames.h: Regenerated.
50773
50774 2007-07-14  Karl Berry  <karl@gnu.org>
50775
50776         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50777         omitting sectioning and index commands.
50778
50779 2007-07-13  Bruno Haible  <bruno@clisp.org>
50780
50781         New gnulib-tool option --more-symlinks.
50782         * gnulib-tool (func_usage): Document --more-symlinks.
50783         (do_copyrights): New variable.
50784         Recognize option --more-symlinks.
50785         (func_import): Don't add a copyright notice transform to
50786         sed_transform_lib_file if do_copyrights is empty.
50787
50788 2007-07-13  Bruno Haible  <bruno@clisp.org>
50789
50790         * lib/vasnprintf.c (decimal_point_char): Define also if
50791         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50792         && !NEED_PRINTF_DIRECTIVE_A.
50793         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50794         Gary V. Vaughan <gary@gnu.org>.
50795
50796 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50797
50798         * lib/inttypes_.h: Undo previous change, since it was fixed
50799         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50800
50801 2007-07-13  Bruno Haible  <bruno@clisp.org>
50802
50803         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50804         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50805
50806 2007-07-13  Jim Meyering  <jim@meyering.net>
50807
50808         df: Don't fail for Tru64's "file-on-file mount".
50809         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50810         so we fall through and use statfs instead.  Details here:
50811         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50812         Reported by Albert Chin.
50813
50814 2007-07-13  Bruno Haible  <bruno@clisp.org>
50815
50816         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50817         * modules/configmake (License): Likewise.
50818         * modules/gettext (License): Likewise.
50819         * modules/gettext-h (License): Likewise.
50820         * modules/include_next (License): Likewise.
50821         * modules/link-warning (License): Likewise.
50822         * modules/localcharset (License): Likewise.
50823         * modules/localename (License): Likewise.
50824         * modules/lock (License): Likewise.
50825         * modules/relocatable-lib-lgpl (License): Likewise.
50826         * modules/size_max (License): Likewise.
50827         * modules/vasnprintf (License): Likewise.
50828         * modules/wchar (License): Likewise.
50829         * modules/xsize (License): Likewise.
50830
50831 2007-07-13  Bruno Haible  <bruno@clisp.org>
50832
50833         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50834         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50835
50836 2007-07-12  Bruno Haible  <bruno@clisp.org>
50837
50838         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50839         in the modules files.
50840
50841 2007-07-11  Karl Berry  <karl@gnu.org>
50842
50843         * MODULES.html.sh (func_module): use
50844          sed -e '\|^'"${includefile}"'$|d'
50845          instead of /.../d, to avoid errors on $includefile's containing /.
50846
50847 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50848
50849         * gnulib-tool (func_import): Avoid duplication of --avoid
50850         statements
50851         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50852         names to `_' in variable names.
50853
50854 2007-07-10  Eric Blake  <ebb9@byu.net>
50855
50856         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50857         * NEWS: Document this change.
50858
50859 2007-07-08  Bruno Haible  <bruno@clisp.org>
50860
50861         Update to Unicode 5.0.
50862         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50863         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50864         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50865         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50866         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50867         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50868         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50869         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50870         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50871         U+10A3F, U+1D242..U+1D244.
50872         (nonspacing_table_ind): Update.
50873         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50874         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50875
50876 2007-07-08  Bruno Haible  <bruno@clisp.org>
50877
50878         Update to Unicode 5.0.
50879         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50880         code transform. Extend the name index field of unicode_name_to_code and
50881         unicode_code_to_name from 16 to 24 bits.
50882         * lib/uniname/uniname.c (unicode_character_name,
50883         unicode_name_character): Add the range 0x12xxx to the code transform.
50884         * lib/uniname/uninames.h: Regenerated.
50885         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50886
50887 2007-07-07  Bruno Haible  <bruno@clisp.org>
50888
50889         * modules/wcwidth-tests: New file.
50890         * tests/test-wcwidth.c: New file.
50891
50892         Work around MacOS X wcwidth() bug.
50893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50894         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50895         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50896         original wcwidth in non-UTF-8 locales.
50897         * modules/wcwidth (Depends-on): Add localcharset, streq,
50898         uniwidth/width.
50899         * doc/functions/wcwidth.texi: Update.
50900
50901 2007-07-07  Bruno Haible  <bruno@clisp.org>
50902
50903         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50904         (wcwidth): New declaration.
50905         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50906         macros.
50907         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50908         here. Prepare for creating <wchar.h> unconditionally.
50909         * modules/wchar (Depends-on): Add link-warning.
50910         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50911         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50912         * lib/wcwidth.h: Remove file.
50913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50914         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50915         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50916         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50917         (Include): Replace wcwidth.h with <wchar.h>.
50918         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50919         * lib/mbchar.h: Don't include wcwidth.h.
50920         * lib/mbswidth.c: Likewise.
50921         * NEWS: Mention the change.
50922
50923 2007-07-07  Bruno Haible  <bruno@clisp.org>
50924
50925         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50926         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50927         definition with an external declaration.
50928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50929         defined as a function. Remove AC_C_INLINE requirement.
50930         * modules/wcwidth (Files): Add lib/wcwidth.c.
50931         (Makefile.am): Remove redundant statement.
50932
50933 2007-07-07  Bruno Haible  <bruno@clisp.org>
50934
50935         * MODULES.html.sh (Unicode string functions): Add the new modules.
50936
50937         * tests/uniwidth/test-u32-strwidth.c: New file.
50938         * modules/uniwidth/u32-strwidth-tests: New file.
50939
50940         * lib/uniwidth/u32-strwidth.c: New file.
50941         * modules/uniwidth/u32-strwidth: New file.
50942
50943         * tests/uniwidth/test-u16-strwidth.c: New file.
50944         * modules/uniwidth/u16-strwidth-tests: New file.
50945
50946         * lib/uniwidth/u16-strwidth.c: New file.
50947         * modules/uniwidth/u16-strwidth: New file.
50948
50949         * tests/uniwidth/test-u8-strwidth.c: New file.
50950         * modules/uniwidth/u8-strwidth-tests: New file.
50951
50952         * lib/uniwidth/u8-strwidth.c: New file.
50953         * modules/uniwidth/u8-strwidth: New file.
50954
50955         * tests/uniwidth/test-u32-width.c: New file.
50956         * modules/uniwidth/u32-width-tests: New file.
50957
50958         * lib/uniwidth/u32-width.c: New file.
50959         * modules/uniwidth/u32-width: New file.
50960
50961         * tests/uniwidth/test-u16-width.c: New file.
50962         * modules/uniwidth/u16-width-tests: New file.
50963
50964         * lib/uniwidth/u16-width.c: New file.
50965         * modules/uniwidth/u16-width: New file.
50966
50967         * tests/uniwidth/test-u8-width.c: New file.
50968         * modules/uniwidth/u8-width-tests: New file.
50969
50970         * lib/uniwidth/u8-width.c: New file.
50971         * modules/uniwidth/u8-width: New file.
50972
50973         * tests/uniwidth/test-uc_width.c: New file.
50974         * modules/uniwidth/width-tests: New file.
50975
50976         * lib/uniwidth/width.c: New file, from GNU libiconv.
50977         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50978         * modules/uniwidth/width: New file.
50979
50980         * lib/uniwidth.h: New file, from GNU libiconv.
50981         * modules/uniwidth/base: New file.
50982
50983 2007-07-07  Bruno Haible  <bruno@clisp.org>
50984
50985         * lib/uniname.h: New file, from GNU gettext.
50986         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50987         * lib/uniname/uninames.h: New file, from GNU gettext.
50988         * lib/uniname/uniname.c: New file, from GNU gettext.
50989         * tests/uniname/test-uninames.sh: New file.
50990         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50991         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50992         * modules/uniname/base: New file.
50993         * modules/uniname/uniname: New file.
50994         * modules/uniname/uniname-tests: New file.
50995         * MODULES.html.sh (Unicode string functions): Add the new modules.
50996
50997 2007-07-06  Bruno Haible  <bruno@clisp.org>
50998
50999         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
51000
51001 2007-07-06  Bruno Haible  <bruno@clisp.org>
51002
51003         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
51004         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
51005         includes <cygwin/sys_time.h> which includes <sys/select.h> which
51006         include <sys/time.h>.
51007         Reported by Eric Blake.
51008
51009 2007-07-06  Eric Blake  <ebb9@byu.net>
51010
51011         Fix testing canonicalize on cygwin.
51012         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51013         Revert patch from 2007-06-19.
51014         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
51015         canonicalize module is also in use.
51016         * tests/test-canonicalize.c: New file.
51017         * tests/test-canonicalize.sh: Likewise.
51018         * modules/canonicalize-tests: Likewise.
51019
51020 2007-07-06  Jim Meyering  <jim@meyering.net>
51021
51022         * lib/getugroups.c (getugroups): Detect getgrent failure.
51023         Adjust comment to reflect reality: this function may return -1.
51024
51025 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51026
51027         * build-aux/bootstrap (TP_URL,get_translations): Update to use
51028         the new TP address.
51029         (usage): Fix typo
51030         (gnulib_mk): New variable.
51031
51032 2007-07-05  Jim Meyering  <jim@meyering.net>
51033
51034         Don't let endgrent clobber errno, no matter how improbable.
51035         * lib/getugroups.c (getugroups): Save and restore errno around
51036         endgrent call.
51037
51038         Close the group DB even when failing with 2^31 or more members.
51039         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
51040
51041 2007-07-04  Jim Meyering  <jim@meyering.net>
51042
51043         * lib/getugroups.h: New file.
51044         * lib/getugroups.c: Include "getugroups.h".
51045         Remove uses of "register" keyword.
51046         Move local variable, "cp", down into scope where used.
51047         Give "username" parameter the "const" attribute.
51048         * modules/getugroups (Files): Add lib/getugroups.h
51049
51050 2007-07-04  Karl Berry  <karl@gnu.org>
51051
51052         * MODULES.html.sh (func_all_modules): Complete rename of
51053         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
51054
51055 2007-07-02  Bruno Haible  <bruno@clisp.org>
51056
51057         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
51058         mode, when inttypes.h comes from gnulib.
51059         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51060
51061 2007-07-02  Simon Josefsson  <simon@josefsson.org>
51062
51063         * NEWS: Mention lgpl module name change.
51064
51065         * modules/lgpl-2.1: Renamed from lgpl.
51066
51067         * NEWS: Mention gpl module name change.
51068
51069         * modules/gpl-3.0: New file, based on gpl-2.0.
51070
51071         * modules/gpl-2.0: Renamed from gpl.
51072
51073         * modules/gpl: Fix filename, doc/gpl.texi is now found at
51074         doc/gpl-2.0.texi.
51075
51076 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51077
51078         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
51079         #define __STDC_LIMIT_MACROS temporarily while including
51080         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
51081         Problem reported by Joel E. Denny in
51082         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
51083
51084 2007-07-01  Bruno Haible  <bruno@clisp.org>
51085
51086         * lib/unistdio.h: New file.
51087         * lib/unistdio/u-asnprintf.h: New file.
51088         * lib/unistdio/u-asprintf.h: New file.
51089         * lib/unistdio/u-printf-args.c: New file.
51090         * lib/unistdio/u-printf-args.h: New file.
51091         * lib/unistdio/u-printf-parse.h: New file.
51092         * lib/unistdio/u-snprintf.h: New file.
51093         * lib/unistdio/u-sprintf.h: New file.
51094         * lib/unistdio/u-vasprintf.h: New file.
51095         * lib/unistdio/u-vsnprintf.h: New file.
51096         * lib/unistdio/u-vsprintf.h: New file.
51097         * lib/unistdio/ulc-asnprintf.c: New file.
51098         * lib/unistdio/ulc-asprintf.c: New file.
51099         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51100         * lib/unistdio/ulc-printf-parse.c: New file.
51101         * lib/unistdio/ulc-snprintf.c: New file.
51102         * lib/unistdio/ulc-sprintf.c: New file.
51103         * lib/unistdio/ulc-vasnprintf.c: New file.
51104         * lib/unistdio/ulc-vasprintf.c: New file.
51105         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
51106         * lib/unistdio/ulc-vsnprintf.c: New file.
51107         * lib/unistdio/ulc-vsprintf.c: New file.
51108         * lib/unistdio/u8-asnprintf.c: New file.
51109         * lib/unistdio/u8-asprintf.c: New file.
51110         * lib/unistdio/u8-printf-parse.c: New file.
51111         * lib/unistdio/u8-snprintf.c: New file.
51112         * lib/unistdio/u8-sprintf.c: New file.
51113         * lib/unistdio/u8-vasnprintf.c: New file.
51114         * lib/unistdio/u8-vasprintf.c: New file.
51115         * lib/unistdio/u8-vsnprintf.c: New file.
51116         * lib/unistdio/u8-vsprintf.c: New file.
51117         * lib/unistdio/u8-u8-asnprintf.c: New file.
51118         * lib/unistdio/u8-u8-asprintf.c: New file.
51119         * lib/unistdio/u8-u8-snprintf.c: New file.
51120         * lib/unistdio/u8-u8-sprintf.c: New file.
51121         * lib/unistdio/u8-u8-vasnprintf.c: New file.
51122         * lib/unistdio/u8-u8-vasprintf.c: New file.
51123         * lib/unistdio/u8-u8-vsnprintf.c: New file.
51124         * lib/unistdio/u8-u8-vsprintf.c: New file.
51125         * lib/unistdio/u16-asnprintf.c: New file.
51126         * lib/unistdio/u16-asprintf.c: New file.
51127         * lib/unistdio/u16-printf-parse.c: New file.
51128         * lib/unistdio/u16-snprintf.c: New file.
51129         * lib/unistdio/u16-sprintf.c: New file.
51130         * lib/unistdio/u16-vasnprintf.c: New file.
51131         * lib/unistdio/u16-vasprintf.c: New file.
51132         * lib/unistdio/u16-vsnprintf.c: New file.
51133         * lib/unistdio/u16-vsprintf.c: New file.
51134         * lib/unistdio/u16-u16-asnprintf.c: New file.
51135         * lib/unistdio/u16-u16-asprintf.c: New file.
51136         * lib/unistdio/u16-u16-snprintf.c: New file.
51137         * lib/unistdio/u16-u16-sprintf.c: New file.
51138         * lib/unistdio/u16-u16-vasnprintf.c: New file.
51139         * lib/unistdio/u16-u16-vasprintf.c: New file.
51140         * lib/unistdio/u16-u16-vsnprintf.c: New file.
51141         * lib/unistdio/u16-u16-vsprintf.c: New file.
51142         * lib/unistdio/u32-asnprintf.c: New file.
51143         * lib/unistdio/u32-asprintf.c: New file.
51144         * lib/unistdio/u32-printf-parse.c: New file.
51145         * lib/unistdio/u32-snprintf.c: New file.
51146         * lib/unistdio/u32-sprintf.c: New file.
51147         * lib/unistdio/u32-vasnprintf.c: New file.
51148         * lib/unistdio/u32-vasprintf.c: New file.
51149         * lib/unistdio/u32-vsnprintf.c: New file.
51150         * lib/unistdio/u32-vsprintf.c: New file.
51151         * lib/unistdio/u32-u32-asnprintf.c: New file.
51152         * lib/unistdio/u32-u32-asprintf.c: New file.
51153         * lib/unistdio/u32-u32-snprintf.c: New file.
51154         * lib/unistdio/u32-u32-sprintf.c: New file.
51155         * lib/unistdio/u32-u32-vasnprintf.c: New file.
51156         * lib/unistdio/u32-u32-vasprintf.c: New file.
51157         * lib/unistdio/u32-u32-vsnprintf.c: New file.
51158         * lib/unistdio/u32-u32-vsprintf.c: New file.
51159         * tests/unistdio/test-ulc-asnprintf1.c: New file.
51160         * tests/unistdio/test-ulc-asnprintf1.h: New file.
51161         * tests/unistdio/test-ulc-printf1.h: New file.
51162         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
51163         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
51164         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
51165         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
51166         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
51167         * tests/unistdio/test-ulc-vasprintf1.c: New file.
51168         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
51169         * tests/unistdio/test-ulc-vsprintf1.c: New file.
51170         * tests/unistdio/test-u8-asnprintf1.c: New file.
51171         * tests/unistdio/test-u8-asnprintf1.h: New file.
51172         * tests/unistdio/test-u8-printf1.h: New file.
51173         * tests/unistdio/test-u8-vasnprintf1.c: New file.
51174         * tests/unistdio/test-u8-vasnprintf2.c: New file.
51175         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
51176         * tests/unistdio/test-u8-vasnprintf3.c: New file.
51177         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
51178         * tests/unistdio/test-u8-vasprintf1.c: New file.
51179         * tests/unistdio/test-u8-vsnprintf1.c: New file.
51180         * tests/unistdio/test-u8-vsprintf1.c: New file.
51181         * tests/unistdio/test-u16-asnprintf1.c: New file.
51182         * tests/unistdio/test-u16-asnprintf1.h: New file.
51183         * tests/unistdio/test-u16-printf1.h: New file.
51184         * tests/unistdio/test-u16-vasnprintf1.c: New file.
51185         * tests/unistdio/test-u16-vasnprintf2.c: New file.
51186         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
51187         * tests/unistdio/test-u16-vasnprintf3.c: New file.
51188         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
51189         * tests/unistdio/test-u16-vasprintf1.c: New file.
51190         * tests/unistdio/test-u16-vsnprintf1.c: New file.
51191         * tests/unistdio/test-u16-vsprintf1.c: New file.
51192         * tests/unistdio/test-u32-asnprintf1.c: New file.
51193         * tests/unistdio/test-u32-asnprintf1.h: New file.
51194         * tests/unistdio/test-u32-printf1.h: New file.
51195         * tests/unistdio/test-u32-vasnprintf1.c: New file.
51196         * tests/unistdio/test-u32-vasnprintf2.c: New file.
51197         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
51198         * tests/unistdio/test-u32-vasnprintf3.c: New file.
51199         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
51200         * tests/unistdio/test-u32-vasprintf1.c: New file.
51201         * tests/unistdio/test-u32-vsnprintf1.c: New file.
51202         * tests/unistdio/test-u32-vsprintf1.c: New file.
51203         * modules/unistdio/base: New file.
51204         * modules/unistdio/u-printf-args: New file.
51205         * modules/unistdio/ulc-asnprintf: New file.
51206         * modules/unistdio/ulc-asprintf: New file.
51207         * modules/unistdio/ulc-fprintf: New file.
51208         * modules/unistdio/ulc-printf-parse: New file.
51209         * modules/unistdio/ulc-snprintf: New file.
51210         * modules/unistdio/ulc-sprintf: New file.
51211         * modules/unistdio/ulc-vasnprintf: New file.
51212         * modules/unistdio/ulc-vasprintf: New file.
51213         * modules/unistdio/ulc-vfprintf: New file.
51214         * modules/unistdio/ulc-vsnprintf: New file.
51215         * modules/unistdio/ulc-vsprintf: New file.
51216         * modules/unistdio/u8-asnprintf: New file.
51217         * modules/unistdio/u8-asprintf: New file.
51218         * modules/unistdio/u8-printf-parse: New file.
51219         * modules/unistdio/u8-snprintf: New file.
51220         * modules/unistdio/u8-sprintf: New file.
51221         * modules/unistdio/u8-vasnprintf: New file.
51222         * modules/unistdio/u8-vasprintf: New file.
51223         * modules/unistdio/u8-vsnprintf: New file.
51224         * modules/unistdio/u8-vsprintf: New file.
51225         * modules/unistdio/u8-u8-asnprintf: New file.
51226         * modules/unistdio/u8-u8-asprintf: New file.
51227         * modules/unistdio/u8-u8-snprintf: New file.
51228         * modules/unistdio/u8-u8-sprintf: New file.
51229         * modules/unistdio/u8-u8-vasnprintf: New file.
51230         * modules/unistdio/u8-u8-vasprintf: New file.
51231         * modules/unistdio/u8-u8-vsnprintf: New file.
51232         * modules/unistdio/u8-u8-vsprintf: New file.
51233         * modules/unistdio/u16-asnprintf: New file.
51234         * modules/unistdio/u16-asprintf: New file.
51235         * modules/unistdio/u16-printf-parse: New file.
51236         * modules/unistdio/u16-snprintf: New file.
51237         * modules/unistdio/u16-sprintf: New file.
51238         * modules/unistdio/u16-vasnprintf: New file.
51239         * modules/unistdio/u16-vasprintf: New file.
51240         * modules/unistdio/u16-vsnprintf: New file.
51241         * modules/unistdio/u16-vsprintf: New file.
51242         * modules/unistdio/u16-u16-asnprintf: New file.
51243         * modules/unistdio/u16-u16-asprintf: New file.
51244         * modules/unistdio/u16-u16-snprintf: New file.
51245         * modules/unistdio/u16-u16-sprintf: New file.
51246         * modules/unistdio/u16-u16-vasnprintf: New file.
51247         * modules/unistdio/u16-u16-vasprintf: New file.
51248         * modules/unistdio/u16-u16-vsnprintf: New file.
51249         * modules/unistdio/u16-u16-vsprintf: New file.
51250         * modules/unistdio/u32-asnprintf: New file.
51251         * modules/unistdio/u32-asprintf: New file.
51252         * modules/unistdio/u32-printf-parse: New file.
51253         * modules/unistdio/u32-snprintf: New file.
51254         * modules/unistdio/u32-sprintf: New file.
51255         * modules/unistdio/u32-vasnprintf: New file.
51256         * modules/unistdio/u32-vasprintf: New file.
51257         * modules/unistdio/u32-vsnprintf: New file.
51258         * modules/unistdio/u32-vsprintf: New file.
51259         * modules/unistdio/u32-u32-asnprintf: New file.
51260         * modules/unistdio/u32-u32-asprintf: New file.
51261         * modules/unistdio/u32-u32-snprintf: New file.
51262         * modules/unistdio/u32-u32-sprintf: New file.
51263         * modules/unistdio/u32-u32-vasnprintf: New file.
51264         * modules/unistdio/u32-u32-vasprintf: New file.
51265         * modules/unistdio/u32-u32-vsnprintf: New file.
51266         * modules/unistdio/u32-u32-vsprintf: New file.
51267         * modules/unistdio/ulc-asnprintf-tests: New file.
51268         * modules/unistdio/ulc-vasnprintf-tests: New file.
51269         * modules/unistdio/ulc-vasprintf-tests: New file.
51270         * modules/unistdio/ulc-vsnprintf-tests: New file.
51271         * modules/unistdio/ulc-vsprintf-tests: New file.
51272         * modules/unistdio/u8-asnprintf-tests: New file.
51273         * modules/unistdio/u8-vasnprintf-tests: New file.
51274         * modules/unistdio/u8-vasprintf-tests: New file.
51275         * modules/unistdio/u8-vsnprintf-tests: New file.
51276         * modules/unistdio/u8-vsprintf-tests: New file.
51277         * modules/unistdio/u16-asnprintf-tests: New file.
51278         * modules/unistdio/u16-vasnprintf-tests: New file.
51279         * modules/unistdio/u16-vasprintf-tests: New file.
51280         * modules/unistdio/u16-vsnprintf-tests: New file.
51281         * modules/unistdio/u16-vsprintf-tests: New file.
51282         * modules/unistdio/u32-asnprintf-tests: New file.
51283         * modules/unistdio/u32-vasnprintf-tests: New file.
51284         * modules/unistdio/u32-vasprintf-tests: New file.
51285         * modules/unistdio/u32-vsnprintf-tests: New file.
51286         * modules/unistdio/u32-vsprintf-tests: New file.
51287         * MODULES.html.sh (Unicode string functions): Add the new modules.
51288
51289 2007-07-01  Bruno Haible  <bruno@clisp.org>
51290
51291         * lib/sprintf.c (sprintf): Limit the available length estimation,
51292         to avoid address wraparound.
51293         * lib/vsprintf.c (vsprintf): Likewise.
51294         * modules/sprintf-posix (Dependencies): Add stdint.
51295         * modules/vsprintf-posix (Dependencies): Likewise.
51296
51297 2007-07-01  Bruno Haible  <bruno@clisp.org>
51298
51299         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
51300         Windows PATH as well. Conservative double-quoting. Comments.
51301
51302 2007-07-01  Bruno Haible  <bruno@clisp.org>
51303             Eric Blake  <ebb9@byu.net>
51304             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51305
51306         * gnulib-tool (self_abspathname): Fix algorithm to cope with
51307         empty components in $PATH, denoting '.'.
51308
51309 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51310
51311         * gnulib-tool: Fix indentation.
51312         (func_create_megatestdir): Likewise.
51313         Report by Bruno Haible.
51314
51315 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51316
51317         Sync from Automake.
51318         * build-aux/gnupload: Fix shell portability issues with for loops.
51319         Report by Karl Berry.
51320
51321 2007-06-29  Simon Josefsson  <simon@josefsson.org>
51322
51323         * build-aux/maint.mk (POURL): Use translationproject.org.
51324
51325 2007-06-27  Simon Josefsson  <simon@josefsson.org>
51326             Bruno Haible  <bruno@clisp.org>
51327
51328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
51329         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
51330         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
51331         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
51332         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
51333
51334 2007-06-27  Bruno Haible  <bruno@clisp.org>
51335
51336         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
51337         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
51338
51339 2007-06-26  Karl Berry  <karl@gnu.org>
51340
51341         * MODULES.html.sh: remove xreadlink-with-size.
51342
51343 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51344
51345         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
51346         method that I hope also handles the double-include problem noted
51347         by Bruno Haible in
51348         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
51349
51350 2007-06-23  Bruno Haible  <bruno@clisp.org>
51351
51352         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51353         Don't let the 'mostlyclean' target fail if the last subdirectory could
51354         not be removed.
51355         Reported by Karl Berry.
51356
51357 2007-06-23  Bruno Haible  <bruno@clisp.org>
51358
51359         * gnulib-tool (echo): Add a speedier workaround for ksh.
51360         * tests/test-echo.sh: Likewise.
51361
51362 2007-06-23  Bruno Haible  <bruno@clisp.org>
51363
51364         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
51365         * tests/test-echo.sh: Likewise.
51366
51367 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51368
51369         * gnulib-tool (IFS): Initialize early, so we don't set it to
51370         empty later.
51371         (self_abspathname): Rewrite algorithm to set it, reindent.
51372         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
51373         (func_create_megatestdir): Merge some sed scripts.
51374
51375 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51376
51377         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
51378         exposed by Sun Studio 11 cc on Solaris 8.
51379
51380 2007-06-22  Bruno Haible  <bruno@clisp.org>
51381
51382         * gnulib-tool (echo): Ensure the echo primitive does not interpret
51383         backslashes.
51384         * tests/test-echo.sh: New file.
51385
51386 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51387
51388         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
51389         simplify `sed_replace_build_aux' scripts, they are portable but
51390         echoing them with `echo' is not.
51391         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
51392
51393 2007-06-21  Karl Berry  <karl@gnu.org>
51394
51395         * config/srclist.txt: guess we can't handle the licenses via
51396         srclist at the moment.
51397
51398 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51399
51400         * MODULES.html.sh: Add include_next.
51401         * modules/include_next: New file.
51402
51403 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51404
51405         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51406         INCLUDE_NEXT.
51407         (gl_CHECK_NEXT_HEADERS): New macro.
51408         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51409         the obsolescent gl_ABSOLUTE_HEADER.
51410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51411         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51412         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51413         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51414         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51415         * m4/math_h.m4 (gl_MATH_H): Likewise.
51416         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51417         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51418         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51419         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51420         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51421         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51422         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51423         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51424         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51425         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51426         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51427         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51428         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51429         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51430         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51431         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51432         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51433         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51434         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51435         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51436         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51437         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51438         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51439         * lib/float_.h: Likewise.
51440         * lib/inttypes_.h: Likewise.
51441         * lib/math_.h: Likewise.
51442         * lib/search_.h: Likewise.
51443         * lib/signal_.h: Likewise.
51444         * lib/stdint_.h: Likewise.
51445         * lib/stdio_.h: Likewise.
51446         * lib/stdlib_.h: Likewise.
51447         * lib/string_.h: Likewise.
51448         * lib/sys_stat_.h: Likewise.
51449         * lib/sys_time_.h: Likewise.
51450         * lib/time_.h: Likewise.
51451         * lib/unistd_.h: Likewise.
51452         * lib/wchar_.h: Likewise.
51453         * lib/wctype_.h: Likewise.
51454         * lib/dirent_.h: Likewise.
51455         * lib/iconv_.h: Likewise.
51456         * lib/locale_.h: Likewise.
51457         * lib/netinet_in_.h: Likewise.
51458         * lib/sys_select_.h: Likewise.
51459         * lib/sys_socket_.h: Likewise.
51460         * lib/sysexits_.h: Likewise.
51461         * modules/fcntl (Depends-on): Depend on include_next, not
51462         absolute_header.
51463         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51464         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51465         * modules/fchdir: Likewise.
51466         * modules/float: Likewise.
51467         * modules/iconv_open: Likewise.
51468         * modules/inttypes: Likewise.
51469         * modules/locale: Likewise.
51470         * modules/math: Likewise.
51471         * modules/netinet_in: Likewise.
51472         * modules/search: Likewise.
51473         * modules/signal: Likewise.
51474         * modules/stdint: Likewise.
51475         * modules/stdio: Likewise.
51476         * modules/stdlib: Likewise.
51477         * modules/string: Likewise.
51478         * modules/sys_select: Likewise.
51479         * modules/sys_socket: Likewise.
51480         * modules/sys_stat: Likewise.
51481         * modules/sys_time: Likewise.
51482         * modules/sysexits: Likewise.
51483         * modules/time: Likewise.
51484         * modules/unistd: Likewise.
51485         * modules/wchar: Likewise.
51486         * modules/wctype: Likewise.
51487         * modules/sys_stat: Change maintainer to "all".
51488         * modules/unistd: Likewise.
51489
51490 2007-06-20  Karl Berry  <karl@gnu.org>
51491
51492         * config/srclist.txt: track www changes in license files.
51493
51494 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51495
51496         * build-aux/bootstrap: Remove stray dot.
51497         Make sure build_aux settings are honored when linking
51498         gnulib_extra_files.
51499
51500 2007-06-19  Eric Blake  <ebb9@byu.net>
51501
51502         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51503         Allow compilation on cygwin.
51504
51505 2007-06-19  Jim Meyering  <jim@meyering.net>
51506
51507         xreadlink-with-size: Remove module.  No longer used.
51508         Ex-callers now use xreadlink or mreadlink-with-size.
51509         * modules/xreadlink-with-size: Remove module.
51510         * lib/xreadlink-with-size.c: Remove file.
51511         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51512         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51513         just before the function definition *is* accurate.
51514
51515         Eliminate one way canonicalize_filename_mode could exit.
51516         * lib/canonicalize.c (canonicalize_filename_mode):
51517         Use mreadlink_with_size, not xreadlink_with_size.
51518
51519 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51520
51521         Detect porting problems to FreeBSD/arm, which has time_t wider than
51522         long int.  Original problem reported for GNU diff by Xin Li in
51523         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51524         * modules/getdate (Depends-on): Add intprops, verify.
51525         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51526         is an integer type no wider than long int.
51527
51528 2007-06-18  Jim Meyering  <jim@meyering.net>
51529
51530         New module: mreadlink-with-size.
51531         * MODULES.html.sh: Add mreadlink-with-size.
51532         * modules/mreadlink-with-size: New module
51533         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51534         not xreadlink-with-size.
51535         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51536
51537 2007-06-16  Bruno Haible  <bruno@clisp.org>
51538
51539         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51540         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51541         Reported by Gary V. Vaughan <gary@gnu.org>.
51542
51543 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51544
51545         Revamp lchown so that it lives in unistd.h where it belongs.
51546         * lib/lchown.h: Remove.
51547         * lib/dirchownmod.c: Don't include lib/lchown.h.
51548         * lib/fchownat.c: Likewise.
51549         * lib/openat.c: Likewise.
51550         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51551         does not follow symlinks.
51552         (EOPNOTSUPP): Define if not defined.
51553         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51554         is defined to 0.
51555         (lchown): New decl.
51556         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51557         Do not check for lchown decl.
51558         Set REPLACE_LCHOWN.
51559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51560         REPLACE_LCHOWN.
51561         * modules/chown: Make it clear it follows symlinks.
51562         * modules/lchown: Make it clear it doesn't follow symlinks.
51563         (Files): Remove lib/lchown.h
51564         (Depends-on): Add unistd.
51565         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51566         (Include): Include <unistd.h>, not "lchown.h".
51567         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51568         REPLACE_LCHOWN.
51569
51570 2007-06-15  Jim Meyering  <jim@meyering.net>
51571
51572         Change license (GPL to LGPL) of fsusage and dependents.
51573         * modules/fsusage (License): Change to LGPL.
51574         * modules/full-read (License): Likewise.
51575         * modules/full-write (License): Likewise.
51576         * modules/safe-read (License): Likewise.
51577         * modules/safe-write (License): Likewise.
51578
51579 2007-06-14  Ben Pfaff  <blp@gnu.org>
51580
51581         Missing part of allocsa -> malloca transition.
51582         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51583         gl_MALLOCA.
51584
51585 2007-06-12  Bruno Haible  <bruno@clisp.org>
51586
51587         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51588         to ia64, x86_64, i386.
51589         Reported by Eric Blake.
51590
51591 2007-06-12  Bruno Haible  <bruno@clisp.org>
51592
51593         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51594         cross-compiling to x86_64.
51595
51596 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51597
51598         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51599         glitch reported by Ralf Wildenhues in
51600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51601
51602         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51603         Vin Shelton.
51604
51605 2007-06-11  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51608         replacement string.
51609         Reported by Eric Blake.
51610
51611 2007-06-10  Bruno Haible  <bruno@clisp.org>
51612
51613         Prepare vasnprintf code for use with Unicode strings.
51614         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51615         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51616         TYPE_U32_STRING.
51617         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51618         a_u32_string variants.
51619         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51620         * lib/printf-args.c: Don't include config.h and the specification
51621         header if PRINTF_FETCHARGS is already defined.
51622         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51623         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51624         TYPE_U16_STRING, TYPE_U32_STRING.
51625         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51626         u16_directive, u16_directives, u32_directive, u32_directives): New
51627         types.
51628         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51629         New declarations.
51630         * lib/printf-parse.c: Don't include config.h and the specification
51631         header if PRINTF_PARSE is already defined. Eliminate the set of
51632         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51633         them now. Include c-ctype.h.
51634         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51635         directive and CHAR_T_ONLY_ASCII.
51636         * lib/vasnprintf.c: Don't include config.h and the specification header
51637         if VASNPRINTF is already defined.
51638         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51639         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51640         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51641         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51642         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51643         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51644         code accordingly.
51645         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51646         pad_ourselves also in this case, with the 'c' and 's' directives, and
51647         with a different notion of "width".
51648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51649
51650 2007-06-10  Bruno Haible  <bruno@clisp.org>
51651
51652         * modules/unistr/u32-mbsnlen: New file.
51653         * lib/unistr/u32-mbsnlen.c: New file.
51654
51655         * modules/unistr/u16-mbsnlen: New file.
51656         * lib/unistr/u16-mbsnlen.c: New file.
51657
51658         * modules/unistr/u8-mbsnlen: New file.
51659         * lib/unistr/u8-mbsnlen.c: New file.
51660
51661         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51662         declarations.
51663
51664 2007-06-10  Bruno Haible  <bruno@clisp.org>
51665
51666         * lib/string_.h (mbsnlen): New declaration.
51667         * lib/mbsnlen.c: New file.
51668         * m4/mbsnlen.m4: New file.
51669         * modules/mbsnlen: New file.
51670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51671         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51672         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51673
51674 2007-06-10  Bruno Haible  <bruno@clisp.org>
51675
51676         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51677
51678 2007-06-10  Bruno Haible  <bruno@clisp.org>
51679
51680         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51681         * lib/mbuiter.h: Likewise.
51682
51683 2007-06-10  Bruno Haible  <bruno@clisp.org>
51684
51685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51686         declaration.
51687
51688 2007-06-10  Karl Berry  <karl@gnu.org>
51689
51690         * config/srclist.txt: remove gettext entries, Bruno prefers
51691         to update individually.
51692
51693 2007-06-10  Bruno Haible  <bruno@clisp.org>
51694
51695         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51696         'maxlen'. Ensure only length + width bytes are allocated, not
51697         length + 1 + width.
51698
51699 2007-06-09  Bruno Haible  <bruno@clisp.org>
51700
51701         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51702         (CHAR_T): Remove macro.
51703         (VASNPRINTF): Update.
51704
51705 2007-06-09  Bruno Haible  <bruno@clisp.org>
51706
51707         * MODULES.html.sh (Unicode string functions): Add the new modules.
51708
51709         * modules/uniconv/u32-conv-to-enc: New file.
51710         * lib/uniconv/u32-conv-to-enc.c: New file.
51711         * modules/uniconv/u32-conv-to-enc-tests: New file.
51712         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51713
51714         * modules/uniconv/u16-conv-to-enc: New file.
51715         * lib/uniconv/u16-conv-to-enc.c: New file.
51716         * lib/uniconv/u-conv-to-enc.h: New file.
51717         * modules/uniconv/u16-conv-to-enc-tests: New file.
51718         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51719
51720         * modules/uniconv/u8-conv-to-enc: New file.
51721         * lib/uniconv/u8-conv-to-enc.c: New file.
51722         * modules/uniconv/u8-conv-to-enc-tests: New file.
51723         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51724
51725         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51726         u32_conv_to_encoding): New declarations.
51727
51728 2007-06-09  Bruno Haible  <bruno@clisp.org>
51729
51730         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51731
51732 2007-06-09  Bruno Haible  <bruno@clisp.org>
51733
51734         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51735         * modules/malloca: Renamed from modules/allocsa, updated.
51736         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51737         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51738         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51739         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51740         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51741         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51742         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51743         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51744         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51745         * modules/c-strcasestr (Depends-on): Update.
51746         * lib/c-strcasestr.c: Update.
51747         * modules/c-strstr (Depends-on): Update.
51748         * lib/c-strstr.c: Update.
51749         * modules/canonicalize-lgpl (Depends-on): Update.
51750         * lib/canonicalize-lgpl.c: Update.
51751         * modules/clean-temp (Depends-on): Update.
51752         * lib/clean-temp.c: Update.
51753         * modules/csharpcomp (Depends-on): Update.
51754         * lib/csharpcomp.c: Update.
51755         * modules/csharpexec (Depends-on): Update.
51756         * lib/csharpexec.c: Update.
51757         * modules/javacomp (Depends-on): Update.
51758         * lib/javacomp.c: Update.
51759         * modules/javaexec (Depends-on): Update.
51760         * lib/javaexec.c: Update.
51761         * modules/mbscasestr (Depends-on): Update.
51762         * lib/mbscasestr.c: Update.
51763         * modules/mbsstr (Depends-on): Update.
51764         * lib/mbsstr.c: Update.
51765         * modules/setenv (Depends-on): Update.
51766         * lib/setenv.c: Update.
51767         * modules/strcasestr (Depends-on): Update.
51768         * lib/strcasestr.c: Update.
51769         * modules/striconveha (Depends-on): Update.
51770         * lib/striconveha.c: Update.
51771         * modules/relocatable-prog-wrapper (Files): Update.
51772         * lib/relocwrapper.c: Update.
51773         * build-aux/install-reloc: Update.
51774         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51775
51776 2007-06-08  Bruno Haible  <bruno@clisp.org>
51777
51778         Port to uClibc.
51779         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51780         * lib/fpurge.c (fpurge): Likewise.
51781         * lib/freading.c (freading): Likewise.
51782         * lib/fseeko.c (rpl_fseeko): Likewise.
51783         * lib/fseterr.c (fseterr): Likewise.
51784         * lib/fwriting.c (fwriting): Likewise.
51785         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51786
51787 2007-06-08  Bruno Haible  <bruno@clisp.org>
51788
51789         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51790         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51791         * modules/gettext (Files): Add m4/intlmacosx.m4.
51792
51793 2007-06-07  Bruno Haible  <bruno@clisp.org>
51794
51795         * modules/localename-tests: New file.
51796         * tests/test-localename.c: New file.
51797
51798         New module 'localename'.
51799         * lib/localename.h: New file.
51800         * lib/localename.c: New file, from GNU gettext.
51801         * m4/localename.m4: New file.
51802         * modules/localename: New file.
51803
51804 2007-06-07  Bruno Haible  <bruno@clisp.org>
51805
51806         Work around the lack of <wchar.h> on some builds of uClibc.
51807         * doc/headers/wchar.texi: Update.
51808         * lib/wchar_.h: Include <wchar.h> only if it exists.
51809         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51810         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51811         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51812         doesn't exist.
51813         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51814         * modules/mbfile (Depends-on): Add wchar.
51815         * modules/mbiter (Depends-on): Likewise.
51816         * modules/mbuiter (Depends-on): Likewise.
51817         Reported by Simon Josefsson.
51818
51819 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51820
51821         Work around problem reported by Steven M. Schweda in
51822         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51823         Tru64 5.1B with the Compaq compiler environment installed declares
51824         an 'isblank' function but does not define it in the C library.
51825         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51826         * lib/regex_internal.h (isblank): Likewise.
51827         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51828         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51829
51830 2007-06-05  Bruno Haible  <bruno@clisp.org>
51831
51832         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51833         ia64.
51834         * modules/printf-safe: New file.
51835         * modules/fprintf-posix (Depends-on): Add printf-safe.
51836         * modules/printf-posix (Depends-on): Likewise.
51837         * modules/snprintf-posix (Depends-on): Likewise.
51838         * modules/sprintf-posix (Depends-on): Likewise.
51839         * modules/vasnprintf-posix (Depends-on): Likewise.
51840         * modules/vasprintf-posix (Depends-on): Likewise.
51841         * modules/vfprintf-posix (Depends-on): Likewise.
51842         * modules/vprintf-posix (Depends-on): Likewise.
51843         * modules/vsnprintf-posix (Depends-on): Likewise.
51844         * modules/vsprintf-posix (Depends-on): Likewise.
51845         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51846         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51847         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51848         "no" on i386, x86_64, ia64.
51849         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51850         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51851         on i386, x86_64, ia64.
51852         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51853         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51854         on i386, x86_64, ia64.
51855         * tests/test-vasnprintf-posix.c: Include float.h.
51856         (LDBL80_WORDS): New macro.
51857         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51858         on i386, x86_64, ia64.
51859         * tests/test-vasprintf-posix.c: Include float.h.
51860         (LDBL80_WORDS): New macro.
51861         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51862         on i386, x86_64, ia64.
51863         * tests/test-snprintf-posix.c: Include float.h.
51864         * tests/test-sprintf-posix.c: Likewise.
51865         * tests/test-vsnprintf-posix.c: Likewise.
51866         * tests/test-vsprintf-posix.c: Likewise.
51867
51868 2007-06-05  Bruno Haible  <bruno@clisp.org>
51869
51870         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51871         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51872         non-IEEE numbers on i386, x86_64, ia64.
51873         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51874         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51875         * tests/test-isnanl.h: Include float.h.
51876         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51877
51878 2007-06-05  Bruno Haible  <bruno@clisp.org>
51879
51880         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51881         also the %a / %A. Handle the %a / %A code before this extra handling.
51882
51883 2007-06-05  Bruno Haible  <bruno@clisp.org>
51884
51885         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51886         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51887
51888 2007-06-05  Bruno Haible  <bruno@clisp.org>
51889
51890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51891         typo in variable name.
51892
51893 2007-06-05  Eric Blake  <ebb9@byu.net>
51894
51895         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51896         Reported by Simon Josefsson.
51897
51898 2007-06-04  Bruno Haible  <bruno@clisp.org>
51899
51900         Avoid test failures on some PowerPC platforms.
51901         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51902         Define differently for PowerPC.
51903         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51904         Reported by Gary V. Vaughan <gary@gnu.org>.
51905
51906 2007-06-02  Bruno Haible  <bruno@clisp.org>
51907
51908         Fix test-stdint failure on FreeBSD/ia64.
51909         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51910         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51911         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51912         * doc/headers/stdint.texi: Update.
51913
51914 2007-06-01  Bruno Haible  <bruno@clisp.org>
51915
51916         * tests/test-binary-io.c (main): Pass a third argument to open().
51917         Reported by Gary V. Vaughan <gary@gnu.org>.
51918
51919 2007-06-01  Bruno Haible  <bruno@clisp.org>
51920
51921         * doc/functions/frexpl.texi: Update for mingw.
51922
51923 2007-06-01  Bruno Haible  <bruno@clisp.org>
51924
51925         * tests/test-lseek.c (main): Disable test of errno for invalid third
51926         argument.
51927         * doc/functions/lseek.texi: Update.
51928         Reported by Gary V. Vaughan <gary@gnu.org>.
51929
51930 2007-05-28  Bruno Haible  <bruno@clisp.org>
51931
51932         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51933
51934 2007-05-31  Eric Blake  <ebb9@byu.net>
51935
51936         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51937         cross compiling.
51938
51939 2007-05-30  Eric Blake  <ebb9@byu.net>
51940         and Bruno Haible  <bruno@clisp.org>
51941
51942         Work around mingw test failures exposed by m4-1.4.9b.
51943         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51944         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51945         moment.
51946
51947 2007-05-30  Bruno Haible  <bruno@clisp.org>
51948
51949         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51950         assuming that they are closed. Needed on HP-UX 11.
51951
51952 2007-05-29  Bruno Haible  <bruno@clisp.org>
51953
51954         Fix a problem with #include_next.
51955         * lib/dirent_.h: Split the double-inclusion guard.
51956         * lib/fcntl_.h: Likewise.
51957         * lib/float_.h: Likewise.
51958         * lib/iconv_.h: Likewise.
51959         * lib/inttypes_.h: Likewise.
51960         * lib/locale_.h: Likewise.
51961         * lib/math_.h: Likewise.
51962         * lib/netinet_in_.h: Likewise.
51963         * lib/search_.h: Likewise.
51964         * lib/signal_.h: Likewise.
51965         * lib/stdint_.h: Likewise.
51966         * lib/stdio_.h: Likewise.
51967         * lib/stdlib_.h: Likewise.
51968         * lib/string_.h: Likewise.
51969         * lib/sys_select_.h: Likewise.
51970         * lib/sys_socket_.h: Likewise.
51971         * lib/sys_stat_.h: Likewise.
51972         * lib/sys_time_.h: Likewise.
51973         * lib/sysexits_.h: Likewise.
51974         * lib/time_.h: Likewise.
51975         * lib/unistd_.h: Likewise.
51976         * lib/wchar_.h: Likewise.
51977         * lib/wctype_.h: Likewise.
51978
51979 2007-05-29  Bruno Haible  <bruno@clisp.org>
51980
51981         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51982         for the moment.
51983
51984 2007-05-29  Bruno Haible  <bruno@clisp.org>
51985
51986         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51987         invocation.
51988         Reported by Eric Blake.
51989
51990 2007-05-29  Bruno Haible  <bruno@clisp.org>
51991
51992         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51993         compiling case.
51994
51995 2007-05-29  Eric Blake  <ebb9@byu.net>
51996             Bruno Haible  <bruno@clisp.org>
51997
51998         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51999         cross compiles.
52000
52001 2007-05-28  Eric Blake  <ebb9@byu.net>
52002
52003         * modules/closein-tests (test_closein_LDADD): Support test on
52004         cygwin with libtool.
52005
52006 2007-05-28  Bruno Haible  <bruno@clisp.org>
52007
52008         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
52009         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52010         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52011         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52012         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52013         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52014         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52015         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52016         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52017
52018 2007-05-28  Eric Blake  <ebb9@byu.net>
52019
52020         Unconditionally include <config.h> in unit tests.
52021         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
52022         * tests/test-allocsa.c, tests/test-arcfour.c,
52023         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
52024         tests/test-array_list.c, tests/test-array_oset.c,
52025         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
52026         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
52027         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
52028         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
52029         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
52030         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
52031         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
52032         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
52033         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
52034         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
52035         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
52036         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
52037         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
52038         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
52039         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
52040         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
52041         test-md5.c, test-memmem.c, test-printf-posix.c,
52042         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
52043         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
52044         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
52045         test-strcasestr.c, test-striconv.c, test-striconveh.c,
52046         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
52047         test-vasnprintf-posix2.c, test-vasnprintf.c,
52048         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
52049         test-vfprintf-posix.c, test-vprintf-posix.c,
52050         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
52051         test-xvasprintf.c: Likewise.
52052
52053 2007-05-28  Bruno Haible  <bruno@clisp.org>
52054
52055         * gnulib-tool (func_import): Remember the --with-tests command-line
52056         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
52057         Reported by Eric Blake.
52058
52059 2007-05-28  Bruno Haible  <bruno@clisp.org>
52060
52061         * modules/ftell-tests: New file.
52062         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
52063         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
52064
52065         * lib/ftell.c: New file.
52066         * modules/ftell: New file.
52067         * m4/ftell.m4: New file.
52068         * doc/functions/ftell.texi: Update.
52069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
52070         REPLACE_FTELL.
52071         * lib/stdio_.h (rpl_ftell): New declaration.
52072         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
52073         REPLACE_FTELL.
52074
52075 2007-05-28  Eric Blake  <ebb9@byu.net>
52076
52077         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
52078
52079 2007-05-28  Bruno Haible  <bruno@clisp.org>
52080
52081         * modules/fseek-tests: New file.
52082         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
52083         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
52084
52085         * lib/fseek.c: New file.
52086         * modules/fseek: New file.
52087         * m4/fseek.m4: New file.
52088         * doc/functions/fseek.texi: Update.
52089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
52090         REPLACE_FSEEK.
52091         * lib/stdio_.h (rpl_fseek): New declaration.
52092         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
52093         REPLACE_FSEEK.
52094
52095 2007-05-28  Bruno Haible  <bruno@clisp.org>
52096
52097         * lib/stdio_.h (fflush): More comments.
52098
52099 2007-05-28  Bruno Haible  <bruno@clisp.org>
52100
52101         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
52102         runtime test.
52103
52104 2007-05-28  Eric Blake  <ebb9@byu.net>
52105
52106         Improve lseek module.
52107         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
52108         * lib/unistd_.h (lseek): Scale back link warning message.
52109         * tests/test-lseek.c: Beef up test.
52110         * tests/test-lseek.sh: Exercise more facets of lseek.
52111         Reported by Bruno Haible.
52112
52113 2007-05-28  Bruno Haible  <bruno@clisp.org>
52114
52115         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
52116         to define.
52117
52118 2007-05-27  Bruno Haible  <bruno@clisp.org>
52119
52120         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
52121
52122 2007-05-27  Bruno Haible  <bruno@clisp.org>
52123
52124         * modules/openmp: New file.
52125         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
52126         Noah Misch.
52127
52128 2007-05-26  Bruno Haible  <bruno@clisp.org>
52129
52130         * modules/chdir-long (Depends-on): Add fchdir.
52131         * modules/chdir-safer (Depends-on): Likewise.
52132         * modules/fts (Depends-on): Likewise.
52133         * modules/fts-lgpl (Depends-on): Likewise.
52134         * modules/openat (Depends-on): Likewise.
52135         * modules/savewd (Depends-on): Likewise.
52136
52137 2007-05-24  Eric Blake  <ebb9@byu.net>
52138
52139         Fix lseek on mingw.
52140         * modules/lseek: New module.
52141         * m4/lseek.m4: New file.
52142         * lib/lseek.c: New file.
52143         * modules/lseek-tests: New file.
52144         * tests/test-lseek.c: New file.
52145         * tests/test-lseek.sh: New file.
52146         * MODULES.html.sh: Document lseek module.
52147         * modules/fflush (Depends-on): Add lseek, fseeko.
52148         * modules/fseeko (Depends-on): Likewise.
52149         * modules/ftello (Depends-on): Likewise.
52150         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
52151         broken.
52152         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
52153         broken.
52154         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
52155         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
52156         * lib/ftello.c (rpl_ftello): Likewise.
52157         * tests/test-fseeko.c (main): Test this.
52158         * tests/test-fseeko.sh: Likewise.
52159         * tests/test-ftello.c (main): Likewise.
52160         * tests/test-ftello.sh: Likewise.
52161         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
52162         implies replacing fseek.
52163         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
52164         HAVE_FTELLO.
52165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
52166         * modules/unistd (Makefile.am): Likewise.
52167         * lib/unistd_.h (lseek): Declare a replacement.
52168         * doc/functions/lseek.texi (lseek): Document this fix.
52169         * doc/functions/fseek.texi (fseek): Likewise.
52170         * doc/functions/ftell.texi (ftell): Likewise.
52171
52172 2007-05-24  Bruno Haible  <bruno@clisp.org>
52173
52174         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
52175         in the printed representation of a NaN.
52176         * tests/test-vasprintf-posix.c (test_function): Likewise.
52177         * tests/test-snprintf-posix.h (test_function): Likewise.
52178         * tests/test-sprintf-posix.h (test_function): Likewise.
52179         Reported by Eric Blake.
52180
52181 2007-05-23  Eric Blake  <ebb9@byu.net>
52182
52183         Fix fseeko/ftello on cygwin 1.5.24.
52184         * doc/functions/fseeko.texi (fseeko): Document the fix.
52185         * doc/functions/ftello.texi (ftello): Document the fix.
52186         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
52187         * doc/functions/stdout.text (stdout): New file.
52188         * doc/functions/stderr.text (stderr): New file.
52189         * doc/gnulib.texi (Function Substitutes): Use new files.
52190         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
52191         prior to 1.7.0.
52192         * tests/test-ftello.c (main): Likewise for ftello.
52193         * tests/test-fseeko.sh: New file.
52194         * tests/test-ftello.sh: New file.
52195         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
52196         with seekable stdin.
52197         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
52198         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
52199         (gl_REPLACE_FSEEKO): New macro.
52200         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
52201         * modules/fseeko (Files): Distribute fseeko.c.
52202         * modules/ftello (Files): Distribute ftello.c.
52203         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
52204         mode.
52205         * lib/ftello.c (rpl_ftello): New file.
52206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
52207         fseeko, ftello.
52208         (gl_STDIN_LARGE_OFFSET): New macro.
52209         * modules/stdio (Makefile.am): Perform the replacement.
52210         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
52211
52212 2007-05-23  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
52215         GNULIB_POSIXCHECK is defined.
52216
52217 2007-05-21  Bruno Haible  <bruno@clisp.org>
52218
52219         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
52220         Check also the output for NaN arguments. When cross-compiling, guess
52221         no on IRIX.
52222         * lib/vasnprintf.c: Update comments.
52223         * tests/test-vasnprintf-posix.c (strisnan): New function.
52224         (test_function): Use it.
52225         * tests/test-vasprintf-posix.c (strisnan): New function.
52226         (test_function): Use it.
52227         * tests/test-snprintf-posix.h (strisnan): New function.
52228         (test_function): Use it.
52229         * tests/test-sprintf-posix.h (strisnan): New function.
52230         (test_function): Use it.
52231         Reported by Eric Blake.
52232
52233 2007-05-20  Bruno Haible  <bruno@clisp.org>
52234
52235         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
52236         numbers that fails on BeOS.
52237         * doc/functions/frexpl.texi: Update.
52238
52239 2007-05-20  Jim Meyering  <jim@meyering.net>
52240
52241         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
52242         forced upon us by glibc-2.6.
52243
52244 2007-05-20  Bruno Haible  <bruno@clisp.org>
52245
52246         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
52247         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
52248         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
52249         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
52250         NEED_PRINTF_INFINITE.
52251         (is_infinitel): New function.
52252         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
52253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
52254         gl_PREREQ_VASNPRINTF_INFINITE.
52255         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
52256         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52257         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
52258         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
52259         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
52260         gl_PREREQ_VASNPRINTF_INFINITE.
52261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52262         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52263         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52264         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52265         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52266         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52267         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52268         * doc/functions/fprintf.texi: Update.
52269         * doc/functions/printf.texi: Update.
52270         * doc/functions/snprintf.texi: Update.
52271         * doc/functions/sprintf.texi: Update.
52272         * doc/functions/vfprintf.texi: Update.
52273         * doc/functions/vprintf.texi: Update.
52274         * doc/functions/vsnprintf.texi: Update.
52275         * doc/functions/vsprintf.texi: Update.
52276
52277 2007-05-20  Bruno Haible  <bruno@clisp.org>
52278
52279         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
52280         was not found in libc.
52281         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
52282
52283 2007-05-20  Bruno Haible  <bruno@clisp.org>
52284
52285         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52286         printed as "-nan" instead of "nan".
52287         * tests/test-vasprintf-posix.c (test_function): Likewise.
52288         * tests/test-snprintf-posix.h (test_function): Likewise.
52289         * tests/test-sprintf-posix.h (test_function): Likewise.
52290         Needed for HP-UX 11.
52291
52292 2007-05-20  Jim Meyering  <jim@meyering.net>
52293
52294         Fix buggy test for the fchownat-deref bug.
52295         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
52296         symlink required for the run-test.  Without it, this test would
52297         always declare that fchownat doesn't work, and client code would
52298         unnecessarily use the replacement function with fixed libc.
52299         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
52300         Reported by Greg Schafer.
52301
52302 2007-05-19  Bruno Haible  <bruno@clisp.org>
52303
52304         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
52305         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
52306         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
52307         Needed for IRIX 6.5 and Solaris 2.5.1.
52308
52309 2007-05-19  Bruno Haible  <bruno@clisp.org>
52310
52311         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
52312         (test_function): Skip tests involving -0.0 on platforms where
52313         -0.0 = 0.0.
52314         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
52315         (test_function): Skip tests involving -0.0 on platforms where
52316         -0.0 = 0.0.
52317         * tests/test-snprintf-posix.h (have_minus_zero): New function.
52318         (test_function): Skip tests involving -0.0 on platforms where
52319         -0.0 = 0.0.
52320         * tests/test-sprintf-posix.h (have_minus_zero): New function.
52321         (test_function): Skip tests involving -0.0 on platforms where
52322         -0.0 = 0.0.
52323         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
52324         tests.
52325         * tests/test-printf-posix.h (test_function): Likewise.
52326         * tests/test-printf-posix.output: Remove all -0.0 related results.
52327         Needed for IRIX 6.5.
52328
52329 2007-05-19  Bruno Haible  <bruno@clisp.org>
52330
52331         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52332         printed as "nan0x7fffffff" instead of "nan".
52333         * tests/test-vasprintf-posix.c (test_function): Likewise.
52334         * tests/test-snprintf-posix.h (test_function): Likewise.
52335         * tests/test-sprintf-posix.h (test_function): Likewise.
52336         * tests/test-fprintf-posix.h (NaN): Remove macro.
52337         (test_function): Remove all NaN related tests.
52338         * tests/test-printf-posix.h (NaN): Remove macro.
52339         (test_function): Remove all NaN related tests.
52340         * tests/test-printf-posix.output: Remove all NaN related results.
52341         Needed for IRIX 6.5.
52342
52343 2007-05-19  Bruno Haible  <bruno@clisp.org>
52344
52345         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
52346         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52347
52348 2007-05-19  Bruno Haible  <bruno@clisp.org>
52349
52350         * lib/float_.h: New file.
52351         * m4/float_h.m4: New file.
52352         * modules/float: New file.
52353         * modules/isnanl (Dependencies): Add float.
52354         * modules/isnanl-nolibm (Dependencies): Likewise.
52355         * modules/mathl (Dependencies): Likewise.
52356         * modules/printf-frexpl (Dependencies): Likewise.
52357         * modules/signbit (Dependencies): Likewise.
52358         * modules/vasnprintf (Dependencies): Likewise.
52359         * doc/headers/float.texi: Update.
52360
52361 2007-05-19  Jim Meyering  <jim@meyering.net>
52362
52363         * lib/utimens.c (gl_futimens): Rename from futimens,
52364         now that glibc-2.6 declares futimens.
52365         * lib/utimens.h: Likewise.
52366
52367 2007-05-19  Bruno Haible  <bruno@clisp.org>
52368
52369         Avoid test failures on mingw.
52370         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
52371         * tests/test-printf-posix.sh: Likewise.
52372         * tests/test-vfprintf-posix.sh: Likewise.
52373         * tests/test-vprintf-posix.sh: Likewise.
52374
52375 2007-05-19  Bruno Haible  <bruno@clisp.org>
52376
52377         Fix *printf result for NaN, Inf, -0.0 on mingw.
52378         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
52379         * lib/vasnprintf.c: Include math.h and isnan.h.
52380         (is_infinite_or_zero): New function.
52381         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
52382         values in the %f, %F, %e, %E, %g, %G directives.
52383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
52384         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52385         gl_PRINTF_INFINITE and test its result. Invoke
52386         gl_PREREQ_VASNPRINTF_INFINITE.
52387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52388         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52389         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52390         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52391         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52394         * doc/functions/fprintf.texi: Update.
52395         * doc/functions/printf.texi: Update.
52396         * doc/functions/snprintf.texi: Update.
52397         * doc/functions/sprintf.texi: Update.
52398         * doc/functions/vfprintf.texi: Update.
52399         * doc/functions/vprintf.texi: Update.
52400         * doc/functions/vsnprintf.texi: Update.
52401         * doc/functions/vsprintf.texi: Update.
52402
52403 2007-05-19  Bruno Haible  <bruno@clisp.org>
52404
52405         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52406         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52407         Instead of multiplying with 10^k, set extra_zeroes to k.
52408         (scale10_round_long_double): Remove function.
52409
52410 2007-05-18  Bruno Haible  <bruno@clisp.org>
52411
52412         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52413         introduced on 2007-05-06.
52414
52415 2007-05-18  Bruno Haible  <bruno@clisp.org>
52416
52417         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52418         %g directives.
52419         * tests/test-vasprintf-posix.c (test_function): Likewise.
52420         * tests/test-snprintf-posix.h (test_function): Likewise.
52421         * tests/test-sprintf-posix.h (test_function): Likewise.
52422
52423 2007-05-18  Bruno Haible  <bruno@clisp.org>
52424
52425         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52426         (strmatch): New function.
52427         (test_function): Test the %f directive on numbers of various exponents.
52428         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52429         (strmatch): New function.
52430         (test_function): Test the %f directive on numbers of various exponents.
52431         * tests/test-snprintf-posix.h (strmatch): New function.
52432         (test_function): Test the %f directive on numbers of various exponents.
52433         * tests/test-sprintf-posix.h (strmatch): New function.
52434         (test_function): Test the %f directive on numbers of various exponents.
52435         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52436         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52437         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52438         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52439
52440 2007-05-18  Bruno Haible  <bruno@clisp.org>
52441
52442         Add support for 'long double' number output.
52443         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52444         * lib/vasnprintf.c: Include math.h and float+.h.
52445         (mp_limb_t): New type.
52446         (GMP_LIMB_BITS): New macro.
52447         (mp_twolimb_t): New type.
52448         (GMP_TWOLIMB_BITS): New macro.
52449         (mpn_t): New type.
52450         (multiply, divide, convert_to_decimal, decode_long_double,
52451         scale10_round_long_double, scale10_round_decimal_long_double,
52452         floorlog10l): New functions.
52453         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52454         for the %f, %F, %e, %E, %g, %G directives.
52455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52456         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52457         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52458         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52459         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52460         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52461         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52462         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52463         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52464         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52465         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52466         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52467         * modules/snprintf-posix (Depends-on): Likewise.
52468         * modules/sprintf-posix (Depends-on): Likewise.
52469         * modules/vasnprintf-posix (Depends-on): Likewise.
52470         * modules/vasprintf-posix (Depends-on): Likewise.
52471         * modules/vfprintf-posix (Depends-on): Likewise.
52472         * modules/vsnprintf-posix (Depends-on): Likewise.
52473         * modules/vsprintf-posix (Depends-on): Likewise.
52474         * modules/vasnprintf (Files): Add lib/float+.h.
52475         * doc/functions/fprintf.texi: Update.
52476         * doc/functions/printf.texi: Update.
52477         * doc/functions/snprintf.texi: Update.
52478         * doc/functions/sprintf.texi: Update.
52479         * doc/functions/vfprintf.texi: Update.
52480         * doc/functions/vprintf.texi: Update.
52481         * doc/functions/vsnprintf.texi: Update.
52482         * doc/functions/vsprintf.texi: Update.
52483
52484 2007-05-18  Bruno Haible  <bruno@clisp.org>
52485
52486         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52487
52488 2007-05-18  Bruno Haible  <bruno@clisp.org>
52489
52490         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52491         for printing 64-bit integers. Needed for mingw.
52492
52493 2007-05-18  Bruno Haible  <bruno@clisp.org>
52494
52495         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52496         gl_FUNC_FREXPL_WORKS.
52497         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52498
52499 2007-05-18  Bruno Haible  <bruno@clisp.org>
52500
52501         * modules/frexpl-nolibm-tests: New file.
52502
52503         * modules/frexpl-nolibm: New file.
52504         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52505
52506 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52507
52508         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52509         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52510         GCC 4.2, which otherwise issues a lot of warnings.
52511         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52512         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52513         Likewise.
52514         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52515         * modules/iconv_open (iconv.h): Likewise.
52516         * modules/locale (locale.h): Likewise.
52517         * modules/netinet_in (netinet/in.h): Likewise.
52518         * modules/sys_select (sys_select.h): Likewise.
52519         * modules/sys_socket (sys/socket.h): Likewise.
52520         * modules/sys_stat (sys/stat.h): Likewise.
52521         * modules/sysexits (sysexits.h): Likewise.
52522         * modules/unistd (unistd.h): Likewise.
52523
52524 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52525
52526         * modules/closein-tests (Makefile.am): Distribute
52527         `test-closein.sh'.
52528
52529 2007-05-17  Bruno Haible  <bruno@clisp.org>
52530
52531         * tests/test-printf-posix.output: Renamed from
52532         tests/test-fprintf-posix.out.
52533         * modules/fprintf-posix-tests: Update.
52534         * modules/printf-posix-tests: Update.
52535         * modules/vfprintf-posix-tests: Update.
52536         * modules/vprintf-posix-tests: Update.
52537         * tests/test-fprintf-posix.sh: Update.
52538         * tests/test-printf-posix.sh: Update.
52539         * tests/test-vfprintf-posix.sh: Update.
52540         * tests/test-vprintf-posix.sh: Update.
52541         Reported by Ralf Wildenhues.
52542
52543 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52544
52545         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52546         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52547         GCC 4.2, which otherwise issues a lot of warnings.
52548         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52549         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52550         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52551         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52552         it should no longer be needed.
52553         * lib/string_.h: Likewise.
52554         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52555         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52556         * modules/inttypes (inttypes.h): Likewise.
52557         * modules/math (math.h): Likewise.
52558         * modules/search (search.h): Likewise.
52559         * modules/signal (signal.h): Likewise.
52560         * modules/stdint (stdint.h): Likewise.
52561         * modules/stdio (stdio.h): Likewise.
52562         * modules/stdlib (stdlib.h): Likewise.
52563         * modules/string (string.h): Likewise.
52564         * modules/sys_time (sys/time.h): Likewise.
52565         * modules/time (time.h): Likewise.
52566         * modules/wchar (wchar.h): Likewise.
52567         * modules/wctype (wtype.h): Likewise.
52568
52569 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52570
52571         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52572
52573 2007-05-13  Bruno Haible  <bruno@clisp.org>
52574
52575         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52576         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52577         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52578         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52579         (gl_PREREQ_STRTOK_R): Don't require it here.
52580
52581 2007-05-13  Bruno Haible  <bruno@clisp.org>
52582
52583         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52584         when used in C++ mode.
52585
52586 2007-05-12  Bruno Haible  <bruno@clisp.org>
52587
52588         * lib/linebuffer.h: Tweak doc.
52589         * lib/linebuffer.c: Likewise.
52590
52591 2007-05-12  James Youngman  <jay@gnu.org>
52592
52593         * lib/linebuffer.c (readlinebuffer_delim): New function,
52594         like readlinebuffer, but use a caller-specified delimiter.
52595         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52596         as the delimiter.
52597         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52598
52599 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52600
52601         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52602         * modules/openat (Files): Remove openat-die.c.
52603         (Depends-on): Add openat-die.
52604         * modules/openat-die: New module.
52605
52606 2007-05-06  Bruno Haible  <bruno@clisp.org>
52607
52608         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52609         Update with info about Cygwin.
52610         * doc/functions/fprintf.texi: Update.
52611         * doc/functions/printf.texi: Update.
52612         * doc/functions/snprintf.texi: Update.
52613         * doc/functions/sprintf.texi: Update.
52614         * doc/functions/vfprintf.texi: Update.
52615         * doc/functions/vprintf.texi: Update.
52616         * doc/functions/vsnprintf.texi: Update.
52617         * doc/functions/vsprintf.texi: Update.
52618         Reported by Eric Blake.
52619
52620 2007-05-06  Bruno Haible  <bruno@clisp.org>
52621
52622         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52623         padding ourselves for the floating-point directives.
52624         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52627         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52628         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52629         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52630         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52633         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52636         * tests/test-snprintf-posix.h (test_function): Also check the width
52637         and some flags in the %f directive.
52638         * tests/test-sprintf-posix.h (test_function): Likewise.
52639         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52640         * tests/test-vasprintf-posix.c (test_function): Likewise.
52641         * doc/functions/fprintf.texi: Update.
52642         * doc/functions/printf.texi: Update.
52643         * doc/functions/snprintf.texi: Update.
52644         * doc/functions/sprintf.texi: Update.
52645         * doc/functions/vfprintf.texi: Update.
52646         * doc/functions/vprintf.texi: Update.
52647         * doc/functions/vsnprintf.texi: Update.
52648         * doc/functions/vsprintf.texi: Update.
52649
52650 2007-05-06  Bruno Haible  <bruno@clisp.org>
52651
52652         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52653         pass the ' flag character to sprintf or snprintf.
52654         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52657         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52658         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52659         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52660         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52661         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52662         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52663         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52665         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52666         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52667         flag.
52668         * tests/test-sprintf-posix.h (test_function): Likewise.
52669         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52670         * tests/test-vasprintf-posix.c (test_function): Likewise.
52671         * doc/functions/fprintf.texi: Update.
52672         * doc/functions/printf.texi: Update.
52673         * doc/functions/snprintf.texi: Update.
52674         * doc/functions/sprintf.texi: Update.
52675         * doc/functions/vfprintf.texi: Update.
52676         * doc/functions/vprintf.texi: Update.
52677         * doc/functions/vsnprintf.texi: Update.
52678         * doc/functions/vsprintf.texi: Update.
52679
52680 2007-05-01  Bruno Haible  <bruno@clisp.org>
52681
52682         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52683
52684 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52685
52686         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52687         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52688
52689 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52690
52691         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52692         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52694
52695 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52696
52697         * lib/argp-help.c (struct hol_entry): New member `ord'.
52698         (HOL_ENTRY_PTRCMP): Use ord for comparison
52699         (hol_sort): Initialize ord.
52700
52701 2007-05-01  Bruno Haible  <bruno@clisp.org>
52702
52703         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52704         Reported by Eric Blake.
52705         * doc/gnulib.texi (Function Substitutes): Update.
52706
52707 2007-05-01  Bruno Haible  <bruno@clisp.org>
52708
52709         * doc/functions.texi: Remove file, now redundant through
52710         doc/functions/*.texi.
52711
52712 2007-05-01  Bruno Haible  <bruno@clisp.org>
52713
52714         * modules/argp (Depends-on): Add sleep.
52715
52716 2007-05-01  Bruno Haible  <bruno@clisp.org>
52717
52718         * modules/sleep-tests: New file.
52719         * tests/test-sleep.c: New file.
52720
52721         * modules/sleep: New file.
52722         * lib/sleep.c: New file.
52723         * m4/sleep.m4: New file.
52724         * lib/unistd_.h (sleep): New declaration.
52725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52726         HAVE_SLEEP.
52727         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52728         * doc/functions/sleep.texi: Document the sleep module.
52729
52730 2007-05-01  Bruno Haible  <bruno@clisp.org>
52731
52732         * lib/sigprocmask.h: Remove file.
52733         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52734         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52735         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52736         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52737         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52738         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52739         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52740         HAVE_SIGSET_T as a shell variable.
52741         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52742         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52743         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52744         (Depends-on): Add signal. Remove verify.
52745         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52746         (Include): Mention <signal.h> instead of sigprocmask.h.
52747         * NEWS: Mention the change.
52748         * lib/fatal-signal.c: Don't include sigprocmask.h.
52749
52750 2007-05-01  Bruno Haible  <bruno@clisp.org>
52751
52752         * modules/signal: New file.
52753         * lib/signal_.h: New file.
52754         * m4/signal_h.m4: New file.
52755
52756 2007-05-01  Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52759         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52760         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52761         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52762
52763 2007-05-01  Bruno Haible  <bruno@clisp.org>
52764
52765         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52766         configure time.
52767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52768         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52769         * modules/sys_stat (Makefile.am): Substitute their values into
52770         sys/stat.h.
52771
52772 2007-05-01  Bruno Haible  <bruno@clisp.org>
52773
52774         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52775         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52776         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52777
52778 2007-05-01  Bruno Haible  <bruno@clisp.org>
52779
52780         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52781         'assert' module here.
52782
52783 2007-05-01  Bruno Haible  <bruno@clisp.org>
52784
52785         * doc/functions/*.texi: New files.
52786         * doc/functions/google-ranking.txt: New file.
52787         * doc/gnulib.texi (Function Substitutes): New chapter.
52788         (ctime, inet_ntoa): Remove sections.
52789         * doc/ctime.texi: Remove file.
52790         * doc/inet_ntoa.texi: Remove file.
52791         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52792         dependencies.
52793         (%.info): New rule, specifying a --reference-limit.
52794
52795 2007-05-01  Bruno Haible  <bruno@clisp.org>
52796
52797         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52798
52799 2007-05-01  Bruno Haible  <bruno@clisp.org>
52800
52801         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52802         the portability of 'mkdir' to mingw systems.
52803
52804 2007-05-01  Bruno Haible  <bruno@clisp.org>
52805
52806         * doc/headers/google-ranking.txt: New file.
52807
52808 2007-04-30  Eric Blake  <ebb9@byu.net>
52809
52810         Prefer fseeko to fseek.
52811         * modules/getpass (Depends-on): Add fseeko.
52812         * lib/getpass.c (getpass): Use fseeko, not fseek.
52813
52814 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52815
52816         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52817         assumes the sorting is stable, while most qsort implementations
52818         are not.  Use argument addresses to ensure they never compare as
52819         equal.
52820
52821         * tests/test-argp-2.sh (usage-indent test): Fix output
52822         (func_compare): Restore diff options
52823         * tests/test-argp.c: Restore #include "progname.h"
52824
52825 2007-04-29  Bruno Haible  <bruno@clisp.org>
52826
52827         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52829         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52830         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52831         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52832         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52833         (TESTS, check_PROGRAMS): Add test-snprintf.
52834         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52835         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52836         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52837         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52838         assertions that fail on HP-UX, OSF/1, or IRIX.
52839         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52840
52841 2007-04-29  Bruno Haible  <bruno@clisp.org>
52842
52843         * MODULES.html.sh (posix_functions): Remove 'contents'.
52844
52845 2007-04-29  Karl Berry  <karl@gnu.org>
52846
52847         * config/srclist.txt (gendocs_template_min): new entry.
52848
52849 2007-04-29  Bruno Haible  <bruno@clisp.org>
52850
52851         Work around fpurge bug on BSD systems.
52852         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52853         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52854         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52855         fpurge to rpl_fpurge if the system already has this function.
52856         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52857         the case where the system already has this function. Correct invariants
52858         on BSD systems.
52859         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52860         BSD systems.
52861
52862 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52863
52864         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52865         proposed by Sven Verdoolaege.
52866
52867         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52868         options.
52869         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52870         (usage and help tests): Update
52871
52872 2007-04-29  Bruno Haible  <bruno@clisp.org>
52873
52874         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52875         Print more information in case of failure. Disable a test on BeOS.
52876
52877 2007-04-29  Bruno Haible  <bruno@clisp.org>
52878
52879         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52880         This helps debugging on systems on which no gdb is available.
52881
52882 2007-04-29  Bruno Haible  <bruno@clisp.org>
52883
52884         * lib/freading.h: Improve comments.
52885         * lib/fwriting.h: Likewise.
52886         * tests/test-freading.c (main): Don't check freading immediately after
52887         repositioning. Needed for glibc.
52888
52889 2007-04-29  Bruno Haible  <bruno@clisp.org>
52890
52891         * lib/freading.c (freading): Trivial simplification.
52892
52893 2007-04-28  Bruno Haible  <bruno@clisp.org>
52894
52895         * tests/test-fwriting.c (main): Also test the interaction between
52896         fflush and fwriting.
52897         * modules/fwriting-tests (Depends-on): Add fflush.
52898
52899         * tests/test-freading.c (main): Also test the interaction between
52900         fflush and freading.
52901         * modules/freading-tests (Depends-on): Add fflush.
52902
52903 2007-04-28  Bruno Haible  <bruno@clisp.org>
52904
52905         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52906         fseeko and ftello.
52907         Suggested by Eric Blake.
52908
52909 2007-04-28  Jim Meyering  <jim@meyering.net>
52910
52911         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52912         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52913         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52914
52915 2007-04-27  Eric Blake  <ebb9@byu.net>
52916
52917         * doc/headers/assert.texi (assert.h): Document assert module use.
52918
52919 2007-04-27  Bruno Haible  <bruno@clisp.org>
52920
52921         * doc/headers/*.texi: New files.
52922         * doc/gnulib.texi (Header File Substitutes): New chapter.
52923         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52924         dependencies.
52925         (standards.info ,standards.html, standards.dvi): Update dependencies.
52926         (mostlyclean, clean): New targets.
52927
52928 2007-04-27  Bruno Haible  <bruno@clisp.org>
52929
52930         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52931         * modules/sysexits (Files, Makefile.am): Update.
52932
52933         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52934         * modules/sys_socket (Files, Makefile.am): Update.
52935
52936         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52937         * modules/sys_stat (Files, Makefile.am): Update.
52938
52939 2007-04-27  Eric Blake  <ebb9@byu.net>
52940
52941         * lib/freading.h: Improve comments.
52942         * lib/fwriting.h: Likewise.
52943         * lib/fflush.c: Likewise.
52944
52945         Fix closein for mingw.
52946         * modules/closein-tests: Add tests for closein.
52947         * tests/test-closein.c: New file.
52948         * tests/test-closein.sh: Likewise.
52949         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52950         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52951
52952 2007-04-27  Bruno Haible  <bruno@clisp.org>
52953
52954         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52955         version is < 6.
52956         * lib/math_.h [__DECC]: Likewise.
52957         * lib/stdio_.h [__DECC]: Likewise.
52958         * lib/stdlib_.h [__DECC]: Likewise.
52959         * lib/string_.h [__DECC]: Likewise.
52960         * lib/time_.h [__DECC]: Likewise.
52961         * lib/wchar_.h [__DECC]: Likewise.
52962         * lib/wctype_.h [__DECC]: Likewise.
52963
52964 2007-04-27  Bruno Haible  <bruno@clisp.org>
52965
52966         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52967
52968 2007-04-27  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/fflush.c: Add comments.
52971         * modules/fpurge-tests (Depends-on): Add fflush.
52972         * modules/freadable-tests (Depends-on): Likewise.
52973         * modules/fwritable-tests (Depends-on): Likewise.
52974
52975 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52976
52977         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52978         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52979         Report by Bruno Haible <bruno@clisp.org>.
52980
52981 2007-04-26  Eric Blake  <ebb9@byu.net>
52982
52983         Fix fflush on mingw.
52984         * modules/fflush (Depends-on): Add freading.
52985         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52986         but unread data.
52987
52988 2007-04-26  Eric Blake  <ebb9@byu.net>
52989         and Bruno Haible  <bruno@clisp.org>
52990
52991         Implement freading and fwriting.
52992         * lib/freading.c: New file.
52993         * lib/freading.h: Likewise.
52994         * m4/freading.m4: Likewise.
52995         * modules/freading: Likewise.
52996         * modules/freading-tests: Likewise.
52997         * tests/test-freading.c: Likewise.
52998         * lib/fwriting.c: New file.
52999         * lib/fwriting.h: Likewise.
53000         * m4/fwriting.m4: Likewise.
53001         * modules/fwriting: Likewise.
53002         * modules/fwriting-tests: Likewise.
53003         * tests/test-fwriting.c: Likewise.
53004         * MODULES.html.sh (File stream based Input/Output): Mention them.
53005
53006 2007-04-26  Bruno Haible  <bruno@clisp.org>
53007
53008         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
53009         'long' when we assume it.
53010         Suggested by Eric Blake.
53011
53012 2007-04-26  Bruno Haible  <bruno@clisp.org>
53013
53014         Ensure fseeko, ftello are declared on glibc systems.
53015         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
53016         * modules/fseeko (configure.ac-early): Likewise.
53017         * modules/ftello (configure.ac-early): Likewise.
53018         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
53019         AC_FUNC_FSEEKO for this.
53020         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
53021         (gl_CHECK_FSEEKO): Remove macro.
53022
53023 2007-04-26  Bruno Haible  <bruno@clisp.org>
53024
53025         * tests/test-fflush.c (main): Also check the ftell result after
53026         fflush and fseek/fseeko.
53027         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
53028         file descriptor position cache in the stream.
53029         * lib/fseeko.c (rpl_fseeko): Likewise.
53030
53031 2007-04-26  Bruno Haible  <bruno@clisp.org>
53032
53033         * modules/fflush-tests (Depends-on): Add fseeko.
53034
53035 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
53036             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53037
53038         * lib/argz_.h: ensure error_t definition is obtained in same
53039         mechanism system argz.h would have.
53040         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
53041         argz facilities are known bad.  Err on the side of caution if
53042         cross-compiling.
53043
53044 2007-04-25  Eric Blake  <ebb9@byu.net>
53045
53046         * lib/fpurge.c (includes): Use stdlib.h for free.
53047         * tests/test-fflush.c (main): Also test fflush-fseeko.
53048
53049 2007-04-25  Bruno Haible  <bruno@clisp.org>
53050
53051         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
53052         * lib/fseeko.c: New file.
53053         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
53054         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
53055         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
53056         gl_FUNC_FSEEKO.
53057         (gl_FUNC_FSEEKO): Invoke it.
53058         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
53059         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
53060         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
53061
53062 2007-04-25  Bruno Haible  <bruno@clisp.org>
53063
53064         * modules/fflush (Depends-on): Add ftello.
53065
53066 2007-04-25  Bruno Haible  <bruno@clisp.org>
53067
53068         * modules/ftello-tests: New file.
53069         * tests/test-ftello.c: New file.
53070
53071         * modules/ftello: New file.
53072         * m4/ftello.m4: New file.
53073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
53074         HAVE_FTELLO.
53075         * lib/stdio_.h (ftello): New declaration.
53076         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
53077         HAVE_FTELLO.
53078
53079 2007-04-25  Bruno Haible  <bruno@clisp.org>
53080
53081         * modules/fseeko-tests: New file.
53082         * tests/test-fseeko.c: New file.
53083
53084         * modules/fseeko: New file.
53085         * m4/fseeko.m4: New file.
53086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
53087         HAVE_FSEEKO.
53088         * lib/stdio_.h (fseeko): New declaration.
53089         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
53090         HAVE_FSEEKO.
53091
53092 2007-04-25  Bruno Haible  <bruno@clisp.org>
53093
53094         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
53095
53096 2007-04-25  Bruno Haible  <bruno@clisp.org>
53097
53098         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
53099         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
53100         * tests/test-unistd.c: Likewise.
53101         * tests/test-fcntl.c: Likewise.
53102
53103 2007-04-23  Eric Blake  <ebb9@byu.net>
53104
53105         * lib/fflush.c: Fix missing include.
53106         Reported by Bruno Haible.
53107
53108 2007-04-23  Bruno Haible  <bruno@clisp.org>
53109
53110         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
53111         Reported by Eric Blake.
53112
53113 2007-04-23  Bruno Haible  <bruno@clisp.org>
53114
53115         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
53116
53117 2007-04-23  Bruno Haible  <bruno@clisp.org>
53118
53119         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
53120
53121 2007-04-23  Bruno Haible  <bruno@clisp.org>
53122
53123         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
53124         Needed on HP-UX 11.
53125
53126 2007-04-16  Eric Blake  <ebb9@byu.net>
53127
53128         Make fflush rely on fpurge.
53129         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
53130         open coding all variants.
53131         * modules/fflush (Depends-on): Add fpurge and unistd.
53132         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
53133         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
53134
53135         Fix --with-tests compilation on cygwin.
53136         * modules/argmatch-tests (Makefile.am): List gnulib library first
53137         in LDADD.
53138         * modules/argp-tests (Makefile.am): Likewise.
53139         * modules/array-list-tests (Makefile.am): Likewise.
53140         * modules/array-oset-tests (Makefile.am): Likewise.
53141         * modules/avltree-list-tests (Makefile.am): Likewise.
53142         * modules/avltree-oset-tests (Makefile.am): Likewise.
53143         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53144         * modules/carray-list-tests (Makefile.am): Likewise.
53145         * modules/dirname-tests (Makefile.am): Likewise.
53146         * modules/frexp-tests (Makefile.am): Likewise.
53147         * modules/isnanl-tests (Makefile.am): Likewise.
53148         * modules/linked-list-tests (Makefile.am): Likewise.
53149         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53150         * modules/lock-tests (Makefile.am): Likewise.
53151         * modules/rbtree-list-tests (Makefile.am): Likewise.
53152         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53153         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53154         * modules/tls-tests (Makefile.am): Likewise.
53155         * modules/tsearch-tests (Makefile.am): Likewise.
53156         * modules/xvasprintf-tests (Makefile.am): Likewise.
53157
53158         Fix fpurge for cygwin.
53159         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
53160         value.
53161         * modules/fpurge-tests (Depends-on): Clean up trash.
53162
53163 2007-04-16  Simon Josefsson  <simon@josefsson.org>
53164
53165         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
53166
53167         * m4/autobuild.m4: Re-indent.
53168
53169 2007-04-13  Bruno Haible  <bruno@clisp.org>
53170
53171         * modules/fpurge-tests: New file.
53172         * tests/test-fpurge.c: New file.
53173
53174         * modules/fpurge: New file.
53175         * lib/fpurge.h: New file.
53176         * lib/fpurge.c: New file.
53177         * m4/fpurge.m4: New file.
53178
53179 2007-04-13  Bruno Haible  <bruno@clisp.org>
53180
53181         * modules/fbufmode-tests: New file.
53182         * tests/test-fbufmode.c: New file.
53183
53184         * modules/fbufmode: New file.
53185         * lib/fbufmode.h: New file.
53186         * lib/fbufmode.c: New file.
53187         * m4/fbufmode.m4: New file.
53188
53189 2007-04-13  Bruno Haible  <bruno@clisp.org>
53190
53191         * modules/fwritable-tests: New file.
53192         * tests/test-fwritable.c: New file.
53193
53194         * modules/fwritable: New file.
53195         * lib/fwritable.h: New file.
53196         * lib/fwritable.c: New file.
53197         * m4/fwritable.m4: New file.
53198
53199 2007-04-13  Bruno Haible  <bruno@clisp.org>
53200
53201         * modules/freadable-tests: New file.
53202         * tests/test-freadable.c: New file.
53203
53204         * modules/freadable: New file.
53205         * lib/freadable.h: New file.
53206         * lib/freadable.c: New file.
53207         * m4/freadable.m4: New file.
53208
53209 2007-04-13  Bruno Haible  <bruno@clisp.org>
53210
53211         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
53212         MOSTLYCLEANFILES.
53213
53214 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53215
53216         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
53217         gzip bootstrap.conf to avoid dragging in i18n machinery.
53218         (gnulib_tool_option): Use it.
53219
53220 2007-04-13  Bruno Haible  <bruno@clisp.org>
53221
53222         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
53223         %F directives.
53224         * tests/test-vasprintf-posix.c (test_function): Likewise.
53225         * tests/test-snprintf-posix.h (test_function): Likewise.
53226         * tests/test-sprintf-posix.h (test_function): Likewise.
53227         * tests/test-fprintf-posix.h (test_function): Likewise.
53228         * tests/test-printf-posix.h (test_function): Likewise.
53229         * tests/test-fprintf-posix.out: Likewise.
53230
53231 2007-04-13  Bruno Haible  <bruno@clisp.org>
53232
53233         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
53234         * modules/tls-tests (configure.ac): Likewise.
53235         Reported by Arto C. Nirkko <anirkko@insel.ch>.
53236
53237 2007-04-13  Bruno Haible  <bruno@clisp.org>
53238
53239         * lib/tls.c (glthread_tls_get): Fix return type.
53240         Patch by Arto C. Nirkko <anirkko@insel.ch>.
53241
53242 2007-04-12  Eric Blake  <ebb9@byu.net>
53243
53244         * modules/gettime (Depends-on): Remove gettime.
53245         Reported by Dmitry V. Levin.
53246
53247 2007-04-12  Bruno Haible  <bruno@clisp.org>
53248
53249         * modules/fflush (Include): Mention <stdio.h>.
53250         * modules/strtoimax (Include): Mention <inttypes.h>.
53251         * modules/strtoumax (Include): Likewise.
53252
53253 2007-04-12  Eric Blake  <ebb9@byu.net>
53254
53255         * .cvsignore: New file.
53256         * .gitignore: Likewise.
53257
53258 2007-04-12  Bruno Haible  <bruno@clisp.org>
53259
53260         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
53261         not before, since $(LDADD) often contains libgnu.a.
53262         * modules/striconv-tests (test_striconv_LDADD): Likewise.
53263         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
53264         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
53265         Needed on Cygwin.
53266
53267 2007-04-12  Eric Blake  <ebb9@byu.net>
53268
53269         Work around glibc's failure to flush stdin on fclose.
53270         * lib/closein.c (close_stdin): Flush stdin before closing.
53271
53272         Work around glibc's failure to reset seekable stdin on exit.
53273         * modules/closein: New module.
53274         * lib/closein.c: New file.
53275         * lib/closein.h: Likewise.
53276         * m4/closein.m4: Likewise.
53277         * MODULES.html.sh (File stream based Input/Output): Document it.
53278
53279 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53280
53281         * gnulib-tool: Rename generated 'autobuild' script to
53282         'do-autobuild' in --create-megatestdir output.
53283
53284         * doc/gnulib.texi (Build robot for gnulib): Fix.
53285
53286 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53287
53288         * modules/sysexits (Depends-on): Add absolute-header.
53289
53290 2007-04-12  Eric Blake  <ebb9@byu.net>
53291
53292         No need to preserve errno on success.
53293         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
53294         Reported by Bruno Haible.
53295
53296 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53297
53298         * MODULES.html.sh (Support for maintaining and releasing
53299         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
53300
53301 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53302
53303         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
53304
53305 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53306
53307         * modules/autobuild: New module.
53308
53309         * m4/autobuild.m4: New file.
53310
53311 2007-04-11  Bruno Haible  <bruno@clisp.org>
53312
53313         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
53314         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
53315         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
53316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
53317         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53318         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53319         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53321         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53322         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53323         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
53324         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53325         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53326         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
53327         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53328         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53329         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
53330         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53331         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
53333         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53334         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
53336         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53337         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53338         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
53339         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53340         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53341         Reported by Eric Blake.
53342
53343 2007-04-11  Bruno Haible  <bruno@clisp.org>
53344
53345         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
53346
53347 2007-04-10  Bruno Haible  <bruno@clisp.org>
53348
53349         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
53350         for NaN and Infinity. Needed on FreeBSD 6.1.
53351         * tests/test-vasnprintf-posix.c (test_function): Undo last change
53352         regarding results for "%010a" of Infinity and NaN.
53353         * tests/test-vasprintf-posix.c (test_function): Likewise.
53354         * tests/test-snprintf-posix.h (test_function): Likewise.
53355         * tests/test-sprintf-posix.h (test_function): Likewise.
53356         * tests/test-fprintf-posix.h (test_function): Likewise.
53357         * tests/test-printf-posix.h (test_function): Likewise.
53358         * tests/test-fprintf-posix.out: Likewise.
53359
53360 2007-04-10  Bruno Haible  <bruno@clisp.org>
53361
53362         * modules/locale-tests: New file.
53363         * tests/test-locale.c: New file.
53364
53365         * modules/locale: New file.
53366         * lib/locale_.h: New file.
53367         * m4/locale_h.m4: New file.
53368
53369 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
53370             Bruno Haible  <bruno@clisp.org>
53371
53372         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
53373         be determined, test for availability of the copysignf, copysign,
53374         copysignl functions.
53375         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
53376         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
53377         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
53378
53379 2007-04-09  Eric Blake  <ebb9@byu.net>
53380
53381         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
53382         * modules/stdio (Makefile.am): Support fflush.
53383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53384         * modules/fflush: New file.
53385         * lib/fflush.c: Likewise.
53386         * m4/fflush.m4: Likewise.
53387         * modules/fflush-tests: New test.
53388         * tests/test-fflush.c: Likewise.
53389         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
53390
53391 2007-04-06  Bruno Haible  <bruno@clisp.org>
53392
53393         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
53394         (VASNPRINTF): Use signbit for faster determination whether to print a
53395         minus sign.
53396         * modules/vasnprintf (Files): Remove lib/float+.h.
53397         * modules/fprintf-posix (Depends-on): Add signbit.
53398         * modules/snprintf-posix (Depends-on): Likewise.
53399         * modules/sprintf-posix (Depends-on): Likewise.
53400         * modules/vasnprintf-posix (Depends-on): Likewise.
53401         * modules/vasprintf-posix (Depends-on): Likewise.
53402         * modules/vfprintf-posix (Depends-on): Likewise.
53403         * modules/vsnprintf-posix (Depends-on): Likewise.
53404         * modules/vsprintf-posix (Depends-on): Likewise.
53405
53406 2007-04-06  Bruno Haible  <bruno@clisp.org>
53407
53408         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53409         * tests/test-frexpl.c (main): Likewise.
53410         * tests/test-ldexpl.c (main): Likewise.
53411         * modules/frexp-tests (Depends-on): Add signbit.
53412         * modules/frexpl-tests (Depdends-on): Likewise.
53413         * modules/ldexpl-tests (Depdends-on): Likewise.
53414
53415 2007-04-06  Bruno Haible  <bruno@clisp.org>
53416
53417         * modules/signbit-tests: New file.
53418         * tests/test-signbit.c: New file.
53419
53420         * modules/signbit: New file.
53421         * lib/signbitf.c: New file.
53422         * lib/signbitd.c: New file.
53423         * lib/signbitl.c: New file.
53424         * m4/signbit.m4: New file.
53425         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53426         (signbit): New macro.
53427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53428         REPLACE_SIGNBIT.
53429         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53430         REPLACE_FREXPL into math.h.
53431
53432 2007-04-06  Bruno Haible  <bruno@clisp.org>
53433
53434         * modules/isnanf-nolibm-tests: New file.
53435         * tests/test-isnanf.c: New file.
53436
53437         * modules/isnanf-nolibm: New file.
53438         * lib/isnanf.h: New file.
53439         * lib/isnanf.c: New file.
53440         * lib/isnan.c: Consider the USE_FLOAT macro.
53441         * m4/isnanf.m4: New file.
53442
53443 2007-04-06  Bruno Haible  <bruno@clisp.org>
53444
53445         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53446         (Link): New section.
53447
53448         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53449
53450 2007-04-06  Bruno Haible  <bruno@clisp.org>
53451
53452         Assume the 'long double' type.
53453         * m4/longdouble.m4: Remove file.
53454         * config/srclist.txt: Don't mention longdouble.m4.
53455         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53456         * lib/float+.h: Likewise.
53457         * lib/frexp.c: Likewise.
53458         * lib/printf-args.h: Likewise.
53459         * lib/printf-args.c: Likewise.
53460         * lib/printf-frexp.c: Likewise.
53461         * lib/printf-parse.c: Likewise.
53462         * lib/vasnprintf.c: Likewise.
53463         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53464         * m4/intl.m4: Likewise.
53465         * m4/isnanl.m4: Likewise.
53466         * m4/printf.m4: Likewise.
53467         * m4/printf-frexpl.m4: Likewise.
53468         * m4/vasnprintf.m4: Likewise.
53469         * modules/allocsa (Files): Remove m4/longdouble.m4.
53470         * modules/gettext (Files): Likewise.
53471         * modules/relocatable-prog-wrapper (Files): Likewise.
53472         * modules/vasnprintf (Files): Likewise.
53473         * modules/isnanl (Files): Likewise.
53474         (Include): Simplify.
53475         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53476         (Include): Simplify.
53477         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53478         (Include): Simplify.
53479         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53480         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53481         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53482         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53483         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53484         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53485         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53486         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53487         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53488         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53489         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53490         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53491         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53492         * tests/test-isnanl.c: Likewise.
53493         * tests/test-snprintf-posix.h: Likewise.
53494         * tests/test-sprintf-posix.h: Likewise.
53495         * tests/test-vasnprintf-posix.c: Likewise.
53496         * tests/test-vasnprintf-posix2.c: Likewise.
53497         * tests/test-vasprintf-posix.c: Likewise.
53498
53499 2007-04-06  Bruno Haible  <bruno@clisp.org>
53500
53501         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53502         * lib/math_.h [__DECC]: Include the overridden include file through
53503         #include_next, outside the double-inclusion guard.
53504         * lib/stdio_.h [__DECC]: Likewise.
53505         * lib/stdlib_.h [__DECC]: Likewise.
53506         * lib/string_.h [__DECC]: Likewise.
53507         * lib/time_.h [__DECC]: Likewise.
53508         * lib/wchar_.h [__DECC]: Likewise.
53509         * lib/wctype_.h [__DECC]: Likewise.
53510         * lib/inttypes_.h [__DECC]: Likewise.
53511         Reported by Albert Chin <china@thewrittenword.com> in
53512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53513
53514 2007-04-04  Eric Blake  <ebb9@byu.net>
53515
53516         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53517         1.5.x.
53518
53519 2007-04-04  Bruno Haible  <bruno@clisp.org>
53520
53521         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53522         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53523
53524 2007-04-04  Bruno Haible  <bruno@clisp.org>
53525
53526         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53527         results for "%010a" of Infinity and NaN.
53528         * tests/test-vasprintf-posix.c (test_function): Likewise.
53529         * tests/test-snprintf-posix.h (test_function): Likewise.
53530         * tests/test-sprintf-posix.h (test_function): Likewise.
53531         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53532         * tests/test-printf-posix.h (test_function): Likewise.
53533         * tests/test-fprintf-posix.out: Update.
53534         Needed for FreeBSD 6.1.
53535
53536 2007-04-04  Bruno Haible  <bruno@clisp.org>
53537
53538         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53539         directly used by the gnulib modules nor by gnulib-tool.
53540
53541 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53542
53543         * DEPENDENCIES: Give overall description of version dependency
53544         desirability.  Use more-typical names for apps.
53545         Add shell, coreutils, diffutils, grep, tar, gzip.
53546
53547 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53548
53549         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53550
53551 2007-04-04  Karl Berry  <karl@gnu.org>
53552
53553         * MODULES.html.sh (func_module): missing '.
53554
53555 2007-04-03  Bruno Haible  <bruno@clisp.org>
53556
53557         * modules/argmatch-tests (Makefile.am): New variable
53558         test_argmatch_LDADD.
53559         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53560         * modules/array-list-tests (Makefile.am): New variable
53561         test_array_list_LDADD.
53562         * modules/array-oset-tests (Makefile.am): New variable
53563         test_array_oset_LDADD.
53564         * modules/avltree-list-tests (Makefile.am): New variable
53565         test_avltree_list_LDADD.
53566         * modules/avltree-oset-tests (Makefile.am): New variable
53567         test_avltree_oset_LDADD.
53568         * modules/avltreehash-list-tests (Makefile.am): New variable
53569         test_avltreehash_list_LDADD.
53570         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53571         test_canonicalize_lgpl_LDADD.
53572         * modules/carray-list-tests (Makefile.am): New variable
53573         test_carray_list_LDADD.
53574         * modules/dirname-tests (Makefile.am): New variable
53575         test_dirname_LDADD.
53576         * modules/linked-list-tests (Makefile.am): New variable
53577         test_linked_list_LDADD.
53578         * modules/linkedhash-list-tests (Makefile.am): New variable
53579         test_linkedhash_list_LDADD.
53580         * modules/rbtree-list-tests (Makefile.am): New variable
53581         test_rbtree_list_LDADD.
53582         * modules/rbtree-oset-tests (Makefile.am): New variable
53583         test_rbtree_oset_LDADD.
53584         * modules/rbtreehash-list-tests (Makefile.am): New variable
53585         test_rbtreehash_list_LDADD.
53586         * modules/xvasprintf-tests (Makefile.am): New variable
53587         test_xvasprintf_LDADD.
53588         Reported by Eric Blake.
53589
53590 2007-04-03  Eric Blake  <ebb9@byu.net>
53591
53592         * DEPENDENCIES: Weaken m4 requirements.
53593
53594 2007-04-03  Bruno Haible  <bruno@clisp.org>
53595
53596         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53597         * modules/isnanl-tests (configure.ac): Likewise.
53598
53599 2007-04-03  Ben Pfaff  <blp@gnu.org>
53600
53601         * modules/iconv_open: Add $(srcdir)/ to source directory
53602         references in Makefile fragments that call gperf, to fix VPATH
53603         builds.
53604
53605 2007-04-03  Bruno Haible  <bruno@clisp.org>
53606
53607         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53608         * lib/ldexpl.c: Undo last change.
53609
53610 2007-04-03  Bruno Haible  <bruno@clisp.org>
53611
53612         * modules/printf-frexpl (Depends-on): Undo last change.
53613         (Files): Add m4/ldexpl.m4.
53614
53615 2007-04-03  Bruno Haible  <bruno@clisp.org>
53616
53617         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53618         * modules/isnanl (Link): New section.
53619
53620         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53621         * modules/frexp (Link): New section.
53622
53623         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53624         * modules/frexpl (Link): New section.
53625
53626         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53627         * modules/ldexpl (Link): New section.
53628
53629 2007-04-03  Bruno Haible  <bruno@clisp.org>
53630
53631         * modules/TEMPLATE-EXTENDED: New file.
53632         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53633
53634 2007-04-03  Bruno Haible  <bruno@clisp.org>
53635
53636         * DEPENDENCIES: New file.
53637         Suggested by Simon Josefsson.
53638
53639 2007-04-03  Bruno Haible  <bruno@clisp.org>
53640
53641         * doc/gnulib.texi: Escape @.
53642
53643 2007-04-03  James Youngman  <jay@gnu.org>
53644         and Paul Eggert  <eggert@cs.ucla.edu>
53645
53646         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53647         birthtime on all systems that have birthtime, not just those which
53648         use st_birthtimensec rather than st_birthtim.  Putting zero in
53649         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53650         that the birth time is not available for files on an NFS mount.
53651
53652 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53653
53654         * modules/memxor: Move back from crypto/, suggested by Bruno.
53655         * modules/crypto/hmac-sha1: Fix memxor dependency.
53656
53657         * modules/crypto/gc: Moved from ../.
53658
53659 2007-04-02  Eric Blake  <ebb9@byu.net>
53660
53661         * lib/ldexpl.c (includes): Avoid libm.
53662
53663         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53664
53665 2007-04-02  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53668         on IRIX.
53669
53670 2007-04-02  Bruno Haible  <bruno@clisp.org>
53671
53672         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53673         x86 or x86_64 platforms running MacOS X.
53674         Reported by Ryan Schmidt <@ryandesign.com>.
53675
53676 2007-04-02  Bruno Haible  <bruno@clisp.org>
53677
53678         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53679         i386.
53680
53681 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53682
53683         * modules/crypto/arcfour: Moved from ../.
53684         * modules/crypto/arcfour-tests: Moved from ../.
53685         * modules/crypto/arctwo: Moved from ../.
53686         * modules/crypto/arctwo-tests: Moved from ../.
53687         * modules/crypto/des: Moved from ../.
53688         * modules/crypto/des-tests: Moved from ../.
53689         * modules/crypto/gc-arcfour: Moved from ../.
53690         * modules/crypto/gc-arcfour-tests: Moved from ../.
53691         * modules/crypto/gc-arctwo: Moved from ../.
53692         * modules/crypto/gc-arctwo-tests: Moved from ../.
53693         * modules/crypto/gc-des: Moved from ../.
53694         * modules/crypto/gc-des-tests: Moved from ../.
53695         * modules/crypto/gc-hmac-md5: Moved from ../.
53696         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53697         * modules/crypto/gc-hmac-sha1: Moved from ../.
53698         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53699         * modules/crypto/gc-md2: Moved from ../.
53700         * modules/crypto/gc-md2-tests: Moved from ../.
53701         * modules/crypto/gc-md4: Moved from ../.
53702         * modules/crypto/gc-md4-tests: Moved from ../.
53703         * modules/crypto/gc-md5: Moved from ../.
53704         * modules/crypto/gc-md5-tests: Moved from ../.
53705         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53706         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53707         * modules/crypto/gc-random: Moved from ../.
53708         * modules/crypto/gc-rijndael: Moved from ../.
53709         * modules/crypto/gc-rijndael-tests: Moved from ../.
53710         * modules/crypto/gc-sha1: Moved from ../.
53711         * modules/crypto/gc-sha1-tests: Moved from ../.
53712         * modules/crypto/gc-tests: Moved from ../.
53713         * modules/crypto/hmac-md5: Moved from ../.
53714         * modules/crypto/hmac-md5-tests: Moved from ../.
53715         * modules/crypto/hmac-sha1: Moved from ../.
53716         * modules/crypto/hmac-sha1-tests: Moved from ../.
53717         * modules/crypto/md2: Moved from ../.
53718         * modules/crypto/md2-tests: Moved from ../.
53719         * modules/crypto/md4: Moved from ../.
53720         * modules/crypto/md4-tests: Moved from ../.
53721         * modules/crypto/md5: Moved from ../.
53722         * modules/crypto/md5-tests: Moved from ../.
53723         * modules/crypto/memxor: Moved from ../.
53724         * modules/crypto/rijndael: Moved from ../.
53725         * modules/crypto/rijndael-tests: Moved from ../.
53726         * modules/crypto/sha1: Moved from ../.
53727
53728 2007-03-30  James Youngman  <jay@gnu.org>
53729
53730         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53731         rename() to change the ctime of a file (because ctime is unaffected
53732         by rename on jfs2 on AIX 5.1).
53733         (main): Start by doing cleanup, in case a previous run failed leaving
53734         test files behind.
53735
53736 2007-03-31  Bruno Haible  <bruno@clisp.org>
53737
53738         Support old proprietary implementations of iconv.
53739         * modules/iconv_open: New file.
53740         * lib/iconv_.h: New file.
53741         * m4/iconv_h.m4: New file.
53742         * lib/iconv_open.c: New file.
53743         * lib/iconv_open-aix.gperf: New file.
53744         * lib/iconv_open-hpux.gperf: New file.
53745         * lib/iconv_open-irix.gperf: New file.
53746         * lib/iconv_open-osf.gperf: New file.
53747         * m4/iconv_open.m4: New file.
53748         * modules/linebreak (Depends-on): Add iconv_open.
53749         * modules/striconv (Depends-on): Likewise.
53750         * modules/striconveh (Depends-on): Likewise.
53751         * modules/unicodeio (Depends-on): Likewise.
53752         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53753         (iconv_t)(-1).
53754         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53755         conversion if cd is (iconv_t)(-1).
53756         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53757         is not possible.
53758
53759 2007-03-31  Bruno Haible  <bruno@clisp.org>
53760
53761         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53762         work on Solaris either. Protect also second use of "autodetect_jp".
53763
53764 2007-03-31  Bruno Haible  <bruno@clisp.org>
53765
53766         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53767         the function is not present.
53768
53769 2007-03-31  Bruno Haible  <bruno@clisp.org>
53770
53771         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53772         the function is not present.
53773
53774 2007-03-31  Bruno Haible  <bruno@clisp.org>
53775
53776         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53777         a bug in HP-UX iconv_open().
53778
53779 2007-03-31  Bruno Haible  <bruno@clisp.org>
53780
53781         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53782         (Mathematics <math.h>): New section, add fpieee.
53783         (Input/output <stdio.h>): Add fseterr.
53784         (Mathematics <math.h>): New section, add printf-frexp.
53785         (Container data structures): Add sublist.
53786         (Core language properties): Add fpucw, inline.
53787         (Functions for greatest-width integer types <inttypes.h>): Add
53788         imaxabs, imaxdiv, inttypes.
53789         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53790         isnanl-nolibm, ldexp.
53791         (Mathematics <math.h>): New section, add printf-frexpl.
53792         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53793         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53794         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53795         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53796         (Unicode string functions): Add unistr/u*-mbtoucr.
53797         (Java): Add javacomp-script, javaexec-script.
53798         (C#): Add csharpcomp-script, csharpexec-script.
53799         (Support for building libraries and executables): Add havelib,
53800         relocatable-*.
53801         (Support for maintaining and releasing projects): Renamed from
53802         'Support for maintaining and release projects'. Add announce-gen.
53803
53804 2007-03-31  Bruno Haible  <bruno@clisp.org>
53805
53806         * README: Talk primarily about git.
53807         (git and CVS): Renamed from CVS.
53808         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53809         gnulib is available through git.
53810         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53811
53812 2007-03-30  Bruno Haible  <bruno@clisp.org>
53813
53814         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53815         * lib/poll_.h: Likewise.
53816         * lib/stat_.h: Likewise.
53817         * lib/sys_time_.h: Likewise.
53818         * lib/sysexit_.h: Likewise.
53819         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53820         * lib/stdbool_.h: Likewise.
53821         * lib/byteswap_.h: Add double-inclusion guard.
53822
53823 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53824
53825         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53826
53827 2007-03-30  Karl Berry  <karl@gnu.org>
53828
53829         * config/srclist-update: double space after USA in the license
53830         substitution, since that's how it's usually (?) written.
53831
53832 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53833
53834         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53835         reported by Bruno Haible.
53836
53837 2007-03-29  Bruno Haible  <bruno@clisp.org>
53838
53839         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53840         a bug in AIX iconv().
53841
53842 2007-03-29  Bruno Haible  <bruno@clisp.org>
53843
53844         * modules/ldexpl-tests: New file.
53845         * tests/test-ldexpl.c: New file.
53846
53847 2007-03-29  Bruno Haible  <bruno@clisp.org>
53848
53849         * lib/ldexpl.c: Include fpucw.h.
53850         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53851         multiplication.
53852         * modules/ldexpl (Depends-on): Add fpucw.
53853
53854 2007-03-29  Bruno Haible  <bruno@clisp.org>
53855
53856         * modules/ldexpl: New file.
53857         * m4/ldexpl.m4: New file.
53858         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53859         set.
53860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53861         REPLACE_LDEXPL.
53862         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53863         REPLACE_LDEXPL.
53864         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53865         gl_FUNC_LDEXPL_WORKS.
53866         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53867         * modules/mathl (Files): Remove lib/ldexpl.c.
53868         (Depends-on): Add ldexpl.
53869
53870 2007-03-29  Bruno Haible  <bruno@clisp.org>
53871
53872         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53873
53874 2007-03-29  Bruno Haible  <bruno@clisp.org>
53875
53876         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53877         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53878         and possibly also HP-UX.
53879         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53880         work on AIX, IRIX, HP-UX, OSF/1.
53881         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53882         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53883         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53884         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53885         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53886         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53887
53888 2007-03-29  Bruno Haible  <bruno@clisp.org>
53889
53890         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53891
53892 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53893
53894         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53895         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53896
53897 2007-03-29  Eric Blake  <ebb9@byu.net>
53898
53899         * lib/acl-internal.h: Remove redundant include.
53900         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53901         Cygwin when a file is locked.
53902
53903 2007-03-29  Bruno Haible  <bruno@clisp.org>
53904
53905         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53906         file.
53907         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53908
53909 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53910
53911         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53912         try to remove a parent directory if the child couldn't be removed
53913         (except for the first rmdir, which could fail because the child
53914         doesn't exist).  Problem reported by Jeff Blaine in
53915         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53916
53917 2007-03-28  Bruno Haible  <bruno@clisp.org>
53918
53919         * lib/striconveh.c (utf8conv_carefully): New function.
53920         (mem_cd_iconveh_internal): Invoke it.
53921
53922 2007-03-28  Bruno Haible  <bruno@clisp.org>
53923
53924         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53925         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53926         input.
53927         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53928         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53929         unistr/u8-uctomb.
53930
53931 2007-03-28  Bruno Haible  <bruno@clisp.org>
53932
53933         * modules/unistr/u8-mbtoucr: New file.
53934         * lib/unistr/u8-mbtoucr.c: New file.
53935         * modules/unistr/u16-mbtoucr: New file.
53936         * lib/unistr/u16-mbtoucr.c: New file.
53937         * modules/unistr/u16-mbtoucr: New file.
53938         * lib/unistr/u16-mbtoucr.c: New file.
53939         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53940
53941 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53942             Bruno Haible  <bruno@clisp.org>
53943
53944         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53945         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53946         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53947
53948         * m4/stdio_h.m4: Add stubs for vasprintf too.
53949
53950         * modules/stdio: Support vasprintf in sed command.
53951
53952         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53953         vasprintf.h.  Add stdio module indicator.
53954
53955         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53956         vasprintf.h.
53957
53958         * lib/vasprintf.h: File removed.
53959
53960         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53961         * lib/vasprintf.c: Ditto.
53962         * lib/xvasprintf.c: Ditto.
53963         * tests/test-vasprintf-posix.c: Ditto.
53964         * tests/test-vasprintf.c: Ditto.
53965
53966 2007-03-27  Bruno Haible  <bruno@clisp.org>
53967
53968         Make vasnprintf multithread-safe.
53969         * lib/vasnprintf.c (decimal_point_char): New function.
53970         (VASNPRINTF): Use it.
53971         Suggested by Simon Josefsson.
53972
53973 2007-03-27  Eric Blake  <ebb9@byu.net>
53974
53975         Support sub-second birthtime on cygwin.
53976         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53977         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53978         (get_stat_birthtime): Also work with st_birthtim.
53979
53980 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53981
53982         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53983         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53984         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53985         (get_stat_birthtime_ns): Simplify compile-time tests.
53986         (get_stat_birthtime): Change the API to look like
53987         get_stat_mtime etc., except return a negative tv_nsec on error.
53988         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53989         Don't check for "spare" fields.
53990         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53991         or for struct stat.st_birthtime, as these tests aren't used.
53992         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53993
53994 2007-03-27  Bruno Haible  <bruno@clisp.org>
53995
53996         * lib/stat-time.h: Include <sys/stat.h>.
53997
53998 2007-03-27  James Youngman  <jay@gnu.org>
53999
54000         * lib/stat-time.h (get_stat_birthtime): New function for
54001           retrieving st_birthtime as provided by UFS2 (hence *BSD).
54002         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
54003           and its variants.
54004         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
54005         * modules/stat-time-test: New file.
54006         * tests/test-stat-time.c: New test, devised by Bruno Haible.
54007
54008 2007-03-26  Bruno Haible  <bruno@clisp.org>
54009
54010         Better support of signalling NaNs.
54011         * lib/atanl.c: Include isnanl.h.
54012         (atanl): Perform test for NaN at the beginning of the function and
54013         through a call to isnanl.
54014         * lib/cosl.c: Include isnanl.h.
54015         (cosl): Perform test for NaN at the beginning of the function and
54016         through a call to isnanl.
54017         * lib/ldexpl.c: Include isnanl.h.
54018         (ldexpl): Perform test for NaN through a call to isnanl.
54019         * lib/logl.c: Include isnanl.h.
54020         (logl): Perform test for NaN at the beginning of the function and
54021         through a call to isnanl.
54022         * lib/sinl.c: Include isnanl.h.
54023         (sinl): Perform test for NaN at the beginning of the function and
54024         through a call to isnanl.
54025         * lib/sqrtl.c: Include isnanl.h.
54026         (sqrtl): Perform test for NaN at the beginning of the function and
54027         through a call to isnanl.
54028         * lib/tanl.c: Include isnanl.h.
54029         (tanl): Perform test for NaN at the beginning of the function and
54030         through a call to isnanl.
54031         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
54032         * modules/mathl (Depends-on): Add isnanl.
54033
54034 2007-03-26  Eric Blake  <ebb9@byu.net>
54035
54036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
54037         regression in logic sense of previous patch.
54038
54039 2007-03-26  Bruno Haible  <bruno@clisp.org>
54040
54041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
54042         unportable shell command "if ! ...".
54043         Reported by Ralf Wildenhues.
54044
54045 2007-03-25  Bruno Haible  <bruno@clisp.org>
54046
54047         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
54048         <sysexits.h> file, and only add EX_CONFIG.
54049         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
54050         absolute file name and whether it is sufficient. Substitute also
54051         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
54052         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
54053         ABSOLUTE_SYSEXITS_H into sysexits.h.
54054
54055 2007-03-25  Bruno Haible  <bruno@clisp.org>
54056
54057         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
54058         hints is NULL.
54059
54060 2007-03-25  Bruno Haible  <bruno@clisp.org>
54061
54062         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
54063         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
54064
54065 2007-03-25  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/vasnprintf.c: Include langinfo.h.
54068         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
54069         multithread-safe.
54070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
54071         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
54072         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54073         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54074         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54075         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54076         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54077         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
54078         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54079         Reported by Simon Josefsson.
54080
54081 2007-03-25  Bruno Haible  <bruno@clisp.org>
54082
54083         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
54084         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
54085         * modules/vasnprintf (Depends-on): Add stdint.
54086
54087 2007-03-25  Bruno Haible  <bruno@clisp.org>
54088
54089         * modules/fpieee: New file.
54090         * m4/fpieee.m4: New file.
54091         * modules/isnan-nolibm (Depends-on): Add fpieee.
54092         * modules/isnanl-nolibm (Depends-on): Add fpieee.
54093         * modules/isnanl (Depends-on): Add fpieee.
54094
54095 2007-03-25  Bruno Haible  <bruno@clisp.org>
54096
54097         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
54098
54099 2007-03-25  Bruno Haible  <bruno@clisp.org>
54100
54101         Avoid test failures on IRIX 6.5.
54102         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
54103         (main): Use it.
54104         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
54105         macros.
54106         (main): Use them.
54107
54108 2007-03-25  Bruno Haible  <bruno@clisp.org>
54109
54110         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
54111         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
54112         exists but doesn't work.
54113         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
54114         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
54115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
54116         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
54117         math.h.
54118
54119 2007-03-25  Bruno Haible  <bruno@clisp.org>
54120
54121         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
54122         returns inf. Needed on IRIX 6.5.
54123
54124 2007-03-25  Bruno Haible  <bruno@clisp.org>
54125
54126         * tests/test-frexpl.c: Include isnanl-nolibm.h.
54127         (main): Use isnanl instead of x != x idiom.
54128         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
54129
54130         * tests/test-frexp.c: Include isnan.h.
54131         (main): Use isnan instead of x != x idiom.
54132         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
54133
54134 2007-03-25  Bruno Haible  <bruno@clisp.org>
54135
54136         * tests/test-frexp.c (NaN): New function/macro.
54137         (main): Use it instead of 0.0 / 0.0.
54138         * tests/test-isnan.c (NaN): New function/macro.
54139         (main): Use it instead of 0.0 / 0.0.
54140         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
54141         (test_function): Use it instead of 0.0 / 0.0.
54142         * tests/test-vasprintf-posix.c (NaN): New function/macro.
54143         (test_function): Use it instead of 0.0 / 0.0.
54144         * tests/test-snprintf-posix.h (NaN): New function/macro.
54145         (test_function): Use it instead of 0.0 / 0.0.
54146         * tests/test-sprintf-posix.h (NaN): New function/macro.
54147         (test_function): Use it instead of 0.0 / 0.0.
54148         * tests/test-fprintf-posix.h (NaN): New function/macro.
54149         (test_function): Use it instead of 0.0 / 0.0.
54150         * tests/test-printf-posix.h (NaN): New function/macro.
54151         (test_function): Use it instead of 0.0 / 0.0.
54152
54153         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
54154
54155 2007-03-25  Bruno Haible  <bruno@clisp.org>
54156
54157         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
54158
54159 2007-03-25  Bruno Haible  <bruno@clisp.org>
54160
54161         * lib/regexec.c (merge_state_with_log): Make static.
54162
54163 2007-03-25  Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/trigl.c (kernel_rem_pio2): Make static.
54166
54167 2007-03-25  Bruno Haible  <bruno@clisp.org>
54168
54169         * lib/sincosl.c (sincosl_table): Make static.
54170
54171 2007-03-25  Bruno Haible  <bruno@clisp.org>
54172
54173         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
54174         if the compiler does not support C99.
54175
54176 2007-03-25  Bruno Haible  <bruno@clisp.org>
54177
54178         * modules/time (Makefile.am): Ensure all rule action lines start with a
54179         tab.
54180
54181 2007-03-24  Bruno Haible  <bruno@clisp.org>
54182
54183         * modules/tsearch-tests: New file.
54184         * tests/test-tsearch.sh: New file.
54185         * tests/test-tsearch.c: New file, mostly copied from glibc.
54186
54187         * modules/search-tests: New file.
54188         * tests/test-search.c: New file.
54189
54190         * modules/search: New file.
54191         * lib/search_.h: New file, incorporating lib/tsearch.h.
54192         * m4/search_h.m4: New file.
54193         * lib/tsearch.h: Remove file.
54194         * lib/tsearch.c: Include search.h instead of tsearch.h.
54195         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
54196         HAVE_TSEARCH.
54197         * modules/tsearch (Files): Remove lib/tsearch.h.
54198         (Depends-on): Add search.
54199         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
54200         (Include): Change tsearch.h into search.h.
54201
54202 2007-03-24  Bruno Haible  <bruno@clisp.org>
54203
54204         * modules/fpucw: New file.
54205         * lib/fpucw.h: New file.
54206         * lib/frexp.c: Include fpucw.h.
54207         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54208         (FUNC): Use them.
54209         * lib/printf-frexp.c: Include fpucw.h.
54210         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54211         (FUNC): Use them.
54212         * lib/vasnprintf.c: Include fpucw.h.
54213         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
54214         'long double' calculations.
54215         * tests/test-frexpl.c: Include fpucw.h.
54216         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54217         * tests/test-printf-frexpl.c: Include fpucw.h.
54218         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54219         * modules/frexpl (Depends-on): Add fpucw.
54220         * modules/printf-frexpl (Depends-on): Likewise.
54221         * modules/fprintf-posix (Depends-on): Likewise.
54222         * modules/snprintf-posix (Depends-on): Likewise.
54223         * modules/sprintf-posix (Depends-on): Likewise.
54224         * modules/vasnprintf-posix (Depends-on): Likewise.
54225         * modules/vasprintf-posix (Depends-on): Likewise.
54226         * modules/vfprintf-posix (Depends-on): Likewise.
54227         * modules/vsnprintf-posix (Depends-on): Likewise.
54228         * modules/vsprintf-posix (Depends-on): Likewise.
54229         * modules/frexpl-tests (Depends-on): Likewise.
54230         * modules/printf-frexpl-tests (Depends-on): Likewise.
54231
54232 2007-03-24  Bruno Haible  <bruno@clisp.org>
54233
54234         * lib/float+.h: New file.
54235         * lib/isnan.c: Include float+.h.
54236         (SIZE): New macro.
54237         (FUNC): Compare only SIZE bytes of the value.
54238         * lib/vasnprintf.c: Include float+.h.
54239         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
54240         SIZEOF_LDBL or SIZEOF_DBL bytes.
54241         * modules/isnan-nolibm (Files): Add lib/float+.h.
54242         * modules/isnanl-nolibm (Files): Add lib/float+.h.
54243         * modules/isnanl (Files): Add lib/float+.h.
54244         * modules/vasnprintf (Files): Add lib/float+.h.
54245
54246 2007-03-24  Bruno Haible  <bruno@clisp.org>
54247
54248         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
54249         include isnanl-nolibm.h.
54250
54251 2007-03-24  Bruno Haible  <bruno@clisp.org>
54252
54253         * tests/test-read-file.c (main): Don't produce spurious output for
54254         expected situations. Make the test fail if it encountered unexpected
54255         results.
54256
54257 2007-03-24  Bruno Haible  <bruno@clisp.org>
54258
54259         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
54260         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
54261
54262 2007-03-24  Bruno Haible  <bruno@clisp.org>
54263
54264         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
54265
54266 2007-03-24  Bruno Haible  <bruno@clisp.org>
54267
54268         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
54269         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
54270
54271         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
54272         * modules/utf8-ucs4: Turn into a symbolic link to module
54273         unistr/u8-mbtouc.
54274
54275         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
54276         utf8-ucs4-unsafe.
54277         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
54278         unistr/u8-mbtouc-unsafe.
54279
54280         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
54281         * modules/utf16-ucs4: Turn into a symbolic link to module
54282         unistr/u16-mbtouc.
54283
54284         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
54285         utf16-ucs4-unsafe.
54286         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
54287         unistr/u16-mbtouc-unsafe.
54288
54289         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
54290         * modules/ucs4-utf8: Turn into a symbolic link to module
54291         unistr/u8-ubtomb.
54292
54293         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
54294         * modules/ucs4-utf16: Turn into a symbolic link to module
54295         unistr/u16-ubtomb.
54296
54297 2007-03-24  Bruno Haible  <bruno@clisp.org>
54298
54299         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
54300         Enable the function only if HAVE_INLINE.
54301         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
54302         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54303         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
54304         Enable the function only if HAVE_INLINE.
54305         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
54306         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54307         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
54308         Enable the function only if HAVE_INLINE.
54309         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
54310         Enable the function only if HAVE_INLINE.
54311         * modules/utf8-ucs4: Update.
54312         * modules/utf8-ucs4-unsafe: Update.
54313         * modules/utf16-ucs4: Update.
54314         * modules/utf16-ucs4-unsafe: Update.
54315         * modules/ucs4-utf8: Update.
54316         * modules/ucs4-utf16: Update.
54317
54318 2007-03-24  Bruno Haible  <bruno@clisp.org>
54319
54320         * lib/utf8-ucs4.h: Remove file.
54321         * lib/utf8-ucs4-unsafe.h: Remove file.
54322         * lib/utf16-ucs4.h: Remove file.
54323         * lib/utf16-ucs4-unsafe.h: Remove file.
54324         * lib/ucs4-utf8.h: Remove file.
54325         * lib/ucs4-utf16.h: Remove file.
54326         * lib/unistr.h: Include their previous contents.
54327         * m4/utf-ucs4.m4: Remove file.
54328         * m4/ucs4-utf.m4: Remove file.
54329         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
54330         (Depends-on): Add unistr/base.
54331         (configure.ac): Remove gl_UTF_UCS4.
54332         (Makefile.am): Update.
54333         (Include): Change to unistr.h.
54334         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
54335         (Depends-on): Add unistr/base.
54336         (configure.ac): Remove gl_UTF_UCS4.
54337         (Makefile.am): Update.
54338         (Include): Change to unistr.h.
54339         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
54340         (Depends-on): Add unistr/base.
54341         (configure.ac): Remove gl_UTF_UCS4.
54342         (Makefile.am): Update.
54343         (Include): Change to unistr.h.
54344         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
54345         (Depends-on): Add unistr/base.
54346         (configure.ac): Remove gl_UTF_UCS4.
54347         (Makefile.am): Update.
54348         (Include): Change to unistr.h.
54349         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
54350         (Depends-on): Add unistr/base.
54351         (configure.ac): Remove gl_UCS4_UTF.
54352         (Makefile.am): Update.
54353         (Include): Change to unistr.h.
54354         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
54355         (Depends-on): Add unistr/base.
54356         (configure.ac): Remove gl_UCS4_UTF.
54357         (Makefile.am): Update.
54358         (Include): Change to unistr.h.
54359         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
54360         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
54361         utf8-ucs4-unsafe.h.
54362         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
54363         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
54364         utf16-ucs4-unsafe.h.
54365         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
54366         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
54367         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
54368         * lib/unistr/u8-strchr.c: Likewise.
54369         * lib/unistr/u8-strrchr.c: Likewise.
54370         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
54371         * lib/unistr/u16-strchr.c: Likewise.
54372         * lib/unistr/u16-strrchr.c: Likewise.
54373         * lib/striconveh.c: Update.
54374         * lib/linebreak.c: Update.
54375
54376 2007-03-24  Bruno Haible  <bruno@clisp.org>
54377
54378         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
54379         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
54380
54381 2007-03-22  Bruno Haible  <bruno@clisp.org>
54382
54383         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
54384
54385 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54386
54387         * MODULES.html.sh (File system functions): New module write-any-file.
54388         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
54389         * m4/write-any-file.m4: New files.
54390
54391 2007-03-23  Eric Blake  <ebb9@byu.net>
54392
54393         * gnulib-tool: Rearrange space-tab sequences, since some editors
54394         like to eat them.
54395
54396 2007-03-23  Eric Blake  <ebb9@byu.net>
54397
54398         * lib/version-etc.c (version_etc_va): Update license wording to
54399         be more concise.  Recommended by Richard Stallman.
54400
54401 2007-03-22  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/poll.c (MSG_PEEK): New fallback definition.
54404
54405 2007-03-22  Bruno Haible  <bruno@clisp.org>
54406
54407         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54408         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54409         (main): Update.
54410         Fixes a compilation error on BeOS.
54411
54412 2007-03-22  Bruno Haible  <bruno@clisp.org>
54413
54414         * modules/frexpl-tests: New file.
54415         * tests/test-frexpl.c: New file.
54416
54417         * modules/frexpl: New file.
54418         * m4/frexpl.m4: New file.
54419         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54420         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54422         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54423         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54424         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54425
54426 2007-03-22  Bruno Haible  <bruno@clisp.org>
54427
54428         * lib/frexpl.c: Share code with lib/frexp.c.
54429         * modules/mathl (Files): Add lib/frexp.c.
54430         (Depends-on): Add isnanl-nolibm.
54431
54432 2007-03-22  Bruno Haible  <bruno@clisp.org>
54433
54434         * modules/printf-frexp (Files): Add m4/frexp.m4.
54435         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54436         only if the found frexp function actually works.
54437
54438 2007-03-22  Bruno Haible  <bruno@clisp.org>
54439
54440         * lib/frexp.c: Remove older implementation that uses divisions.
54441
54442 2007-03-21  Bruno Haible  <bruno@clisp.org>
54443
54444         * modules/frexp-tests: New file.
54445         * tests/test-frexp.c: New file.
54446
54447         * modules/frexp: New file.
54448         * lib/frexp.c: New file.
54449         * m4/frexp.m4: New file.
54450         * lib/math_.h (frexp): New declaration.
54451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54452         REPLACE_FREXP.
54453         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54454
54455 2007-03-21  Bruno Haible  <bruno@clisp.org>
54456
54457         * modules/isnanl-tests: New file.
54458         * tests/test-isnanl.c: New file.
54459
54460         * modules/isnanl: New file.
54461         * lib/isnanl.h: New file.
54462         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54463         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54464         gl_FUNC_ISNANL_WORKS.
54465         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54466         New macros.
54467
54468 2007-03-21  Bruno Haible  <bruno@clisp.org>
54469
54470         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54471         lib/isnanl.h.
54472         (Include): Update.
54473         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54474         * lib/vasnprintf.c: Update.
54475         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54476         tests/test-isnanl.h, remove tests/test-isnanl.c.
54477         (Makefile.am): Update.
54478         * tests/test-isnanl-nolibm.c: New file.
54479         * tests/test-isnanl.h: New file.
54480         * tests/test-isnanl.c: Remove file.
54481
54482 2007-03-21  Jim Meyering  <jim@meyering.net>
54483
54484         When trying to open ".", treat ESTALE like EACCES.
54485         * lib/savewd.c (savewd_save): Resort to forking not just upon
54486         failure with EACCES, but also when errno is ESTALE.
54487
54488 2007-03-20  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54491         Needed on AIX 5.1. Reported by Matthew Woehlke.
54492
54493 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54494
54495         Suggestions by Bruno Haible:
54496         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54497         our own.
54498         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54499         * modules/acl (Depends-on): Add gettext.
54500
54501 2007-03-19  Bruno Haible  <bruno@clisp.org>
54502
54503         * modules/iconvme: Remove file.
54504         * lib/iconvme.h: Remove file.
54505         * lib/iconvme.c: Remove file.
54506         * m4/iconvme.m4: Remove file.
54507
54508 2007-03-19  Bruno Haible  <bruno@clisp.org>
54509
54510         * doc/relocatable-maint.texi: Break long shell script line.
54511         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54512
54513 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54514
54515         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54516         handle file_has_acl.
54517         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54518         * lib/acl.c: Move header inclusions and related macro defns into
54519         lib/acl-internal.h.
54520         (S_ISLNK): Remove defn, since that's now done for us.
54521         (file_has_acl): Move to lib/file-has-acl.c.
54522         Call acl_trivial if available.  This is the crucial part of the fix.
54523         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54524         shared within the library.  Rewrite a bit, partly to make it compatible
54525         with the GNU coding style.
54526         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54527         Remove unnecessary double-quotes.
54528         Don't test for acl_to_text; the build will catch that.
54529         Replace acl_entries if it doesn't exist and it is needed.
54530         Check for -lsec and acl_trivial (as used on Solaris 10).
54531         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54532         lib/file-has-acl.c.
54533         (Depends-on): Add sys_stat, for S_ISLNK.
54534
54535 2007-03-19  Ben Pfaff  <blp@gnu.org>
54536
54537         * doc/gnulib.texi: Fix typos.
54538         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54539
54540 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54541
54542         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54543         If size is zero here, buf must be zero.
54544
54545 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54546
54547         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54548         <bruno@clisp.org>.
54549
54550 2007-03-18  Bruno Haible  <bruno@clisp.org>
54551
54552         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54553         Suggested by Eric Blake.
54554
54555 2007-03-18  Ben Pfaff  <blp@gnu.org>
54556
54557         * doc/relocatable.texi: Recommend using as prefix a directory
54558         that does not exist and will never be created.  Based on
54559         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54560         and others.
54561
54562 2007-03-17  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/fchownat.c: Include lchown.h.
54565
54566 2007-03-17  Bruno Haible  <bruno@clisp.org>
54567
54568         Fix endless loop when the given allocated size was > INT_MAX.
54569         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54570         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54571         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54572         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54573         * lib/sprintf.c (sprintf): Likewise.
54574
54575 2007-03-17  Bruno Haible  <bruno@clisp.org>
54576
54577         * tests/test-argp-2.sh (func_compare): Output a context diff.
54578
54579 2007-03-17  Bruno Haible  <bruno@clisp.org>
54580
54581         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54582         locale's decimal-point character.
54583
54584 2007-03-17  Bruno Haible  <bruno@clisp.org>
54585
54586         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54587         before comparing it. Needed because on some platforms (e.g. x86) a
54588         'long double' occupies less bytes than sizeof (long double).
54589
54590 2007-03-17  Bruno Haible  <bruno@clisp.org>
54591
54592         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54593         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54594         * tests/test-getaddrinfo.c (simple): Likewise.
54595         * tests/test-read-file.c (main): Likewise.
54596
54597 2007-03-17  Bruno Haible  <bruno@clisp.org>
54598
54599         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54600
54601 2007-03-17  Bruno Haible  <bruno@clisp.org>
54602
54603         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54604         unused variable.
54605
54606 2007-03-17  Bruno Haible  <bruno@clisp.org>
54607
54608         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54609         * tests/test-c-strncasecmp.c: Likewise.
54610
54611 2007-03-17  Bruno Haible  <bruno@clisp.org>
54612
54613         * modules/stdlib (Depends-on): Add unistd.
54614         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54615         Needed for MacOS X 10.3.
54616
54617 2007-03-17  Bruno Haible  <bruno@clisp.org>
54618
54619         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54620
54621 2007-03-17  Bruno Haible  <bruno@clisp.org>
54622
54623         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54624
54625 2007-03-17  Bruno Haible  <bruno@clisp.org>
54626
54627         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54628         to reflect files copied from gnulib (with or without modifications).
54629         Suggested by Jim Meyering.
54630
54631 2007-03-17  Eric Blake  <ebb9@byu.net>
54632
54633         * NEWS: Document stdlib change from 2007-02-18.
54634
54635 2007-03-17  Jim Meyering  <jim@meyering.net>
54636
54637         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54638         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54639         someone uses a name containing shell meta-characters.
54640         Reported by Alfred M. Szmidt.
54641
54642         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54643
54644 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54645
54646         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54647         and copy gettext configuration files only if configure.ac contains
54648         a use of AM_GNU_GETTEXT_VERSION.
54649
54650 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54651
54652         * build-aux/bootstrap (gnulib_name): New variable.
54653         (gnulib_tool_options): Use it.
54654
54655 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54656
54657         * tests/test-des.c: Use new namespace.
54658
54659 2007-03-15  Bruno Haible  <bruno@clisp.org>
54660
54661         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54662         Reported by James Youngman <jay@gnu.org>.
54663
54664 2007-03-15  Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54667         declared prototype. Needed with cc on OSF/1 5.1.
54668
54669 2007-03-15  Bruno Haible  <bruno@clisp.org>
54670
54671         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54672         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54673         (struct gl_list_implementation): Add dispose_fn argument to the
54674         'create_empty', 'create' methods.
54675         (struct gl_list_impl_base): Add field 'dispose_fn'.
54676         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54677         argument.
54678         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54679         dispose_fn argument.
54680         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54681         dispose_fn on the dropped values.
54682         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54683         dispose_fn argument.
54684         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54685         dropped values.
54686         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54687         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54688         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54689         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54690         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54691         argument.
54692         (gl_tree_list_free): Call dispose_fn on the dropped values.
54693         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54694         the dropped values.
54695         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54696         Add dispose_fn argument.
54697         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54698         Call dispose_fn on the dropped values.
54699         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54700         Add dispose_fn argument.
54701         (gl_sublist_create): Initialize the 'dispose_fn' field.
54702         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54703         * tests/test-array_list.c (main): Update.
54704         * tests/test-carray_list.c (main): Update.
54705         * tests/test-avltree_list.c (main): Update.
54706         * tests/test-rbtree_list.c (main): Update.
54707         * tests/test-avltreehash_list.c (main): Update.
54708         * tests/test-rbtreehash_list.c (main): Update.
54709         * tests/test-linked_list.c (main): Update.
54710         * tests/test-linkedhash_list.c (main): Update.
54711         * tests/test-array_oset.c (main): Update.
54712
54713 2007-03-15  Bruno Haible  <bruno@clisp.org>
54714
54715         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54716         (gl_oset_create_empty): Add dispose_fn argument.
54717         (struct gl_oset_implementation): Add dispose_fn argument to
54718         'create_empty' method.
54719         (struct gl_oset_impl_base): Add dispose_fn field.
54720         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54721         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54722         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54723         values.
54724         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54725         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54726         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54727         dropped value.
54728         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54729         dropped value.
54730         * tests/test-array_oset.c (main): Update.
54731         * tests/test-avltree_oset.c (main): Update.
54732         * tests/test-rbtree_oset.c (main): Update.
54733         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54734
54735 2007-03-13  Bruno Haible  <bruno@clisp.org>
54736
54737         * tests/test-stdbool.c (i): Update after last patch.
54738
54739 2007-03-12  Bruno Haible  <bruno@clisp.org>
54740
54741         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54742         the iswprint macro. Needed on Solaris 2.5.1.
54743
54744 2007-03-12  Bruno Haible  <bruno@clisp.org>
54745
54746         * tests/test-printf-frexp.c (main): Declare x as volatile.
54747
54748 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54749
54750         * doc/gnulib.texi (Build robot for gnulib): New section.
54751
54752 2007-03-12  Jim Meyering  <jim@meyering.net>
54753
54754         * build-aux/bootstrap: New file.
54755         * build-aux/bootstrap.conf: New file, from coreutils.
54756
54757 2007-03-11  Bruno Haible  <bruno@clisp.org>
54758
54759         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54760
54761 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54762
54763         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54764         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54765         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54766
54767 2007-03-11  Bruno Haible  <bruno@clisp.org>
54768
54769         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54770         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54771
54772 2007-03-11  Bruno Haible  <bruno@clisp.org>
54773
54774         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54775         formula. Needed for SunPRO C 5.0.
54776
54777 2007-03-11  Bruno Haible  <bruno@clisp.org>
54778
54779         * modules/long-options (Depends-on): Add getopt.
54780
54781 2007-03-11  Bruno Haible  <bruno@clisp.org>
54782
54783         * modules/modechange (Depends-on): Add stdbool.
54784
54785 2007-03-11  Bruno Haible  <bruno@clisp.org>
54786
54787         * modules/i-ring (Depends-on): Add stdbool.
54788
54789 2007-03-11  Bruno Haible  <bruno@clisp.org>
54790
54791         * modules/gc-des (Depends-on): Add stdbool.
54792
54793 2007-03-11  Bruno Haible  <bruno@clisp.org>
54794
54795         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54796
54797 2007-03-11  Bruno Haible  <bruno@clisp.org>
54798
54799         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54800
54801 2007-03-11  Bruno Haible  <bruno@clisp.org>
54802
54803         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54804
54805 2007-03-11  Bruno Haible  <bruno@clisp.org>
54806
54807         * lib/vasnprintf.c (sprintf): Undefine.
54808
54809 2007-03-11  Bruno Haible  <bruno@clisp.org>
54810
54811         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54812         initializers in SunPRO C and Compaq C compilers.
54813
54814 2007-03-11  Bruno Haible  <bruno@clisp.org>
54815
54816         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54817         decrementing code ANSI C compliant.
54818
54819 2007-03-11  Bruno Haible  <bruno@clisp.org>
54820
54821         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54822         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54823
54824 2007-03-11  Bruno Haible  <bruno@clisp.org>
54825
54826         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54827         <stdbool.h> substitute doesn't pass.
54828
54829 2007-03-11  Bruno Haible  <bruno@clisp.org>
54830
54831         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54832
54833 2007-03-11  Bruno Haible  <bruno@clisp.org>
54834
54835         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54836         script, for submission to autobuild.josefsson.org.
54837
54838 2007-03-10  Bruno Haible  <bruno@clisp.org>
54839
54840         * modules/canonicalize-lgpl-tests: New file.
54841         * tests/test-canonicalize-lgpl.sh: New file.
54842         * tests/test-canonicalize-lgpl.c: New file.
54843
54844         * modules/c-strcase-tests: New file.
54845         * tests/test-c-strcase.sh: New file.
54846         * tests/test-c-strcasecmp.c: New file.
54847         * tests/test-c-strncasecmp.c: New file.
54848
54849         * modules/atexit-tests: New file.
54850         * tests/test-atexit.sh: New file.
54851         * tests/test-atexit.c: New file.
54852
54853 2007-03-10  Bruno Haible  <bruno@clisp.org>
54854
54855         * tests/test-binary-io.sh: Use temporary filenames that are not so
54856         likely to clash with those of other tests (in a parallel make).
54857         * tests/test-binary-io.c: Likewise.
54858
54859 2007-03-10  Bruno Haible  <bruno@clisp.org>
54860
54861         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54862         fallback; use #error instead.
54863         Suggested by Simon Josefsson.
54864
54865 2007-03-10  Bruno Haible  <bruno@clisp.org>
54866
54867         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54868         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54869         first and the last.
54870
54871 2007-03-10  Bruno Haible  <bruno@clisp.org>
54872
54873         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54874
54875 2007-03-10  Bruno Haible  <bruno@clisp.org>
54876
54877         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54878         "make distcheck".
54879         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54880         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54881         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54882
54883 2007-03-10  Bruno Haible  <bruno@clisp.org>
54884
54885         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54886         variable.
54887         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54888         variable.
54889
54890 2007-03-09  Eric Blake  <ebb9@byu.net>
54891         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54892
54893         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54894         types are not being provided by gnulib.
54895         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54896         types are supported.
54897
54898 2007-03-10  Bruno Haible  <bruno@clisp.org>
54899
54900         * lib/stdio_.h (__attribute__): New macro.
54901         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54902         vsprintf): Specify __attribute__ __format__ for GCC.
54903         Suggested by Eric Blake.
54904
54905 2007-03-09  Bruno Haible  <bruno@clisp.org>
54906
54907         * modules/printf-posix-tests: New file.
54908         * tests/test-printf-posix.sh: New file.
54909         * tests/test-printf-posix.c: New file.
54910
54911         * modules/printf-posix: New file.
54912         * lib/printf.c: New file.
54913         * m4/printf-posix-rpl.m4: New file.
54914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54915         REPLACE_PRINTF.
54916         * lib/stdio_.h (printf): New declaration.
54917         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54918         ____strfmon____): New macros.
54919         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54920         REPLACE_PRINTF.
54921
54922 2007-03-09  Bruno Haible  <bruno@clisp.org>
54923
54924         * tests/test-vasnprintf-posix2.sh: New file.
54925         * tests/test-vasnprintf-posix2.c: New file.
54926         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54927         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54928         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54929
54930         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54931         a locale dependent decimal point, rather than always '.'.
54932
54933 2007-03-09  Eric Blake  <ebb9@byu.net>
54934
54935         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54936         spite of platforms like Tandem/NSK that define it to -1.
54937
54938 2007-03-08  Bruno Haible  <bruno@clisp.org>
54939
54940         * modules/vprintf-posix-tests: New file.
54941         * tests/test-vprintf-posix.sh: New file.
54942         * tests/test-vprintf-posix.c: New file.
54943         * tests/test-printf-posix.h: New file.
54944
54945         * modules/vprintf-posix: New file.
54946         * lib/vprintf.c: New file.
54947         * m4/vprintf-posix.m4: New file.
54948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54949         REPLACE_VPRINTF.
54950         * lib/stdio_.h (vprintf): New declaration.
54951         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54952         REPLACE_VPRINTF.
54953
54954 2007-03-08  Bruno Haible  <bruno@clisp.org>
54955
54956         * modules/fprintf-posix-tests: New file.
54957         * tests/test-fprintf-posix.sh: New file.
54958         * tests/test-fprintf-posix.c: New file.
54959
54960         * modules/fprintf-posix: New file.
54961         * lib/fprintf.c: New file.
54962         * m4/fprintf-posix.m4: New file.
54963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54964         REPLACE_FPRINTF.
54965         * lib/stdio_.h (fprintf): New declaration.
54966         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54967         REPLACE_FPRINTF.
54968
54969 2007-03-08  Bruno Haible  <bruno@clisp.org>
54970
54971         * modules/vfprintf-posix-tests: New file.
54972         * tests/test-vfprintf-posix.sh: New file.
54973         * tests/test-vfprintf-posix.c: New file.
54974         * tests/test-fprintf-posix.h: New file.
54975         * tests/test-fprintf-posix.out: New file.
54976
54977         * modules/vfprintf-posix: New file.
54978         * lib/vfprintf.c: New file.
54979         * m4/vfprintf-posix.m4: New file.
54980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54981         REPLACE_VFPRINTF.
54982         * lib/stdio_.h (vfprintf): New declaration.
54983         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54984         REPLACE_VFPRINTF.
54985
54986 2007-03-08  Bruno Haible  <bruno@clisp.org>
54987
54988         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54989
54990 2007-03-08  Bruno Haible  <bruno@clisp.org>
54991
54992         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54993         instead of 'expr' invocations.
54994         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54995         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54996         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54998         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54999         Suggested by Paul Eggert.
55000
55001 2007-03-08  Bruno Haible  <bruno@clisp.org>
55002
55003         * modules/fseterr-tests: New file.
55004         * tests/test-fseterr.c: New file.
55005
55006         * modules/fseterr: New file.
55007         * lib/fseterr.h: New file.
55008         * lib/fseterr.c: New file.
55009
55010 2007-03-08  Bruno Haible  <bruno@clisp.org>
55011
55012         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
55013         * lib/getopt_.h: Likewise.
55014         * lib/mbswidth.h: Likewise.
55015         * lib/setenv.h: Likewise.
55016         * lib/vasnprintf.h: Likewise.
55017         * lib/vasprintf.h: Likewise.
55018         * lib/verror.h: Likewise.
55019         * lib/xsetenv.h: Likewise.
55020         * lib/xvasprintf.h: Likewise.
55021
55022 2007-03-08  Jim Meyering  <jim@meyering.net>
55023
55024         * users.txt: Add parted.
55025
55026         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
55027
55028 2007-03-07  Bruno Haible  <bruno@clisp.org>
55029
55030         * m4/printf.m4: Make the shell script snippets copy&pastable.
55031
55032 2007-03-02  Bruno Haible  <bruno@clisp.org>
55033
55034         * lib/netinet_in_.h: New file.
55035         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
55036         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
55037         * modules/netinet_in (Files): Add lib/netinet_in_.h.
55038         (Depends-on): Add absolute-header.
55039         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
55040         into netinet/in.h.
55041
55042 2007-03-03  Bruno Haible  <bruno@clisp.org>
55043
55044         * lib/sys_select_.h: New file.
55045         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
55046         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
55047         * modules/sys_select (Files): Add lib/sys_select_.h.
55048         (Depends-on): Add absolute-header.
55049         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
55050         into sys/select.h.
55051
55052 2007-03-02  Bruno Haible  <bruno@clisp.org>
55053
55054         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
55055         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
55056         values.
55057         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
55058         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
55059         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
55060         * modules/sys_socket (Depends-on): Add absolute-header.
55061         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
55062         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
55063         (Include): Remove requirement of inclusion of <sys/types.h>.
55064
55065 2007-03-02  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/byteswap_.h (bswap_32): Fix formula.
55068
55069 2007-03-06  Bruno Haible  <bruno@clisp.org>
55070
55071         * modules/sprintf-posix-tests: New file.
55072         * tests/test-sprintf-posix.c: New file.
55073
55074         * modules/sprintf-posix: New file.
55075         * lib/sprintf.c: New file.
55076         * m4/sprintf-posix.m4: New file.
55077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
55078         REPLACE_SPRINTF.
55079         * lib/stdio_.h (sprintf): New declaration.
55080         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
55081         REPLACE_SPRINTF.
55082
55083 2007-03-06  Bruno Haible  <bruno@clisp.org>
55084
55085         * modules/vsprintf-posix-tests: New file.
55086         * tests/test-vsprintf-posix.c: New file.
55087         * tests/test-sprintf-posix.h: New file.
55088
55089         * modules/vsprintf-posix: New file.
55090         * lib/vsprintf.c: New file.
55091         * m4/vsprintf-posix.m4: New file.
55092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
55093         REPLACE_VSPRINTF.
55094         * lib/stdio_.h (vsprintf): New declaration.
55095         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
55096         REPLACE_VSPRINTF.
55097
55098 2007-03-06  Bruno Haible  <bruno@clisp.org>
55099
55100         * modules/vsnprintf (Depend-on): Remove minmax.
55101
55102 2007-03-06  Bruno Haible  <bruno@clisp.org>
55103
55104         * modules/snprintf-posix-tests: New file.
55105         * tests/test-snprintf-posix.c: New file.
55106
55107         * modules/snprintf-posix: New file.
55108         * m4/snprintf-posix.m4: New file.
55109         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
55110         gl_FUNC_SNPRINTF.
55111         (gl_FUNC_SNPRINTF): Invoke it.
55112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
55113         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
55114         is set.
55115         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
55116
55117 2007-03-06  Bruno Haible  <bruno@clisp.org>
55118
55119         * modules/vsnprintf-posix-tests: New file.
55120         * tests/test-vsnprintf-posix.c: New file.
55121         * tests/test-snprintf-posix.h: New file.
55122
55123         * modules/vsnprintf-posix: New file.
55124         * m4/vsnprintf-posix.m4: New file.
55125         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
55126         gl_FUNC_VSNPRINTF.
55127         (gl_FUNC_VSNPRINTF): Invoke it.
55128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
55129         * lib/stdio_.h (vsnprintf): Define as a replacement if
55130         REPLACE_VSNPRINTF is set.
55131         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
55132
55133 2007-03-06  Bruno Haible  <bruno@clisp.org>
55134
55135         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
55136         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
55137
55138 2007-03-06  Bruno Haible  <bruno@clisp.org>
55139
55140         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
55141         (asinl): Declare also if HAVE_DECL_ASINL is set.
55142         (atanl): Declare also if HAVE_DECL_ATANL is set.
55143         (ceill): Declare also if HAVE_DECL_CEILL is set.
55144         (cosl): Declare also if HAVE_DECL_COSL is set.
55145         (expl): Declare also if HAVE_DECL_EXPL is set.
55146         (floorl): Declare also if HAVE_DECL_FLOORL is set.
55147         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
55148         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
55149         (logl): Declare also if HAVE_DECL_LOGL is set.
55150         (sinl): Declare also if HAVE_DECL_SINL is set.
55151         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
55152         (tanl): Declare also if HAVE_DECL_TANL is set.
55153         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
55154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
55155         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
55156         declaration of frexpl, ldexpl.
55157         * modules/printf-frexpl (Depends-on): Add math.
55158         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
55159
55160 2007-03-05  Bruno Haible  <bruno@clisp.org>
55161
55162         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
55163         frexpl and ldexpl are declared.
55164         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
55165
55166 2007-03-05  Bruno Haible  <bruno@clisp.org>
55167
55168         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
55169         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
55170
55171 2007-03-05  Bruno Haible  <bruno@clisp.org>
55172
55173         * lib/stdio_.h: Include <stddef.h>.
55174
55175 2007-03-05  Bruno Haible  <bruno@clisp.org>
55176
55177         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
55178
55179 2007-03-05  Bruno Haible  <bruno@clisp.org>
55180
55181         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
55182         NetBSD 4, from Ralf Wildenhues.
55183
55184 2007-03-04  Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/vasprintf.h: Update #if logic for the case when the functions
55187         exist but are overridden.
55188
55189 2007-03-04  Bruno Haible  <bruno@clisp.org>
55190
55191         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
55192         implementations: glibc-2.4 and MacOS X 10.3.
55193         * tests/test-vasnprintf-posix.c (test_function): Test also the case
55194         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
55195         * tests/test-vasprintf-posix.c (test_function): Likewise.
55196
55197 2007-03-04  Bruno Haible  <bruno@clisp.org>
55198
55199         * modules/vasprintf-posix-tests: New file.
55200         * tests/test-vasprintf-posix.c: New file.
55201
55202         * modules/vasprintf-posix: New file.
55203         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
55204         defined.
55205         * m4/vasprintf-posix.m4: New file.
55206         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
55207         gl_FUNC_VASPRINTF.
55208         (gl_FUNC_VASPRINTF): Invoke it.
55209         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
55210         here.
55211         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
55212
55213 2007-03-04  Bruno Haible  <bruno@clisp.org>
55214
55215         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
55216         REPLACE_GETTIMEOFDAY.
55217         * modules/sys_time (Makefile.am): Likewise.
55218         * m4/sys_time_h.m4: Likewise.
55219         * m4/gettimeofday.m4: Likewise.
55220
55221 2007-03-04  Bruno Haible  <bruno@clisp.org>
55222
55223         * modules/vasnprintf-posix-tests: New file.
55224         * tests/test-vasnprintf-posix.c: New file.
55225
55226         * modules/vasnprintf-posix: New file.
55227         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
55228         printf-frexpl.h.
55229         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
55230         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
55231         REPLACE_VASNPRINTF is defined.
55232         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
55233         gl_FUNC_VASNPRINTF.
55234         (gl_FUNC_VASNPRINTF): Invoke it.
55235         * m4/vasnprintf-posix.m4: New file.
55236         * m4/printf.m4: New file.
55237
55238 2007-03-04  Bruno Haible  <bruno@clisp.org>
55239
55240         Compile progreloc.c only if --enable-relocatable is specified.
55241         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
55242         if --enable-relocatable was specified.
55243         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
55244         lib_SOURCES.
55245
55246 2007-03-04  Jim Meyering  <jim@meyering.net>
55247
55248         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
55249         Use it consistently, rather than enumerating errno constants.
55250
55251 2007-03-04  Bruno Haible  <bruno@clisp.org>
55252
55253         * modules/xvasprintf-tests: New file.
55254         * tests/test-xvasprintf.c: New file.
55255
55256         * modules/vasprintf-tests: New file.
55257         * tests/test-vasprintf.c: New file.
55258
55259         * modules/vasnprintf-tests: New file.
55260         * tests/test-vasnprintf.c: New file.
55261
55262         * modules/vsnprintf-tests: New file.
55263         * tests/test-vsnprintf.c: New file.
55264
55265         * modules/snprintf-tests: New file.
55266         * tests/test-snprintf.c: New file.
55267
55268 2007-03-04  Bruno Haible  <bruno@clisp.org>
55269
55270         Compile relocatable.c only if --enable-relocatable is specified.
55271         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
55272         gl_RELOCATABLE_LIBRARY.
55273         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
55274         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
55275         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
55276         gl_RELOCATABLE_LIBRARY.
55277         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
55278         (Makefile.am): Remove lib_SOURCES.
55279         * modules/relocatable-lib-lgpl (configure.ac): Invoke
55280         gl_RELOCATABLE_LIBRARY.
55281         (Makefile.am): Remove lib_SOURCES.
55282         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
55283         always.
55284         * modules/relocatable-prog-wrapper (configure.ac): Invoke
55285         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
55286
55287 2007-03-04  Bruno Haible  <bruno@clisp.org>
55288
55289         * modules/argmatch-tests: New file.
55290         * tests/test-argmatch.c: New file.
55291
55292         * tests/test-allocsa.c (main): Halve the number of loop runs.
55293
55294         * modules/alloca-opt-tests: New file.
55295         * tests/test-alloca-opt.c: New file.
55296
55297 2007-03-04  Jim Meyering  <jim@meyering.net>
55298
55299         Work around difference between Linux ACLs and Solaris 10 ZFS.
55300         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
55301         for EINVAL.
55302
55303 2007-03-03  Bruno Haible  <bruno@clisp.org>
55304
55305         * modules/relocatable-prog (Depends-on): Add back progreloc's
55306         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
55307
55308 2007-03-03  Bruno Haible  <bruno@clisp.org>
55309
55310         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
55311         * modules/relocatable-lib: New file.
55312
55313 2007-03-03  Bruno Haible  <bruno@clisp.org>
55314
55315         * modules/relocatable-prog: Renamed from modules/relocatable.
55316         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
55317
55318 2007-03-03  Bruno Haible  <bruno@clisp.org>
55319
55320         * modules/relocatable-script (Files): Add doc/relocatable.texi,
55321         m4/relocatable-lib.m4.
55322         (Depends-on): Remove 'relocatable'.
55323         (configure.ac): Add gl_RELOCATABLE_NOP.
55324
55325 2007-03-03  Bruno Haible  <bruno@clisp.org>
55326
55327         * modules/relocatable-prog-wrapper: New file.
55328         * modules/relocatable (Depends-on): Add it. Remove all other
55329         dependencies except progname.
55330         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
55331
55332         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
55333         (gl_FUNC_STRERROR): Nop.
55334         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
55335
55336         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
55337         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
55338
55339         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
55340         (gl_FUNC_READLINK): Update.
55341
55342         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
55343
55344 2007-03-03  Bruno Haible  <bruno@clisp.org>
55345
55346         * lib/xreadlink.c: Include <unistd.h> unconditionally.
55347         * modules/xreadlink (Depends-on): Add unistd.
55348         * modules/xreadlink-with-size (Depends-on): Likewise.
55349
55350 2007-03-03  Bruno Haible  <bruno@clisp.org>
55351
55352         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
55353         extracted from gt_FUNC_SETENV.
55354         (gt_FUNC_SETENV): Remove macro.
55355         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
55356         remove gt_FUNC_SETENV.
55357
55358 2007-03-03  Bruno Haible  <bruno@clisp.org>
55359
55360         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
55361         ENABLE_RELOCATABLE here.
55362         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
55363
55364 2007-03-03  Bruno Haible  <bruno@clisp.org>
55365
55366         * modules/rbtreehash-list-tests (Depends-on): Add progname.
55367         * tests/test-rbtreehash_list.c: Include progname.h.
55368         (main): Call set_program_name.
55369
55370         * modules/rbtree-oset-tests (Depends-on): Add progname.
55371         * tests/test-rbtree_oset.c: Include progname.h.
55372         (main): Call set_program_name.
55373
55374         * modules/rbtree-list-tests (Depends-on): Add progname.
55375         * tests/test-rbtree_list.c: Include progname.h.
55376         (main): Call set_program_name.
55377
55378         * modules/linked-list-tests (Depends-on): Add progname.
55379         * tests/test-linked_list.c: Include progname.h.
55380         (main): Call set_program_name.
55381
55382 2007-03-03  Bruno Haible  <bruno@clisp.org>
55383
55384         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
55385         All uses of __restrict changed to _Restrict_.
55386         * lib/glob_.h (__restrict): Remove macro.
55387
55388 2007-03-02  Bruno Haible  <bruno@clisp.org>
55389
55390         * modules/gettext (configure.ac): Require gettext infrastructure
55391         from version 0.16.1.
55392
55393 2007-03-02  Bruno Haible  <bruno@clisp.org>
55394
55395         * modules/linkedhash-list-tests (Depends-on): Add progname.
55396         * tests/test-linkedhash_list.c: Include progname.h.
55397         (main): Call set_program_name.
55398
55399         * modules/carray-list-tests (Depends-on): Add progname.
55400         * tests/test-carray_list.c: Include progname.h.
55401         (main): Call set_program_name.
55402
55403         * modules/avltreehash-list-tests (Depends-on): Add progname.
55404         * tests/test-avltreehash_list.c: Include progname.h.
55405         (main): Call set_program_name.
55406
55407         * modules/avltree-oset-tests (Depends-on): Add progname.
55408         * tests/test-avltree_oset.c: Include progname.h.
55409         (main): Call set_program_name.
55410
55411         * modules/avltree-list-tests (Depends-on): Add progname.
55412         * tests/test-avltree_list.c: Include progname.h.
55413         (main): Call set_program_name.
55414
55415         * modules/array-oset-tests (Depends-on): Add progname.
55416         * tests/test-array_oset.c: Include progname.h.
55417         (main): Call set_program_name.
55418
55419         * modules/array-list-tests (Depends-on): Add progname.
55420         * tests/test-array_list.c: Include progname.h.
55421         (main): Call set_program_name.
55422
55423         * modules/argp-tests (Depends-on): Add progname.
55424         * tests/test-argp.c: Include argp.h first. Include progname.h.
55425         (main): Call set_program_name.
55426
55427 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55428
55429         * doc/gnulib-tool.texi (Initial import): Reword description of
55430         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55431         limited effect even if defined after the first system include.
55432
55433 2007-03-01  Bruno Haible  <bruno@clisp.org>
55434
55435         * build-aux/config.libpath: Update to libtool-1.5.22.
55436         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55437
55438 2007-03-01  Bruno Haible  <bruno@clisp.org>
55439
55440         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55441         foo_CFLAGS.
55442         Reported by Ralf Wildenhues.
55443
55444 2007-03-01  Bruno Haible  <bruno@clisp.org>
55445
55446         * build-aux/install-reloc: Remove object files left over by some
55447         compilers.
55448         Reported by Ralf Wildenhues.
55449
55450 2007-03-01  Bruno Haible  <bruno@clisp.org>
55451
55452         * build-aux/install-reloc: Break long lines.
55453
55454 2007-03-01  Bruno Haible  <bruno@clisp.org>
55455
55456         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55457         Reported by Ralf Wildenhues.
55458
55459 2007-03-01  Bruno Haible  <bruno@clisp.org>
55460
55461         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55462         include ordering constraints.
55463
55464 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55465
55466         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55467         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55468         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55469         as another example.
55470         * lib/time_.h: Fix misspelling.
55471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55472         Require gl_HEADER_TIME_H_DEFAULTS.
55473         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55474         * m4/time_r.m4 (gl_TIME_R): Likewise.
55475         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55476
55477 2007-03-01  Bruno Haible  <bruno@clisp.org>
55478
55479         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55480         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55481
55482 2007-03-01  Jim Meyering  <jim@meyering.net>
55483
55484         * modules/xreadlink (Maintainer): Add my name.
55485         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55486
55487 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55488             Bruno Haible  <bruno@clisp.org>
55489
55490         * build-aux/install-reloc: Compile also c-ctype.c.
55491         * build-aux/relocatable.sh.in: New file.
55492         * doc/relocatable.texi: New file.
55493         * doc/relocatable-maint.texi: New file.
55494         * doc/gnulib.texi: Include relocatable-maint.texi.
55495         * lib/progreloc.c: Include unistd.h unconditionally.
55496         * lib/relocwrapper.c: Include unistd.h unconditionally.
55497         Include c-ctype.h.
55498         (add_dotbin): Use c_tolower.
55499         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55500         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55501         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55502         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55503         to m4/relocatable-lib.m4.
55504         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55505         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55506         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55507         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55508         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55509         * modules/relocatable: New file.
55510         * modules/relocatable-lib: New file.
55511         * modules/relocatable-script: New file.
55512
55513 2007-02-28  Bruno Haible  <bruno@clisp.org>
55514
55515         Import --enable-relocatable infrastructure.
55516         * build-aux/config.libpath: New file, from GNU gettext.
55517         * build-aux/install-reloc: New file, from GNU gettext.
55518         * build-aux/reloc-ldflags: New file, from GNU gettext.
55519         * lib/relocatable.h: New file, from GNU gettext.
55520         * lib/relocatable.c: New file, from GNU gettext.
55521         * lib/relocwrapper.c: New file, from GNU gettext.
55522         * m4/relocatable.m4: New file, from GNU gettext.
55523
55524 2007-02-28  Bruno Haible  <bruno@clisp.org>
55525
55526         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55527
55528         * modules/xreadlink: New file, from GNU gettext with modifications.
55529         * lib/xreadlink.c: New file, from GNU gettext.
55530         * lib/xreadlink.h: Add comments.
55531         (xreadlink): New declaration.
55532
55533         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55534         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55535         lib/xreadlink-with-size.c.
55536         (configure.ac): Remove gl_XREADLINK invocation.
55537         (Makefile.am): Augment lib_SOURCES.
55538         * m4/xreadlink.m4: Remove file.
55539         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55540         (xreadlink_with_size): Renamed from xreadink.
55541         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55542         * modules/canonicalize (Depends-on): Replace xreadlink with
55543         xreadlink-with-size.
55544         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55545
55546 2007-02-25  Jim Meyering  <jim@meyering.net>
55547
55548         * build-aux/announce-gen: When complaining about excess arguments,
55549         list them.
55550
55551 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55552
55553         * README: Document signed integer overflow situation more
55554         accurately.
55555
55556 2007-02-25  Bruno Haible  <bruno@clisp.org>
55557
55558         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55559         'a' or 'A' conversion.
55560
55561 2007-02-25  Bruno Haible  <bruno@clisp.org>
55562
55563         * modules/filename: Renamed from modules/pathname.
55564         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55565         lib/concatpath.c with lib/concat-filename.c.
55566         (Makefile.am): Update.
55567         (Include): Replace pathname.h with filename.h.
55568         * lib/filename.h: Renamed from lib/pathname.h.
55569         (concatenated_filename): Renamed from concatenated_pathname.
55570         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55571         (concatenated_filename): Renamed from concatenated_pathname.
55572         * lib/findprog.c: Include filename.h instead of pathname.h.
55573         (find_in_path): Update.
55574         * lib/javacomp.c: Include filename.h instead of pathname.h.
55575         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55576         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55577         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55578         is_oldgcj_14_13_usable, is_javac_usable): Update.
55579         * lib/javaexec.c: Include filename.h instead of pathname.h.
55580         (execute_java_class): Update.
55581         * modules/findprog: Update.
55582         * modules/javacomp: Update.
55583         * modules/javaexec: Update.
55584         * MODULES.html.sh (File system functions): Add 'filename', remove
55585         'pathname'.
55586
55587 2007-02-25  Bruno Haible  <bruno@clisp.org>
55588
55589         * modules/printf-frexpl-tests: New file.
55590         * tests/test-printf-frexpl.c: New file.
55591
55592         * modules/printf-frexpl: New file.
55593         * lib/printf-frexpl.h: New file.
55594         * lib/printf-frexpl.c: New file.
55595         * m4/printf-frexpl.m4: New file.
55596
55597 2007-02-25  Bruno Haible  <bruno@clisp.org>
55598
55599         * modules/printf-frexp-tests: New file.
55600         * tests/test-printf-frexp.c: New file.
55601
55602         * modules/printf-frexp: New file.
55603         * lib/printf-frexp.h: New file.
55604         * lib/printf-frexp.c: New file.
55605         * m4/printf-frexp.m4: New file.
55606
55607 2007-02-25  Bruno Haible  <bruno@clisp.org>
55608
55609         Assume automake >= 1.10 for the tests.
55610         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55611         * modules/arctwo-tests: Likewise.
55612         * modules/argp-tests: Likewise.
55613         * modules/avltree-list-tests: Likewise.
55614         * modules/avltree-oset-tests: Likewise.
55615         * modules/avltreehash-list-tests: Likewise.
55616         * modules/carray-list-tests: Likewise.
55617         * modules/crc-tests: Likewise.
55618         * modules/des-tests: Likewise.
55619         * modules/gc-arcfour-tests: Likewise.
55620         * modules/gc-arctwo-tests: Likewise.
55621         * modules/gc-des-tests: Likewise.
55622         * modules/gc-hmac-md5-tests: Likewise.
55623         * modules/gc-hmac-sha1-tests: Likewise.
55624         * modules/gc-md2-tests: Likewise.
55625         * modules/gc-md4-tests: Likewise.
55626         * modules/gc-md5-tests: Likewise.
55627         * modules/gc-pbkdf2-sha1-tests: Likewise.
55628         * modules/gc-rijndael-tests: Likewise.
55629         * modules/gc-sha1-tests: Likewise.
55630         * modules/gc-tests: Likewise.
55631         * modules/getaddrinfo-tests: Likewise.
55632         * modules/hmac-md5-tests: Likewise.
55633         * modules/hmac-sha1-tests: Likewise.
55634         * modules/linked-list-tests: Likewise.
55635         * modules/linkedhash-list-tests: Likewise.
55636         * modules/lock-tests: Likewise.
55637         * modules/md2-tests: Likewise.
55638         * modules/md4-tests: Likewise.
55639         * modules/md5-tests: Likewise.
55640         * modules/rbtree-list-tests: Likewise.
55641         * modules/rbtree-oset-tests: Likewise.
55642         * modules/rbtreehash-list-tests: Likewise.
55643         * modules/read-file-tests: Likewise.
55644         * modules/rijndael-tests: Likewise.
55645         * modules/stdint-tests: Likewise.
55646         * modules/tls-tests: Likewise.
55647
55648 2007-02-24  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55651         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55652         function; instead check whether isnan with a double argument links.
55653         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55654         function; instead check whether isnan with a 'long double' argument
55655         links.
55656         Reported by Eric Blake <ebb9@byu.net>.
55657
55658 2007-02-24  Bruno Haible  <bruno@clisp.org>
55659
55660         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55661         defined.
55662         * lib/isnanl.c: Remove all code. Just include isnan.c.
55663         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55664
55665 2007-02-25  Jim Meyering  <jim@meyering.net>
55666
55667         Avoid conflicting types for 'unsetenv' on FreeBSD.
55668         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55669         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55670         in stdlib.h.
55671
55672 2007-02-24  Bruno Haible  <bruno@clisp.org>
55673
55674         * modules/isnanl-nolibm-tests: New file.
55675         * tests/test-isnanl.c: New file.
55676
55677         * modules/isnanl-nolibm: New file.
55678         * lib/isnanl.h: New file.
55679         * lib/isnanl.c: New file.
55680         * m4/isnanl.m4: New file.
55681
55682 2007-02-24  Bruno Haible  <bruno@clisp.org>
55683
55684         * modules/isnan-nolibm-tests: New file.
55685         * tests/test-isnan.c: New file.
55686
55687         * modules/isnan-nolibm: New file.
55688         * lib/isnan.h: New file.
55689         * lib/isnan.c: New file.
55690         * m4/isnan.m4: New file.
55691
55692 2007-02-24  Bruno Haible  <bruno@clisp.org>
55693
55694         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55695         assume that an exponent fits in 20 bits.
55696
55697 2007-02-24  Jim Meyering  <jim@meyering.net>
55698
55699         * m4/regex.m4: Update the description of the configure-time option,
55700         --without-included-regex, to state accurately what the defaults are,
55701         and perhaps to give people an idea why using this option is risky.
55702
55703 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55704
55705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55706         loops on small arguments.  This attempts to avoid the problem
55707         Bruno Haible reported for AIX 4.3.2 in
55708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55709
55710 2007-02-23  Bruno Haible  <bruno@clisp.org>
55711
55712         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55713         Needed for help2man.
55714
55715 2007-02-23  Karl Berry  <karl@gnu.org>
55716
55717         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55718         exists, foo.h should be cvs-ignored, not committed.
55719
55720 2007-02-23  Eric Blake  <ebb9@byu.net>
55721
55722         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55723         * lib/stat-time.h (includes): Likewise.
55724         * lib/utimecmp.c (includes): Likewise.
55725         * lib/utimens.h (includes): Likewise.
55726         * lib/getdate.y (includes): Also include "timespec.h" for use
55727         internal to the module.
55728         * modules/utimens (Depends-on): Revert yesterday's patch.
55729         * modules/nanosleep (Depends-on): Add missing dependency.
55730
55731 2007-02-22  Bruno Haible  <bruno@clisp.org>
55732
55733         * lib/glob.c: Don't include getlogin_r.h.
55734
55735 2007-02-22  Jim Meyering  <jim@meyering.net>
55736
55737         * modules/utimens (Depends-on): Add timespec, required for
55738         utimens.h's inclusion of timespec.h.
55739
55740 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55743         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55744         Schwab in
55745         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55746         I'll try to think of a better way to fix the Solaris problem.
55747
55748         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55749         like glibc; on Solaris 10, it fails with errno == EINVAL.
55750         POSIX says the behavior is unspecified if the first argument is NULL,
55751         so play it safe and never pass NULL to the system getcwd.
55752
55753 2007-02-21  Jim Meyering  <jim@meyering.net>
55754
55755         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55756         of gettimeofday.  It would conflict with the one now always
55757         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55758         an IRIX 6.5 build failure.
55759
55760 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55761
55762         Minor fixups to port to Solaris 10 with Sun C 5.8.
55763         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55764         * modules/getcwd (Depends-on): Add dirfd.
55765         * lib/putenv.c (putenv): #undef it.
55766         (rpl_putenv): New decl.
55767         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55768
55769 2007-02-20  Bruno Haible  <bruno@clisp.org>
55770
55771         * modules/stdio-tests: New file.
55772         * tests/test-stdio.c: New file.
55773
55774         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55775         (Depends-on): Add stdio.
55776         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55777         (Include): Use <stdio.h> instead of vsnprintf.h.
55778         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55779         HAVE_DECL_VSNPRINTF.
55780         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55781
55782         * modules/snprintf (Files): Remove lib/snprintf.h.
55783         (Depends-on): Add stdio.
55784         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55785         (Include): Use <stdio.h> instead of snprintf.h.
55786         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55787         HAVE_DECL_SNPRINTF.
55788         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55789         * lib/getaddrinfo.c: Likewise.
55790
55791         * modules/stdio: New file.
55792         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55793         * lib/snprintf.h: Remove file.
55794         * lib/vsnprintf.h: Remove file.
55795         * lib/.cppi-disable: Remove snprintf.h.
55796         * m4/stdio_h.m4: New file.
55797         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55798
55799 2007-02-20  Jim Meyering  <jim@meyering.net>
55800
55801         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55802         used by e.g., mingw.  From Bruno Haible.
55803
55804 2007-02-19  Bruno Haible  <bruno@clisp.org>
55805
55806         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55807         warnings.
55808         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55809
55810 2007-02-19  Bruno Haible  <bruno@clisp.org>
55811
55812         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55813         from mingw users.
55814
55815 2007-02-19  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55818         warnings.
55819         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55820
55821 2007-02-19  Jim Meyering  <jim@meyering.net>
55822
55823         Don't use FD after a successful "fdopendir (fd)".
55824         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55825         Reset it by calling dirfd on the just-obtained DIR*.
55826
55827         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55828         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55829
55830 2007-02-18  Bruno Haible  <bruno@clisp.org>
55831
55832         * lib/readlink.c: Include <unistd.h>.
55833         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55834         HAVE_READLINK.
55835         * modules/readlink (Depends-on): Add unistd.
55836         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55837         (Include): Add <unistd.h>.
55838
55839         * lib/getlogin_r.h: Remove file.
55840         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55841         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55842         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55843         HAVE_DECL_GETLOGIN_R.
55844         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55845         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55846         (Include): Use <unistd.h> instead of getlogin_r.h.
55847
55848         * lib/getcwd.h: Remove file.
55849         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55850         * lib/xgetcwd.c: Likewise.
55851         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55852         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55853         * modules/getcwd (Files): Remove lib/getcwd.h.
55854         (Depends-on): Add unistd.
55855         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55856         (Include): Use <unistd.h> instad of getcwd.h.
55857
55858         * lib/ftruncate.c: Include <unistd.h> first.
55859         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55860         Set HAVE_FTRUNCATE.
55861         * modules/ftruncate (Depends-on): Add unistd.
55862         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55863
55864         * lib/fchdir.c: Include <unistd.h> first.
55865         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55866         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55867         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55868         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55869         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55870
55871         * lib/dup2.c: Include <unistd.h> first.
55872         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55873         HAVE_DUP2.
55874         * modules/dup2 (Depends-on): Add unistd.
55875         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55876
55877         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55878         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55879         REPLACE_CHOWN. Don't define chown as a macro here.
55880         * modules/chown (Depends-on): Add unistd.
55881         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55882
55883         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55884         Add definition for GL_LINK_WARNING.
55885         (chown, dup2): New declarations.
55886         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55887         link warning.
55888         (ftruncate): New declaration.
55889         (getcwd): New declaration, taken from old getcwd.h.
55890         (getlogin_r): New declaration, taken from old getlogin_r.h.
55891         (readlink): New declaration.
55892         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55893         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55894         (gl_PREREQ_UNISTD): Remove macro.
55895         (gl_UNISTD_MODULE_INDICATOR): New macro.
55896         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55897         many new variables. Don't set UNISTD_H.
55898         * modules/unistd (Description): Change.
55899         (Depends-on): Add link-warning.
55900         (configure.ac): Update.
55901         (Makefile.am): Create unistd.h always. Substitute many new variables
55902         into it.
55903
55904 2007-02-18  Bruno Haible  <bruno@clisp.org>
55905
55906         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55907         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55908         HAVE_GETSUBOPT.
55909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55910         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55911         * lib/getsubopt.h: Remove file.
55912         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55913         (Depends-on): Add stdlib.
55914         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55915         (Includes): Use <stdlib.h> instead of getsubopt.h.
55916         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55917         Set HAVE_GETSUBOPT.
55918         * lib/getsubopt.c: Don't include getsubopt.h.
55919
55920 2007-02-18  Bruno Haible  <bruno@clisp.org>
55921
55922         * modules/fchdir (Depends-on): Add dup2.
55923
55924 2007-02-18  Bruno Haible  <bruno@clisp.org>
55925
55926         * lib/stdlib_.h: Handle glibc's special invocation convention
55927         specially.
55928
55929 2007-02-18  Bruno Haible  <bruno@clisp.org>
55930
55931         * modules/stdlib-tests: New file.
55932         * tests/test-stdlib.c: New file.
55933
55934         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55935         (Depends-on): Add stdlib.
55936         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55937         (Includes): Use <stdlib.h> instead of mkstemp.h.
55938         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55939         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55940         * lib/mkstemp.c: Don't include mkstemp.h.
55941         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55942         * lib/stdlib--.h: Don't include mkstemp.h.
55943
55944         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55945         (Depends-on): Add stdlib.
55946         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55947         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55948         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55949         HAVE_MKDTEMP.
55950         * lib/mkdtemp.c: Don't include mkdtemp.h.
55951         * lib/clean-temp.c: Don't include mkdtemp.h.
55952
55953         * modules/exit (Files): Remove lib/exit.h.
55954         (Depends-on): Add stdlib.
55955         (Makefile.am): Remove lib_SOURCES.
55956         (Include): Use <stdlib.h> instead of exit.h.
55957         * lib/argmatch.c: Don't include exit.h.
55958         * lib/execute.c: Likewise.
55959         * lib/pagealign_alloc.c: Likewise.
55960         * lib/pipe.c: Likewise.
55961         * lib/wait-process.c: Likewise.
55962         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55963         * lib/exitfail.c: Likewise.
55964         * lib/savewd.c: Likewise.
55965         * lib/xsetenv.c: Likewise.
55966
55967         * modules/stdlib: New file.
55968         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55969         and extra comments about mkstemp().
55970         * lib/exit.h: Remove file.
55971         * lib/mkdtemp.h: Remove file.
55972         * lib/mkstemp.h: Remove file.
55973         * m4/stdlib_h.m4: New file.
55974         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55975
55976 2007-02-18  Bruno Haible  <bruno@clisp.org>
55977
55978         * modules/math-tests: New file.
55979         * tests/test-math.c: New file.
55980
55981         * modules/math: New file.
55982         * modules/mathl (Files): Remove lib/mathl.h.
55983         (Depends-on): Add math.
55984         (Makefile.am): Don't mention mathl.h.
55985         (Include): Use <math.h> instead of mathl.h.
55986         * lib/math_.h: New file.
55987         * lib/mathl.h: Remove file.
55988         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55989         mathl.h.
55990         * lib/asinl.c: Likewise.
55991         * lib/atanl.c: Likewise.
55992         * lib/ceill.c: Likewise.
55993         * lib/cosl.c: Likewise.
55994         * lib/expl.c: Likewise.
55995         * lib/floorl.c: Likewise.
55996         * lib/frexpl.c: Likewise.
55997         * lib/ldexpl.c: Likewise.
55998         * lib/logl.c: Likewise.
55999         * lib/sincosl.c: Likewise.
56000         * lib/sinl.c: Likewise.
56001         * lib/sqrtl.c: Likewise.
56002         * lib/tanl.c: Likewise.
56003         * lib/trigl.c: Likewise.
56004         * m4/math_h.m4: New file.
56005         * MODULES.html.sh (Mathematics): Add math.
56006
56007 2007-02-17  Bruno Haible  <bruno@clisp.org>
56008
56009         * modules/wctype-tests: New file.
56010         * tests/test-wctype.c: New file.
56011
56012         * modules/wchar-tests: New file.
56013         * tests/test-wchar.c: New file.
56014
56015         * modules/unistd-tests: New file.
56016         * tests/test-unistd.c: New file.
56017
56018         * modules/time-tests: New file.
56019         * tests/test-time.c: New file.
56020
56021         * modules/sysexits-tests: New file.
56022         * tests/test-sysexits.c: New file.
56023
56024         * modules/sys_time-tests: New file.
56025         * tests/test-sys_time.c: New file.
56026
56027         * modules/sys_stat-tests: New file.
56028         * tests/test-sys_stat.c: New file.
56029
56030         * modules/sys_socket-tests: New file.
56031         * tests/test-sys_socket.c: New file.
56032
56033         * modules/sys_select-tests: New file.
56034         * tests/test-sys_select.c: New file.
56035
56036         * modules/string-tests: New file.
56037         * tests/test-string.c: New file.
56038
56039         * modules/stdbool-tests: New file.
56040         * tests/test-stdbool.c: New file.
56041
56042         * modules/netinet_in-tests: New file.
56043         * tests/test-netinet_in.c: New file.
56044
56045         * modules/inttypes-tests: New file.
56046         * tests/test-inttypes.c: New file.
56047
56048         * modules/fcntl-tests: New file.
56049         * tests/test-fcntl.c: New file.
56050
56051         * modules/byteswap-tests: New file.
56052         * tests/test-byteswap.c: New file.
56053
56054         * modules/arpa_inet-tests: New file.
56055         * tests/test-arpa_inet.c: New file.
56056
56057 2007-02-17  Bruno Haible  <bruno@clisp.org>
56058
56059         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
56060         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
56061         if the corresponding module is not enabled. Emit link warnings if
56062         the function is used nevertheless.
56063         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
56064         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
56065         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
56066         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
56067         * modules/inttypes (Depends-on): Add link-warning.
56068         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56069         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
56070         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
56071         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
56072         * modules/imaxdiv (configure.ac): Likewise.
56073         * modules/strtoimax (configure.ac): Likewise.
56074         * modules/strtoumax (configure.ac): Likewise.
56075
56076 2007-02-17  Bruno Haible  <bruno@clisp.org>
56077
56078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
56079         gl_STRING_MODULE_INDICATOR_DEFAULTS.
56080         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
56081         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
56082
56083 2007-02-17  Bruno Haible  <bruno@clisp.org>
56084
56085         * modules/link-warning: New file.
56086         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
56087         * lib/string_.h (GL_LINK_WARNING): Remove definition.
56088         * modules/string (Depends-on): Add link-warning.
56089         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56090         string.h.
56091         * MODULES.html.sh (Support for building libraries and executables): Add
56092         link-warning.
56093
56094 2007-02-17  Bruno Haible  <bruno@clisp.org>
56095
56096         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
56097         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
56098         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
56099         long lines.
56100
56101 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
56102             Bruno Haible  <bruno@clisp.org>
56103
56104         * modules/tmpfile: New file.
56105         * lib/tmpfile.c: New file.
56106         * m4/tmpfile.m4: New file.
56107         * MODULES.html.sh (func_all_modules): New section "Input/output".
56108
56109 2007-02-15  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
56112         (supports_delete_on_close): New function.
56113         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
56114
56115 2007-02-14  Bruno Haible  <bruno@clisp.org>
56116
56117         * modules/mbspcasecmp-tests: New file.
56118         * tests/test-mbspcasecmp.sh: New file.
56119         * tests/test-mbspcasecmp.c: New file.
56120
56121         New module mbspcasecmp.
56122         * modules/mbspcasecmp: New file.
56123         * lib/mbspcasecmp.c: New file.
56124         * lib/string_.h (strncasecmp): Change warning message.
56125         (mbspcasecmp): New declaration.
56126         * m4/mbspcasecmp.m4: New file.
56127         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56128         GNULIB_MBSPCASECMP.
56129         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
56130         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
56131
56132 2007-02-14  Bruno Haible  <bruno@clisp.org>
56133
56134         * modules/mbsncasecmp-tests: New file.
56135         * tests/test-mbsncasecmp.sh: New file.
56136         * tests/test-mbsncasecmp.c: New file.
56137
56138         New module mbsncasecmp.
56139         * modules/mbsncasecmp: New file.
56140         * lib/mbsncasecmp.c: New file.
56141         * lib/string_.h (mbsncasecmp): New declaration.
56142         * m4/mbsncasecmp.m4: New file.
56143         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56144         GNULIB_MBSNCASECMP.
56145         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
56146         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
56147
56148 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56149
56150         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
56151         Verify that it doesn't overlap with our flags.
56152         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
56153         do not have the desired effect in multibyte locales; instead, use
56154         mbscasecmp.
56155         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
56156         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
56157         we don't require GNU fnmatch ourselves (if our users require it, they
56158         should do so explicitly).
56159
56160         Fix regex code so it doesn't rely on strcasecmp.
56161         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
56162         Otherwise, include gnulib's langinfo.h.
56163         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
56164         undesirable behavior in non-C locales.  Instead, rely on localecharset.
56165         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
56166         * modules/regex (FILES): Remove m4/codeset.m4.
56167         (Depends-on): Add localcharset.  Remove strcase.
56168
56169 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56170
56171         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
56172         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
56173
56174 2007-02-13  Bruno Haible  <bruno@clisp.org>
56175
56176         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
56177         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56178
56179 2007-02-12  Bruno Haible  <bruno@clisp.org>
56180
56181         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56182         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
56183         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
56184         time warning rather than a link error.
56185
56186 2007-02-12  Bruno Haible  <bruno@clisp.org>
56187
56188         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
56189         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56191
56192 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56193
56194         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
56195         args, not 2.
56196
56197 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56198
56199         New module 'time', so that apps can include <time.h> as per
56200         POSIX and GNU instead of separate include files like time_r.h
56201         and timegm.h.  This implementation tries out a simpler approach
56202         for replacing decls in standard include files (as compared to
56203         the string module), somewhat as an experiment.
56204
56205         * config/srclist.txt: Comment out mktime.c for now.
56206         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
56207         since it doesn't apply any more.  Use generic wording instead.
56208         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
56209         'time'.
56210         * lib/time_.h, m4/time_h.m4, modules/time: New files.
56211         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
56212         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
56213         Don't include <sys/types.h>; no longer needed since we assume C89.
56214         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
56215         * lib/strftime.c: Likewise.
56216         * lib/time_r.c: Likewise.
56217         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
56218         * lib/nanosleep.c: Include <time.h> first, to check interface.
56219         * lib/strptime.c: Likewise.
56220         * lib/time_r.c: Likewise.
56221         * lib/timegm.c: Likewise.
56222         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
56223         needed.
56224         * lib/timegm.c: Don't include timegm.h; no longer needed.
56225         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
56226         time.h now handles any problems in that area.
56227         (struct timespec, nanosleep): Remove; time.h now arranges for these.
56228         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
56229         that time.h defines struct timespec.
56230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
56231         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
56232         handles that.
56233         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
56234         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
56235         needed.  Set REPLACE_LOCALTIME.
56236         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
56237         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
56238         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
56239         nanosleep; time_h.m4 now does that.  Don't require
56240         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
56241         module handles this now.
56242         * modules/getdate (Depends-on): Remove timespec.  Add time.
56243         * modules/nanosleep (Depends-on): Likewise.
56244         * modules/stat-time (Depends-on): Likewise.
56245         * modules/nanosleep (Include): Include time.h, not timespec.h.
56246         * modules/strptime (Files): Remove lib/strptime.h.
56247         (Depends-on): Add extensions, time.
56248         (Include): Include time.h, not strptime.h.
56249         * modules/time_r (Files): Remove lib/time_r.h.
56250         (Depends-on): Add time.
56251         (Include): Include time.h, not time_r.h.
56252         * modules/timegm: Likewise.
56253         * modules/timespec (Description): Now does timespec-related decls
56254         of our own, instead of struct timespec itself.
56255         (Depends-on): Add time; remove extensions.
56256         (Maintainer): Add self.
56257         * modules/utimecmp (Depends-on): Add time; remove timespec.
56258         * modules/utimens (Depends-on): Likewise.
56259         * modules/xnanosleep (Depends-on): Likewise.
56260
56261 2007-02-11  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/c-strstr.c: Include allocsa.h.
56264         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56265         * lib/c-strcasestr.c: Include allocsa.h.
56266         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56267         * lib/strcasestr.c: Include allocsa.h.
56268         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56269         * lib/mbsstr.c: Include allocsa.h.
56270         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56271         allocsa/freesa instead of malloc/free.
56272         * lib/mbscasestr.c: Include allocsa.h.
56273         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56274         allocsa/freesa instead of malloc/free.
56275         * modules/c-strstr (Depends-on): Add allocsa.
56276         * modules/c-strcasestr (Depends-on): Likewise.
56277         * modules/strcasestr (Depends-on): Likewise.
56278         * modules/mbsstr (Depends-on): Likewise.
56279         * modules/mbscasestr (Depends-on): Likewise.
56280
56281 2007-02-11  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
56284
56285         * modules/mbsspn-tests: New file.
56286         * tests/test-mbsspn.sh: New file.
56287         * tests/test-mbsspn.c: New file.
56288
56289 2007-02-11  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
56292
56293         * modules/mbspbrk-tests: New file.
56294         * tests/test-mbspbrk.sh: New file.
56295         * tests/test-mbspbrk.c: New file.
56296
56297 2007-02-11  Bruno Haible  <bruno@clisp.org>
56298
56299         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
56300         unneeded cast.
56301
56302         * modules/mbscspn-tests: New file.
56303         * tests/test-mbscspn.sh: New file.
56304         * tests/test-mbscspn.c: New file.
56305
56306 2007-02-11  Bruno Haible  <bruno@clisp.org>
56307
56308         * modules/mbscasecmp-tests: New file.
56309         * tests/test-mbscasecmp.sh: New file.
56310         * tests/test-mbscasecmp.c: New file.
56311
56312 2007-02-11  Bruno Haible  <bruno@clisp.org>
56313
56314         Ensure O(n) worst-case complexity of mbscasestr.
56315         * lib/mbscasestr.c: Include stdbool.h.
56316         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56317         functions.
56318         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
56319         the bookkeeping indicates that it's worth it.
56320         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
56321
56322         * modules/mbscasestr-tests: New file.
56323         * tests/test-mbscasestr1.c: New file.
56324         * tests/test-mbscasestr2.sh: New file.
56325         * tests/test-mbscasestr2.c: New file.
56326         * tests/test-mbscasestr3.sh: New file.
56327         * tests/test-mbscasestr3.c: New file.
56328         * tests/test-mbscasestr4.sh: New file.
56329         * tests/test-mbscasestr4.c: New file.
56330         * m4/locale-tr.m4: New file.
56331
56332 2007-02-11  Bruno Haible  <bruno@clisp.org>
56333
56334         Ensure O(n) worst-case complexity of mbsstr.
56335         * lib/mbsstr.c: Include stdbool.h.
56336         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56337         functions.
56338         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
56339         bookkeeping indicates that it's worth it.
56340         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
56341
56342         * modules/mbsstr-tests: New file.
56343         * tests/test-mbsstr1.c: New file.
56344         * tests/test-mbsstr2.sh: New file.
56345         * tests/test-mbsstr2.c: New file.
56346         * tests/test-mbsstr3.sh: New file.
56347         * tests/test-mbsstr3.c: New file.
56348         * m4/locale-fr.m4: New file.
56349
56350 2007-02-11  Bruno Haible  <bruno@clisp.org>
56351
56352         * lib/mbsrchr.c (mbsrchr): Fix bug.
56353
56354         * modules/mbsrchr-tests: New file.
56355         * tests/test-mbsrchr.sh: New file.
56356         * tests/test-mbsrchr.c: New file.
56357
56358 2007-02-11  Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/mbschr.c (mbschr): Fix bug.
56361
56362         * modules/mbschr-tests: New file.
56363         * tests/test-mbschr.sh: New file.
56364         * tests/test-mbschr.c: New file.
56365         * m4/locale-zh.m4: New file.
56366
56367 2007-02-11  Bruno Haible  <bruno@clisp.org>
56368
56369         Support for copying multibyte string iterators.
56370         * lib/mbiter.h: Include <string.h>.
56371         (mbiter_multi_copy): New function.
56372         (mbi_copy): New macro.
56373         * lib/mbuiter.h: Include <string.h>.
56374         (mbuiter_multi_copy): New function.
56375         (mbui_copy): New macro.
56376
56377 2007-02-11  Bruno Haible  <bruno@clisp.org>
56378
56379         New module mbslen.
56380         * modules/mbslen: New file.
56381         * lib/mbslen.c: New file.
56382         * lib/string_.h (mbslen): New declaration.
56383         * m4/mbslen.m4: New file.
56384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56385         GNULIB_MBSLEN.
56386         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
56387         * MODULES.html.sh (Internationalization functions): Add mbslen.
56388
56389 2007-02-11  Bruno Haible  <bruno@clisp.org>
56390
56391         Ensure O(n) worst-case complexity of strcasestr substitute.
56392         * lib/strcasestr.c: Include stdbool.h.
56393         (knuth_morris_pratt): New function.
56394         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56395         bookkeeping indicates that it's worth it.
56396         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
56397
56398         * modules/strcasestr-tests: New file.
56399         * tests/test-strcasestr.c: New file.
56400
56401 2007-02-11  Bruno Haible  <bruno@clisp.org>
56402
56403         Ensure O(n) worst-case complexity of c_strcasestr.
56404         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56405         (knuth_morris_pratt): New function.
56406         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56407         the bookkeeping indicates that it's worth it.
56408         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56409
56410         * modules/c-strcasestr-tests: New file.
56411         * tests/test-c-strcasestr.c: New file.
56412
56413 2007-02-11  Bruno Haible  <bruno@clisp.org>
56414
56415         Ensure O(n) worst-case complexity of c_strstr.
56416         * lib/c-strstr.c: Include stdbool.h, string.h.
56417         (knuth_morris_pratt): New function.
56418         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56419         bookkeeping indicates that it's worth it.
56420         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56421
56422         * lib/c-strstr.c: Complete rewrite for maintainability.
56423
56424         * modules/c-strstr-tests: New file.
56425         * tests/test-c-strstr.c: New file.
56426
56427 2007-02-11  Bruno Haible  <bruno@clisp.org>
56428
56429         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56430         5.2.1 and earlier, whereby \055 was treated just like the range
56431         delimiter '-'.
56432         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56433
56434 2007-02-08  Bruno Haible  <bruno@clisp.org>
56435
56436         * modules/regex (Depends-on): Add stdbool.
56437         Reported by Dalibor Topic <robilad@kaffe.org>.
56438
56439 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56440
56441         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56442         Prefer returning from main to exiting from it.
56443         Remove unnecessary parens after sizeof.
56444
56445 2007-02-05  Bruno Haible  <bruno@clisp.org>
56446
56447         New module mbssep.
56448         * modules/mbssep: New file.
56449         * lib/mbssep.c: New file.
56450         * lib/string_.h (strsep): Add a conditional link warning.
56451         (mbssep): New declaration.
56452         * m4/mbssep.m4: New file.
56453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56454         GNULIB_MBSSEP.
56455         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56456         * MODULES.html.sh (Internationalization functions): Add mbssep.
56457
56458 2007-02-05  Bruno Haible  <bruno@clisp.org>
56459
56460         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56461         Optimize search in case of 1 delimiter.
56462
56463 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56464
56465         * lib/acl.h: Include sys/types.h before sys/acl.h.
56466
56467 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56468
56469         Merge upstream fix for glibc bugzilla #3957:
56470
56471         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56472
56473         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56474         bit for RE_HAT_LISTS_NOT_NEWLINE.
56475         (build_charclass_op): Remove bogus comment.
56476
56477 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56478
56479         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56480
56481 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56482
56483         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56484         * lib/memmem.c [!defined _LIBC]: Include config.h.
56485
56486 2007-02-04  Bruno Haible  <bruno@clisp.org>
56487
56488         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56489         warning message.
56490
56491 2007-02-04  Bruno Haible  <bruno@clisp.org>
56492
56493         New module mbstok_r.
56494         * modules/mbstok_r: New file.
56495         * lib/mbstok_r.c: New file.
56496         * lib/string_.h (strtok_r): Change argument names to match the
56497         comments. Add a conditional link warning.
56498         (mbstok_r): New declaration.
56499         * m4/mbstok_r.m4: New file.
56500         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56501         GNULIB_MBSTOK_R.
56502         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56503         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56504
56505 2007-02-04  Bruno Haible  <bruno@clisp.org>
56506
56507         New module mbsspn.
56508         * modules/mbsspn: New file.
56509         * lib/mbsspn.c: New file.
56510         * lib/string_.h (strspn): Add a conditional link warning.
56511         (mbsspn): New declaration.
56512         * m4/mbsspn.m4: New file.
56513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56514         GNULIB_MBSSPN.
56515         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56516         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56517
56518 2007-02-04  Bruno Haible  <bruno@clisp.org>
56519
56520         New module mbspbrk.
56521         * modules/mbspbrk: New file.
56522         * lib/mbspbrk.c: New file.
56523         * lib/string_.h (strpbrk): Add a conditional link warning.
56524         (mbspbrk): New declaration.
56525         * m4/mbspbrk.m4: New file.
56526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56527         GNULIB_MBSPBRK.
56528         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56529         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56530
56531 2007-02-04  Bruno Haible  <bruno@clisp.org>
56532
56533         New module mbscspn.
56534         * modules/mbscspn: New file.
56535         * lib/mbscspn.c: New file.
56536         * lib/string_.h (strcspn): Add a conditional link warning.
56537         (mbscspn): New declaration.
56538         * m4/mbscspn.m4: New file.
56539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56540         GNULIB_MBSCSPN.
56541         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56542         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56543
56544 2007-02-04  Bruno Haible  <bruno@clisp.org>
56545
56546         New module mbscasestr, reduced goal of strcasestr.
56547         * modules/mbscasestr: New file.
56548         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56549         (mbscasestr): Renamed from strcasestr.
56550         * lib/strcasestr.c: Don't include mbuiter.h.
56551         (strcasestr): Remove support for multibyte locales.
56552         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56553         Change the conditional link warning.
56554         (mbscasestr): New declaration.
56555         * m4/mbscasestr.m4: New file.
56556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56557         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56558         REPLACE_STRCASESTR.
56559         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56561         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56562         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56563         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56564         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56565         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56566         (Depends-on): Remove mbuiter.
56567         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56568
56569 2007-02-04  Bruno Haible  <bruno@clisp.org>
56570
56571         Simplify handling of strncasecmp.
56572         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56573         the conditional link warning.
56574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56575         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56576         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56577         * modules/strcase (configure.ac): Don't invoke
56578         gl_STRING_MODULE_INDICATOR.
56579         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56580
56581 2007-02-04  Bruno Haible  <bruno@clisp.org>
56582
56583         New module mbscasecmp, reduced goal of strcasecmp.
56584         * modules/mbscasecmp: New file.
56585         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56586         (mbscasecmp): Renamed from strcasecmp.
56587         * lib/strcasecmp.c: Don't include mbuiter.h.
56588         (strcasecmp): Remove support for multibyte locales.
56589         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56590         Change the conditional link warning.
56591         (mbscasecmp): New declaration.
56592         * m4/mbscasecmp.m4: New file.
56593         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56594         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56595         REPLACE_STRCASECMP.
56596         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56598         GNULIB_MBSCASECMP.
56599         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56600         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56601         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56602         (Depends-on): Remove mbuiter.
56603         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56604
56605 2007-02-04  Bruno Haible  <bruno@clisp.org>
56606
56607         New module mbsstr. Remove module strstr.
56608         * modules/mbsstr: New file.
56609         * modules/strstr: Remove file.
56610         * lib/mbsstr.c: Renamed from lib/strstr.c.
56611         (mbsstr): Renamed from strstr.
56612         * lib/string_.h (strstr): Remove declaration. Change the conditional
56613         link warning.
56614         (mbsstr): New declaration.
56615         * m4/mbsstr.m4: New file.
56616         * m4/strstr.m4: Remove file.
56617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56618         REPLACE_STRSTR.
56619         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56620         Don't initialize GNULIB_STRSTR.
56621         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56622         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56623         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56624         (Support for systems lacking ANSI C 89): Remove strstr.
56625
56626 2007-02-04  Bruno Haible  <bruno@clisp.org>
56627
56628         New module mbsrchr.
56629         * modules/mbsrchr: New file.
56630         * lib/mbsrchr.c: New file.
56631         * lib/string_.h (strrchr): Add a conditional link warning.
56632         (mbsrchr): New declaration.
56633         * m4/mbsrchr.m4: New file.
56634         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56635         GNULIB_MBSRCHR.
56636         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56637         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56638
56639 2007-02-04  Bruno Haible  <bruno@clisp.org>
56640
56641         New module mbschr.
56642         * modules/mbschr: New file.
56643         * lib/mbschr.c: New file.
56644         * lib/string_.h (strchr): Add a conditional link warning.
56645         (mbschr): New declaration.
56646         * m4/mbschr.m4: New file.
56647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56648         GNULIB_MBSCHR.
56649         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56650         * MODULES.html.sh (Internationalization functions): Add mbschr.
56651
56652 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56653
56654         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56655
56656         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56657
56658 2007-02-04  Bruno Haible  <bruno@clisp.org>
56659
56660         New module description section 'configure.ac-early'.
56661         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56662         (func_get_autoconf_early_snippet): New function.
56663         (func_import, func_create_testdir): Use it. Remove special cases for
56664         modules 'extensions' and 'lock'.
56665         * modules/extensions (configure.ac-early): Require
56666         gl_USE_SYSTEM_EXTENSIONS.
56667         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56668
56669 2007-02-04  Bruno Haible  <bruno@clisp.org>
56670
56671         Make use of gcj-4.3's -fsource and -ftarget option.
56672         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56673         and if so try the options -fsource and -ftarget.
56674         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56675         source_version, ftarget_option, target_version arguments.
56676         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56677         (is_envjavac_oldgcj_14_14_usable): Renamed from
56678         is_envjavac_gcj_14_14_usable.
56679         (is_envjavac_oldgcj_14_13_usable): Renamed from
56680         is_envjavac_gcj_14_13_usable.
56681         (is_gcj_present): Update.
56682         (is_gcj_43, is_gcj43_usable): New functions.
56683         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56684         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56685         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56686         try the options -fsource and -ftarget.
56687
56688 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56689
56690         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56691         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56692         larger value.
56693
56694 2007-02-03  Jim Meyering  <jim@meyering.net>
56695
56696         Give tools a better chance to allocate space for very large buffers.
56697         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56698
56699         Make pwd and readlink work also when run with an unreadable parent dir
56700         on systems with openat support.
56701         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56702         provided getcwd function, even when we have openat support.
56703         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56704
56705 2007-02-02  Bruno Haible  <bruno@clisp.org>
56706
56707         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56708         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56709         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56710         portability problems if one of these functions is only used on specific
56711         platforms.
56712         Reported by Paul Eggert.
56713
56714 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56715
56716         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56717         is causing more trouble than it's curing.
56718         * lib/regex_internal.h (__mempcpy): Remove.
56719         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56720         (and make the code a tad smaller to boot).
56721         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56722
56723 2007-02-02  Jim Meyering  <jim@meyering.net>
56724
56725         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56726         section, not in the Makefile.am: one.
56727
56728 2007-02-02  Eric Blake  <ebb9@byu.net>
56729
56730         * lib/strchrnul.c: Always include config.h first.
56731
56732         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56733         gnulib strstr is not necessary here.
56734
56735 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56736
56737         * m4/socklen.m4: Fix typo.
56738
56739 2007-02-02  Eric Blake  <ebb9@byu.net>
56740
56741         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56742         * modules/netinet_in (Makefile.am): Likewise.
56743
56744 2007-02-01  Bruno Haible  <bruno@clisp.org>
56745
56746         * lib/string_.h (GL_LINK_WARNING): New macro.
56747         (strcasecmp, strstr, strcasestr): If provided by the system,
56748         conditionally define as a macro that leads to a warning instead of to
56749         an error.
56750         (strncasecmp): Conditionally define as a macro that leads to a warning.
56751
56752 2007-02-01  Karl Berry  <karl@gnu.org>
56753
56754         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56755
56756 2007-02-01  Bruno Haible  <bruno@clisp.org>
56757
56758         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56759         renamings.
56760
56761 2007-02-01  Eric Blake  <ebb9@byu.net>
56762
56763         * modules/regex (Depends-on): Revert dependence on mempcpy.
56764         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56765         module's definition of mempcpy.
56766         Reported by Paul Eggert.
56767
56768 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56769
56770         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56771         the symbol XYZ before redefining it.  This fixes a problem with
56772         programs that don't use XYZ, when compiled on systems that define
56773         XYZ to something else.
56774
56775 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56776
56777         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56778         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56779         writeable to group or other and (2) is intended to have a special
56780         mode bit that is set or cleared.  In such a case, the directory
56781         should be neither group- nor other-writeable until the special
56782         mode bits are right.
56783
56784 2007-01-31  Eric Blake  <ebb9@byu.net>
56785
56786         * modules/mountlist (Depends-on): Add strstr.
56787
56788         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56789         bug.
56790         * modules/string (Makefile.am): Remove redundant replacement.
56791         * modules/regex (Depends-on): Add mempcpy.
56792
56793 2007-01-31  Bruno Haible  <bruno@clisp.org>
56794
56795         New module description field 'Link'.
56796         * gnulib-tool (func_usage): Document --extract-link-directive.
56797         (sed_extract_prog): Recognize 'Link' directive.
56798         (func_get_link_directive): New function.
56799         (func_import): Show summary of link directives.
56800         Handle --extract-link-directive option.
56801         * modules/acl (Link): New section.
56802         * modules/clock-time (Link): New section.
56803         * modules/euidaccess (Link): New section.
56804         * modules/gettext (Link): New section.
56805         * modules/iconv (Link): New section.
56806         * modules/lock (Link): New section.
56807         * modules/nanosleep (Link): New section.
56808         * modules/readline (Link): New section.
56809
56810 2007-01-27  Bruno Haible  <bruno@clisp.org>
56811
56812         Enforce the use of gnulib modules for unportable <string.h> functions.
56813         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56814         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56815         (gl_HEADER_STRING_H_BODY): Require it.
56816         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56817         the symbol XYZ to one that gives a link error.
56818         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56819         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56820         * modules/mempcpy (configure.ac): Likewise.
56821         * modules/memrchr (configure.ac): Likewise.
56822         * modules/stpcpy (configure.ac): Likewise.
56823         * modules/stpncpy (configure.ac): Likewise.
56824         * modules/strcase (configure.ac): Likewise.
56825         * modules/strcasestr (configure.ac): Likewise.
56826         * modules/strchrnul (configure.ac): Likewise.
56827         * modules/strdup (configure.ac): Likewise.
56828         * modules/strndup (configure.ac): Likewise.
56829         * modules/strnlen (configure.ac): Likewise.
56830         * modules/strpbrk (configure.ac): Likewise.
56831         * modules/strsep (configure.ac): Likewise.
56832         * modules/strstr (configure.ac): Likewise.
56833         * modules/strtok_r (configure.ac): Likewise.
56834
56835 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56836
56837         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56838
56839 2007-01-30  Jim Meyering  <jim@meyering.net>
56840
56841         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56842
56843 2007-01-29  Bruno Haible  <bruno@clisp.org>
56844
56845         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56846         * lib/execute.c: Likewise.
56847         * lib/pipe.c: Likewise.
56848         * lib/printf-args.h: Likewise.
56849         * lib/printf-args.c: Likewise.
56850         * lib/printf-parse.c: Likewise.
56851         * lib/vasnprintf.c: Likewise.
56852
56853 2007-01-29  Eric Blake  <ebb9@byu.net>
56854
56855         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56856         declaration.
56857
56858 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56859
56860         * lib/strptime.h (strptime): Use 'restrict' for args where
56861         POSIX requires this.
56862         * lib/strptime.c (strptime): Likewise.
56863         Change license notice from LGPL to GPL, since gnulib-tool will
56864         change this as needed.
56865         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56866         defined.
56867         Include "strptime.h" first, to check interface.
56868         Do not #undef _LIBC and _NL_CURRENT.
56869         Do not include <stdlib.h>; no longer needed.
56870         Include "time_r.h" and declare ptime_locale_status
56871         only if _LIBC is not defined.
56872         (__P): Remove unused macro.
56873         (match_string): Bring back glibc version, but use it only if _LIBC
56874         is defined.
56875         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56876         Remove unnecessary assertion and abort() call.
56877         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56878         * m4/strptime.m4: Fix serial number comment.
56879         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56880         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56881         (Depends-on): Add time_r.
56882
56883 2007-01-29  Bruno Haible  <bruno@clisp.org>
56884
56885         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56886         strptime.
56887         * modules/strptime (Depends-on): Add stdbool.
56888         * lib/strptime.h: Include <time.h> always. Add comments.
56889
56890 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56891
56892         * modules/strptime: New file.
56893         * lib/strptime.h: New file.
56894         * lib/strptime.c: New file.
56895         * m4/strptime.m4: New file.
56896
56897 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56898
56899         * MODULES.html.sh: New module mpsort.
56900         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56901
56902         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56903         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56904         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56905         All uses changed.
56906         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56907         All uses changed.
56908         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56909         to _Restrict_.
56910         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56911         the parameter matches the prototype.
56912
56913 2007-01-28  Jim Meyering  <jim@meyering.net>
56914
56915         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56916         sys/time.h here, reverting that part of the previous patch:
56917         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56918
56919 2007-01-28  Bruno Haible  <bruno@clisp.org>
56920
56921         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56922         value of $(SYS_TIME_H).
56923         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56924         remove it conditionally, too. [added by Jim Meyering]
56925         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56926         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56927         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56928         GETTIMEOFDAY_REPLACEMENT to 1.
56929
56930 2007-01-28  Bruno Haible  <bruno@clisp.org>
56931
56932         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56933         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56935         Set UNISTD_H instead of UNISTD_H2.
56936         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56937
56938 2007-01-28  Bruno Haible  <bruno@clisp.org>
56939
56940         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56941         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56942
56943 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56944
56945         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56946         (func_create_testdir): Ensure C locale for `grep' and `tr'
56947         character ranges.
56948         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56949         ACLOCAL_AMFLAGS parsing state machine.
56950
56951 2007-01-27  Bruno Haible  <bruno@clisp.org>
56952
56953         * modules/unistr/base: Update.
56954
56955 2007-01-27  Bruno Haible  <bruno@clisp.org>
56956
56957         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56958         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56959         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56960         modules/unistr/u32-mbtouc.
56961         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56962         * lib/unistr.h: Update.
56963         * lib/linebreak.c: Update.
56964         * modules/unistr/u32-mbtouc: Renamed from
56965         modules/unistr/u32-mbtouc-safe.
56966         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56967         * lib/unistr.h: Update.
56968         * lib/unistr/u32-to-u8.c: Update.
56969         * lib/unistr/u32-to-u16.c: Update.
56970
56971 2007-01-27  Bruno Haible  <bruno@clisp.org>
56972
56973         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56974         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56975         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56976         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56977         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56978         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56979         modules/unistr/u16-mbtouc.
56980         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56981         * lib/unistr.h: Update.
56982         * lib/linebreak.c: Update.
56983         * modules/linebreak: Update.
56984         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56985         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56986         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56987         * modules/unistr/u16-mbtouc: Renamed from
56988         modules/unistr/u16-mbtouc-safe.
56989         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56990         * lib/unistr.h: Update.
56991         * lib/unistr/u16-to-u8.c: Update.
56992         * modules/unistr/u16-to-u8: Update.
56993         * lib/unistr/u16-to-u32.c: Update.
56994         * modules/unistr/u16-to-u32: Update.
56995
56996 2007-01-27  Bruno Haible  <bruno@clisp.org>
56997
56998         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56999         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
57000         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
57001         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
57002         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
57003         * modules/unistr/u8-mbtouc-unsafe: Renamed from
57004         modules/unistr/u8-mbtouc.
57005         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
57006         * lib/unistr.h: Update.
57007         * lib/striconveh.c: Update.
57008         * modules/striconveh: Update.
57009         * lib/linebreak.c: Update.
57010         * modules/linebreak: Update.
57011         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
57012         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
57013         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
57014         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
57015         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
57016         * lib/unistr.h: Update.
57017         * lib/striconveh.c: Update.
57018         * modules/striconveh: Update.
57019         * lib/unistr/u8-to-u16.c: Update.
57020         * modules/unistr/u8-to-u16: Update.
57021         * lib/unistr/u8-to-u32.c: Update.
57022         * modules/unistr/u8-to-u32: Update.
57023
57024 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57025
57026         Sync from Libtool.
57027         * lib/argz.c: Do not include strings.h nor memory.h, include
57028         string.h unconditionally.  Patch by Simon Josefsson.
57029
57030 2007-01-27  Bruno Haible  <bruno@clisp.org>
57031
57032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
57033         from gl_HEADER_STRING_H_BODY.
57034         (gl_HEADER_STRING_H_BODY): Require it.
57035         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
57036         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57037         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57038         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57039         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57040         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
57041         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57042         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57043         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
57044         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57045         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57046         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
57047         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57048         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57049         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57050
57051 2007-01-27  Bruno Haible  <bruno@clisp.org>
57052
57053         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
57054         check_PROGRAMS into noinst_PROGRAMS.
57055         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
57056         check_PROGRAMS in this case.
57057         (func_import): Set for_test to false.
57058         (func_create_testdir): Set for_test to true.
57059
57060 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57061             Bruno Haible  <bruno@clisp.org>
57062
57063         * modules/strcasestr (Files): Remove lib/strcasestr.h.
57064         (Depends-on): Add string.
57065         (Includes): Use <string.h> instead of strcasestr.h.
57066         * modules/string (Makefile.am): Also substitute the value of
57067         REPLACE_STRCASESTR.
57068         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
57069         assume strcasestr is declared in <string.h> not <strings.h>. Also
57070         set REPLACE_STRCASESTR.
57071         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
57072         REPLACE_STRCASESTR.
57073         * lib/strcasestr.h: Remove file.
57074         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
57075         * lib/string_.h (strcasestr): New declaration.
57076
57077 2007-01-27  Bruno Haible  <bruno@clisp.org>
57078
57079         * lib/string_.h: Use 'extern'.
57080
57081 2007-01-27  Jim Meyering  <jim@meyering.net>
57082
57083         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
57084         of set-but-not-used local, "q".
57085
57086         * lib/mempcpy.c: Include <config.h> before <string.h>.
57087         This fixes a compilation error on HP-UX, due to the system's
57088         "restrict"-using mempcpy prototype.
57089
57090 2007-01-26  Bruno Haible  <bruno@clisp.org>
57091
57092         Small optimization.
57093         * lib/javacomp.c: Include c-strstr.h.
57094          (is_envjavac_gcj): Use c_strstr instead of strstr.
57095         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
57096
57097 2007-01-26  Bruno Haible  <bruno@clisp.org>
57098
57099         * MODULES.html.sh (Unicode string functions): Add the new modules.
57100
57101         * modules/uniconv/u32-strconv-to-locale: New file.
57102         * lib/uniconv/u32-strconv-to-locale.c: New file.
57103
57104         * modules/uniconv/u16-strconv-to-locale: New file.
57105         * lib/uniconv/u16-strconv-to-locale.c: New file.
57106
57107         * modules/uniconv/u8-strconv-to-locale: New file.
57108         * lib/uniconv/u8-strconv-to-locale.c: New file.
57109
57110         * modules/uniconv/u32-strconv-from-locale: New file.
57111         * lib/uniconv/u32-strconv-from-locale.c: New file.
57112
57113         * modules/uniconv/u16-strconv-from-locale: New file.
57114         * lib/uniconv/u16-strconv-from-locale.c: New file.
57115
57116         * modules/uniconv/u8-strconv-from-locale: New file.
57117         * lib/uniconv/u8-strconv-from-locale.c: New file.
57118
57119         * modules/uniconv/u32-strconv-to-enc: New file.
57120         * lib/uniconv/u32-strconv-to-enc.c: New file.
57121         * modules/uniconv/u32-strconv-to-enc-tests: New file.
57122         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
57123
57124         * modules/uniconv/u16-strconv-to-enc: New file.
57125         * lib/uniconv/u16-strconv-to-enc.c: New file.
57126         * lib/uniconv/u-strconv-to-enc.h: New file.
57127         * modules/uniconv/u16-strconv-to-enc-tests: New file.
57128         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
57129
57130         * modules/uniconv/u8-strconv-to-enc: New file.
57131         * lib/uniconv/u8-strconv-to-enc.c: New file.
57132         * modules/uniconv/u8-strconv-to-enc-tests: New file.
57133         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
57134
57135         * modules/uniconv/u32-strconv-from-enc: New file.
57136         * lib/uniconv/u32-strconv-from-enc.c: New file.
57137         * modules/uniconv/u32-strconv-from-enc-tests: New file.
57138         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
57139
57140         * modules/uniconv/u16-strconv-from-enc: New file.
57141         * lib/uniconv/u16-strconv-from-enc.c: New file.
57142         * modules/uniconv/u16-strconv-from-enc-tests: New file.
57143         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
57144
57145         * modules/uniconv/u8-strconv-from-enc: New file.
57146         * lib/uniconv/u8-strconv-from-enc.c: New file.
57147         * lib/uniconv/u-strconv-from-enc.h: New file.
57148         * modules/uniconv/u8-strconv-from-enc-tests: New file.
57149         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
57150
57151         * modules/uniconv/u32-conv-from-enc: New file.
57152         * lib/uniconv/u32-conv-from-enc.c: New file.
57153         * modules/uniconv/u32-conv-from-enc-tests: New file.
57154         * tests/uniconv/test-u32-conv-from-enc.c: New file.
57155
57156         * modules/uniconv/u16-conv-from-enc: New file.
57157         * lib/uniconv/u16-conv-from-enc.c: New file.
57158         * lib/uniconv/u-conv-from-enc.h: New file.
57159         * modules/uniconv/u16-conv-from-enc-tests: New file.
57160         * tests/uniconv/test-u16-conv-from-enc.c: New file.
57161
57162         * modules/uniconv/u8-conv-from-enc: New file.
57163         * lib/uniconv/u8-conv-from-enc.c: New file.
57164         * modules/uniconv/u8-conv-from-enc-tests: New file.
57165         * tests/uniconv/test-u8-conv-from-enc.c: New file.
57166
57167         * modules/uniconv/base: New file.
57168         * lib/uniconv.h: New file.
57169
57170 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57171
57172         * doc/gnulib-tool.texi (Initial import): Update to match current
57173         behavior with strdup module.
57174         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
57175         * lib/memmem.h: Remove; all uses removed.  This is now done
57176         by <string.h>.
57177         * lib/mempcpy.h: Likewise.
57178         * lib/memrchr.h: Likewise.
57179         * lib/stpcpy.h: Likewise.
57180         * lib/stpncpy.h: Likewise.
57181         * lib/strcase.h: Likewise.
57182         * lib/strchrnul.h: Likewise.
57183         * lib/strdup.h: Likewise.
57184         * lib/strndup.h: Likewise.
57185         * lib/strnlen.h: Likewise.
57186         * lib/strpbrk.h: Likewise.
57187         * lib/strsep.h: Likewise.
57188         * lib/strstr.h: Likewise.
57189         * lib/strtok_r.h: Likewise.
57190         * lib/string_.h: New file.
57191         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
57192         Rely on <string.h> instead.
57193         * lib/canon-host.c: Likewise.
57194         * lib/chdir-long.c: Likewise.
57195         * lib/concatpath.c: Likewise.
57196         * lib/exclude.c: Likewise.
57197         * lib/fchdir.c: Likewise.
57198         * lib/getaddrinfo.c: Likewise.
57199         * lib/getcwd.c: Likewise.
57200         * lib/getsubopt.c: Likewise.
57201         * lib/glob.c: Likewise.
57202         * lib/hard-locale.c: Likewise.
57203         * lib/iconvme.c: Likewise.
57204         * lib/javacomp.c: Likewise.
57205         * lib/mempcpy.c: Likewise.
57206         * lib/memrchr.c: Likewise.
57207         * lib/regex_internal.h: Likewise.
57208         * lib/stpncpy.c: Likewise.
57209         * lib/strcasecmp.c: Likewise.
57210         * lib/strchrnul.c: Likewise.
57211         * lib/strdup.c: Likewise.
57212         * lib/striconv.c: Likewise.
57213         * lib/striconveh.c: Likewise.
57214         * lib/striconveha.c: Likewise.
57215         * lib/strncasecmp.c: Likewise.
57216         * lib/strndup.c: Likewise.
57217         * lib/strnlen.c: Likewise.
57218         * lib/strsep.c: Likewise.
57219         * lib/strstr.c: Likewise.
57220         * lib/strtok_r.c: Likewise.
57221         * lib/userspec.c: Likewise.
57222         * lib/w32spawn.h: Likewise.
57223         * lib/xstrndup.c: Likewise.
57224         * lib/mountlist.c (strstr): Remove decl.
57225         * m4/string_h.m4: New file.
57226         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
57227         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
57228         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
57229         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
57230         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
57231         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
57232         Set REPLACE_STRCASECMP if necessary.
57233         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
57234         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
57235         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
57236         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
57237         HAVE_DECL_STRDUP if necessary.
57238         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
57239         since gl_FUNC_STRNDUP does that now.
57240         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
57241         Check for decl here...
57242         (gl_PREREQ_STRNLEN): ... not here.
57243         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
57244         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
57245         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
57246         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
57247         necessary.
57248         * modules/string: New file.
57249         * modules/memmem (Files): Remove special-purpose include file.
57250         (Depends-on): Add string.
57251         (Include): Include <string.h>, not the removed file.
57252         * modules/mempcpy: Likewise.
57253         * modules/memrchr: Likewise.
57254         * modules/stpcpy: Likewise.
57255         * modules/stpncpy: Likewise.
57256         * modules/strcase: Likewise.
57257         * modules/strchrnul: Likewise.
57258         * modules/strdup: Likewise.
57259         * modules/strndup: Likewise.
57260         * modules/strnlen: Likewise.
57261         * modules/strpbrk: Likewise.
57262         * modules/strsep: Likewise.
57263         * modules/strstr: Likewise.
57264         * modules/strtok_r: Likewise.
57265         * tests/test-dirname.c: Don't include "strdup.h", since
57266         <string.h> now suffices.
57267         * tests/test-memmem.c: Don't include "memmem.h", since
57268         <string.h> now suffices.
57269
57270 2007-01-25  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
57273         *resultp is 0.
57274
57275         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
57276         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
57277         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
57278         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
57279
57280         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
57281         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
57282         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
57283         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
57284         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
57285         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
57286
57287 2007-01-24  Bruno Haible  <bruno@clisp.org>
57288
57289         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
57290         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
57291         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
57292         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
57293         gl_FUNC_FTS_CORE.
57294         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
57295         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
57296         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57297         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
57298         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
57299         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
57300         gl_FUNC_FCHOWNAT.
57301         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
57302         gl_FUNC_STRFTIME.
57303         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
57304         Reported by Ralf Wildenhues.
57305
57306 2007-01-24  Bruno Haible  <bruno@clisp.org>
57307
57308         Drop AC_REQUIRE calls that are redundant with the module dependencies.
57309         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
57310         gl_GETADDRINFO.
57311         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
57312         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
57313         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
57314
57315 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
57316
57317         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
57318         Don't use 'exit'; just return from 'main'.
57319         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
57320
57321         * lib/fnmatch_.h: Readjust white space and comments to match
57322         glibc, to avoid spurious diffs.
57323
57324 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57325
57326         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
57327         2004-12-01 change by Jakub Jelinek, since this code won't compile
57328         if !LIBC.  Problem reported by Bob Proulx.
57329
57330 2007-01-23  Bruno Haible  <bruno@clisp.org>
57331
57332         * lib/striconveh.c: Include c-strcaseeq.h.
57333         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
57334         * modules/striconveh (Depends-on): Add c-strcaseeq.
57335
57336 2007-01-23  Bruno Haible  <bruno@clisp.org>
57337
57338         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
57339
57340         * modules/c-strcaseeq: New file.
57341         * lib/c-strcaseeq.h: New file.
57342
57343         * modules/streq: New file.
57344         * lib/streq.h: New file.
57345
57346 2007-01-23  Bruno Haible  <bruno@clisp.org>
57347
57348         * modules/striconveha-tests: New file.
57349         * tests/test-striconveha.c: New file.
57350
57351         * lib/striconveha.h: Include <stdbool.h>.
57352         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
57353         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
57354         (mem_iconveha_notranslit): Renamed from mem_iconveha.
57355         (mem_iconveha): New function.
57356         (str_iconveha_notranslit): Renamed from str_iconveha.
57357         (str_iconveha): New function.
57358         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
57359         c-strcase.
57360
57361 2007-01-23  Bruno Haible  <bruno@clisp.org>
57362
57363         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
57364         encodings without forgiving before trying any encoding with handler.
57365         (str_iconveha): Try all encodings without forgiving before trying any
57366         encoding with handler.
57367
57368 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57369
57370         Import the following changes from libc.
57371
57372         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57373
57374         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
57375
57376         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57377
57378         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
57379         normal_bracket label.
57380
57381         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
57382
57383         [BZ #361]
57384         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
57385         to normal_bracket after fetching the next character.
57386
57387 2007-01-22  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
57390         argument.
57391         * lib/striconveh.c (iconv_carefully_1): New function.
57392         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
57393         argument.
57394         (str_cd_iconveh): Update.
57395         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
57396         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
57397         * tests/test-striconveh.c (MAGIC): New macro.
57398         (new_offsets): New function.
57399         (main): Test call with and without offsets.
57400
57401 2007-01-22  Bruno Haible  <bruno@clisp.org>
57402
57403         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57404         * modules/sys_select (Makefile.am): Likewise.
57405         * modules/sys_socket (Makefile.am): Likewise.
57406         * modules/sys_time (Makefile.am): Likewise.
57407
57408 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57409
57410         * modules/gettimeofday (License): Change from GPL to LGPL, since
57411         gettimeofday is a library function.
57412
57413 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57414
57415         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57416
57417 2007-01-21  Bruno Haible  <bruno@clisp.org>
57418
57419         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57420
57421 2007-01-21  Bruno Haible  <bruno@clisp.org>
57422
57423         * modules/striconveha: New file.
57424         * lib/striconveha.h: New file.
57425         * lib/striconveha.c: New file.
57426         * MODULES.html.sh (Internationalization functions): Add striconveha.
57427         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57428         string.
57429         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57430
57431 2007-01-21  Bruno Haible  <bruno@clisp.org>
57432
57433         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57434         * lib/striconveh.c (str_iconveh): Likewise.
57435
57436 2007-01-21  Bruno Haible  <bruno@clisp.org>
57437
57438         * lib/striconveh.h (mem_iconveh): New declaration.
57439         * lib/striconveh.c (mem_iconveh): New function.
57440         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57441
57442 2007-01-21  Bruno Haible  <bruno@clisp.org>
57443
57444         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57445
57446         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57447         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57448         original result buffer.
57449         (str_cd_iconveh): Update.
57450         * tests/test-striconveh.c (main): Update.
57451
57452         * lib/striconv.h (mem_cd_iconv): Change specification.
57453         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57454         result buffer.
57455         (str_cd_iconv): Update.
57456         * tests/test-striconv.c (main): Update.
57457
57458 2007-01-21  Bruno Haible  <bruno@clisp.org>
57459
57460         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57461
57462 2007-01-20  Jim Meyering  <jim@meyering.net>
57463
57464         * lib/userspec.c (parse_with_separator): If a user or group string
57465         starts with "+", skip the corresponding name-to-ID look-up, since
57466         such a look-up must fail: user and group names may not include "+".
57467
57468 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57469
57470         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57471         since we now assume the sys_time module.
57472         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57473         check for sys/time.h; no longer needed.
57474         * modules/poll (Depends-on): Depend on sys_time.
57475
57476 2007-01-18  Bruno Haible  <bruno@clisp.org>
57477
57478         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57479         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57480
57481         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57482         gettimeofday.
57483
57484         * tests/test-gettimeofday.c: Include <time.h>.
57485         (dummy): Remove variable.
57486
57487         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57488         gl_HEADER_SYS_TIME_H.
57489         (gl_HEADER_SYS_TIME_H): New macro.
57490
57491         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57492         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57493         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57494         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57495         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57496         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57497         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57498         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57499         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57500         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57501         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57502
57503         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57504         last change; it caused a compilation error when cross-compiling to
57505         Cygwin.
57506
57507 2007-01-18  Jim Meyering  <jim@meyering.net>
57508
57509         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57510         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57511         than the race-prone "test -d sys || mkdir sys".
57512         (configure.ac): Use AC_PROG_MKDIR_P.
57513         * modules/sys_select: Likewise.
57514         * modules/sys_socket: Likewise.
57515         * modules/sys_time: Likewise.
57516
57517 2007-01-18  Eric Blake  <ebb9@byu.net>
57518
57519         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57520         replace gettimeofday.
57521         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57522         name, to avoid infinite recursion.
57523
57524 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57525
57526         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57527         module sys_time.
57528         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57529         assume timespec.h defines struct timeval.
57530         * lib/settime.c: Likewise.
57531         * lib/utimens.c: Likewise.
57532         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57533         since we now assume the gettimeofday module.
57534         * lib/tempname.c (__gen_tempname): Likewise.
57535         * lib/gettimeofday.h: Remove.
57536         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57537         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57538         Include <time.h>, for 'time()'.
57539         (localtime_buffer_addr): Also use this workaround if
57540         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57541         to simplify the uses.  All uses changed.
57542         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57543         that #undef is inside {}, and 'const' follows type name consistently.
57544         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57545         (gettimeofday): Do not use the maximum possible value for
57546         tv->tv_usec, since that might break usages other than ls.c.
57547         Instead, we'll leave ls.c alone.  This undoes today's patch
57548         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57549         we've never observed the problem but might as well keep the
57550         canary.
57551         * lib/nanosleep.c: Include timespec.h first, for interface check.
57552         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57553         now assume the sys_time module.
57554         * lib/tempname.c: Likewise.
57555         * lib/timespec.h: Likewise.
57556         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57557         needed.
57558         * lib/strftime.c: Likewise.
57559         * lib/timespec.h: Likewise.
57560         * lib/posixtm.c: Include posixtm.h first, for interface check.
57561         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57562         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57563         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57564         * lib/sys_time_.h: New file.
57565         * lib/timespec.h (struct timespec): Use long int, not long.
57566         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57567         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57568         Remove obsolescent call to AC_HEADER_TIME.
57569         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57571         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57572         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57573         Likewise.
57574         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57575         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57576         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57577         into the sys_time module.  Check for gettimeofday just once.
57578         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57579         for gettimeofday signature to just check the signature.  Merely
57580         compile it, since linking doesn't test signature.  Improve test for
57581         whether gettimeofday.o is actually needed.
57582         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57583         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57584         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57585         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57586         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57587         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57588         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57589         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57590         than worrying about sys/time.h.
57591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57592         Don't bother worrying about TIME_WITH_SYS_TIME.
57593         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57594         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57595         * m4/sys_time_h.m4: New file.
57596         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57597         Don't include sys/time.h.  Return from main rather than exiting.
57598         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57599         all uses changed.
57600         * modules/gethrxtime (Depends-on): Add sys_time.
57601         * modules/gettime (Depends-on): Likewise.
57602         * modules/gettimeofday (Depends-on): Likewise.
57603         * modules/nanosleep (Depends-on): Likewise.
57604         * modules/settime (Depends-on): Likewise.
57605         * modules/tempname (Depends-on): Likewise.
57606         * modules/utimens (Depends-on): Likewise.
57607         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57608         (Include): Change back to <sys/time.h>.
57609         (Maintainer): Add self.
57610         * modules/sys_time: New file.
57611         * modules/tempname (Depends-on): Add gettimeofday.
57612         * tests/test-gettimeofday.c: Include <sys/time.h>
57613         rather than gettimeofday.h.
57614
57615 2007-01-17  Bruno Haible  <bruno@clisp.org>
57616
57617         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57618         the license default to GPL.
57619         (func_create_testdir): Don't complain if a module is LGPL and its
57620         tests module depends on GPLed modules.
57621
57622 2007-01-17  Bruno Haible  <bruno@clisp.org>
57623
57624         * lib/gettimeofday.c (gettimeofday): Add code for the case
57625         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57626         maximum possible value for tv->tv_usec, rather than the minimum one.
57627
57628 2005-10-08  Martin Lambers  <marlam@marlam.de>
57629 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57630 2007-01-16  Bruno Haible  <bruno@clisp.org>
57631
57632         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57633         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57634         gl_FUNC_GETTIMEOFDAY.
57635         (Include): Add gettimeofday.h.
57636         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57637         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57638         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57639         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57640         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57641         * lib/gettimeofday.h: New file.
57642         * lib/gettimeofday.c: Include <sys/timeb.h>.
57643         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57644         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57645         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57646         fall back on time().
57647
57648         * tests/test-gettimeofday.c: New file.
57649         * modules/gettimeofday-tests: New file.
57650
57651 2007-01-16  Eric Blake  <ebb9@byu.net>
57652
57653         * modules/fnmatch (Depends-on): Depend on wchar.
57654         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57655         * m4/fnmatch.m4: Likewise.
57656         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57657         * m4/mbchar.m4: Likewise.
57658         * modules/mbswidth (Depends-on): Depend on wchar.
57659         * lib/mbswidth.c: Assume <wchar.h>.
57660         * m4/mbswidth.m4: Likewise.
57661         * modules/quotearg (Depends-on): Depend on wchar.
57662         * lib/quotearg.c: Assume <wchar.h>.
57663         * m4/quotearg.m4: Likewise.
57664         * modules/regex (Depends-on): Depend on wchar.
57665         * lib/regex_internal.h: Assume <wchar.h>.
57666         * m4/regex.m4: Likewise.
57667         * modules/stdint (Depends-on): Depend on wchar.
57668         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57669         * m4/stdint.m4: Likewise.
57670         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57671         * modules/strftime (Depends-on): Depend on wchar.
57672         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57673         * modules/strtol (Depends-on): Depend on wchar.
57674         * lib/strtol.c: Assume <wchar.h>.
57675         * modules/wcwidth (Depends-on): Depend on wchar.
57676         * lib/wcwidth.h: Assume <wchar.h>.
57677         * m4/wcwidth.m4: Likewise.
57678
57679 2007-01-16  Bruno Haible  <bruno@clisp.org>
57680
57681         * modules/csharpexec-script: New, created from...
57682         * modules/csharpexec: ... this.
57683
57684 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57685
57686         * modules/javaexec-script: New, created from...
57687         * modules/javaexec: ... this.
57688
57689 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57690
57691         * modules/poll (Dependencies): Add sys_select.
57692
57693 2007-01-15  Jim Meyering  <jim@meyering.net>
57694
57695         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57696         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57697         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57698         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57699
57700 2007-01-15  Bruno Haible  <bruno@clisp.org>
57701
57702         * modules/striconveh: New file.
57703         * lib/striconveh.h: New file.
57704         * lib/striconveh.c: New file.
57705         * MODULES.html.sh (Internationalization functions): Add striconveh.
57706
57707         * modules/striconveh-tests: New file.
57708         * tests/test-striconveh.c: New file.
57709
57710 2007-01-15  Bruno Haible  <bruno@clisp.org>
57711
57712         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57713         not from GNU libiconv or GNU libc.
57714
57715 2007-01-15  Bruno Haible  <bruno@clisp.org>
57716
57717         * doc/gnulib-intro.texi (Copyright): Explain the different license
57718         terms for module descriptions, autoconf macros, tests, documentation.
57719
57720 2007-01-14  Bruno Haible  <bruno@clisp.org>
57721
57722         * modules/striconv-tests: New file.
57723         * tests/test-striconv.c: New file.
57724
57725 2007-01-14  Bruno Haible  <bruno@clisp.org>
57726
57727         * modules/iconv-tests: New file.
57728         * tests/test-iconv.c: New file.
57729
57730 2007-01-14  Bruno Haible  <bruno@clisp.org>
57731
57732         * gnulib-tool (func_get_license): For test modules, use the license of
57733         the main module.
57734
57735 2007-01-14  Bruno Haible  <bruno@clisp.org>
57736
57737         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57738         if iconv is found to exist.
57739
57740 2007-01-14  Bruno Haible  <bruno@clisp.org>
57741
57742         * modules/c-ctype-tests: New file.
57743         * tests/test-c-ctype.c: New file.
57744
57745 2007-01-14  Bruno Haible  <bruno@clisp.org>
57746
57747         * modules/binary-io-tests: New file.
57748         * tests/test-binary-io.sh: New file.
57749         * tests/test-binary-io.c: New file.
57750
57751 2007-01-14  Bruno Haible  <bruno@clisp.org>
57752
57753         * modules/array-oset-tests: New file.
57754         * tests/test-array_oset.c: New file.
57755
57756 2007-01-14  Bruno Haible  <bruno@clisp.org>
57757
57758         * modules/array-list-tests: New file.
57759         * tests/test-array_list.c: New file.
57760
57761 2007-01-14  Bruno Haible  <bruno@clisp.org>
57762
57763         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57764         and make.
57765         Reported by Simon Josefsson in
57766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57767
57768 2007-01-14  Bruno Haible  <bruno@clisp.org>
57769
57770         * modules/allocsa-tests: New file.
57771         * tests/test-allocsa.c: New file.
57772
57773 2007-01-14  Bruno Haible  <bruno@clisp.org>
57774
57775         * modules/fchdir (Depends-on): Add absolute-header.
57776         * modules/unistd (Depends-on): Likewise.
57777
57778 2006-12-30  Bruno Haible  <bruno@clisp.org>
57779
57780         * modules/fchdir: New file.
57781         * modules/unistd (Files): Add lib/unistd_.h.
57782         (Makefile.am): Generate unistd.h from unistd_.h.
57783         * lib/fchdir.c: New file.
57784         * lib/dirent_.h: New file.
57785         * lib/unistd_.h: New file.
57786         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57787         * m4/fchdir.m4: New file.
57788         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57789         (gl_HEADER_UNISTD): Invoke it.
57790         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57791         function.
57792         * lib/backupfile.c (opendir, closedir): Undefine.
57793         * lib/chown.c (open, close): Undefine.
57794         * lib/clean-temp.c (open, close): Undefine.
57795         * lib/copy-file.c (open, close): Undefine.
57796         * lib/execute.c (open, close): Undefine.
57797         * lib/fsusage.c (open, close): Undefine.
57798         * lib/gc-gnulib.c (open, close): Undefine.
57799         * lib/getcwd.c (opendir, closedir): Undefine.
57800         * lib/glob.c (opendir, closedir): Undefine.
57801         * lib/javacomp.c (open, close): Undefine.
57802         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57803         * lib/openat-proc.c (open, close): Undefine.
57804         * lib/pagealign_alloc.c (open, close): Undefine.
57805         * lib/pipe.c (open, close): Undefine.
57806         * lib/progreloc.c (open, close): Undefine.
57807         * lib/savedir.c (opendir, closedir): Undefine.
57808         * lib/utime.c (open, close): Undefine.
57809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57810
57811 2007-01-10  Bruno Haible  <bruno@clisp.org>
57812
57813         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57814
57815 2007-01-12  Eric Blake  <ebb9@byu.net>
57816
57817         Provide a robust <wchar.h>.  Further simplifications are now
57818         possible in other modules, but not included here.
57819         * modules/wchar: New module.
57820         * m4/wchar.m4: New file.
57821         * lib/wchar_.h: Likewise.
57822         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57823         of the new module.
57824         * MODULES.html.sh (Extended multibyte and wide character utilities):
57825         New section.
57826
57827 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57828
57829         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57830         to a reasonable default for memory allocation.
57831         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57832         file system that reports garbage st_size values for symlinks.
57833         Problem reported by Liyang Hu.
57834
57835 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57836
57837         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57838         Emacs .#* auto-save files).
57839
57840 2007-01-11  Bruno Haible  <bruno@clisp.org>
57841
57842         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57843         directory.
57844
57845 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57846
57847         Use @...@ consistently in lib/wctype_.h.
57848         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57849         on it being set to 1 or 0.
57850         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57851         go back to AC_SUBSTing it.
57852         * modules/wctype (Makefile.am): Undo previous change.
57853
57854 2007-01-10  Eric Blake  <ebb9@byu.net>
57855
57856         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57857         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57858         * modules/wctype (Makefile.am): Likewise.
57859         Reported by Chris McGuire.
57860
57861 2007-01-10  Jim Meyering  <jim@meyering.net>
57862
57863         fts.c: a small readability/maintainability improvement
57864         * lib/fts.c (fts_read): Make this code slightly more readable and
57865         maintainable by hoisting the "sp->fts_cur = p" assignments to
57866         immediately follow the statements that set P.  Derived from
57867         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57868
57869 2007-01-10  Eric Blake  <ebb9@byu.net>
57870
57871         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57872         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57874         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57875         Reported by Chris McGuire.
57876
57877 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57878
57879         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57880         in sed script.
57881
57882 2007-01-09  Bruno Haible  <bruno@clisp.org>
57883
57884         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57885         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57886         variables.
57887         (func_module): Use them.
57888
57889 2007-01-09  Bruno Haible  <bruno@clisp.org>
57890
57891         * modules/unistr/base: New file.
57892         * lib/unistr.h: New file.
57893
57894         * modules/unistr/u8-to-u16: New file.
57895         * lib/unistr/u8-to-u16.c: New file.
57896
57897         * modules/unistr/u8-to-u32: New file.
57898         * lib/unistr/u8-to-u32.c: New file.
57899
57900         * modules/unistr/u16-to-u8: New file.
57901         * lib/unistr/u16-to-u8.c: New file.
57902
57903         * modules/unistr/u16-to-u32: New file.
57904         * lib/unistr/u16-to-u32.c: New file.
57905
57906         * modules/unistr/u32-to-u8: New file.
57907         * lib/unistr/u32-to-u8.c: New file.
57908
57909         * modules/unistr/u32-to-u16: New file.
57910         * lib/unistr/u32-to-u16.c: New file.
57911
57912         * modules/unistr/u8-check: New file.
57913         * modules/unistr/u16-check: New file.
57914         * modules/unistr/u32-check: New file.
57915         * lib/unistr/u8-check.c: New file.
57916         * lib/unistr/u16-check.c: New file.
57917         * lib/unistr/u32-check.c: New file.
57918
57919         * modules/unistr/u8-chr: New file.
57920         * modules/unistr/u16-chr: New file.
57921         * modules/unistr/u32-chr: New file.
57922         * lib/unistr/u8-chr.c: New file.
57923         * lib/unistr/u16-chr.c: New file.
57924         * lib/unistr/u32-chr.c: New file.
57925
57926         * modules/unistr/u8-cmp: New file.
57927         * modules/unistr/u16-cmp: New file.
57928         * modules/unistr/u32-cmp: New file.
57929         * lib/unistr/u8-cmp.c: New file.
57930         * lib/unistr/u16-cmp.c: New file.
57931         * lib/unistr/u32-cmp.c: New file.
57932
57933         * modules/unistr/u8-cpy: New file.
57934         * modules/unistr/u16-cpy: New file.
57935         * modules/unistr/u32-cpy: New file.
57936         * lib/unistr/u8-cpy.c: New file.
57937         * lib/unistr/u16-cpy.c: New file.
57938         * lib/unistr/u32-cpy.c: New file.
57939         * lib/unistr/u-cpy.h: New file.
57940
57941         * modules/unistr/u8-cpy-alloc: New file.
57942         * modules/unistr/u16-cpy-alloc: New file.
57943         * modules/unistr/u32-cpy-alloc: New file.
57944         * lib/unistr/u8-cpy-alloc.c: New file.
57945         * lib/unistr/u16-cpy-alloc.c: New file.
57946         * lib/unistr/u32-cpy-alloc.c: New file.
57947         * lib/unistr/u-cpy-alloc.h: New file.
57948
57949         * modules/unistr/u8-endswith: New file.
57950         * modules/unistr/u16-endswith: New file.
57951         * modules/unistr/u32-endswith: New file.
57952         * lib/unistr/u8-endswith.c: New file.
57953         * lib/unistr/u16-endswith.c: New file.
57954         * lib/unistr/u32-endswith.c: New file.
57955         * lib/unistr/u-endswith.h: New file.
57956
57957         * modules/unistr/u8-mblen: New file.
57958         * modules/unistr/u16-mblen: New file.
57959         * modules/unistr/u32-mblen: New file.
57960         * lib/unistr/u8-mblen.c: New file.
57961         * lib/unistr/u16-mblen.c: New file.
57962         * lib/unistr/u32-mblen.c: New file.
57963
57964         * modules/unistr/u8-mbtouc: New file.
57965         * modules/unistr/u16-mbtouc: New file.
57966         * modules/unistr/u32-mbtouc: New file.
57967         * lib/unistr/u8-mbtouc.c: New file.
57968         * lib/unistr/u16-mbtouc.c: New file.
57969         * lib/unistr/u32-mbtouc.c: New file.
57970
57971         * modules/unistr/u8-mbtouc-safe: New file.
57972         * modules/unistr/u16-mbtouc-safe: New file.
57973         * modules/unistr/u32-mbtouc-safe: New file.
57974         * lib/unistr/u8-mbtouc-safe.c: New file.
57975         * lib/unistr/u16-mbtouc-safe.c: New file.
57976         * lib/unistr/u32-mbtouc-safe.c: New file.
57977
57978         * modules/unistr/u8-move: New file.
57979         * modules/unistr/u16-move: New file.
57980         * modules/unistr/u32-move: New file.
57981         * lib/unistr/u8-move.c: New file.
57982         * lib/unistr/u16-move.c: New file.
57983         * lib/unistr/u32-move.c: New file.
57984         * lib/unistr/u-move.h: New file.
57985
57986         * modules/unistr/u8-next: New file.
57987         * modules/unistr/u16-next: New file.
57988         * modules/unistr/u32-next: New file.
57989         * lib/unistr/u8-next.c: New file.
57990         * lib/unistr/u16-next.c: New file.
57991         * lib/unistr/u32-next.c: New file.
57992
57993         * modules/unistr/u8-prev: New file.
57994         * modules/unistr/u16-prev: New file.
57995         * modules/unistr/u32-prev: New file.
57996         * lib/unistr/u8-prev.c: New file.
57997         * lib/unistr/u16-prev.c: New file.
57998         * lib/unistr/u32-prev.c: New file.
57999
58000         * modules/unistr/u8-set: New file.
58001         * modules/unistr/u16-set: New file.
58002         * modules/unistr/u32-set: New file.
58003         * lib/unistr/u8-set.c: New file.
58004         * lib/unistr/u16-set.c: New file.
58005         * lib/unistr/u32-set.c: New file.
58006         * lib/unistr/u-set.h: New file.
58007
58008         * modules/unistr/u8-startswith: New file.
58009         * modules/unistr/u16-startswith: New file.
58010         * modules/unistr/u32-startswith: New file.
58011         * lib/unistr/u8-startswith.c: New file.
58012         * lib/unistr/u16-startswith.c: New file.
58013         * lib/unistr/u32-startswith.c: New file.
58014         * lib/unistr/u-startswith.h: New file.
58015
58016         * modules/unistr/u8-stpcpy: New file.
58017         * modules/unistr/u16-stpcpy: New file.
58018         * modules/unistr/u32-stpcpy: New file.
58019         * lib/unistr/u8-stpcpy.c: New file.
58020         * lib/unistr/u16-stpcpy.c: New file.
58021         * lib/unistr/u32-stpcpy.c: New file.
58022         * lib/unistr/u-stpcpy.h: New file.
58023
58024         * modules/unistr/u8-stpncpy: New file.
58025         * modules/unistr/u16-stpncpy: New file.
58026         * modules/unistr/u32-stpncpy: New file.
58027         * lib/unistr/u8-stpncpy.c: New file.
58028         * lib/unistr/u16-stpncpy.c: New file.
58029         * lib/unistr/u32-stpncpy.c: New file.
58030         * lib/unistr/u-stpncpy.h: New file.
58031
58032         * modules/unistr/u8-strcat: New file.
58033         * modules/unistr/u16-strcat: New file.
58034         * modules/unistr/u32-strcat: New file.
58035         * lib/unistr/u8-strcat.c: New file.
58036         * lib/unistr/u16-strcat.c: New file.
58037         * lib/unistr/u32-strcat.c: New file.
58038         * lib/unistr/u-strcat.h: New file.
58039
58040         * modules/unistr/u8-strchr: New file.
58041         * modules/unistr/u16-strchr: New file.
58042         * modules/unistr/u32-strchr: New file.
58043         * lib/unistr/u8-strchr.c: New file.
58044         * lib/unistr/u16-strchr.c: New file.
58045         * lib/unistr/u32-strchr.c: New file.
58046
58047         * modules/unistr/u8-strcmp: New file.
58048         * modules/unistr/u16-strcmp: New file.
58049         * modules/unistr/u32-strcmp: New file.
58050         * lib/unistr/u8-strcmp.c: New file.
58051         * lib/unistr/u16-strcmp.c: New file.
58052         * lib/unistr/u32-strcmp.c: New file.
58053
58054         * modules/unistr/u8-strcpy: New file.
58055         * modules/unistr/u16-strcpy: New file.
58056         * modules/unistr/u32-strcpy: New file.
58057         * lib/unistr/u8-strcpy.c: New file.
58058         * lib/unistr/u16-strcpy.c: New file.
58059         * lib/unistr/u32-strcpy.c: New file.
58060         * lib/unistr/u-strcpy.h: New file.
58061
58062         * modules/unistr/u8-strcspn: New file.
58063         * modules/unistr/u16-strcspn: New file.
58064         * modules/unistr/u32-strcspn: New file.
58065         * lib/unistr/u8-strcspn.c: New file.
58066         * lib/unistr/u16-strcspn.c: New file.
58067         * lib/unistr/u32-strcspn.c: New file.
58068         * lib/unistr/u-strcspn.h: New file.
58069
58070         * modules/unistr/u8-strdup: New file.
58071         * modules/unistr/u16-strdup: New file.
58072         * modules/unistr/u32-strdup: New file.
58073         * lib/unistr/u8-strdup.c: New file.
58074         * lib/unistr/u16-strdup.c: New file.
58075         * lib/unistr/u32-strdup.c: New file.
58076         * lib/unistr/u-strdup.h: New file.
58077
58078         * modules/unistr/u8-strlen: New file.
58079         * modules/unistr/u16-strlen: New file.
58080         * modules/unistr/u32-strlen: New file.
58081         * lib/unistr/u8-strlen.c: New file.
58082         * lib/unistr/u16-strlen.c: New file.
58083         * lib/unistr/u32-strlen.c: New file.
58084         * lib/unistr/u-strlen.h: New file.
58085
58086         * modules/unistr/u8-strmblen: New file.
58087         * modules/unistr/u16-strmblen: New file.
58088         * modules/unistr/u32-strmblen: New file.
58089         * lib/unistr/u8-strmblen.c: New file.
58090         * lib/unistr/u16-strmblen.c: New file.
58091         * lib/unistr/u32-strmblen.c: New file.
58092
58093         * modules/unistr/u8-strmbtouc: New file.
58094         * modules/unistr/u16-strmbtouc: New file.
58095         * modules/unistr/u32-strmbtouc: New file.
58096         * lib/unistr/u8-strmbtouc.c: New file.
58097         * lib/unistr/u16-strmbtouc.c: New file.
58098         * lib/unistr/u32-strmbtouc.c: New file.
58099
58100         * modules/unistr/u8-strncat: New file.
58101         * modules/unistr/u16-strncat: New file.
58102         * modules/unistr/u32-strncat: New file.
58103         * lib/unistr/u8-strncat.c: New file.
58104         * lib/unistr/u16-strncat.c: New file.
58105         * lib/unistr/u32-strncat.c: New file.
58106         * lib/unistr/u-strncat.h: New file.
58107
58108         * modules/unistr/u8-strncmp: New file.
58109         * modules/unistr/u16-strncmp: New file.
58110         * modules/unistr/u32-strncmp: New file.
58111         * lib/unistr/u8-strncmp.c: New file.
58112         * lib/unistr/u16-strncmp.c: New file.
58113         * lib/unistr/u32-strncmp.c: New file.
58114
58115         * modules/unistr/u8-strncpy: New file.
58116         * modules/unistr/u16-strncpy: New file.
58117         * modules/unistr/u32-strncpy: New file.
58118         * lib/unistr/u8-strncpy.c: New file.
58119         * lib/unistr/u16-strncpy.c: New file.
58120         * lib/unistr/u32-strncpy.c: New file.
58121         * lib/unistr/u-strncpy.h: New file.
58122
58123         * modules/unistr/u8-strnlen: New file.
58124         * modules/unistr/u16-strnlen: New file.
58125         * modules/unistr/u32-strnlen: New file.
58126         * lib/unistr/u8-strnlen.c: New file.
58127         * lib/unistr/u16-strnlen.c: New file.
58128         * lib/unistr/u32-strnlen.c: New file.
58129         * lib/unistr/u-strnlen.h: New file.
58130
58131         * modules/unistr/u8-strpbrk: New file.
58132         * modules/unistr/u16-strpbrk: New file.
58133         * modules/unistr/u32-strpbrk: New file.
58134         * lib/unistr/u8-strpbrk.c: New file.
58135         * lib/unistr/u16-strpbrk.c: New file.
58136         * lib/unistr/u32-strpbrk.c: New file.
58137         * lib/unistr/u-strpbrk.h: New file.
58138
58139         * modules/unistr/u8-strrchr: New file.
58140         * modules/unistr/u16-strrchr: New file.
58141         * modules/unistr/u32-strrchr: New file.
58142         * lib/unistr/u8-strrchr.c: New file.
58143         * lib/unistr/u16-strrchr.c: New file.
58144         * lib/unistr/u32-strrchr.c: New file.
58145
58146         * modules/unistr/u8-strspn: New file.
58147         * modules/unistr/u16-strspn: New file.
58148         * modules/unistr/u32-strspn: New file.
58149         * lib/unistr/u8-strspn.c: New file.
58150         * lib/unistr/u16-strspn.c: New file.
58151         * lib/unistr/u32-strspn.c: New file.
58152         * lib/unistr/u-strspn.h: New file.
58153
58154         * modules/unistr/u8-strstr: New file.
58155         * modules/unistr/u16-strstr: New file.
58156         * modules/unistr/u32-strstr: New file.
58157         * lib/unistr/u8-strstr.c: New file.
58158         * lib/unistr/u16-strstr.c: New file.
58159         * lib/unistr/u32-strstr.c: New file.
58160         * lib/unistr/u-strstr.h: New file.
58161
58162         * modules/unistr/u8-strtok: New file.
58163         * modules/unistr/u16-strtok: New file.
58164         * modules/unistr/u32-strtok: New file.
58165         * lib/unistr/u8-strtok.c: New file.
58166         * lib/unistr/u16-strtok.c: New file.
58167         * lib/unistr/u32-strtok.c: New file.
58168         * lib/unistr/u-strtok.h: New file.
58169
58170         * modules/unistr/u8-uctomb: New file.
58171         * modules/unistr/u16-uctomb: New file.
58172         * modules/unistr/u32-uctomb: New file.
58173         * lib/unistr/u8-uctomb.c: New file.
58174         * lib/unistr/u16-uctomb.c: New file.
58175         * lib/unistr/u32-uctomb.c: New file.
58176
58177         * MODULES.html.sh (Unicode string functions): Add the new modules.
58178
58179 2007-01-08  Bruno Haible  <bruno@clisp.org>
58180
58181         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
58182         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
58183         subdirectories.
58184
58185 2007-01-08  Karl Berry  <karl@gnu.org>
58186
58187         * doc/error.texi: mention that main() fns must set program_name
58188         when progname is used.
58189
58190 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
58191
58192         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
58193         WCTYPE_H is empty, for the benefit of builds from non-distclean
58194         directories.  Problem reported by Eric Blake in
58195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
58196
58197 2007-01-08  Bruno Haible  <bruno@clisp.org>
58198
58199         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
58200         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
58201         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
58202         PROVIDE_CANONICALIZE_FILENAME_MODE.
58203         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
58204
58205 2007-01-08  Bruno Haible  <bruno@clisp.org>
58206
58207         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
58208         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
58209         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
58210         * lib/fts.c: Likewise.
58211         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
58212
58213 2006-12-25  Bruno Haible  <bruno@clisp.org>
58214
58215         * modules/utf8-ucs4-safe: New file.
58216         * lib/utf8-ucs4-safe.h: New file.
58217         * lib/unistr/utf8-ucs4-safe.c: New file.
58218
58219         * modules/utf16-ucs4-safe: New file.
58220         * lib/utf16-ucs4-safe.h: New file.
58221         * lib/unistr/utf16-ucs4-safe.c: New file.
58222
58223         * MODULES.html.sh (Unicode string functions): Add the new modules.
58224
58225 2007-01-08  Bruno Haible  <bruno@clisp.org>
58226
58227         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
58228         (Depends-on): Add unitypes.
58229         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58230         (u8_mbtouc_aux): Move out to separate file.
58231         (u8_mbtouc): Use ucs4_t, uint8_t types.
58232         * lib/unistr/utf8-ucs4.c: New file.
58233
58234         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
58235         (Depends-on): Add unitypes.
58236         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58237         (u16_mbtouc_aux): Move out to separate file.
58238         (u16_mbtouc): Use ucs4_t, uint16_t types.
58239         * lib/unistr/utf16-ucs4.c: New file.
58240
58241         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
58242         (Depends-on): Add unitypes.
58243         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58244         (u8_uctomb_aux): Move out to separate file.
58245         (u8_uctomb): Use ucs4_t, uint8_t types.
58246         * lib/unistr/ucs4-utf8.c: New file.
58247
58248         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
58249         (Depends-on): Add unitypes.
58250         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
58251         (u16_uctomb_aux): Move out to separate file.
58252         (u16_uctomb): Use ucs4_t, uint16_t types.
58253         * lib/unistr/ucs4-utf16.c: New file.
58254
58255 2006-12-25  Bruno Haible  <bruno@clisp.org>
58256
58257         * modules/unitypes: New file.
58258         * lib/unitypes.h: New file.
58259         * MODULES.html.sh (func_all_modules): New section "Unicode string
58260         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
58261         this section. Add unitypes.
58262
58263 2007-01-08  Bruno Haible  <bruno@clisp.org>
58264
58265         Avoid variable names that conflict with those from libtool.
58266         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
58267         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
58268         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
58269         library_names_spec to acl_library_names_spec, hardcode_* to
58270         acl_hardcode_*.
58271         Reported by Ralf Wildenhues.
58272
58273 2007-01-08  Bruno Haible  <bruno@clisp.org>
58274
58275         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
58276         definition.
58277         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
58278         definition.
58279         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58280         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
58281         definition.
58282         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
58283         definition.
58284         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
58285         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
58286         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
58287         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
58288         definition.
58289         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
58290         definition.
58291         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
58292         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
58293         GC_USE_<algorithm>.
58294         * lib/gc-libgcrypt.c: Likewise.
58295         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
58296         * modules/gc-arctwo (configure.ac): Likewise.
58297         * modules/gc-des (configure.ac): Likewise.
58298         * modules/gc-hmac-md5 (configure.ac): Likewise.
58299         * modules/gc-hmac-sha1 (configure.ac): Likewise.
58300         * modules/gc-md2 (configure.ac): Likewise.
58301         * modules/gc-md4 (configure.ac): Likewise.
58302         * modules/gc-md5 (configure.ac): Likewise.
58303         * modules/gc-random (configure.ac): Likewise.
58304         * modules/gc-rijndael (configure.ac): Likewise.
58305         * modules/gc-sha1 (configure.ac): Likewise.
58306
58307 2007-01-08  Bruno Haible  <bruno@clisp.org>
58308
58309         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
58310         macro definition.
58311         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
58312         definition.
58313         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
58314         definition.
58315         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
58316         * modules/fcntl-safer (configure.ac): Likewise.
58317         * modules/fopen-safer (configure.ac): Likewise.
58318         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
58319         GNULIB_FWRITEERROR macro definition.
58320
58321 2007-01-08  Bruno Haible  <bruno@clisp.org>
58322
58323         * m4/gnulib-common.m4: New file.
58324         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
58325         (func_get_filelist): Add m4/gnulib-common.m4.
58326
58327 2007-01-08  Bruno Haible  <bruno@clisp.org>
58328
58329         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
58330         command.
58331
58332 2007-01-08  Jim Meyering  <jim@meyering.net>
58333
58334         Use a more robust test for a "can't happen" condition.
58335         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
58336         narrowed the st_size value.  Presuming the "can't happen" condition
58337         is true, that narrowing could conceivably convert an invalid st_size
58338         value into a valid one.  Instead, use a change based on Matthew
58339         Woehlke's original patch.
58340
58341         Slight readability improvement: use an assert-like macro
58342         in place of literal "abort ()" uses.
58343         * lib/fts.c (fts_assert): Define.
58344         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
58345         Use this macro instead of a bare 'abort'.
58346
58347 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
58348
58349         Don't worry about using IRIX 5.3's wctype.h broken definitions;
58350         simply work around them.
58351         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
58352         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
58353         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
58354         declaring.
58355         Don't bother to define as macros, since the standard doesn't require it.
58356         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
58357         longer worry about IRIX 5.3.
58358         (HAVE_WCTYPE_CTMP_BUG): Remove.
58359
58360 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58361
58362         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
58363         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
58364         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58365         Problems reported by Georg Schwarz for IRIX 5.3.
58366
58367         * gnulib-tool (autoconf_minversion): Take the maximum version number
58368         found, not the minimum.  Problem reported by James Youngman.
58369
58370 2007-01-03  Karl Berry  <karl@gnu.org>
58371
58372         * doc/error.texi: new file, explaining interaction with progname.
58373         * doc/gnulib.texi: include it.  Update copyright.
58374
58375 2007-01-03  Simon Josefsson  <simon@josefsson.org>
58376
58377         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
58378         AC_CANONICAL_HOST, to improve autobuild outputs.
58379
58380 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
58381             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58382
58383         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
58384         sockets, server sockets, and other file descriptors.  Count errors
58385         to compute the return value.  Reorder the code a bit to be easier
58386         to follow.  Don't set event bits that were not requested (except
58387         POLLERR and POLLHUP).
58388
58389 2007-01-01  Bruno Haible  <bruno@clisp.org>
58390
58391         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
58392
58393 2007-01-03  Jim Meyering  <jim@meyering.net>
58394
58395         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
58396
58397 2007-01-02  Bruno Haible  <bruno@clisp.org>
58398
58399         * modules/settime (Include): Require timespec.h.
58400         * modules/nanosleep (Include): Likewise.
58401
58402 2007-01-01  Bruno Haible  <bruno@clisp.org>
58403
58404         * gnulib-tool (func_emit_copyright_notice): Bump year.
58405         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58406
58407 2007-01-01  Bruno Haible  <bruno@clisp.org>
58408
58409         Improve support for OpenBSD.
58410         * build-aux/config.rpath (libname_spec): Export.
58411         (library_names_spec): New variable. Export.
58412         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58413         library_names_spec from the config.rpath output. Locate shared library
58414         through the name pattern in library_names_spec.
58415
58416 2007-01-01  Eric Blake  <ebb9@byu.net>
58417
58418         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58419
58420 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58421
58422         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58423         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58424         assume the C locale, and avoid an "eval" that could cause trouble.
58425         Problem with SORT reported by Bob Proulx.
58426
58427         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58428         Define.  Trivial patch from Henning Nielsen Lund, originally
58429         sent to bug-grep@gnu.org today.
58430
58431 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58432
58433         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58434         struct stat.  Problem reported by Henning Nielsen Lund.
58435         * lib/acl.c: Include acl.h first, to check interface.  Don't
58436         bother to include sys/types.h and sys/stat.h again.
58437
58438 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58439
58440         Import the following change from libc; problem reported by
58441         Sven Verdoolaege.
58442
58443         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58444
58445         [BZ #1373]
58446         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58447
58448 2006-12-28  Jim Meyering  <jim@meyering.net>
58449
58450         * build-aux/announce-gen: Do not assume that the package
58451         builds any of tar.gz, tar.bz2, and .xdelta files.
58452         Suggestion from Simon Josefsson.
58453
58454 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58455
58456         * modules/announce-gen: New file.
58457
58458 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58459
58460         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58461         handles its gotchas now.
58462         * lib/mbswidth.c: Likewise.
58463         * lib/wcwidth.h: Likewise.
58464         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58465         and iswcntrl; the wctype module does this stuff now.
58466         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58467         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58468         * modules/mbchar (Depends-on): Add wctype.
58469         * modules/mbswidth (Depends-on): Likewise.
58470         * modules/wcwidth (Depends-on): Likewise.
58471
58472 2006-12-27  Eric Blake  <ebb9@byu.net>
58473
58474         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58475         module uses more than what <wctype.h> is required to provide.
58476
58477 2006-12-26  Eric Blake  <ebb9@byu.net>
58478
58479         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58480
58481 2006-12-26  Eric Blake  <ebb9@byu.net>
58482
58483         * modules/absolute-header: New module.
58484         * modules/fcntl (Depends-on): Depend on it.
58485         * modules/inttypes (Depends-on): Likewise.
58486         * modules/stdint (Depends-on): Likewise.
58487         * modules/sys_stat (Depends-on): Likewise.
58488         * modules/wctype (Depends-on): Likewise.
58489         * MODULES.html.sh (Support for building libraries and
58490         executables): Document it.
58491
58492 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58493
58494         * gnulib-tool (SED): Remove, undoing previous change.
58495         The problem was that it broke coreutils on Solaris, because
58496         "sed --posix" leaked into a makefile.
58497         (sed): New alias, if 'alias' and GNU sed.
58498
58499 2006-12-24  Jim Meyering  <jim@meyering.net>
58500
58501         Work around an fchownat bug in glibc-2.4:
58502         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58503         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58504         in spite of the -P option.
58505         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58506         New macros.
58507         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58508         * modules/openat (Files): Add lib/fchownat.c.
58509         * lib/openat.c (fchownat): Don't define here.  Move to...
58510         * lib/fchownat.c: ...this new file.
58511
58512 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58513
58514         Fix bug reported by Bruno Haible in
58515         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58516         where quotearg.c didn't compile on Mac OS X 10.2 because it
58517         lacks <wchar.h> and wint_t.
58518         * lib/wctype_.h (__wctype_wint_t): New type.
58519         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58520         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58521         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58522         Arg is now of type __wctype_wint_t, not wint_t.
58523         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58524         substitute HAVE_WINT_T.
58525         * modules/wctype (Files): Add m4/wint_t.m4.
58526         (wctype.h): Substitute HAVE_WINT_T.
58527
58528 2006-12-23  Bruno Haible  <bruno@clisp.org>
58529
58530         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58531
58532 2006-12-23  Bruno Haible  <bruno@clisp.org>
58533
58534         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58535         S_ISLNK.
58536         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58537         mingw.
58538
58539 2006-12-22  Bruno Haible  <bruno@clisp.org>
58540
58541         * lib/copy-file.c: Include acl.h.
58542         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58543         Close the file descriptors only after being done with copy_acl.
58544         * modules/copy-file (Depends-on): Add acl.
58545
58546 2006-12-22  Bruno Haible  <bruno@clisp.org>
58547
58548         * gnulib-tool (SED): New variable.
58549         Use $SED instead of sed everywhere.
58550
58551 2006-12-22  Bruno Haible  <bruno@clisp.org>
58552
58553         * modules/no-c++: New file.
58554         * m4/no-c++.m4: New file.
58555         * MODULES.html.sh (Support for building libraries and executables):
58556         Add no-c++.
58557
58558 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58559
58560         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58561         Include <limits.h>, and use its INT_MAX to rewrite the
58562         j loop so that it does not overflow 'int'.  Problem reported by
58563         Ralf Wildenhues in
58564         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58565         Play it safe by shifting left by 1 rather than multiplying by 2,
58566         as GCC is less likely to optimize this away when the value
58567         is signed (when it assumes overflow leads to undefined behavior).
58568         Also, don't assume time_t uses two's complement.
58569
58570 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58571
58572         * MODULES.html.sh: New module wctype.
58573         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58574         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58575         <wctype.h>, since the new wctype module should fix this.
58576         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58577         the wctype module should arrange for it.
58578         * lib/regex_internal.h: Likewise.
58579         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58580         since the wctype module should handle this now.
58581         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58582         * modules/fnmatch (Depends-on): Add wctype.
58583         * modules/quotearg (Depends-on): Likewise.
58584         * modules/regex (Depends-on): Likewise.
58585
58586 2006-12-19  Bruno Haible  <bruno@clisp.org>
58587
58588         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58589         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58590
58591 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58592
58593         * modules/savewd (Depends-on): Fix dependency on fcntl.
58594
58595 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58596
58597         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58598         conforms to C99, rather than relying on the user's environment
58599         setting of STDINT_H.
58600
58601 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58602         and Eric Blake  <ebb9@byu.net>
58603
58604         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58605         This is more consistent with the other defines here.
58606         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58607         Port to z/OS.  Problem reported by Paul Gilmartin.
58608         Change local vars to use gl_ prefix rather than ac_.
58609         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58610         with other defines.
58611         * modules/double-slash-root: New module.
58612         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58613         (Depends-on): Add double-slash-root.
58614         * MODULES.html.sh (File system functions): Mention new module.
58615
58616 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58617
58618         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58619         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58620         This is for the benefit of gzip, which doesn't do i18n.
58621
58622 2006-12-12  Jim Meyering  <jim@meyering.net>
58623
58624         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58625         Reported by Andreas Schwab <schwab@suse.de>.
58626
58627 2006-12-12  Bruno Haible  <bruno@clisp.org>
58628
58629         Merge these changes.
58630         2006-09-05  Bruno Haible  <bruno@clisp.org>
58631         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58632         iconv_alloc succeeded.
58633         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58634         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58635         test for " && dest " at the end - dest is always != NULL there. Call
58636         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58637         with 2xNULL arguments, also to flush the state storage. Handle the
58638         IRIX iconv behaviour. Realloc the final result, to throw away unused
58639         memory.
58640
58641 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58642
58643         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58644         and fchmodat unconditionally, since glibc 2.4 has them.
58645         Problem reported by Arkadiusz Miskiewicz.
58646
58647 2006-12-10  Bruno Haible  <bruno@clisp.org>
58648
58649         * gnulib-tool (func_import): Show the include files only for those
58650         modules that are copied and specified.
58651         Reported by Karl Berry.
58652
58653 2006-12-08  Jim Meyering  <jim@meyering.net>
58654
58655         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58656         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58657
58658         * build-aux/announce-gen: Add two new options, both optional:
58659         --bootstrap-tools=TOOL_LIST
58660               a comma-separated list of tools, e.g.,
58661               autoconf,automake,bison,gnulib
58662         --gnulib-snapshot-date=DATE
58663               if gnulib is in the bootstrap tool list,
58664               then report this as the snapshot date.
58665               If not specified, use the current date/time.
58666               If you specify a date here, be sure it's UTC.
58667
58668 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58669
58670         * tests/test-argp-2.sh: Fix test to match actual output.
58671         (func_compare): Fix sed script to be portable.
58672
58673 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58674
58675         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58676         workaround for this case.  It is not autoconfigured now; offhand
58677         it's hard to see how to autoconfigure it.
58678
58679 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58680
58681         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58682         a directory that is about to be chowned.  Such a directory's
58683         initial file permissions should permit the owner only and this
58684         should not be changed until after the chown, since the group and
58685         other bits would be incorrect if they granted permission before
58686         the chown.
58687
58688         Fix porting problem for iswctype reported by Georg Schwarz in:
58689         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58690         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58691         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58692         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58693         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58694
58695 2006-12-03  Jim Meyering  <jim@meyering.net>
58696
58697         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58698         p->fts_statp may not yet be defined.
58699         (fts_read): Instead, set it in the caller, once p->fts_statp is
58700         sure to be defined, and corresponds to a top-level directory.
58701         This bug made du -x fail.  Here's the coreutils test case:
58702         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58703         Reported by Mike Frysinger.
58704
58705 2006-12-01  Jim Meyering  <jim@meyering.net>
58706
58707         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58708         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58709         Reported by Simon Josefsson.
58710
58711 2006-11-30  Jim Meyering  <jim@meyering.net>
58712
58713         * m4/warning.m4: Use the all-permissive copyright notice
58714         recommended by RMS (rather than LGPL).
58715         * m4/vararrays.m4: Likewise.
58716         * m4/flexmember.m4: Likewise.
58717
58718 2006-11-29  Bruno Haible  <bruno@clisp.org>
58719
58720         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58721         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58722         using +=.
58723         Reported by Simon Josefsson <simon@josefsson.org>.
58724
58725 2006-11-28  James Youngman <jay@gnu.org>
58726
58727         * README: Advise users that they might find the bug-gnulib@gnu.org
58728         and autotools-announce@gnu.org mailing lists useful.
58729
58730 2006-11-28  Bruno Haible  <bruno@clisp.org>
58731
58732         * m4/ptrdiff_max.m4: Remove file.
58733
58734 2006-11-21  Bruno Haible  <bruno@clisp.org>
58735
58736         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58737         _AC_COMPUTE_INT.
58738         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58739         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58740         _AC_COMPUTE_INT.
58741         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58742         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58743         _AC_COMPUTE_INT.
58744         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58745
58746 2006-11-28  Jim Meyering  <jim@meyering.net>
58747
58748         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58749         warning from "gcc -Wshadow" about shadowing the builtin.
58750
58751 2006-11-27  Bruno Haible  <bruno@clisp.org>
58752
58753         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58754         _AC_COMPUTE_INT.
58755         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58756
58757 2006-11-27  Bruno Haible  <bruno@clisp.org>
58758             Paul Eggert  <eggert@cs.ucla.edu>
58759
58760         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58761
58762 2006-11-26  Bruno Haible  <bruno@clisp.org>
58763
58764         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58765         noinst_LTLIBRARIES.
58766
58767 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58768             Bruno Haible  <bruno@clisp.org>
58769
58770         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58771         if compiling with "gcc -ansi".
58772
58773 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58774
58775         Fix some incompatibilities with gcc -ansi -pedantic.
58776         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58777         if compiling pedantically with GCC, unless it's C99 or later.
58778         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58779         it mishandles gcc -ansi -pedantic as well.
58780         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58781         if gcc -pedantic.
58782         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58783         initializers for struct if -pedantic, unless it's C99 or later.
58784
58785 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58786
58787         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58788         Don't close an fd more than once. Identical atimes indicate
58789         success, not failure.
58790
58791 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58792
58793         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58794
58795 2006-11-23  Jim Meyering  <jim@meyering.net>
58796
58797         * build-aux/announce-gen: New file.  From coreutils.
58798
58799 2006-11-22  Jim Meyering  <jim@meyering.net>
58800
58801         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58802         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58803         (fts_read): Use a temporary to narrow the overused st_size member
58804         before using it in a switch statement.  Reported by Matthew Woehlke.
58805
58806         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58807         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58808
58809 2006-11-20  Bruno Haible  <bruno@clisp.org>
58810
58811         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58812         changequote instead of pairs of brackets.
58813         Reported by Andreas Schwab <schwab@suse.de>.
58814
58815 2006-11-21  Jim Meyering  <jim@meyering.net>
58816
58817         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58818         so as to remain compatible with older compilers.
58819         Patch from Michael Deutschmann.
58820
58821 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58822
58823         * MODULES.html.sh (File system functions): Add openat.
58824
58825         * lib/openat.h (rpl_fstatat): New macro, if
58826         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58827         (fstatat): Define to rpl_fstatat under the same conditions,
58828         unless COMPILING_FSTATAT.
58829         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58830         seems to have the bug.
58831         * lib/fstatat.c: New file.
58832         * modules/openat (Files): Add it.
58833
58834 2006-11-20  Bruno Haible  <bruno@clisp.org>
58835
58836         * Makefile: New file.
58837
58838 2006-11-20  Jim Meyering  <jim@meyering.net>
58839
58840         The beginnings of syntax-related checks for gnulib.
58841         * lib/Makefile: New file.
58842         * lib/t-idcache: New script.  Ensure that the two halves of
58843         idcache.c stay in sync.
58844
58845         * lib/idcache.c: Adjust comments in user- and group- portions to
58846         be more accurate, and to be consistent with one another.
58847
58848 2006-11-20  Jim Meyering  <jim@meyering.net>
58849
58850         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58851         continue using the flexible array member (thus, this module performs
58852         half as many malloc calls), with the addition that...
58853         (getgroup, getuser): Consistently record a non-match via an empty
58854         "name" string, and map an empty string match to a NULL return value.
58855         * modules/idcache (Depends-on): Re-add flexmember.
58856
58857         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58858         (getuidbyname, getgroup, getgidbyname): Likewise.
58859
58860         Use cleaner syntax: NULL rather than 0.
58861         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58862
58863 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58864
58865         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58866         It mishandled the case where the group was missing.
58867         Problem reported by Greg Schafer.
58868         * modules/idcache: Likewise.
58869
58870 2006-11-18  Jim Meyering  <jim@meyering.net>
58871
58872         * check-module (%exempt_header): Add exception for some
58873         conditionally-included headers.
58874
58875         * modules/i-ring (Depends-on): Add verify.
58876         (License): Change to LGPL.
58877
58878 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58879
58880         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58881         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58882         and inttostr.h.  Use snprintf rather than uinttostr, so that
58883         LGPLed code doesn't depend on GPLed.
58884
58885 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58886
58887         * modules/inline (License): Change from GPL to LGPL.
58888
58889 2006-11-17  Jim Meyering  <jim@meyering.net>
58890
58891         * modules/d-type (License): Switch to LGPL.
58892
58893 2006-11-15  Bruno Haible  <bruno@clisp.org>
58894
58895         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58896
58897 2006-11-15  Eric Blake  <ebb9@byu.net>
58898
58899         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58900         the module dependency.
58901
58902 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58903             Bruno Haible  <bruno@clisp.org>
58904
58905         * gnulib-tool (func_create_testdir): Add license consistency check.
58906
58907 2006-11-15  Eric Blake  <ebb9@byu.net>
58908
58909         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58910         random "(cached)" in configure output.
58911
58912 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58913
58914         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58915         test for conforming inttypes.h is both announced and cached.
58916
58917         * MODULES.html.sh (seen_modules, seen_files): New variables.
58918         (func_module): Rewrite to use a few less gnulib-tool and sed
58919         invocations.  Avoid a couple of quadratic algorithms for ...
58920         (missed_modules, missed_files): ... these, with ...
58921         (func_append, func_tmpdir): ... these new functions, from
58922         gnulib-tool.  Analogously, install traps for cleanup.
58923
58924         * tests/test-gc.c (main): Remove unused variables.
58925         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58926
58927 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58928
58929         * modules/inttostr (License): Change to LGPL.
58930
58931 2006-11-14  Eric Blake  <ebb9@byu.net>
58932
58933         * modules/tempname (License): Change to LGPL.
58934
58935 2006-11-14  Eric Blake  <ebb9@byu.net>
58936
58937         * doc/functions.texi (Function Portability): *printf functions on
58938         Cygwin now understand all POSIX size specifiers.
58939
58940 2006-11-14  Bruno Haible  <bruno@clisp.org>
58941
58942         * modules/c-ctype (License): Change to LGPL.
58943
58944 2006-11-12  Bruno Haible  <bruno@clisp.org>
58945
58946         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58947         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58948         for GNOME libraries, for which the include files are installed in
58949         subdirectories of $prefix/include.
58950
58951 2006-11-12  Bruno Haible  <bruno@clisp.org>
58952
58953         * m4/lib-link.m4: Require at least autoconf-2.54.
58954         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58955         name to underscores for the --with option.
58956
58957 2006-11-13  Bruno Haible  <bruno@clisp.org>
58958
58959         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58960         the tests directory.
58961         Reported by Ralf Wildenhues.
58962
58963 2006-11-13  Bruno Haible  <bruno@clisp.org>
58964
58965         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58966         (func_emit_initmacro_end): Undo the override here.
58967         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58968         Works around the famous automake error in coreutils.
58969
58970 2006-11-13  Eric Blake  <ebb9@byu.net>
58971
58972         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58973         element, not its node.
58974
58975 2006-11-12  Bruno Haible  <bruno@clisp.org>
58976
58977         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58978         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58979
58980 2006-11-12  Bruno Haible  <bruno@clisp.org>
58981
58982         * gnulib-tool: New option --local-symlink.
58983         (func_usage): Document it.
58984         (lsymbolic): New variable.
58985         (func_import, func_create_testdir): If --symlink was not specified,
58986         test whether --local-symlink was specified and the file comes from
58987         the local_gnulib_dir.
58988
58989 2006-11-12  Bruno Haible  <bruno@clisp.org>
58990
58991         * gnulib-tool (func_ln): New function.
58992         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58993
58994 2006-11-12  Bruno Haible  <bruno@clisp.org>
58995
58996         Finish support for source files in subdirectories.
58997         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58998         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58999         AUTOMAKE_OPTIONS.
59000         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
59001
59002 2006-11-12  Bruno Haible  <bruno@clisp.org>
59003
59004         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59005         EXTRA_lib_SOURCES augmentation.
59006         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
59007
59008 2006-11-12  Jim Meyering  <jim@meyering.net>
59009
59010         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
59011         file descriptors.  This also averts a failure on systems with
59012         native openat support when a traversed directory lacks "x" access.
59013         * lib/fts_.h: Include "i-ring.h"
59014         (struct FTS) [fts_fd_ring]: New member.
59015         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
59016         (FCHDIR): Add parentheses.
59017         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
59018         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
59019         When descending, rather than simply closing the previous
59020         fts_cwd_fd value, push that file descriptor onto the ring.
59021         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
59022         (fts_open): Initialize the new fd_ring member.
59023         (fts_close): Clear the ring.
59024         (fts_safe_changedir): When possible, use our new fd_ring to skip
59025         the diropen and fstat and dev/ino comparison that would normally
59026         accompany a virtual `chdir ("..")'.
59027
59028         * modules/fts (Depends-on): Add i-ring.
59029         * modules/i-ring: New module.
59030         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
59031         * m4/i-ring.m4: New file.
59032
59033 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59034
59035         * gnulib-tool (func_create_testdir): Fix replacement of
59036         `build-aux' in configure.ac.  Run autotools in gltests
59037         subdirectory.
59038         (func_create_testdir, func_create_megatestdir, test): There is
59039         no need for '--force' in most autotool invocations in a new
59040         tree.  Actually fail the whole test if any of the tools, or the
59041         configure or make stages fail.
59042
59043         Sync from Automake.
59044         * build-aux/gnupload: Revert last change.  Add pointer to upload
59045         instructions of the GNU Maintenance Instructions.
59046         Suggestion by Karl Berry.
59047
59048 2006-11-10  Jim Meyering  <jim@meyering.net>
59049
59050         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
59051
59052 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59053
59054         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
59055         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
59056         (bind_textdomain_codeset) [! ENABLE_NLS]:
59057         Evaluate all the arguments.  That way, callers get compatible behavior
59058         if the arguments have side effects.  Also, it avoids some GCC
59059         diagnostics in some cases; Joel E. Denny reported problems when Bison
59060         was configured with --enable-gcc-warnigs.
59061
59062 2006-11-10  Jim Meyering  <jim@meyering.net>
59063
59064         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
59065         relevant options in CFLAGS (like -O, -fno-inline) are taken into
59066         account.
59067
59068 2006-11-10  Jim Meyering  <jim@meyering.net>
59069
59070         * modules/inline: New file/module.
59071         * modules/xalloc (Files): Remove m4/inline.m4.
59072         (Depends-on): Add inline, instead.
59073         * modules/oset: Likewise.
59074         * modules/list: Likewise.
59075
59076 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59077
59078         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
59079         Problem reported by Matthew Woehlke.
59080
59081 2006-11-09  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/tempname.c (gen_tempname): Remove variant that invokes
59084         __gen_tempname.
59085         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
59086         __gen_tempname.
59087
59088 2006-11-08  Bruno Haible  <bruno@clisp.org>
59089
59090         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
59091         to 'yes' instead of 'cross-compiling'.
59092
59093 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
59094
59095         * lib/quotearg.h (quotearg_free): New decl.
59096         * lib/quotearg.c (quotearg_free): New function.
59097         (slot0, nslots, slotvec0, slotvec):
59098         Now file-scope so that quotearg_free can get at them.
59099
59100 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59101
59102         Sync from Automake.
59103         * build-aux/gnupload: Add missing 'gnu' to example URL.
59104         Report by Karl Berry.
59105
59106 2006-11-08  Bruno Haible  <bruno@clisp.org>
59107
59108         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
59109         Suggested by Paul Eggert.
59110
59111 2006-11-08  Jim Meyering  <jim@meyering.net>
59112
59113         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
59114         It's already included if !_LIBC.
59115         (fts_safe_changedir): Add a comment.
59116
59117 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59118
59119         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
59120         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
59121         Matthew Woehlke.
59122
59123         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
59124         definitions up, to avoid colliding with change below.
59125         (static_inline) [HAVE_INLINE]: New macro.
59126         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
59127         Provide extern decls when !HAVE_INLINE.  Do not define unless
59128         static_inline is defined, either by us or by xmalloc.c.  Use
59129         static_inline rather than static inline.
59130         (XCALLOC): Optimize sizeof(T) = 1 case.
59131         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
59132
59133 2006-11-07  Bruno Haible  <bruno@clisp.org>
59134
59135         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
59136         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
59137         AC_C_INLINE.
59138         * modules/xalloc (Files): Add m4/inline.m4.
59139
59140 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59141
59142         * README: Fix typo.
59143         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
59144         (Miscellanous Notes): ...from this.
59145
59146 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59147
59148         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
59149         Mention that offsetof should be used instead of sizeof.
59150         From Bruno Haible.
59151
59152 2006-11-07  Bruno Haible  <bruno@clisp.org>
59153
59154         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
59155
59156 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59157
59158         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59159         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
59160         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59161         (gl_tree_add_before, gl_tree_add_after):
59162         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
59163         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
59164         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59165         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
59166         (gl_linked_add_after, gl_linked_add_at): Likewise.
59167         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
59168         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59169         (gl_tree_add_before, gl_tree_add_after): Likewise.
59170         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
59171         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
59172         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59173
59174 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59175
59176         * lib/gl_oset.h: Use C comment style, not C++ comment style.
59177
59178 2006-11-06  Bruno Haible  <bruno@clisp.org>
59179
59180         * m4/inline.m4: New file.
59181         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
59182         * modules/list (Files): Add m4/inline.m4.
59183         * modules/oset (Files): Likewise.
59184
59185 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59186
59187         * lib/idcache.c: Include <stddef.h>, for offsetof.
59188         (struct userid.name): Change from char * to a flexible array member.
59189         All uses changed.
59190         * modules/idcache (Depends-on): Add flexmember.
59191
59192         * MODULES.html.sh (Core language properties): New module flexmember.
59193         * modules/flexmember, m4/flexmember.m4: New files.
59194
59195         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
59196         inline functions that are identical with the old xnmalloc_inline,
59197         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
59198         that we can avoid some unnecessary integer multiplications and
59199         divisions in the common case where the element size is known at
59200         compile time.
59201         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
59202         needed.
59203         (xnboundedmalloc): Remove.
59204         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
59205         arguments, for consistency with rest of this header.
59206         (xcharalloc): Rewrite using XNMALLOC.
59207         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
59208         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
59209         versions have been moved to lib/xalloc.h and renamed to be the
59210         non-*_inline versions.
59211         (xmalloc, xrealloc): Implement without reference to the xnmalloc
59212         and xnrealloc functions, since those functions are now inline and
59213         now call us.
59214         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
59215         renaming described above.
59216         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
59217         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
59218         captures the dependency in AC_C_INLINE.
59219
59220         New module canonicalize-lgpl, proposed by Charles Wilson in
59221         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
59222         with a few small changes afterwards.
59223         * MODULES.html.sh (File system functions): New module
59224         canonicalize-lgpl.
59225         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
59226         and canonicalize_file_name.
59227         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
59228         * modules/canonicalize-lgpl: New files.
59229
59230 2006-11-05  Bruno Haible  <bruno@clisp.org>
59231
59232         * gnulib-tool (func_import, func_create_testdir): Create directories
59233         also for files in subdirectories of lib/.
59234
59235 2006-11-05  Bruno Haible  <bruno@clisp.org>
59236
59237         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
59238         ANSI C compliant.
59239
59240 2006-11-03  Bruno Haible  <bruno@clisp.org>
59241
59242         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59243         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
59244         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
59245         (xnboundedmalloc): New inline function.
59246         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
59247         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
59248         xmalloc.
59249         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
59250         xmalloc.
59251         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
59252         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
59253         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
59254         xmalloc.
59255         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59256         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
59257         xmalloc.
59258         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
59259         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59260         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
59261         xmalloc.
59262         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59263         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
59264         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59265         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
59266         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
59267         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
59268         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
59269
59270 2006-11-03  Bruno Haible  <bruno@clisp.org>
59271
59272         * lib/c-ctype.h [C++]: Define functions without name mangling.
59273         * lib/fwriteerror.h [C++]: Likewise.
59274         * lib/gcd.h [C++]: Likewise.
59275         * lib/linebreak.h [C++]: Likewise.
59276
59277 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59278
59279         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
59280         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
59281         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
59282         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59283         Check for functions and headers just once.
59284         Check for declaration of canonicalize_file_name.
59285         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
59286
59287 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59288
59289         * gnulib-tool (func_import): Fix typo in actioncmd.
59290
59291 2006-11-02  Bruno Haible  <bruno@clisp.org>
59292
59293         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
59294         newline sequence in the Makefile.am snippet as a space, like "make"
59295         does.
59296         Reported by Roger Persson <perrog@gmail.com>.
59297
59298 2006-11-01  Bruno Haible  <bruno@clisp.org>
59299
59300         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
59301         already declared in <string.h>.
59302         * lib/strcase.h (strncasecmp): Don't declare it if yes.
59303
59304 2006-11-01  Bruno Haible  <bruno@clisp.org>
59305
59306         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
59307         * lib/strcase.h: Include <string.h>.
59308         (strcasecmp): Define to rpl_strcasecmp here.
59309
59310 2006-11-01  Bruno Haible  <bruno@clisp.org>
59311
59312         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
59313
59314 2006-11-01  Eric Blake  <ebb9@byu.net>
59315
59316         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
59317
59318         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
59319
59320 2006-10-29  Bruno Haible  <bruno@clisp.org>
59321
59322         Make it compile in C++ mode.
59323         * lib/full-write.c (full_rw): Add a cast.
59324
59325 2006-11-01  Bruno Haible  <bruno@clisp.org>
59326
59327         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
59328         be POSIX compliant.
59329         Reported by Roger Persson <perrog@gmail.com>.
59330
59331 2006-11-01  Eric Blake  <ebb9@byu.net>
59332
59333         * lib/getopt_.h: Fix comments.
59334
59335 2006-10-31  Eric Blake  <ebb9@byu.net>
59336
59337         * modules/tmpdir (Depends-on): Add sys_stat.
59338         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
59339         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
59340         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
59341         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
59342         tempname.
59343
59344 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
59345
59346         Avoid some C++ diagnostics reported by Bruno Haible.
59347         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
59348         xmalloc.
59349         (quotearg_alloc): Use xcharalloc rather than xmalloc.
59350         (struct slotvec): Move to top level.
59351         (quotearg_n_options): Rewrite to avoid xmalloc.
59352         * lib/xalloc.h (xcharalloc): New function.
59353         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
59354         [defined __cplusplus]: Add function template that provides result
59355         type propagation.  This part of the change is from Bruno Haible.
59356
59357 2006-10-29  Bruno Haible  <bruno@clisp.org>
59358
59359         Make it compile in C++ mode.
59360         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
59361         * lib/strnlen1.c (strnlen1): Cast memchr result.
59362         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
59363         * lib/clean-temp.c (string_equals, string_hash): Add casts.
59364         (create_temp_dir): Rename local variable 'template'.
59365         (compile_csharp_using_sscli): Add cast.
59366         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
59367         * lib/findprog.c (find_in_path): Likewise.
59368         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
59369         * lib/wait-process.c (register_slave_subprocess): Likewise.
59370
59371 2006-10-22  Bruno Haible  <bruno@clisp.org>
59372
59373         * modules/tsearch: New file.
59374         * lib/tsearch.h: New file.
59375         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
59376         * m4/tsearch.m4: New file.
59377         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
59378
59379 2006-10-29  Eric Blake  <ebb9@byu.net>
59380
59381         * lib/arcfour.c: Assume config.h.
59382         * lib/arctwo.c: Likewise.
59383         * lib/base64.c: Likewise.
59384         * lib/check-version.c: Likewise.
59385         * lib/crc.c: Likewise.
59386         * lib/des.c: Likewise.
59387         * lib/gc-gnulib.c: Likewise.
59388         * lib/gc-libgcrypt.c: Likewise.
59389         * lib/gc-pbkdf2-sha1.c: Likewise.
59390         * lib/getaddrinfo.c: Likewise.
59391         * lib/getdelim.c: Likewise.
59392         * lib/getline.c: Likewise.
59393         * lib/hmac-md5.c: Likewise.
59394         * lib/hmac-sha1.c: Likewise.
59395         * lib/iconvme.c: Likewise.
59396         * lib/md2.c: Likewise.
59397         * lib/md4.c: Likewise.
59398         * lib/memxor.c: Likewise.
59399         * lib/read-file.c: Likewise.
59400         * lib/readline.c: Likewise.
59401         * lib/rijndael-alg-fst.c: Likewise.
59402         * lib/rijndael-api-fst.c: Likewise.
59403         * lib/xgetdomainname.c: Likewise.
59404
59405 2006-10-28  Eric Blake  <ebb9@byu.net>
59406
59407         * lib/xstrndup.c: Assume config.h.
59408
59409 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59410
59411         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59412         stat-macros.h is now for our own macros, whereas stat_h is for
59413         macros in the <sys/stat.h> name space.
59414         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59415         (STAT_MACROS_H): Remove.
59416         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59417         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59418         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59419         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59420         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59421         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59422         Move these macros to ...
59423         * lib/stat_.h: here.  Don't include stat-macros.h.
59424         * lib/canonicalize.c: Don't include stat-macros.h.
59425         * lib/chown.c: Likewise.
59426         * lib/euidaccess.c: Likewise.
59427         * lib/file-type.c: Likewise.
59428         * lib/filemode.c: Likewise.
59429         * lib/glob.c: Likewise.
59430         * lib/isapipe.c: Likewise.
59431         * lib/lchown.c: Likewise.
59432         * lib/lstat.c: Likewise.
59433         * lib/mkdir-p.c: Likewise.
59434         * lib/rmdir.c: Likewise.
59435         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59436         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59437         unless mkdir isn't declared, to speed up 'configure'.
59438         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59439         would define all the S_* symbols.
59440         * modules/canonicalize (Depends-on):
59441         Depend on sys_stat, not stat-macros.
59442         * modules/chown: Likewise.
59443         * modules/euidaccess: Likewise.
59444         * modules/filemode: Likewise.
59445         * modules/file-type: Likewise.
59446         * modules/glob: Likewise.
59447         * modules/isapipe: Likewise.
59448         * modules/lchown: Likewise.
59449         * modules/lstat: Likewise.
59450         * modules/mkancesdirs: Likewise.
59451         * modules/rmdir: Likewise.
59452         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59453         * modules/modechange: Likewise.
59454         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59455         (configure.ac): Remove gl_STAT_MACROS.
59456         * modules/sys_stat (Depends-on): Remove stat-macros.
59457
59458 2006-10-27  Bruno Haible  <bruno@clisp.org>
59459
59460         * m4/signed.m4: Remove file.
59461         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59462         invocation.
59463         * modules/vasnprintf (Files): Remove m4/signed.m4.
59464
59465 2006-10-27  Bruno Haible  <bruno@clisp.org>
59466
59467         Update to GNU gettext 0.16.
59468         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59469         m4/inttypes-h.m4, m4/signed.m4.
59470         * m4/gettext.m4: Update to GNU gettext 0.16.
59471         * m4/intl.m4: New file, from GNU gettext.
59472         * m4/intldir.m4: New file, from GNU gettext.
59473         * config/srclist.txt: Update
59474
59475 2006-10-27  Eric Blake  <ebb9@byu.net>
59476
59477         * MODULES.html.sh: Document tempname.
59478         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59479         dependencies.
59480         (Files): Move lib/tempname.c...
59481         * modules/tempname: ...to this new module.
59482         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59483         (gl_PREREQ_TEMPNAME): Move...
59484         * m4/tempname.m4: ...to this new file.
59485         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59486         * modules/sys_stat (Depends-on): Add stat-macros.
59487         * lib/stat_.h (includes): Pick up stat macros.
59488         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59489         if stat macros are broken.
59490         * lib/tempname.c (includes): No need to include "stat-macros.h".
59491         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59492         (direxists, __path_search) [!_LIBC]: Don't compile these in
59493         gnulib; the tmpdir module covers that.
59494         * lib/tempname.h: New file.
59495
59496 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59497
59498         * COPYING: Explain how gnulib-tool converts licence headers.
59499         Almost all wording by Eric Blake.
59500
59501 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         * lib/mbchar.h (is_basic_table): Make read-only.
59504         * lib/mbchar.c (is_basic_table): Likewise.
59505         Reported by John Darrington.
59506
59507 2006-10-25  Bruno Haible  <bruno@clisp.org>
59508
59509         * lib/progname.h (set_program_name): Undefine before defining.
59510
59511 2006-10-25  Bruno Haible  <bruno@clisp.org>
59512
59513         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59514         false for non-gcc C++ compilers.
59515         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59516
59517 2006-10-24  Bruno Haible  <bruno@clisp.org>
59518
59519         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59520         iconv implementations like Irix iconv.
59521
59522 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59523
59524         * modules/vararrays: New file.
59525         * m4/vararrays.m4: New file, taken from diffutils.
59526         * MODULES.html.sh: New module vararrays.
59527
59528 2006-10-24  Karl Berry  <karl@gnu.org>
59529
59530         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59531         Don't call GNU Unix.
59532
59533 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59534
59535         * users.txt: Add Libtool.
59536
59537         Sync from Libtool:
59538
59539         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59540
59541         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59542         to gnulib's policy of including config.h unconditionally.
59543
59544 2006-10-24  Bruno Haible  <bruno@clisp.org>
59545
59546         * modules/wcwidth (Files): Add m4/wint_t.m4.
59547         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59548         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59549
59550 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59551
59552         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59553         to pacify GCC with some -W flags enabled.  Problem reported by
59554         Bruno Haible.
59555
59556 2006-10-24  Jim Meyering  <jim@meyering.net>
59557
59558         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59559         Reported by Karl Berry.
59560
59561 2006-10-23  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59564
59565 2006-10-24  Bruno Haible  <bruno@clisp.org>
59566
59567         * lib/gl_list.h: Use C comment style, not C++ comment style.
59568
59569 2006-10-23  Eric Blake  <ebb9@byu.net>
59570
59571         * lib/getaddrinfo.c (includes): Add missing include.
59572
59573 2006-10-23  Bruno Haible  <bruno@clisp.org>
59574             Paul Eggert  <eggert@cs.ucla.edu>
59575
59576         Ability to rename obstack_free.
59577         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59578         obstack_free.
59579         (obstack_free): Invoke the __obstack_free macro.
59580         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59581
59582 2006-10-23  Bruno Haible  <bruno@clisp.org>
59583             Paul Eggert  <eggert@cs.ucla.edu>
59584
59585         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59586         __argc, __argv from the declaration. (They are defined as macros on
59587         mingw.)
59588
59589 2006-10-22  Bruno Haible  <bruno@clisp.org>
59590
59591         * doc/gnulib-intro.texi: New file.
59592         * doc/gnulib.texi: Include it.
59593
59594 2006-10-21  Bruno Haible  <bruno@clisp.org>
59595
59596         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59597         "Introduction", "Miscellanous Notes", "Particular Modules".
59598
59599 2006-10-21  Bruno Haible  <bruno@clisp.org>
59600
59601         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59602         Change mostlyclean-local rule to avoid sh syntax error from bash
59603         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59604
59605 2006-10-23  Jim Meyering  <jim@meyering.net>
59606
59607         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59608         in place of snprintf.
59609
59610         * modules/inttostr (Files): Add lib/uinttostr.c.
59611         * lib/uinttostr.c (inttostr): New file/function.
59612         * lib/inttostr.h (uinttostr): Declare.
59613         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59614         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59615         Add uinttostr.
59616         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59617
59618 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59619
59620         * lib/canonicalize.c (ELOOP): Define if not already defined.
59621         Problem reported by Bruno Haible in
59622         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59623
59624 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59625
59626         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59627         Problem reported by Perry Smith and Ville Laurikari.
59628
59629         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59630         uses.
59631
59632 2006-10-19  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59635         for mingw.
59636
59637 2006-10-19  Bruno Haible  <bruno@clisp.org>
59638
59639         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59640         Needed for mingw.
59641
59642 2006-10-19  Bruno Haible  <bruno@clisp.org>
59643
59644         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59645
59646 2006-10-19  Bruno Haible  <bruno@clisp.org>
59647
59648         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59649         it.
59650
59651 2006-10-19  Bruno Haible  <bruno@clisp.org>
59652
59653         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59654         invocation.
59655
59656 2006-10-19  Bruno Haible  <bruno@clisp.org>
59657
59658         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59659         mountlist by default.
59660
59661 2006-10-16  Bruno Haible  <bruno@clisp.org>
59662
59663         * lib/c-strstr.c: Include c-strstr.h.
59664
59665 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59666
59667         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59668         in a slash.
59669
59670 2006-10-18  Bruno Haible  <bruno@clisp.org>
59671
59672         * lib/lock.h [C++]: Wrap definitions in extern "C".
59673
59674 2006-10-18  Bruno Haible  <bruno@clisp.org>
59675
59676         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59677         gl_LIBOBJS list.
59678
59679 2006-10-18  Bruno Haible  <bruno@clisp.org>
59680
59681         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59682
59683 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59684
59685         * lib/xstrtol.h: Include gettext.h.
59686         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59687         Problem reported by Eric Blake.
59688         * modules/xstrtol (Depends-on): Add gettext-h.
59689
59690 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59691
59692         * lib/strftime.c (advance): New macro.
59693         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59694         incomplete type, so you can't add 0 to it.  Problem and patch
59695         reported by Eelco Dolstra for dietlibc.
59696
59697 2006-10-18  Jim Meyering  <jim@meyering.net>
59698
59699         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59700         type for a local, and rename it: s/up/user_proc/.
59701
59702 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59703
59704         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59705         READ_UTMP_USER_PROCESS.
59706         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59707
59708 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59711         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59712
59713 2006-10-17  Eric Blake  <ebb9@byu.net>
59714
59715         * lib/sigprocmask.c (sigprocmask): Fix typo.
59716
59717         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59718
59719         * modules/clean-temp (Makefile.am): Don't add to make output...
59720         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59721         config.h.
59722
59723 2006-10-17  Bruno Haible  <bruno@clisp.org>
59724
59725         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59726         differently if DEFAULT_TEXT_DOMAIN is set.
59727
59728 2006-10-16  Bruno Haible  <bruno@clisp.org>
59729
59730         * lib/clean-temp.c: Include fwriteerror.h.
59731
59732 2006-10-16  Bruno Haible  <bruno@clisp.org>
59733
59734         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59735
59736 2006-10-16  Bruno Haible  <bruno@clisp.org>
59737
59738         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59739         * lib/sigprocmask.h: Include <sys/types.h>.
59740         (sigset_t): Use the system's definition if present.
59741
59742 2006-10-17  Eric Blake  <ebb9@byu.net>
59743
59744         * lib/xvasprintf.c (includes): Assume config.h.
59745         * lib/xasprintf.c (includes): Likewise.
59746
59747 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59748
59749         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59750         at least as wide as intmax_t.
59751
59752 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59753
59754         (Imported from Automake.)
59755         * build-aux/gnupload: Update to version 1.1 of directive file.
59756
59757 2006-10-16  Eric Blake  <ebb9@byu.net>
59758
59759         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59760         match Automake 1.10a.
59761
59762 2006-10-14  Bruno Haible  <bruno@clisp.org>
59763
59764         * modules/sigprocmask: New file.
59765         * lib/sigprocmask.h: New file.
59766         * lib/sigprocmask.c: New file.
59767         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59768         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59769         request sigprocmask.o.
59770         (gl_PREREQ_SIGPROCMASK): New macro.
59771         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59772         (Depends-on): Add sigprocmask.
59773         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59774         gt_SIGNALBLOCKING. Test for 'raise' only once.
59775         * lib/fatal-signal.c: Include sigprocmask.h.
59776         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59777         unblock_fatal_signals): Define always.
59778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59779         sigprocmask.
59780
59781 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59782
59783         Sync from Automake.
59784         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59785         which incorrectly sets the mode of an existing destination
59786         directory.  In some cases the unpatched install-sh could do the
59787         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59788         system.  We hope this is rare in practice, but it's clearly worth
59789         fixing.  Problem reported by Alex Unleashed in
59790         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59791         Also, don't bother to check for -m bugs unless we're using -m;
59792         suggested by Stepan Kasal.
59793
59794 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59795
59796         Sync from Automake.
59797         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59798         `-c' flag, so they appear at the same position as in %FASTDEP%
59799         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59800         which ignores unknown options only after the first non-option.
59801         Bug report against M4 by Nelson H. F. Beebe.
59802
59803 2006-10-13  Jim Meyering  <jim@meyering.net>
59804
59805         Fix a bug in yesterday's change.
59806         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59807         p->fts_statp->st_dev would be used uninitialized.
59808         Ensures that we always call fts_stat on the very first entry.
59809         Miklos Szeredi reported that find -xdev stopped working.
59810
59811 2006-10-12  Bruno Haible  <bruno@clisp.org>
59812
59813         * gnulib-tool (func_get_automake_snippet): Append an automatically
59814         computed EXTRA_DIST augmentation.
59815         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59816         * modules/alloca-opt (Makefile.am): Likewise.
59817         * modules/allocsa (Makefile.am): Likewise.
59818         * modules/arcfour (Makefile.am): Likewise.
59819         * modules/arctwo (Makefile.am): Likewise.
59820         * modules/argmatch (Makefile.am): Likewise.
59821         * modules/argz (Makefile.am): Likewise.
59822         * modules/atexit (Makefile.am): Likewise.
59823         * modules/backupfile (Makefile.am): Likewise.
59824         * modules/byteswap (Makefile.am): Likewise.
59825         * modules/c-strtod (Makefile.am): Likewise.
59826         * modules/c-strtold (Makefile.am): Likewise.
59827         * modules/calloc (Makefile.am): Likewise.
59828         * modules/canon-host (Makefile.am): Likewise.
59829         * modules/canonicalize (Makefile.am): Likewise.
59830         * modules/chdir-long (Makefile.am): Likewise.
59831         * modules/chdir-safer (Makefile.am): Likewise.
59832         * modules/check-version (Makefile.am): Likewise.
59833         * modules/chown (Makefile.am): Likewise.
59834         * modules/cloexec (Makefile.am): Likewise.
59835         * modules/close-stream (Makefile.am): Likewise.
59836         * modules/closeout (Makefile.am): Likewise.
59837         * modules/crc (Makefile.am): Likewise.
59838         * modules/csharpexec (Makefile.am): Likewise.
59839         * modules/cycle-check (Makefile.am): Likewise.
59840         * modules/des (Makefile.am): Likewise.
59841         * modules/dev-ino (Makefile.am): Likewise.
59842         * modules/dirfd (Makefile.am): Likewise.
59843         * modules/dirname (Makefile.am): Likewise.
59844         * modules/dup2 (Makefile.am): Likewise.
59845         * modules/eealloc (Makefile.am): Likewise.
59846         * modules/error (Makefile.am): Likewise.
59847         * modules/euidaccess (Makefile.am): Likewise.
59848         * modules/exclude (Makefile.am): Likewise.
59849         * modules/exitfail (Makefile.am): Likewise.
59850         * modules/fcntl-safer (Makefile.am): Likewise.
59851         * modules/fcntl (Makefile.am): Likewise.
59852         * modules/file-type (Makefile.am): Likewise.
59853         * modules/fileblocks (Makefile.am): Likewise.
59854         * modules/filemode (Makefile.am): Likewise.
59855         * modules/filenamecat (Makefile.am): Likewise.
59856         * modules/fnmatch (Makefile.am): Likewise.
59857         * modules/fopen-safer (Makefile.am): Likewise.
59858         * modules/fpending (Makefile.am): Likewise.
59859         * modules/fprintftime (Makefile.am): Likewise.
59860         * modules/free (Makefile.am): Likewise.
59861         * modules/fsusage (Makefile.am): Likewise.
59862         * modules/ftruncate (Makefile.am): Likewise.
59863         * modules/fts (Makefile.am): Likewise.
59864         * modules/gc-arcfour (Makefile.am): Likewise.
59865         * modules/gc-des (Makefile.am): Likewise.
59866         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59867         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59868         * modules/gc-md4 (Makefile.am): Likewise.
59869         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59870         * modules/gc-sha1 (Makefile.am): Likewise.
59871         * modules/gc (Makefile.am): Likewise.
59872         * modules/getaddrinfo (Makefile.am): Likewise.
59873         * modules/getcwd (Makefile.am): Likewise.
59874         * modules/getdelim (Makefile.am): Likewise.
59875         * modules/getdomainname (Makefile.am): Likewise.
59876         * modules/getgroups (Makefile.am): Likewise.
59877         * modules/gethostname (Makefile.am): Likewise.
59878         * modules/gethrxtime (Makefile.am): Likewise.
59879         * modules/getline (Makefile.am): Likewise.
59880         * modules/getloadavg (Makefile.am): Likewise.
59881         * modules/getlogin_r (Makefile.am): Likewise.
59882         * modules/getndelim2 (Makefile.am): Likewise.
59883         * modules/getopt (Makefile.am): Likewise.
59884         * modules/getpagesize (Makefile.am): Likewise.
59885         * modules/getpass-gnu (Makefile.am): Likewise.
59886         * modules/getpass (Makefile.am): Likewise.
59887         * modules/getsubopt (Makefile.am): Likewise.
59888         * modules/gettime (Makefile.am): Likewise.
59889         * modules/gettimeofday (Makefile.am): Likewise.
59890         * modules/getugroups (Makefile.am): Likewise.
59891         * modules/getusershell (Makefile.am): Likewise.
59892         * modules/glob (Makefile.am): Likewise.
59893         * modules/group-member (Makefile.am): Likewise.
59894         * modules/hard-locale (Makefile.am): Likewise.
59895         * modules/hash (Makefile.am): Likewise.
59896         * modules/hmac-md5 (Makefile.am): Likewise.
59897         * modules/hmac-sha1 (Makefile.am): Likewise.
59898         * modules/human (Makefile.am): Likewise.
59899         * modules/idcache (Makefile.am): Likewise.
59900         * modules/imaxabs (Makefile.am): Likewise.
59901         * modules/imaxdiv (Makefile.am): Likewise.
59902         * modules/inet_ntop (Makefile.am): Likewise.
59903         * modules/inet_pton (Makefile.am): Likewise.
59904         * modules/intprops (Makefile.am): Likewise.
59905         * modules/inttostr (Makefile.am): Likewise.
59906         * modules/inttypes (Makefile.am): Likewise.
59907         * modules/isapipe (Makefile.am): Likewise.
59908         * modules/javaversion (Makefile.am): Likewise.
59909         * modules/lchmod (Makefile.am): Likewise.
59910         * modules/lchown (Makefile.am): Likewise.
59911         * modules/localcharset (Makefile.am): Likewise.
59912         * modules/long-options (Makefile.am): Likewise.
59913         * modules/lstat (Makefile.am): Likewise.
59914         * modules/malloc (Makefile.am): Likewise.
59915         * modules/mathl (Makefile.am): Likewise.
59916         * modules/mbchar (Makefile.am): Likewise.
59917         * modules/md2 (Makefile.am): Likewise.
59918         * modules/md4 (Makefile.am): Likewise.
59919         * modules/md5 (Makefile.am): Likewise.
59920         * modules/memcasecmp (Makefile.am): Likewise.
59921         * modules/memchr (Makefile.am): Likewise.
59922         * modules/memcmp (Makefile.am): Likewise.
59923         * modules/memcoll (Makefile.am): Likewise.
59924         * modules/memcpy (Makefile.am): Likewise.
59925         * modules/memmem (Makefile.am): Likewise.
59926         * modules/memmove (Makefile.am): Likewise.
59927         * modules/mempcpy (Makefile.am): Likewise.
59928         * modules/memrchr (Makefile.am): Likewise.
59929         * modules/memset (Makefile.am): Likewise.
59930         * modules/memxor (Makefile.am): Likewise.
59931         * modules/mkancesdirs (Makefile.am): Likewise.
59932         * modules/mkdir-p (Makefile.am): Likewise.
59933         * modules/mkdir (Makefile.am): Likewise.
59934         * modules/mkdtemp (Makefile.am): Likewise.
59935         * modules/mkstemp (Makefile.am): Likewise.
59936         * modules/mktime (Makefile.am): Likewise.
59937         * modules/modechange (Makefile.am): Likewise.
59938         * modules/mountlist (Makefile.am): Likewise.
59939         * modules/nanosleep (Makefile.am): Likewise.
59940         * modules/obstack (Makefile.am): Likewise.
59941         * modules/openat (Makefile.am): Likewise.
59942         * modules/pagealign_alloc (Makefile.am): Likewise.
59943         * modules/pathmax (Makefile.am): Likewise.
59944         * modules/physmem (Makefile.am): Likewise.
59945         * modules/poll (Makefile.am): Likewise.
59946         * modules/posixtm (Makefile.am): Likewise.
59947         * modules/posixver (Makefile.am): Likewise.
59948         * modules/putenv (Makefile.am): Likewise.
59949         * modules/quote (Makefile.am): Likewise.
59950         * modules/quotearg (Makefile.am): Likewise.
59951         * modules/raise (Makefile.am): Likewise.
59952         * modules/read-file (Makefile.am): Likewise.
59953         * modules/readline (Makefile.am): Likewise.
59954         * modules/readlink (Makefile.am): Likewise.
59955         * modules/readtokens (Makefile.am): Likewise.
59956         * modules/readutmp (Makefile.am): Likewise.
59957         * modules/realloc (Makefile.am): Likewise.
59958         * modules/regex (Makefile.am): Likewise.
59959         * modules/rename-dest-slash (Makefile.am): Likewise.
59960         * modules/rename (Makefile.am): Likewise.
59961         * modules/rijndael (Makefile.am): Likewise.
59962         * modules/rmdir (Makefile.am): Likewise.
59963         * modules/rpmatch (Makefile.am): Likewise.
59964         * modules/safe-read (Makefile.am): Likewise.
59965         * modules/safe-write (Makefile.am): Likewise.
59966         * modules/same-inode (Makefile.am): Likewise.
59967         * modules/same (Makefile.am): Likewise.
59968         * modules/save-cwd (Makefile.am): Likewise.
59969         * modules/savedir (Makefile.am): Likewise.
59970         * modules/setenv (Makefile.am): Likewise.
59971         * modules/settime (Makefile.am): Likewise.
59972         * modules/sha1 (Makefile.am): Likewise.
59973         * modules/sig2str (Makefile.am): Likewise.
59974         * modules/snprintf (Makefile.am): Likewise.
59975         * modules/stat-macros (Makefile.am): Likewise.
59976         * modules/stat-time (Makefile.am): Likewise.
59977         * modules/stdbool (Makefile.am): Likewise.
59978         * modules/stdint (Makefile.am): Likewise.
59979         * modules/stdlib-safer (Makefile.am): Likewise.
59980         * modules/stpcpy (Makefile.am): Likewise.
59981         * modules/stpncpy (Makefile.am): Likewise.
59982         * modules/strcase (Makefile.am): Likewise.
59983         * modules/strcasestr (Makefile.am): Likewise.
59984         * modules/strchrnul (Makefile.am): Likewise.
59985         * modules/strcspn (Makefile.am): Likewise.
59986         * modules/strdup (Makefile.am): Likewise.
59987         * modules/strerror (Makefile.am): Likewise.
59988         * modules/strftime (Makefile.am): Likewise.
59989         * modules/strndup (Makefile.am): Likewise.
59990         * modules/strnlen (Makefile.am): Likewise.
59991         * modules/strpbrk (Makefile.am): Likewise.
59992         * modules/strsep (Makefile.am): Likewise.
59993         * modules/strstr (Makefile.am): Likewise.
59994         * modules/strtod (Makefile.am): Likewise.
59995         * modules/strtoimax (Makefile.am): Likewise.
59996         * modules/strtok_r (Makefile.am): Likewise.
59997         * modules/strtol (Makefile.am): Likewise.
59998         * modules/strtoll (Makefile.am): Likewise.
59999         * modules/strtoul (Makefile.am): Likewise.
60000         * modules/strtoull (Makefile.am): Likewise.
60001         * modules/strtoumax (Makefile.am): Likewise.
60002         * modules/strverscmp (Makefile.am): Likewise.
60003         * modules/sys_socket (Makefile.am): Likewise.
60004         * modules/sys_stat (Makefile.am): Likewise.
60005         * modules/sysexits (Makefile.am): Likewise.
60006         * modules/time_r (Makefile.am): Likewise.
60007         * modules/timegm (Makefile.am): Likewise.
60008         * modules/timespec (Makefile.am): Likewise.
60009         * modules/tmpfile-safer (Makefile.am): Likewise.
60010         * modules/trim (Makefile.am): Likewise.
60011         * modules/unistd-safer (Makefile.am): Likewise.
60012         * modules/unlinkdir (Makefile.am): Likewise.
60013         * modules/unlocked-io (Makefile.am): Likewise.
60014         * modules/userspec (Makefile.am): Likewise.
60015         * modules/utime (Makefile.am): Likewise.
60016         * modules/utimecmp (Makefile.am): Likewise.
60017         * modules/utimens (Makefile.am): Likewise.
60018         * modules/vasnprintf (Makefile.am): Likewise.
60019         * modules/vasprintf (Makefile.am): Likewise.
60020         * modules/vsnprintf (Makefile.am): Likewise.
60021         * modules/xalloc (Makefile.am): Likewise.
60022         * modules/xgetcwd (Makefile.am): Likewise.
60023         * modules/xnanosleep (Makefile.am): Likewise.
60024         * modules/xreadlink (Makefile.am): Likewise.
60025         * modules/xstrtod (Makefile.am): Likewise.
60026         * modules/xstrtol (Makefile.am): Likewise.
60027         * modules/xstrtold (Makefile.am): Likewise.
60028         * modules/yesno (Makefile.am): Likewise.
60029         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
60030
60031 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60032
60033         * modules/error (Makefile.am): Distribute files through
60034         EXTRA_DIST, not lib_SOURCES.
60035
60036 2006-10-12  Eric Blake  <ebb9@byu.net>
60037
60038         * modules/error (Makefile.am): Distribute files in /lib.
60039         * modules/obstack (Makefile.am): Likewise.
60040
60041 2006-10-12  Bruno Haible  <bruno@clisp.org>
60042
60043         * modules/acl (Makefile.am): Distribute all files in lib/ through
60044         EXTRA_DIST.
60045         * modules/arcfour (Makefile.am): Likewise.
60046         * modules/arctwo (Makefile.am): Likewise.
60047         * modules/argmatch (Makefile.am): Likewise.
60048         * modules/argz (Makefile.am): Likewise.
60049         * modules/atexit (Makefile.am): Likewise.
60050         * modules/backupfile (Makefile.am): Likewise.
60051         * modules/c-strtod (Makefile.am): Likewise.
60052         * modules/c-strtold (Makefile.am): Likewise.
60053         * modules/calloc (Makefile.am): Likewise.
60054         * modules/canon-host (Makefile.am): Likewise.
60055         * modules/canonicalize (Makefile.am): Likewise.
60056         * modules/chdir-long (Makefile.am): Likewise.
60057         * modules/chdir-safer (Makefile.am): Likewise.
60058         * modules/check-version (Makefile.am): Likewise.
60059         * modules/chown (Makefile.am): Likewise.
60060         * modules/cloexec (Makefile.am): Likewise.
60061         * modules/close-stream (Makefile.am): Likewise.
60062         * modules/closeout (Makefile.am): Likewise.
60063         * modules/crc (Makefile.am): Likewise.
60064         * modules/cycle-check (Makefile.am): Likewise.
60065         * modules/des (Makefile.am): Likewise.
60066         * modules/dirfd (Makefile.am): Likewise.
60067         * modules/dirname (Makefile.am): Likewise.
60068         * modules/dup2 (Makefile.am): Likewise.
60069         * modules/euidaccess (Makefile.am): Likewise.
60070         * modules/exclude (Makefile.am): Likewise.
60071         * modules/exitfail (Makefile.am): Likewise.
60072         * modules/fcntl-safer (Makefile.am): Likewise.
60073         * modules/file-type (Makefile.am): Likewise.
60074         * modules/fileblocks (Makefile.am): Likewise.
60075         * modules/filemode (Makefile.am): Likewise.
60076         * modules/filenamecat (Makefile.am): Likewise.
60077         * modules/fnmatch (Makefile.am): Likewise.
60078         * modules/fopen-safer (Makefile.am): Likewise.
60079         * modules/fpending (Makefile.am): Likewise.
60080         * modules/fprintftime (Makefile.am): Likewise.
60081         * modules/free (Makefile.am): Likewise.
60082         * modules/fsusage (Makefile.am): Likewise.
60083         * modules/ftruncate (Makefile.am): Likewise.
60084         * modules/fts (Makefile.am): Likewise.
60085         * modules/gc (Makefile.am): Likewise.
60086         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60087         * modules/getaddrinfo (Makefile.am): Likewise.
60088         * modules/getcwd (Makefile.am): Likewise.
60089         * modules/getdelim (Makefile.am): Likewise.
60090         * modules/getdomainname (Makefile.am): Likewise.
60091         * modules/getgroups (Makefile.am): Likewise.
60092         * modules/gethostname (Makefile.am): Likewise.
60093         * modules/gethrxtime (Makefile.am): Likewise.
60094         * modules/getline (Makefile.am): Likewise.
60095         * modules/getloadavg (Makefile.am): Likewise.
60096         * modules/getlogin_r (Makefile.am): Likewise.
60097         * modules/getopt (Makefile.am): Likewise.
60098         * modules/getpass (Makefile.am): Likewise.
60099         * modules/getpass-gnu (Makefile.am): Likewise.
60100         * modules/getsubopt (Makefile.am): Likewise.
60101         * modules/gettime (Makefile.am): Likewise.
60102         * modules/gettimeofday (Makefile.am): Likewise.
60103         * modules/getugroups (Makefile.am): Likewise.
60104         * modules/getusershell (Makefile.am): Likewise.
60105         * modules/glob (Makefile.am): Likewise.
60106         * modules/group-member (Makefile.am): Likewise.
60107         * modules/hard-locale (Makefile.am): Likewise.
60108         * modules/hash (Makefile.am): Likewise.
60109         * modules/hmac-md5 (Makefile.am): Likewise.
60110         * modules/hmac-sha1 (Makefile.am): Likewise.
60111         * modules/human (Makefile.am): Likewise.
60112         * modules/idcache (Makefile.am): Likewise.
60113         * modules/imaxabs (Makefile.am): Likewise.
60114         * modules/imaxdiv (Makefile.am): Likewise.
60115         * modules/inet_ntop (Makefile.am): Likewise.
60116         * modules/inet_pton (Makefile.am): Likewise.
60117         * modules/inttostr (Makefile.am): Likewise.
60118         * modules/isapipe (Makefile.am): Likewise.
60119         * modules/lchown (Makefile.am): Likewise.
60120         * modules/long-options (Makefile.am): Likewise.
60121         * modules/lstat (Makefile.am): Likewise.
60122         * modules/malloc (Makefile.am): Likewise.
60123         * modules/mathl (Makefile.am): Likewise.
60124         * modules/mbchar (Makefile.am): Likewise.
60125         * modules/md2 (Makefile.am): Likewise.
60126         * modules/md4 (Makefile.am): Likewise.
60127         * modules/md5 (Makefile.am): Likewise.
60128         * modules/memcasecmp (Makefile.am): Likewise.
60129         * modules/memchr (Makefile.am): Likewise.
60130         * modules/memcmp (Makefile.am): Likewise.
60131         * modules/memcoll (Makefile.am): Likewise.
60132         * modules/memcpy (Makefile.am): Likewise.
60133         * modules/memmem (Makefile.am): Likewise.
60134         * modules/memmove (Makefile.am): Likewise.
60135         * modules/mempcpy (Makefile.am): Likewise.
60136         * modules/memrchr (Makefile.am): Likewise.
60137         * modules/memset (Makefile.am): Likewise.
60138         * modules/memxor (Makefile.am): Likewise.
60139         * modules/mkancesdirs (Makefile.am): Likewise.
60140         * modules/mkdir (Makefile.am): Likewise.
60141         * modules/mkdir-p (Makefile.am): Likewise.
60142         * modules/mkdtemp (Makefile.am): Likewise.
60143         * modules/mkstemp (Makefile.am): Likewise.
60144         * modules/mktime (Makefile.am): Likewise.
60145         * modules/modechange (Makefile.am): Likewise.
60146         * modules/mountlist (Makefile.am): Likewise.
60147         * modules/nanosleep (Makefile.am): Likewise.
60148         * modules/openat (Makefile.am): Likewise.
60149         * modules/pagealign_alloc (Makefile.am): Likewise.
60150         * modules/physmem (Makefile.am): Likewise.
60151         * modules/poll (Makefile.am): Likewise.
60152         * modules/posixtm (Makefile.am): Likewise.
60153         * modules/posixver (Makefile.am): Likewise.
60154         * modules/putenv (Makefile.am): Likewise.
60155         * modules/quote (Makefile.am): Likewise.
60156         * modules/quotearg (Makefile.am): Likewise.
60157         * modules/raise (Makefile.am): Likewise.
60158         * modules/read-file (Makefile.am): Likewise.
60159         * modules/readline (Makefile.am): Likewise.
60160         * modules/readlink (Makefile.am): Likewise.
60161         * modules/readtokens (Makefile.am): Likewise.
60162         * modules/readutmp (Makefile.am): Likewise.
60163         * modules/realloc (Makefile.am): Likewise.
60164         * modules/regex (Makefile.am): Likewise.
60165         * modules/rename (Makefile.am): Likewise.
60166         * modules/rename-dest-slash (Makefile.am): Likewise.
60167         * modules/rijndael (Makefile.am): Likewise.
60168         * modules/rmdir (Makefile.am): Likewise.
60169         * modules/rpmatch (Makefile.am): Likewise.
60170         * modules/safe-read (Makefile.am): Likewise.
60171         * modules/safe-write (Makefile.am): Likewise.
60172         * modules/same (Makefile.am): Likewise.
60173         * modules/save-cwd (Makefile.am): Likewise.
60174         * modules/savedir (Makefile.am): Likewise.
60175         * modules/setenv (Makefile.am): Likewise.
60176         * modules/settime (Makefile.am): Likewise.
60177         * modules/sha1 (Makefile.am): Likewise.
60178         * modules/sig2str (Makefile.am): Likewise.
60179         * modules/snprintf (Makefile.am): Likewise.
60180         * modules/stdlib-safer (Makefile.am): Likewise.
60181         * modules/stpcpy (Makefile.am): Likewise.
60182         * modules/stpncpy (Makefile.am): Likewise.
60183         * modules/strcase (Makefile.am): Likewise.
60184         * modules/strcasestr (Makefile.am): Likewise.
60185         * modules/strchrnul (Makefile.am): Likewise.
60186         * modules/strcspn (Makefile.am): Likewise.
60187         * modules/strdup (Makefile.am): Likewise.
60188         * modules/strerror (Makefile.am): Likewise.
60189         * modules/strftime (Makefile.am): Likewise.
60190         * modules/strndup (Makefile.am): Likewise.
60191         * modules/strnlen (Makefile.am): Likewise.
60192         * modules/strpbrk (Makefile.am): Likewise.
60193         * modules/strsep (Makefile.am): Likewise.
60194         * modules/strstr (Makefile.am): Likewise.
60195         * modules/strtod (Makefile.am): Likewise.
60196         * modules/strtoimax (Makefile.am): Likewise.
60197         * modules/strtok_r (Makefile.am): Likewise.
60198         * modules/strtol (Makefile.am): Likewise.
60199         * modules/strtoll (Makefile.am): Likewise.
60200         * modules/strtoul (Makefile.am): Likewise.
60201         * modules/strtoull (Makefile.am): Likewise.
60202         * modules/strtoumax (Makefile.am): Likewise.
60203         * modules/strverscmp (Makefile.am): Likewise.
60204         * modules/time_r (Makefile.am): Likewise.
60205         * modules/timegm (Makefile.am): Likewise.
60206         * modules/tmpfile-safer (Makefile.am): Likewise.
60207         * modules/unistd-safer (Makefile.am): Likewise.
60208         * modules/unlinkdir (Makefile.am): Likewise.
60209         * modules/userspec (Makefile.am): Likewise.
60210         * modules/utime (Makefile.am): Likewise.
60211         * modules/utimecmp (Makefile.am): Likewise.
60212         * modules/utimens (Makefile.am): Likewise.
60213         * modules/vasnprintf (Makefile.am): Likewise.
60214         * modules/vasprintf (Makefile.am): Likewise.
60215         * modules/vsnprintf (Makefile.am): Likewise.
60216         * modules/xalloc (Makefile.am): Likewise.
60217         * modules/xgetcwd (Makefile.am): Likewise.
60218         * modules/xnanosleep (Makefile.am): Likewise.
60219         * modules/xreadlink (Makefile.am): Likewise.
60220         * modules/xstrtod (Makefile.am): Likewise.
60221         * modules/xstrtol (Makefile.am): Likewise.
60222         * modules/xstrtold (Makefile.am): Likewise.
60223         * modules/yesno (Makefile.am): Likewise.
60224
60225 2006-10-12  Jim Meyering  <jim@meyering.net>
60226
60227         * m4/getloadavg.m4: Revert the change below.
60228
60229         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
60230         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
60231         fail with a symlink, which is what coreutils' ./bootstrap now
60232         creates by default.
60233
60234 2006-10-12  Bruno Haible  <bruno@clisp.org>
60235
60236         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
60237         mingw.
60238         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
60239         MSVC and mingw explicitly.
60240
60241 2006-10-11  Simon Josefsson  <jas@extundo.com>
60242             Bruno Haible  <bruno@clisp.org>
60243
60244         Add support for multiple gnulib-tool invocations in the scope of a
60245         single configure.ac file.
60246         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
60247         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
60248         with the same contents as the _LIBADD variable.
60249         (func_emit_initmacro_start, func_emit_initmacro_end,
60250         func_emit_initmacro_done): New functions.
60251         (func_import, func_create_testdir): Invoke them. Allow the identifiers
60252         gl_LIBOBJS and gl_LTLIBOBJS.
60253
60254 2006-10-11  Bruno Haible  <bruno@clisp.org>
60255
60256         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
60257         (func_create_testdir): Don't create po/Makefile.am, don't invoke
60258         autoreconf. Instead, invoke autopoint explicitly but move back the
60259         *.m4 files from gnulib.
60260
60261 2006-10-11  Bruno Haible  <bruno@clisp.org>
60262
60263         * gnulib-tool (func_usage): Make module names after --create-testdir
60264         optional.
60265         (func_create_testdir): If no module was specified, use nearly all
60266         modules.
60267
60268 2006-10-12  Jim Meyering  <jim@meyering.net>
60269
60270         Big performance improvement for fts-based tools that use FTS_NOSTAT.
60271         Avoid spurious inode-mismatch problems on non-POSIX file systems.
60272         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
60273         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
60274         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
60275         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
60276         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
60277         (fts_set_stat_required): New function.
60278         (fts_open): Defer the calls to fts_stat, if possible or requested.
60279         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
60280         into fts_stat itself.
60281         (fts_read): Perform any required (deferred) fts_stat call.
60282         (fts_build): Likewise, for the directory we're about to open and read.
60283         In the readdir loop, carefully decide whether each entry will require
60284         an eventual call to fts_stat, using dirent.d_type info if available.
60285         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
60286         a command line argument into this function.  Update all callers.
60287         Map a return value of FTS_DOT to FTS_D for a command line argument.
60288         * modules/fts (Depends-on): Add d-type.  Alphabetize.
60289         Thanks to Miklos Szeredi for his tenacity and for the initial
60290         bug report about "find" failing on a FUSE-based file system.
60291
60292         * lib/fts.c (fts_open): Use consistent indentation.
60293
60294 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60295
60296         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
60297         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
60298         reported by Jim Meyering.  All uses of cache variables renamed
60299         to match Autoconf's.
60300         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
60301         the other one.
60302
60303         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60304         Fix misspelling in diagnostic.
60305
60306 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60307
60308         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
60309         defined.  Problem reported by Matthew Woehlke.
60310
60311         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
60312         Add support for Tandem NonStop R series.
60313         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
60314         Use new macro.
60315
60316         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
60317         (has_trailing_slash): Omit size arg; all callers changed.
60318         Omit 'inline', since it doesn't help performance and we'd
60319         need to configure it.
60320         Don't count //, ///, etc. as having a trailing slash.
60321         As a side effect, this removes a C99ism reported by Matthew Woehlke.
60322         (rpl_rename_dest_slash): On failure, use rename's errno rather
60323         than (in some cases) an incorrect or junk errno.
60324         Simplify code by removing need to compute length; this does
60325         cause it to make two passes instead of one over the file name,
60326         but it's worth it.
60327
60328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
60329         change, since Autoconf's version may no longer be appropriate now
60330         that we are using CVS Autoconf's version.  Add support for Tandem.
60331
60332 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60333             Bruno Haible  <bruno@clisp.org>
60334
60335         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
60336         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
60337         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
60338         gl_AC_TYPE_LONG_LONG.
60339
60340         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
60341         instead of HAVE_LONG_LONG.
60342         * lib/printf-args.c (printf_fetchargs): Likewise.
60343         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60344         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60345         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
60346         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
60347         gl_AC_TYPE_LONG_LONG.
60348
60349 2006-10-11  Bruno Haible  <bruno@clisp.org>
60350
60351         * m4/longlong.m4: Add comments.
60352         * m4/ulonglong.m4: Likewise.
60353
60354 2006-10-10  Bruno Haible  <bruno@clisp.org>
60355
60356         Make it possible to #define stpcpy, strdup to aliases.
60357         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
60358         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
60359
60360 2006-10-10  Bruno Haible  <bruno@clisp.org>
60361
60362         Make it possible to #define gcd to an alias.
60363         * lib/gcd.c: Include config.h.
60364
60365 2006-10-10  Bruno Haible  <bruno@clisp.org>
60366
60367         Make it possible to #define c_isascii to an alias.
60368         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
60369         defined. Undefine the macros before defining them, to avoid gcc
60370         warnings.
60371         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
60372         define NO_C_CTYPE_MACROS early.
60373
60374 2006-10-10  Bruno Haible  <bruno@clisp.org>
60375
60376         Make it possible to #define set_program_name to an alias.
60377         * lib/progname.c: Don't undefine set_program_name; instead, undefine
60378         ENABLE_RELOCATABLE early.
60379
60380 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60381
60382         Port to Tandem NSK OSS, which has 64-bit signed int but at most
60383         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
60384         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
60385         More generally, don't assume that 64-bit signed int is available
60386         if unsigned int is, and vice versa.
60387         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
60388         unsigned symbols, not on their signed counterparts.
60389         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
60390         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
60391         (UINT64_C, UINTMAX_C):
60392         Likewise.
60393         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
60394         unsigned counterparts.
60395         (Have_long_long, Unsigned): New macros.
60396         (Int): Renamed from INT.
60397         (strtoimax): Use the new macros.
60398         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
60399         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
60400         * modules/inttypes (inttypes.h): Substitute
60401         HAVE_UNSIGNED_LONG_LONG_INT.
60402         * modules/stdint (stdint.h): Likewise.
60403         (Files): Add m4/ulonglong.m4.
60404
60405 2006-10-10  Bruno Haible  <bruno@clisp.org>
60406
60407         Fix a gcc -Wshadow warning.
60408         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60409         to 'bucket'.
60410         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60411         gl_linked_indexof_from_to): Likewise.
60412         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60413         Likewise.
60414         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60415         Likewise.
60416         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60417         Reported by Eric Blake.
60418
60419 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60420
60421         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60422         for NetBSD.  Problem reported by Bruno Haible.
60423
60424 2006-10-09  Jim Meyering  <jim@meyering.net>
60425
60426         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60427         Patch from Bruno Haible.
60428
60429 2006-10-09  Jim Meyering  <jim@meyering.net>
60430
60431         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60432         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60433         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60434
60435 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60436
60437         Don't include <config.h> twice; this doesn't work in some cases,
60438         e.g., when config.h has "#define intmax_t long long int" and
60439         we include <config.h>, <inttypes.h>, <config.h> in that order.
60440         Problem reported by Matthew Woehlke in:
60441         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60442         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60443         * lib/fts-cycle.c: Don't include config.h.
60444         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60445         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60446         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60447         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60448         inttypes.h.
60449         * lib/xstrtoumax.c: Likewise.
60450         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60451         __strtol and the like, so that this module is more like its siblings.
60452         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60453         Remove; no longer needed now that we assume gnulib inttypes.h.
60454
60455 2006-10-08  Bruno Haible  <bruno@clisp.org>
60456
60457         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60458         option.
60459
60460 2006-10-07  Jim Meyering  <jim@meyering.net>
60461
60462         * modules/inttypes (inttypes.h): Revert what seems to have been
60463         an inadvertent part of today's change: use "|", not "/" in the
60464         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60465
60466 2006-10-07  Bruno Haible  <bruno@clisp.org>
60467
60468         * modules/sublist: New file.
60469
60470 2006-10-07  Bruno Haible  <bruno@clisp.org>
60471
60472         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60473         * modules/argz (argz.h): Likewise.
60474         * modules/arpa_inet (arpa/inet.h): Likewise.
60475         * modules/byteswap (byteswap.h): Likewise.
60476         * modules/configmake (configmake.h): Likewise.
60477         * modules/fcntl (fcntl.h): Likewise.
60478         * modules/fnmatch (fnmatch.h): Likewise.
60479         * modules/getopt (getopt.h): Likewise.
60480         * modules/glob (glob.h): Likewise.
60481         * modules/inttypes (inttypes.h): Likewise.
60482         * modules/netinet_in (netinet/in.h): Likewise.
60483         * modules/poll (poll.h): Likewise.
60484         * modules/stdbool (stdbool.h): Likewise.
60485         * modules/stdint (stdint.h): Likewise.
60486         * modules/sys_select (sys/select.h): Likewise.
60487         * modules/sys_socket (sys/socket.h): Likewise.
60488         * modules/sys_stat (sys/stat.h): Likewise.
60489         * modules/sysexits (sysexits.h): Likewise.
60490         * modules/unistd (unistd.h): Likewise.
60491         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60492         Add a "DO NOT EDIT" comment to the generated file.
60493         (func_import): Likewise for gnulib-comp.m4.
60494
60495 2006-10-07  Bruno Haible  <bruno@clisp.org>
60496
60497         * lib/gl_sublist.h: New file.
60498         * lib/gl_sublist.c: New file.
60499
60500 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60501
60502         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60503         name (relative to the original working directory) and the file
60504         name component (relative to the temporary working directory).  All
60505         callers changed.
60506         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60507         * lib/mkdir-p.c (make_dir_parents): Likewise.
60508         * lib/mkdir-p.h (make_dir_parents): Likewise.
60509
60510 2006-10-06  Eric Blake  <ebb9@byu.net>
60511
60512         Define several macros for use by the clean-temp module.
60513         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60514         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60515         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60516
60517         * lib/clean-temp.h (close_stream_temp): New declaration.
60518         * lib/clean-temp.c (includes): Pull in headers according to what
60519         other modules are in use.
60520         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60521
60522 2006-10-06  Bruno Haible  <bruno@clisp.org>
60523
60524         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60525         instead of fopen, fwriteerror.
60526
60527 2006-10-06  Bruno Haible  <bruno@clisp.org>
60528
60529         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60530         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60531         int.
60532         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60533         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60534         Return an error indicator.
60535         Suggested by Eric Blake.
60536
60537 2006-10-06  Bruno Haible  <bruno@clisp.org>
60538
60539         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60540         Reported by Eric Blake.
60541
60542 2006-10-06  Bruno Haible  <bruno@clisp.org>
60543
60544         * modules/closeout (Description): Mention stderr too.
60545
60546 2006-10-06  Bruno Haible  <bruno@clisp.org>
60547         and Paul Eggert  <eggert@cs.ucla.edu>
60548
60549         * lib/closeout.c (close_stdout): Also close stderr.
60550         * lib/closeout.h: Update comment.
60551
60552 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60553
60554         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60555         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60556         * lib/dirchownmod.c: Include lchown.h.
60557         * lib/lchown.c: Don't include files that lchown.h now includes.
60558         Don't declare chown, since lchown.h now does that.
60559         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60560         (lchown): Define to rpl_chown if lchown is declared but
60561         does not exist.  Declare using a prototype if lchown is not
60562         declared.  Add a copyright notice.
60563         * lib/mkstemp.h: Include <unistd.h>.
60564         * lib/openat.c: Include lchown.h.
60565
60566         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60567         we now test for that separately.
60568         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60569         rather than O_NOFOLLOW, when testing whether it's possible to
60570         avoid a race condition reliably.
60571         * lib/savewd.c (savewd_chdir): Likewise.
60572
60573         Remove macros that are no longer needed now that stdint.h is
60574         reliable.
60575         * lib/fsusage.c (UINTMAX_MAX): Remove.
60576         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60577         * lib/utimecmp.c (SIZE_MAX): Remove.
60578
60579         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60580
60581         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60582         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60583         O_NOATIME works.
60584
60585 2006-10-05  Bruno Haible  <bruno@clisp.org>
60586
60587         * lib/gl_list.h (gl_sortedlist_search_from_to,
60588         gl_sortedlist_indexof_from_to): New declarations.
60589         (gl_list_implementation): New fields sortedlist_search_from_to,
60590         sortedlist_indexof_from_to.
60591         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60592         inline functions.
60593         * lib/gl_list.c (gl_sortedlist_search_from_to,
60594         gl_sortedlist_indexof_from_to): New functions.
60595         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60596         function.
60597         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60598         (gl_array_sortedlist_search_from_to): New function.
60599         (gl_array_list_implementation): Update.
60600         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60601         function.
60602         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60603         (gl_carray_sortedlist_search_from_to): New function.
60604         (gl_carray_list_implementation): Update.
60605         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60606         gl_linked_sortedlist_indexof_from_to): New functions.
60607         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60608         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60609         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60610         gl_tree_sortedlist_indexof_from_to): New functions.
60611         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60612         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60613         Update.
60614         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60615         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60616         Update.
60617
60618 2006-10-05  Bruno Haible  <bruno@clisp.org>
60619
60620         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60621         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60622         (struct gl_list_implementation): Add fields search_from_to,
60623         indexof_from_to. Remove fields search, indexof.
60624         (gl_list_search): Use the search_from_to method.
60625         (gl_list_search_from, gl_list_search_from_to): New functions.
60626         (gl_list_indexof): Use the indexof_from_to method.
60627         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60628         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60629         (gl_list_search_from, gl_list_search_from_to): New functions.
60630         (gl_list_indexof): Use the indexof_from_to method.
60631         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60632         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60633         gl_array_indexof. Add start_index, end_index arguments.
60634         (gl_array_search_from_to): Renamed from gl_array_search. Add
60635         start_index, end_index arguments.
60636         (gl_array_remove, gl_array_list_implementation): Update.
60637         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60638         gl_carray_indexof. Add start_index, end_index arguments.
60639         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60640         start_index, end_index arguments.
60641         (gl_carray_remove, gl_carray_list_implementation): Update.
60642         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60643         gl_linked_search. Add start_index, end_index arguments.
60644         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60645         start_index, end_index arguments.
60646         (gl_linked_remove): Update.
60647         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60648         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60649         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60650         field to 'size_t'.
60651         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60652         gl_tree_search. Add start_index, end_index arguments.
60653         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60654         start_index, end_index arguments.
60655         (gl_tree_remove): Update.
60656         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60657         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60658         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60659         function.
60660         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60661         gl_tree_search. Add start_index, end_index arguments.
60662         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60663         start_index, end_index arguments.
60664         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60665         Update.
60666         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60667
60668 2006-10-05  Bruno Haible  <bruno@clisp.org>
60669
60670         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60671
60672         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60673         fwriteerror_temp): New declarations.
60674         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60675         (descriptors): New variable.
60676         (cleanup): First, close the descriptors.
60677         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60678         fclose_temp, fwriteerror_temp): New functions.
60679
60680 2006-10-04  Jim Meyering  <jim@meyering.net>
60681
60682         * lib/fts.c (fts_open): Tiny comment change.
60683
60684 2006-10-04  Bruno Haible  <bruno@clisp.org>
60685
60686         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60687         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60688         gl_LOCK_BODY.
60689         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60690         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60691         gl_LOCK_EARLY_BODY.
60692         (gl_LOCK): Require gl_LOCK_BODY.
60693
60694 2006-10-04  Bruno Haible  <bruno@clisp.org>
60695
60696         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60697         (gl_oset_search_atleast): New declaration.
60698         (struct gl_oset_implementation): Add field 'search_atleast'.
60699         (gl_oset_search_atleast): New inline function.
60700         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60701         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60702         (gl_array_oset_implementation): Update.
60703         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60704         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60705         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60706
60707 2006-10-04  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60710
60711 2006-10-03  Bruno Haible  <bruno@clisp.org>
60712
60713         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60714         from gl_avltreehash_list_implementation.
60715
60716 2006-10-03  Bruno Haible  <bruno@clisp.org>
60717
60718         * lib/gl_oset.c (gl_oset_add): Fix return type.
60719
60720 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60721
60722         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60723
60724 2006-10-02  Eric Blake  <ebb9@byu.net>
60725
60726         * modules/strnlen (Depends-on): Add extensions.
60727
60728 2006-10-02  Eric Blake  <ebb9@byu.net>
60729
60730         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60731         definition in 2.60+.
60732
60733 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60734
60735         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60736         checks.
60737
60738 2006-10-02  Bruno Haible  <bruno@clisp.org>
60739
60740         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60741         to the AUTOMAKE_OPTIONS.
60742         Reported by Jim Meyering.
60743
60744 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60745
60746         Work around bug in Solaris 10 /proc file system:
60747         /proc/self/fd/NNN/.. isn't the parent directory of
60748         the directory whose file descriptor is NNN.  This needs to
60749         be worked around at run time, not compile time, since a
60750         program might be built on Solaris 8, where things work, and
60751         run on Solaris 10.
60752         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60753         to use the following interface instead:
60754         (OPENAT_BUFFER_SIZE): New macro.
60755         (openat_proc_name): New function.
60756         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60757         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60758         Likewise.
60759         * lib/openat-proc.c: New file.
60760         * modules/openat (Files): Add lib/openat-proc.c.
60761         (Depends-on): Add same-inode, stdbool.
60762         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60763
60764 2006-09-29  Bruno Haible  <bruno@clisp.org>
60765
60766         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60767         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60768         argument. Set stdout_closed before testing for ferror, not after.
60769         (fwriteerror, fwriteerror_no_ebadf): New functions.
60770
60771 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60772
60773         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60774
60775 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60776
60777         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60778         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60779
60780 2006-09-28  Jim Meyering  <jim@meyering.net>
60781
60782         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60783         Include <unistd.h>.
60784
60785 2006-09-28  Bruno Haible  <bruno@clisp.org>
60786
60787         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60788         * modules/linkedhash-list (Depends-on): Likewise.
60789         * modules/rbtreehash-list (Depends-on): Likewise.
60790
60791 2006-09-28  Bruno Haible  <bruno@clisp.org>
60792
60793         * lib/strndup.h: Simplify the redefinition of strndup.
60794         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60795         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60796
60797 2006-09-28  Bruno Haible  <bruno@clisp.org>
60798
60799         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60800         * lib/gl_linkedhash_list.c: Likewise.
60801         * lib/gl_rbtreehash_list.c: Likewise.
60802
60803 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60804
60805         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60806         getaddrinfo.
60807
60808         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60809         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60810         it causes <stdio_ext.h> to cause a compile-time error.
60811         Problem reported by Nelson H. F. Beebe.
60812         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60813         of HAVE_DECL___PENDING.
60814
60815         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60816         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60817         declaration.
60818
60819 2006-09-27  Jim Meyering  <jim@meyering.net>
60820
60821         This file could end up with a definition for a function
60822         named __strndup, rather than rpl_strndup on a system with
60823         incomplete weak_alias support.
60824         * lib/strndup.c (strndup): Rename from __strndup.
60825         Remove #defines that used to map __strndup to strndup.
60826         Don't use K&R prototypes.
60827         Remove LIBC-related code, since this file is not sync'd with glibc.
60828         * lib/strndup.h: Revamp, accordingly.
60829         * m4/strndup.m4: Modernize.
60830
60831 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * modules/savewd (Depends-on): Add 'raise'.
60834         * lib/savewd.c: Include <signal.h>, for 'raise'.
60835
60836 2006-09-26  Jim Meyering  <jim@meyering.net>
60837
60838         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60839         when we detect Darwin 8.7.0's acl_get_file bug.
60840         Rearrange to perform the new (below) run-test while $LIBS
60841         contains any acl-related library.  Set USE_ACL at the end.
60842         (gl_ACL_GET_FILE): New function.
60843
60844 2006-09-26  Eric Blake  <ebb9@byu.net>
60845
60846         * lib/verror.c: Include <config.h> unconditionally.
60847
60848 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60849
60850         * modules/clock-time (Maintainer): Add self.
60851         * modules/getlogin_r (Depends-on): Add extensions.
60852
60853 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60854
60855         * modules/clock-time: New module.
60856         * modules/nanosleep (Depends-on): Add clock-time.
60857         * modules/gethrxtime (Depends-on): Likewise.
60858         * modules/gettime (Depends-on): Likewise.
60859         * modules/settime (Depends-on): Likewise.
60860
60861         * modules/fts-lgpl: Depend on openat.
60862         * modules/mkancesdirs: Depend on savewd.
60863         * modules/mkdir-p: Likewise.
60864
60865 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60866
60867         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60868
60869         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60870         `gl_have_arbitrary_file_name_length_limit' to
60871         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60872         actually works between configure runs.
60873
60874 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60875             Bruno Haible  <bruno@clisp.org>
60876
60877         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60878
60879 2006-09-25  Jim Meyering  <jim@meyering.net>
60880
60881         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60882         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60883
60884 2006-09-25  Eric Blake  <ebb9@byu.net>
60885
60886         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60887         exec's in 2006-09-18 patch when shuffling fds.
60888
60889 2006-09-25  Bruno Haible  <bruno@clisp.org>
60890
60891         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60892         Reported by Jim Meyering.
60893
60894 2006-09-24  Jim Meyering  <jim@meyering.net>
60895
60896         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60897         compare a pointer against a literal "0".  That caused failures with
60898         at least HP-UX's hpcc.
60899
60900 2006-09-22  Simon Josefsson  <jas@extundo.com>
60901
60902         * modules/gc-sha1:
60903         * modules/gc-md4:
60904         * modules/gc-hmac-sha1:
60905         * modules/gc-hmac-md5:
60906         * modules/gc-des:
60907         * modules/gc-arcfour: Distribute more files.
60908
60909 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60910
60911         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60912         (gl_linked_iterator_from_to): Initialize struct completely.
60913         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60914         (gl_tree_iterator_from_to): Likewise
60915         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60916         * lib/gl_array_list.c [lint] (gl_array_iterator)
60917         (gl_array_iterator_from_to): Likewise.
60918         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60919         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60920         (gl_carray_iterator_from_to): Likewise.
60921
60922         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60923         * lib/md4.c (md4_process_block): Remove unused variable.
60924         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60925         parentheses for clarity.
60926
60927 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60928
60929         * modules/bison-i18n (Depends-on): Add gettext.
60930
60931 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60932
60933         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60934         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60935         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60936         also add missing comma that caused broken test.
60937         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60938         stdlib.h, for `abort'.
60939         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60940         variables.
60941         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60942         include unistd.h if present, for `rmdir'.
60943         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60944         variables.
60945         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60946         in the process include standard headers for prototypes.
60947         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60948         gets declared on GNU/Linux.
60949         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60950         unistd.h, for `rmdir'.
60951         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60952
60953         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60954         always true.
60955         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60956
60957         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60958
60959 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60960
60961         * gnulib-tool (func_version): Create output all at once.  This
60962         may help avoid triggering unnecessary SIGPIPEs, and at any
60963         rate it doesn't hurt.
60964
60965 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60966             Bruno Haible  <bruno@clisp.org>
60967
60968         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60969         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60970         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60971
60972         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60973         (gl_FUNC_VASPRINTF): Invoke it.
60974
60975 2006-09-22  Bruno Haible  <bruno@clisp.org>
60976
60977         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60978         getloadavg.c as first argument.
60979
60980 2006-09-22  Bruno Haible  <bruno@clisp.org>
60981
60982         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60983         at the beginning of the gl_INIT macro.
60984         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60985         gl_GETLOADAVG.
60986
60987 2006-09-22  Bruno Haible  <bruno@clisp.org>
60988
60989         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60990         module.
60991         Suggested by Ralf Wildenhues.
60992
60993 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60994
60995         Import this patch from libc:
60996
60997         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60998
60999         * lib/regex_internal.c (re_string_reconstruct): Handle
61000         offset < pstr->valid_raw_len && pstr->offsets_needed case.
61001         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
61002         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
61003         re_string_context_at.
61004
61005         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
61006         now requires it.
61007         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
61008         gl_REGEX now does it for us.
61009         (gl_REGEX): Add test taken from
61010         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
61011
61012         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
61013         Check that large offsets work.  Modernize Autoconf usages.
61014         Prefer "yes" to mean a good thing rather than a bad.
61015         Don't put "#define mkstemp" in config.h, as this might interfere
61016         with standard system headers that "#define mkstemp mkstemp64".
61017
61018         * modules/mkstemp (Depends-on): Add extensions, so that
61019         mkstemp is visible on some platforms.
61020         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
61021         (Include): Change to "mkstemp.h" from <stdlib.h>.
61022         (Files): Add mkstemp.h.
61023
61024         * lib/mkstemp.h: New file, since some standard headers
61025         #define mkstemp.
61026         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
61027         Include "mkstemp.h".
61028         Make the _LIBC code resemble glibc original more,
61029         e.g., use K&R style.
61030         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
61031         (mkstemp): Remove, since mkstemp.h does this for us.
61032         * lib/stdlib--.h: Include mkstemp.h.
61033
61034         Import this patch from libc:
61035
61036         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61037
61038         * lib/tempname.c (__gen_tempname): Change attempts_min
61039         into a macro.  Use preprocessor to decide how to initialize
61040         attempts [Coverity CID 67].
61041
61042 2006-09-20  Bruno Haible  <bruno@clisp.org>
61043
61044         * lib/mkdtemp.c: Import from libc.
61045         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61046                 * sysdeps/posix/tempname.c (__gen_tempname): Change
61047                 attempts_min into a macro.  Use preprocessor to decide how to
61048                 initialize attempts [Coverity CID 67].
61049         2001-11-27  Paul Eggert  <eggert@twinsun.com>
61050                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
61051                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
61052
61053 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61054
61055         * gnulib-tool (func_exit): New function, to allow to pass the
61056         exit status portably through the trap.  Use everywhere.
61057         (--help, --version): Signal a write error.
61058         (trap): catch SIGPIPE, for write errors.
61059         Exit at the end of the trap, with the correct exit status.
61060
61061 2006-09-19  Karl Berry  <karl@gnu.org>
61062
61063         * doc/gnulib.texi: note about the license texinfo files.
61064
61065 2006-09-19  Eric Blake  <ebb9@byu.net>
61066
61067         * gnulib-tool: Avoid space-tab.
61068
61069 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61070
61071         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
61072         that prevented coreutils 6.1 from building.  Problem reported
61073         by Petter Reinholdtsen.
61074
61075 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61076
61077         * gnulib-tool (avoidlist): Fix typo that broke options like
61078         --avoid=lock that are used by coreutils bootstrap.
61079
61080 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
61081
61082         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
61083         more systematically.
61084
61085 2006-09-18  Jim Meyering  <jim@meyering.net>
61086
61087         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
61088
61089 2006-09-18  Bruno Haible  <bruno@clisp.org>
61090
61091         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
61092
61093 2006-09-18  Bruno Haible  <bruno@clisp.org>
61094
61095         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
61096         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
61097         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
61098         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
61099         * m4/gettext.m4: Require autoconf >= 2.52.
61100         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
61101         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
61102         of gl_cv_header_inttypes_h.
61103
61104 2006-09-18  Bruno Haible  <bruno@clisp.org>
61105
61106         * lib/javaversion.c: Include configmake.h.
61107
61108 2006-09-18  Bruno Haible  <bruno@clisp.org>
61109
61110         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
61111         avoid that the while loops be executed in a subshell.
61112
61113 2006-09-18  Bruno Haible  <bruno@clisp.org>
61114
61115         * MODULES.html.sh (func_module): Break long lines.
61116         Suggested by Bruce Korb <bkorb@gnu.org>.
61117
61118 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61119
61120         Speed up by a factor of 1.12.
61121         * gnulib-tool (nl): New variable.
61122         (func_import): Rewrite include directive extraction to only read each
61123         directive once.
61124
61125 2006-09-17  Bruno Haible  <bruno@clisp.org>
61126
61127         * modules/javaversion (Makefile.am): Remove DEFS setting.
61128         (Depends-on): Add configmake, for PKGDATADIR definition.
61129
61130 2006-09-17  Bruno Haible  <bruno@clisp.org>
61131
61132         * gnulib-tool (func_create_testdir): Rewrite all files at once.
61133
61134 2006-09-17  Bruno Haible  <bruno@clisp.org>
61135
61136         * gnulib-tool (func_append): New function, stolen from libtool.m4.
61137         (func_modules_transitive_closure, func_modules_add_dummy,
61138         func_modules_to_filelist, func_import, func_create_testdir,
61139         func_create_megatestdir, ...): Use it wherever possible.
61140         Suggested by Ralf Wildenhues.
61141
61142 2006-09-16  Karl Berry  <karl@gnu.org>
61143
61144         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
61145         to avoid sectioning errors.
61146         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
61147         [ifinfo]: blank line after @center-ed titles.
61148         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
61149         Spell FSF address consistently with others.
61150         (These changes approved by rms.)
61151
61152 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61153
61154         Speed up by a factor of 1.61.
61155         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
61156         already checked module names again.
61157
61158 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61159
61160         Speed up by a factor of 1.13.
61161         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
61162         for new_files, and the input to func_add_or_update.
61163
61164 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61165
61166         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
61167         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
61168
61169 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61170
61171         * modules/mkancesdirs (Depends-on): Add fcntl.
61172         * modules/savewd: New file.
61173         * MODULES.html.sh (File system functions): Add savewd.
61174
61175         * modules/configmake (Makefile.am): Add support for the
61176         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
61177
61178 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61179
61180         * m4/savewd.m4: New file.
61181
61182 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61183
61184         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
61185         (dirchownmod): New arg FD.  All callers changed.
61186         Use FD rather than opening the directory ourself, as opening is
61187         now the caller's responsibility.
61188         * lib/dirchownmod.h: Likewise.
61189         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
61190         hosts that require <sys/types.h> before <sys/stat.h>.  Include
61191         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
61192         (test_dir): Remove.
61193         (mkancesdirs): Return length of prefix of FILE that has already
61194         been made, or -2 if there is a child doing the work.  Redo
61195         algorithm so that it is O(N) rather than O(N**2).  Optimize away
61196         ".", and treat ".." specially since it might stray back into
61197         already-created areas.  Use a subprocess if necessary.  New arg
61198         WD; all users changed.  MAKE_DIR function should now return 1
61199         if it creates a directory that is not readable.  Return -2 if
61200         a child process is spun off.
61201         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
61202         Adjust signature to match code.
61203         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
61204         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
61205         all users changed.
61206         * lib/savewd.c, lib/savewd.h: New files.
61207
61208 2006-09-15  Jim Meyering  <jim@meyering.net>
61209
61210         * modules/rename-dest-slash: New module.
61211         * MODULES.html.sh (posix_compat): Add it here.
61212
61213         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
61214
61215 2006-09-15  Jim Meyering  <jim@meyering.net>
61216
61217         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
61218         file.
61219
61220         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
61221
61222 2006-09-15  Jim Meyering  <jim@meyering.net>
61223
61224         * lib/rename-dest-slash.c (has_trailing_slash): Use
61225         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
61226         (rpl_rename_dest_slash): Perform the cheaper trailing slash
61227         test before testing whether SRC is a directory.
61228         Suggestions from Bruno Haible.
61229
61230         Avoid a warning about an unused variable.
61231         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
61232         into the #ifdef block where it's used.
61233
61234         * lib/rename-dest-slash.c: New file.
61235
61236 2006-09-14  Bruno Haible  <bruno@clisp.org>
61237
61238         * lib/allocsa.c: Include <config.h> unconditionally.
61239         * lib/asnprintf.c: Likewise.
61240         * lib/asprintf.c: Likewise.
61241         * lib/c-strcasecmp.c: Likewise.
61242         * lib/c-strcasestr.c: Likewise.
61243         * lib/c-strncasecmp.c: Likewise.
61244         * lib/c-strstr.c: Likewise.
61245         * lib/classpath.c: Likewise.
61246         * lib/clean-temp.c: Likewise.
61247         * lib/concatpath.c: Likewise.
61248         * lib/copy-file.c: Likewise.
61249         * lib/csharpcomp.c: Likewise.
61250         * lib/csharpexec.c: Likewise.
61251         * lib/execute.c: Likewise.
61252         * lib/fatal-signal.c: Likewise.
61253         * lib/findprog.c: Likewise.
61254         * lib/fwriteerror.c: Likewise.
61255         * lib/gl_array_list.c: Likewise.
61256         * lib/gl_array_oset.c: Likewise.
61257         * lib/gl_avltree_list.c: Likewise.
61258         * lib/gl_avltree_oset.c: Likewise.
61259         * lib/gl_avltreehash_list.c: Likewise.
61260         * lib/gl_carray_list.c: Likewise.
61261         * lib/gl_linked_list.c: Likewise.
61262         * lib/gl_linkedhash_list.c: Likewise.
61263         * lib/gl_list.c: Likewise.
61264         * lib/gl_oset.c: Likewise.
61265         * lib/gl_rbtree_list.c: Likewise.
61266         * lib/gl_rbtree_oset.c: Likewise.
61267         * lib/gl_rbtreehash_list.c: Likewise.
61268         * lib/imaxabs.c: Likewise.
61269         * lib/imaxdiv.c: Likewise.
61270         * lib/javacomp.c: Likewise.
61271         * lib/javaexec.c: Likewise.
61272         * lib/javaversion.c: Likewise.
61273         * lib/linebreak.c: Likewise.
61274         * lib/localcharset.c: Likewise.
61275         * lib/lock.c: Likewise.
61276         * lib/mbchar.c: Likewise.
61277         * lib/mbswidth.c: Likewise.
61278         * lib/mkdtemp.c: Likewise.
61279         * lib/pipe.c: Likewise.
61280         * lib/printf-args.c: Likewise.
61281         * lib/printf-parse.c: Likewise.
61282         * lib/progname.c: Likewise.
61283         * lib/progreloc.c: Likewise.
61284         * lib/readlink.c: Likewise.
61285         * lib/sh-quote.c: Likewise.
61286         * lib/stpcpy.c: Likewise.
61287         * lib/stpncpy.c: Likewise.
61288         * lib/strcasecmp.c: Likewise.
61289         * lib/strcasestr.c: Likewise.
61290         * lib/strcspn.c: Likewise.
61291         * lib/striconv.c: Likewise.
61292         * lib/strncasecmp.c: Likewise.
61293         * lib/strnlen1.c: Likewise.
61294         * lib/strstr.c: Likewise.
61295         * lib/strtok_r.c: Likewise.
61296         * lib/tls.c: Likewise.
61297         * lib/tmpdir.c: Likewise.
61298         * lib/unicodeio.c: Likewise.
61299         * lib/unsetenv.c: Likewise.
61300         * lib/vasnprintf.c: Likewise.
61301         * lib/vasprintf.c: Likewise.
61302         * lib/wait-process.c: Likewise.
61303         * lib/xallocsa.c: Likewise.
61304         * lib/xsetenv.c: Likewise.
61305         * lib/xstriconv.c: Likewise.
61306
61307 2006-09-13  Simon Josefsson  <jas@extundo.com>
61308
61309         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
61310         that internally, suggested by Ralf Wildenhues
61311         <Ralf.Wildenhues@gmx.de>.
61312
61313 2006-09-13  Simon Josefsson  <jas@extundo.com>
61314
61315         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
61316         @LIBOBJS@.
61317         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61318
61319 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61320
61321         * lib/_fpending.c: Include <config.h> unconditionally, since we no
61322         longer worry about uses that don't define HAVE_CONFIG_H.
61323         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
61324         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
61325         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
61326         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
61327         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
61328         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
61329         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
61330         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
61331         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
61332         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
61333         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
61334         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
61335         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
61336         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
61337         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
61338         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
61339         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
61340         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
61341         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
61342         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
61343         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
61344         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
61345         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
61346         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
61347         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
61348         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
61349         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
61350         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
61351         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
61352         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
61353         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
61354         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
61355         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
61356         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
61357         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
61358         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
61359         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
61360         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
61361         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
61362         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
61363         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
61364         Likewise.
61365
61366 2006-09-13  Eric Blake  <ebb9@byu.net>
61367
61368         * lib/getopt.c: Fix typo in last commit.
61369
61370 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61371
61372         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
61373         dgettext.
61374
61375 2006-09-12  Jim Meyering  <jim@meyering.net>
61376
61377         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
61378         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
61379         Reported by Nelson H. F. Beebe.
61380
61381 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61382
61383         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
61384         program_invocation_name and program_invocation_short_name are
61385         initialized.
61386         * lib/argp-namefrob.h: Move declarations of program_invocation_name
61387         and program_invocation_short_name to argp.h, so they are visible
61388         to user programs.
61389         * lib/argp.h: Likewise
61390
61391 2006-09-10  Bruno Haible  <bruno@clisp.org>
61392
61393         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61394         m4/inttypes_h.m4, m4/uintmax_t.m4.
61395
61396 2006-09-10  Bruno Haible  <bruno@clisp.org>
61397
61398         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
61399         gl_AC_TYPE_UINTMAX_T.
61400
61401 2006-09-10  Bruno Haible  <bruno@clisp.org>
61402
61403         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61404
61405 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61406
61407         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61408         convention.  Text proposed by Bruno Haible.
61409         (struct argp_option): Document the use of N_() wrappers.
61410
61411         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61412         '\v', and translate the two parts separately, instead of feeding
61413         the whole string to gettext.  This allows to exclude
61414         '\v' from the strings visible to the translator by writing doc
61415         strings as N_("..") "\v" N_("..").
61416
61417 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61418
61419         * config/srclist.txt: Undo latest change; the bug was fixed.
61420
61421 2006-09-09  Bruno Haible  <bruno@clisp.org>
61422
61423         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61424         assignments if building a library without libtool.
61425         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61426         in func_emit_lib_Makefile_am.
61427         (func_import): When building a static library libfoo.a, arrange to
61428         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61429         (func_create_testdir): Likewise.
61430         * modules/gc (configure.ac, Makefile.am): If building statically,
61431         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61432         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61433         * modules/striconv (configure.ac, Makefile.am): Likewise.
61434         Based on a suggestion by Ralf Wildenhues.
61435
61436 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61437
61438         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61439         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61440         Also:
61441
61442         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61443         Add year_2050_test to catch glibc bug 2821
61444         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61445
61446         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61447         Prefer #ifdef to #if.
61448
61449         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61450         Return from 'main' instead of calling 'exit'.
61451
61452 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61453
61454         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61455         returned the maximum time_t value rather than (time_t) -1.
61456         Problem originally reported by William Bardwell
61457         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61458
61459         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61460         Moved to here ...
61461         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61462         ... from here.
61463
61464 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61467         2821 is fixed.
61468
61469 2006-09-08  Jim Meyering  <jim@meyering.net>
61470
61471         Don't make generated files read-only.  That would bother too many
61472         people.  However, do retain the ability to work when targets are
61473         read-only: remove the destination and temporary files before writing
61474         them (when generated via sed or echo), or by using the -f option for
61475         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61476         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61477         * modules/byteswap, modules/configmake, modules/fcntl:
61478         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61479         * modules/localcharset, modules/netinet_in, modules/poll:
61480         * modules/stdbool, modules/stdint, modules/sys_select:
61481         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61482
61483 2006-09-08  Jim Meyering  <jim@meyering.net>
61484
61485         Avoid new build failure on FreeBSD 6.0.
61486         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61487         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61488         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61489
61490 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61491
61492         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61493
61494 2006-09-07  Jim Meyering  <jim@meyering.net>
61495
61496         Fix global typo in last change: use chmod u-w, not chmod u-x.
61497         Spotted by Paul Eggert and Bruce Korb.
61498         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61499         * modules/byteswap, modules/configmake, modules/fcntl:
61500         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61501         * modules/localcharset, modules/netinet_in, modules/poll:
61502         * modules/stdbool, modules/stdint, modules/sys_select:
61503         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61504
61505 2006-09-06  Jim Meyering  <jim@meyering.net>
61506
61507         Make generated files be read-only.
61508         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61509         Ensure that each generated file is now read-only.
61510         * modules/argz: Likewise.
61511         * modules/arpa_inet: Likewise.
61512         * modules/byteswap: Likewise.
61513         * modules/configmake: Likewise.
61514         * modules/fcntl: Likewise.
61515         * modules/fnmatch: Likewise.
61516         * modules/getopt: Likewise.
61517         * modules/glob: Likewise.
61518         * modules/inttypes: Likewise.
61519         * modules/netinet_in: Likewise.
61520         * modules/poll: Likewise.
61521         * modules/stdbool: Likewise.
61522         * modules/stdint: Likewise.
61523         * modules/sys_select: Likewise.
61524         * modules/sys_socket: Likewise.
61525         * modules/sys_stat: Likewise.
61526         * modules/sysexits: Likewise.
61527         * modules/localcharset: Same as above, but continue using temporary
61528         file named "t-$@" (why different?) rather than the "$@-t" used
61529         everywhere else.
61530
61531         * modules/sysexits (Makefile.am): Replace literal occurrences
61532         of "sysexit.h" more readable, and more consistent, "$@".
61533
61534 2006-09-06  Bruno Haible  <bruno@clisp.org>
61535
61536         * modules/striconv: New file.
61537         * modules/xstriconv: New file.
61538         * MODULES.html.sh (Internationalization functions): Add striconv,
61539         xstriconv.
61540
61541 2006-09-06  Bruno Haible  <bruno@clisp.org>
61542
61543         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61544         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61545         not using libtool correctly.
61546
61547 2006-09-06  Bruno Haible  <bruno@clisp.org>
61548
61549         * lib/striconv.h: New file.
61550         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61551         iconvstring.c.
61552         * lib/xstriconv.h: New file.
61553         * lib/xstriconv.c: New file.
61554
61555 2006-09-06  Bruno Haible  <bruno@clisp.org>
61556
61557         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61558         lib_..._LDFLAGS.
61559
61560 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61561
61562         * lib/argz_.h: Sync from Libtool.
61563
61564         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61565                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61566
61567         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61568
61569 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61570
61571         * modules/trim: New file.
61572
61573 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61574
61575         * lib/trim.h: New file.
61576         * lib/trim.c: New file.
61577
61578 2006-09-05  Bruno Haible  <bruno@clisp.org>
61579
61580         * MODULES.html.sh (String handling): Add trim.
61581
61582 2006-09-04  Karl Berry  <karl@gnu.org>
61583
61584         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61585         until next release.
61586
61587 2006-09-03  Bruno Haible  <bruno@clisp.org>
61588
61589         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61590         correctly.
61591
61592 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61593
61594         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61595         not gl_GETLOADAVG.  Omit unneeded semicolons.
61596         Problems reported by Ralf Wildenhues in
61597         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61598         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61599         at the end, which is the usual gnulib style.
61600
61601         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61602         of doing all the work ourselves.
61603         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61604         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61605
61606 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61609         Problem reported by Ralf Wildenhues in
61610         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61611
61612         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61613         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61614
61615 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61616
61617         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61618         yesterday's patch by changing test -n to test -z.
61619
61620 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61621
61622         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61623         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61624         the former is now obsolescent.
61625
61626         * modules/chdir-long (Depends-on): Add fcntl.
61627
61628 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61629
61630         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61631         obsolescent, and programs should use gnulib instead.
61632         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61633         but with prefixes changed.
61634
61635 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61636
61637         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61638         or stdbool.h, because they might not exist while configuring.
61639
61640         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61641         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61642         does that for us.
61643         (O_DIRECTORY): Remove.
61644
61645 2006-08-31  Eric Blake  <ebb9@byu.net>
61646
61647         * gnulib-tool: Don't let emacs change spaces to TAB.
61648
61649 2006-08-31  Bruno Haible  <bruno@clisp.org>
61650
61651         * gnulib-tool: When calling func_import more than once, do it in a
61652         subshell.
61653         Reported by Eric Blake <ebb9@byu.net>.
61654
61655 2006-08-31  Bruno Haible  <bruno@clisp.org>
61656
61657         * gnulib-tool (nl): Remove variable.
61658         (sed_transform_lib_file): Use more robust test for config-h module.
61659         (func_import): Fix typo in 2006-08-25 patch.
61660
61661 2006-08-31  Bruno Haible  <bruno@clisp.org>
61662
61663         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61664         specified, augment Makefile.am variables instead of assigning them.
61665
61666 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61667
61668         Work around a bug in both the Linux and SunOS 64-bit kernels:
61669         nanosleep mishandles sleeps for longer than 2**31 seconds.
61670         Problem reported by Frank v Waveren in
61671         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61673         Check for nanosleep bug.
61674         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61675
61676 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61677
61678         Work around a bug in both the Linux and SunOS 64-bit kernels:
61679         nanosleep mishandles sleeps for longer than 2**31 seconds.
61680         Problem reported by Frank v Waveren in
61681         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61682         * lib/nanosleep.c (BILLION): New constant.
61683         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61684         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61685         implementation.
61686
61687 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61688
61689         * modules/nanosleep (Depends-on): Add gettime.
61690
61691 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61692         and Simon Josefsson  <jas@extundo.com>
61693         and Oskar Liljeblad  <oskar@osk.mine.nu>
61694
61695         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61696         * gnulib-tool (func_import): New license type 'unmodifiable license
61697         text'.
61698         * modules/fdl: Use it.  Longer description.
61699         * module/gpl, module/lgpl: New files.
61700
61701 2006-08-30  Jim Meyering  <jim@meyering.net>
61702
61703         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61704         shadowing the parameter.
61705
61706 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61707
61708         Sync from Libtool:
61709
61710         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61711
61712         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61713         sharing with gnulib.  Report by Eric Blake.
61714
61715 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61716
61717         * modules/isapipe: New file.
61718         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61719
61720 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61721
61722         * modules/configmake (Makefile.am): Add a comment, and omit
61723         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61724         by Bruno Haible.
61725
61726 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61727
61728         * m4/isapipe.m4: New file.
61729
61730 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61731
61732         * lib/isapipe.c, lib/isapipe.h: New files.
61733
61734 2006-08-29  Jim Meyering  <jim@meyering.net>
61735
61736         * modules/configmake (Makefile.am): Make configmake.h depend on
61737         Makefile.  Otherwise, a stale configmake.h could hang around.
61738
61739 2006-08-29  Eric Blake  <ebb9@byu.net>
61740
61741         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61742         resolution of upstream bug 3044.
61743
61744 2006-08-29  Bruno Haible  <bruno@clisp.org>
61745
61746         * modules/localcharset (Depends-on): Add configmake.
61747         (Makefile.am): Remove setting of LIBDIR through DEFS.
61748
61749 2006-08-29  Bruno Haible  <bruno@clisp.org>
61750
61751         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61752         defined.
61753
61754 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61755
61756         * modules/fcntl: New file.
61757         * modules/chdir-safer (Depends-on): Add fcntl.
61758         * modules/fts: Likewise.
61759         * modules/mkdir-p: Likewise.
61760
61761         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61762         This undoes the most recent change, since we're now addressing the
61763         problem in a different way.
61764
61765         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61766         into output, since the output might be called Makefile.am even
61767         if $makefile_name is something different.
61768         (func_import): Use $makefile_am rather than
61769         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61770         empty.
61771
61772         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61773
61774 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61775
61776         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61777         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61778         recent change to stdint.m4, since we're now addressing the problem in a
61779         different way.
61780
61781 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61782
61783         * m4/fcntl_h.m4: New file.
61784
61785 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61786
61787         * lib/fcntl_.h: New file.
61788         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61789         the fcntl module.
61790         * lib/dirchownmod.c: Likewise.
61791         * lib/fts.c: Likewise.
61792
61793         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61794         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61795         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61796         just before including <inttypes.h>, to avoid circular inclusion.
61797
61798 2006-08-28  Jim Meyering  <jim@meyering.net>
61799
61800         * doc/visibility.texi: Actually read and correct the grammar of the
61801         sentence affected by yesterday's change.
61802
61803 2006-08-28  Eric Blake  <ebb9@byu.net>
61804
61805         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61806         needs wrapper.
61807
61808 2006-08-28  Eric Blake  <ebb9@byu.net>
61809
61810         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61811
61812 2006-08-28  Eric Blake  <ebb9@byu.net>
61813
61814         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61815
61816 2006-08-28  Bruno Haible  <bruno@clisp.org>
61817
61818         * modules/c-strstr: New file, from GNU gettext.
61819         * MODULES.html.sh (String handling): Add c-strstr.
61820
61821 2006-08-28  Bruno Haible  <bruno@clisp.org>
61822
61823         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61824         macros.
61825         Reported by Eric Blake.
61826
61827 2006-08-28  Bruno Haible  <bruno@clisp.org>
61828
61829         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61830         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61831         * lib/vasprintf.c: Include errno.h, limits.h.
61832         (EOVERFLOW): New fallback definition.
61833         (vasprintf): Test here whether the string length is > INT_MAX.
61834         * lib/vsnprintf.c: Include errno.h, limits.h.
61835         (EOVERFLOW): New fallback definition.
61836         (vsnprintf): Fix bug when generated string was too long for the buffer.
61837         Test here whether the string length is > INT_MAX.
61838
61839 2006-08-28  Bruno Haible  <bruno@clisp.org>
61840
61841         * lib/inttypes_.h (SCNX*): Remove definitions.
61842         Reported by Eric Blake.
61843
61844 2006-08-28  Bruno Haible  <bruno@clisp.org>
61845
61846         * lib/c-strstr.h: New file, from GNU gettext.
61847         * lib/c-strstr.c: New file, from GNU gettext.
61848
61849 2006-08-28  Bruno Haible  <bruno@clisp.org>
61850
61851         * gnulib-tool: Reorder some statements.
61852
61853 2006-08-28  Bruno Haible  <bruno@clisp.org>
61854
61855         * gnulib-tool: New option --makefile-name.
61856         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61857         $makefile_name.
61858         (func_import): Write $makefile_name to the cache file, and read it from
61859         there unless explicitly specified. Use $makefile_name as file name
61860         instead of Makefile.am. Adjust the recommendations accordingly.
61861
61862 2006-08-28  Bruno Haible  <bruno@clisp.org>
61863
61864         * gnulib-tool (func_verify_module): Check against misapplying patch.
61865
61866 2006-08-28  Bruno Haible  <bruno@clisp.org>
61867
61868         * gnulib-tool (func_relativize, func_relconcat): New functions.
61869         Give an error if --local-dir is given with --update.
61870         Remove trailing slashes from $local_gnulib_dir.
61871         (func_import): Store the relativized $local_gnulib_dir in
61872         gnulib-cache.m4, and read it from there if not specified explicitly.
61873
61874 2006-08-28  Bruno Haible  <bruno@clisp.org>
61875
61876         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61877         is the current directory. Respect also $local_gnulib_dir.
61878
61879 2006-08-28  Bruno Haible  <bruno@clisp.org>
61880             Simon Josefsson  <jas@extundo.com>
61881
61882         BeOS portability.
61883         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61884
61885 2006-08-27  Jim Meyering  <jim@meyering.net>
61886
61887         * doc/visibility.texi: Remove duplicate word: "pointer".
61888
61889 2006-08-26  Bruno Haible  <bruno@clisp.org>
61890
61891         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61892         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61893         (Makefile.am): Create inttypes.h from inttypes_.h.
61894         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61895
61896         * modules/imaxabs: New file.
61897
61898         * modules/imaxdiv: New file.
61899
61900 2006-08-26  Bruno Haible  <bruno@clisp.org>
61901
61902         * m4/inttypes.m4: New file.
61903         * m4/_inttypes_h.m4: Remove file.
61904         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61905         PRI_MACROS_BROKEN.
61906         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61907
61908         * m4/imaxabs.m4: New file.
61909
61910         * m4/imaxdiv.m4: New file.
61911
61912 2006-08-26  Bruno Haible  <bruno@clisp.org>
61913
61914         * lib/inttypes_.h: New file.
61915         * lib/inttypes.h: Remove file.
61916         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61917
61918         * lib/imaxabs.c: New file.
61919
61920         * lib/imaxdiv.c: New file.
61921
61922 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         New config-h module, so that "make" output needn't be cluttered
61925         by -DHAVE_CONFIG_H.
61926         * MODULES.html.sh (Support for building libraries and executables):
61927         Add config-h.
61928         * modules/config-h: New file.
61929         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61930         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61931         the config-h module is used.
61932
61933         New configmake module, so that "make" output needn't be cluttered
61934         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61935         * MODULES.html.sh (Support for building libraries and executables):
61936         Add configmake.
61937         * modules/configmake: New file.
61938
61939 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61940
61941         * m4/config-h.m4: New file.
61942
61943 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61944
61945         * config/srclist.txt: Add elisp-comp.
61946
61947 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61948
61949         * MODULES.html.sh (Support for building libraries and executables):
61950         Add elisp-comp.
61951         * build-aux/elisp-comp: New file.
61952         * modules/elisp-comp: New file.
61953
61954 2006-08-24  Bruno Haible  <bruno@clisp.org>
61955
61956         * gnulib-tool (func_create_testdir): Use non-default values of
61957         sourcebase and m4base.
61958
61959 2006-08-24  Bruno Haible  <bruno@clisp.org>
61960
61961         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61962         HTML structure.
61963
61964 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61965
61966         * modules/openat (Depends-on): Add lchown.
61967
61968 2006-08-23  Bruno Haible  <bruno@clisp.org>
61969
61970         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61971         of gl_LOCK_EARLY instead of gl_LOCK.
61972
61973 2006-08-23  Bruno Haible  <bruno@clisp.org>
61974
61975         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61976         on OSF/1 to no.
61977         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61978
61979 2006-08-23  Bruno Haible  <bruno@clisp.org>
61980
61981         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61982         as unusable.
61983
61984         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61985         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61986         (gl_LOCK): New macro.
61987
61988 2006-08-22  Simon Josefsson  <jas@extundo.com>
61989
61990         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61991         to md5 module.
61992
61993 2006-08-22  Simon Josefsson  <jas@extundo.com>
61994
61995         * MODULES.html.sh: Add "Support for maintaining and release
61996         projects".
61997
61998         * build-aux/gnupload: New file, from coreutils.
61999
62000 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62001
62002         Avoid the need for AC_LIBSOURCES in m4 macros.
62003         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
62004         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
62005         * modules/check-version (EXTRA_DIST): Add check-version.h.
62006         * modules/crc (EXTRA_DIST): Add crc.h.
62007         * modules/des (EXTRA_DIST): Add des.h.
62008         * modules/gc (EXTRA_DIST): Add gc.h.
62009         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
62010         * modules/getline (EXTRA_DIST): Add getline.h.
62011         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
62012         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
62013         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
62014         * modules/md2 (EXTRA_DIST): Add md2.h.
62015         * modules/md4 (EXTRA_DIST): Add md4.h.
62016         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
62017         * modules/read-file (EXTRA_DIST): Add read-file.h.
62018         * modules/readline (EXTRA_DIST): Add readline.h.
62019         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
62020         rijndael-api-fst.h.
62021
62022 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62023
62024         * m4/rijndael.m4 (gl_ARCFOUR):
62025         * m4/arctwo.m4 (gl_ARCTWO):
62026         * m4/check-version.m4 (gl_CHECK_VERSION):
62027         * m4/crc.m4 (gl_CRC):
62028         * m4/des.m4 (gl_DES):
62029         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
62030         * m4/gc.m4 (gl_GC):
62031         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
62032         * m4/getline.m4 (gl_FUNC_GETLINE):
62033         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
62034         * m4/hmac-md5.m4 (gl_HMAC_MD5):
62035         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
62036         * m4/md2.m4 (gl_MD2):
62037         * m4/md4.m4 (gl_MD4):
62038         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
62039         * m4/read-file.m4 (gl_FUNC_READ_FILE):
62040         * m4/readline.m4 (gl_FUNC_READLINE):
62041         * m4/rijndael.m4 (gl_RIJNDAEL):
62042         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62043         to get the necessary .h files and whatnot.
62044
62045 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62046
62047         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
62048         gnulib rather than the other way around.
62049         * config/srclistvars.sh (COREUTILS): Remove.
62050
62051 2006-08-22  Jim Meyering  <jim@meyering.net>
62052
62053         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
62054
62055         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
62056
62057 2006-08-22  Eric Blake  <ebb9@byu.net>
62058
62059         * modules/regexprops-generic: New file.
62060         * MODULES.html.sh (Support for building documentation): List it.
62061
62062 2006-08-22  Eric Blake  <ebb9@byu.net>
62063
62064         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
62065         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62066         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
62067         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62068
62069 2006-08-22  Bruno Haible  <bruno@clisp.org>
62070
62071         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
62072         and lib_LTLIBRARIES like the other lib_* variables.
62073
62074 2006-08-22  Bruno Haible  <bruno@clisp.org>
62075
62076         * build-aux/x-to-1.in: New file, from GNU gettext.
62077
62078 2006-08-22  Bruno Haible  <bruno@clisp.org>
62079
62080         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
62081         <utmpx.h> exists.
62082
62083 2006-08-22  Bruno Haible  <bruno@clisp.org>
62084
62085         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
62086         <utmpx.h> exists.
62087
62088 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62089
62090         BeOS portability.
62091         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
62092         exist.
62093         Problem reported by Bruno Haible.
62094
62095 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62096
62097         Avoid the need for AC_LIBSOURCES in m4 macros.
62098         * modules/acl (EXTRA_DIST): Add acl.h.
62099         * modules/argmatch (Files): Add m4/argmatch.m4.
62100         (configure.ac): Add gl_ARGMATCH.
62101         (EXTRA_DIST): Renamed from lib_SOURCES, for
62102         consistency with the other modules.  Remove argmatch.c.
62103         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
62104         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
62105         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
62106         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
62107         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
62108         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
62109         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
62110         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
62111         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
62112         * modules/closeout (EXTRA_DIST): Add closeout.h.
62113         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
62114         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
62115         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
62116         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
62117         dirname.h; remove basename.c and stripslash.c.
62118         * modules/exclude (EXTRA_DIST): Add exclude.h.
62119         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
62120         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
62121         * modules/file-type (EXTRA_DIST): Add file-type.h.
62122         * modules/filemode (EXTRA_DIST): Add filemode.h.
62123         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
62124         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62125         * modules/fpending (EXTRA_DIST): Add __fpending.h.
62126         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
62127         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
62128         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
62129         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
62130         * modules/getdate (EXTRA_DIST): Add getdate.c.
62131         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
62132         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
62133         * modules/getpass (EXTRA_DIST): Add getpass.h.
62134         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
62135         * modules/group-member (EXTRA_DIST): Add group-member.h.
62136         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
62137         * modules/hash (EXTRA_DIST): Add hash.h.
62138         * modules/human (EXTRA_DIST): Add human.h.
62139         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
62140         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
62141         * modules/lchown (EXTRA_DIST): Add lchown.h.
62142         * modules/long-options (EXTRA_DIST): Add long-options.h.
62143         * modules/lstat (EXTRA_DIST): Add lstat.h.
62144         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
62145         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
62146         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
62147         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
62148         * modules/memxor (EXTRA_DIST): Add memxor.h.
62149         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
62150         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
62151         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
62152         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
62153         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
62154         * modules/physmem (EXTRA_DIST): Add physmem.h.
62155         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
62156         * modules/posixver (EXTRA_DIST): Add posixver.h.
62157         * modules/quote (EXTRA_DIST): Add quote.h.
62158         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
62159         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
62160         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
62161         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
62162         regex_internal.h regexec.c.
62163         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
62164         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
62165         * modules/same (EXTRA_DIST): Add same.h.
62166         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
62167         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
62168         * modules/savedir (EXTRA_DIST): Add savedir.h.
62169         * modules/sha1 (EXTRA_DIST): Add sha1.h.
62170         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
62171         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
62172         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
62173         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
62174         * modules/strdup (EXTRA_DIST): Add strdup.h.
62175         * modules/strftime (EXTRA_DIST): Add strftime.h.
62176         * modules/strndup (EXTRA_DIST): Add strndup.h.
62177         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
62178         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
62179         * modules/time_r (EXTRA_DIST): Add time_r.h.
62180         * modules/timespec (EXTRA_DIST): Add timespec.h.
62181         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62182         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
62183         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
62184         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
62185         * modules/userspec (EXTRA_DIST): Add userspec.h.
62186         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
62187         * modules/utimens (EXTRA_DIST): Add utimens.h.
62188         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
62189         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
62190         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
62191         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
62192         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
62193         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
62194         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
62195         * modules/yesno (EXTRA_DIST): Add yesno.h.
62196
62197 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62198
62199         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
62200
62201         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
62202         * m4/dev-ino.m4, same-inode.m4: Remove.
62203
62204         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
62205         * m4/acl.m4 (AC_FUNC_ACL):
62206         * m4/backupfile.m4 (gl_BACKUPFILE):
62207         * m4/c-strtod.m4 (gl_C99_STRTOLD):
62208         * m4/canon-host.m4 (gl_CANON_HOST):
62209         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62210         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
62211         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
62212         * m4/cloexec.m4 (gl_CLOEXEC):
62213         * m4/close-stream.m4 (gl_CLOSE_STREAM):
62214         * m4/closeout.m4 (gl_CLOSEOUT):
62215         * m4/dirfd.m4 (gl_FUNC_DIRFD):
62216         * m4/dirname.m4 (gl_DIRNAME):
62217         * m4/exclude.m4 (gl_EXCLUDE):
62218         * m4/exitfail.m4 (gl_EXITFAIL):
62219         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
62220         * m4/file-type.m4 (gl_FILE_TYPE):
62221         * m4/filemode.m4 (gl_FILEMODE):
62222         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
62223         * m4/fpending.m4 (gl_FUNC_FPENDING):
62224         * m4/fprintftime.m4 (gl_FPRINTFTIME):
62225         * m4/fts.m4 (gl_FUNC_FTS):
62226         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
62227         * m4/getdate.m4 (gl_GETDATE):
62228         * m4/gethrxtime.m4 (gl_GETHRXTIME):
62229         * m4/getpagesize.m4 (gl_GETPAGESIZE):
62230         * m4/getpass.m4 (gl_FUNC_GETPASS):
62231         * m4/gettime.m4 (gl_GETTIME):
62232         * m4/getugroups.m4 (gl_GETUGROUPS):
62233         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
62234         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
62235         * m4/hard-locale.m4 (gl_HARD_LOCALE):
62236         * m4/hash.m4 (gl_HASH):
62237         * m4/idcache.m4 (gl_IDCACHE):
62238         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
62239         * m4/lchown.m4 (gl_FUNC_LCHOWN):
62240         * m4/long-options.m4 (gl_LONG_OPTIONS):
62241         * m4/lstat.m4 (gl_FUNC_LSTAT):
62242         * m4/md5.m4 (gl_MD5):
62243         * m4/memcasecmp.m4 (gl_MEMCASECMP):
62244         * m4/memcoll.m4 (gl_MEMCOLL):
62245         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
62246         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
62247         * m4/memxor.m4 (gl_MEMXOR):
62248         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
62249         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
62250         * m4/modechange.m4 (gl_MODECHANGE):
62251         * m4/mountlist.m4 (gl_MOUNTLIST):
62252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62253         * m4/openat.m4 (gl_FUNC_OPENAT):
62254         * m4/pathmax.m4 (gl_PATHMAX):
62255         * m4/physmem.m4 (gl_PHYSMEM):
62256         * m4/posixtm.m4 (gl_POSIXTM):
62257         * m4/posixver.m4 (gl_POSIXVER):
62258         * m4/quote.m4 (gl_QUOTE):
62259         * m4/quotearg.m4 (gl_QUOTEARG):
62260         * m4/readtokens.m4 (gl_READTOKENS):
62261         * m4/readutmp.m4 (gl_READUTMP):
62262         * m4/regex.m4 (gl_REGEX):
62263         * m4/safe-read.m4 (gl_SAFE_READ):
62264         * m4/safe-write.m4 (gl_SAFE_WRITE):
62265         * m4/same.m4 (gl_SAME):
62266         * m4/save-cwd.m4 (gl_SAVE_CWD):
62267         * m4/savedir.m4 (gl_SAVEDIR):
62268         * m4/settime.m4 (gl_SETTIME):
62269         * m4/sha1.m4 (gl_SHA1):
62270         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
62271         * m4/stat-macros.m4 (gl_STAT_MACROS):
62272         * m4/stat-time.m4 (gl_STAT_TIME):
62273         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
62274         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
62275         * m4/strdup.m4 (gl_FUNC_STRDUP):
62276         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
62277         * m4/strndup.m4 (gl_FUNC_STRNDUP):
62278         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
62279         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
62280         * m4/time_r.m4 (gl_TIME_R):
62281         * m4/timespec.m4 (gl_TIMESPEC):
62282         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
62283         * m4/unlinkdir.m4 (gl_UNLINKDIR):
62284         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
62285         * m4/userspec.m4 (gl_USERSPEC):
62286         * m4/utimecmp.m4 (gl_UTIMECMP):
62287         * m4/utimens.m4 (gl_UTIMENS):
62288         * m4/xalloc.m4 (gl_XALLOC):
62289         * m4/xgetcwd.m4 (gl_XGETCWD):
62290         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
62291         * m4/xreadlink.m4 (gl_XREADLINK):
62292         * m4/xstrtod.m4 (gl_XSTRTOD):
62293         * m4/yesno.m4 (gl_YESNO):
62294         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62295         to get the necessary .h files and whatnot.
62296
62297 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
62298             Bruno Haible  <bruno@clisp.org>
62299
62300         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
62301         /bin/sh understanding of '!' conditional negation.
62302
62303 2006-08-21  Jim Meyering  <jim@meyering.net>
62304
62305         * modules/openat (Depends-on): Really alphabetize.
62306
62307         * modules/acl (Depends-on): Add error and quote.
62308
62309         * check-module (find_included_lib_files): Add at-func.c to the
62310         ok-to-include-more-than-once white list.
62311
62312         * modules/openat (Depends-on): Add lstat.  Alphabetize.
62313
62314 2006-08-21  Bruno Haible  <bruno@clisp.org>
62315
62316         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62317         Emit a pkgdata_DATA variable only if some snippets add contents to it.
62318         Reported by Martin Lambers <marlam@marlam.de>.
62319
62320 2006-08-21  Bruno Haible  <bruno@clisp.org>
62321
62322         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
62323         specify an installation location, don't emit a noinst_LIBRARIES or
62324         noinst_LTLIBRARIES assignment.
62325
62326 2006-08-21  Bruno Haible  <bruno@clisp.org>
62327
62328         BeOS portability.
62329         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
62330         BeOS has mbrtowc() but no <wctype.h>.
62331
62332 2006-08-21  Bruno Haible  <bruno@clisp.org>
62333
62334         BeOS portability.
62335         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
62336         exist.
62337
62338 2006-08-21  Bruno Haible  <bruno@clisp.org>
62339
62340         BeOS portability.
62341         * lib/mbchar.h: Include <wctype.h> only if it exists.
62342
62343 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62344
62345         Remove files that are no longer needed by their respective modules.
62346         * m4/obstack.m4: Remove.
62347         * m4/strerror_r.m4: Remove.
62348         * m4/uint32_t.m4: Remove.
62349         * m4/uintptr_t.m4: Remove.
62350         * m4/ullong_max.m4: Remove.
62351         * m4/xstrtoimax.m4: Remove.
62352         * m4/xstrtoumax.m4: Remove.
62353
62354         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
62355         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
62356         dependencies now capture this.
62357
62358         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
62359         Do not use AC_LIBSOURCES, since gnulib modules now do this.
62360         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
62361         * m4/human.m4 (gl_HUMAN): Likewise.
62362         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
62363         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
62364
62365         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
62366
62367         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
62368         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
62369         stdint.
62370         * m4/human.m4 (gl_HUMAN): Likewise.
62371         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
62372         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
62373         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62374         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62375         * m4/xstrtol (gl_XSTRTOL): Likewise.
62376
62377         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
62378         AC_TYPE_LONG_LONG_INT.
62379         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62380         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
62381         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
62382         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62383
62384         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
62385         on stdbool.
62386
62387         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
62388         (gl_PREREQ_XSTRTOUL): Remove.
62389
62390         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
62391
62392         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
62393         mode.
62394
62395 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62396
62397         Add and change modules to make it easier for coreutils to use
62398         gnulib-tool.
62399         * modules/backupfile (Files): Remove m4/d-ino.m4.
62400         (Depends-on): Add d-ino.
62401         * modules/cycle-check (Depends-on): Add stdint.
62402         (lib_SOURCES): Add cycle-check.h.
62403         * modules/d-ino: New module.
62404         * modules/d-type: New module.
62405         * modules/error (Files): Remove m4/strerror_r.m4.
62406         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62407         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62408         m4/inttypes_h.m4, m4/uintmax_t.m4.
62409         (Depends-on): Add stdint.
62410         (lib_SOURCES): Add fsusage.h.
62411         * modules/getcwd (Files): Remove d-ino.m4.
62412         (Depends-on): Add d-ino.
62413         * modules/getndelim2 (Depends-on): Add stdint.
62414         * modules/glob (Files): Remove m4/d-type.m4.
62415         (Depends-on): Add d-type.
62416         * modules/host-os: New module.
62417         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62418         m4/inttypes_h.m4, m4/uintmax_t.m4.
62419         * Depends-on: Add stdint.
62420         (lib_SOURCES): Add human.h.
62421         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62422         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62423         m4/uintmax_t.m4, m4/ulonglong.m4.
62424         (Depends-on): Add stdint.
62425         (EXTRA_DIST): Add inttostr.h.
62426         * modules/lchmod: New module.
62427         * modules/link-follow: New module.
62428         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62429         (Depends-on): Add lchmod.
62430         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62431         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62432         (Depends-on): Add stdint.
62433         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62434         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62435         (Depends-on): Add stdint.
62436         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62437         * modules/perl: New module.
62438         * modules/regex (Depends-on): Add stdint.
62439         * modules/rmdir-errno: New module.
62440         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62441         m4/intmax_t.m4.
62442         (Depends-on): Add stdint.
62443         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62444         m4/uintmax_t.m4.
62445         (Depends-on): Add stdint.
62446         * modules/unlink-busy: New module.
62447         * modules/utimecmp (Depends-on): Add stdint.
62448         * modules/uptime: New module.
62449         * modules/winsz-ioctl: New module.
62450         * modules/winsz-termios: New module.
62451         * modules/xnanosleep (Depends-on): Add nanosleep.
62452         * modules/ullong_max: Remove.
62453         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62454         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62455         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62456         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62457         (Depends-on): Add inttypes.
62458         (lib_SOURCES): Add xstrtol.h.
62459         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62460         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62461         * MODULES.html.sh: Move 'assert' into the assert section.
62462         Move 'dummy' into the linking section.
62463         Remove ullong_max.
62464         Add section for compatibility checks for POSIX:2001 functions,
62465         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62466         winsz-ioctl, and winsz-termios into it.
62467         Add lchmod.
62468         Add top-level Misc section and put host-os, perl, and uptime
62469         into it.
62470
62471 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62472
62473         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62474         now assume the stdint module.  Do not include inttypes.h.
62475         * lib/fsusage.h: Likewise.
62476         * lib/getndelim2.c: Likewise.
62477         * lib/human.h: Likewise.
62478         * lib/inttostr.h: Likewise.
62479         * lib/obstack.c: Likewise.
62480         * lib/regex_internal.h: Likewise.
62481         * lib/tempname.c: Likewise.
62482         * lib/utimecmp.c: Likewise.
62483         * lib/xstrtol.h: Likewise.
62484
62485         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62486
62487         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62488         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62489         * lib/xtime.h: Likewise.
62490
62491 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62492
62493         * modules/openat (Files): Add lib/fchmodat.c.
62494         Fixes problem reported by Jay Youngman.
62495
62496 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62497
62498         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62499         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62500
62501 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62502             Bruno Haible  <bruno@clisp.org>
62503
62504         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62505         and is a script that invokes bison. Tighten the code. Add comments.
62506
62507 2006-08-18  Jim Meyering  <jim@meyering.net>
62508
62509         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62510         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62511         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62512         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62513
62514 2006-08-18  Bruno Haible  <bruno@clisp.org>
62515
62516         * modules/bison-i18n: New file.
62517         * MODULES.html.sh (Internationalization functions): Add it.
62518
62519 2006-08-18  Bruno Haible  <bruno@clisp.org>
62520
62521         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62522         sys/statvfs.h. When getmntinfo was found, check its declaration and
62523         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62524
62525 2006-08-18  Bruno Haible  <bruno@clisp.org>
62526
62527         * m4/bison-i18n.m4: New file, from bison.
62528
62529 2006-08-18  Bruno Haible  <bruno@clisp.org>
62530
62531         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62532         (ME_DUMMY): Treat "kernfs" as a dummy.
62533         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62534
62535 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         Update from coreutils.
62538
62539         2006-08-15  Jim Meyering  <jim@meyering.net>
62540
62541         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62542
62543         2006-01-17  Jim Meyering  <jim@meyering.net>
62544
62545         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62546
62547         2006-01-11  Jim Meyering  <jim@meyering.net>
62548
62549         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62550         Check for the lchmod function.
62551
62552 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62553
62554         Update from coreutils.
62555
62556         * lib/__fpending.h: Add copyright notice.
62557         * lib/fprintftime.h: Likewise.
62558         * lib/savedir.c: Use (C) in copyright notice.
62559         * lib/savedir.h: Likewise.
62560
62561         2006-08-15  Jim Meyering  <jim@meyering.net>
62562
62563         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62564         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62565         in support of the EXPECTED_ERRNO macro.
62566         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62567         definitions.  Instead, define the appropriate symbols and include
62568         "at-func.c".
62569         * lib/mkdirat.c (mkdirat): Likewise.
62570         * lib/fchmodat.c (fchmodat): Likewise.
62571         (ENOSYS): Remove definition.
62572         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62573         it.  Don't include "unistd--.h" -- it wasn't ever used.
62574
62575         2006-01-17  Jim Meyering  <jim@meyering.net>
62576
62577         Rewrite fts.c not to change the current working directory,
62578         by using openat, fstatat, fdopendir, etc..
62579
62580         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62581         (HAVE_OPENAT_SUPPORT): Define.
62582         [_LIBC] (fchdir): Don't undef or define; no longer used.
62583         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62584         Now, this `function' always succeeds, and consumes its file descriptor
62585         parameter -- so callers must not close such FDs.  Update callers.
62586         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62587         (diropen): Add parameter, SP.  Adjust all callers.
62588         Implement using diropen_fd, rather than open.
62589         (fts_open): Initialize new member, fts_cwd_fd.
62590         Remove fts_rft-setting code.
62591         (fts_close): Close fts_cwd_fd, if necessary.
62592         (__opendir2): Define in terms of opendir or opendirat,
62593         depending on whether the FST_NOCHDIR flag is set.
62594         (fts_build): Since fts_safe_changedir consumes its FD, and since
62595         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62596         and close the dup'd file descriptor upon failure.
62597         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62598         (fts_safe_changedir): Tweak semantics to reflect that this function
62599         now calls cwd_advance_fd and hence consumes its FD argument.
62600         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62601         [struct FTS] (fts_rft): Remove now-unused member.
62602         [struct FTS] (fts_cycle.state): Improve comment.
62603
62604         * lib/openat.c (openat_needs_fchdir): New function.
62605         * lib/openat.h (openat_needs_fchdir): Declare it.
62606
62607 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62608
62609         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62610         Problem and fix reported by Pádraig Brady in
62611         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62612
62613 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62614
62615         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62616
62617 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62618
62619         * lib/memcoll.c (memcoll): Optimize for the common case where the
62620         arguments are bytewise equal.
62621
62622 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62623
62624         * doc/regexprops-generic.texi: Add a copyright notice.
62625
62626 2006-08-15  Bruno Haible  <bruno@clisp.org>
62627
62628         * modules/tmpdir (License): Change to LGPL.
62629
62630 2006-08-15  Bruno Haible  <bruno@clisp.org>
62631
62632         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62633         module.
62634
62635 2006-08-14  Simon Josefsson  <jas@extundo.com>
62636
62637         * config/srclist.txt: Add gnupload.
62638
62639 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62640
62641         Change copyright notice from LGPL 2 to GPL 2, since that's the
62642         standard form used in the gnulib repository.
62643         * tests/test-lock.c: Likewise.
62644         * tests/test-stdint.c: Likewise.
62645         * tests/test-tls.c: Likewise.
62646
62647         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62648         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62649         Add copyright notice.
62650
62651         * check-module: Add copyright notice.  Output a copyright
62652         notice if "--version" is specified.
62653         * modules/COPYING: New file.
62654         * tests/test-getaddrinfo.c: Add copyright notice.
62655         * tests/test-verify.c: Likewise.
62656
62657 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62658
62659         Change copyright notice from LGPL 2 to GPL 2, since that's the
62660         standard form used in the gnulib repository.
62661         * lib/lock.c: LGPL -> GPL.
62662         * lib/lock.h: Likewise.
62663         * lib/strnlen1.c: Likewise.
62664         * lib/strnlen1.h: Likewise.
62665         * lib/tls.c: Likewise.
62666         * lib/tls.h: Likewise.
62667         * lib/tmpdir.c: Likewise.
62668
62669         * lib/TODO: Remove; this belongs only in coreutils.
62670
62671 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62672
62673         Add copyright notices to long-enough files that lack them, since
62674         otherwise the files aren't clearly free.  Use the same notice that
62675         getdate.texi already uses.
62676         * doc/alloca-opt.texi: Add copyright notice.
62677         * doc/alloca.texi: Likewise.
62678         * doc/ctime.texi: Likewise.
62679         * doc/functions.texi: Likewise.
62680         * doc/gcd.texi: Likewise.
62681         * doc/gnulib-tool.texi: Likewise.
62682         * doc/inet_ntoa.texi: Likewise.
62683         * doc/visibility.texi: Likewise.
62684
62685         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62686         * doc/quote.texi: Add copyright notice.
62687
62688         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62689         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62690         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62691         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62692         is now obsolete, and give a pointer to the Sun list.
62693         Add copyright notice.
62694
62695 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62696
62697         * config/srclistvars.sh: Add copyright notice.
62698
62699 2006-08-14  Eric Blake  <ebb9@byu.net>
62700
62701         Import the following change from libc:
62702
62703         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62704
62705         Upstream bug 2997.
62706         * lib/misc/error.c: Add space between program name and message if file
62707         name is missing.
62708
62709 2006-08-12  Karl Berry  <karl@gnu.org>
62710
62711         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62712         remove, these originate in gnulib now.
62713
62714 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62715
62716         * doc/Makefile (standards.info standards.html standards.dvi):
62717         Also depend on make-stds.texi.
62718
62719 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62720
62721         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62722         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62723
62724         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62725         in wchar_t.  Problem reported by Eric Blake.
62726
62727         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62728         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62729         Also, help the compiler to keep LEN in a register.
62730
62731 2006-08-11  Eric Blake  <ebb9@byu.net>
62732
62733         * users.txt: Sort.  Add tar.
62734
62735 2006-08-11  Bruno Haible  <bruno@clisp.org>
62736
62737         * users.txt: New file.
62738
62739 2006-08-11  Bruno Haible  <bruno@clisp.org>
62740
62741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62742         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62743
62744 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62745
62746         * modules/snprintf (Depends-on): Remove minmax.
62747         (Maintainer): Add self and Bruno.
62748
62749 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62750
62751         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62752         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62753         (EOVERFLOW): Define if the system does not.
62754         Do not include "minmax.h"; it wasn't used.
62755         (snprintf): Don't assume size_t promotes to an unsigned type.
62756         Fix bug when generated string was too long for the buffer: the
62757         buffer's contents are supposed to be the initial prefix of the
62758         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62759         exceeds INT_MAX; do the check ourselves.
62760
62761         Import the following changes from libc:
62762
62763         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62764
62765         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62766         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62767         set wc to the byte which couldn't be converted.
62768         (re_string_reconstruct): Don't clear valid_raw_len before calling
62769         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62770         tip_context using re_string_context_at.
62771
62772         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62773
62774         * lib/posix/regex.h: g++ still cannot handled [restrict].
62775
62776         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62777
62778         * lib/posix/regex.h: Remove special handling for VMS.
62779
62780 2006-08-10  Jim Meyering  <jim@meyering.net>
62781
62782         * modules/same-inode: New module.
62783         * modules/dev-ino: New module.
62784         * modules/cycle-check: Depend on these modules, rather than simply
62785         including their .h files.
62786         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62787         required via m4/cycle-check.m4.
62788         * modules/same: Depend on new same-inode module, rather than
62789         including same-inode.h.
62790         * modules/chdir-safer: New file.
62791
62792         * modules/chown (Depends-on): Add stat-macros.
62793
62794 2006-08-10  Jim Meyering  <jim@meyering.net>
62795
62796         * m4/cycle-check.m4: New file.
62797         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62798         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62799
62800 2006-08-10  Eric Blake  <ebb9@byu.net>
62801
62802         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62803         in from original proposal.
62804
62805 2006-08-10  Eric Blake  <ebb9@byu.net>
62806         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62807
62808         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62809         namespace.
62810
62811 2006-08-10  Bruno Haible  <bruno@clisp.org>
62812
62813         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62814         as well.
62815
62816 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62817
62818         Sync from coreutils.
62819
62820         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62821
62822         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62823         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62824
62825 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62826
62827         * modules/restrict: Remove; no longer needed now that we assume
62828         Autoconf 2.59 or later.
62829         * MODULES.html.sh: Remove 'restrict'.
62830         * modules/argp (Depends-on): Remove 'restrict'.
62831         * modules/base64 (Depends-on): Likewise.
62832         * modules/gc (Depends-on): Likewise.
62833         * modules/getaddrinfo (Depends-on): Likewise.
62834         * modules/glob (Depends-on): Likewise.
62835         * modules/inet_ntop (Depends-on): Likewise.
62836         * modules/inet_pton (Depends-on): Likewise.
62837         * modules/memxor (Depends-on): Likewise.
62838         * modules/regex (Depends-on): Likewise.
62839         * modules/strtok_r (Depends-on): Likewise.
62840         * modules/time_r (Depends-on): Likewise.
62841
62842 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62843
62844         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62845         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62846         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62847         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62848         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62849         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62850         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62851         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62852
62853         Merge from coreutils.
62854         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62855         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62856         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62857         * m4/time_r.m4 (gl_TIME_R): Likewise.
62858
62859 2006-08-09  Karl Berry  <karl@gnu.org>
62860
62861         * config/srclist.txt: no more gettext-tools, per Bruno.
62862
62863 2006-08-08  Eric Blake  <ebb9@byu.net>
62864
62865         * modules/verror: New module.
62866         * MODULES.html.sh: Document it.
62867
62868 2006-08-08  Eric Blake  <ebb9@byu.net>
62869
62870         * lib/verror.h, lib/verror.c: New files.
62871
62872 2006-08-08  Eric Blake  <ebb9@byu.net>
62873
62874         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62875         verror_at_line output complies with GNU Coding Standards even when
62876         file is NULL.
62877
62878 2006-08-07  Bruno Haible  <bruno@clisp.org>
62879
62880         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62881         versions of AIX.
62882         Reported by Ralf Wildenhues.
62883
62884 2006-08-07  Bruno Haible  <bruno@clisp.org>
62885
62886         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62887         in an AC_DEFUN. Needed so that the autoconf snippets can use
62888         AC_REQUIRE.
62889
62890 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62891
62892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62893         Initialize pkgdata_DATA.
62894         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62895         overriding it.
62896
62897 2006-08-06  Eric Blake  <ebb9@byu.net>
62898
62899         * lib/error.h: Fold in some upstream changes from glibc.
62900         * lib/error.c: Likewise.
62901
62902 2006-08-04  Bruno Haible  <bruno@clisp.org>
62903
62904         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62905         Make the mostlyclean-local rule depend on mostlyclean-generic.
62906         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62907
62908 2006-07-31  Bruno Haible  <bruno@clisp.org>
62909
62910         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62911         <stdlib.h>, <string.h>.
62912
62913 2006-07-30  Bruno Haible  <bruno@clisp.org>
62914
62915         * modules/readlink (License): Change to LGPL.
62916
62917 2006-07-30  Bruno Haible  <bruno@clisp.org>
62918
62919         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62920         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62921         set PKGDATADIR to point to it.
62922
62923 2006-07-30  Bruno Haible  <bruno@clisp.org>
62924
62925         * modules/csharpexec (configure.ac): Comment out macro invocation.
62926         * modules/javaexec (configure.ac): Likewise.
62927         * modules/javacomp-script (configure.ac): Likewise.
62928
62929         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62930
62931 2006-07-30  Bruno Haible  <bruno@clisp.org>
62932
62933         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62934         linked-list.
62935
62936 2006-07-30  Bruno Haible  <bruno@clisp.org>
62937
62938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62939
62940 2006-07-30  Bruno Haible  <bruno@clisp.org>
62941
62942         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62943         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62944         get removed.
62945
62946 2006-07-29  Bruno Haible  <bruno@clisp.org>
62947
62948         Make it possible for gnulib-tool to work with locally modified or
62949         augmented gnulib repositories.
62950         * gnulib-tool (func_usage): Document --local-dir option.
62951         (local_gnulib_dir): New variable.
62952         Handle --local-dir option.
62953         (func_lookup_file): New function.
62954         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62955         (func_get_description, func_get_filelist, func_get_description,
62956         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62957         func_get_automake_snippet, func_get_include_directive,
62958         func_get_license, func_get_maintainer): Use func_lookup_file.
62959         (func_import, func_create_testdir): Use func_lookup_file.
62960
62961 2006-07-29  Bruno Haible  <bruno@clisp.org>
62962
62963         * modules/setenv (Depends-on): Add unistd.
62964
62965 2006-07-29  Bruno Haible  <bruno@clisp.org>
62966
62967         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62968
62969 2006-07-29  Bruno Haible  <bruno@clisp.org>
62970
62971         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62972
62973 2006-07-29  Bruno Haible  <bruno@clisp.org>
62974
62975         * gnulib-tool (import, update): If there is no Makefile.am, look at
62976         aclocal.m4, instead of bailing out.
62977
62978 2006-07-29  Bruno Haible  <bruno@clisp.org>
62979
62980         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62981         Categorize the options by when they are useful.
62982
62983 2006-07-29  Bruno Haible  <bruno@clisp.org>
62984
62985         * gnulib-tool (func_usage): Document option --no-libtool.
62986         Handle option --no-libtool.
62987         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62988         for changed semantics of $libtool variable.
62989         (func_import): Likewise. If libtool is not used, show this through
62990         an option --no-libtool.
62991         (func_create_testdir): Update.
62992
62993 2006-07-29  Bruno Haible  <bruno@clisp.org>
62994
62995         * gnulib-tool (func_import): Extend error message about missing
62996         --doc-base.
62997
62998 2006-07-29  Bruno Haible  <bruno@clisp.org>
62999
63000         * gnulib-tool (func_import): Don't create the $docbase directory if
63001         there is no file to store there.
63002
63003 2006-07-29  Bruno Haible  <bruno@clisp.org>
63004
63005         * gnulib-tool (autoconf_minversion): If a --dir option is given and
63006         relevant, look for configure.ac there, not in the current directory.
63007         Also use a simple search for AC_PREREQ, not "autoconf --trace".
63008
63009 2006-07-29  Bruno Haible  <bruno@clisp.org>
63010
63011         * gnulib-tool (SORT): New variable.
63012         (func_usage): Undocument --assume-autoconf option.
63013         Remove --assume-autoconf option handling.
63014         (autoconf_minversion): Determine from the contents of configure.ac.
63015         (func_import): Remove autoconf_minversion handling.
63016         Suggested by Eric Blake.
63017
63018 2006-07-29  Bruno Haible  <bruno@clisp.org>
63019
63020         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
63021
63022 2006-07-29  Bruno Haible  <bruno@clisp.org>
63023
63024         * config/srclist.txt (*setenv.[ch]): Remove rules.
63025
63026 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63027
63028         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
63029
63030 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63031
63032         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
63033         arpa/inet.h.
63034
63035 2006-07-28  Simon Josefsson  <jas@extundo.com>
63036
63037         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
63038         * modules/inet_pton (Depends-on): Likewise.
63039
63040 2006-07-28  Simon Josefsson  <jas@extundo.com>
63041
63042         * m4/netinet_in_h.m4: New file.
63043
63044 2006-07-28  Simon Josefsson  <jas@extundo.com>
63045
63046         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
63047         #include's.
63048
63049 2006-07-28  Simon Josefsson  <jas@extundo.com>
63050
63051         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
63052         #include's.
63053
63054 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
63057         setgid on directories only if they set these bits.
63058         * lib/modechange.h: Remove obsolete comment about masks.
63059
63060 2006-07-28  Eric Blake  <ebb9@byu.net>
63061
63062         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
63063         macro expansion.
63064
63065 2006-07-28  Bruno Haible  <bruno@clisp.org>
63066
63067         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
63068
63069 2006-07-28  Bruno Haible  <bruno@clisp.org>
63070
63071         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
63072
63073 2006-07-28  Bruno Haible  <bruno@clisp.org>
63074
63075         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
63076         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
63077         Define fallbacks.
63078         Avoids link error on FreeBSD 4.x.
63079         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63080
63081         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
63082         encoding.
63083         * lib/mbswidth.c (iswcntrl): Likewise.
63084
63085 2006-07-27  Bruno Haible  <bruno@clisp.org>
63086
63087         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
63088         test.
63089
63090 2006-07-27  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
63093         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
63094         defined.
63095
63096 2006-07-26  Eric Blake  <ebb9@byu.net>
63097
63098         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
63099
63100 2006-07-26  Eric Blake  <ebb9@byu.net>
63101
63102         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
63103         like mingw that lack mkstemp.
63104         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
63105         avoid compilation warning on mingw.
63106
63107 2006-07-26  Bruno Haible  <bruno@clisp.org>
63108
63109         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
63110         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
63111         INT_FAST*_MIN, INTPTR_MIN.
63112
63113 2006-07-25  Bruno Haible  <bruno@clisp.org>
63114
63115         * modules/version-etc (Depends-on): Add stdarg.
63116
63117 2006-07-25  Bruno Haible  <bruno@clisp.org>
63118
63119         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
63120         complex commands.
63121
63122 2006-07-25  Bruno Haible  <bruno@clisp.org>
63123
63124         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
63125         defined in <stdarg.h> or config.h.
63126
63127 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63128
63129         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
63130         (gl_STDIO_SAFER): Remove.
63131
63132 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63133
63134         * MODULES.html.sh (File stream based Input/Output):
63135         Add fopen-safer, tmpfile-safer; remove stdio-safer.
63136         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
63137         * modules/fopen-safer, modules/tmpfile-safer: New files.
63138         * modules/stdio-safer: Remove.
63139
63140 2006-07-24  Bruno Haible  <bruno@clisp.org>
63141
63142         * modules/tmpdir: New file.
63143         * MODULES.html.sh (File system functions): Add it.
63144
63145 2006-07-24  Bruno Haible  <bruno@clisp.org>
63146
63147         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
63148         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
63149
63150 2006-07-24  Bruno Haible  <bruno@clisp.org>
63151
63152         * modules/clean-temp: New file.
63153
63154 2006-07-24  Bruno Haible  <bruno@clisp.org>
63155
63156         * m4/tmpdir.m4: New file, from GNU gettext.
63157
63158 2006-07-24  Bruno Haible  <bruno@clisp.org>
63159
63160         * lib/tmpdir.h: New file, from GNU gettext.
63161         * lib/tmpdir.c: New file, from GNU gettext.
63162
63163 2006-07-24  Bruno Haible  <bruno@clisp.org>
63164
63165         * lib/clean-temp.h: New file, from GNU gettext.
63166         * lib/clean-temp.c: New file, from GNU gettext.
63167
63168 2006-07-23  Eric Blake  <ebb9@byu.net>
63169
63170         * modules/stdio-safer (Files): Add tmpfile-safer.c.
63171         (Depends-on): Add binary-io.
63172
63173 2006-07-23  Eric Blake  <ebb9@byu.net>
63174
63175         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
63176
63177 2006-07-23  Eric Blake  <ebb9@byu.net>
63178
63179         * lib/tmpfile-safer.c: New file.
63180         * lib/stdio-safer.h (fopen_safer): Add prototype.
63181         * lib/stdio--.h (tmpfile): Make safer.
63182
63183 2006-07-23  Bruno Haible  <bruno@clisp.org>
63184
63185         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
63186         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
63187         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
63188         gl_linked_remove_at): Use it.
63189
63190 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63191         and Simon Josefsson <jas@extundo.com>
63192
63193         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
63194
63195         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
63196
63197 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63198
63199         * modules/close-stream: New file.
63200         * modules/closeout (Description): Make it clear that it exits
63201         with a diagnostic on error.
63202         (Depends-on): Add close-stream.  Remove fpending, stdbool.
63203         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
63204
63205 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63206
63207         * m4/close-stream.m4: New file.
63208
63209 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63210
63211         * lib/close-stream.c, lib/close-stream.h: New files.
63212
63213 2006-07-22  Bruno Haible  <bruno@clisp.org>
63214
63215         Merge from GNU gettext 0.15.
63216
63217         2006-05-01  Bruno Haible  <bruno@clisp.org>
63218
63219                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
63220
63221         2006-07-22  Bruno Haible  <bruno@clisp.org>
63222
63223                 * modules/javaversion: New file.
63224                 * MODULES.html.sh (Java): Add javaversion.
63225
63226         2006-03-12  Bruno Haible  <bruno@clisp.org>
63227
63228                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
63229
63230         2005-12-04  Bruno Haible  <bruno@clisp.org>
63231
63232                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
63233                 (untested).
63234
63235         2006-06-21  Bruno Haible  <bruno@clisp.org>
63236
63237                 Avoid warnings from recent versions of mcs.
63238                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
63239                 -o, -L, -r any more. Use options documented since mcs-1.0
63240                 instead. Similarly for -g.
63241
63242         2005-12-04  Bruno Haible  <bruno@clisp.org>
63243
63244                 * build-aux/csharpcomp.sh.in: Suffix for resources is
63245                 .resources, not .resource.
63246
63247         2005-07-09  Bruno Haible  <bruno@clisp.org>
63248
63249                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
63250                 add a .dll suffix.
63251                 Reported by Mark Junker <mjscod@gmx.de>.
63252
63253         2006-07-22  Bruno Haible  <bruno@clisp.org>
63254
63255                 * modules/gettext: Upgrade to gettext-0.15.
63256                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
63257                 m4/visibility.m4.
63258                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
63259
63260 2006-07-22  Bruno Haible  <bruno@clisp.org>
63261
63262         Merge from GNU gettext 0.15.
63263
63264         2006-03-25  Bruno Haible  <bruno@clisp.org>
63265
63266                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
63267
63268         2006-07-21  Bruno Haible  <bruno@clisp.org>
63269
63270                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
63271                 "1.1".
63272
63273         2006-05-09  Bruno Haible  <bruno@clisp.org>
63274
63275                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
63276                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
63277                 for the conftestver execution.
63278
63279         2006-05-01  Bruno Haible  <bruno@clisp.org>
63280
63281                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
63282                 optional target-version argument. Verify that the compiler
63283                 groks source of the specified source-version, or add -source
63284                 option as necessary. Verify that the compiler produces
63285                 bytecode in the specified target-version, or add -target and
63286                 -source options as necessary. Make the result of the test
63287                 available as variable CONF_JAVAC. Also log error output in
63288                 config.log.
63289
63290         2006-03-11  Bruno Haible  <bruno@clisp.org>
63291
63292                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
63293
63294         2006-05-09  Bruno Haible  <bruno@clisp.org>
63295
63296                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
63297                 CLASSPATH_SEPARATOR to a semicolon.
63298
63299         2006-03-12  Bruno Haible  <bruno@clisp.org>
63300
63301                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
63302                 available as variable CONF_JAVA, for subsequent autoconf
63303                 tests. Also log error output in config.log.
63304
63305         2006-07-19  Bruno Haible  <bruno@clisp.org>
63306
63307                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
63308                 that getline works on glibc2 systems. Needed to avoid trouble
63309                 in relocatable.c.
63310                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
63311
63312         2005-12-04  Bruno Haible  <bruno@clisp.org>
63313
63314                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
63315                 launcher (untested).
63316
63317         2005-12-04  Bruno Haible  <bruno@clisp.org>
63318
63319                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
63320
63321         2006-07-22  Bruno Haible  <bruno@clisp.org>
63322
63323                 * gettext.m4: Update from GNU gettext-0.15.
63324                 * nls.m4: Likewise.
63325                 * po.m4: Likewise.
63326                 * inttypes-pri.m4: Likewise.
63327                 * inttypes-h.m4: Renamed from inttypes.m4.
63328                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
63329
63330 2006-07-22  Bruno Haible  <bruno@clisp.org>
63331
63332         Merge from GNU gettext 0.15.
63333
63334         2005-07-05  Bruno Haible  <bruno@clisp.org>
63335
63336                 * printf-args.c (printf_fetchargs): Work around broken
63337                 definition of wint_t on mingw.
63338
63339         2005-02-12  Bruno Haible  <bruno@clisp.org>
63340
63341                 * xallocsa.h: Add extern "C" for C++.
63342
63343         2006-05-17  Bruno Haible  <bruno@clisp.org>
63344
63345                 Cygwin portability.
63346                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
63347
63348         2006-04-30  Bruno Haible  <bruno@clisp.org>
63349
63350                 * progreloc.c: Include <mach-o/dyld.h> if available.
63351                 (find_executable): Use _NSGetExecutablePath when possible.
63352
63353         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63354
63355                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
63356                 function.
63357
63358         2005-12-29  Bruno Haible  <bruno@clisp.org>
63359
63360                 * progreloc.c (set_program_name_and_installdir): Fix
63361                 compilation error.
63362
63363         2005-12-04  Bruno Haible  <bruno@clisp.org>
63364
63365                 Cygwin portability.
63366                 * progreloc.c: Include <windows.h> also on Cygwin.
63367                 (find_executable): Add support for Cygwin.
63368                 (set_program_name_and_installdir): Handle also platforms with
63369                 nonempty EXEEXT.
63370
63371         2006-07-11  Bruno Haible  <bruno@clisp.org>
63372
63373                 * javacomp.c: Fix a comment.
63374                 Reported by Jim Meyering.
63375
63376         2006-04-30  Bruno Haible  <bruno@clisp.org>
63377
63378                 * javacomp.h (compile_java_class): Add source_version,
63379                 target_version arguments.
63380                 * javacomp.c: Rewritten to choose only a compiler that
63381                 respects the specified source_version and target_version.
63382
63383         2006-06-27  Bruno Haible  <bruno@clisp.org>
63384
63385                 Assume correct S_ISDIR macro.
63386                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
63387
63388         2006-07-22  Bruno Haible  <bruno@clisp.org>
63389
63390                 * javaversion.h: New file, from GNU gettext.
63391                 * javaversion.c: New file, from GNU gettext.
63392                 * javaversion.java: New file, from GNU gettext.
63393                 * javaversion.class: New file, from GNU gettext.
63394
63395         2006-05-17  Bruno Haible  <bruno@clisp.org>
63396
63397                 Cygwin portability.
63398                 * javaexec.c (execute_java_class): Test for jview program
63399                 also on Cygwin.
63400
63401         2006-04-09  Bruno Haible  <bruno@clisp.org>
63402
63403                 * fatal-signal.c: Don't include string.h.
63404                 (at_fatal_signal): Use a copying loop instead of memcpy.
63405
63406         2005-12-04  Bruno Haible  <bruno@clisp.org>
63407
63408                 * csharpexec.c: Add support for 'clix' launcher (untested).
63409                 (execute_csharp_using_sscli): New function.
63410                 (execute_csharp_program): Call it.
63411
63412         2006-06-21  Bruno Haible  <bruno@clisp.org>
63413
63414                 Avoid warnings from recent versions of mcs.
63415                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63416                 -o, -L, -r any more. Use options documented since mcs-1.0
63417                 instead. Similarly for -g.
63418
63419         2005-07-09  Bruno Haible  <bruno@clisp.org>
63420
63421                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63422                 add a .dll suffix.
63423                 Reported by Mark Junker <mjscod@gmx.de>.
63424
63425         2006-06-17  Bruno Haible  <bruno@clisp.org>
63426
63427                 * config.charset: Update for NetBSD 3.0.
63428
63429         2006-05-17  Bruno Haible  <bruno@clisp.org>
63430
63431                 Cygwin portability.
63432                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63433
63434         2006-05-16  Bruno Haible  <bruno@clisp.org>
63435
63436                 * localcharset.c [CYGWIN]: Include <windows.h>.
63437                 (get_charset_aliases): For Cygwin, return the same CPxxx
63438                 aliases list as under WIN32.
63439                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63440                 the environment variables. Fall back to GetACP().
63441
63442         2006-04-05  Bruno Haible  <bruno@clisp.org>
63443
63444                 * config.charset: Update Juan Manuel Guerrero's address.
63445
63446         2005-02-12  Bruno Haible  <bruno@clisp.org>
63447
63448                 * allocsa.h: Add extern "C" for C++.
63449
63450         2005-02-10  Bruno Haible  <bruno@clisp.org>
63451
63452                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63453                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63454
63455         2006-07-22  Bruno Haible  <bruno@clisp.org>
63456
63457                 * gettext.h: Update to GNU gettext-0.15.
63458
63459 2006-07-22  Bruno Haible  <bruno@clisp.org>
63460
63461         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63462         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63463         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63464
63465 2006-07-21  Eric Blake  <ebb9@byu.net>
63466
63467         * modules/stdlib-safer: New file.
63468         * MODULES.html.sh (File stream based Input/Output): Add
63469         stdlib-safer.
63470
63471 2006-07-21  Eric Blake  <ebb9@byu.net>
63472
63473         * lib/stdlib-safer.h: New file from coreutils, required by
63474         stdlib--.h.
63475
63476 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63477
63478         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63479
63480 2006-07-20  Bruno Haible  <bruno@clisp.org>
63481
63482         * gnulib-tool: Recognize new option --assume-autoconf.
63483         (autoconf_minversion): New variable.
63484         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63485
63486 2006-07-20  Bruno Haible  <bruno@clisp.org>
63487
63488         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63489
63490 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63491
63492         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63493         Reindent and repaginate.
63494
63495 2006-07-19  Derek Price  <derek@ximbiot.com>
63496
63497         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63498         Correct grammar.
63499
63500 2006-07-17  Bruno Haible  <bruno@clisp.org>
63501
63502         * modules/list: New file.
63503         * modules/array-list: New file.
63504         * modules/carray-list, modules/carray-list-tests: New files.
63505         * modules/linked-list, modules/linked-list-tests: New files.
63506         * modules/avltree-list, modules/avltree-list-tests: New files.
63507         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63508         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63509         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63510         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63511         * modules/oset: New file.
63512         * modules/array-oset: New file.
63513         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63514         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63515         * tests/test-carray_list.c: New file.
63516         * tests/test-linked_list.c: New file.
63517         * tests/test-avltree_list.c: New file.
63518         * tests/test-rbtree_list.c: New file.
63519         * tests/test-linkedhash_list.c: New file.
63520         * tests/test-avltreehash_list.c: New file.
63521         * tests/test-rbtreehash_list.c: New file.
63522         * tests/test-avltree_oset.c: New file.
63523         * tests/test-rbtree_oset.c: New file.
63524         * MODULES.html.sh (Container data structures): New section.
63525
63526 2006-07-17  Bruno Haible  <bruno@clisp.org>
63527
63528         * m4/gl_list.m4: New file.
63529
63530 2006-07-17  Bruno Haible  <bruno@clisp.org>
63531
63532         * lib/gl_list.h: New file.
63533         * lib/gl_list.c: New file.
63534         * lib/gl_array_list.h: New file.
63535         * lib/gl_array_list.c: New file.
63536         * lib/gl_carray_list.h: New file.
63537         * lib/gl_carray_list.c: New file.
63538         * lib/gl_linked_list.h: New file.
63539         * lib/gl_linked_list.c: New file.
63540         * lib/gl_anylinked_list1.h: New file.
63541         * lib/gl_anylinked_list2.h: New file.
63542         * lib/gl_avltree_list.h: New file.
63543         * lib/gl_avltree_list.c: New file.
63544         * lib/gl_anyavltree_list1.h: New file.
63545         * lib/gl_anyavltree_list2.h: New file.
63546         * lib/gl_rbtree_list.h: New file.
63547         * lib/gl_rbtree_list.c: New file.
63548         * lib/gl_anyrbtree_list1.h: New file.
63549         * lib/gl_anyrbtree_list2.h: New file.
63550         * lib/gl_anytree_list1.h: New file.
63551         * lib/gl_anytree_list2.h: New file.
63552         * lib/gl_linkedhash_list.h: New file.
63553         * lib/gl_linkedhash_list.c: New file.
63554         * lib/gl_anyhash_list1.h: New file.
63555         * lib/gl_anyhash_list2.h: New file.
63556         * lib/gl_avltreehash_list.h: New file.
63557         * lib/gl_avltreehash_list.c: New file.
63558         * lib/gl_rbtreehash_list.h: New file.
63559         * lib/gl_rbtreehash_list.c: New file.
63560         * lib/gl_anytreehash_list1.h: New file.
63561         * lib/gl_anytreehash_list2.h: New file.
63562
63563         * lib/gl_oset.h: New file.
63564         * lib/gl_oset.c: New file.
63565         * lib/gl_array_oset.h: New file.
63566         * lib/gl_array_oset.c: New file.
63567         * lib/gl_avltree_oset.h: New file.
63568         * lib/gl_avltree_oset.c: New file.
63569         * lib/gl_rbtree_oset.h: New file.
63570         * lib/gl_rbtree_oset.c: New file.
63571         * lib/gl_anytree_oset.h: New file.
63572
63573 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63574
63575         * m4/mkancesdirs.m4: New file.
63576         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63577         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63578         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63579         it.
63580
63581 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63584         * lib/mkancesdirs.h: New files.
63585         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63586         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63587         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63588         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63589         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63590         callers changed.  Revamp internals significantly, by not
63591         attempting to create directories that are temporarily more
63592         permissive than the final results.  Do not attempt to use
63593         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63594         This removes some race conditions, fixes some bugs, and simplifies
63595         things.  Use new dirchownmod function to do owner and mode changes.
63596         * lib/mkdir-p.h: Likewise.
63597         * lib/modechange.c (octal_to_mode): New function.
63598         (struct mode_change): New member mentioned.
63599         (make_node_op_equals): New arg mentioned.  All callers changed.
63600         (mode_compile): Keep track of which mode bits the user has explicitly
63601         mentioned.
63602         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63603         New arg PMODE_BITS, to keep track of which mode bits the user
63604         mentioned; it treats S_ISUID and S_ISGID speciall.
63605         All callers changed.
63606         * lib/modechange.h: Likewise.
63607
63608 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63609
63610         * MODULES.html.sh: Add mkancestors.
63611         * modules/mkancesdirs: New module.
63612         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63613         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63614         The chdir-safer and afs files are now orphans; I'll remove them
63615         unless someone speaks up.
63616         Add lib/dirchownmod.c, lib/dirchownmod.h.
63617         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63618         Add lchown, mkancesdirs.
63619         (Maintainer): Add self.
63620
63621 2006-07-15  Karl Berry  <karl@gnu.org>
63622
63623         * gnulib-tool: help message wording/arrangement.
63624
63625 2006-07-14  Simon Josefsson  <jas@extundo.com>
63626
63627         * doc/gnulib.texi (Libtool and Windows): New section.
63628
63629 2006-07-12  Simon Josefsson  <jas@extundo.com>
63630
63631         * modules/gendocs (License): Fix license, approved by Karl.
63632
63633 2006-07-12  Eric Blake  <ebb9@byu.net>
63634
63635         * MODULES.html.sh: Add gendocs.
63636
63637 2006-07-11  Eric Blake  <ebb9@byu.net>
63638
63639         * modules/fdl: New module, to install doc/fdl.texi.
63640         * MODULES.html.sh: Add new section for documentation modules.
63641         * gnulib-tool: Avoid space-tab.
63642         (--doc-base): New option, to manage files from doc.
63643
63644 2006-07-11  Eric Blake  <ebb9@byu.net>
63645
63646         * m4/absolute-header.m4: Fix comments to match recent change.
63647
63648 2006-07-11  Eric Blake  <ebb9@byu.net>
63649
63650         * gnulib-tool: List --doc-base before --tests-base.
63651
63652 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63653
63654         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63655
63656 2006-07-11  Bruno Haible  <bruno@clisp.org>
63657
63658         * README: Mention where to put documentation.
63659
63660 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63661
63662         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63663
63664 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63665
63666         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63667         to stdint.m4.
63668
63669 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63672         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63673         "no/such/file/stdint.h" when there is no such file, so that
63674         the resulting C code can be parsed by dodgy compilers.
63675         Problems reported by Bob Proulx.
63676
63677 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63678
63679         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63680         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63681         macros into the GNU _D_EXACT_NAMLEN.
63682         * lib/savedir.c:  Likewise.
63683         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63684
63685 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63686         and Paul Eggert  <eggert@cs.ucla.edu>
63687
63688         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63689         * m4/savedir.m4:
63690         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63691         macros into the GNU _D_EXACT_NAMLEN.
63692
63693 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63694
63695         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63696         around the absolute name, to work around a problem with the HP-UX
63697         11.23 native C compiler, reported by Bob Proulx.
63698
63699 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63700
63701         * doc/maintain.texi, make-stds.texi: Sync from
63702         <http://savannah.gnu.org/projects/gnustandards>.
63703
63704 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63705
63706         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63707
63708 2006-07-09  Jim Meyering  <jim@meyering.net>
63709
63710         * m4/glob.m4: Remove a doubled word in a comment.
63711
63712 2006-07-09  Jim Meyering  <jim@meyering.net>
63713
63714         * lib/argp-pv.c: Remove a doubled word in a comment.
63715         * lib/check-version.c (check_version): Likewise.
63716         * lib/javacomp.c (compile_java_class): Likewise.
63717
63718 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63719
63720         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63721         for the benefit of people using Autoconf 2.60.  If you want to
63722         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63723         (or m4/onceonly.m4, if pre-2.57) manually.
63724
63725 2006-07-08  Jim Meyering  <jim@meyering.net>
63726
63727         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63728         comment.
63729         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63730         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63731         comment.
63732
63733 2006-07-08  Jim Meyering  <jim@meyering.net>
63734
63735         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63736
63737 2006-07-07  Simon Josefsson  <jas@extundo.com>
63738
63739         * tests/test-crc.c: Change expected crc value, the test vector
63740         were probably computed using the old broken crc.c?
63741
63742 2006-07-06  Simon Josefsson  <jas@extundo.com>
63743
63744         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63745         now the canonical place for the M4 file).
63746
63747         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63748         from the sys_socket dependency now.
63749
63750         * modules/inet_pton (Files): Ditto.
63751
63752         * modules/inet_ntop (Files): Ditto.
63753
63754 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63755
63756         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63757         not gl_PREREQ_GETUSERSHELL.
63758
63759 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63760
63761         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63762         with only one argument, for Autoconf 2.60.
63763         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63764         expand to nothing, so add a shell command to avoid syntax error.
63765         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63766
63767 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63768
63769         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63770
63771 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63772
63773         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63774         no longer needed.  Check for isblank decl.
63775         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63776         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63777         of existence.
63778
63779 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63780
63781         * lib/getloadavg.c: Use __VMS, not VMS.
63782         * lib/getopt.c: Likewise.
63783         * lib/getpagesize.h: Likewise.
63784         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63785         and probably does not work.
63786
63787 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63788
63789         * lib/.cppi-disable: Add wcwidth.
63790         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63791         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63792         (ISGRAPH): Remove.  All uses changed to isgraph.
63793         (FOLD) [!defined _LIBC]: Remove special case.
63794         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63795         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63796         HAVE_ISBLANK.
63797         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63798         case.
63799
63800 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63801
63802         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63803         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63804         brackets.  Other minor changes to suppress some compiler
63805         warnings.
63806
63807 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63808         and Paul Eggert  <eggert@cs.ucla.edu>
63809
63810         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63811         of invoking obsolescent AC_HEADER_DIRENT macro.
63812         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63813         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63814         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63815         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63816         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63817         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63818         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63819         * m4/readdir.m4: Remove; no longer needed.
63820
63821 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63822         and Paul Eggert  <eggert@cs.ucla.edu>
63823
63824         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63825         Don't worry about this obsolete case any more.
63826         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63827         directories.
63828         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63829         worry about this obsolete case any more.
63830         * lib/fts.c: Likewise.
63831         * lib/getcwd.c: Likewise.
63832         * lib/glob.h: Likewise.
63833         * lib/savedir.c: Likewise.
63834
63835 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63836
63837         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63838         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63839         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63840         needed.
63841         All uses removed.
63842         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63843         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63844         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63845         needed.
63846         * m4/getdate.m4 (gl_GETDATE): Likewise.
63847         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63848         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63849         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63850         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63851         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63852         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63853         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63854         needed.
63855
63856 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63857
63858         * lib/memcasecmp.c: Include <limits.h>.
63859         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63860         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63861         Don't assume isdigit succeeds only on '0' through '9'.
63862
63863 2006-07-05  Eric Blake  <ebb9@byu.net>
63864
63865         * modules/getaddrinfo (Depends-on): Add snprintf.
63866
63867 2006-07-05  Eric Blake  <ebb9@byu.net>
63868
63869         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63870         to avoid 'header present but could not be compiled' on cygwin.
63871
63872 2006-07-05  Eric Blake  <ebb9@byu.net>
63873
63874         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63875         missing from netdb.h.
63876         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63877
63878 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63879
63880         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63881         no longer needed.
63882         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63883         * m4/getdate.m4 (gl_GETDATE): Likewise.
63884         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63885         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63886         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63887         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63888         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63889
63890 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63891
63892         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63893         All uses of is_space replaced by isspace.
63894         * lib/exit.h: Don't talk about STDC_HEADERS.
63895         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63896         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63897         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63898         replaced by isprint etc.
63899         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63900         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63901         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63902         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63903         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63904         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63905
63906 2006-07-05  Bruno Haible  <bruno@clisp.org>
63907
63908         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63909         the function exists, before testing against AIX.
63910         Reported by Martin Lambers <marlam@marlam.de>.
63911
63912 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63913
63914         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63915         From Mark D. Baushke.
63916
63917 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63918
63919         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63920         to the absolute name, not just one, to bypass Sun C 5.8's
63921         "warning: #include of /usr/include/... may be non-portable".
63922
63923 2006-07-04  Eric Blake  <ebb9@byu.net>
63924
63925         * modules/dirname-tests: New test module.
63926         * tests/test-dirname.c: New file, replacing dirname.c
63927         TEST_DIRNAME section that was recently deleted.
63928
63929 2006-07-04  Bruno Haible  <bruno@clisp.org>
63930
63931         Assume ANSI C header files and <ctype.h> functions.
63932         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63933         (mbsnwidth): Use isprint, iscntrl instead.
63934
63935 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         Merge from coreutils.
63938         * MODULES.html.sh: Add xstrtold.
63939         * modules/xstrtold: New file.
63940         * modules/cycle-check (Files): Add lib/same-inode.h.
63941         * modules/dirname (Files): Add m4/double-slash-root.m4.
63942         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63943         * modules/mkdir-p (Files): Add lib/same-inode.h.
63944         * modules/same (Files): Add lib/same-inode.h.
63945
63946 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63947
63948         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63949         This is to keep the terminology clean; POSIX talks about
63950         "absolute pathnames", not "full pathnames", but the GNU
63951         Coding Standards say to use "path" for something else;
63952         so use "absolute" to keep both sides happy.
63953         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63954         Set gl_absolute_header, not gl_full_header_path.
63955         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63956         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63957         All uses changed.
63958
63959         Merge from coreutils.
63960
63961         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63962
63963         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63964         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63965         want to require the building of c-strtod.o.
63966         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63967         needs -lm directly.
63968         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63969
63970         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63971
63972         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63973         --as-needed option if available.  Problem reported by Albert Chin in
63974         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63975         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63976         cc merely issues a bunch of annoying warnings for --as-needed
63977         (this problem was reported by Bob Proulx).  Also, try linking with
63978         -lm to detect a bug in binutils 2.16 (this problem was reported
63979         by Ralf Wildenhues).
63980
63981         2006-06-18  Jim Meyering  <jim@meyering.net>
63982
63983         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63984         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63985         macro.
63986         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63987         also check for glibc-2.4's abort-inducing bug.
63988
63989         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63990         Low-probability clean-up should be to use rmdir to get rid of
63991         the just-created directory, not unlink.
63992
63993         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63994         configure fail, and request a bug report to inform us about it.
63995         Add a comment that, barring reports to the contrary, in 2007 we'll
63996         assume ftruncate is universally available.
63997
63998         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63999
64000         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
64001
64002         2006-03-12  Jim Meyering  <jim@meyering.net>
64003
64004         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
64005         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
64006         * m4/same.m4 (gl_SAME): Likewise.
64007         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
64008
64009         2006-03-11  Eric Blake  <ebb9@byu.net>
64010
64011         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
64012         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
64013         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
64014         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
64015
64016 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64017
64018         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
64019         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
64020         reported by Mark D. Baushke, one in
64021         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
64022
64023         Merge from coreutils.
64024
64025         * lib/.cppi-disable: Add stdint_.h.
64026         * lib/.cvsignore: Add stdint.h.
64027
64028         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64029
64030         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
64031         both double and long double versions.
64032         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
64033         * lib/xstrtold.c: New file.
64034         * lib/xstrtod.h (xstrtold): New decl.
64035
64036         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         * lib/filemode.c (setst): Remove.
64039         (strmode): Rewrite to avoid setst.  This makes the code shorter,
64040         (arguably) clearer, and the generated code is a bit smaller on my
64041         Debian GNU/Linux stable x86 host.
64042
64043         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64044
64045         * lib/filemode.c: Include "filemode.h" first, to test the interface.
64046         Assume that filemode.h includes sys/types.h and sys/stat.h.
64047         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
64048         (ftypelet): Reorder to put common cases first, for efficiency.
64049         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
64050         to do 'M'.
64051         (strmode): Renamed from mode_string, and now stores 12 bytes instead
64052         of 10, for compatibility with FreeBSD.  All callers changed.
64053         (filemodestring): Now stores 12 bytes instead of 10, and sets file
64054         types that can't be deduced solely from st_mode.  First arg is now a
64055         const pointer.
64056         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
64057         (strmode): Renamed from mode_string.
64058         (filemodestring): New decl.
64059         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
64060         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
64061         needed.
64062         (S_ISPORT, S_ISWHT): New macros, if not already defined.
64063
64064         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64065
64066         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
64067         fsusage.h now does that.  Include fsusage.h first, to test interface.
64068         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
64069         at most one method (the old code could have generated decls that
64070         didn't conform to C89, not that this was ever exercised).
64071         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
64072
64073         2006-03-19  Jim Meyering  <jim@meyering.net>
64074
64075         Work even in a chroot where d_ino values for entries in "/"
64076         don't match the stat.st_ino values for the same names.
64077         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
64078         number, iterate through all entries again, using lstat instead.
64079         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
64080         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
64081
64082         * lib/getcwd.c (__getcwd): Clarify a comment.
64083         Use memcpy in place of a call to strcpy.
64084
64085         2006-03-12  Jim Meyering  <jim@meyering.net>
64086
64087         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
64088         matches that of the current directory (which we're about to chdir ".."
64089         out of), then save the dev-ino of the parent, instead.
64090
64091         * lib/same-inode.h (SAME_INODE): New file/macro.
64092         * lib/chdir-safer.c (SAME_INODE): Remove definition.
64093         Include "same-inode.h", instead.
64094         * lib/same.c: Likewise.
64095         * lib/cycle-check.h: Include "same-inode.h".
64096         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
64097         * lib/cycle-check.c (SAME_INODE): Remove definition.
64098         * lib/root-dev-ino.h: Include "same-inode.h".
64099
64100         2006-03-11  Eric Blake  <ebb9@byu.net>
64101
64102         * lib/same.c (same_name): s/base_name/last_component/
64103         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
64104         * lib/filenamecat.c (file_name_concat): Likewise.
64105
64106         2006-03-11  Eric Blake  <ebb9@byu.net>,
64107                     Paul Eggert  <eggert@cs.ucla.edu>
64108
64109         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
64110         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
64111         drive prefix.
64112         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
64113         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
64114         (last_component): New method.
64115         * lib/dirname.c (dir_len): Determine when drive letters need a
64116         subsequent slash.  Preserve // when it is special.
64117         (dir_name): Don't append dot when drive letter is absolute.
64118         [TEST_DIRNAME]: Move into a full-blown gnulib test.
64119         * lib/basename.c (base_name): New semantics - malloc the result.
64120         Preserve // when it is special.  Preserve relative files that look
64121         like drive letters.
64122         (base_len): Preserve // when it is special.
64123         (last_component): New method, similar to old base_name semantics.
64124         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
64125         base_name.  Strip redundant slashes from ///.
64126
64127 2006-07-03  Jim Meyering  <jim@meyering.net>
64128
64129         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
64130         macro is used before the first cycle_check call.
64131
64132 2006-07-03  Eric Blake  <ebb9@byu.net>
64133
64134         * modules/dirname (Depends-on): Add xstrndup.
64135
64136 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64137
64138         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
64139         test cases, so that config.log is a bit easier to follow.
64140
64141 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64142
64143         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
64144         both are 64 bits, since this seems to be the tradition, and this
64145         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
64146         we ever run into a host that prefers long long to long in this
64147         case, we'll need another configure-time test.  Problem reported by
64148         Jim Meyering.
64149
64150 2006-07-02  Eric Blake  <ebb9@byu.net>
64151
64152         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
64153
64154 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64155
64156         * modules/inttypes (Depends-on): No longer depends on stdint.
64157         * modules/stdint (Description): Say more about assumptions.
64158         Say that the fast types might differ.  Say macros are used.
64159         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
64160         (Makefile.am): Revise list of substituted symbols to match
64161         new stdint.m4.
64162         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
64163         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
64164         * tests/test-stdint.c (verify_same_types)
64165         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
64166         the code conforms to C99/C89.
64167         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
64168         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
64169
64170 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64171
64172         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
64173         but fix a bug, by requiring at least 64 bits.
64174         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64175         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
64176         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
64177         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64178
64179         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
64180         changes.  Make 2.59 a prerequisite.  Check and substitute for
64181         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
64182         inttypes.h.  Do not use special include files; just use the
64183         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
64184         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
64185         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
64186         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
64187         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
64188         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
64189         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
64190         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
64191         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
64192         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
64193         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
64194         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
64195         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
64196         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
64197         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
64198         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
64199         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
64200         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
64201         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
64202         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
64203         WINT_MAX.  Check for C99 conformance more strictly, by detecting
64204         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
64205         not check for things that C99 does not require, e.g., int8_t.  If
64206         a test isn't needed unless <stdint.h> isn't working, and is
64207         unlikely to be needed for any other reason, then don't do it
64208         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
64209         size_t, since we assume C89 freestanding at least.  Do not check
64210         for sig_atomic_t, wchar_t, or wint_t, since the code now does
64211         the right thing even if the types are not defined.  Instead use:
64212         (gl_STDINT_TYPE_PROPERTIES): New macro.
64213         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
64214         testing whether <sys/types.h> clashes, as Autoconf does this for
64215         us now.  All uses removed.
64216         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
64217         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
64218         (gl_CHECK_TYPE_SAME):
64219         Remove; no longer needed.
64220         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
64221         exists, since we'll return 0 anyway in that case.
64222         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
64223
64224 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64225
64226         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
64227         possible collision with system files.
64228         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
64229         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
64230         WCHAR_MIN and WCHAR_MAX in this case.
64231         (<stddef.h>): Do not include; no longer needed.
64232         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
64233         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
64234         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
64235         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
64236         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
64237         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
64238         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
64239         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
64240         !defined(__c99))]: Include in this case too, since it's harmless
64241         now.
64242         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
64243         dangerous to do so.
64244         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
64245         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
64246         (_STDINT_MIN, _STDINT_MAX): New macros.
64247         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
64248         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
64249         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
64250         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
64251         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
64252         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
64253         macros, not typedefs; this simplifies things quite a bit.
64254         Use long int for all types narrower than int64_t.
64255         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
64256         Define in terms of long long int or int64_t or long int,
64257         not int64_t or int32_t.  This saves some compile-time testing.
64258         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
64259         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
64260         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
64261         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
64262         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
64263         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
64264         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
64265         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
64266         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
64267         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
64268         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64269         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64270         undef any previous version and define our own version, for
64271         simplicity and consistency with the new macros for types.
64272         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64273         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64274         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
64275         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
64276         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
64277         @WINT_T_SUFFIX@ to keep things simple here.
64278         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
64279         Simplify by assuming typical 8/16/32/64 host, since we're
64280         already doing that elsewhere anyway.
64281         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
64282         and assume long long int is 64 bits if available.  This
64283         speeds up 'configure'.
64284
64285 2006-07-01  Eric Blake  <ebb9@byu.net>
64286
64287         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
64288         Reported by Andreas Buening.
64289
64290 2006-07-01  Eric Blake  <ebb9@byu.net>
64291
64292         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
64293
64294 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64295
64296         * lib/getaddrinfo.c: fixed typo
64297
64298 2006-06-29  Jim Meyering  <jim@meyering.net>
64299
64300         * modules/strftime (Maintainer): Add my name, since with the
64301         FPRINTFTIME changes strftime.c has forked from glibc.
64302
64303 2006-06-29  Eric Blake  <ebb9@byu.net>
64304
64305         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
64306
64307 2006-06-29  Eric Blake  <ebb9@byu.net>
64308
64309         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
64310
64311 2006-06-29  Eric Blake  <ebb9@byu.net>
64312
64313         * lib/stat_.h: New file.
64314
64315 2006-06-29  Eric Blake  <ebb9@byu.net>
64316
64317         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
64318         unused static function.
64319
64320 2006-06-29  Eric Blake  <ebb9@byu.net>
64321
64322         * doc/functions.texi (Function Portability): Document missing lstat
64323         on mingw.
64324
64325 2006-06-29  Eric Blake  <ebb9@byu.net>
64326
64327         * MODULES.html.sh: Add sys_stat.
64328         * modules/sys_stat: New module.
64329         * modules/mkstemp (Depends-on): Add sys_stat.
64330
64331 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64332
64333         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
64334
64335 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64336
64337         * m4/c-bs-a.m4: Removed.
64338
64339 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64340
64341         * lib/strftime.c: Assume strftime() exists.
64342
64343 2006-06-29  Derek Price  <derek@ximbiot.com>
64344
64345         * modules/c-bs-a: Removed - \a is C89.
64346         * MODULES.html.sh: Remove c-bs-a.
64347
64348 2006-06-29  Bruno Haible  <bruno@clisp.org>
64349
64350         * modules/wcwidth (License): Change to LGPL.
64351
64352 2006-06-28  Simon Josefsson  <jas@extundo.com>
64353
64354         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
64355         on _WIN32.
64356
64357         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
64358         getnameinfo.
64359
64360 2006-06-28  Simon Josefsson  <jas@extundo.com>
64361
64362         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
64363
64364 2006-06-28  Simon Josefsson  <jas@extundo.com>
64365
64366         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
64367         functions there.  It will succeed on Windows XP, but on Windows
64368         2000 and (presumably) earlier, it will fail, and use the internal
64369         re-implementation.
64370         (use_win32_p): New function.
64371         (getaddrinfo): Use strtoul on servname, to support numeric ports.
64372         Support AI_NUMERICSERV to disable getservbyname.
64373         (getnameinfo): New function, only supports
64374         NI_NUMERICHOST|NI_NUMERICSERV for now.
64375
64376         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
64377         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
64378         getnameinfo.
64379
64380 2006-06-28  Eric Blake  <ebb9@byu.net>
64381
64382         * modules/wcwidth: New file.
64383         * modules/mbchar (Depends-on): Add wcwidth.
64384         * modules/mbswidth (Depends-on): Add wcwidth.
64385         * MODULES.html.sh: Add wcwidth.
64386
64387 2006-06-28  Eric Blake  <ebb9@byu.net>
64388
64389         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
64390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
64391
64392 2006-06-28  Eric Blake  <ebb9@byu.net>
64393
64394         * lib/xvasprintf.h: Fix comments.
64395
64396 2006-06-28  Eric Blake  <ebb9@byu.net>
64397
64398         * lib/mbchar.h (wcwidth): Include wcwidth.h.
64399         * lib/mbswidth.c (wcwidth): Move from here...
64400         * lib/wcwidth.h: ...to this new file.
64401
64402 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64403
64404         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64405
64406         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64407         it's obsolete.
64408         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64409
64410 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64411
64412         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64413         Autoconf 2.60 says this stuff was obsolete.
64414
64415 2006-06-28  Bruno Haible  <bruno@clisp.org>
64416
64417         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64418
64419 2006-06-28  Bruno Haible  <bruno@clisp.org>
64420
64421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64422         gt_TYPE_WCHAR_T.
64423
64424 2006-06-28  Bruno Haible  <bruno@clisp.org>
64425
64426         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64427         declaration for wcwidth.
64428         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64429
64430 2006-06-28  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64433         (mkdir): Define using _mkdir.
64434
64435 2006-06-28  Bruno Haible  <bruno@clisp.org>
64436
64437         * lib/getaddrinfo.h: Fix POSIX URL.
64438         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64439         _WIN32.
64440         (use_win32_p): Make static.
64441         (getaddrinfo): Reject service name if it is empty or does not consist
64442         solely of decimal digits, or if its value is > 65535.
64443         (getnameinfo): Remove useless casts.
64444
64445 2006-06-27  Simon Josefsson  <jas@extundo.com>
64446
64447         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64448         Eggert and Martin Lambers.
64449
64450 2006-06-27  Simon Josefsson  <jas@extundo.com>
64451
64452         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64453         Eggert and Martin Lambers.
64454
64455 2006-06-27  Bruno Haible  <bruno@clisp.org>
64456
64457         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64458         result to 0, not to empty.
64459         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64460
64461 2006-06-27  Bruno Haible  <bruno@clisp.org>
64462
64463         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64464
64465 2006-06-26  Simon Josefsson  <jas@extundo.com>
64466
64467         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64468         present.
64469
64470 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64471
64472         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64473         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64474         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64475
64476 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64477
64478         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64479
64480 2006-06-26  Bruno Haible  <bruno@clisp.org>
64481
64482         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64483
64484 2006-06-26  Bruno Haible  <bruno@clisp.org>
64485
64486         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64487
64488 2006-06-26  Bruno Haible  <bruno@clisp.org>
64489
64490         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64491         SGI C compiler in pre-C99 mode.
64492         Suggested by Mark D. Baushke and Larry Jones.
64493
64494 2006-06-26  Bruno Haible  <bruno@clisp.org>
64495
64496         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64497         WCHAR_MAX.
64498         Reported by Mark D. Baushke and Larry Jones.
64499
64500 2006-06-26  Bruno Haible  <bruno@clisp.org>
64501
64502         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64503         in pre-C99 mode.
64504         Suggested by Mark D. Baushke and Larry Jones.
64505
64506 2006-06-23  Simon Josefsson  <jas@extundo.com>
64507             Bruno Haible  <bruno@clisp.org>
64508
64509         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64510         Emit mostlyclean-local rule.
64511         (func_emit_tests_Makefile_am): Likewise.
64512         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64513
64514 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64515
64516         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64517
64518 2006-06-23  Bruno Haible  <bruno@clisp.org>
64519
64520         * tests/test-stdint.c: Update to match ISO C 99 Technical
64521         Corrigendum 1.
64522
64523 2006-06-23  Bruno Haible  <bruno@clisp.org>
64524
64525         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64526
64527 2006-06-23  Bruno Haible  <bruno@clisp.org>
64528
64529         * lib/stdint_.h: Treat IRIX like OpenBSD.
64530
64531 2006-06-23  Bruno Haible  <bruno@clisp.org>
64532
64533         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64534         ISO C 99 Technical Corrigendum 1.
64535
64536 2006-06-22  Simon Josefsson  <jas@extundo.com>
64537
64538         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64539         MinGW.
64540
64541 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64542
64543         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64544         needed.  Some compiler complained about some of them.  Problem reported
64545         by Larry Jones in
64546         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64547
64548 2006-06-21  Simon Josefsson  <jas@extundo.com>
64549
64550         * tests/test-getaddrinfo.c: New file.
64551
64552         * modules/getaddrinfo-tests: New file.
64553
64554         * MODULES.html.sh: Add inet_pton.
64555
64556         * modules/inet_pton: New file.
64557
64558 2006-06-21  Simon Josefsson  <jas@extundo.com>
64559
64560         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64561         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64562         of using the (limited) gnulib implementation on Windows XP.
64563
64564         * m4/inet_pton.m4: New file.
64565
64566 2006-06-21  Simon Josefsson  <jas@extundo.com>
64567
64568         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64569         variable.
64570
64571         * lib/socket_.h: Don't define WINVER.
64572
64573         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64574         slightly modified to work in gnulib.
64575
64576 2006-06-21  Simon Josefsson  <jas@extundo.com>
64577
64578         * doc/gnulib.texi (Windows sockets): Add.
64579
64580 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64581
64582         * lib/read-file.c (fread_file): Start with buffer allocation of
64583         0 bytes rather than 1 byte; this simplifies the code.
64584         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64585         code to free buffer and save/restore errno.
64586         (internal_read_file): Remove unused local.
64587
64588 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64589
64590         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64591         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64592         Problem reported by Denis Excoffier in
64593         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64594
64595 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64596
64597         * modules/sys_socket, modules/socklen: Include sys/types since
64598         FreeBSD 4.x's sys/socket.h needs it.
64599
64600 2006-06-19  Simon Josefsson  <jas@extundo.com>
64601
64602         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64603
64604 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64605
64606         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64607
64608 2006-06-19  Bruno Haible  <bruno@clisp.org>
64609
64610         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64611         and FULL_PATH_INTTYPES_H in angle brackets.
64612         Reported by Mark D. Baushke <mdb@gnu.org>.
64613
64614 2006-06-17  Eric Blake  <ebb9@byu.net>
64615
64616         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64617         errno.
64618
64619 2006-06-17  Bruno Haible  <bruno@clisp.org>
64620
64621         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64622         <sys/inttypes.h>.
64623
64624 2006-06-17  Bruno Haible  <bruno@clisp.org>
64625
64626         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64627         whether errno is declared. Assume <errno.h> declares errno.
64628
64629 2006-06-17  Bruno Haible  <bruno@clisp.org>
64630
64631         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64632
64633 2006-06-17  Bruno Haible  <bruno@clisp.org>
64634
64635         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64636         problem on Solaris 2.5.1.
64637
64638 2006-06-16  Eric Blake  <ebb9@byu.net>
64639
64640         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64641         * lib/unicodeio.c [!defined errno]: Likewise.
64642         * lib/strtol.c [!defined errno]: Likewise.
64643         * lib/strtod.c [!defined errno]: Likewise.
64644
64645 2006-06-15  Eric Blake  <ebb9@byu.net>
64646
64647         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64648
64649 2006-06-15  Eric Blake  <ebb9@byu.net>
64650
64651         * config/srclist.txt (ssize_t.m4): Lose sync.
64652
64653 2006-06-15  Bruno Haible  <bruno@clisp.org>
64654
64655         * modules/stdint (Files): Include m4/full-header-path.m4,
64656         m4/size_max.m4, m4/wchar_t.m4.
64657         (Makefile.am): Many more substitutions.
64658         * modules/stdint-tests: New file.
64659         * tests/test-stdint.c: New file.
64660
64661 2006-06-15  Bruno Haible  <bruno@clisp.org>
64662
64663         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64664         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64665         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64666         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64667         gl_CHECK_TYPE_SAME): New macros.
64668
64669 2006-06-15  Bruno Haible  <bruno@clisp.org>
64670
64671         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64672
64673 2006-06-15  Bruno Haible  <bruno@clisp.org>
64674
64675         * lib/stdint_.h: Rewritten to be fully auto-configured.
64676         Fixes bug on HP-UX/IA64.
64677
64678 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64679
64680         * lib/getdate.y (__attribute__): Don't define if already defined.
64681         Problem reported by Larry Jones.
64682         * lib/utimens.c (__attribute__): Likewise.
64683
64684 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64685
64686         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64687         reported by Andreas Schwab.
64688
64689 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64690             Bruno Haible  <bruno@clisp.org>
64691
64692         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64693         check for the declaration of strnlen and a run test that exposes the
64694         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64695         rpl_strndup.
64696
64697 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64698             Bruno Haible  <bruno@clisp.org>
64699
64700         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64701
64702 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64703
64704         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64705         compile test, for Tru64 4.0D.
64706
64707 2006-05-28  Karl Berry  <karl@gnu.org>
64708
64709         * config/srclist.txt (printf-args.c): lose sync.
64710
64711 2006-05-26  Martin Lambers  <marlam@marlam.de>
64712
64713         * lib/getpass.c: Updates the test for the native W32 API, and adds
64714         missing includes, thus fixing compilation warnings.
64715
64716 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64717
64718         * lib/exclude.c (exclude_fnmatch): New function.
64719         (excluded_file_name): Call exclude_fnmatch.
64720         * lib/exclude.h (excluded_file_name): New prototype
64721
64722 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64723
64724         * lib/tempname.c (small_open, large_open): New macros.
64725         (__open, __open64) [!_LIBC]: Remove.
64726         (__gen_tempname): Use small_open and large_open instead of __open
64727         and __open64.  This fixes a portability bug on HP-UX 11.11i
64728         reported by Simon Wing-Tang in
64729         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64730
64731 2006-05-24  Bruno Haible  <bruno@clisp.org>
64732
64733         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64734         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64735         Reported by Thorsten Maerz <torte@netztorte.de> via
64736         Aaron Stone <aaron@serendipity.cx>.
64737
64738 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64739
64740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64741         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64742         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64743         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64744         not really conditional on the cache.
64745         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64746
64747 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64748
64749         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64750         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64751         (my_usleep): Don't mishandle maximum value.
64752
64753 2006-05-19  Jim Meyering  <jim@meyering.net>
64754
64755         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64756
64757 2006-05-17  Bruno Haible  <bruno@clisp.org>
64758
64759         Cygwin portability.
64760         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64761
64762 2006-05-17  Bruno Haible  <bruno@clisp.org>
64763
64764         * lib/stdint_.h: Fix recognition of Cygwin.
64765
64766 2006-05-15  Bruno Haible  <bruno@clisp.org>
64767
64768         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64769         on libtool patch by Ralf Wildenhues.
64770
64771 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64772
64773         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64774         test for C99 conformance; (bool) 0.5 is an integer constant
64775         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64776         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64777
64778 2006-05-11  Simon Josefsson  <jas@extundo.com>
64779
64780         * m4/xvasprintf.m4: Fix obvious typo.
64781
64782 2006-05-11  Jim Meyering  <jim@meyering.net>
64783
64784         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64785         James Lemley.
64786
64787 2006-05-10  Simon Josefsson  <jas@extundo.com>
64788
64789         * lib/md4.c: Typo fix, update copyright years.
64790         (K1, K2): Don't use L because it turn computations into 64-bit on
64791         64-bit platforms.
64792
64793 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64794
64795         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64796         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64797         unwanted sign propagation, e.g., on hosts with 64-bit int.
64798         There still are some problems with reeelly weird theoretical hosts
64799         (e.g., 33-bit int) but it's not worth worrying about now.
64800         * lib/sha1.c (rol): Likewise.
64801         (K1, K2, K3, K4): Remove unnecessary L suffix.
64802
64803 2006-05-10  Bruno Haible  <bruno@clisp.org>
64804
64805         * lib/des.c: Cast to avoid warnings.
64806
64807 2006-05-09  Bruno Haible  <bruno@clisp.org>
64808
64809         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64810         (Depends-on): Depend also on xsize, stdarg.
64811         (configure.ac): Add gl_XVASPRINTF.
64812
64813 2006-05-09  Bruno Haible  <bruno@clisp.org>
64814
64815         * m4/xvasprintf.m4: New file.
64816
64817 2006-05-09  Bruno Haible  <bruno@clisp.org>
64818
64819         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64820         (EOVERFLOW): Define fallback value.
64821         (xstrcat): New function.
64822         (xvasprintf): Recognize the special case of a string concatenation.
64823
64824 2006-05-08  Eric Blake  <ebb9@byu.net>
64825
64826         * gnulib-tool (func_version): Base copyright year on CVS date.
64827         (func_emit_copyright_notice): New function.
64828         (func_emit_lib_Makefile_am): Use it.
64829         (func_emit_tests_Makefile_am): Likewise.
64830         (func_import): Likewise.
64831
64832 2006-05-08  Bruno Haible  <bruno@clisp.org>
64833
64834         * modules/stdarg: New file.
64835         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64836
64837 2006-05-08  Bruno Haible  <bruno@clisp.org>
64838
64839         * m4/stdarg.m4: New file, from GNU gettext.
64840
64841 2006-05-08  Bruno Haible  <bruno@clisp.org>
64842
64843         * config/srclist.txt (build-aux/config.rpath): different from latest
64844         release.
64845
64846 2006-05-08  Bruno Haible  <bruno@clisp.org>
64847
64848         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64849
64850 2006-05-05  Jim Meyering  <jim@meyering.net>
64851
64852         * m4/warning.m4: New file, derived from bison's file by the same name.
64853
64854 2006-05-03  Bruno Haible  <bruno@clisp.org>
64855
64856         * lib/stdint_.h: Shorter URL.
64857         * lib/inttypes.h: Likewise.
64858
64859 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64860
64861         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64862
64863 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         * lib/verify.h: Document the internals better.  Most of this change
64866         was written by Bruno Haible.
64867
64868 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64869
64870         * doc/verify.texi: New file, partly based on a proposal by
64871         Bruno Haible.
64872
64873 2006-05-02  Bruno Haible  <bruno@clisp.org>
64874
64875         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64876         test from here...
64877         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64878
64879 2006-04-29  Bruno Haible  <bruno@clisp.org>
64880
64881         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64882         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64883
64884 2006-04-29  Bruno Haible  <bruno@clisp.org>
64885
64886         * gnulib-tool: Make --update option actually work.
64887
64888 2006-04-29  Bruno Haible  <bruno@clisp.org>
64889
64890         * doc/gcd.texi: New file.
64891         * doc/gnulib.texi: Include it.
64892
64893 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64894
64895         * lib/getdate.y (get_date): When adding relative date, start with the
64896         initial time, not with the result of the first mktime call.
64897
64898 2006-04-25  Bruno Haible  <bruno@clisp.org>
64899
64900         * gnulib-tool (func_import): Output the include directives in three
64901         blocks, sorted separately.
64902         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64903
64904 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64905
64906         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64907         to define main with arguments, for C++.  Reported by Eric Blake.
64908         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64909         Prefer 'int main ()' to 'int main (void)', for C++.
64910         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64911         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64912         for 'main', for C99 and C++.
64913
64914 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64915
64916         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64917         Don't assume that exit status -1 is valid.
64918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64919         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64920         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64921         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64922         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64923         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64924         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64925         functions can be used without declaring them, or that you can
64926         exit with status -1.
64927         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64928
64929 2006-04-24  Karl Berry  <karl@gnu.org>
64930
64931         * config/srclist.txt (longdouble.m4): sync lost.
64932
64933 2006-04-24  Eric Blake  <ebb9@byu.net>
64934
64935         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64936
64937 2006-04-24  Bruno Haible  <bruno@clisp.org>
64938
64939         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64940         poll() implementation in AIX.
64941         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64942
64943 2006-04-24  Bruno Haible  <bruno@clisp.org>
64944
64945         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64946         assigned exactly once.
64947
64948 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64949             Bruno Haible  <bruno@clisp.org>
64950
64951         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64952         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64953         for AM_CPPFLAGS.
64954
64955 2006-04-23  Bruno Haible  <bruno@clisp.org>
64956
64957         * modules/copy-file: Depend on unistd.
64958         * modules/execute: Likewise.
64959         * modules/fatal-signal: Likewise.
64960         * modules/findprog: Likewise.
64961         * modules/mkdtemp : Likewise.
64962         * modules/pipe: Likewise.
64963         * modules/wait-process: Likewise.
64964
64965 2006-04-23  Bruno Haible  <bruno@clisp.org>
64966
64967         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64968         condition was already detected.
64969         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64970
64971 2006-04-23  Bruno Haible  <bruno@clisp.org>
64972
64973         * lib/copy-file.c: Include <unistd.h> unconditionally.
64974         * lib/execute.c: Likewise.
64975         * lib/fatal-signal.c: Likewise.
64976         * lib/findprog.c: Likewise.
64977         * lib/mkdtemp.c: Likewise.
64978         * lib/pipe.h: Likewise.
64979         * lib/pipe.c: Likewise.
64980         * lib/wait-process.h: Likewise.
64981
64982 2006-04-23  Bruno Haible  <bruno@clisp.org>
64983
64984         * gnulib-tool (func_usage): Fix --import description. Document
64985         --update.
64986         (func_import): Create temporary file in a temporary directory, if
64987         --dry-run is specified. Silence errors from 'grep' when there are no
64988         m4 files in $m4dir.
64989         (func_create_testdir): Silence errors from 'grep' when there are no
64990         m4 files in $m4dir.
64991         Reported by Karl Berry <karl@freefriends.org>.
64992
64993 2006-04-20  Bruno Haible  <bruno@clisp.org>
64994
64995         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64996         one argument, so that the code will be portable to Autoconf 2.60.
64997         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64998         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64999         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
65000
65001 2006-04-19  Derek Price  <derek@ximbiot.com>
65002             Eric Blake  <ebb9@byu.net>
65003
65004         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
65005         rather than "/full/path.h".  Update comment to match.  Shorten &
65006         generalize m4_translit call via AS_TR_CPP.
65007
65008 2006-04-19  Derek Price  <derek@ximbiot.com>
65009             Eric Blake  <ebb9@byu.net>
65010
65011         * lib/inttypes.h: Correct grammar in comment.
65012
65013 2006-04-18  Derek Price  <derek@ximbiot.com>
65014             Paul Eggert  <eggert@cs.ucla.edu>
65015
65016         * modules/inttypes: New file.
65017         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
65018
65019 2006-04-18  Derek Price  <derek@ximbiot.com>
65020             Paul Eggert  <eggert@cs.ucla.edu>
65021
65022         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
65023         New files.
65024
65025 2006-04-18  Derek Price  <derek@ximbiot.com>
65026             Paul Eggert  <eggert@cs.ucla.edu>
65027
65028         * lib/inttypes.h: New file.
65029         * lib/strtoimax.c: Assume <inttypes.h>.
65030
65031 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
65032
65033         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
65034         isn't mounted.  Problem reported by Kir Kolyshkin.
65035
65036 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65037
65038         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
65039         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
65040         Derek R. Price.
65041         * lib/regex.h (RE_DUP_MAX): Update comment to match current
65042         implementation.
65043
65044 2006-04-12  Eric Blake  <ebb9@byu.net>
65045
65046         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
65047         is now done automatically by the corresponding Autoconf macro.
65048
65049 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
65050
65051         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
65052         time_r.h.
65053
65054 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65055
65056         Merge regex changes from libc, removing some of our
65057         POSIX-conformance changes that were rejected and redoing them in a
65058         less-intrusive way.
65059
65060         * lib/regcomp.c (re_compile_internal, init_dfa):
65061         Length arg is now size_t, not Idx.  All uses changed.
65062         (peek_token): Forward decl now says internal_function.
65063         (__re_error_msgid, __re_error_msgid_idx):
65064         Now static rather than extern with attribute_hidden.
65065         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
65066         For some reason libc prefers K&R style defns for external functions.
65067         (regerror) [!defined _LIBC]: Likewise.
65068         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
65069         (seek_collating_symbol_entry, lookup_collation_sequence_value):
65070         (build_range_exp, build_collating_symbol):
65071         Use K&R-style defn.
65072         (re_compile_fastmap): Use '\0' to memset, not 0.
65073         (utf8_sb_map): Make the calculations more obvious.
65074         (init_dfa, parse_bracket_exp, build_charclass_op):
65075         Call calloc and cast result, as glibc does.
65076         (init_word_char, fetch_token, peek_token, peek_token_bracket):
65077         (build_range_exp, build_collating_symbol):
65078         Now internal functions.
65079
65080         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
65081
65082         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
65083         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
65084         Don't depend on VMS; depend on __VMS instead, for POSIX
65085         namespace cleanness.
65086         (regoff_t): Define to ssize_t, not long int.
65087
65088         Remove the REG_ macros named below.  Instead, make the old names
65089         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
65090         __USE_GNU_REGEX.
65091         (REG_BACKSLASH_ESCAPE_IN_LISTS):
65092         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
65093         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
65094         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
65095         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
65096         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
65097         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
65098         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
65099         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
65100         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
65101         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
65102         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
65103         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
65104         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
65105         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
65106         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
65107         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
65108         (REG_NREGS):
65109         Remove.  All uses replaced by the old RE_* names.
65110         (RE_BACKSLASH_ESCAPE_IN_LISTS):
65111         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
65112         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
65113         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
65114         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
65115         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
65116         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
65117         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
65118         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
65119         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
65120         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
65121         Don't bother having these macros be independent of each others'
65122         values, since they no longer exist in the POSIX name space.
65123
65124         Rename the following member names back to their old names,
65125         unless !__USE_GNU_REGEX.  All uses changed back.
65126         (buffer): Renamed from re_buffer.
65127         (allocated): Renamed from re_allocated.
65128         (used): Renamed from re_used.
65129         (syntax): Renamed from re_syntax.
65130         (fastmap): Renamed from re_fastmap.
65131         (translate): Renamed from re_translate.
65132         (can_be_null): Renamed from re_can_be_null.
65133         (regs_allocated): Renamed from re_regs_allocated.
65134         (fastmap_accurate): Renamed from re_fastmap_accurate.
65135         (no_sub): Renamed from re_no_sub.
65136         (not_bol): Renamed from re_not_bol.
65137         (not_eol): Renamed from re_not_eol.
65138         (newline_anchor): Renamed from re_newline_anchor.
65139         (num_regs): Renamed from rm_num_regs.
65140         (start): Renamed from rm_start.
65141         (end): Renamed from rm_end.
65142
65143         (free_state): Move up a bit.
65144
65145         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
65146         #define to be empty.
65147         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
65148         when that is what is intended.
65149         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
65150         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
65151         (MAX): New macro.
65152         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
65153         All uses changed back to re_malloc, etc.  It's now the caller's
65154         responsibility to check for overflow; all callers changed.
65155         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
65156         (re_x2nrealloc): Remove.
65157         (free_state): Remove decl.
65158
65159         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
65160         (re_set_registers, re_exec):
65161         Use K&R-style defn.
65162
65163         2006-01-31  Roland McGrath  <roland@redhat.com>
65164
65165         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
65166         Reported by Mike Frysinger <vapier@gentoo.org>.
65167
65168         2006-01-15  Andreas Jaeger  <aj@suse.de>
65169
65170         [BZ #1950]
65171         * lib/regex_internal.c (re_string_reconstruct): Adjust for
65172         build_wcs_upper_buffer change.
65173         (build_wcs_upper_buffer): Change return type.
65174
65175         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
65176
65177         * lib/regex_internal.h: Include <stdint.h> if available.
65178
65179         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
65180
65181         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
65182
65183         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65184
65185         * lib/regcomp.c: Adjust for changed secondary hash function.
65186
65187         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
65188
65189         * lib/regex.h: Pretty printing.
65190         Clean up namespace a bit.
65191
65192         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
65193
65194         * lib/regexec.c (update_cur_sifted_state, check_arrival,
65195         check_arrival_add_next_nodes): Avoid using uninitialized variable.
65196
65197         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65198                     Ulrich Drepper  <drepper@redhat.com>
65199
65200         [BZ #1302]
65201         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
65202         changed.
65203         (bitset_word_t): Renamed from bitset_word.  All uses changed.
65204
65205         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
65206
65207         [BZ #281]
65208         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
65209         * lib/regcomp.c: Remove unnecessary uses of
65210         unsigned RE_TRANSLATE_TYPE.
65211         * lib/regex_internal.h: Likewise.
65212         * lib/regex_internal.c: Likewise.
65213         * lib/regexec.c: Likewise.
65214         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
65215
65216         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
65217
65218         * lib/regexec.c (find_recover_state): Remove unnecessary
65219         initialization.
65220         (transit_state_bkref): Make DFA a const pointer.
65221         (get_subexp): Likewise.
65222         (check_arrival): Likewise.
65223         (update_cur_sifted_state): Likewise.
65224         (re_search_internal): Likewise.
65225         (prune_impossible_nodes): Likewise.
65226         (acquire_init_state_context): Likewise.
65227         (proceed_next_node): Likewise.
65228         (set_regs): Likewise.
65229         (free_fail_stack_return): Likewise.
65230         (check_arrival_expand_ecl): Mark DFA parameter as const.
65231         (check_arrival_expand_ecl_sub): Likewise.
65232         (check_subexp_limits): Likewise.
65233         (sub_epsilon_src_nodes):  Likewise.
65234         (add_epsilon_src_nodes):  Likewise.
65235         (merge_state_array): Likewise.
65236         (update_regs): Likewise.
65237         (build_trtable): Likewise.
65238         (sift_states_backward): Mark MCTX parameter as const.
65239         (build_sifted_states): Likewise.
65240         (update_cur_sifted_state): Likewise.
65241         (sift_states_mkref): Likewise.
65242         (check_arrival_expand_ecl): Mark eclosure as const.
65243         (check_dst_limits_calc_pos_1): Likewise.
65244         * lib/regex_internal.h (re_match_context_t): Make dfa a const
65245         pointer.
65246
65247         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
65248
65249         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
65250         (transit_state_sb): Likewise.
65251         (transit_state_mb): Likewise.
65252         (sift_states_iter_mb): Likewise.
65253         (check_arrival_add_next_nodes): Likewise.
65254         (check_node_accept_bytes): Change first parameter to pointer-to-const.
65255         [_LIBC] (re_search_2_stub): Use mempcpy.
65256
65257         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
65258         mbrtowc for very simple UTF-8 case.
65259
65260         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
65261         a pointer-to-const.
65262         (re_acquire_state_context): Likewise.
65263         * lib/regex_internal.h: Adjust prototypes.
65264
65265         * lib/regex.c: Prevent using C++ compilers.
65266
65267         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
65268         (re_acquire_state_context): Likewise.
65269
65270 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65271
65272         * modules/regex (Depends-on): Add ssize_t.
65273
65274 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
65277         translation table.
65278
65279 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65280
65281         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
65282
65283 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
65284             Bruno Haible  <bruno@clisp.org>
65285
65286         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
65287         <sys/types.h> and <inttypes.h>.
65288
65289 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65290
65291         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
65292         `__error_t_defined', so argp.h will not typedef the former.
65293
65294 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65295
65296         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
65297         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
65298         glibc names.  Even if glibc is changed to conform to POSIX, the
65299         traditional names will be available anyway, since regex depends on
65300         the extensions module.  Also, fix a longstanding typo in the
65301         implementation of Spencer ERE test #75 from grep 2.3.  Problems
65302         reported by Emanuele Giaquinta.  Also, change sense of cached
65303         variable, so that the message makes sense.
65304
65305 2006-03-24  Simon Josefsson  <jas@extundo.com>
65306
65307         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
65308         including some doc fixes.
65309         (base64_encode_alloc): Fix +1 bug on allocation failures.
65310
65311 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65312
65313         * lib/base64.c (base64_encode): Do not read past end of array with
65314         unsanitized input on systems with CHAR_BIT > 8.
65315
65316 2006-03-24  Eric Blake  <ebb9@byu.net>
65317
65318         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
65319
65320 2006-03-22  Karl Berry  <karl@gnu.org>
65321
65322         * config/srclist.txt (*setenv.[ch]): get from coreutils.
65323         * config/srclistvars.sh (COREUTILS): new var.
65324
65325 2006-03-17  Jim Meyering  <jim@meyering.net>
65326
65327         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
65328         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
65329
65330 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65331
65332         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
65333         no longer needs it.  Instead, check that regoff_t is as least
65334         as wide as ptrdiff_t.
65335
65336         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
65337         so that our regex.h stays compatible with the installed regex.
65338         This is helpful for installers who configure --without-included-regex.
65339         Problem reported by Emanuele Giaquinta.
65340
65341 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65342
65343         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
65344         Typedef to long int, not to off_, as POSIX will likely change
65345         in that direction.
65346
65347 2006-03-15  Eric Blake  <ebb9@byu.net>
65348
65349         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
65350
65351 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65352
65353         * lib/argp-help.c (validate_uparams): Fix typo
65354         * lib/argp-parse.c (argp_default_options): Consistently begin help
65355         messages with a lowercase letter.
65356
65357 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
65358
65359         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
65360         overrun buffers and shouldn't be used (much as gets shouldn't be
65361         used).
65362         * lib/time_r.c (asctime_r, ctime_r): Likewise.
65363
65364 2006-03-08  Simon Josefsson  <jas@extundo.com>
65365
65366         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
65367         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65368
65369 2006-03-08  Simon Josefsson  <jas@extundo.com>
65370
65371         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
65372         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65373
65374 2006-03-08  Simon Josefsson  <jas@extundo.com>
65375
65376         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
65377         signal that configure disabled the device.
65378
65379 2006-03-08  Simon Josefsson  <jas@extundo.com>
65380
65381         * build-aux/maint.mk: Fix refresh-po, to handle no translated
65382         languages.
65383
65384 2006-03-07  Simon Josefsson  <jas@extundo.com>
65385
65386         * modules/getopt (Depends-on): Add unistd.
65387
65388         * modules/unistd: New file.
65389
65390 2006-03-07  Simon Josefsson  <jas@extundo.com>
65391
65392         * modules/gc-random: New file.
65393
65394 2006-03-07  Simon Josefsson  <jas@extundo.com>
65395
65396         * m4/unistd_h.m4: New file.
65397
65398 2006-03-07  Simon Josefsson  <jas@extundo.com>
65399
65400         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
65401         test to be side-effect free by storing the result in the cache
65402         variable gl_cv_lib_readline, and moving the assignment of
65403         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65404         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65405
65406 2006-03-07  Simon Josefsson  <jas@extundo.com>
65407
65408         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65409         error on missing devices (the functions will return an error).
65410
65411         * m4/gc.m4: Move random stuff to gc-random.m4
65412
65413 2006-03-07  Simon Josefsson  <jas@extundo.com>
65414
65415         * lib/unistd_.h: New file.
65416
65417 2006-03-07  Simon Josefsson  <jas@extundo.com>
65418
65419         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65420
65421 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65422
65423         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65424         Problem reported by Juan Manuel Guerrero.
65425
65426 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65427
65428         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65429         the unistd module.
65430         * lib/getlogin_r.c: Likewise.
65431         * lib/getlogin_r.h: Likewise.
65432         * lib/glob.c: Likewise.
65433         * lib/pagealign_alloc.c: Likewise.
65434         * lib/unistd_.h: Remove; no longer needed.
65435
65436 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65437
65438         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65439         Add unistd.
65440         * modules/c-stack (Depends-on): Add unistd.
65441         * modules/getlogin_r: Likewise.
65442         * modules/glob: Likewise.
65443         * modules/pagealign_alloc: Likewise.
65444         * modules/unistd (Files): Remove lib/unistd_.h.
65445         (EXTRA_DIST): Remove.
65446         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65447         need unistd_.h.
65448         (MOSTLYCLEANFILES): Remove unistd.h-t.
65449
65450 2006-03-03  Simon Josefsson  <jas@extundo.com>
65451
65452         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65453
65454 2006-03-03  Simon Josefsson  <jas@extundo.com>
65455
65456         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65457         libidn and bison.
65458
65459 2006-03-03  Simon Josefsson  <jas@extundo.com>
65460
65461         * build-aux/maint.mk: Add indent target.
65462
65463 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65464
65465         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65466         our replacement poll.h in any case, to avoid a differing
65467         declaration from a system header.  Seen on AIX.
65468
65469 2006-03-01  Simon Josefsson  <jas@extundo.com>
65470
65471         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65472         <kasal@ucw.cz>.
65473
65474 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65475
65476         * modules/gettime (Depends-on): Add extensions module.
65477         * modules/nanosleep (Depends-on): Likewise.
65478         * modules/settime (Depends-on): Likewise.
65479
65480 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65481
65482         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65483         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65484         pedantically.
65485         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65486         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65487
65488         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65489         not "==".  Reported by Ralf Wildenhues.
65490
65491 2006-03-01  Karl Berry  <karl@gnu.org>
65492
65493         * doc/Copyright/request-*: new files, synced from gnuorg.
65494
65495 2006-03-01  Karl Berry  <karl@gnu.org>
65496
65497         * config/srclist.txt (Copyright/*): new entries.
65498
65499 2006-02-28  Simon Josefsson  <jas@extundo.com>
65500
65501         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65502
65503 2006-02-27  Simon Josefsson  <jas@extundo.com>
65504
65505         * lib/base64.h: Indent #define's.  From Jim Meyering
65506         <jim@meyering.net>.
65507
65508 2006-02-27  Jim Meyering  <jim@meyering.net>
65509
65510         Revert the change of 2006-02-24, so these files can continue
65511         to be sync'd from gettext.
65512         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65513         of `config.h'.
65514
65515 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65516
65517         * modules/intprops: New file.
65518         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65519         Add intprops.
65520         * modules/getloadavg (Files): Remove lib/intprops.h.
65521         (Depends-on): Add intprops.
65522         * modules/human: Likewise.
65523         * modules/inttostr: Likewise.
65524         * modules/openat: Likewise.
65525         * modules/sig2str: Likewise.
65526         * modules/userspec: Likewise.
65527         * modules/utimecmp: Likewise.
65528         * modules/xnanosleep: Likewise.
65529         * modules/xstrtol: Likewise.
65530
65531 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65532
65533         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65534         * modules/lock-tests (TESTS): Use $(EXEEXT).
65535         * modules/tls-tests: Likewise.
65536         * modules/argp-tests: Likewise.
65537         (check_PROGRAMS): New var, replacing...
65538         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65539
65540 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65541
65542         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65543         `config.h'.
65544
65545 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65548
65549 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65550
65551         Sync from coreutils.
65552         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65553         gl_CHDIR_SAFER.
65554
65555 2006-02-22  Jim Meyering  <jim@meyering.net>
65556
65557         Sync from coreutils.
65558         * m4/chdir-safer.m4: New file.
65559
65560 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65561
65562         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65563         AT_FDCWD exceeds INT_MAX.
65564         * lib/openat.h (AT_FDCWD): Likewise.
65565
65566 2006-02-17  Eric Blake  <address@hidden>
65567
65568         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65569
65570 2006-02-16  Simon Josefsson  <jas@extundo.com>
65571
65572         * modules/getaddrinfo (Depends-on): Add sys_socket.
65573
65574 2006-02-15  Simon Josefsson  <jas@extundo.com>
65575
65576         * build-aux/maint.mk: Add dsyntax-check rule.
65577
65578 2006-02-15  Eric Blake  <ebb9@byu.net>
65579
65580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65581         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65582         'present but cannot compile' warnings on cygwin.
65583         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65584         use ws2tcpip.h if sys/socket.h works.
65585         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65586         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65587
65588 2006-02-14  Simon Josefsson  <jas@extundo.com>
65589
65590         * modules/maintainer-makefile (Files): Rename.
65591
65592         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65593         and (the local) Makefile.cfg to maint-cfg.mk.
65594
65595         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65596         to the latter.
65597
65598         * modules/maintainer-makefile: New module.
65599
65600         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65601         severaly stripped to make it possible to build it up from scratch
65602         with reliable tests.
65603
65604         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65605         fixes to permit overriding the default actions when configure and
65606         makefile are not available.
65607
65608 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         Sync from coreutils.
65611         * modules/lstat (Depends-on): Don't depend on xalloc.
65612         (License): Change from GPL to LGPL, since this is now simply a
65613         replacement for a libc function.
65614
65615 2006-02-14  Jim Meyering  <jim@meyering.net>
65616
65617         Sync from coreutils.
65618
65619         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65620         failure on deficient systems, and simplify gnulib lgpl dependencies.
65621         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65622         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65623
65624         * lib/xalloc-die.c: Remove unused definition of N_.
65625
65626 2006-02-14  Jim Meyering  <jim@meyering.net>
65627
65628         Sync from coreutils.
65629         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65630         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65631         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65632         double-quote uses of that variable, to accommodate the rare case in
65633         which getmntent is available in none of the libraries checked.  This
65634         happens at least on FreeBSD 5.0.
65635
65636 2006-02-13  Simon Josefsson  <jas@extundo.com>
65637
65638         * gnulib-tool (Usage): Fix --import, from
65639         karl@freefriends.org (Karl Berry).
65640
65641 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65642
65643         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65644
65645 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65646
65647         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65648         "autoupdate" on 2005-12-12.
65649
65650 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         * modules/closeout (Depends-on): Remove atexit.
65653
65654 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65655
65656         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65657         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65658
65659 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65660
65661         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65662         __EXTENSIONS__ if this causes compilation to fail.  Problem
65663         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65664         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65665
65666 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65667
65668         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65669         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65670         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65671         All uses changed.
65672
65673 2006-01-26  Simon Josefsson  <jas@extundo.com>
65674
65675         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65676         prototype is visible on mingw32.
65677
65678         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65679         for mingw32.
65680
65681         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65682         mingw32).
65683
65684 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65687         attempt to open for write; this always fails, at least on POSIX
65688         hosts.  This reinstates the 2006-01-09 change, which was
65689         inadvertently removed.
65690
65691 2006-01-26  Bruno Haible  <bruno@clisp.org>
65692
65693         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65694         Reported by Paul Eggert.
65695
65696 2006-01-26  Bruno Haible  <bruno@clisp.org>
65697             Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * lib/stdbool_.h (_Bool)
65700         [(! (defined __cplusplus || defined __BEOS__)
65701           && !defined __GNUC__
65702           && !(defined __HP_cc || defined __xlc__
65703                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65704                || defined __sgi))]:
65705         #define to signed char in these cases too; this simplifies
65706         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65707         etc., separately) and makes it more conservative.
65708
65709 2006-01-25  Simon Josefsson  <jas@extundo.com>
65710
65711         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65712         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65713         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65714
65715 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65716
65717         * lib/argp-namefrob.h: Bugfix. Remove stray #
65718
65719 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65722         so that we test the test.
65723         Check for yet another HP-UX cc bug involving *bool |= bool.
65724
65725 2006-01-25  Karl Berry  <karl@gnu.org>
65726
65727         * config/srclist.txt (vasnprintf.c): sync lost.
65728
65729 2006-01-25  Jim Meyering  <jim@meyering.net>
65730
65731         Sync from the stable (b5) branch of coreutils:
65732
65733         * lib/fts.c (fts_children): Don't let close() clobber errno from
65734         failed fchdir().
65735
65736         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65737         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65738         a dangling symlink.  That can also happen at least for ELOOP.
65739         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65740         FYI, this bug predates the inclusion of fts.c in coreutils.
65741
65742         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65743         in their own block, so pre-c99 compilers don't object.
65744
65745         Avoid the double-free (first in fts_read, second in fts_close) that
65746         would occur when an `active' directory is made inaccessible (e.g.,
65747         via chmod a-x) during a traversal.
65748         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65749         before returning.  Reproduce this failure by
65750         mkdir -p a/b; cd a; chmod a-x . b
65751         Reported by Stavros Passas.
65752
65753 2006-01-25  Jim Meyering  <jim@meyering.net>
65754
65755         * lib/fileblocks.c: Remove more useless parentheses.
65756         * lib/readutmp.h: Likewise.
65757
65758 2006-01-25  Bruno Haible  <bruno@clisp.org>
65759
65760         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65761         warnings.
65762         Reported by Paul Eggert.
65763
65764 2006-01-25  Bruno Haible  <bruno@clisp.org>
65765
65766         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65767         rid of a trap command. For Solaris sh.
65768         Reported by Mark D. Baushke <mdb@gnu.org>.
65769
65770 2006-01-24  Simon Josefsson  <jas@extundo.com>
65771
65772         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65773         Bruno.
65774
65775 2006-01-24  Karl Berry  <karl@gnu.org>
65776
65777         * config/srclist.txt (argp-namefrob.h): sync lost.
65778
65779 2006-01-24  Jim Meyering  <jim@meyering.net>
65780
65781         * modules/openat (Files): Add lib/intprops.h.
65782         From Mark D. Baushke.
65783
65784 2006-01-24  Jim Meyering  <jim@meyering.net>
65785
65786         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65787         Reported by Mark D. Baushke.
65788
65789 2006-01-24  Jim Meyering  <jim@meyering.net>
65790
65791         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65792
65793 2006-01-24  Bruno Haible  <bruno@clisp.org>
65794
65795         * modules/strnlen (Maintainer): Change from glibc to all.
65796
65797 2006-01-24  Bruno Haible  <bruno@clisp.org>
65798
65799         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65800         Patch by Paul Eggert.
65801
65802 2006-01-24  Bruno Haible  <bruno@clisp.org>
65803
65804         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65805         already has it.
65806         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65807         2005-11-26.
65808
65809         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65810         'signed char' to avoid problems with the built-in _Bool type.
65811         Reported by Paul Eggert on 2005-11-26.
65812
65813 2006-01-24  Bruno Haible  <bruno@clisp.org>
65814
65815         * gnulib-tool (func_import): Avoid constructing complicated sed
65816         expressions inside backquote.
65817         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65818
65819 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65820
65821         These changes imported from libc.
65822         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65823         test and two separate function calls.
65824         * lib/strndup.c (__strndup): Add libc_hidden_def.
65825
65826 2006-01-23  Simon Josefsson  <jas@extundo.com>
65827
65828         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65829         Remove the test_*_SOURCES variable: automake infers it by default.
65830         * modules/tls-tests: Likewise.
65831
65832 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65833
65834         Work around porting bugs reported by Dieter in
65835         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65836         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65837         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65838         Include "getopt.h" first, to check interface.
65839         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65840         !HAVE_DECL_GETENV.
65841         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65842         (__strndup): Revert to K&R-style function dfns, the glibc style.
65843         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65844         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65845         Include strnlen.h first, to get prototype properly.
65846         (strnlen): Renamed from __strnlen.
65847         Remove weak alias.
65848
65849 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65850
65851         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65852
65853 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         * config/srclist.txt: Adjust to reflect glibc reorganization.
65856         This affects only comments.
65857
65858 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65859
65860          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65861          Reported by Bruce Korb <bkorb@gnu.org>.
65862
65863 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65864
65865         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65866         to pacify gcc -Wswitch-default.
65867
65868 2006-01-22  Bruno Haible  <bruno@clisp.org>
65869
65870         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65871         temporary buffer for sprintf, take into account the precision also
65872         for 'd', 'i', 'u', 'o', 'x', 'X'.
65873
65874 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65875
65876         * modules/argp-tests: New module
65877         * tests/test-argp.c: New file
65878         * tests/test-argp-2.sh: New file
65879
65880 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65881
65882         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65883         (__argp_base_name): Removed
65884         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65885         typo.
65886         (__argp_base_name): Provide macro definition or extern declaration
65887         depending on the configuration
65888
65889 2006-01-20  Simon Josefsson  <jas@extundo.com>
65890
65891         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65892
65893 2006-01-20  Simon Josefsson  <jas@extundo.com>
65894
65895         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65896
65897 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65898
65899         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65900         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65901         Suggested by Bruno Haible.
65902
65903 2006-01-20  Karl Berry  <karl@gnu.org>
65904
65905         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65906         until changes propagate, I guess.
65907
65908 2006-01-19  Simon Josefsson  <jas@extundo.com>
65909
65910         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65911
65912 2006-01-19  Simon Josefsson  <jas@extundo.com>
65913
65914         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65915
65916 2006-01-19  Simon Josefsson  <jas@extundo.com>
65917
65918         * gnulib-tool: Set check_PROGRAMS.
65919
65920         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65921         modules/des-tests, modules/gc-arcfour-tests,
65922         modules/gc-arctwo-tests, modules/gc-des-tests,
65923         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65924         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65925         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65926         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65927         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65928         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65929         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65930         test_*_SOURCES.
65931
65932 2006-01-18  Simon Josefsson  <jas@extundo.com>
65933
65934         * modules/socklen (Depends-on): Depend on sys_socket.
65935
65936 2006-01-18  Simon Josefsson  <jas@extundo.com>
65937
65938         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65939         modules/des-tests, modules/gc-arcfour-tests,
65940         modules/gc-arctwo-tests, modules/gc-des-tests,
65941         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65942         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65943         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65944         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65945         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65946         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65947         $(EXEEXT) to automake TESTS variable, for mingw32.
65948
65949 2006-01-17  Simon Josefsson  <jas@extundo.com>
65950
65951         * modules/socklen (Include): Need sys/socket.h.
65952
65953 2006-01-17  Bruno Haible  <bruno@clisp.org>
65954
65955         * modules/ssize_t (Include): Add <sys/types.h>.
65956
65957 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65958
65959         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65960         it's not portable and it doesn't work with cross-compiles.
65961         Problem reported by Bruno Haible.  Fix missing-$ typo in
65962         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65963         -zignore from being used with Sun's C compiler.
65964
65965 2006-01-12  Simon Josefsson  <jas@extundo.com>
65966
65967         * lib/base64.c: Fix warning, reported by Bruno Haible
65968         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65969
65970 2006-01-12  Bruno Haible  <bruno@clisp.org>
65971
65972         * modules/ldd: New file.
65973         * build-aux/ldd.sh.in: New file.
65974         * MODULES.html.sh (Support for building libraries and executables): Add
65975         ldd.
65976
65977 2006-01-12  Bruno Haible  <bruno@clisp.org>
65978
65979         * m4/ldd.m4: New file.
65980
65981 2006-01-12  Bruno Haible  <bruno@clisp.org>
65982
65983         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65984         endless loop while replacing $auxdir with build-aux.
65985
65986 2006-01-11  Simon Josefsson  <jas@extundo.com>
65987
65988         * lib/stdint_.h (SIZE_MAX): Add missing (.
65989
65990 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65991
65992         Sync from coreutils.
65993         * lib/md5.c: Fix commentary typos.
65994         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65995         * lib/md5.h (__attribute__): Remove; unused.
65996         * lib/sha1.c: Fix commentary to match md5 better.
65997         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65998         so that we don't need to worry about alignment.  All uses changed.
65999         This merges the 2005-10-28 md5 change into sha1.
66000
66001 2006-01-11  Jim Meyering  <jim@meyering.net>
66002
66003         Sync from coreutils.
66004         * lib/md5.c (OP): Fix spacing.
66005
66006 2006-01-11  Bruno Haible  <bruno@clisp.org>
66007
66008         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66009         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
66010         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
66011
66012 2006-01-11  Bruno Haible  <bruno@clisp.org>
66013
66014         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66015         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
66016         the "early" section as well.
66017
66018 2006-01-11  Bruno Haible  <bruno@clisp.org>
66019
66020         Avoid "ar: no archive members specified" error on MacOS X.
66021         * gnulib-tool (func_modules_add_dummy): New function.
66022         (func_import, func_create_testdir): Invoke it.
66023
66024 2006-01-11  Bruno Haible  <bruno@clisp.org>
66025
66026         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
66027         with $auxdir in AC_CONFIG_FILES statements.
66028
66029 2006-01-11  Bruno Haible  <bruno@clisp.org>
66030
66031         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66032         Initialize also noinst_HEADERS to empty.
66033
66034 2006-01-11  Bruno Haible  <bruno@clisp.org>
66035
66036         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
66037         variables.
66038         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
66039         autoreconf.
66040
66041 2006-01-11  Bruno Haible  <bruno@clisp.org>
66042
66043         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
66044         overridable by the user.
66045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66046
66047 2006-01-10  Simon Josefsson  <jas@extundo.com>
66048
66049         * modules/sys_socket: New file.
66050
66051 2006-01-10  Simon Josefsson  <jas@extundo.com>
66052
66053         * m4/sys_socket_h.m4: New file.
66054
66055 2006-01-10  Simon Josefsson  <jas@extundo.com>
66056
66057         * lib/socket_.h: New file.
66058
66059 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66060
66061         * modules/readutmp (Maintainer): Add myself.
66062
66063 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
66066         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
66067         People who are still concerned with buggy memcmp implementations
66068         can invoke gl_FUNC_MEMCMP themselves.
66069
66070 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66071
66072         * lib/regex_internal.h (BITSET_WORD_BITS):
66073         Work around a bug in 64-bit PGC (before version 6.1-2), where the
66074         preprocessor mishandles large unsigned values as if they were signed.
66075         Problem reported by Claudio Fontana in
66076         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
66077
66078 2006-01-10  Jim Meyering  <jim@meyering.net>
66079
66080         Avoid the double-free (first in fts_read, second in fts_close) that
66081         would occur when an `active' directory is made inaccessible (e.g.,
66082         via chmod a-x) during a traversal.
66083         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66084         before returning.  Reproduce this failure by
66085         mkdir -p a/b; cd a; chmod a-x . b
66086         Reported by Stavros Passas.
66087
66088         Sync from coreutils.
66089         * lib/sha1.c: Tweak grammar in a comment.
66090
66091 2006-01-10  Jim Meyering  <jim@meyering.net>
66092
66093         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
66094         Patch by Joerg Sonnenberger.
66095
66096 2006-01-10  Bruno Haible  <bruno@clisp.org>
66097
66098         * modules/readutmp: Depend on module free.
66099         * modules/strtok_r: Depend on module restrict.
66100
66101 2006-01-10  Bruno Haible  <bruno@clisp.org>
66102
66103         * modules/gettext (configure.ac): Add an invocation of
66104         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
66105
66106 2006-01-10  Bruno Haible  <bruno@clisp.org>
66107
66108         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
66109         Reported by Werner Lemberg <wl@gnu.org>.
66110
66111 2006-01-10  Bruno Haible  <bruno@clisp.org>
66112
66113         * lib/localcharset.c: Update from GNU gettext.
66114
66115 2006-01-10  Bruno Haible  <bruno@clisp.org>
66116
66117         * lib/argp.h (__const): Remove macro. Use const instead.
66118         * lib/argp-fmtstream.h (__const): Likewise.
66119         * lib/glob_.h (__const): Remove macro.
66120         * lib/glob-libc.h: Use const instead of __const.
66121
66122 2006-01-10  Bruno Haible  <bruno@clisp.org>
66123
66124         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
66125         variable.
66126         Needed to avoid an automake error regarding the 'gettext' module.
66127
66128 2006-01-09  Simon Josefsson  <jas@extundo.com>
66129
66130         * modules/inet_ntop (Depends-on): Add restrict.
66131
66132 2006-01-09  Simon Josefsson  <jas@extundo.com>
66133
66134         * modules/gc-rijndael-tests (License): Put under LGPL.
66135
66136         * modules/gc-des-tests (License): Likewise.
66137
66138         * modules/gc-arcfour-tests (License): Likewise.
66139
66140         * modules/gc-arctwo-tests (License): Likewise.
66141
66142         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
66143
66144         * modules/gc-hmac-sha1-tests (Files): Likewise.
66145
66146         * modules/gc-hmac-md5-tests (License): Likewise.
66147
66148         * modules/gc-sha1-tests (License): Likewise.
66149
66150         * modules/gc-md5-tests (License): Likewise.
66151
66152         * modules/gc-md4-tests (License): Likewise.
66153
66154         * modules/gc-md2-tests (License): Likewise.
66155
66156         * modules/gc-tests (License): Likewise.
66157
66158         * modules/des-tests (License): Likewise.
66159
66160         * modules/md4-tests (License): Likewise.
66161
66162         * modules/md2-tests (License): Likewise.
66163
66164 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66165
66166         Sync from coreutils:
66167
66168         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
66169         * modules/lib-ignore: New file.
66170         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
66171         chdir-safer.m4, lchmod.m4.
66172         * modules/openat: Add mkdirat.c, openat-priv.h.
66173
66174 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66175
66176         Sync from coreutils.
66177         * m4/lib-ignore.m4: New file.
66178         * m4/lchmod.m4: New file.
66179
66180 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         Sync from coreutils.
66183         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
66184         for write access: POSIX says that must fail.
66185         * lib/fts.c (diropen): Likewise.
66186         * lib/save-cwd.c (save_cwd): Likewise.
66187         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
66188         well, for minor improvements on hosts that lack O_DIRECTORY.
66189         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
66190         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
66191         Fall back on chown if open failed with EACCES.
66192
66193         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
66194         Report an error at compile-time if only a 1-second nominal clock
66195         resolution is found.
66196
66197         * lib/lchmod.h: New file.
66198         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
66199         (make_dir_parents): Use lchown rather than chown, and
66200         lchmod rather than chmod.
66201
66202         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
66203         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
66204         "proc" reported by n0dalus.
66205
66206         * lib/mountlist.c: Include <limits.h>.
66207         (dev_from_mount_options)
66208         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
66209         New function.  It no longer assumes "dev=" has the System V meaning
66210         on Linux (since it doesn't).  It also parses "dev=" more carefully.
66211         (read_file_system_list)
66212         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
66213         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
66214         dev= in that case.
66215
66216         * lib/posixtm.h (PDS_PRE_2000): New macro.
66217         * lib/posixtm.c (year): Arg is now syntax_bits rather than
66218         allow_century.  All usages changed.  Reject dates outside the range
66219         1969-1999 if PDS_PRE_2000 is used.
66220
66221 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66222
66223         Sync from coreutils.
66224         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
66225         (Time of day items): Mention the possibility of leap seconds.
66226         Problem reported by Dr. David Alan Gilbert.
66227
66228 2006-01-09  Jim Meyering  <jim@meyering.net>
66229
66230         Sync from coreutils.
66231
66232         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
66233
66234         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
66235
66236         * lib/modechange.c (mode_compile): Reject an invalid mode string
66237         that starts with an octal digit.  From Andreas Gruenbacher.
66238
66239         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
66240         and dup to open_safer and dup_safer, respectively.
66241         (openat_permissive): Fix typo in comment.
66242
66243         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
66244         "gettext.h"; either no longer needed or are guaranteed by openat.h.
66245         (_): Remove; no longer needed.
66246         (openat): Renamed from rpl_openat; no need for rpl_openat
66247         since openat.h renames openat for us.
66248         Replace most of the body with a call to openat_permissive,
66249         to avoid duplicate code.
66250         Port to (probably hypothetical) environments were mode_t is
66251         wider than int.
66252         (openat_permissive): Require mode arg, so that we can check
66253         types better.  Put it just after flags.  Change cwd failure
66254         indicator from pointer-to-bool to pointer-to-errno-value.
66255         All callers changed.
66256         Invoke openat_save_fail and/or openat_restore_fail if
66257         cwd_errno is null, so that openat can call us.
66258         (openat_permissive, fdopendir, fstatat, unlinkat):
66259         Simplify errno handling to avoid some duplicate code,
66260         as it's OK to set errno on success.
66261         * lib/openat.h: Revamp code so that function macros depend on
66262         __OPENAT_PREFIX only, not also on AT_FDCWD.
66263         (openat_ro): Remove.  Caller changed to use openat_permissive.
66264         (openat_permissive): Now a macro, if not a function.
66265         (openat_restore_fail, openat_save_fail): Now always functions,
66266         since mkdirat needs them even if __OPENAT_PREFIX is defined.
66267
66268         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
66269         and openat.c.
66270         * lib/mkdirat.c: Include openat-priv.h.
66271         Remove definitions of macros defined therein.
66272         * lib/openat.c: Likewise.
66273
66274         * lib/mkdirat.c (mkdirat): New file and function.
66275         * lib/openat.h (mkdirat): Declare.
66276
66277         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
66278
66279         * lib/openat.h (openat_permissive): Declare.
66280         (openat_ro): Define.
66281
66282         * lib/openat.c (EXPECTED_ERRNO): New macro.
66283         (openat_permissive): New function -- used in remove.c rewrite.
66284         (all functions): Set errno just before returning, only if there
66285         was an actual failure.
66286         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
66287
66288         Emulate openat-family functions using Linux's procfs, if possible.
66289         Idea and some code based on Ulrich Drepper's glibc changes.
66290
66291         * lib/openat.c: (BUILD_PROC_NAME): New macro.
66292         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
66293         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
66294         before falling back on save_cwd and restore_cwd.
66295         (fdopendir, fstatat, unlinkat): Likewise.
66296
66297         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
66298         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
66299
66300         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
66301         as second argument to va_arg.  Otherwise, some versions of gcc
66302         warn that `if this code is reached, the program will abort'.
66303
66304 2006-01-09  Jim Meyering  <jim@meyering.net>
66305
66306         Sync from coreutils.
66307         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
66308         Require openat-priv.h.
66309
66310 2006-01-09  Bruno Haible  <bruno@clisp.org>
66311
66312         * modules/strnlen (Include): Use strnlen.h.
66313
66314 2006-01-09  Bruno Haible  <bruno@clisp.org>
66315
66316         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
66317
66318 2006-01-09  Bruno Haible  <bruno@clisp.org>
66319
66320         * lib/sysexit_.h (EX_OK): New macro.
66321         Suggested by Martin Lambers <marlam@marlam.de>.
66322
66323 2006-01-09  Bruno Haible  <bruno@clisp.org>
66324
66325         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
66326         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
66327
66328 2006-01-09  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
66331         numbers.
66332
66333 2006-01-09  Bruno Haible  <bruno@clisp.org>
66334
66335         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
66336         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
66337         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
66338         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
66339
66340 2006-01-09  Bruno Haible  <bruno@clisp.org>
66341
66342         * build-aux/javacomp.sh.in: New file, moved from lib/.
66343         * modules/javacomp-script (Files): Update.
66344         (configure.ac): Add AC_CONFIG_FILES invocation.
66345         (EXTRA_DIST): Remove variable.
66346
66347         * build-aux/javaexec.sh.in: New file, moved from lib/.
66348         * modules/javaexec (Files): Update.
66349         (configure.ac): Add AC_CONFIG_FILES invocation.
66350         (EXTRA_DIST): Remove javaexec.sh.in.
66351
66352         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
66353         * modules/csharpcomp-script (Files): Update.
66354         (configure.ac): Add AC_CONFIG_FILES invocation.
66355         (EXTRA_DIST): Remove variable.
66356
66357         * build-aux/csharpexec.sh.in: New file, moved from lib/.
66358         * modules/csharpexec (Files): Update.
66359         (configure.ac): Add AC_CONFIG_FILES invocation.
66360         (EXTRA_DIST): Remove csharpexec.sh.in.
66361
66362 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66363
66364         Sync from coreutils.
66365
66366         Add POSIX ACL support
66367         * lib/acl.h (copy_acl, set_acl): Add declarations.
66368         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
66369         systems other than Linux.
66370         (chmod_or_fchmod): New function: use fchmod when possible,
66371         and chmod otherwise.
66372         (file_has_acl): Add a POSIX ACL implementation, with a
66373         Linux-specific subcase.
66374         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
66375         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
66376         acls are unsupported.
66377         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
66378         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
66379         are unsupported.
66380
66381 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66382
66383         Sync from coreutils.
66384         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
66385
66386 2006-01-07  Bruno Haible  <bruno@clisp.org>
66387
66388         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
66389         gl_EARLY.
66390
66391 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66392
66393         * lib/strftime.c (tzname): Don't declare if it is already #defined.
66394         Problem reported for Mingw by Mark Junker.
66395
66396 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66397
66398         * README: Gnulib normally doesn't generate a tarball.
66399
66400 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
66401
66402         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66403         long int, not int, for nanosecond counts, so that people who are
66404         used to POSIX struct timespec won't be surprised.  Reported by Jim
66405         Meyering.
66406
66407 2005-12-28  Bruno Haible  <bruno@clisp.org>
66408
66409         * build-aux/config.rpath: Update from GNU gettext.
66410
66411 2005-12-16  Jim Meyering  <jim@meyering.net>
66412
66413         * modules/fprintftime: New module.
66414         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66415
66416 2005-12-16  Jim Meyering  <jim@meyering.net>
66417
66418         * m4/fprintftime.m4: New file.
66419
66420 2005-12-16  Jim Meyering  <jim@meyering.net>
66421
66422         * lib/fprintftime.c, lib/fprintftime.h: New files.
66423
66424 2005-12-15  Simon Josefsson  <jas@extundo.com>
66425
66426         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66427         new m4/socklen.m4.
66428
66429 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66430
66431         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66432         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66433
66434 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66435
66436         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66437         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66438         struct uparams is valid. Fall back to the default values if it is
66439         not.
66440
66441 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66442
66443         * modules/argp (Files): Add argp-pin.c
66444         (Depends-on): dirname
66445         (lib_SOURCES): Add argp-pin.c
66446
66447 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66448
66449         * m4/argp.m4:  Check if program_invocation_name and
66450         program_invocation_short_name are declared and define appropriate
66451         macros if they are not.
66452
66453 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66454
66455         * lib/argp-help.c (__argp_base_name): New function
66456         (__argp_short_program_name): Rewrite using __argp_base_name
66457         * lib/argp-namefrob.h: Define program_invocation_name and
66458         program_invocation_short_name if requested
66459         (__argp_base_name): Add prototype
66460         * lib/argp-parse.c (argp_def): Use gettext wrappers
66461         (argp_default_parser): Use __argp_base_name
66462         * lib/argp-pin.c: New file. Defines program_invocation_name and
66463         program_invocation_short_name on systems that lack them.
66464
66465 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66466
66467         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66468         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66469         porting problem reported by Georg Schwarz in
66470         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66471
66472 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66473
66474         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66475         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66476         porting problem reported by Georg Schwarz in
66477         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66478
66479 2005-12-05  Bruno Haible  <bruno@clisp.org>
66480
66481         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66482         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66483         Reported by Mark Junker <mjscod@gmx.de>.
66484
66485 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66486
66487         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66488         Use implementation from Albert Chin, with some
66489         comments/corrections by Stepan Kasal and myself.
66490
66491 2005-12-02  Bruno Haible  <bruno@clisp.org>
66492
66493         * gnulib-tool (func_import): Accept GPLed build tool modules when
66494         --lgpl is given.
66495         * modules/csharpcomp-script: New file.
66496         * modules/csharpcomp: Depend on it.
66497         * modules/javacomp-script: New file.
66498         * modules/javacomp: Depend on it.
66499         Suggested by Simon Josefsson.
66500
66501 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66502
66503         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66504         statement, to work around an HP-UX 10.20 compiler bug reported by
66505         Peter O'Gorman.
66506
66507 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66508
66509         * modules/savedir (Depends-on): Add openat.
66510
66511 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66512
66513         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66514         (uintmax_t) [defined uintmax_t]: Do not declare.
66515         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66516         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66517         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66518         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66519         sake of portability to weird hosts that C allows (though we don't
66520         know of any practical examples).
66521
66522         * lib/savedir.h (fdsavedir): New decl.
66523         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66524         contains most of the former guts of savedir.
66525         (savedir): Use savedirstream.
66526         Include "openat.h".
66527
66528 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66529
66530         * modules/obstack (Files): Add m4/ulonglong.m4.
66531         Problem reported by Davide Angelocola.
66532
66533 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66534
66535         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66536         coreutils no longer futzes with rounding modes.
66537
66538 2005-11-14  Jim Meyering  <jim@meyering.net>
66539
66540         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66541         replacement of mkstemp.
66542
66543 2005-11-10  Simon Josefsson  <jas@extundo.com>
66544
66545         * lib/readline.c: Remove EOL.
66546
66547 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66548
66549         * modules/gethrxtime (Depends-on): Add gettime.
66550
66551 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66552
66553         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66554         or gettimeofday; no longer needed.
66555
66556 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66557
66558         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66559         time business.
66560         (gethrxtime) [! (HAVE_NANOUPTIME
66561         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66562         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66563         our own approximation.
66564
66565 2005-11-08  Eric Blake  <ebb9@byu.net>
66566
66567         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66568
66569 2005-11-08  Eric Blake  <ebb9@byu.net>
66570
66571         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66572
66573 2005-11-04  Bruno Haible  <bruno@clisp.org>
66574
66575         * gnulib-tool: Implement --update mode.
66576
66577 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66578
66579         Fix porting problem reported by Theodoros V. Kalamatianos.
66580         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66581         Don't assume that futimes failing means we must fail.
66582
66583 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66586         variables to suggest the intended function of the PATH_MAX check.
66587
66588 2005-10-30  Kean Johnston  <jkj@sco.com>
66589
66590         Trivial changes to support SCO systems.
66591         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66592         as PATH_MAX.
66593         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66594         where __ptr is null when no I/O is pending.
66595
66596 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66597
66598         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66599         leave errno alone.  Problem reported by Dmitry V. Levin.
66600
66601 2005-10-28  Simon Josefsson  <jas@extundo.com>
66602
66603         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66604         Test more.
66605
66606         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66607
66608         * modules/md2, modules/md2-tests: New files.
66609
66610 2005-10-28  Simon Josefsson  <jas@extundo.com>
66611
66612         * m4/inet_ntop.m4: More tests.
66613
66614         * m4/gc-md2.m4, md2.m4: New file.
66615
66616 2005-10-28  Simon Josefsson  <jas@extundo.com>
66617
66618         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66619         "restrict" keywords, as per POSIX.  Protect the function
66620         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66621         Don't use K&R prototypes.  Check the sprintf return values.
66622         Re-define EAFNOSUPPORT if not present.  Indent.
66623
66624         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66625         suggested by Bruno Haible <bruno@clisp.org>.
66626
66627         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66628
66629         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66630
66631         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66632         libgcrypt).
66633
66634         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66635
66636         * lib/md2.h, lib/md2.c: New files.
66637
66638 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66639
66640         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66641         errno alone.  Problem reported by Frederic Jolliton.
66642
66643 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66644
66645         * modules/verify (License): Change from GPL to LGPL.  This is a
66646         tiny module and there are apparently near-equivalents that are
66647         under the BSD license.
66648
66649 2005-10-24  Simon Josefsson  <jas@extundo.com>
66650
66651         * modules/sha1: Relicense to LGPL.
66652
66653 2005-10-24  Simon Josefsson  <jas@extundo.com>
66654
66655         * lib/md4.h: Shrink buffer size, now that we changed the type.
66656
66657 2005-10-23  Simon Josefsson  <jas@extundo.com>
66658
66659         * gnulib-tool (func_import): Fix --tests-base.
66660
66661 2005-10-22  Simon Josefsson  <jas@extundo.com>
66662
66663         * modules/arcfour (Depends-on): Need stdint.
66664
66665 2005-10-22  Simon Josefsson  <jas@extundo.com>
66666
66667         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66668         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66669
66670 2005-10-22  Simon Josefsson  <jas@extundo.com>
66671
66672         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66673         suggested by Bruno Haible <bruno@clisp.org>.
66674
66675 2005-10-22  Simon Josefsson  <jas@extundo.com>
66676
66677         * lib/crc.h: Include stddef.h, for size_t.
66678
66679 2005-10-22  Simon Josefsson  <jas@extundo.com>
66680
66681         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66682         arcfour_context struct (simplify test vector testing in GNU
66683         Shishi).
66684
66685 2005-10-21  Simon Josefsson  <jas@extundo.com>
66686
66687         * modules/des, modules/des-tests: New files.
66688
66689         * modules/gc-des, modules/gc-des-tests: New files.
66690
66691         * tests/test-des.c, tests/test-gc-des.c: New file.
66692
66693 2005-10-21  Simon Josefsson  <jas@extundo.com>
66694
66695         * modules/arctwo, modules/arctwo-tests: New files.
66696
66697         * tests/test-arctwo.c: New file.
66698
66699         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66700
66701         * tests/test-gc-arctwo.c: New file.
66702
66703 2005-10-21  Simon Josefsson  <jas@extundo.com>
66704
66705         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66706         Bruno Haible <bruno@clisp.org>.
66707
66708         * m4/gc-des.m4: New file.
66709
66710 2005-10-21  Simon Josefsson  <jas@extundo.com>
66711
66712         * m4/arctwo.m4: New file.
66713
66714         * m4/gc-arctwo.m4: New file.
66715
66716 2005-10-21  Simon Josefsson  <jas@extundo.com>
66717
66718         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66719         block.
66720
66721 2005-10-21  Simon Josefsson  <jas@extundo.com>
66722
66723         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66724         <bruno@clisp.org>.
66725
66726         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66727
66728         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66729         Bruno Haible <bruno@clisp.org>.
66730
66731         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66732         <bruno@clisp.org>.
66733
66734 2005-10-21  Simon Josefsson  <jas@extundo.com>
66735
66736         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66737
66738 2005-10-21  Simon Josefsson  <jas@extundo.com>
66739
66740         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66741
66742 2005-10-21  Simon Josefsson  <jas@extundo.com>
66743
66744         * lib/des.h, lib/des.c: New files.
66745
66746         * lib/gc-gnulib.c: Support DES.c
66747
66748 2005-10-21  Simon Josefsson  <jas@extundo.com>
66749
66750         * lib/arctwo.h, lib/arctwo.c: New files.
66751
66752         * lib/gc-gnulib.c: Support ARCTWO.
66753
66754 2005-10-21  Simon Josefsson  <jas@extundo.com>
66755
66756         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66757         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66758
66759 2005-10-21  Simon Josefsson  <jas@extundo.com>
66760
66761         * gnulib-tool (func_import, func_create_testdir): Define automake
66762         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66763         Makefile.am snippet),
66764         suggested by Bruno Haible <bruno@clisp.org>.
66765
66766         * modules/gc (Makefile.am): Use it.
66767
66768 2005-10-21  Bruno Haible  <bruno@clisp.org>
66769
66770         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66771         patch.
66772
66773 2005-10-19  Simon Josefsson  <jas@extundo.com>
66774
66775         * tests/test-gc-rijndael.c: New file.
66776
66777         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66778
66779 2005-10-19  Simon Josefsson  <jas@extundo.com>
66780
66781         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66782         interface too.
66783
66784 2005-10-19  Simon Josefsson  <jas@extundo.com>
66785
66786         * tests/test-gc-arcfour.c: New file.
66787
66788         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66789
66790 2005-10-19  Simon Josefsson  <jas@extundo.com>
66791
66792         * modules/gc-md4, modules/gc-md4-tests: New file.
66793
66794         * tests/test-gc-md4.c: New file.
66795
66796 2005-10-19  Simon Josefsson  <jas@extundo.com>
66797
66798         * m4/gc-md4.m4: New file.
66799
66800 2005-10-19  Simon Josefsson  <jas@extundo.com>
66801
66802         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66803         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66804         <kasal@ucw.cz>.
66805
66806 2005-10-19  Simon Josefsson  <jas@extundo.com>
66807
66808         * m4/gc-arcfour.m4: New file.
66809
66810         * m4/gc-rijndael.m4: New file.
66811
66812 2005-10-19  Simon Josefsson  <jas@extundo.com>
66813
66814         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66815
66816 2005-10-19  Simon Josefsson  <jas@extundo.com>
66817
66818         * lib/gc-gnulib.c: Support ARCFOUR.
66819
66820 2005-10-19  Simon Josefsson  <jas@extundo.com>
66821
66822         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66823         support.
66824
66825         * lib/gc.h: Add ECB enum type.
66826
66827         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66828
66829 2005-10-18  Simon Josefsson  <jas@extundo.com>
66830
66831         * tests/test-md5.c: New file.
66832
66833         * modules/md5-tests: New file.
66834
66835 2005-10-18  Simon Josefsson  <jas@extundo.com>
66836
66837         * tests/test-md4.c: New file.
66838
66839         * modules/md4, modules/md4-tests: New files.
66840
66841 2005-10-18  Simon Josefsson  <jas@extundo.com>
66842
66843         * m4/md4.m4: New file.
66844
66845 2005-10-18  Simon Josefsson  <jas@extundo.com>
66846
66847         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66848
66849 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66850
66851         * gnulib-tool (func_create_testdir): Omit the second check whether
66852         BUILT_SOURCES in nonempty.
66853
66854 2005-10-17  Simon Josefsson  <jas@extundo.com>
66855
66856         * tests/test-rijndael.c: New file.
66857
66858 2005-10-17  Simon Josefsson  <jas@extundo.com>
66859
66860         * modules/sha1: Depend on stdint instead of md5.
66861
66862         * modules/md5: Depend on stdint, remove uint32_t.
66863
66864 2005-10-17  Simon Josefsson  <jas@extundo.com>
66865
66866         * modules/gc-sha1-tests: New file.
66867
66868         * tests/test-gc-sha1.c: New file.
66869
66870 2005-10-17  Simon Josefsson  <jas@extundo.com>
66871
66872         * m4/md5.m4: Remove call to uint32_t.m4.
66873
66874 2005-10-17  Simon Josefsson  <jas@extundo.com>
66875
66876         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66877
66878         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66879         md5.h.
66880
66881         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66882
66883         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66884
66885 2005-10-17  Simon Josefsson  <jas@extundo.com>
66886
66887         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66888
66889 2005-10-17  Simon Josefsson  <jas@extundo.com>
66890
66891         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66892
66893 2005-10-17  Simon Josefsson  <jas@extundo.com>
66894
66895         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66896
66897         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66898
66899 2005-10-17  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66902         that it can also be used in a test.
66903
66904 2005-10-16  Bruno Haible  <bruno@clisp.org>
66905
66906         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66907         TESTS_ENVIRONMENT, so that individual tests can augment it.
66908
66909         * gnulib-tool (func_create_testdir): Use an intermediate target for
66910         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66911         macros, like $(ALLOCA_H), which cannot be passed through the command
66912         line.
66913
66914 2005-10-15  Simon Josefsson  <jas@extundo.com>
66915
66916         * modules/rijndael-tests: New file.
66917
66918         * modules/rijndael: New file.
66919
66920 2005-10-15  Simon Josefsson  <jas@extundo.com>
66921
66922         * m4/rijndael.m4: New file.
66923
66924 2005-10-15  Simon Josefsson  <jas@extundo.com>
66925
66926         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66927
66928         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66929
66930 2005-10-14  Simon Josefsson  <jas@extundo.com>
66931
66932         * tests/test-arcfour.c: New file.
66933
66934         * modules/arcfour, modules/arcfour-tests: New files.
66935
66936 2005-10-14  Simon Josefsson  <jas@extundo.com>
66937
66938         * m4/arcfour.m4: New file.
66939
66940 2005-10-14  Simon Josefsson  <jas@extundo.com>
66941
66942         * lib/arcfour.h, lib/arcfour.c: New files.
66943
66944 2005-10-14  Roland McGrath  <roland@redhat.com>
66945
66946         Import from libc.  [BZ #1331]
66947         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66948         macro argument.
66949         Reported by Matej Vela <vela@debian.org>.
66950
66951 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66952
66953         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66954         include <wchar.h>; no longer needed.
66955
66956 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66957
66958         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66959
66960 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66961         and  Ulrich Drepper  <drepper@redhat.com>
66962
66963         Import from libc.
66964         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66965         instead of inline stream orientation test and two separate
66966         function calls.  Pay no attention to USE_IN_LIBIO.
66967
66968 2005-10-13  Simon Josefsson  <jas@extundo.com>
66969
66970         * modules/gc-hmac-md5-tests: New file.
66971
66972         * tests/test-gc-hmac-sha1.c: New file.
66973
66974         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66975
66976         * modules/gc-hmac-md5-tests: New file.
66977
66978         * tests/test-gc-md5.c: New file.
66979
66980         * modules/gc-md5-tests: New file.
66981
66982 2005-10-13  Simon Josefsson  <jas@extundo.com>
66983
66984         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66985         Move memory allocation outside of loop.
66986
66987 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66988
66989         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66990         intermediate directory is in a read-only file system.  Problem
66991         reported by Eric Blake.
66992
66993 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66994
66995         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66996
66997 2005-10-12  Simon Josefsson  <jas@extundo.com>
66998
66999         * tests/test-hmac-sha1.c: New file.
67000
67001         * modules/hmac-sha1-tests: New file.
67002
67003         * modules/hmac-sha1: New file.
67004
67005 2005-10-12  Simon Josefsson  <jas@extundo.com>
67006
67007         * modules/gc-sha1: New file.
67008
67009 2005-10-12  Simon Josefsson  <jas@extundo.com>
67010
67011         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
67012
67013         * tests/test-gc-pbkdf2-sha1.c: New file.
67014
67015 2005-10-12  Simon Josefsson  <jas@extundo.com>
67016
67017         * modules/gc-md5, modules/gc-hmac-md5: New files.
67018
67019         * modules/gc (Files): Remove md5, memxor and hmac files.
67020
67021 2005-10-12  Simon Josefsson  <jas@extundo.com>
67022
67023         * m4/gc-pbkdf2-sha1.m4: New file.
67024
67025         * m4/gc-hmac-sha1.m4: New file.
67026
67027         * m4/gc-sha1: New file.
67028
67029         * m4/hmac-sha1.m4: New file.
67030
67031 2005-10-12  Simon Josefsson  <jas@extundo.com>
67032
67033         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
67034
67035         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
67036
67037 2005-10-12  Simon Josefsson  <jas@extundo.com>
67038
67039         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
67040         suggested by Bruno Haible <bruno@clisp.org>.
67041
67042 2005-10-12  Simon Josefsson  <jas@extundo.com>
67043
67044         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
67045
67046 2005-10-12  Simon Josefsson  <jas@extundo.com>
67047
67048         * lib/gc-pbkdf2-sha1.c: New file.
67049
67050         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
67051
67052 2005-10-12  Simon Josefsson  <jas@extundo.com>
67053
67054         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
67055
67056         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
67057
67058 2005-10-12  Simon Josefsson  <jas@extundo.com>
67059
67060         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
67061         GC_USE_HMAC_MD5, respectively.
67062
67063         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
67064         (gc_md5): Fix typo.
67065
67066         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
67067
67068         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
67069
67070         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
67071
67072 2005-10-12  Bruno Haible  <bruno@clisp.org>
67073
67074         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
67075         Reported by Stepan Kasal <kasal@ucw.cz>.
67076
67077 2005-10-11  Simon Josefsson  <jas@extundo.com>
67078
67079         * tests/test-crc.c: New file.
67080
67081         * modules/crc, modules/crc-tests: New files.
67082
67083 2005-10-11  Simon Josefsson  <jas@extundo.com>
67084
67085         * m4/crc.m4: New file.
67086
67087 2005-10-11  Simon Josefsson  <jas@extundo.com>
67088
67089         * lib/gc.h: Add gc_hash and gc_hash_buffer.
67090
67091         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
67092
67093         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
67094
67095 2005-10-11  Simon Josefsson  <jas@extundo.com>
67096
67097         * lib/crc.h, lib/crc.c: New files.
67098
67099         * lib/gc.h (gc_hash_buffer): Add doc.
67100
67101 2005-10-11  Bruno Haible  <bruno@clisp.org>
67102
67103         * modules/c-strcasestr: New file.
67104         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
67105
67106 2005-10-11  Bruno Haible  <bruno@clisp.org>
67107
67108         * modules/c-strcase: New file.
67109         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
67110
67111 2005-10-11  Bruno Haible  <bruno@clisp.org>
67112
67113         * lib/strcasecmp.c: Include limits.h.
67114         (strcasecmp): Avoid integer overflow on exotic platforms.
67115         * lib/strncasecmp.c: Include limits.h.
67116         (strncasecmp): Avoid integer overflow on exotic platforms.
67117         Reported by Paul Eggert.
67118
67119 2005-10-11  Bruno Haible  <bruno@clisp.org>
67120
67121         * lib/c-strcasestr.h: New file, from GNU gettext.
67122         * lib/c-strcasestr.c: New file, from GNU gettext.
67123
67124 2005-10-11  Bruno Haible  <bruno@clisp.org>
67125
67126         * lib/c-strcase.h: New file, from GNU gettext.
67127         * lib/c-strcasecmp.c: New file, from GNU gettext.
67128         * lib/c-strncasecmp.c: New file, from GNU gettext.
67129
67130 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67131
67132         * modules/mempcpy (License): GPL -> LGPL.
67133         * modules/strchrnul (License): Likewise.
67134         * modules/sysexits (License): Likewise.
67135
67136 2005-10-08  Simon Josefsson  <jas@extundo.com>
67137
67138         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
67139
67140 2005-10-07  Simon Josefsson  <jas@extundo.com>
67141
67142         * m4/memxor.m4: Remove gl_C_RESTRICT call.
67143
67144 2005-10-06  Simon Josefsson  <jas@extundo.com>
67145
67146         * tests/test-hmac-md5.c: New file.
67147
67148         * modules/hmac-md5-tests: New file.
67149
67150         * modules/hmac-md5: New file.
67151
67152 2005-10-06  Simon Josefsson  <jas@extundo.com>
67153
67154         * m4/hmac-md5.m4: New file.
67155
67156         * m4/memxor.m4: Require gl_C_RESTRICT.
67157
67158 2005-10-06  Simon Josefsson  <jas@extundo.com>
67159
67160         * lib/memxor.c (memxor): Avoid casts and warnings.
67161
67162 2005-10-06  Simon Josefsson  <jas@extundo.com>
67163
67164         * lib/hmac-md5.c: New file.
67165
67166         * lib/hmac.h: New file.
67167
67168 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67169
67170         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
67171         promotes to int, not unsigned int, to catch the AIX 5.3
67172         compiler bug.
67173
67174 2005-10-05  Simon Josefsson  <jas@extundo.com>
67175
67176         * modules/memxor: New file.
67177
67178         * modules/iconv (Files): Move config.rpath to havelib, it is used
67179         there.
67180
67181         * modules/havelib (Files): Add config.rpath.
67182
67183 2005-10-05  Simon Josefsson  <jas@extundo.com>
67184
67185         * m4/memxor.m4: New file.
67186
67187 2005-10-05  Simon Josefsson  <jas@extundo.com>
67188
67189         * lib/memxor.c (memxor): Fix compiler error.
67190
67191         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
67192         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
67193
67194         * lib/memxor.h, lib/memxor.c: New files.
67195
67196         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
67197         we assume all systems have it, suggested by Jim Meyering
67198         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
67199         any systems lack sys/socket.h; mingw32 is known to lack it, but we
67200         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
67201         same reasons.
67202
67203 2005-10-05  Simon Josefsson  <jas@extundo.com>
67204
67205         * config/srclist.txt: Add glibc bug 1423 for md5.h.
67206
67207 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
67210         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
67211         needed, since the source code now assumes these .h files.
67212
67213 2005-10-05  Derek Price  <derek@ximbiot.com>
67214
67215         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
67216
67217 2005-10-05  Bruno Haible  <bruno@clisp.org>
67218
67219         * modules/stdint (License): Change to LGPL.
67220
67221 2005-10-04  Simon Josefsson  <jas@extundo.com>
67222
67223         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
67224         D. Baushke" <mdb@gnu.org>.
67225
67226 2005-10-04  Bruno Haible  <bruno@clisp.org>
67227
67228         * lib/verify.h (verify_true): Provide alternative definition for C++.
67229
67230 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
67231
67232         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
67233         (SSIZE_MAX): New macro, if not already defined.
67234         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
67235         than 2 GiB.
67236
67237 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67238
67239         Sync from coreutils.
67240         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
67241         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
67242         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
67243         ULLONG_MAX doesn't work with 2.7.2.1.
67244
67245 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67246
67247         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
67248         From Ben Pfaff.
67249
67250         * modules/exclude (Depends-on): Depend on verify.
67251         * modules/strtoimax (Depends-on): Likewise.
67252         * modules/utimecmp (Depends-on): Likewise.
67253
67254 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67255
67256         * lib/exclude.c: Include verify.h.
67257         (verify): Remove.  All callers changed to use verify.h's version.
67258         * lib/strtoimax.c: Likewise.
67259         * lib/utimecmp.c: Likewis.e
67260
67261         Sync from coreutils.
67262         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
67263         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
67264         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
67265         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
67266         bother returning ENOSYS if settimeofday or stime fails; just let
67267         them return whatever errno they want to return.
67268         * lib/utimens.c: Include unistd.h, for dup2.
67269         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
67270         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
67271
67272 2005-10-02  Jim Meyering  <jim@meyering.net>
67273
67274         Sync from coreutils.
67275         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
67276         from glibc-2.2.5 that fails for read-only files.
67277
67278 2005-10-02  Jim Meyering  <jim@meyering.net>
67279
67280         Sync from coreutils.
67281         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
67282         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
67283         `#if HAVE_CONFIG_H'.
67284         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
67285         Remove AT_FDCWD test.
67286         Do not consume the fd unless successful.
67287         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
67288         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
67289         block, so that we don't even try to compile it if settimeofday is
67290         available.  This works around a compilation failure on OSF1 V5.1,
67291         due to stime requiring a `long int*' while tv_sec is `int'.
67292
67293 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
67294
67295         Sync from coreutils.
67296         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
67297         against `yes', rather than just testing for nonempty.
67298
67299 2005-10-01  Simon Josefsson  <jas@extundo.com>
67300
67301         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
67302         and Darwin.
67303
67304         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
67305         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
67306         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
67307         freeaddrinfo and gai_strerror are declared by the POSIX headers.
67308         Check if struct addrinfo is declared.
67309
67310 2005-10-01  Simon Josefsson  <jas@extundo.com>
67311
67312         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
67313         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
67314         AI_* and EAI_* definitions.  Protect function declarations.
67315
67316 2005-10-01  Jim Meyering  <jim@meyering.net>
67317
67318         Sync from coreutils.
67319
67320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
67321         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
67322         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
67323         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67324         in the inet and nsl libraries.  Required on Solaris 5.7.
67325
67326 2005-10-01  Jim Meyering  <jim@meyering.net>
67327
67328         Sync from coreutils.
67329         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67330         in the inet and nsl libraries.  Required on Solaris 5.7.
67331
67332 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
67333
67334         * lib/getdelim.c (getdelim): Remove unused variables.
67335
67336 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
67339         so that the code works even with ancient cpp.  Portability problem
67340         with GCC 2.7.2.1 reported by Thomas M.Ott.
67341
67342 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67343
67344         * modules/regex (Depends-on): Add strcase.
67345
67346         * modules/gethostname (Licence): Change from GPL to LGPL, since
67347         gethostname.c is a trivial implementation of a standard library
67348         function.
67349         * modules/poll (License): Change from GPL to LGPL, since it's
67350         derived from LGPL code.
67351
67352 2005-09-27  Jim Meyering  <jim@meyering.net>
67353
67354         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
67355         HAVE_CONFIG_H.
67356
67357         * lib/intprops.h (signed_type_or_expr__): Define.
67358         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
67359         for unsigned types.
67360
67361 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67362
67363         * lib/verify.h (verify_expr): Remove, replacing with:
67364         (verify_true): New macro that returns true instead of void.
67365         (verify_type__): Remove.
67366         (verify): Use verify_true rather than verify_type__.
67367
67368 2005-09-26  Bruno Haible  <bruno@clisp.org>
67369
67370         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
67371         is necessary.
67372         (lib_SOURCES): Remove mbchar.c.
67373         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
67374         (Files): Add m4/mbrtowc.m4.
67375         * modules/mbiter: Likewise.
67376         * modules/mbuiter: Likewise.
67377
67378 2005-09-26  Bruno Haible  <bruno@clisp.org>
67379
67380         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
67381         compile mbchar.c if they are not both present.
67382         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
67383         * m4/mbiter.m4 (gl_MBITER): Likewise.
67384         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
67385         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
67386         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
67387
67388 2005-09-25  Jim Meyering  <jim@meyering.net>
67389
67390         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
67391         also uses socklen_t.
67392
67393 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         * lib/utimens.c (ENOSYS): Define if not already defined.
67396         (futimens): Support having a null PATH if the file descriptor
67397         is nonnegative.
67398
67399         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
67400         Remove.
67401         (__attribute): Define to empty unless GCC 3.1 or later.
67402         This works around a core dump on OpenBSD 3.4, which has GCC
67403         2.95.3, which dumps core when given __attribute__(()).  It also
67404         simplifies other tests, since we really don't want to bother with
67405         worrying about which ancient version of GCC supported what.
67406         Original problem reported by Yoann Vandoorselaere, with part of
67407         the fix suggested by Derek Price.
67408
67409 2005-09-24  Jim Meyering  <jim@meyering.net>
67410
67411         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67412         so we can once again use a positive bitfield width of 1 -- now we
67413         don't have to explain why we were using a bitfield width of 2.
67414
67415 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67416
67417         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67418         and similarly for the other external symbols.  Problem reported
67419         by James Gallager.
67420
67421         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67422         bug reported by Jim Meyering.
67423
67424         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67425         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67426         not needed, since socklen is a prerequisite module.
67427
67428 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67429
67430         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67431         Problem reported by Eric Blake.
67432         (getaddrinfo): Initialize se so that it's not garbage.
67433         Redo internal storage allocation so that it doesn't make unportable
67434         assumptions about alignment.
67435         Fix a memory leak.
67436
67437         * lib/utimens.c (futimens): Use futimesat if available.
67438         Prefer it to futimes since it doesn't have the futimes bug.
67439
67440         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67441         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67442         Instead, declare a function that returns a pointer to an array,
67443         and use verify_type__ to declare the size of the array.
67444         Problem and germ of a solution reported by Bruno Haible.
67445         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67446         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67447
67448 2005-09-23  Jim Meyering  <jim@meyering.net>
67449
67450         Sync from coreutils.
67451         Correct build failure (socklen_t not defined) on at least
67452         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67453         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67454
67455 2005-09-23  Jim Meyering  <jim@meyering.net>
67456
67457         * modules/getaddrinfo (Depends-on): Add socklen.
67458
67459 2005-09-23  Bruno Haible  <bruno@clisp.org>
67460
67461         * tests/test-verify.c: New file.
67462
67463 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67464
67465         Sync from coreutils.
67466
67467         * modules/argmatch (Depends-on): Add verify.
67468         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67469         unistd-safer.
67470         * modules/save-cwd (Depends-on): Likewise.
67471
67472         * modules/openat (Files): Add lib/openat-die.c.
67473         (Depends-on): Remove error, exitfail.
67474         Add dirname.
67475
67476         * modules/verify: New file.
67477         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67478         with "verify" module.
67479
67480 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67481
67482         Sync from coreutils.
67483
67484         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67485         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67486         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67487         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67488         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67489         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67490         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67491         Don't bother checking for string.h, stdlib.h, unistd.h.
67492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67493         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67494         module's job.
67495         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67496         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67497
67498         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67499         (gl_GETDATE): Use it.
67500
67501         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67502
67503 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67504
67505         Sync from coreutils.
67506
67507         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67508         stat-time.h.
67509         * lib/argmatch.h: Include verify.h
67510         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67511         (ARGMATCH_ASSERT): Remove; unused.
67512         * lib/canonicalize.c: Assume STDC_HEADERS.
67513         * lib/exclude.c: Include "strcase.h".
67514         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67515         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67516         and stdio-safer.h.
67517         (getusershell): Call fopen, not fopen_safer.
67518         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67519         Do not include unistd-safer.h.
67520         (save_cwd): Don't call fd_safer; no longer needed
67521         now that we include fcntl--.h.
67522
67523         * lib/getdate.y (relative_time): New type.
67524         (RELATIVE_TIME_0): New constant.
67525         (parser_control): Use relative_time instead of doing it ourselves.
67526         (%union): Add new relative_time rel member.
67527         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67528         Now typeless.
67529         (relunit, relunit_snumber): Now of type rel.
67530         (zone, rel, relunit, get_date): Adjust to above changes.
67531
67532         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67533         Do not include unistd-safer.h.
67534         (getloadavg): Don't call fd_safer; no longer needed
67535         now that we include fcntl--.h.
67536
67537         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67538         (make_dir_parents): Treat ENOSYS like EEXIST.
67539
67540         Improve quality of diagnostics on restore_cwd failure.
67541         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67542         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67543         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67544         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67545         each time through the loop.  Do not diagnose restore_cwd failure;
67546         that is the caller's job (and perhaps the caller does not care).
67547
67548         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67549         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67550         If the file already exists but is not a directory, don't bother
67551         to try to make its parents.
67552         Close potential file descriptor leak if we can't chdir("/") (!).
67553         Don't always return true if chdir($PWD) fails; return true only
67554         if the requested action was done successfully (except for the
67555         chdir($PWD)).
67556         Don't log final directory unless we actually made it.
67557         Refactor to avoid duplicate code to fix up permissions.
67558         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67559
67560         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67561         to make it a bit faster and (I hope) clearer.
67562         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67563         Fix bug in formats like %2N.
67564
67565         * lib/verify.h: New file.
67566
67567 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         Sync from coreutils.
67570         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67571
67572 2005-09-22  Jim Meyering  <jim@meyering.net>
67573
67574         Sync from coreutils.
67575
67576         * m4/lstat.m4 (gl_FUNC_LSTAT):
67577         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67578         Remove obsolete comment.
67579         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67580         * m4/xstrtod.m4: Likewise.
67581
67582         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67583
67584 2005-09-22  Jim Meyering  <jim@meyering.net>
67585
67586         Sync from coreutils.
67587
67588         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67589
67590         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67591         the .tm_year member, since otherwise gcc-4.0 would now warn about
67592         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67593
67594         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67595         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67596
67597         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67598         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67599         when run in a time zone for which daylight savings time is in effect
67600         for the starting date.
67601
67602         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67603         stop us from restricting permissions of just-created absolute-named
67604         directories.
67605         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67606         to restore initial working directory.
67607         * lib/mkdir-p.c (make_dir_parents): New parameter:
67608         different_working_dir, to tell caller if/when we change the working
67609         directory and are unable to return to the initial one.
67610         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67611         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67612         `return false'.  This fixes a bug introduced on 2004-07-30.
67613
67614         * lib/openat.c (fdopendir): Be sure to close the supplied
67615         file descriptor before returning.  This makes our replacement
67616         implementation a little closer to Solaris's, where fdopendir
67617         ties the file descriptor to the returned DIR* pointer.
67618         * lib/openat.c (unlinkat): New function.
67619         * lib/openat.h (unlinkat): Add prototype.
67620         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67621         (openat_restore_fail): Rename from openat_restore_die.
67622         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67623
67624         Provide an alternative to exiting immediately upon save_cwd or
67625         restore_cwd failure.  Now, an application can arrange e.g.,
67626         to perform a longjump in that case.
67627         * lib/openat.c: Include dirname.h.
67628         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67629         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67630         and openat_restore_die rather than calling error directly.
67631         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67632
67633         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67634         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67635         define.
67636
67637         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67638         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67639                             int utc, int nanoseconds);
67640         Background:
67641         date should not have to allocate a megabyte of virtual memory to
67642         handle a format argument like +%1048575T.  When implemented with
67643         strftime, it must allocate such a buffer, use strftime to fill it
67644         in, print it, then free it.
67645         With fprintftime, it simply prints everything and exits.
67646         With no need for memory allocation, that's one fewer way to fail.
67647         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67648         optional field width, not before, so we accept %9:z, not %:9z.
67649         (my_strftime): Be sure to use L_('x') for literals.
67650
67651         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67652         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67653         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67654         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67655         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67656         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67657         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67658         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67659         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67660         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67661         * lib/xgethostname.c, lib/xreadlink.c:
67662         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67663
67664         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67665         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67666         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67667         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67668         and don't include <sys/file.h>).
67669
67670 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67671
67672         Sync from coreutils.
67673
67674         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67675         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67676         [!LDAV_DONE]: Avoid unused variable warning.
67677
67678 2005-09-21  Bruno Haible  <bruno@clisp.org>
67679
67680         * lib/unicodeio.h (unicode_to_mb): New declaration.
67681
67682 2005-09-20  Derek Price  <derek@ximbiot.com>
67683
67684         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67685         getaddrinfo.h.
67686
67687 2005-09-20  Bruno Haible  <bruno@clisp.org>
67688
67689         * gnulib-tool: Remove trailing slashes from the values specified for
67690         --source-base, --m4-base, --tests-base, --aux-dir.
67691         Suggested by Simon Josefsson <jas@extundo.com>.
67692
67693 2005-09-20  Bruno Haible  <bruno@clisp.org>
67694
67695         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67696         func_modules_to_filelist, func_import, func_create_testdir): Make all
67697         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67698         change when gnulib-tool is invoked in a different locale.
67699
67700 2005-09-19  Simon Josefsson  <jas@extundo.com>
67701
67702         * m4/socklen.m4: Fix typo.
67703
67704 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67705
67706         Use a consistent style for including <config.h>.
67707         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67708         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67709         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67710         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67711         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67712         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67713         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67714         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67715         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67716         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67717         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67718         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67719         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67720         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67721         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67722         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67723         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67724         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67725         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67726         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67727         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67728         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67729         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67730         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67731         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67732         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67733         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67734         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67735         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67736         lib/xstrtoumax.c, lib/yesno.c:
67737         Standardize inclusion of config.h.
67738         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67739         lib/inttostr.h:  Removed inclusion of config.h from header files.
67740         * lib/inttostr.c:  Adjusted in-tree users.
67741         * lib/timespec.h: Remove superfluous warning to include config.h.
67742         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67743         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67744         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67745         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67746         config.h with HAVE_CONFIG_H.
67747
67748 2005-09-19  Jim Meyering  <jim@meyering.net>
67749
67750         * modules/pathmax (License): Change to LGPL.
67751
67752 2005-09-19  Derek Price  <derek@ximbiot.com>
67753
67754         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67755
67756 2005-09-19  Bruno Haible  <bruno@clisp.org>
67757
67758         * gnulib-tool (import): Provide default for --tests-base.
67759
67760 2005-09-19  Bruno Haible  <bruno@clisp.org>
67761
67762         * doc/quote.texi: New file, extracted from gnulib.texi.
67763         * doc/ctime.texi: New file, extracted from gnulib.texi.
67764         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67765         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67766         * doc/gnulib.texi: Include them.
67767
67768 2005-09-18  Bruno Haible  <bruno@clisp.org>
67769
67770         Portability fix.
67771         * gnulib-tool (func_readlink): New function.
67772         (func_ln_if_changed): Use it.
67773
67774 2005-09-18  Bruno Haible  <bruno@clisp.org>
67775
67776         * gnulib-tool: Support --with-tests also with --import.
67777         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67778         (func_import): Use variables $testsbase and $inctests. Emit a
67779         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67780         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67781         SUBDIRS += $testsdir.
67782         (func_create_testdir): Update.
67783
67784 2005-09-18  Bruno Haible  <bruno@clisp.org>
67785
67786         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67787         instead of $dry_run.
67788         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67789         (func_ln_if_changed): Don't handle dry-run here.
67790         (func_import): In dry-run mode, detect more precisely which actions
67791         would be performed, and don't use "...ing" verbs.
67792
67793 2005-09-18  Bruno Haible  <bruno@clisp.org>
67794
67795         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67796         (func_import): Use join on two temporary files instead of three nested
67797         loops, in order to determine which files are new or old.
67798
67799 2005-09-18  Bruno Haible  <bruno@clisp.org>
67800
67801         * gnulib-tool (func_import): Comment out code that spits out the
67802         new files with --dry-run.
67803
67804 2005-09-18  Bruno Haible  <bruno@clisp.org>
67805
67806         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67807
67808 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67809
67810         * lib/stat-time.h: New file.
67811         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67812         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67813         in a different way.
67814         (timespec_cmp): New function.
67815         * lib/utimecmp.c: Include stat-time.h.
67816         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67817         members exist, not on the obsolescent ST_MTIM_NSEC.
67818         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67819
67820 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67823
67824 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67825
67826         * MODULES.html.sh (File system functions): Add stat-time.
67827         * modules/stat-time: New file.
67828         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67829         is now done in a different way, by the stat-time module.
67830         * modules/utimecmp (Depends-on): Add stat-time.
67831
67832 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67833
67834         * m4/st_mtim.m4: Remove.  Superseded by...
67835         * m4/stat-time.m4: New file.
67836         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67837         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67838
67839 2005-09-15  Derek Price  <derek@ximbiot.com>
67840
67841         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67842
67843 2005-09-15  Derek Price  <derek@ximbiot.com>
67844
67845         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67846         * lib/regex_internal.c: Ditto, using this...
67847         (__GNUC_PREREQ): ...new macro.
67848         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67849         using...
67850         (__GNUC_PREREQ): ...this new macro.
67851
67852         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67853
67854 2005-09-15  Derek Price  <derek@ximbiot.com>
67855             Paul Eggert  <eggert@cs.ucla.edu>
67856
67857         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67858         changes, consolidating in...
67859         * lib/regex_internal.h: ...this file.
67860
67861 2005-09-13  Jim Meyering  <jim@meyering.net>
67862
67863         * lib/canon-host.c: Filter through gnu indent and reword comments
67864         slightly.
67865         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67866
67867 2005-09-13  Derek Price  <derek@ximbiot.com>
67868
67869         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67870         failure.
67871         Reported by Jim Meyering  <jim@meyering.net>.
67872
67873 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67874
67875         * lib/base64.c: Typo.
67876         (base64_encode): Put b64str in initialized data section.
67877
67878 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67879
67880         Merge glibc and coreutils changes into gnulib, plus a few
67881         extra fixes.
67882         * lib/md5.c: Use #error rather than a string.
67883         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67884         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67885         (__attribute__): Define to empty for non recent-GCC.
67886         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67887         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67888         Renamed from their non-__ counterparts, with new macros replacing
67889         them if not _LIBC.  Add __THROW attribute.
67890         (rol): Remove.
67891         (struct md5_ctx): Align buffer if using GCC.
67892         * lib/sha1.h (struct sha1_ctx): Likewise.
67893         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67894         The old name was backwards.
67895         (NOTSWAP): Remove; not used.
67896         (rol): New macro, moved here from md5.h.
67897         (sha1_process_block): Remove a FIXME that doesn't make sense.
67898
67899 2005-09-12  Derek Price  <derek@ximbiot.com>
67900
67901         Return usable errors from canon-host.
67902         * lib/canon-host.h: New file.
67903         * lib/canon-host.c (canon_host): Wrap...
67904         (canon_host_r): ...this new function, which now relies exclusively on
67905         getaddrinfo.
67906         (ch_strerror): New function.
67907         (last_cherror): New global.
67908         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67909         interface.
67910         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67911         void *.
67912         (freeaddrinfo): Free ai->ai_canonname when set.
67913
67914 2005-09-12  Derek Price  <derek@ximbiot.com>
67915
67916         Make canon-host require getaddrinfo.
67917         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67918         AC_LIBSOURCE canon-host.h.  Call...
67919         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67920         gl_GETADDRINFO.
67921         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67922
67923 2005-09-12  Derek Price  <derek@ximbiot.com>
67924
67925         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67926         LGPL.
67927         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67928
67929 2005-09-12  Derek Price  <derek@ximbiot.com>
67930
67931         * lib/gai_strerror.c: Include config.h when available.  Include
67932         getaddrinfo.h before other headers to test interface.
67933         Reported by Larry Jones <lawrence.jones@ugs.com>.
67934
67935 2005-09-12  Derek Price  <derek@ximbiot.com>
67936             Paul Eggert  <eggert@cs.ucla.edu>
67937
67938         * modules/glob (Files): Add glob-libc.h.
67939
67940 2005-09-12  Derek Price  <derek@ximbiot.com>
67941             Paul Eggert  <eggert@cs.ucla.edu>
67942
67943         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67944         glob_.h, glob-libc.h.
67945         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67946
67947 2005-09-12  Derek Price  <derek@ximbiot.com>
67948             Paul Eggert  <eggert@cs.ucla.edu>
67949
67950         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67951         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67952         protecting things that should be done only in gnulib contexts.
67953         * lib/glob_.h: New file, containing only the glob things needed for
67954         gnulib.
67955         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67956         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67957         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67958         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67959         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67960         and to respect the namespace rules better.
67961
67962 2005-09-08  Simon Josefsson  <jas@extundo.com>
67963
67964         * modules/socklen: New file.
67965
67966 2005-09-08  Simon Josefsson  <jas@extundo.com>
67967
67968         * m4/socklen.m4: New file.
67969
67970 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         * modules/utimens (Files): Add m4/utimbuf.m4, since
67973         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67974         Reported by Sergey Poznyakoff.
67975
67976 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67977
67978         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67979         definitions, since that's the preferred style in glibc.
67980         Fix a minor spacing issue, and update copyright notice to match
67981         glibc's.
67982
67983 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67984
67985         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67986
67987 2005-09-06  Simon Josefsson  <jas@extundo.com>
67988
67989         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67990         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67991
67992 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67993
67994         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67995         warning.
67996
67997 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67998
67999         * config/srclist.txt: Add glibc bug 1302.
68000
68001 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         Change bitset word type from unsigned int to unsigned long int,
68004         as this has better performance on typical 64-bit hosts.
68005         Port bitset code to hosts with unusual word sizes.
68006         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
68007         (build_collating_symbol):
68008         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
68009         argument is a bitset.  This is merely a style issue, but it makes
68010         it clearer that an entire array is expected.
68011         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
68012         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
68013         Port to the case where bitset_word is not the same as unsigned int.
68014         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68015         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
68016         Likewise.
68017         * lib/regexec.c (check_dst_limits_calc_pos_1,
68018         check_subexp_matching_top):
68019         (build_trtable, group_nodes_into_DFAstates):
68020         Likewise.
68021         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
68022         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
68023         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
68024         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
68025         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
68026         * lib/regcomp.c (optimize_subexps, lower_subexp):
68027         Work even if bitset_word has holes in its bitwise representation.
68028         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
68029         * lib/regexec.c (check_dst_limits_calc_pos_1,
68030         check_subexp_matching_top):
68031         Likewise.
68032         * lib/regex_internal.c (re_string_reconstruct):
68033         Don't assume UCHAR_MAX == 255.
68034         * lib/regex_internal.h (bitset_set_all): Likewise.
68035         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
68036         All uses changed.
68037         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
68038         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
68039         All uses changed.
68040         (BITSET_WORD_MAX): New macro.
68041         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
68042         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
68043         (bitset_empty, bitset_copy):
68044         Prefer sizeof (bitset) to multiplying it out ourselves.
68045         (bitset_not_merge): Remove; unused.
68046         (bitset_contain): Return bool, not unsigned int with one bit on.
68047         All callers changed.
68048         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
68049         alignment than re_node_set; do this by defining a new internal
68050         type struct dests_alloc and using it to allocate memory.
68051
68052 2005-09-05  Bruno Haible  <bruno@clisp.org>
68053
68054         * gnulib-tool (func_import): Fix comparison in handling of symbolic
68055         links.
68056
68057 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
68058
68059         * modules/size_max (Makefile.am): Add size_max.h
68060
68061 2005-09-04  Derek Price  <derek@ximbiot.com>
68062
68063         * gnulib-tool (func_import): Fix reversed $symbolic logic.
68064
68065 2005-09-03  Simon Josefsson  <jas@extundo.com>
68066
68067         * gnulib-tool: Fix typo.
68068
68069 2005-09-03  Simon Josefsson  <jas@extundo.com>
68070
68071         * config/srclist.txt: Add glibc bug 1293.
68072
68073 2005-09-03  Derek Price  <derek@ximbiot.com>
68074
68075         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
68076         From Larry Jones <lawrence.jones@ugs.com>.
68077
68078 2005-09-02  Simon Josefsson  <jas@extundo.com>
68079
68080         * modules/socklen: New file.
68081
68082 2005-09-02  Simon Josefsson  <jas@extundo.com>
68083
68084         * modules/havelib: New module.
68085
68086         * modules/gettext, modules/iconv, modules/lock, modules/readline:
68087         Use havelib.
68088
68089 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68090
68091         Check for arithmetic overflow when calculating sizes, to prevent
68092         some buffer-overflow issues.  These patches are conservative, in the
68093         sense that when I couldn't determine whether an overflow was possible,
68094         I inserted a run-time check.
68095         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
68096         macros.
68097         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
68098         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
68099         (re_xnrealloc, re_x2nrealloc): New inline functions.
68100         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
68101         parse_bracket_exp):
68102         (build_equiv_class, build_charclass): Check for arithmetic overflow
68103         in size expression calculations.
68104         * lib/regex_internal.c (re_string_realloc_buffers):
68105         (build_wcs_upper_buffer, re_node_set_add_intersect):
68106         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
68107         (re_dfa_add_node, register_state): Likewise.
68108         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
68109         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
68110         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
68111         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
68112
68113 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68114
68115         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68116         m4/ulonglong.m4.  Problem reported by Martin Lambers.
68117
68118 2005-09-02  Bruno Haible  <bruno@clisp.org>
68119
68120         Support for lib vs. lib64 distinction on biarch platforms.
68121         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
68122         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
68123         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
68124
68125 2005-09-02  Bruno Haible  <bruno@clisp.org>
68126
68127         * gnulib-tool (import): In the other first-use case, provide defaults
68128         as well.
68129
68130 2005-09-02  Bruno Haible  <bruno@clisp.org>
68131
68132         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
68133         patches not yet found in the latest gettext release.
68134
68135 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
68138         to avoid a collision with bits/local_lim.h in glibc.
68139         All uses changed.  Problem reported by Dmitry V. Levin in
68140         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
68141
68142         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
68143         bugs in int versus size_t comparisons.
68144         (re_string_context_at): Fix bug where the code assumed that
68145         Idx is signed.
68146
68147         Use bool where appropriate.
68148         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
68149         All callers changed.
68150         (calc_eclosure_iter): Likewise, for ROOT arg.
68151         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
68152         (build_charclass_op): Likewise, for NON_MATCH arg.
68153         * lib/regex_internal.c (re_string_allocate, re_string_construct):
68154         (re_string_construct_common): Likewise, for ICASE arg.
68155         * lib/regexec.c (re_search_2_stub, re_search_stub):
68156         Likewise, for RET_LEN arg.
68157         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
68158         (set_regs): Likewise, for FL_BACKTRACK arg.
68159         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
68160         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
68161         (calc_eclosure_iter, parse_bracket_exp):
68162         Use bool for internal variables that are booleans.
68163         * lib/regexec.c (re_search_internal, check_matching,
68164         proceed_next_node):
68165         (set_regs, build_sifted_states, sift_states_bkref):
68166         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
68167         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68168         (find_collation_sequence_value):
68169         Likewise.
68170         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
68171         (re_node_set_compare):
68172         Return bool, not int. All callers changed.
68173         * lib/regexec.c (check_halt_node_context, check_dst_limits):
68174         (build_trtable, check_node_accept): Likewise.
68175         * lib/regex_internal.h: Include stdbool.h.
68176
68177         Fix bugs uncovered when converting to bool.
68178         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
68179         failure instead of charging ahead blindly.
68180         * lib/regex_internal.c (register_state): Likewise.
68181         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
68182         for freeing internal storage.
68183         (group_nodes_into_DFA_states): Use unsigned int, not int, for
68184         bitset pieces used as boolean, to avoid undefined behavior
68185         on hosts that do int overflow checking.
68186
68187 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68188
68189         * config/srclist.txt: Add glibc bugs 1285-1287.
68190
68191 2005-09-01  Jim Meyering  <jim@meyering.net>
68192
68193         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
68194         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
68195         Require gl_STAT_MACROS, too.
68196
68197 2005-09-01  Bruno Haible  <bruno@clisp.org>
68198
68199         * gnulib-tool (import): In the first-use case, provide defaults.
68200
68201 2005-09-01  Bruno Haible  <bruno@clisp.org>
68202
68203         * gnulib-tool (func_import): Remove the .tmp files.
68204
68205 2005-09-01  Bruno Haible  <bruno@clisp.org>
68206
68207         * gnulib-tool (func_import): Fix handling of symbolic links.
68208
68209 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68210
68211         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
68212         old glibc regex code mishandles strings longer than 2**31 bytes.
68213         This patch fixes this when the regex code is used in gnulib
68214         (i.e., outside glibc).
68215
68216         This patch should not affect the use of the regex code inside
68217         glibc.  No doubt this problem also needs to be handled for glibc
68218         as well, but the result will be an incompatible change to the
68219         glibc ABI, and the old ABI will have to be supported too.  That
68220         can be the the subject for another patch.
68221
68222         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
68223         governing whether the rest of this patch is active.  By default,
68224         the macro is disabled and the patch has no effect.
68225         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
68226         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
68227         (struct re_pattern_buffer, re_search, re_search_2, re_match):
68228         (re_match_2, re_set_registers): Use the new types.
68229         * lib/regex_internal.h (Idx, re_hashval_t): New types.
68230         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
68231         New macros.
68232         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
68233         (re_string_context_at, bin_tree_t, re_dfastate_t):
68234         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
68235         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
68236         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
68237         (re_string_char_size_at, re_string_wchar_at):
68238         (re_string_elem_size_at):
68239         Use the new types and macros to port to 64-bit hosts.
68240         Use unsigned types for internal values, so that the code
68241         mostly works even for arrays larger than SSIZE_MAX.
68242         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
68243         (search_duplicated_node, calc_eclosure_iter, fetch_number):
68244         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
68245         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
68246         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
68247         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
68248         (calc_inveclosure, parse_dup_op, build_range_exp):
68249         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
68250         (fetch_number, create_token_tree, mark_opt_subexp):
68251         Likewise.
68252         * lib/regex_internal.c (re_string_construct_common,
68253         create_ci_newstate):
68254         (create_cd_newstate, re_string_allocate, re_string_construct):
68255         (re_string_realloc_buffers, build_wcs_upper_buffer):
68256         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68257         (re_string_reconstruct, re_string_peek_byte_case):
68258         (re_string_fetch_byte_case, re_string_context_at):
68259         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68260         (re_node_set_init_copy, re_node_set_add_intersect):
68261         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68262         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68263         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68264         (re_acquire_state, re_acquire_state_context, register_state):
68265         Likewise.
68266         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
68267         search_cur_bkref_entry):
68268         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
68269         (re_search_internal, re_search_2_stub, re_search_stub)
68270         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
68271         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
68272         (update_cur_sifted_state, check_dst_limits):
68273         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68274         (check_subexp_limits, sift_states_bkref, merge_state_array):
68275         (check_subexp_matching_top, get_subexp, get_subexp_sub):
68276         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
68277         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68278         (expand_bkref_cache, check_node_accept_bytes):
68279         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
68280         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
68281         (acquire_init_state_context, check_halt_node_context):
68282         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
68283         (sift_states_backward, clean_state_log_if_needed):
68284         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
68285         (find_recover_state, transit_state_sb, transit_state_mb):
68286         (transit_state_bkref, build_trtable, match_ctx_clean):
68287         Likewise.
68288         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
68289         to work around an assumption that REG_MISSING is negative.
68290
68291         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
68292         (seek_collating_symbol_entry) [defined _LIBC]:
68293         (lookup_collation_sequence_value) [defined _LIBC]:
68294         (build_range_exp, build_collating_symbol) [defined _LIBC]:
68295         Use prototypes rather than old-style function definitions.
68296         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
68297         (transit_state_sb) [0]:
68298         (find_collation_sequence_value) [defined _LIBC]: Likewise.
68299
68300         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
68301         rm_eo.
68302
68303         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
68304         (optimize_subexps, lower_subexp):
68305         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
68306         since the signed shift might overflow.  Use 1u<<31 instead.
68307         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68308         Likewise.
68309         * lib/regexec.c (check_dst_limits_calc_pos_1,
68310         check_subexp_matching_top): Likewise.
68311
68312         * lib/regcomp.c (optimize_subexps, lower_subexp):
68313         Use CHAR_BIT rather than 8, for clarity.
68314         * lib/regexec.c (check_dst_limits_calc_pos_1):
68315         (check_subexp_matching_top): Likewise.
68316         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
68317         have to worry about portability issues when shifting it left.
68318         Remove no-longer-needed test for table_size > 0.
68319         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
68320         in a word, as the resulting behavior is undefined.
68321         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
68322         in one case, a <= should have been an <, and in another case the
68323         whole test was missing.
68324         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
68325         the standard name CHAR_BIT.
68326         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
68327         this is not true on one's complement and signed-magnitude hosts.
68328
68329         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
68330         next_last_offset.
68331         (struct re_dfa_t): Remove unused member states_alloc.
68332         * lib/regcomp.c (init_dfa): Don't initialize unused members.
68333
68334 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68335
68336         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
68337         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
68338         and large-file glibc and in 32-bit large-file Solaris.
68339
68340 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68341
68342         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
68343         lengths fit in regoff_t; this isn't true if regoff_t is the same
68344         width as size_t.
68345         * lib/regex.c (re_search_internal): 5th arg is LAST_START
68346         (= START + RANGE) instead of RANGE.  This avoids overflow
68347         problems when regoff_t is the same width as size_t.
68348         All callers changed.
68349         (re_search_2_stub): Check for overflow when adding the
68350         sizes of the two strings.
68351         (re_search_stub): Check for overflow when adding START
68352         to RANGE; if it occurs, substitute the extreme value.
68353
68354 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68355
68356         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
68357
68358 2005-08-31  Jim Meyering  <jim@meyering.net>
68359
68360         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
68361         a pointer-to-const.
68362         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
68363         (register_state): Likewise.
68364         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
68365         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68366         (group_nodes_into_DFAstates): Likewise.
68367
68368 2005-08-31  Jim Meyering  <jim@meyering.net>
68369
68370         * check-module: Add a FIXME comment.
68371
68372 2005-08-31  Eric Blake  <ebb9@byu.net>
68373
68374         * modules/unistd-safer (Files): Add unistd--.h.
68375         * modules/stdio-safer (Files): Add stdio--.h.
68376
68377 2005-08-31  Derek Price  <derek@ximbiot.com>
68378
68379         * lib/getdelim.c (getdelim): Return EOF on EOF.
68380         Reported by Larry Jones <lawrence.jones@ugs.com>.
68381
68382 2005-08-31  Bruno Haible  <bruno@clisp.org>
68383
68384         Avoid unnecessary diffs in the generated lib/Makefile.am.
68385         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
68386         the generated files.
68387         (func_import): Don't set cmd.
68388
68389 2005-08-31  Bruno Haible  <bruno@clisp.org>
68390
68391         * lib/strstr.c: Include <stddef.h>, for NULL.
68392         * lib/strcasestr.c: Likewise.
68393         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68394
68395 2005-08-31  Bruno Haible  <bruno@clisp.org>
68396
68397         * gnulib-tool: New option --macro-prefix.
68398         (func_import): Use macro_prefix.
68399         (import): Handle option --macro-prefix.
68400
68401 2005-08-31  Bruno Haible  <bruno@clisp.org>
68402
68403         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68404         Also use new variables cached_lgpl, cached_libtool.
68405
68406 2005-08-31  Bruno Haible  <bruno@clisp.org>
68407
68408         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68409         always instantiating them.
68410
68411 2005-08-31  Bruno Haible  <bruno@clisp.org>
68412
68413         * gnulib-tool (func_import): Read the previous cached settings
68414         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68415         earlier added by gnulib but are now dropped. Warn when a gnulib file
68416         overwrites a non-gnulib file.
68417
68418 2005-08-31  Bruno Haible  <bruno@clisp.org>
68419
68420         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68421         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68422         projects that don't keep autogenerated files in CVS. Put into
68423         actioncmd only the specified modules, not the transitive closure.
68424
68425 2005-08-31  Bruno Haible  <bruno@clisp.org>
68426
68427         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68428         Create directories that shall be filled.
68429         (import): Don't look for gl_* macros in configure.ac. Recurse across
68430         all directories containing a gnulib-cache.m4 files, if meaningful.
68431
68432 2005-08-31  Bruno Haible  <bruno@clisp.org>
68433
68434         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68435         (import): Set seen_libtool when we see gl_LIBTOOL.
68436
68437 2005-08-31  Bruno Haible  <bruno@clisp.org>
68438
68439         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68440         declaration macro definitions from generated gnulib.m4.
68441
68442 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68443
68444         * lib/iconvme.h: Add prototype for iconv_alloc.
68445
68446 2005-08-29  Simon Josefsson  <jas@extundo.com>
68447
68448         * lib/iconvme.c: Fix errno.
68449
68450 2005-08-29  Bruno Haible  <bruno@clisp.org>
68451
68452         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68453         that it works when the directory contains spaces.
68454
68455 2005-08-29  Bruno Haible  <bruno@clisp.org>
68456
68457         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68458
68459 2005-08-29  Bruno Haible  <bruno@clisp.org>
68460
68461         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68462         Emit more advice.
68463
68464 2005-08-29  Bruno Haible  <bruno@clisp.org>
68465         and Stepan Kasal  <kasal@ucw.cz>
68466
68467         * check-module: If more parameters are given, check each of them
68468         separately; add more exceptions, as noted by Jim Meyering.
68469         (check_module): New procedure.
68470         (%exempt_header): Now contains all exceptions.
68471
68472 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68473
68474         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68475
68476 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68477
68478         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68479
68480 2005-08-28  Bruno Haible  <bruno@clisp.org>
68481
68482         * m4/gnulib-tool.m4: New file.
68483
68484 2005-08-27  Jim Meyering  <jim@meyering.net>
68485
68486         * modules/unistd-safer (Files): Add pipe-safer.c.
68487         * modules/fcntl-safer (Files): Add creat-safer.c.
68488
68489 2005-08-27  Jim Meyering  <jim@meyering.net>
68490
68491         * m4/stdlib-safer.m4: New file.  From coreutils.
68492         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68493         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68494         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68495         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68496         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68497
68498 2005-08-27  Jim Meyering  <jim@meyering.net>
68499
68500         * lib/fopen-safer.c: Merge minor changes from coreutils.
68501         * lib/dup-safer.c: Likewise.
68502         * lib/fd-safer.c: Likewise.
68503
68504         Merge from coreutils.
68505         * lib/stdio--.h: New file.
68506         * lib/stdlib--.h: New file.
68507         * lib/mkstemp-safer.c: New file.
68508
68509         GNU tar needs these.
68510         * lib/pipe-safer.c: New file.
68511         * lib/creat-safer.c: New file.
68512         * lib/fcntl--.h (creat): Define to creat_safer.
68513         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68514         * lib/unistd--.h (pipe): Define to pipe_safer.
68515         * lib/unistd-safer.h: Declare pipe_safer.
68516
68517 2005-08-26  Simon Josefsson  <jas@extundo.com>
68518
68519         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68520         Haible <bruno@clisp.org>.
68521
68522 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         * lib/regex_internal.h: Remove all references to
68525         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68526         or better.
68527         (bitset_not, bitset_merge, bitset_not_merge):
68528         (bitset_mask, re_string_allocate, re_string_construct):
68529         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68530         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68531         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68532         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68533         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68534         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68535         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68536         (re_acquire_state_context):
68537         Remove unnecessary forward decls.
68538         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68539         Put __attribute at function definition,
68540         now that the function decl has been removed.
68541         * lib/regex_internal.c (re_string_peek_byte_case):
68542         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68543         Likewise.
68544
68545 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68546
68547         * m4/regex.m4: Add AC_PREREQ(2.50).
68548         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68549
68550 2005-08-25  Simon Josefsson  <jas@extundo.com>
68551
68552         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68553         __fsetlocking.
68554
68555 2005-08-25  Simon Josefsson  <jas@extundo.com>
68556
68557         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68558         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68559         GLIBC specific code.
68560
68561 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68562
68563         Make regex safe for g++.  This fixes one real bug (an "err"
68564         that should have been "*err").  g++ problem reported by
68565         Sam Steingold.
68566         * lib/regex_internal.h (re_calloc): New macro, consistent with
68567         re_malloc etc.  All callers of calloc changed to use re_calloc.
68568         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68569         not int.  All callers changed.
68570         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68571         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68572         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68573         (find_recover_state): Change "err" to "*err"; this fixes what
68574         appears to be a real bug.
68575         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68576         versus int.
68577
68578 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68579
68580         * modules/regex (Depends-on): Add malloc, since the code
68581         assumes that !malloc(0) means failure.
68582
68583 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68584
68585         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68586
68587         alloca modernization/simplification for regex.
68588         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68589         needs to be at the start of the file, and can be moved into
68590         regex_internal.h and simplified.
68591         * lib/regex_internal.h: Include <alloca.h>.
68592         (__libc_use_alloca) [!defined _LIBC]: New macro.
68593         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68594         now works outside glibc.
68595
68596 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68597
68598         * config/srclist.txt: Add glibc bugs 1241, 1245.
68599
68600 2005-08-25  Jim Meyering  <jim@meyering.net>
68601
68602         * lib/open-safer.c: Include <config.h>.
68603         Otherwise, we'd lose LARGEFILE support in any file using
68604         e.g. "fcntl--.h"
68605
68606 2005-08-25  Bruno Haible  <bruno@clisp.org>
68607
68608         * m4/minmax.m4: Require autoconf 2.52.
68609         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68610         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68611         alternatives of translit over the alphabet.
68612         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68613
68614 2005-08-24  Simon Josefsson  <jas@extundo.com>
68615
68616         * tests/test-getpass.c: New file.
68617
68618 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68619
68620         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68621         for GNU regex features.
68622
68623 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68624
68625         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68626         * lib/regex.h (regerror): Likewise.
68627
68628         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68629         requires this.  (The code never needed it.)
68630
68631         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68632         All uses of recently-renamed identifiers changed to use the new,
68633         POSIX-compliant names.  The code will build and run just fine
68634         without these changes, but it's better to eat our own dog food
68635         and use the standard-conforming names.
68636
68637         * lib/regex.h: Fix a multitude of POSIX name space violations.
68638         These changes have an effect only for programs that define
68639         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68640         do not change anything for programs compiled in the normal way.
68641         Also, there is no effect on the ABI.
68642
68643         (_REGEX_SOURCE): New macro.
68644         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68645         defined and _GNU_SOURCE is not; this fixes a name space violation.
68646
68647         Rename the following macros to obey POSIX requirements.
68648         The old names are still visible as macros if _REGEX_SOURCE is defined.
68649         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68650         RE_BACKSLASH_ESCAPE_IN_LISTS.
68651         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68652         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68653         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68654         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68655         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68656         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68657         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68658         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68659         (REG_INTERVALS): renamed from RE_INTERVALS.
68660         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68661         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68662         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68663         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68664         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68665         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68666         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68667         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68668         RE_UNMATCHED_RIGHT_PAREN_ORD.
68669         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68670         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68671         (REG_DEBUG): renamed from RE_DEBUG.
68672         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68673         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68674         unusual, since we can't clash with the POSIX REG_ICASE.
68675         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68676         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68677         (REG_NO_SUB): renamed from RE_NO_SUB.
68678         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68679         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68680         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68681         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68682         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68683         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68684         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68685         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68686         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68687         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68688         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68689         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68690         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68691         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68692         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68693         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68694         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68695         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68696         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68697         (REG_FIXED): Renamed from REGS_FIXED.
68698         (REG_NREGS): Renamed from RE_NREGS.
68699
68700         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68701         of other REG_* macros, since POSIX says the user is allowed to
68702         #undef these macros selectively.
68703
68704         (reg_errcode_t): Update comment stating what other tables need
68705         to be consistent.
68706
68707         Rename the following enum values to obey POSIX requirements.
68708         The old names are still visible as macros.
68709         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68710         is not defined, since GNU is supposed to be a superset of POSIX as
68711         much as possible, and since we want reg_errcode_t to be a signed
68712         type for implementation consistency.
68713         (_REG_NOERROR): Renamed from REG_NOERROR.
68714         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68715         (_REG_BADPAT): Renamed from REG_BADPAT.
68716         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68717         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68718         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68719         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68720         (_REG_EBRACK): Renamed from REG_EBRACK.
68721         (_REG_EPAREN): Renamed from REG_EPAREN.
68722         (_REG_EBRACE): Renamed from REG_EBRACE.
68723         (_REG_BADBR): Renamed from REG_BADBR.
68724         (_REG_ERANGE): Renamed from REG_ERANGE.
68725         (_REG_ESPACE): Renamed from REG_ESPACE.
68726         (_REG_BADRPT): Renamed from REG_BADRPT.
68727         (_REG_EEND): Renamed from REG_EEND.
68728         (_REG_ESIZE): Renamed from REG_ESIZE.
68729         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68730         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68731         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68732         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68733         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68734
68735         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68736         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68737         changed.  But support the old name if the new one is not defined
68738         and if _REGEX_SOURCE.
68739
68740         Change the following member names in struct re_pattern_buffer.
68741         The old names are still supported if !_REGEX_SOURCE.
68742         The new names are always supported, regardless of _REGEX_SOURCE.
68743         (re_buffer): Renamed from buffer.
68744         (re_allocated): Renamed from allocated.
68745         (re_used): Renamed from used.
68746         (re_syntax): Renamed from syntax.
68747         (re_fastmap): Renamed from fastmap.
68748         (re_translate): Renamed from translate.
68749         (re_can_be_null): Renamed from can_be_null.
68750         (re_regs_allocated): Renamed from regs_allocated.
68751         (re_fastmap_accurate): Renamed from fastmap_accurate.
68752         (re_no_sub): Renamed from no_sub.
68753         (re_not_bol): Renamed from not_bol.
68754         (re_not_eol): Renamed from not_eol.
68755         (re_newline_anchor): Renamed from newline_anchor.
68756
68757         Change the following member names in struct re_registers.
68758         The old names are still supported if !_REGEX_SOURCE.
68759         The new names are always supported, regardless of _REGEX_SOURCE.
68760         (rm_num_regs): Renamed from num_regs.
68761         (rm_start): Renamed from start.
68762         (rm_end): Renamed from end.
68763
68764         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68765         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68766         Prepend __ to parameter names.
68767
68768         Undo yesterday's changes.
68769
68770 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68771
68772         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68773         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68774         lib/regex.c.
68775
68776 2005-08-24  Jim Meyering  <jim@meyering.net>
68777
68778         Sync from coreutils.
68779         * m4/fcntl-safer.m4: New file.
68780
68781         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68782         and object files for this module.
68783
68784 2005-08-24  Jim Meyering  <jim@meyering.net>
68785
68786         Sync from coreutils.
68787         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68788
68789 2005-08-24  Jim Meyering  <jim@meyering.net>
68790
68791         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68792         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68793
68794 2005-08-24  Jim Meyering  <jim@meyering.net>
68795
68796         * modules/fcntl-safer: New module.
68797         * modules/fts (Depends-on): Add fcntl-safer.
68798         * MODULES.html.sh (File descriptor based Input/Output):
68799         Add fcntl-safer.
68800
68801 2005-08-24  Bruno Haible  <bruno@clisp.org>
68802
68803         Support for unit test modules.
68804         * modules/README: Mention tests modules.
68805         * modules/TEMPLATE-TESTS: New file.
68806         * gnulib-tool: New options --extract-tests-module, --with-tests and
68807         --tests-base (unused for the moment).
68808         (testsbase, inctests): New variables.
68809         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68810         (func_verify_module): Exclude TEMPLATE-TESTS.
68811         (func_verify_nontests_module, func_verify_tests_module): New functions.
68812         (func_get_dependencies): Add implicit dependency for tests modules.
68813         (func_get_tests_module): New function.
68814         (func_modules_transitive_closure): When --with-tests was specified,
68815         include the unit tests as well, unless explicitly avoided.
68816         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68817         (func_emit_tests_Makefile_am): New function.
68818         (func_create_testdir): When --with-tests was specified, emit a
68819         tests/ directory.
68820         * MODULES.html.sh (Future developments): Update.
68821
68822 2005-08-24  Bruno Haible  <bruno@clisp.org>
68823
68824         * modules/tls-tests: New file.
68825         * tests/test-tls.c: New file, from GNU gettext.
68826
68827 2005-08-24  Bruno Haible  <bruno@clisp.org>
68828
68829         * modules/lock-tests: New file.
68830         * tests/test-lock.c: New file, from GNU gettext.
68831
68832 2005-08-24  Bruno Haible  <bruno@clisp.org>
68833
68834         * lib/lock.h: Add multiple inclusion guard.
68835         * lib/tls.h: Add multiple inclusion guard.
68836
68837 2005-08-24  Bruno Haible  <bruno@clisp.org>
68838
68839         * gnulib-tool: Add support for the --aux-dir option to
68840         --create-testdir, --create-megatestdir, --test, --megatest.
68841         (func_create_testdir, func_create_megatestdir): Optionally emit a
68842         AC_CONFIG_AUX_DIR directive.
68843         (create-testdir, create-megatestdir, test, megatest): Provide a
68844         default value for $auxdir.
68845
68846 2005-08-24  Bruno Haible  <bruno@clisp.org>
68847
68848         * gnulib-tool (import): Use compound statement instead of subshell
68849         where possible.
68850
68851 2005-08-24  Bruno Haible  <bruno@clisp.org>
68852
68853         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68854
68855 2005-08-24  Bruno Haible  <bruno@clisp.org>
68856
68857         * gnulib-tool (func_version): Update.
68858
68859 2005-08-24  Bruno Haible  <bruno@clisp.org>
68860
68861         * gnulib-tool (func_import, func_create_testdir,
68862         func_create_megatestdir): Quote all autoconf macro arguments.
68863
68864 2005-08-24  Bruno Haible  <bruno@clisp.org>
68865
68866         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68867         option --force, because --force causes the aclocal.m4 of each
68868         subdirectory to be newer than the corresponding config.h.in.
68869
68870 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68871
68872         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68873         All contents moved to gl_REGEX.
68874         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68875         assume that it does.
68876
68877 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * lib/regex.h (REG_NOSYS)
68880         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68881         Define, since POSIX requires it as of 2001.
68882         (_REG_ENOSYS)
68883         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68884         New private symbol, used to keep the enum signed in all cases.
68885         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68886         Youngman in
68887         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68888
68889         * lib/regex_internal.c (re_string_skip_chars, register_state):
68890         (calc_state_hash):
68891         Remove forward decls; no longer needed now that we use prototypes.
68892         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68893         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68894         (clean_state_log_if_needed): Likewise.
68895
68896 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68897
68898         * config/srclist.txt: Add glibc bugs 1231-1233.
68899
68900 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68901
68902         Fix problems reported by Sam Steingold in
68903         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68904         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68905         assumed that reg_errcode_t is a signed type, which is not
68906         necessarily true if _XOPEN_SOURCE is not defined.
68907         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68908         since some compilers warn about it otherwise.
68909
68910 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68911
68912         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68913         (init_word_char, create_initial_state, duplicate_node_closure):
68914         (fetch_token, peek_token_bracket, build_range_exp):
68915         (build_collating_symbol): Remove forward decls; no longer needed
68916         now that we use prototypes.
68917
68918         * lib/regcomp.c:
68919         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68920         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68921         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68922         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68923         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68924         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68925         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68926         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68927         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68928         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68929         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68930         (build_charclass, build_charclass_op, fetch_number, create_tree):
68931         (create_token_tree, mark_opt_subexp, duplicate_tree):
68932         Use prototypes rather than old-style definitions.
68933
68934         * lib/regex_internal.c:
68935         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68936         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68937         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68938         (re_string_reconstruct, re_string_peek_byte_case):
68939         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68940         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68941         (re_node_set_init_copy, re_node_set_add_intersect):
68942         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68943         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68944         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68945         (re_acquire_state, re_acquire_state_context, register_state):
68946         (create_ci_newstate, create_cd_newstate, free_state):
68947         Likewise.
68948         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68949         re_search_2):
68950         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68951         (re_search_internal, prune_impossible_nodes):
68952         (acquire_init_state_context, check_matching, static):
68953         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68954         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68955         (update_regs, sift_states_backward, build_sifted_states):
68956         (clean_state_log_if_needed, merge_state_array):
68957         (update_cur_sifted_state, add_epsilon_src_nodes):
68958         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68959         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68960         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68961         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68962         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68963         (check_arrival, check_arrival_add_next_nodes):
68964         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68965         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68966         (check_node_accept_bytes, check_node_accept, extend_buffers):
68967         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68968         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68969         (sift_ctx_init):
68970         Likewise.
68971
68972         * lib/regex_internal.h:
68973         (re_string_allocate, re_string_construct, re_string_reconstruct):
68974         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68975         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68976         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68977         (re_string_context_at, re_string_peek_byte_case):
68978         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68979         is defined, since we now use prototypes always.
68980
68981         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68982         C89 or better.  All uses removed.
68983
68984 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68985
68986         * config/srclist.txt: Add glibc bugs 1220-1227.
68987
68988 2005-08-20  Jim Meyering  <jim@meyering.net>
68989
68990         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68991         of unused local, dfa.
68992
68993 2005-08-20  Bruno Haible  <bruno@clisp.org>
68994
68995         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68996
68997 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
69000         (re_node_set_insert_last, re_dfa_add_node):
69001         Rename local variables to avoid GCC shadowing warnings.
69002
69003 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69004
69005         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
69006         [defined lint]: Suppress bogus uninitialized-variable warnings.
69007
69008         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
69009         and let the caller return REG_ESPACE if out of space.  This
69010         removes an uninitialied-variable warning with GCC 4.0.1, and also
69011         avoids taking the address of a local variable.  All callers
69012         changed.
69013
69014 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
69017         $LIBCSRC/posix/regexec.c.
69018         Add glibc bug 1217 for regcomp.c.
69019
69020 2005-08-19  Jim Meyering  <jim@meyering.net>
69021
69022         * lib/regexec.c (proceed_next_node): Redo local variables to
69023         avoid GCC shadowing warnings.
69024
69025 2005-08-18  Bruno Haible  <bruno@clisp.org>
69026
69027         * lib/strstr.c (strstr): Fix return value in multibyte case.
69028         * lib/strcasestr.c (strcasestr): Likewise.
69029
69030 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69031
69032         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
69033
69034 2005-08-17  Jim Meyering  <jim@meyering.net>
69035
69036         Make the %s format (seconds since the epoch) work for a negative
69037         number and when used with a zero-padded field width, e.g. %015s.
69038
69039         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
69040         label so that it precedes the code to set `digits'.  Otherwise,
69041         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
69042         print `00-22'.  Now, it prints `-0022', as it should.
69043
69044 2005-08-17  Bruno Haible  <bruno@clisp.org>
69045
69046         * modules/strstr (Files): Add m4/mbrtowc.m4.
69047         (Depends-on): Add mbuiter.
69048
69049 2005-08-17  Bruno Haible  <bruno@clisp.org>
69050
69051         * modules/strcasestr: New file.
69052         * MODULES.html.sh (String handling, based on ANSI C 89): Add
69053         strcasestr.
69054
69055 2005-08-17  Bruno Haible  <bruno@clisp.org>
69056
69057         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
69058
69059 2005-08-17  Bruno Haible  <bruno@clisp.org>
69060
69061         * modules/mbuiter: New file.
69062         * MODULES.html.sh (Extended multibyte and wide character utilities):
69063         Add mbuiter.
69064
69065 2005-08-17  Bruno Haible  <bruno@clisp.org>
69066
69067         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
69068         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
69069
69070 2005-08-17  Bruno Haible  <bruno@clisp.org>
69071
69072         * m4/strcasestr.m4: New file.
69073
69074 2005-08-17  Bruno Haible  <bruno@clisp.org>
69075
69076         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
69077         * lib/strstr.c: Completely rewritten, with multibyte locale support.
69078
69079 2005-08-17  Bruno Haible  <bruno@clisp.org>
69080
69081         * lib/strcasestr.h: New file.
69082         * lib/strcasestr.c: New file.
69083
69084 2005-08-17  Bruno Haible  <bruno@clisp.org>
69085
69086         * lib/strcasecmp.c: Use mbuiter.h.
69087
69088 2005-08-17  Bruno Haible  <bruno@clisp.org>
69089
69090         * lib/mbuiter.h: New file.
69091
69092 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69093
69094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
69095         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
69096         and gl_GETOPT are both invoked via different paths (as happens
69097         with GNU tar CVS because it uses both argp and getopt), the former
69098         wins.
69099
69100 2005-08-16  Bruno Haible  <bruno@clisp.org>
69101
69102         * modules/tls: New file.
69103         * MODULES.html.sh (Multithreading): Add tls.
69104
69105 2005-08-16  Bruno Haible  <bruno@clisp.org>
69106
69107         * modules/strnlen1: New file.
69108         * MODULES.html.sh (String handling): Add strnlen1.
69109
69110 2005-08-16  Bruno Haible  <bruno@clisp.org>
69111
69112         * modules/strcase (Files): Add m4/mbrtowc.m4.
69113         (Depends-on): Add strnlen1, mbchar.
69114
69115 2005-08-16  Bruno Haible  <bruno@clisp.org>
69116
69117         * modules/mbiter: New file.
69118         * MODULES.html.sh (Extended multibyte and wide character utilities):
69119         Add mbiter.
69120
69121 2005-08-16  Bruno Haible  <bruno@clisp.org>
69122
69123         * modules/mbfile: New file.
69124         * MODULES.html.sh (Extended multibyte and wide character utilities):
69125         Add mbfile.
69126
69127 2005-08-16  Bruno Haible  <bruno@clisp.org>
69128
69129         * modules/mbchar: New file.
69130         * MODULES.html.sh (Extended multibyte and wide character utilities):
69131         New section.
69132
69133 2005-08-16  Bruno Haible  <bruno@clisp.org>
69134
69135         * m4/tls.m4: New file, from GNU gettext.
69136
69137 2005-08-16  Bruno Haible  <bruno@clisp.org>
69138
69139         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
69140         always.
69141         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
69142
69143 2005-08-16  Bruno Haible  <bruno@clisp.org>
69144
69145         * m4/mbiter.m4: New file.
69146
69147 2005-08-16  Bruno Haible  <bruno@clisp.org>
69148
69149         * m4/mbfile.m4: New file.
69150
69151 2005-08-16  Bruno Haible  <bruno@clisp.org>
69152
69153         * m4/mbchar.m4: New file.
69154
69155 2005-08-16  Bruno Haible  <bruno@clisp.org>
69156
69157         * lib/tls.h: New file, from GNU gettext.
69158         * lib/tls.c: New file, from GNU gettext.
69159
69160 2005-08-16  Bruno Haible  <bruno@clisp.org>
69161
69162         * lib/strnlen1.h: New file.
69163         * lib/strnlen1.c: New file.
69164
69165 2005-08-16  Bruno Haible  <bruno@clisp.org>
69166
69167         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
69168         (mbi_init): Update.
69169         (mbi_avail, mbi_advance): Let the iteration end before the terminating
69170         NUL byte, not after it.
69171
69172 2005-08-16  Bruno Haible  <bruno@clisp.org>
69173
69174         * lib/strcase.h (strcasecmp): Add note in comments.
69175         * lib/strncasecmp.c: Use code from strcasecmp.c.
69176         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
69177         (strcasecmp): Work correctly in multibyte locales.
69178
69179 2005-08-16  Bruno Haible  <bruno@clisp.org>
69180
69181         * lib/mbiter.h: New file.
69182
69183 2005-08-16  Bruno Haible  <bruno@clisp.org>
69184
69185         * lib/mbfile.h: New file.
69186
69187 2005-08-16  Bruno Haible  <bruno@clisp.org>
69188
69189         * lib/mbchar.h: New file.
69190         * lib/mbchar.c: New file.
69191
69192 2005-08-16  Bruno Haible  <bruno@clisp.org>
69193
69194         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
69195         the valid ones. Makes the comparison operations transitive:
69196         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
69197         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
69198
69199 2005-08-15  Simon Josefsson  <jas@extundo.com>
69200
69201         * modules/ssize_t (License): Change to 'unlimited'.
69202
69203         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
69204
69205 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69206
69207         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
69208         Add comments for each pending glibc patch.
69209
69210 2005-08-15  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/regex.h (__restrict_arr): Don't define to __restrict if
69213         __cplusplus is defined.
69214
69215 2005-08-14  Jim Meyering  <jim@meyering.net>
69216
69217         Sync from coreutils.
69218
69219         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
69220         Use the hash-table-based cycle-detection code not just when
69221         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
69222         Reported by James Youngman in
69223         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
69224         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
69225         FTS_TIGHT_CYCLE_CHECK.
69226         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
69227         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
69228         once again.
69229         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
69230         * lib/fts.c (fd_safer): Remove decl.
69231         Include fcntl--.h rather than unistd-safer.h
69232         (fts_safe_changedir): Don't call fd_safer; no longer needed
69233         now that we include fcntl--.h.
69234
69235 2005-08-12  Simon Josefsson  <jas@extundo.com>
69236
69237         * modules/getndelim2: Use ssize_t module.
69238         * modules/getnline: Likewise.
69239         * modules/safe-read: Likewise.
69240         * modules/xreadlink: Likewise.
69241
69242         * modules/ssize_t: New file.
69243
69244 2005-08-12  Simon Josefsson  <jas@extundo.com>
69245
69246         * m4/readline.m4: Look for termcap, curses or ncurses if required.
69247
69248 2005-08-12  Simon Josefsson  <jas@extundo.com>
69249
69250         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69251         ssize_t.
69252
69253 2005-08-12  Simon Josefsson  <jas@extundo.com>
69254
69255         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
69256         readline, getdelim and check_version.
69257         (Support for systems lacking ISO C 99: Sizes of integer types):
69258         Add size_max.
69259
69260 2005-08-12  Bruno Haible  <bruno@clisp.org>
69261
69262         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
69263
69264 2005-08-11  Simon Josefsson  <jas@extundo.com>
69265
69266         * modules/readline: New file.
69267
69268         * modules/strnlen (Files): Add strnlen.h.
69269
69270 2005-08-11  Simon Josefsson  <jas@extundo.com>
69271
69272         * m4/readline.m4: New file.
69273
69274 2005-08-11  Simon Josefsson  <jas@extundo.com>
69275
69276         * lib/readline.h, readline.c: New file.
69277
69278 2005-08-11  Simon Josefsson  <jas@extundo.com>
69279
69280         * doc/gnulib.texi (Initial import, Finishing touches): Mention
69281         gl_AVOID.
69282
69283 2005-08-11  Bruno Haible  <bruno@clisp.org>
69284
69285         * lib/strnlen.h (strnlen): Change parameter name to match comment.
69286
69287 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
69288
69289         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
69290
69291 2005-08-10  Simon Josefsson  <jas@extundo.com>
69292
69293         * tests/test-iconvme.c: New file.
69294
69295 2005-08-10  Simon Josefsson  <jas@extundo.com>
69296
69297         * m4/strnlen.m4: New file.
69298
69299         * m4/strndup.m4: Don't check for strnlen declaration, done in
69300         strnlen.m4.
69301
69302 2005-08-10  Simon Josefsson  <jas@extundo.com>
69303
69304         * lib/strndup.c: Use strnlen.h.
69305
69306         * lib/strnlen.h: New file.
69307
69308 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69309
69310         * README: Typos.
69311
69312 2005-08-02  Simon Josefsson  <jas@extundo.com>
69313
69314         * modules/readline: New file.
69315
69316 2005-08-02  Simon Josefsson  <jas@extundo.com>
69317
69318         * modules/getdelim: New file.
69319
69320         * modules/getline: Rewrite, don't use getndelim2.
69321
69322 2005-08-02  Simon Josefsson  <jas@extundo.com>
69323
69324         * m4/getline.m4: Separate out getdelim stuff into separate module.
69325
69326         * m4/getdelim.m4: New file.
69327
69328 2005-08-02  Simon Josefsson  <jas@extundo.com>
69329
69330         * lib/getline.h, getline.c: Rewrite.
69331
69332         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
69333
69334 2005-07-31  Bruno Haible  <bruno@clisp.org>
69335
69336         * lib/lock.h (gl_lock_initializer): New macro.
69337         (gl_lock_define_initialized): Use it.
69338         (gl_rwlock_initializer): New macro.
69339         (gl_rwlock_define_initialized): Use it.
69340         (gl_recursive_lock_initializer): New macro.
69341         (gl_recursive_lock_define_initialized): Use it.
69342
69343 2005-07-30  Karl Berry  <karl@gnu.org>
69344
69345         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
69346         Report from Ben Pfaff, regarding getopt.
69347
69348 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
69351         normal way.
69352         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
69353         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
69354         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
69355         (gl_GETOPT): Use the new macros.  Most of the implementation
69356         is moved to the new macros.  This is for programs like Emacs
69357         that don't want all the functionality of gl_GETOPT.
69358
69359 2005-07-26  Bruno Haible  <bruno@clisp.org>
69360
69361         * m4/lock.m4: Update from GNU gettext.
69362
69363 2005-07-26  Bruno Haible  <bruno@clisp.org>
69364
69365         * lib/lock.h: Update from GNU gettext.
69366         * lib/lock.c: Update from GNU gettext.
69367
69368 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
69369
69370         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
69371         obsolescent AC_TRY_RUN.  Include the default includes files, for
69372         'exit'.
69373
69374 2005-07-24  Bruno Haible  <bruno@clisp.org>
69375
69376         * modules/visibility: New file.
69377         * MODULES.html.sh (Misc): Add visibility.
69378
69379 2005-07-24  Bruno Haible  <bruno@clisp.org>
69380
69381         * m4/visibility.m4: New file.
69382
69383 2005-07-24  Bruno Haible  <bruno@clisp.org>
69384
69385         * doc/visibility.texi: New file.
69386
69387 2005-07-22  Bruno Haible  <bruno@clisp.org>
69388
69389         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
69390         $(ALLOCA_H), redundant through BUILT_SOURCES.
69391         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
69392         redundant through BUILT_SOURCES.
69393         * modules/byteswap (Makefile.am): Remove explicit dependency on
69394         $(BYTESWAP_H), redundant through BUILT_SOURCES.
69395         * modules/fnmatch (Makefile.am): Remove explicit dependency on
69396         $(FNMATCH_H), redundant through BUILT_SOURCES.
69397         * modules/getopt (Makefile.am): Remove explicit dependency on
69398         $(GETOPT_H), redundant through BUILT_SOURCES.
69399         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
69400         redundant through BUILT_SOURCES.
69401         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69402         redundant through BUILT_SOURCES.
69403         * modules/stdbool (Makefile.am): Remove explicit dependency on
69404         $(STDBOOL_H), redundant through BUILT_SOURCES.
69405         * modules/stdint (Makefile.am): Remove explicit dependency on
69406         $(STDINT_H), redundant through BUILT_SOURCES.
69407         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69408         Remove explicit dependency on $(SYSEXITS_H).
69409         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69410
69411 2005-07-18  Simon Josefsson  <jas@extundo.com>
69412
69413         * lib/check-version.c (check_version): Accept identical versions too.
69414
69415 2005-07-18  Bruno Haible  <bruno@clisp.org>
69416
69417         * modules/lock: New file.
69418         * MODULES.html.sh (Multithreading): New section.
69419
69420 2005-07-18  Bruno Haible  <bruno@clisp.org>
69421
69422         * m4/lock.m4: New file, from GNU gettext.
69423
69424 2005-07-18  Bruno Haible  <bruno@clisp.org>
69425
69426         * lib/lock.h: New file, from GNU gettext.
69427         * lib/lock.c: New file, from GNU gettext.
69428
69429 2005-07-18  Bruno Haible  <bruno@clisp.org>
69430
69431         * lib/lock.h (gl_once_t): New type.
69432         (gl_once_define, gl_once): New macros.
69433         * lib/lock.c (fresh_once): New variable.
69434         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69435         functions.
69436
69437 2005-07-16  Simon Josefsson  <jas@extundo.com>
69438
69439         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69440         workaround, suggested by Bruno.
69441
69442 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69443
69444         * modules/xalloc (Depends-on): Add xalloc-die.
69445         * modules/xvasprintf (Depends-on): Add xalloc-die.
69446
69447 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69450         with a minor change.
69451
69452 2005-07-15  Bruno Haible  <bruno@clisp.org>
69453
69454         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69455         When using lib/poll.c, define poll as rpl_poll.
69456
69457 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         * modules/argp (Depends-on): Remove unlocked-io.
69460
69461 2005-07-14  Derek Price  <derek@ximbiot.com>
69462
69463         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69464         for glob symlink bug.
69465
69466 2005-07-14  Bruno Haible  <bruno@clisp.org>
69467
69468         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69469         Instead, test for *_unlocked function declarations directly.
69470
69471 2005-07-11  Simon Josefsson  <jas@extundo.com>
69472
69473         * modules/size_max: New file.
69474
69475         * modules/xsize: Depend on size_max module for size_max.m4.
69476
69477 2005-07-11  Simon Josefsson  <jas@extundo.com>
69478
69479         * lib/size_max.h: New file.
69480
69481 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69482
69483         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69484         copyright symbol and the year.
69485         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69486         (version_etc_va): Use parameterized copyright notice.
69487         Reword to conform to the current GNU coding standards.
69488
69489 2005-07-11  Karl Berry  <karl@gnu.org>
69490
69491         * doc/gnulib.texi (Quoting): new node.
69492         (Initial import): more info, from Patrice.
69493
69494 2005-07-11  Bruno Haible  <bruno@clisp.org>
69495
69496         * gnulib-tool (func_usage): Document option --avoid.
69497         (Command line options): Handle --avoid.
69498         (func_acceptable): New function.
69499         (func_modules_transitive_closure): Use it.
69500
69501 2005-07-11  Bruno Haible  <bruno@clisp.org>
69502
69503         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69504         Reported by Jim Meyering.
69505
69506 2005-07-10  Bruno Haible  <bruno@clisp.org>
69507
69508         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69509         Needed when size_t is smaller than 'unsigned int'.
69510         Reported by Paul Eggert.
69511
69512 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69513
69514         * modules/argp (Depends-on): Add unlocked-io
69515
69516 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69517
69518         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69519         block of defines.
69520
69521 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69524         fix now.
69525
69526 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69527         and Paul Eggert  <eggert@cs.ucla.edu>
69528
69529         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69530         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69531
69532 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69533
69534         * modules/regex (Files): Add lib/regex_internal.c,
69535         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69536         (Depends-on): Add extensions.
69537         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69538
69539 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69542         pathconf.
69543         * m4/same.m4 (gl_SAME): Likewise.
69544         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69545
69546         * m4/regex.m4: Adjust to new libc regex implementation.
69547         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69548         all the .c and .h parts of (the new) regex.
69549         Quote the m4 stuff better.
69550         Check for RE_ICASE bug of old gnulib.
69551         Check for REG_STARTEND of recent libc.
69552         Rename local variables from jm_* to gl_*.
69553         Quote operand of "test -f".
69554         Say "recent enough" version of libc, not "version 2".
69555         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69556         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69557         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69558         Remove check for btowc, isascii.
69559         Require AM_LANGINFO_CODESET.
69560
69561 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69562
69563         * lib/regex.c, regex.h: Sync from libc.
69564         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69565         * lib/regexec.c:
69566         New files, synced from libc, except that regex_internal.h
69567         currently has a small porting fix.
69568
69569 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69572         regex_internal.c, regexec.c.
69573         Add regex_internal.h too, but as a comment, since the libc version
69574         is currently broken in gnulib mode.
69575
69576 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69577
69578         Support programs like Emacs that use gnulib but not gettext.
69579         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69580         * modules/gettext-h: New file.
69581         * modules/gettext (Files): Remove lib/gettext.h.
69582         (Depends-on): Add gettext-h.
69583         (Makefile.am): Remove lib_SOURCES.
69584         * modules/argmatch, modules/c-stack, modules/closeout:
69585         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69586         * modules/execute, modules/file-type, modules/getaddrinfo:
69587         * modules/getopt, modules/human, modules/javacomp:
69588         * modules/javaexec, modules/mkdir-p, modules/obstack:
69589         * modules/openat, modules/pagealign_alloc, modules/pipe:
69590         * modules/quotearg, modules/regex, modules/rpmatch:
69591         * modules/unicodeio, modules/userspec, modules/version-etc:
69592         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69593         * modules/xsetenv:
69594         Depend on gettext-h, not gettext.
69595
69596 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         * gnulib-tool (func_import): Add support for 'public domain' license.
69599         * modules/alloca, modules/atexit, modules/memmove:
69600         Now public domain, not GPL.
69601         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69602         * modules/realloc, modules/strerror, modules/strtod:
69603         Now LGPL, not GPL.
69604
69605 2005-07-05  Bruno Haible  <bruno@clisp.org>
69606
69607         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69608         autoconf CVS. Needed for mingw.
69609
69610 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         Remove the dependency of the strftime module on the tzset module.
69613         * modules/strftime (Depends-on): Remove dependency on tzset.
69614
69615 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         Remove the dependency of the strftime module on the tzset module.
69618         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69619         gl_FUNC_TZSET_CLOBBER.
69620
69621 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69622
69623         Remove the dependency of the strftime module on the tzset module.
69624         * lib/strftime.c (my_strftime)
69625         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69626         Copy the input structure, to work around some of the bug with
69627         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69628         Solaris releases, you should also use the tzset module, but we won't
69629         require it as a dependency any more since we don't want LGPLed code
69630         to depend on GPLed code.
69631
69632 2005-07-02  Jim Meyering  <jim@meyering.net>
69633
69634         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69635         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69636         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69637         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69638
69639 2005-07-02  Jim Meyering  <jim@meyering.net>
69640
69641         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69642
69643 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69646         declares only 'struct timespec;' (!).
69647
69648 2005-07-01  Jim Meyering  <jim@meyering.net>
69649
69650         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69651         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69652         * lib/save-cwd.c, tempname.c:
69653         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69654         and don't include <sys/file.h>).
69655
69656 2005-06-29  Jim Meyering  <jim@meyering.net>
69657
69658         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69659         type name.  Use the variable name instead.
69660         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69661         Likewise.
69662
69663 2005-06-28  Simon Josefsson  <jas@extundo.com>
69664
69665         * modules/check-version (Files): Add check-version.m4.
69666
69667 2005-06-28  Simon Josefsson  <jas@extundo.com>
69668
69669         * m4/check-version.m4: New file, suggested by Jim Meyering
69670         <jim@meyering.net>.
69671
69672 2005-06-28  Simon Josefsson  <jas@extundo.com>
69673
69674         * lib/check-version.h, lib/check-version.c: New files.
69675
69676 2005-06-28  Simon Josefsson  <jas@extundo.com>
69677
69678         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69679         collision with global variable.  Better indentation.  Don't
69680         increment buffer pointer beyond buffer end.  Based on comments
69681         from Paul Eggert <eggert@cs.ucla.edu>.
69682
69683         * lib/base64.h: Indent.
69684
69685 2005-06-28  Simon Josefsson  <jas@extundo.com>
69686
69687         * doc/gnulib.texi (Library version handling): New section.
69688
69689 2005-06-28  Jim Meyering  <jim@meyering.net>
69690
69691         * check-module (find_included_lib_files): Hard-code another
69692         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69693         but modules/fts-lgpl (correctly) does not list those files.
69694
69695         * modules/canonicalize (Files): Add lib/pathmax.h.
69696
69697 2005-06-25  Simon Josefsson  <jas@extundo.com>
69698
69699         * modules/check-version: New file.
69700
69701 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69704         initializer of struct addrinfo, as an indication that we don't
69705         care how many members the structure has.
69706
69707 2005-06-24  Derek Price  <derek@ximbiot.com>
69708         and Bruno Haible  <bruno@clisp.org>
69709
69710         Remove stat module & update lstat.
69711         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69712         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69713         * m4/stat.m4: Remove this file.
69714
69715 2005-06-24  Derek Price  <derek@ximbiot.com>
69716         and Bruno Haible  <bruno@clisp.org>
69717
69718         Remove stat module & update lstat.
69719         * lib/stat.c: Remove this file...
69720         (slash_aware_lstat): ...moving this content and its support...
69721         * lib/lstat.c (rpl_lstat): ...into here.
69722         * lib/lstat.h: New file.
69723
69724 2005-06-24  Derek Price  <derek@ximbiot.com>
69725         and Bruno Haible  <bruno@clisp.org>
69726
69727         Remove stat module & update lstat.
69728         * config/srclist.txt (libc sources): Remove stat.
69729
69730 2005-06-24  Derek Price  <derek@ximbiot.com>
69731         and Bruno Haible  <bruno@clisp.org>
69732
69733         Remove stat module & update lstat.
69734         * MODULES.html.sh (stat): Remove.
69735         * MODULES.html: Regenerated.
69736         * modules/lstat (Description): Correct function name.
69737         (Files): Add "lstat.h".
69738         (Depends-on): Remove stat, add xalloc, stat-macros.
69739         * modules/stat: Remove this file.
69740         (Include): Add "lstat.h", remove <sys/stat.h>.
69741
69742 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69743
69744         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69745         (ranged_convert): Don't save conversion in a temporary struct.
69746         This causes a warning with GCC 4.0.0, and anyway in the typical
69747         case it's not worth the extra 100 bytes or so of code.
69748         (ranged_convert, __mktime_internal): When calling a function via a
69749         pointer P, use P () rather than (*P) (), as we now assume C89 or
69750         better.
69751
69752 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69755         "who -r" failed to give output.  Problem reported by Tim Waugh.
69756
69757         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69758         (xcalloc): Use it to avoid needless tests.
69759         Problem reported by Jim Meyering.
69760
69761 2005-06-20  Derek Price  <derek@ximbiot.com>
69762
69763         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69764         unnecessary for Autoconfs > 2.59c.
69765
69766 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69767
69768         * lib/argp.h (__option_is_short): Check upper limit of
69769         __key. Isprint() requires its argument to have the value
69770         of an unsigned char or EOF.
69771
69772 2005-06-16  Jim Meyering  <jim@meyering.net>
69773
69774         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69775         when either N or S is zero.
69776
69777 2005-06-16  Derek Price  <derek@ximbiot.com>
69778
69779         * m4/bison.m4: Declare YACC & YFLAGS precious.
69780
69781 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69782
69783         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69784         multibyte string or pattern, fall back on unibyte matching.
69785         Problem reported by James Youngman.
69786
69787 2005-06-08  Bruno Haible  <bruno@clisp.org>
69788
69789         * modules/csharpcomp: New file.
69790         * MODULES.html.sh (C#): Add csharpcomp.
69791
69792 2005-06-08  Bruno Haible  <bruno@clisp.org>
69793
69794         * m4/csharpcomp.m4: New file, from GNU gettext.
69795
69796 2005-06-08  Bruno Haible  <bruno@clisp.org>
69797
69798         * lib/csharpcomp.h: New file, from GNU gettext.
69799         * lib/csharpcomp.c: New file, from GNU gettext.
69800         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69801
69802 2005-06-08  Bruno Haible  <bruno@clisp.org>
69803
69804         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69805         warning on mingw.
69806
69807 2005-06-07  Derek Price  <derek@ximbiot.com>
69808
69809         Sync from CVS.
69810         * lib/glob_.h: Indent nested #ifdef.
69811
69812 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69813
69814         Sync from coreutils.
69815         Use "file name" when talking about file names, instead of "filename"
69816         or "path", as per the GNU coding standards.
69817         * lib/mkdir-p.c: Renamed from makepath.c.
69818         (make_dir_parents): Renamed from make_path.  All callers changed.
69819         * lib/mkdir-p.h: Likewise.  All includers changed.
69820         * lib/filenamecat.c: Renamed from path-concat.c.
69821         (file_name_concat): Renamed from path_concat.  All callers changed.
69822         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69823         * lib/filenamecat.h: Likewise.  All includers changed.
69824         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69825         in comments or local variable names.
69826         * lib/basename.c: Likewise.
69827         * lib/canonicalize.c, canonicalize.h: Likewise.
69828         * lib/dirname.c, dirname.h: Likewise.
69829         * lib/euidaccess.c: Likewise.
69830         * lib/exclude.c: Likewise
69831         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69832         * lib/fsusage.c, fsuage.h: Likewise.
69833         * lib/fts.c, fts_.h: Likewise.
69834         * lib/getcwd.c: Likewise.
69835         * lib/getloadavg.c: Likewise.
69836         * lib/mkstemp.c: Likewise.
69837         * lib/mountlist.c, mountlist.h: Likewise.
69838         * lib/openat.c, openat.h: Likewise.
69839         * lib/readlink-stub.c: Likewise.
69840         * lib/readutmp.c, readutmp.h: Likewise.
69841         * lib/rename.c: Likewise.
69842         * lib/rmdir.c: Likewise.
69843         * lib/same.c: Likewise.
69844         * lib/savedir.c: Likewise.
69845         * lib/stripslash.c: Likewise.
69846         * lib/tempname.c: Likewise.
69847         * lib/xreadlink.c: Likewise.
69848         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69849         All uses changed.
69850         * lib/exclude.h: Likewise.
69851
69852         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69853         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69854         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69855         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69856         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69857         files have been getting away with it for years (MORE/BSD 4.3
69858         is extinct now).
69859         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69860         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69861
69862         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69863         Define to 256, not 255, as per modern POSIX.
69864
69865 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69866
69867         Sync from coreutils.
69868         Use "file name" when talking about file names, instead of "filename"
69869         or "path", as per the GNU coding standards.
69870         * MODULES.html.sh: mkdir-p renamed from makepath.
69871         filenamecat renamed from path-concat.
69872         * modules/filenamecat: Renamed from modules/path-concat.
69873         (Files): filenamecat.h and filenamecat.c renamed from
69874         path-concat.h and path-concat.c.
69875         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69876         (Include): filenamecat.h, not path-concat.h.
69877         * modules/mkdir-p: Renamed from modules/makepath.
69878         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69879         makepath.c.
69880         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69881         (Include): mkdir-p.h, not makepath.h.
69882
69883 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         Sync from coreutils.
69886         * m4/mkdir-p.m4: Renamed from makepath.m4.
69887         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69888         Rename files from makepath.c to mkdir-p.c, and from
69889         makepath.h to mkdir-p.h.
69890         * m4/filenamecat.m4: Renamed from path-concat.m4.
69891         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69892         Rename files from path-concat.c to filenamecat.c,
69893         and from path-concat.h to filenamecat.h.
69894         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69895         "file name" in local variables or comments.
69896         * m4/rename.m4: Likewise.
69897
69898 2005-06-01  Bruno Haible  <bruno@clisp.org>
69899
69900         * modules/csharpexec: New file.
69901         * MODULES.html.sh (C#): New section.
69902
69903 2005-06-01  Bruno Haible  <bruno@clisp.org>
69904
69905         * m4/csharp.m4: New file, from GNU gettext.
69906         * m4/csharpexec.m4: New file, from GNU gettext.
69907
69908 2005-06-01  Bruno Haible  <bruno@clisp.org>
69909
69910         * lib/csharpexec.h: New file, from GNU gettext.
69911         * lib/csharpexec.c: New file, from GNU gettext.
69912         * lib/csharpexec.sh.in: New file, from GNU gettext.
69913
69914 2005-05-31  Derek Price  <derek@ximbiot.com>
69915             Paul Eggert  <eggert@cs.ucla.edu>
69916
69917         Sync from cvs.
69918         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69919
69920 2005-05-31  Derek Price  <derek@ximbiot.com>
69921             Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         Sync from cvs.
69924         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69925
69926 2005-05-29  Derek Price  <derek@ximbiot.com>
69927
69928         * config/srclist.txt (glob_.h, glob.c): Add these files.
69929
69930 2005-05-29  Derek Price  <derek@ximbiot.com>
69931
69932         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69933         * modules/glob: New file.
69934         * modules/getlogin_r: Add link to POSIX spec in description.
69935
69936 2005-05-29  Derek Price  <derek@ximbiot.com>
69937             Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * m4/glob.m4: New file.
69940
69941 2005-05-29  Derek Price  <derek@ximbiot.com>
69942             Paul Eggert  <eggert@cs.ucla.edu>
69943
69944         * lib/glob_.h, lib/glob.c: New files.
69945
69946 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69947
69948         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69949         * modules/fts-lgpl (Depends-on): Remove gettext.
69950
69951 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69952
69953         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69954         and don't require gt_INTTYPES_PRI.
69955
69956 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69957
69958         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69959
69960         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69961         the configuration hassle isn't worth it.
69962         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69963         (LONGEST_MODIFIER, PRIuMAX): Remove.
69964
69965 2005-05-27  Bruno Haible  <bruno@clisp.org>
69966
69967         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69968
69969 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69972         _POSIX_PTHREAD_SEMANTICS for Solaris.
69973
69974 2005-05-25  Derek Price  <derek@ximbiot.com>
69975
69976         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69977
69978 2005-05-25  Derek Price  <derek@ximbiot.com>
69979             Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69982         * lib/getlogin_r.c, getlogin_r.h: New files.
69983
69984 2005-05-25  Bruno Haible  <bruno@clisp.org>
69985             Derek Price  <derek@ximbiot.com>
69986
69987         * lib/getlogin_r.h: Simplify API documentation.
69988
69989 2005-05-23  Derek Price  <derek@ximbiot.com>
69990
69991         * modules/minmax (Files): Add m4/minmax.m4.
69992         (configure.ac): Add gl_MINMAX.
69993
69994 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69997         so that unistd-safer.h (GPL'ed code) need not be included.
69998
69999 2005-05-22  Bruno Haible  <bruno@clisp.org>
70000
70001         * m4/minmax.m4: New file.
70002         Based on a patch by Derek Price <derek@ximbiot.com>.
70003
70004 2005-05-22  Bruno Haible  <bruno@clisp.org>
70005
70006         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
70007         (INT64_MIN): Fix definition.
70008         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
70009
70010         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
70011         NEED_SIGNED_INT_TYPES.
70012
70013         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
70014         HAVE_SYSTEM_INTTYPES.
70015
70016 2005-05-22  Bruno Haible  <bruno@clisp.org>
70017
70018         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
70019         Also include <sys/param.h> if it defines MIN, MAX.
70020         Based on a patch by Derek Price <derek@ximbiot.com>.
70021
70022 2005-05-21  Jim Meyering  <jim@meyering.net>
70023
70024         * modules/fts (Files): Add m4/inttypes-pri.m4.
70025         (Depends-on): Add lstat and remove gettext.  Alphabetize.
70026
70027 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         New fts module.
70030         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
70031         (setup_dir, free_dir): New functions.
70032         (enter_dir, leave_dir): Define trivial
70033         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
70034         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
70035         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
70036         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
70037         Move to fts-cycle.c.
70038         (fts_open): Use setup_dir.
70039         (fts_close): Use free_dir.
70040         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
70041         This adds a label and some gotos, but the alternatives were messier.
70042         Check for memory allocation failure when entering a dir.
70043         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
70044         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
70045         (FTS): New member fts_cycle, that is a union that contains the
70046         old active_dir_ht and cycle_state.  All uses changed to mention
70047         fts_cycle.ht and fts_cycle.state.
70048         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
70049         fts.c, with the following changes:
70050         (setup_dir, free_dir): New functions.
70051         (enter_dir): Now returns bool.  Return true if successful, false
70052         if memory exhausted.  All callers changed.
70053         Do not bother partly cleaning up on
70054         memory allocation failure; that is free_dir's job.
70055         However, free ad if hash_insert fails, to avoid memory leak.
70056         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
70057         fts->fts_options to see which union member to use.
70058
70059 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70060
70061         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
70062         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
70063
70064 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70065
70066         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
70067
70068 2005-05-20  Jim Meyering  <jim@meyering.net>
70069
70070         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
70071         Now a macro, to pacify GCC.
70072
70073 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70074
70075         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
70076         of -1.
70077
70078 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70079
70080         * lib/chown.c (rpl_chown): Return -1 on failure.
70081
70082 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
70085         Don't check for stddef.h.
70086         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
70087         don't use its results.
70088         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
70089         since we include them unconditionally.  Don't require
70090         AM_STDBOOL_H, since stdbool is a prerequisite.
70091         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
70092         since we assume C89 or better.
70093         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
70094         as we don't use their results.
70095         Don't check for fchdir, memmove, memset, strrchr, as we use
70096         them unconditionally.
70097         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
70098         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
70099
70100 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70101
70102         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
70103         Include <stddef.h> unconditionally, since we assume C89 now.
70104         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
70105         * lib/fts.c: Include fts_.h first, to check interface.
70106         Do not include intprops.h; no longer needed.
70107         Include cycle-check.h and hash.h, since fts_.h no longer does.
70108         Remove unnecessary casts of closedir to void.
70109         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
70110         decide whether to decrement nlinks.
70111         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
70112         (FTS): Use struct hash_table * instead of Hash_table, so that
70113         we no longer need to include hash.h here.
70114
70115 2005-05-18  Jim Meyering  <jim@meyering.net>
70116
70117         * modules/dirfd (License): Change to LGPL.  Most of the code
70118         is already in the public domain.
70119
70120 2005-05-18  Jim Meyering  <jim@meyering.net>
70121
70122         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
70123         Reported by Yoann Vandoorselaere.
70124
70125 2005-05-17  Jim Meyering  <jim@meyering.net>
70126
70127         * m4/fts.m4: New file, from coreutils.
70128
70129 2005-05-17  Jim Meyering  <jim@meyering.net>
70130
70131         * lib/fts.c, lib/fts_.h: New files, from coreutils.
70132
70133 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70134
70135         Sync from coreutils.
70136         * m4/unlinkdir.m4: New file.
70137
70138 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70139
70140         Sync from coreutils.
70141         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
70142         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
70143         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
70144         White space changes only.
70145         * lib/makepath.c (make_path): Port to hosts where leading "//" is
70146         special.
70147         * lib/yesno.c: Include getline.h, not ctype.h.
70148         (yesno): Don't remove leading white space; POSIX doesn't allow it.
70149         Use getline to remove arbitrary restriction on response length.
70150
70151 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70152
70153         * config/srclist-update: Spell out "Street" in FSF postal
70154         mail address; this is the style the FSF seems to prefer.
70155
70156         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
70157         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
70158         this updates FSF postal mail address.
70159
70160         Sync from coreutils.
70161         * modules/unlinkdir: New file.
70162         * modules/yesno (Depends-on): Add getline.
70163         * MODULES.html.sh (File system functions): Add unlinkdir.
70164
70165 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
70168         lib/strsep.h:
70169         Change the initial comment to refer to GPL, not LGPL.
70170         gnulib-tool will change it to LGPL as needed.
70171
70172         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
70173         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
70174         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
70175         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
70176         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
70177         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
70178         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
70179         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
70180         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
70181         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
70182         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
70183         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
70184         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
70185         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
70186         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
70187         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
70188         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
70189         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
70190         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
70191         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
70192         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
70193         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
70194         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
70195         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
70196         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
70197         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
70198         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
70199         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
70200         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
70201         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
70202         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
70203         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
70204         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
70205         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
70206         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
70207         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
70208         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
70209         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
70210         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
70211         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
70212         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
70213         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
70214         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
70215         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
70216         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
70217         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
70218         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
70219         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
70220         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
70221         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
70222         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70223         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
70224         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
70225         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
70226         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
70227         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
70228         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
70229         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
70230         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
70231         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
70232         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
70233         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
70234         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
70235         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
70236         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
70237         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
70238         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
70239         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
70240         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
70241         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
70242         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
70243         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
70244         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
70245         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
70246         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
70247         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
70248         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
70249         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
70250         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
70251         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
70252         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
70253         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
70254         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
70255         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
70256         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
70257         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
70258         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
70259         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
70260         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
70261         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
70262         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
70263         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
70264         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
70265         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
70266         lib/yesno.c, lib/yesno.h:
70267         Update FSF postal mail address.
70268
70269 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70270
70271         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
70272         tests/test-memmem.c, tests/test-stpncpy.c:
70273         Update FSF postal mail address.
70274
70275 2005-05-13  Bruno Haible  <bruno@clisp.org>
70276
70277         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
70278         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
70279         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
70280         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
70281         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
70282         Add support for 64-bit integers in the MSVC compiler.
70283
70284 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70285
70286         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
70287
70288 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
70289
70290         * gnulib-tool (func_import): Sort and uniquify recommended includes.
70291
70292 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
70293
70294         * doc/getdate.texi (General date syntax): Don't say that date
70295         date --iso-8601=ns generates acceptable dates; it doesn't yet.
70296         Problem reported by Nic Ferrier.
70297
70298 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70299
70300         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
70301         specified in ai_socktype. Fix invalid ai_protocol
70302         check. ai_protocol is usually set to 0 or depending on
70303         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
70304         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
70305         ai_socktype / ai_protocol in the returned addrinfo structure.
70306
70307 2005-05-10  Simon Josefsson  <jas@extundo.com>
70308
70309         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
70310         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70311
70312 2005-05-10  Karl Berry  <karl@gnu.org>
70313
70314         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
70315         (from http://www.gnu.org/licenses).
70316         * doc/COPYING.LIB: also rename to COPYING.LESSER.
70317         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
70318         fdl.texi suffices.
70319
70320 2005-05-10  Karl Berry  <karl@gnu.org>
70321
70322         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
70323         (COPYING.DOC): remove.
70324
70325         * config/srclist-update: new FSF address.
70326
70327 2005-05-10  Derek Price  <derek@ximbiot.com>
70328
70329         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
70330         possible.
70331
70332 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70333             Bruno Haible  <bruno@clisp.org>
70334
70335         * modules/inet_ntop: New file.
70336         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70337         inet_ntop.
70338
70339 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70340             Bruno Haible  <bruno@clisp.org>
70341
70342         * m4/inet_ntop.m4: New file.
70343
70344 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70345             Bruno Haible  <bruno@clisp.org>
70346
70347         * lib/inet_ntop.h: New file.
70348         * lib/inet_ntop.c: New file, from glibc with modifications.
70349
70350 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
70351
70352         * modules/time_r (License): Change to LGPL.
70353         * modules/extensions (License): Change to LGPL.  Actually,
70354         the license is more permissive than that, but currently gnulib-tool
70355         doesn't know how to handle more-permissive licenses.
70356
70357         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
70358         Problem reported by Dave Love.
70359
70360 2005-05-08  Jim Meyering  <jim@meyering.net>
70361
70362         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
70363         blank.
70364
70365 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70366
70367         * modules/argmatch (Depends-on): Add stdbool.
70368         * modules/backupfile (Depends-on): Likewise.
70369         * modules/chdir-long (Depends-on): Likewise.
70370         * modules/closeout (Depends-on): Likewise.
70371         * modules/cycle-check (Depends-on): Likewise.
70372         * modules/dirname (Depends-on): Likewise.
70373         * modules/fnmatch (Depends-on): Likewise.
70374         * modules/fsusage (Depends-on): Likewise.
70375         * modules/fwriteerror (Depends-on): Likewise.
70376         * modules/getcwd (Depends-on): Likewise.
70377         * modules/getloadavg (Depends-on): Likewise.
70378         * modules/hard-locale (Depends-on): Likewise.
70379         * modules/makepath (Depends-on): Likewise.
70380         * modules/mountlist (Depends-on): Likewise.
70381         * modules/nanosleep (Depends-on): Likewise.
70382         * modules/posixtm (Depends-on): Likewise.
70383         * modules/quotearg (Depends-on): Likewise.
70384         * modules/readtokens (Depends-on): Likewise.
70385         * modules/readtokens0 (Depends-on): Likewise.
70386         * modules/readutmp (Depends-on): Likewise.
70387         * modules/save-cwd (Depends-on): Likewise.
70388         * modules/strftime (Depends-on): Likewise.
70389         * modules/userspec (Depends-on): Likewise.
70390         * modules/utimecmp (Depends-on): Likewise.
70391         * modules/xgetcwd (Depends-on): Likewise.
70392         * modules/xnanosleep (Depends-on): Likewise.
70393         * modules/xstrtod (Depends-on): Likewise.
70394         * modules/yesno (Depends-on): Likewise.
70395
70396 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
70397
70398         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
70399         needless checks.
70400
70401 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70402
70403         Merge from coreutils.  Among other things,
70404         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70405         * lib/fd-safer.c: New file.
70406         * lib/fcntl-safer.h, open-safer.c: Remove.
70407         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70408         * lib/dup-safer.c: Include unistd-safer.h first.
70409         Don't include errno.h.
70410         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70411         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70412         * lib/file-type.c: Rely on file-type.h change.
70413         * lib/getloadavg.c: Include unistd-safer.h.
70414         (getloadavg): Use safer open.
70415         * lib/getusershell.c: Include "stdio-safer.h".
70416         (getusershell): Use safer fopen.
70417         * lib/long-options.c (long_options): Use NULL rather than 0.
70418         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70419         'free'.
70420         * lib/modechange.c: Likewise.
70421         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70422         (MODE_DONE): New constant.
70423         (struct mode_change): Remove 'next' member.
70424         (make_node_op_equals): New function; like the old one of the
70425         same name, except it allocates an array.
70426         (mode_compile, mode_create_from_ref): Use it.
70427         (mode_compile): Allocate result as an array, not a linked list.
70428         Parse octal string ourself, so that we catch mistakes like "+0".
70429         (mode_adjust): Arg is an array, not a linked list.
70430         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70431         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70432         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70433         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70434         Remove.  This is now stat-macros.h's job.
70435         (talloc): Remove.  All callers replaced by xalloc, so that
70436         our invokers don't have to worry about reporting memory failures.
70437         (make_node_op_equals): Remove.
70438         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70439         New constants.
70440         (struct mode_change): Moved here from modechange.h.
70441         (mode_append_entry): Remove.
70442         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70443         apps to have incorrect behavior.  Use simpler algorithm for head
70444         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70445         Detect more invalid usages rather than having somewhat-random behavior.
70446         Don't insert an "a=" action, as that leads to incorrect behavior.
70447         (mode_compile, mode_create_from_ref): Return NULL on error instead
70448         of an enum, since now there's only one way to have an error.  All
70449         callers changed.
70450         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70451         at the correct time.  Simplify calculation of "+u" and its ilk.
70452         Don't mishandle "+X".
70453         (mode_free): Remove "register" and localize decls.
70454         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70455         (struct mode_change): Move to modechange.c; callers don't
70456         need to see this stuff.
70457         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70458         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70459         (mode_change, mode_adjust): Reflect the new signatures noted above.
70460         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70461         that might redefine system include files.
70462         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70463         (my_usleep): Use NULL rather than (void *) 0.
70464         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70465         Use siginterrupt to specify that system calls should be interrupted.
70466         (rpl_nanosleep): Move initialization of suspended closer to call of
70467         my_usleep.
70468         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70469         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70470         (desirable_utmp_entry): New function.
70471         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70472         using x2nrealloc, to simplify logic.
70473         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70474         size calculation.  Do not assume utmp file is a regular file.
70475         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70476         (READ_UTMP_CHECK_PIDS): New constant.
70477         * lib/save-cwd.c: Include unistd-safer.h.
70478         (save_cwd): Use fd_safer.
70479         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70480         [!_LIBC] Include "stat-macros.h" instead.
70481         * lib/unistd-safer.h (fd_safer): New decl.
70482
70483 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70484
70485         * modules/getloadavg (Depends-on): Add unistd-safer.
70486         * modules/getusershell (Depends-on): Add stdio-safer.
70487         * modules/lstat (Depends-on): Remove xalloc.
70488         * modules/mkstemp (Depends-on): Add stat-macros.
70489         * modules/modechange (Depends-on): Remove xstrtol.
70490         Add stat-macros, xalloc.
70491         * modules/save-cwd (Depends-on): Add unistd-safer.
70492         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70493         * modules/unistd-safer (Files): Add lib/fd-safer.c
70494         (Makefile.am): Remove lib_SOURCES.
70495
70496         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70497         Remove fcntl-safer; unistd-safer supersedes it.
70498
70499 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70500
70501         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70502         AC_HEADER_STAT.
70503         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70504         (gl_PREREQ_CHOWN): Remove.
70505         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70506         it.  Don't require AC_HEADER_STAT.
70507         (gl_PREREQ_LSTAT): Remove.
70508         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70509         Don't require AC_HEADER_STAT.
70510         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70511         (gl_PREREQ_RMDIR): Remove.
70512         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70513         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70514         the stat-macros module a prerequisite.
70515         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70516         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70517         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70518         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70519         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70520         variable names.
70521         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70522         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70523         variable prefixes.
70524         * m4/fcntl-safer.m4: Remove.
70525         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70526         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70527         Invoke gl_PREREQ_FD_SAFER.
70528         (gl_PREREQ_FD_SAFER): New macro.
70529         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70530         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70531         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70532         Remove duplicate call to AC_LIBOBJ(readutmp).
70533         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70534
70535         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70536         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70537
70538 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70539
70540         * MODULES.html.sh (Misc): Add byteswap.
70541
70542 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70543
70544         * modules/getcwd (Depends-on): Add extensions.
70545         * modules/openat (Depends-on): Likewise.
70546
70547 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70548
70549         * modules/byteswap: New file.
70550
70551 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70552
70553         * m4/byteswap.m4: New file.
70554
70555 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70556
70557         * lib/byteswap_.h: New file.
70558
70559 2005-04-25  Karl Berry  <karl@gnu.org>
70560
70561         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70562
70563 2005-04-25  Albert Chin  <china@thewrittenword.com>
70564
70565         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70566         Toolkit C bug.
70567
70568 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70569
70570         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70571         (func_ln_if_changed): Remove forcibly for no error message
70572         in case file does not exist.
70573
70574 2005-04-19  Simon Josefsson  <jas@extundo.com>
70575
70576         * gnulib-tool (Options): Make --symlink mean --symbolic.
70577
70578 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70579
70580         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70581
70582 2005-04-16  Simon Josefsson  <jas@extundo.com>
70583
70584         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70585
70586 2005-04-15  Simon Josefsson  <jas@extundo.com>
70587
70588         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70589
70590 2005-04-15  Simon Josefsson  <jas@extundo.com>
70591
70592         * gnulib-tool: Rename --symlink to --symbolic.
70593
70594 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70595
70596         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70597         symbolic links to files instead of copying/moving.  Add --aux-dir,
70598         specifying directory relative --dir where auxiliary build tools
70599         are placed.
70600
70601 2005-04-14  Bruno Haible  <bruno@clisp.org>
70602
70603         * modules/allocsa (License): Change to LGPL.
70604         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70605
70606 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70607
70608         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70609         that "UTC +1 second" continues to work.  Problem reported
70610         by Dmitry V. Levin.
70611         (relunit_snumber): New rule.
70612         (relunit): Use it.
70613
70614 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * lib/getdate.y (universal_time_zone_table): New constant.
70617         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70618         universal_time_zone_table.
70619         (lookup_zone): Prefer universal_time_zone_table to
70620         local_time_zone_table, so that "GMT" time stamps are allowed in
70621         London during the summer.  Problem reported by Ian Abbott.
70622
70623 2005-04-12  Jim Meyering  <jim@meyering.net>
70624
70625         * lib/human.c (humblock): Set *options even when returning due to
70626         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70627         warning from gcc-4.
70628
70629 2005-04-09  Jim Meyering  <jim@meyering.net>
70630
70631         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70632         -Wuninitialized: initialize tm0.tm_year.
70633
70634 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70637         count, since there's no maximum.  All uses changed.
70638         Add member dsts_seen.
70639         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70640         not being INT_MAX.
70641         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70642         Use pc_rels_seen to decide whther a date is absolute.
70643
70644         * lib/getdate.y (number): Don't overwrite year.
70645         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70646         check.
70647
70648 2005-04-02  Simon Josefsson  <jas@extundo.com>
70649
70650         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70651         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70652
70653 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70654
70655         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70656         where no absolute path name can be longer than PATH_MAX.
70657
70658 2005-03-27  Jim Meyering  <jim@meyering.net>
70659
70660         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70661
70662 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70663
70664         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70665         "one's complement" -> "ones' complement" in comment, as per Knuth.
70666         "value of type" -> "type or expression" in comment.
70667         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70668
70669 2005-03-26  Jim Meyering  <jim@meyering.net>
70670
70671         Comment nits.
70672         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70673         Correct typos: s/or/of/.
70674
70675 2005-03-26  Jim Meyering  <jim@meyering.net>
70676
70677         * modules/check-include-files: Move to ../ and rename to...
70678         * check-module: ...this.
70679
70680 2005-03-25  Jim Meyering  <jim@meyering.net>
70681
70682         * modules/xvasprintf (Files): Add xalloc.h.
70683
70684 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70685
70686         * modules/gettext (Files): config/config.rpath ->
70687         build-aux/config.rpath
70688         * modules/iconv (Files): Likewise.
70689         Problem reported by Oskar Liljeblad.
70690
70691 2005-03-23  Jim Meyering  <jim@meyering.net>
70692
70693         * modules/check-include-files: New script to check for
70694         missing dependencies, multiple includes, etc.
70695
70696         * modules/c-strtold (Depends-on): Add xalloc.
70697         * modules/c-strtod (Depends-on): Add xalloc.
70698         * modules/hash (Depends-on): Add xalloc.
70699         (Files): Remove lib/xalloc.h.
70700
70701         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70702         * modules/userspec (Files): Add lib/inttostr.h.
70703
70704 2005-03-23  Jim Meyering  <jim@meyering.net>
70705
70706         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70707
70708 2005-03-22  Jim Meyering  <jim@meyering.net>
70709
70710         * modules/stat-macros: New module.
70711         * modules/canonicalize, modules/euidaccess, modules/file-type,
70712         * modules/filemode, modules/lchown, modules/makepath,
70713         * modules/rmdir, modules/stat: Depend on new stat-macros module
70714         rather than listing lib/stat-macros.h manually.
70715         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70716
70717 2005-03-22  Jim Meyering  <jim@meyering.net>
70718
70719         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70720
70721 2005-03-22  Bruno Haible  <bruno@clisp.org>
70722
70723         * config/srclist.txt: Replace target directory 'config' with
70724         'build-aux'.
70725         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70726         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70727         ../build-aux/.
70728
70729 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * modules/chdir-long (Depends-on): Add mempcpy.
70732
70733         * modules/acl, modules/backupfile, modules/c-strtod,
70734         modules/c-strtold, modules/canon-host, modules/canonicalize,
70735         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70736         modules/exclude, modules/exitfail, modules/file-type,
70737         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70738         modules/getdate, modules/getline, modules/getpagesize,
70739         modules/getpass, modules/getugroups, modules/group-member,
70740         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70741         modules/inttostr, modules/long-options, modules/makepath,
70742         modules/md5, modules/memcasecmp, modules/memcoll,
70743         modules/modechange, modules/mountlist, modules/path-concat,
70744         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70745         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70746         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70747         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70748         modules/strftime, modules/strndup, modules/strverscmp,
70749         modules/timespec, modules/unlocked-io, modules/userspec,
70750         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70751         modules/yesno:
70752         Remove lib_SOURCES line from Makefile.am section, as this is now
70753         done automatically by the corresponding Autoconf macro.
70754
70755 2005-03-21  Jim Meyering  <jim@meyering.net>
70756
70757         Changes imported from coreutils.
70758
70759         * lib/cycle-check.c: Don't include xalloc.h.
70760
70761         * lib/path-concat.c: Don't include assert.h.
70762         (path_concat): Remove assertion that would have triggered
70763         for ABASE starting with more than one slash.
70764         Reported by Andreas Schwab.
70765
70766         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70767         properly when ABASE is an absolute file name.
70768         Correct the description of this function.
70769         Include <assert.h>.
70770         Add an assertion and a test driver.
70771         This fixes a bug introduced on 2004-07-02.
70772         Andreas Schwab reported the resulting failure of cp --parents:
70773         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70774
70775 2005-03-21  Jim Meyering  <jim@meyering.net>
70776
70777         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70778         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70779
70780 2005-03-21  Jim Meyering  <jim@meyering.net>
70781         and  Paul Eggert  <eggert@cs.ucla.edu>
70782
70783         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70784         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70785         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70786         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70787         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70788         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70789         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70790         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70791         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70792         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70793         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70794         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70795         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70796         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70797         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70798         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70799         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70800         for these modules.
70801
70802 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70805         (which shouldn't happen), generate nothing instead of returning 0
70806         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70807
70808 2005-03-16  Bruno Haible  <bruno@clisp.org>
70809
70810         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70811         HAVE_LONGLONG_64BIT.
70812
70813 2005-03-16  Bruno Haible  <bruno@clisp.org>
70814
70815         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70816         HAVE_LONGLONG_64BIT.
70817
70818 2005-03-16  Bruno Haible  <bruno@clisp.org>
70819
70820         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70821         HAVE_LONGLONG_64BIT.
70822
70823 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70824
70825         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70826         reliably distinguish strftime failure from empty output on POSIX
70827         hosts.
70828
70829 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70830
70831         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70832         (iconv_string): Don't guess a size-zero buffer, as that might cause
70833         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70834         result would be 'too large', where 'too large' is (heuristically)
70835         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70836         overflow concerns.  This will prevent some unwanted malloc failures
70837         when the inputs are very large.
70838
70839 2005-03-15  Karl Berry  <karl@gnu.org>
70840
70841         * config/srclist.txt (config.rpath): from gettext.
70842         * config/config.rpath: update.
70843
70844 2005-03-15  Bruno Haible  <bruno@clisp.org>
70845
70846         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70847         to 'negate'.
70848
70849         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70850         variable.
70851
70852         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70853         results.
70854
70855 2005-03-14  Simon Josefsson  <jas@extundo.com>
70856
70857         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70858         <fx@gnu.org>.
70859
70860 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70861
70862         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70863         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70864         intprops.h.
70865         * lib/strtol.c: Likewise.
70866
70867 2005-03-14  Jim Meyering  <jim@meyering.net>
70868
70869         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70870         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70871         to be nonzero so that we (and caller) can detect the difference
70872         between a valid zero-length expansion and an error return, even
70873         when the underlying strftime fails before writing anything into
70874         that location.
70875
70876 2005-03-14  Bruno Haible  <bruno@clisp.org>
70877
70878         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70879         Update from GNU gettext 0.14.3.
70880
70881 2005-03-10  Jim Meyering  <jim@meyering.net>
70882
70883         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70884
70885 2005-03-10  Jim Meyering  <jim@meyering.net>
70886
70887         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70888         so that this module works on systems without fchdir.
70889
70890 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70891
70892         Factor int-properties macros into a single file, except for
70893         glibc-related files.
70894         * lib/intprops.h: New file.
70895         * lib/getloadavg.c: Include it instead of limits.h.
70896         (INT_STRLEN_BOUND): Remove.
70897         * lib/human.c: Include intprops.h.
70898         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70899         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70900         302/1000.
70901         * lib/inttostr.h: Include intprops.h instead of limits.h.
70902         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70903         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70904         for consistency with intprops.h.
70905         (time_t_is_integer, twos_complement_arithmetic): Use them.
70906         * lib/sig2str.h: Include <signal.h>, intprops.h.
70907         (INT_STRLEN_BOUND): Remove.
70908         * lib/strftime.c (TYPE_SIGNED): Remove.
70909         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70910         * lib/strtol.c: Adjust comments to match intprops.h.
70911         * lib/userspec.c: Include intprops.h.
70912         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70913         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70914         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70915         instead of rolling our own expressions.
70916         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70917
70918         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70919         instead of int.
70920         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70921         the right thing even if adding 1900 would overflow.  Similarly
70922         for tm_mon + 1 and tm_yday + 1.
70923         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70924         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70925         (DO_SIGNED_NUMBER): New macro.
70926         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70927
70928 2005-03-07  Bruno Haible  <bruno@clisp.org>
70929
70930         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70931
70932 2005-03-07  Bruno Haible  <bruno@clisp.org>
70933
70934         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70935
70936 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70937
70938         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70939         (func_import): Only replace files via --import when they have actually
70940         changed.
70941
70942 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70943
70944         * m4/mmap-anon.m4: New file.
70945         * m4/pagealign_alloc.m4: New file.
70946
70947 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70948             Bruno Haible  <bruno@clisp.org>
70949
70950         * modules/pagealign_alloc: New file.
70951         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70952
70953 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70954             Bruno Haible  <bruno@clisp.org>
70955
70956         * lib/pagealign_alloc.h: New file.
70957         * lib/pagealign_alloc.c: New file.
70958
70959 2005-03-03  Bruno Haible  <bruno@clisp.org>
70960
70961         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70962         Use an all-permissive copyright notice, recommended by RMS.
70963
70964 2005-03-02  Bruno Haible  <bruno@clisp.org>
70965
70966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70967         of AIX, the replacement has to be done only after <string.h> is
70968         included, therefore not in config.h. stpncpy.h does the replacement,
70969         and stpncpy.c uses it.
70970
70971 2005-03-02  Bruno Haible  <bruno@clisp.org>
70972
70973         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70974         stpncpy.c uses it.
70975
70976 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70979         The workaround isn't strictly needed for POSIX conformance, and
70980         it's too much of a pain to configure and maintain.  We'll ask
70981         people to fix their kernels instead.
70982         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70983         (NANOSLEEP_BUG_WORKAROUND): Remove.
70984         (xnanosleep): Remove the workaround.
70985
70986 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70987
70988         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70989         Reported by Derek Price.
70990         (Include): Add "timespec.h".
70991
70992         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70993
70994 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70995
70996         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70997         to detect nanosleep bug.
70998
70999 2005-03-01  Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
71002
71003 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71004
71005         * modules/gethrxtime: New file.
71006         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
71007         (Depends-on): Add gethrxtime.
71008         (configure.ac): Add gl_XNANOSLEEP.
71009         (Makefile.am): Remove lib_SOURCES line.
71010
71011 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71012
71013         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
71014         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
71015
71016 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71017
71018         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
71019         * lib/timespec.h (gettime): Return void, since it always
71020         succeeds now.  All uses changed.
71021         * lib/gettime.c (gettime): Likewise.
71022         [HAVE_NANOTIME]: Prefer nanotime.
71023         Assume gettimeofday succeeds, as POSIX requires.
71024         Assime time () succeeds, since other code already does.
71025         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
71026         (timespec_subtract): Remove.
71027         (NANOSLEEP_BUG_WORKAROUND): New constant.
71028         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
71029         things considerably.  Use it only on GNU/Linux hosts, since the
71030         workaround shouldn't be needed elsewhere.
71031
71032 2005-02-24  Bruno Haible  <bruno@clisp.org>
71033
71034         * modules/gettext (Files): Add m4/glibc2.m4.
71035
71036 2005-02-24  Bruno Haible  <bruno@clisp.org>
71037
71038         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
71039         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
71040         * m4/progtest.m4:
71041         Update from GNU gettext 0.14.2.
71042         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
71043
71044 2005-02-24  Bruno Haible  <bruno@clisp.org>
71045
71046         * lib/localcharset.c: Update from GNU gettext 0.14.2.
71047         * lib/config.charset: Update from GNU gettext 0.14.2.
71048
71049 2005-02-24  Bruno Haible  <bruno@clisp.org>
71050
71051         * lib/gettext.h: Update from GNU gettext 0.14.2.
71052
71053 2005-02-23  Simon Josefsson  <jas@extundo.com>
71054
71055         * m4/iconvme.m4: New file.
71056
71057 2005-02-23  Jim Meyering  <jim@meyering.net>
71058
71059         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
71060         change.
71061         Thanks to Bruno Haible for catching it.
71062
71063 2005-02-22  Simon Josefsson  <jas@extundo.com>
71064
71065         * modules/iconvme: New file.
71066
71067         * MODULES.html.sh: Add iconvme.
71068
71069 2005-02-22  Simon Josefsson  <jas@extundo.com>
71070
71071         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
71072
71073 2005-02-22  Simon Josefsson  <jas@extundo.com>
71074
71075         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
71076
71077 2005-02-22  Jim Meyering  <jim@meyering.net>
71078
71079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
71080         s/ifndef/ifdef/.
71081
71082 2005-02-20  Neil Conway  <neilc@samurai.com>
71083
71084         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
71085         returned by OSX/Darwin if the specified buffer is not large
71086         enough for the hostname.
71087
71088 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71089
71090         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
71091         pass it to _help, otherwise the latter coredumps trying to
71092         dereference state.root_argp.
71093
71094 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71095
71096         * modules/chdir-long (Depends-on): Add memrchr.
71097         * modules/memrchr (Files): Add lib/memrchr.h.
71098         (Include): "memrchr.h".
71099
71100 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71101
71102         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
71103
71104 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * lib/memrchr.h: New file.
71107         * lib/chdir-long.c: Include it.
71108         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
71109         Don't bother including stddef.h.
71110
71111 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71112
71113         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
71114         inclusion.
71115         Include <sys/types.h>, for dev_t.
71116         (ME_DUMMY, ME_REMOTE): Move from here....
71117         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
71118         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
71119         Dmitry V. Levin.
71120         Include mountlist.h first, to test the interface.
71121
71122 2005-01-29  Bruno Haible  <bruno@clisp.org>
71123
71124         * lib/progname.c (program_name): Initialize.
71125         Needed when linking statically on MacOS X.
71126
71127 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71128
71129         Sync from coreutils.
71130         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
71131         (Depends-on): Add c-strtod.
71132         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
71133
71134 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71135
71136         Sync from coreutils.
71137         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
71138
71139         Remove files that are specific to coreutils.
71140         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
71141
71142 2005-01-28  Bruno Haible  <bruno@clisp.org>
71143
71144         * modules/javacomp: New file.
71145         * MODULES.html.sh (Java): Add javacomp.
71146
71147 2005-01-28  Bruno Haible  <bruno@clisp.org>
71148
71149         * m4/javacomp.m4: New file, from GNU gettext.
71150
71151 2005-01-28  Bruno Haible  <bruno@clisp.org>
71152
71153         * lib/javacomp.sh.in: New file, from GNU gettext.
71154         * lib/javacomp.h: New file, from GNU gettext.
71155         * lib/javacomp.c: New file, from GNU gettext.
71156
71157 2005-01-26  Simon Josefsson  <jas@extundo.com>
71158
71159         * lib/gai_strerror.c: Use GPL in header.
71160
71161 2005-01-26  Bruno Haible  <bruno@clisp.org>
71162
71163         * modules/javaexec: New file.
71164         * MODULES.html.sh (Java): Add javaexec.
71165
71166 2005-01-26  Bruno Haible  <bruno@clisp.org>
71167
71168         * m4/javaexec.m4: New file, from GNU gettext.
71169
71170 2005-01-26  Bruno Haible  <bruno@clisp.org>
71171
71172         * lib/javaexec.sh.in: New file, from GNU gettext.
71173         * lib/javaexec.h: New file, from GNU gettext.
71174         * lib/javaexec.c: New file, from GNU gettext.
71175
71176 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71177
71178         * modules/lchown (Depends-on): Remove lchown.h
71179
71180 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71181
71182         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
71183         must be defined if the header file was not found, in order
71184         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
71185
71186 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71187
71188         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
71189         initializers for struct pentry_state.
71190         (__argp_error): Check return value of __asprintf
71191         (__argp_failure): Translate error message
71192
71193         * lib/argp-parse.c: Removed braces around the expansion of N_()
71194
71195 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
71198         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
71199         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
71200         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
71201         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
71202         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
71203         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
71204         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
71205         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
71206         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
71207         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
71208         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
71209         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
71210         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
71211         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
71212         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
71213         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
71214         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
71215         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
71216         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
71217         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
71218         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
71219         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
71220         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
71221         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
71222         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
71223         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
71224         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
71225         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
71226         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
71227         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
71228         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
71229         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
71230         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
71231         xstrtol.m4, xstrtoumax.m4, yesno.m4:
71232         Use an all-permissive copyright notice, recommended by RMS.
71233
71234 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
71235
71236         * modules/chdir-long (Depends-on): Remove mempcpy.
71237
71238 2005-01-21  Jim Meyering  <jim@meyering.net>
71239
71240         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
71241         same value as for Solaris 9.
71242
71243         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
71244         component length.  This included changing the parameter to be
71245         of type `char *' rather than `char const *'.
71246         * lib/chdir-long.h (chdir_long): Update prototype.
71247
71248         * lib/openat.c (fdopendir, fstatat): New functions.
71249         * lib/openat.h: Include headers required for use of DIR and struct
71250         stat.
71251         [AT_SYMLINK_NOFOLLOW]: Define.
71252         (fdopendir, fstatat): Add prototypes.
71253
71254 2005-01-21  Bruno Haible  <bruno@clisp.org>
71255
71256         * modules/classpath: New file.
71257         * MODULES.html.sh (Java): Add classpath.
71258
71259 2005-01-21  Bruno Haible  <bruno@clisp.org>
71260
71261         * lib/classpath.h: New file, from GNU gettext.
71262         * lib/classpath.c: New file, from GNU gettext.
71263
71264 2005-01-20  Simon Josefsson  <jas@extundo.com>
71265
71266         * modules/version-etc-fsf: New file.
71267
71268 2005-01-20  Simon Josefsson  <jas@extundo.com>
71269
71270         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
71271         * lib/version-etc.c: Remove version_etc_copyright.
71272         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
71273         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
71274
71275 2005-01-20  Simon Josefsson  <jas@extundo.com>
71276
71277         * lib/base64.h (isbase64): Add.
71278
71279         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
71280         using a unsigned prototype, don't inline.
71281         (base64_decode): Use it.
71282
71283 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
71286         it.
71287
71288 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         * lib/save-cwd.c (save_cwd): Remove code to support the case
71291         where fchdir is missing or flaky.
71292
71293 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71294
71295         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
71296
71297 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71298
71299         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
71300         AC_LIBSOURCES now does this.
71301         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
71302         with new ullong_max module.
71303
71304 2005-01-19  Bruno Haible  <bruno@clisp.org>
71305
71306         * modules/sh-quote: New file.
71307         * MODULES.html.sh (Executing programs): Add sh-quote.
71308
71309 2005-01-19  Bruno Haible  <bruno@clisp.org>
71310
71311         * lib/sh-quote.h: New file, from GNU gettext.
71312         * lib/sh-quote.c: New file, from GNU gettext.
71313
71314 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71315
71316         Merge from coreutils.
71317         * m4/ullong_max.m4: New file.
71318         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
71319         (gl_MACROS): Assume localeconv exists.
71320
71321 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71322
71323         Merge changes from coreutils, as described below in several
71324         changelogs dated today.
71325
71326         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
71327         (O_DIRECTORY): Remove; not needed here, since "." must be
71328         a directory.  All uses removed.
71329         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
71330         universal on Suns, and we also need to test for IRIX.
71331         Revamp code to use 'if' rather than '#if'.
71332         Avoid unnecessary comparison of cwd->desc to 0.
71333
71334         * lib/utimens.c (futimens): Robustify the previous patch, by checking
71335         for known valid error numbers rather than observed invalid ones.
71336
71337 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         * modules/ullong_max: New file.
71340
71341         * modules/chdir-long, modules/openat: New files.
71342         * modules/save-cwd (Depends-on): Depend on chdir-long.
71343         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
71344
71345 2005-01-18  Jim Meyering  <jim@meyering.net>
71346
71347         Merge from coreutils.
71348         * m4/chdir-long.m4, m4/openat.m4: New files.
71349         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
71350         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
71351         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
71352         is sane and DOES follow symlinks.  Besides, testing 20 different
71353         systems found no broken chown implementations.
71354         Prompted by a change in rsync's copy of this macro.
71355         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
71356
71357         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
71358
71359         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
71360         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
71361         NULL-means-set-to-current-time semantics.
71362         Remove temporary file immediately, rather than waiting
71363         for configure's at-exit trap code to do it.
71364
71365 2005-01-18  Jim Meyering  <jim@meyering.net>
71366
71367         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71368
71369         * lib/utimens.c (futimens): Account for the fact that futimes
71370         can also fail with errno == ENOSYS or errno == ENOENT.
71371         Patch from Dmitry V. Levin.
71372
71373         Change the name of the robust chdir function from chdir to chdir_long.
71374         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
71375         (restore_cwd): Use chdir_long, not chdir.
71376         * lib/chdir-long.c: Renamed from chdir.c.
71377         * lib/chdir-long.h: Renamed from chdir.h.
71378         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
71379         Hurd.
71380
71381 2005-01-18  Bruno Haible  <bruno@clisp.org>
71382
71383         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
71384         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
71385         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
71386         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
71387         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
71388         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
71389         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
71390         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
71391         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
71392         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
71393         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
71394         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
71395         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
71396         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
71397         Use an all-permissive copyright notice, recommended by RMS.
71398
71399 2005-01-18  Bob Proulx  <bob@proulx.com>
71400
71401         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71402         simplify offsetof() macro construct to avoid compile failure with
71403         native HP-UX 11.0 ANSI C compiler.
71404
71405 2005-01-17  Bruno Haible  <bruno@clisp.org>
71406
71407         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71408         redundant because stpncpy.m4 takes care of it.
71409
71410 2005-01-17  Bruno Haible  <bruno@clisp.org>
71411
71412         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71413
71414 2005-01-17  Bruno Haible  <bruno@clisp.org>
71415
71416         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71417         used.
71418
71419 2005-01-17  Bruno Haible  <bruno@clisp.org>
71420
71421         * lib/fwriteerror.h (fwriteerror): Change specification to include
71422         fclose.
71423         * lib/fwriteerror.c: Include <stdbool.h>.
71424         (fwriteerror): At the end, close the file stream. Record whether
71425         stdout was already closed.
71426
71427 2005-01-17  Bruno Haible  <bruno@clisp.org>
71428
71429         * lib/execute.c (environ): Declare if needed.
71430         * lib/pipe.c (environ): Likewise.
71431         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71432
71433 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71434
71435         * modules/argp: Depend on vsnprintf
71436
71437 2005-01-10  Jim Meyering  <jim@meyering.net>
71438
71439         * modules/closeout (Depends-on): Add atexit.
71440
71441 2005-01-06  Bruno Haible  <bruno@clisp.org>
71442
71443         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71444
71445 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71446
71447         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71448         definitions to be after all include files, to avoid collisions.
71449         Problem reported by Bob Proulx.
71450
71451 2005-01-04  Jim Meyering  <jim@meyering.net>
71452
71453         Changes imported from coreutils.
71454         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71455         as the mkstemp template, use a temporary directory and an
71456         8.3-friendly template to avoid trouble on systems like DJGPP.
71457         Reported by Juan M. Guerrero via Stepan Kasal.
71458         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71459         close. Remove the temporary directory right away, rather than waiting
71460         for configure's at-exit trap code to do it.
71461         Suggestion from Stepan Kasal.
71462
71463 2005-01-01  Simon Josefsson  <jas@extundo.com>
71464
71465         * gnulib-tool: Print #include directives when --import'ing.
71466
71467 2004-12-28  Simon Josefsson  <jas@extundo.com>
71468
71469         * tests/test-base64.c: Include required header files.  Remove
71470         unused variables.
71471
71472 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71473
71474         * modules/error (Depends-on): Remove gettext.
71475
71476 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71479         not needed.  This removes a dependency on the gettext module.
71480         [defined _LIBC]: Do not include <libintl.h>; not needed.
71481
71482 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71483
71484         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71485         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71486
71487 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71488
71489         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71490         HAVE_DECL_STRTOLD.
71491
71492 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71493
71494         * modules/getdate (Depends-on): Remove alloca-opt.
71495
71496 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71499
71500 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71501
71502         * lib/argp-parse.c: Include <stddef.h>.
71503         (alignof, alignto): New macros.
71504         (parser_init): Don't assume that void * is aligned sufficiently
71505         for struct option.
71506
71507         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71508         need to extend the stack.
71509         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71510         large.
71511
71512 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71513
71514         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71515
71516 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71517
71518         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71519         (2004-10-24) change.  Apparently this was a false alarm.
71520
71521         * modules/getdate: Depend on alloca-opt, not alloca.
71522
71523 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71524
71525         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71526         Remove now-obsolete comment about AIX.
71527         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71528         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71529         (YYMAXDEPTH): New macro.
71530
71531 2004-12-18  Simon Josefsson  <jas@extundo.com>
71532
71533         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71534
71535 2004-12-18  Bruno Haible  <bruno@clisp.org>
71536
71537         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71538
71539 2004-12-18  Bruno Haible  <bruno@clisp.org>
71540
71541         * lib/fatal-signal.c (fatal_signals): Make non-const.
71542         (init_fatal_signals): New function.
71543         (uninstall_handlers, install_handlers): Ignore signals that were set to
71544         SIG_IGN.
71545         (at_fatal_signal): Call init_fatal_signals.
71546         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71547         SIG_IGN.
71548         Reported by Paul Eggert.
71549
71550 2004-12-18  Bruno Haible  <bruno@clisp.org>
71551
71552         * doc/alloca.texi: New file.
71553         * doc/alloca-opt.texi: New file.
71554
71555 2004-12-17  Jim Meyering  <jim@meyering.net>
71556
71557         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71558         Otherwise, install-sh could exit with improper exit status when
71559         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71560
71561 2004-12-16  Simon Josefsson  <jas@extundo.com>
71562
71563         * tests/test-base64.c: Add license.
71564
71565 2004-12-15  Stepan Kasal  <address@hidden>
71566
71567         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71568
71569 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71570
71571         * modules/getcwd (Files): Add m4/d-ino.m4.
71572         Suggested by Mark D. Baushke.
71573
71574 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * lib/getdate.y (textint): New member "negative".
71577         (time_zone_hhmm): New function.
71578         Expect 14 shift-reduce conflicts, not 13.
71579         (o_colon_minutes): New rule.
71580         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71581         (yylex): Set the "negative" member of signed numbers.
71582
71583 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71584
71585         * doc/getdate.texi (Time of day items, Time zone items):
71586         Describe new formats +00:00, UTC+00:00.
71587
71588 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71589
71590         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71591         spurious "-l"s.  Problem reported by Stepan Kasal.
71592
71593 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71596         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71597
71598 2004-12-04  Simon Josefsson  <jas@extundo.com>
71599
71600         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71601         Vandoorselaere <yoann@prelude-ids.org>.
71602
71603 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         Changes imported from coreutils.
71606         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71607         exist.
71608         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71609
71610 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         Changes imported from coreutils.
71613         * lib/hard-locale.c: Assume <locale.h> exists.
71614         Include "strdup.h".
71615         (GLIBC_VERSION): New macro.
71616         (hard_locale): Assume setlocale exists.
71617         Rewrite to avoid #ifdef.
71618         Use strdup rather than malloc + strcpy.
71619         * lib/human.c: Assume <locale.h> exists.
71620         (human_readable): Assume localeconv exists.
71621
71622 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71623
71624         * modules/hard-locale (Depends-on): Add strdup.
71625
71626 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71627
71628         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71629         convert T2, not T.  (Imported from libc.)
71630
71631 2004-11-30  Simon Josefsson  <jas@extundo.com>
71632
71633         * modules/restrict (License): Change to LGPL.
71634
71635 2004-11-30  Simon Josefsson  <jas@extundo.com>
71636
71637         * m4/restrict.m4: Add copyright and copying conditions.
71638
71639 2004-11-30  Simon Josefsson  <jas@extundo.com>
71640
71641         * m4/base64.m4: New file.
71642
71643 2004-11-30  Simon Josefsson  <jas@extundo.com>
71644
71645         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71646         base64.
71647
71648         * tests/test-base64.c: New file.
71649
71650         * modules/base64: New file.
71651
71652 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71653
71654         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71655         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71656
71657         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71658
71659 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71660
71661         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71662         (__getcwd.c): Don't restore errno; glibc doesn't.
71663         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71664         first, falling back to our code only if its results look suspicious.
71665         Ensure that the resulting buffer is only as large as necessary.
71666
71667         * lib/readutmp.c: Include readutmp.h first.
71668         Include <errno.h>, since readutmp.h no longer does that.
71669         * lib/readutmp.h: Don't include <errno.h>,
71670         <sys/param.h>, <time.h>; not needed to establish interface.
71671         (errno): Remove decl.
71672         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71673         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71674         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71675
71676 2004-11-28  Simon Josefsson  <jas@extundo.com>
71677
71678         * lib/base64.h, base64.c: New file.
71679
71680 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71681
71682         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71683
71684 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71687         (Depends-on): Remove pathmax, same.  Add mempcpy.
71688         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71689         (Makefile.am): Append getcwd.h to lib_SOURCES.
71690         (Include): Add getcwd.h.
71691         (Maintainer): Change from Jim Meyering to "all, glibc",
71692         since getdate now uses intended-for-glibc code.
71693         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71694         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71695
71696 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71697
71698         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71699         HP's ANSI C compiler.
71700         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71701         Declaring int functions causes warnings on some modern systems and
71702         shouldn't be needed to compile on ancient ones.
71703         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71704         defined.
71705
71706         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71707         with the following changes.
71708         (__set_errno): Parenthesize properly.
71709         Include <stdbool.h>.
71710         (MIN, MAX, MATCHING_INO): New macros.
71711         (__getcwd): Define with prototype, not K&R form.
71712         Use heuristics to allocate default buffer on stack if possible.
71713         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71714         behavior, and to avoid the PATH_MAX limit when computing
71715         ../../../../...
71716         Use MATCHING_INO to compare inode number to file.
71717         Check for arithmetic overflow in size calculations.
71718         Fix bug in reallocation of dot array that caused getcwd to fail
71719         on directories nested deeper than 75.
71720         Be more careful about saving errno on error.
71721         Do not use realloc; use only free+malloc, as this is a bit
71722         more flexible and avoids a needless copy operation.
71723         Do not inspect st_dev and st_ino for symbolic links; POSIX
71724         doesn't specify the latter.
71725         Check for closedir errors.
71726         Avoid needless casts.
71727         Use "#ifdef weak_alias" around weak_alias, to be like other
71728         glibc code.
71729         The following changes to getcwd.c have effect only when used in
71730         gnulib; they have no effect inside glibc proper.
71731         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71732         as alloca isn't used.
71733         (alloca, __alloca): Likewise.
71734         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71735         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71736         unconditionally, as gnulib assumes C89 or better.
71737         Do not include <sys/param.h>.
71738         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71739         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71740         better.
71741         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71742         Include <dirent.h> in a way that is compatible with modern Autoconf.
71743         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71744         New macros, if not already defined.
71745         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71746         Use "_LIBC", not "defined _LIBC", for consistency.
71747         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71748         a mempcpy module.
71749         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71750         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71751         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71752         credit only to Jim Meyering and adjust the copyright dates.
71753         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71754         <stdlib.h>, <unistd.h>, "pathmax.h".
71755         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71756         (INITIAL_BUFFER_SIZE): Remove.
71757         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71758
71759 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71760
71761         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71762         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71763         Use the _ONCE methods, for efficiency.
71764         Check for fcntl.h.  In test program, include <errno.h>
71765         and <fcntl.h> if available.  Remove old K&R cruft from
71766         test program.  Check for common errors in GNU/Linux,
71767         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71768         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71769         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71770         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71771         name accordingly.
71772         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71773         accommodate new getcwd.c.
71774         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71775         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71776         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71777         that's all we need now.
71778
71779 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71780
71781         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71782         argp-parse.c depends on getopt internals, that means we should
71783         always use our getopt, to be on the safe side.
71784         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71785         order not to spoil the result of an eventual previous invocation
71786         of gl_GETOPT_SUBSTITUTE.
71787
71788 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71789
71790         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71791         redefinition warnings. To avoid them, include the defines
71792         in `#if !defined __need_getopt ... #endif'. The only place
71793         where __getopt_argv_const is used is in definitions
71794         of getopt_long and getopt_long_only below, which are as well
71795         protected by `#ifndef __need_getopt'.
71796         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71797         __need_getopt after including <stdio.h> and <unistd.h> These
71798         headers might have defined it.
71799
71800 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71801
71802         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71803
71804 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71805
71806         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71807         (futimens): New function, which uses futimes if available.
71808         (futimens, utimens): Support timespec==NULL, with same semantics
71809         as utime and utimens.
71810         * lib/utimens.h (futimens): New decl.
71811
71812 2004-11-23  Jim Meyering  <jim@meyering.net>
71813
71814         * lib/getopt_.h: Remove trailing blanks.
71815
71816 2004-11-23  Jim Meyering  <jim@meyering.net>
71817
71818         * lib/__fpending.c: Add comment.
71819
71820 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71821
71822         * modules/canonicalize (Depends-on): Add xreadlink.
71823         Problem reported by James Youngman.
71824
71825 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71828         New macros.
71829         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71830         optopt): Use them instead of invoking ## directly; otherwise, the
71831         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71832
71833 2004-11-19  Bruno Haible  <bruno@clisp.org>
71834
71835         * lib/strtok_r.c: Move comments from here...
71836         * lib/strtok_r.h: ... to here.
71837
71838 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71839
71840         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71841         implementations that mishandle size_t overflow.
71842
71843 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71844
71845         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71846         might fail.  Problem reported by Yoann Vandoorselaere.
71847         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71848         implementations that mishandle size_t overflow.
71849
71850 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71851
71852         * modules/canon-host (Depends-on): Add strdup.
71853
71854 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71855
71856         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71857
71858 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71859
71860         * lib/canon-host.c: Include "strdup.h".
71861         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71862         Use strdup instead of malloc/strcpy to duplicate strings.
71863
71864         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71865         (human_space_before_unit): New constant.
71866         * lib/human.c (human_readable): Support it.
71867
71868         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71869         (xgetcwd): Set errno correctly when failing.
71870         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71871         the failure is actually due to a PATH_MAX problem.
71872
71873         Further getopt changes to make it more likely that glibc will
71874         buy the changes back.
71875         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71876         (getopt): Use it, so to preserve glibc semantic
71877         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71878         when compiling for libc.
71879         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71880         (getopt_long, getopt_long_only): Use it.
71881
71882         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71883         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71884         (getopt): Argv is now char * const *, as per standard.
71885         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71886         not char *__getopt_argv_const *.
71887         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71888         _getopt_long_only_r): Likewise.
71889         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71890         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71891         _getopt_long_r, _getopt_long_only_r): Likewise.
71892         * lib/getopt_.h (__getopt_argv_const): Remove.
71893         (getopt): Argv is now char * const *, as per standard.
71894
71895         * lib/getdate.y (tORDINAL): New token.
71896         (day, relunit): Allow it for relative times.
71897         (relative_time_table): Use tORDINAL for ordinals.
71898
71899 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71900
71901         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71902         Document that "second" isn't allowed as an ordinal number.
71903
71904 2004-11-16  Jim Meyering  <jim@meyering.net>
71905
71906         * modules/closeout (Depends-on): Add fpending.
71907
71908 2004-11-15  Jim Meyering  <jim@meyering.net>
71909
71910         * lib/closeout.c: Include "__fpending.h" once again.
71911         Include <stdbool.h>.
71912         (close_stdout): Don't fail just because stdout was closed initially,
71913         since some programs don't write to stdout in the normal course of
71914         operation (other than --version and --help), and we don't want this
71915         function to make e.g. `touch file >&-' fail.
71916         But do fail if it was closed and someone has tried to write to it.
71917         E.g., `printf foo >&-' must fail.
71918
71919 2004-11-13  Jim Meyering  <jim@meyering.net>
71920
71921         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71922
71923 2004-11-12  Simon Josefsson  <jas@extundo.com>
71924
71925         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71926         small doc fix is still pending.
71927
71928 2004-11-11  Simon Josefsson  <jas@extundo.com>
71929
71930         * modules/strtok_r: New file.
71931
71932         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71933         strtok_r.
71934
71935 2004-11-11  Simon Josefsson  <jas@extundo.com>
71936
71937         * m4/strtok_r.m4: New file.
71938
71939         * m4/getopt.m4: Replace opterr.
71940
71941 2004-11-11  Simon Josefsson  <jas@extundo.com>
71942
71943         * lib/strtok_r.h, strtok_r.c: New file.
71944
71945 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71946
71947         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71948         of replacing opterr, getopt, etc.  This should handle the
71949         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71950
71951 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71954         we can stop lying to compilers about the constness of argv when we
71955         are compiled outside glibc.
71956         (getopt, getopt_long, getopt_long_only): Use it.
71957         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71958         _getopt_internal, getopt): Likewise.
71959         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71960         _getopt_long_only_r): Likewise.
71961         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71962         _getopt_long_r, _getopt_long_only_r): Likewise.
71963
71964         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71965         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71966         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71967         the other external symbols.
71968         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71969         declaration, since the above renaming now works around collisions.
71970
71971 2004-11-11  Jim Meyering  <jim@meyering.net>
71972
71973         * lib/linebreak.c: Remove trailing blanks.
71974         * lib/alloca_.h: Likewise.
71975         * lib/acosl.c: Likewise.
71976         * lib/euidaccess.c: Likewise.
71977         * lib/allocsa.h: Likewise.
71978
71979 2004-11-10  Simon Josefsson  <jas@extundo.com>
71980
71981         * m4/getaddrinfo.m4: New file.
71982
71983 2004-11-10  Simon Josefsson  <jas@extundo.com>
71984
71985         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71986
71987 2004-11-10  Simon Josefsson  <jas@extundo.com>
71988
71989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71990         getaddrinfo.
71991
71992         * modules/getaddrinfo: New file.
71993
71994 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71995
71996         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71997
71998 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71999
72000         * lib/mktime.c (SHR): New macro, which is a portable
72001         substitute for >> that should work even on Crays.
72002         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
72003         Problem reported by Mark D. Baushke in
72004         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
72005         * lib/getdate.y (SHR): Likewise.
72006         (tm_diff): Use it.
72007         * lib/strftime.c (SHR): Likewise.
72008         (tm_diff): Use it.
72009         * lib/quotearg.c (struct quoting_options): Use unsigned int for
72010         quote_these_too, so that right shifts are well defined.  All uses
72011         changed.
72012
72013 2004-11-10  Jim Meyering  <jim@meyering.net>
72014
72015         Ensure that no close failure goes unreported.
72016         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
72017         return early when it seems there's nothing to flush.
72018         Don't include __fpending.h.
72019
72020 2004-11-10  Jim Meyering  <jim@meyering.net>
72021
72022         * modules/closeout (Depends-on): Remove fpending.
72023
72024 2004-11-10  Jim Meyering  <jim@meyering.net>
72025
72026         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
72027
72028 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
72031         gl_FUNC_STRFTIME.
72032         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
72033         and AC_REQUIRE when possible, to avoid duplicate checks.
72034         Check for <wchar.h>.
72035
72036 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72037
72038         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
72039
72040 2004-11-09  Bruno Haible  <bruno@clisp.org>
72041
72042         * m4/sockpfaf.m4: New file.
72043
72044 2004-11-05  Bruno Haible  <bruno@clisp.org>
72045
72046         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
72047         Reported by Mark D. Baushke <mdb@cvshome.org>.
72048
72049 2004-11-04  Bruno Haible  <bruno@clisp.org>
72050
72051         2004-09-11  Bruno Haible  <bruno@clisp.org>
72052                 * allocsa.valgrind: New file.
72053         2004-02-06  Bruno Haible  <bruno@clisp.org>
72054                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
72055                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
72056                 Reported by Christopher Seip <chris.seip@hp.com>.
72057
72058 2004-11-04  Bruno Haible  <bruno@clisp.org>
72059
72060         * modules/allocsa (Files): Add lib/allocsa.valgrind.
72061         (Makefile.am): Distribute it.
72062
72063 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72064
72065         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
72066         with errno == ERANGE if the buffer is too small.
72067         Problem reported by Mark D. Baushke.
72068
72069 2004-11-03  Albert Chin  <china@thewrittenword.com>
72070             Paul Eggert  <eggert@cs.ucla.edu>
72071
72072         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
72073         equivalent, substitute $ac_type for equivalent type rather than
72074         blindly using uint32_t *always* which won't work if uint32_t is not
72075         available.  Define _UINT32_T to work around typedef of uint32_t if
72076         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
72077         2.5.1.
72078
72079 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         * m4/jm-macros.m4: Sync from coreutils.
72082         (gl_MACROS): Check for mbrlen, for pathchk.
72083         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
72084
72085 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72086
72087         * lib/xreadlink.c (MAXSIZE): New macro.
72088         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
72089         size does not exceed MAXSIZE.  Avoid cast.
72090         As suggested by Mark D. Baushke in
72091         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
72092         if readlink fails with buffer size just under MAXSIZE, try again
72093         with MAXSIZE.
72094
72095 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72096
72097         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
72098
72099 2004-11-02  Derek R. Price  <derek@ximbiot.com>
72100         and  Paul Eggert  <eggert@cs.ucla.edu>
72101
72102         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
72103         (get_date): Overparenthesize to avoid GCC warning.
72104
72105 2004-11-02  Bruno Haible  <bruno@clisp.org>
72106
72107         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
72108         returns void.
72109
72110 2004-11-02  Bruno Haible  <bruno@clisp.org>
72111
72112         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
72113         function returns void.
72114
72115 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
72118         fflush_unlocked, flockfile, funlockfile, funlockfile,
72119         fputs_unlocked, putc_unlocked.
72120
72121 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72122
72123         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72124         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
72125         already declared.
72126
72127 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72128
72129         * modules/getdate (Files): Add doc/getdate.texi.
72130         (Depends-on): Add setenv, xalloc.
72131
72132 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72133
72134         * lib/getdate.y: Add support for TZ="foo" within a date string.
72135         Fix some bugs near time_t boundaries.  Reject dates with
72136         out-of-range components, e.g., "Sept 31".
72137         Include <stdlib.h>, "setenv.h", "xalloc.h".
72138         (ISDIGIT_LOCALE): Remove; unused.
72139         Note that the TZ and time functions used here are not reentrant.
72140         (mktime_ok, get_tz): New functions.
72141         (TZBUFSIZE): New constant.
72142         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
72143         This requires that we sometimes generate our own TZ="XXX..." setting.
72144
72145 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72146
72147         * doc/getdate.texi: New file, from coreutils with modifications for
72148         the new TZ parsing.
72149
72150 2004-10-27  Derek R. Price  <derek@ximbiot.com>
72151
72152         * lib/mktime.c (not_equal_tm): Remove redundant check.
72153
72154 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         * modules/regex (lib_SOURCES): Add regex.c.
72157         Reported by James Youngman in
72158         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
72159
72160 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         * lib/getdate.y: Use Bison 1.875 features, and some minor
72163         code cleanups.  This change does not affect semantics.
72164         Don't include <stdlib.h>; no longer needed.
72165         Don't include unlocked-io.h; only the "#if TEST" code uses
72166         stdio, and performance isn't crucial there.
72167         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
72168         Bison 1.875 features as described below.
72169         All uses of "PC." replaced by "pc->".
72170         (YYSTYPE): Add a forward declaration.
72171         (yylex, yyerror): Use full prototypes in forward decls.
72172         Use "%pure-parser" rather than obsolescent "%pure_parser".
72173         Use %parse-param and %lex-param instead of obsolescent
72174         YYPARSE_PARAM and YYLEX_PARAM.
72175         (meridian_table, month_and_day_table, time_units_table,
72176         relative_time_table, time_zone_table, military_table,
72177         lookup_zone, lookup_word, get_date):
72178         Use NULL instead of 0 where appropriate.
72179         (to_hour): Avoid abort (), to avoid a dependency on
72180         stdlib.h.
72181         (yyerror, yylex): Now accepts parser_control * arg.
72182         (main) [TEST]: Use '\0' rather than 0 for char.
72183
72184 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
72187
72188 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
72191         It's now the caller's responsibility to handle the case where
72192         !HAVE_GETPAGESIZE && !defined getpagesize.
72193
72194         * lib/mktime.c (leapyear): Arg is long int, not int.
72195
72196 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
72197
72198         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
72199
72200 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72201
72202         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
72203         missing.  Problem reported by James Youngman.
72204
72205 2004-10-16  Simon Josefsson  <jas@extundo.com>
72206
72207         * gnulib-tool: Fix comments.  Fix parse problem.
72208         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
72209
72210 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
72211
72212         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
72213         implementation of getopt_long.  Problem reported by Alexander Taler in:
72214         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
72215
72216 2004-10-15  Bruno Haible  <bruno@clisp.org>
72217
72218         * gnulib-tool: Untabify. Initialize supplied_libname.
72219         (func_usage): More homogenous output.
72220         (func_modules_transitive_closure, func_modules_to_filelist,
72221         func_emit_lib_Makefile_am): New functions.
72222         (func_import): New function, extracted from big case statement. Use
72223         func_get_license, func_modules_transitive_closure,
72224         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
72225         opt_lgpl. Don't use test -a, as it's not portable.
72226         (func_create_testdir): Use func_modules_transitive_closure,
72227         func_modules_to_filelist, func_emit_lib_Makefile_am.
72228
72229 2004-10-15  Bruno Haible  <bruno@clisp.org>
72230
72231         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
72232
72233 2004-10-15  Bruno Haible  <bruno@clisp.org>
72234
72235         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
72236         the portions belonging to each module.
72237         Suggested by Derek Robert Price <derek@ximbiot.com>.
72238
72239 2004-10-12  Simon Josefsson  <jas@extundo.com>
72240
72241         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72242         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
72243         to real functions.
72244
72245 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72246
72247         * modules/vsnprintf: New file.
72248
72249 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72250
72251         * m4/vsnprintf.m4: New file.
72252
72253 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72254
72255         * lib/vsnprintf.h: New file.
72256         * lib/vsnprintf.c: New file.
72257
72258 2004-10-11  Bruno Haible  <bruno@clisp.org>
72259
72260         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
72261         vsnprintf.
72262
72263 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72264
72265         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
72266
72267 2004-10-07  Bruno Haible  <bruno@clisp.org>
72268
72269         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
72270         fits into the provided buffer.
72271
72272 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72273
72274         * lib/diacrit.c, diacrit.h: Add GPL notice.
72275
72276         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
72277         notice.
72278         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
72279         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
72280         This avoids a potential constant-folding bug.
72281
72282 2004-10-05  Bruno Haible  <bruno@clisp.org>
72283
72284         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
72285         for the declaration of strsep.
72286
72287 2004-10-05  Bruno Haible  <bruno@clisp.org>
72288
72289         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
72290
72291 2004-10-04  Simon Josefsson  <jas@extundo.com>
72292
72293         * modules/memmem: New file.
72294         * tests/test-memmem.c: New file.
72295         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
72296
72297 2004-10-04  Simon Josefsson  <jas@extundo.com>
72298
72299         * m4/memmem.m4: New file.
72300
72301 2004-10-04  Simon Josefsson  <jas@extundo.com>
72302
72303         * lib/memmem.h: New file.
72304         * lib/memmem.c: New file, taken from glibc.
72305
72306 2004-10-04  Simon Josefsson  <jas@extundo.com>
72307
72308         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
72309         '#ifdef USE_UNLOCKED_IO'.
72310
72311 2004-10-04  Simon Josefsson  <jas@extundo.com>
72312
72313         * config/srclist.txt: Add memmem from glibc.
72314
72315 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72316
72317         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
72318
72319         * modules/argmatch, modules/argp, modules/closeout, modules/error,
72320         modules/exclude, modules/getdate, modules/getline,
72321         modules/getndelim2, modules/getpass, modules/getpass-gnu,
72322         modules/getusershell, modules/linebuffer, modules/md5,
72323         modules/mountlist, modules/posixtm, modules/readtokens,
72324         modules/readutmp, modules/regex, modules/sha1,
72325         modules/version-etc, modules/yesno:
72326         Remove dependency on unlocked-io.
72327
72328 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72329
72330         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
72331
72332         * m4/unlocked-io.m4: Add copyright notice.
72333         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
72334
72335 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
72338         * lib/xmalloc.c (xmemdup): Likewise.
72339         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
72340         XFREE): Remove these long-obsolescent macros.
72341         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
72342         * lib/xstrdup.c: Remove.
72343
72344         * lib/regex.c (re_comp): Cast gettext return value to char *,
72345         Problem reported by Martin Neitzel via Mark D. Baushke.
72346
72347 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
72350         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
72351         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
72352         regex.c, sha1.c, version-etc.c, yesno.c:
72353         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
72354         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
72355         the includer's responsibility.
72356
72357         Sync from coreutils.
72358
72359         * lib/modechange.c (mode_compile): Don't decrement a pointer that
72360         points to the start of a string, as the C Standard says the
72361         resulting behavior is undefined.
72362
72363         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
72364         simple -> simple_backups, numbered_existing ->
72365         numbered_existing_backups, numbered -> numbered_backups
72366         to avoid shadowing problems.  All uses changed.
72367         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
72368         * lib/backupfile.c (check_extension, numbered_backup):
72369         Rename locals to avoid shadowing 'basename'.
72370         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
72371         once.
72372
72373         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
72374         * lib/.cvsignore: Add getopt.h.
72375
72376 2004-10-04  Bruno Haible  <bruno@clisp.org>
72377
72378         * modules/README: New file.
72379         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
72380         not a module.
72381
72382 2004-10-02  Jim Meyering  <jim@meyering.net>
72383
72384         * lib/dirfd.h, getpagesize.h: Add copyright notice.
72385
72386 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72387
72388         * modules/strsep: New file.
72389
72390 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72391
72392         * m4/strsep.m4: New file.
72393
72394 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72395
72396         * lib/strsep.h: New file.
72397         * lib/strsep.c: New file.
72398
72399 2004-10-01  Simon Josefsson  <jas@extundo.com>
72400
72401         * lib/snprintf.c (snprintf): Handle size==0.
72402
72403 2004-10-01  Simon Josefsson  <jas@extundo.com>
72404             Bruno Haible  <bruno@clisp.org>
72405
72406         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72407         (snprintf): Declare 'args'.
72408
72409 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         * lib/snprintf.c: Remove comments as to why each header is needed.
72412
72413 2004-10-01  Bruno Haible  <bruno@clisp.org>
72414
72415         * MODULES.html.sh: Add strsep.
72416
72417 2004-09-30  Simon Josefsson  <jas@extundo.com>
72418
72419         * modules/snprintf: New file.
72420
72421 2004-09-30  Simon Josefsson  <jas@extundo.com>
72422
72423         * m4/snprintf.m4: New file.
72424
72425 2004-09-30  Simon Josefsson  <jas@extundo.com>
72426
72427         * lib/snprintf.h, lib/snprintf.c: New files.
72428
72429 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72430
72431         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72432         (hol_entry_help): Never translate an empty string.
72433         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72434         * lib/argp.h (OPTION_NO_TRANS): New option.
72435
72436 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72437
72438         * modules/argp (Maintainer): Replace Simon Josefsson
72439         by Sergey Poznyakoff.
72440
72441 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72442
72443         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72444         changes merged back into glibc.
72445
72446 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72447
72448         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72449
72450 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72451
72452         * lib/xvasprintf.c: Include xalloc.h.
72453         (xvasprintf): Use xalloc_die, not xmalloc_die.
72454
72455 2004-09-29  Bruno Haible  <bruno@clisp.org>
72456
72457         * modules/alloca-opt: New file, derived from modules/alloca.
72458         * modules/allocsa: Depend on alloca-opt instead of alloca.
72459         * modules/setenv: Likewise.
72460         * modules/vasnprintf: Likewise.
72461         * MODULES.html.sh: Add alloca-opt.
72462
72463 2004-09-28  Simon Josefsson  <jas@extundo.com>
72464
72465         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72466         LGPL, and to replace license template from GPL to LGPL.
72467
72468 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72469
72470         * modules/dummy: Change license to LGPL.
72471
72472 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72473
72474         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72475
72476 2004-09-24  Simon Josefsson  <jas@extundo.com>
72477
72478         * modules/minmax (License): Change from GPL to LGPL.
72479
72480 2004-09-23  Simon Josefsson  <jas@extundo.com>
72481
72482         * gnulib-tool (--import): Typo.
72483
72484 2004-09-23  Simon Josefsson  <jas@extundo.com>
72485
72486         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72487
72488 2004-09-22  Bruno Haible  <bruno@clisp.org>
72489
72490         * modules/*: Add 'License' field.
72491         * gnulib-tool: Accept --extract-license option.
72492         (func_get_license): New function.
72493
72494 2004-09-21  Bruno Haible  <bruno@clisp.org>
72495
72496         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72497         Reported by Simon Josefsson.
72498
72499 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72500
72501         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72502         gl_AC_TYPE_LONG_LONG.
72503
72504 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72505
72506         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72507
72508 2004-09-18  Simon Josefsson  <jas@extundo.com>
72509         and  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72512         calls with autoreconf.  Define GL_LIB.
72513
72514 2004-09-14  Karl Berry  <karl@gnu.org>
72515
72516         * config/srclist.txt: unsync setenv.c, sigh.
72517
72518 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72519
72520         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72521         Problem reported by Bruno Haible in:
72522         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72523
72524 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72525
72526         * config/srclist.txt: Comment out argp-pvh.c.
72527
72528 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72529
72530         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72531         in case some system header has #define'd it.  Problem reported by
72532         Soeren D. Schulze in
72533         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72534
72535 2004-09-09  Karl Berry  <karl@gnu.org>
72536
72537         * regex.[ch]: delete from the root.  These were supposed to be
72538                 synced with emacs cvs, but this has not happened for about
72539                 a year, and anyway nothing else uses emacs regex.[ch].
72540                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72541                 lib/regex[.ch] is untouched.
72542
72543 2004-09-09  Bruno Haible  <bruno@clisp.org>
72544
72545         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72546
72547 2004-09-09  Bruno Haible  <bruno@clisp.org>
72548
72549         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72550         modifications.
72551         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72552
72553 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72554
72555         * modules/xvasprintf: New file.
72556         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72557
72558 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72559
72560         * lib/xvasprintf.h: New file.
72561         * lib/xvasprintf.c: New file.
72562         * lib/xasprintf.c: New file.
72563
72564 2004-09-08  Bruno Haible  <bruno@clisp.org>
72565
72566         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72567
72568 2004-09-08  Bruno Haible  <bruno@clisp.org>
72569
72570         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72571         length is > INT_MAX.
72572         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72573         more.
72574
72575 2004-09-08  Bruno Haible  <bruno@clisp.org>
72576
72577         * lib/stdint_.h: New file, taken from GNU clisp.
72578
72579 2004-09-08  Bruno Haible  <bruno@clisp.org>
72580             Oskar Liljeblad  <oskar@osk.mine.nu>
72581
72582         * modules/stdint: New file.
72583         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72584
72585 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72586
72587         Import from coreutils.
72588         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72589         strings on unbounded length.  alloca's performance benefits aren't
72590         that important here.
72591         (V_STRDUP): Remove.
72592         (parse_with_separator): New function, with most of the internals
72593         of the old parse_user_spec.  Allow user to omit both user and group,
72594         for compatibility with FreeBSD.
72595         Clone only the user name, not the entire spec.
72596         Do not set *uid, *gid unless entirely successful.
72597         Avoid memory leak in some failing cases.
72598         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72599         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72600         (parse_user_spec): Rewrite to use parse_with_separator.
72601
72602 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72603
72604         * modules/userspec: Don't depend on alloca.
72605
72606 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72609
72610 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72611
72612         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72613         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72614         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72615
72616 2004-08-16  Simon Josefsson  <jas@extundo.com>
72617
72618         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72619         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72620         Add --dry-run for --import.
72621         Let user provided command line parameters override configure.ac
72622         settings.
72623
72624 2004-08-12  Simon Josefsson  <jas@extundo.com>
72625
72626         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72627         as discussed with Paul Eggert in threads rooted at
72628         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72629         and
72630         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72631         Before, the test was empty, and relied on ELIDE_CODE in source
72632         code.)
72633         (gl_PREREQ_GETOPT): New macro.
72634         (gl_GETOPT): Use them.
72635
72636 2004-08-12  Simon Josefsson  <jas@extundo.com>
72637
72638         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72639         * lib/getopt_.h: Renamed from getopt.h.
72640
72641 2004-08-12  Simon Josefsson  <jas@extundo.com>
72642
72643         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72644         Change default library name from libfoo to libgnu.
72645         Now, if you have a configure.ac that says:
72646                 gl_SOURCE_BASE(gl)
72647                 gl_M4_BASE(gl/m4)
72648                 gl_MODULES(error getopt etcetera)
72649                 gl_INIT
72650         you can import all you need by running:
72651                 ../gnulib/gnulib-tool --import
72652
72653         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72654         (Makefile.am): Rewrite, use logic from argz.
72655         (Include): Use <getopt.h> instead of "getopt.h".
72656
72657 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         * modules/argp (Files): Add m4/unlocked-io.m4.
72660         (Depends-on): Add extensions.
72661
72662 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72663
72664         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72665         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72666         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72667         Check for program_invocation_name, program_invocation_short_name,
72668         flockfile, funlockfile, features.h, _getopt_long_only_r.
72669
72670 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72671
72672         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72673         its complicated substitute.
72674         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72675         and program_invocation_name.
72676         (__argp_basename) [!_LIBC]: Remove; the only use was
72677         replaced by its body.
72678         (__argp_short_program_name): Change condition from
72679         !defined __argp_short_program_name to
72680         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72681         to match argp-namefrob.h.
72682         (__argp_failure): Don't assume strerror_r returns char *.
72683         * lib/argp-parse.c (N_): Define unconditionally.
72684         (argp_default_options): Fill out initializers with 0 to avoid
72685         gcc warnings.
72686
72687 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72688
72689         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72690         getopt1.c.
72691
72692 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         Merge from coreutils.
72695
72696         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72697
72698         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72699         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72700
72701 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         Merge from coreutils.
72704
72705         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72706         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72707         for Reliant Unix 5.43.
72708
72709         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72710         (union fooround): Use uintmax_t, not long int.
72711         The rest is a merge from libc:
72712         [defined _LIBC]: Include <shlib-compat.h>.
72713         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72714
72715         * lib/settime.c (settime): Recode to avoid warning with
72716         Sun Forte C 6U2.
72717
72718         * lib/strverscmp.c: Convert to UTF-8.
72719
72720 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72721
72722         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72723         m4/uintmax_t.m4.
72724
72725 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72726
72727         * modules/xalloc-die: New file.
72728         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72729
72730         * modules/md5 (Files): Add m4/uint32_t.m4.
72731         * modules/sha1: Renamed from modules/sha.
72732         (Files):
72733         Rename lib/sha.h to lib/sha1.h.
72734         Rename lib/sha.c to lib/sha1.c.
72735         Rename m4/sha.m4 to m4/sha1.m4.
72736         (lib_SOURCES): Likewise.
72737         (configure.ac): Rename gl_SHA to gl_SHA1.
72738         (Include): sha.h -> sha1.h.
72739
72740 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72743         * m4/sha1.m4: Renamed from sha.m4.
72744         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72745
72746 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72747
72748         * lib/obstack.h (obstack_empty_p):
72749         Don't assume that chunk->contents is suitably aligned.
72750         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72751         Likewise. Problem reported by Benno in
72752         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72753
72754         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72755         readable.  This could be improved further but it'd take some work.
72756
72757 2004-08-08  Simon Josefsson  <jas@extundo.com>
72758
72759         * modules/xgethostname (Depends-on): Remove exit and error (not
72760         used).
72761
72762         * modules/getpass-gnu: Add getpass.h.
72763         (Depends-on): Add stdbool.
72764         * modules/getpass: Add getpass.h.
72765
72766 2004-08-08  Simon Josefsson  <jas@extundo.com>
72767
72768         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72769         Check getpass declaration.
72770
72771 2004-08-08  Simon Josefsson  <jas@extundo.com>
72772
72773         * lib/xgethostname.c: Don't include error.h (not used).
72774
72775         * lib/getpass.h: Add.
72776         * lib/getpass.c: Include getpass.h first.
72777
72778 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72779
72780         * lib/xalloc-die.c: New file.
72781         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72782         All uses removed.
72783         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72784         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72785         xalloc-die.c.
72786         (_, N_, xalloc_die): Move to xalloc-die.c.
72787         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72788         so that we needn't mess with xalloc_msg_memory_exhausted.
72789
72790         * lib/sha1.h: Renamed from sha.h.
72791         (SHA1_H): Renamed from _SHA_H.
72792         (sha1_ctx): Renamed from sha_ctx.
72793         (sha1_init_ctx): Renamed from sha_init_ctx.
72794         (sha1_process_block): Renamed from sha_process_block.
72795         (sha1_process_bytes): Renamed from sha_process_bytes.
72796         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72797         (sha1_read_ctx): Renamed from sha_read_ctx.
72798         (sha1_stream): Renamed from sha_stream.
72799         (sha1_buffer): Renamed from sha_buffer.
72800         * lib/sha1.c: Likewise; renamed from sha.c.
72801         Do not include <sys/types.h>.
72802         Include <stddef.h> rather than <stdlib.h>.
72803
72804 2004-08-08  Bruno Haible  <bruno@clisp.org>
72805
72806         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72807         FILESYSTEM_PREFIX_LEN.
72808         * lib/progreloc.c: Likewise.
72809         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72810
72811 2004-08-06  Simon Josefsson  <jas@extundo.com>
72812
72813         * modules/progname (Depends-on): Don't depend on stdbool.
72814
72815 2004-08-06  Simon Josefsson  <jas@extundo.com>
72816
72817         * modules/getsubopt: New file.
72818         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72819         getsubopt.
72820
72821 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72822
72823         More merge from coreutils.
72824
72825         * m4/utimens.m4, m4/utimecmp.m4: New files.
72826         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72827         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72828         prereq.m4, sha.m4: Import changes from coreutils.
72829
72830 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72831
72832         More merge from coreutils.
72833         * modules/raise, modules/readtokens0, modules/utimens:
72834         * modules/utimecmp, module/xnanosleep: New files.
72835         * modules/strftime: Add lib/strftime.h.
72836         Change include from <time.h> to "strftime.h".
72837         * modules/yesno: Add lib/yesno.h.
72838         * modules/backupfile: Remove lib/addext.c.
72839         * modules/euidaccess: Add stat-macros.h.
72840         * modules/canonicalize, modules/euidaccess,
72841         modules/filemode, modules/lchown, modules/makepath,
72842         modules/rmdir, modules/stat: Likewise.
72843
72844 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72845
72846         Merge from tar.
72847         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72848         SIZE_MAX is a valid preprocessor constant.
72849         (__argp_basename): Change from "#ifndef _LIBC"
72850         to "#ifndef __argp_short_program_name", so that
72851         we don't compile these functions for tar.
72852
72853         More merges from coreutils.
72854         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72855         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72856         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72857         * lib/addext.c: Remove; no longer needed.
72858         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72859         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72860         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72861         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72862         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72863         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72864         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72865         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72866         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72867         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72868         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72869         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72870         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72871         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72872         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72873         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72874         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72875         Import changes from coreutils.
72876
72877 2004-08-05  Simon Josefsson  <jas@extundo.com>
72878
72879         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72880
72881 2004-08-05  Simon Josefsson  <jas@extundo.com>
72882
72883         * m4/getsubopt.m4: New file.
72884
72885 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72886
72887         Merge from coreutils.
72888
72889         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72890         * m4/getcwd-path-max.m4: New files.
72891
72892         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72893         FILESYSTEM_PREFIX_LEN ->
72894         FILE_SYSTEM_PREFIX_LEN.
72895         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72896         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72897         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72898         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72899
72900         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72901         prerequisite modules now handle the DOS stuff.
72902         Don't check for unistd.h.
72903
72904 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         Merge from coreutils.
72907
72908         * lib/.gdb-history: Remove; this doesn't belong here.
72909
72910         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72911         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72912         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72913         * lib/getcwd.c: New files.
72914
72915         * lib/dirname.h: Include <stdbool.h>.
72916         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72917         for consistency with POSIX terminology.  All uses changed.
72918         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72919         (strip_trailing_slashes): Use bool for booleans.
72920         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72921
72922         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72923         sometimes returns a positive errno value even when it succeeds.
72924         (print_errno_message) [!LIBC]: Fall back on strerror if
72925         __strerror_r fails.
72926
72927         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72928         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72929         (longest_relative_suffix): New function.
72930         (path_concat): Use it.  Assume first argument is not NULL.
72931         Port to DOS.  Omit redundant separators.
72932         Report an error instead of returning NULL.
72933         Use mempcpy instead of memcpy.
72934         (xpath_concat): Remove: not declared or used.
72935
72936         * lib/same.h: Include <stdbool.h>
72937         (same_name): Return bool, not int.
72938         * lib/same.c (same_name): Likewise.
72939         (errno): Don't declare; we assume C89 or better now.
72940
72941         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72942         if not already defined.
72943
72944         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72945         * lib/dup-safer.c (errno): Likewise.
72946
72947 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72948
72949         Merge from coreutils.
72950         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72951         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72952         * modules/path-concat: Don't depend on strdup.
72953
72954 2004-08-03  Simon Josefsson  <jas@extundo.com>
72955
72956         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72957         * lib/progname.h: Don't include stdbool.h.
72958
72959 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72960
72961         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72962         * MODULES.html.sh (func_all_modules): Remove fatal.
72963
72964 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72965
72966         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72967
72968 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72969
72970         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72971         working.
72972
72973 2004-08-02  Simon Josefsson  <jas@extundo.com>
72974
72975         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72976         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72977         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72978
72979 2004-08-01  Simon Josefsson  <jas@extundo.com>
72980
72981         * lib/xgetdomainname.c: Include stdlib.h, for free().
72982
72983 2004-07-19  Bruno Haible  <bruno@clisp.org>
72984
72985         * MODULES.html.sh (func_all_modules): Add dummy.
72986
72987 2004-07-16  Simon Josefsson  <jas@extundo.com>
72988
72989         * modules/dummy: New file.
72990
72991 2004-07-16  Simon Josefsson  <jas@extundo.com>
72992
72993         * lib/dummy.c: New file.
72994
72995 2004-07-16  Bruno Haible  <bruno@clisp.org>
72996
72997         * lib/backupfile.h: Add extern "C" for C++.
72998         * lib/closeout.h: Likewise.
72999         * lib/copy-file.h: Likewise.
73000         * lib/findprog.h: Likewise.
73001         * lib/full-write.h: Likewise.
73002         * lib/pathname.h: Likewise.
73003         * lib/progname.h: Likewise.
73004         * lib/stpcpy.h: Likewise.
73005         * lib/stpncpy.h: Likewise.
73006         * lib/strcase.h: Likewise.
73007         * lib/strstr.h: Likewise.
73008         * lib/xalloc.h: Likewise.
73009
73010         * lib/mbswidth.h: Add extern "C" for C++.
73011         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
73012
73013 2004-07-13  Robert Millan  <robertmh@gnu.org>
73014
73015         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
73016
73017 2004-07-09  Simon Josefsson  <jas@extundo.com>
73018
73019         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
73020         failed without this.)
73021
73022 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73023
73024         * modules/chown (Files): Add lib/fchown-stub.c, since
73025         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
73026
73027 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73028
73029         * lib/fchown-stub.c: New file.
73030
73031 2004-06-24  Jim Meyering  <jim@meyering.net>
73032
73033         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
73034
73035 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73036
73037         * modules/argz: Omit "#include".
73038
73039         * MODULES.html.sh (func_all_modules): Add calloc, to match
73040         2004-06-01 addition of calloc module.
73041
73042 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * m4/argz.m4: New file, which is autoupdated from libtool.
73045
73046 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73047
73048         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
73049         libtool.
73050
73051 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73052
73053         * config/srclist-update: Don't insist on "USA." before the
73054         close-comment, as libtool omits the period and puts the */ on a
73055         separate line.
73056         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
73057         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
73058
73059 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
73060
73061         * modules/argz: New file.
73062         * MODULES.html.sh (func_all_modules): Add argz.
73063
73064 2004-06-12  Jim Meyering  <jim@meyering.net>
73065         and  Paul Eggert  <eggert@cs.ucla.edu>
73066
73067         * modules/hash (Files): Add lib/xalloc.h.
73068         * modules/pipe (Depends-on): Add wait-process.
73069         * modules/stat (Depends-on): Add xalloc.
73070         * modules/userspec (Files): Add lib/userspec.h.
73071         * modules/xstrto
73072
73073         Upgrade from gettext-0.13.
73074         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
73075         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
73076         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
73077
73078 2004-06-10  Jim Meyering  <jim@meyering.net>
73079
73080         * lib/calloc.c: New file.
73081
73082 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
73083
73084         * lib/getdate.y (yylex): Allow space between sign and number.
73085         Problem reported by Dan Jacobson.
73086
73087 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73088
73089         Merge from coreutils CVS.
73090
73091         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
73092         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
73093         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
73094         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
73095         xstrtol.m4: Fix copyright date and/or serial number.
73096
73097         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
73098         See if we need an fchown replacement.
73099         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
73100         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
73101         and use the replacement function if we detect either defect.
73102
73103         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
73104         gl_UTIMECMP.
73105
73106 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73107         and  Jim Meyering  <jim@meyering.net>
73108
73109         Merge from coreutils CVS.
73110
73111         * lib/stat-macros.h: New file, with contents from file-type.h
73112         and coreutils' system.h.
73113         * lib/file-type.c: Include "stat-macros.h".
73114         * lib/file-type.h (file_type): Move all macro definitions to new file,
73115         stat-macros.h.
73116
73117         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
73118         Wrap old code with this conditional.
73119         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
73120         function that does not dereference symlinks.
73121         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
73122
73123         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
73124         dependency problems.
73125         (xreadlink): Accept new arg SIZE, for efficiency.
73126         All decls and uses changed.
73127         * lib/xreadlink.h: Include <stddef.h>, for size_t.
73128
73129         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
73130         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
73131
73132         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
73133         sysexits.h.
73134
73135 2004-06-01  Jim Meyering  <jim@meyering.net>
73136
73137         * m4/calloc.m4: New file.
73138
73139 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
73140
73141         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
73142         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
73143         Also, fix a typo in a diagnostic.
73144
73145 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73146
73147         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
73148         or AC_FUNC_REALLOC.
73149
73150 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73151
73152         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
73153         macros to be defined.
73154         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
73155         the allocator returns NULL because the requested size is zero.
73156
73157 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73158
73159         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
73160         var.  Add comment explaining why libc still defines it.  This
73161         merges the following patch from glibc:
73162         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
73163
73164 2004-05-20  Andreas Schwab  <schwab@suse.de>
73165
73166         * m4/free.m4: Replace free if it not known to work, not the other
73167         way round.
73168
73169 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73170
73171         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
73172         present in glibc since revision 1.1 of this file.
73173         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
73174         obstack_alignment_mask, obstack_alloc, obstack_base,
73175         obstack_blank, obstack_blank_fast, obstack_chunk_size,
73176         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
73177         obstack_grow0, obstack_init, obstack_int_grow,
73178         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
73179         obstack_next_free, obstack_object_size, obstack_ptr_grow,
73180         obstack_ptr_grow_fast, obstack_room): Remove declarations of
73181         nonexistent functions.
73182
73183 2004-05-18  Karl Berry  <karl@gnu.org>
73184
73185         * config/srclist.txt: break link for vasnprintf.c.
73186
73187 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73188
73189         Port obstack to the AS/400, where pointers are 16 bytes wide and
73190         you cannot cast an integer to a valid pointer.  This patch is
73191         currently waiting to be integrated into glibc; see
73192         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
73193
73194         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
73195         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
73196         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
73197         (struct obstack): temp member is now a union of a pointer and
73198         an integer, instead of an integer.  All integer uses changed.
73199         This does not affect the physical layout of struct obstack,
73200         except on hosts (like the AS/400) where the size or alignment of
73201         void * is greater than that of ptrdiff_t.
73202         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
73203         __STDC__)]: Store temporary in pointer member of union, not
73204         integer member.
73205         * lib/obstack.c: Include <stddef.h>, for offsetof.
73206         (struct fooalign): Remove; it doesn't need a name.
73207         (union fooround): Change double to long double, and add void *.
73208         (DEFAULT_ALIGNMENT): Use offsetof to compute.
73209         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
73210         not a macro.  Hence the values are always int; so remove all
73211         casts-to-int in uses.
73212
73213 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
73216         we can get this patch merged into glibc.
73217
73218 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73219             Paul Eggert  <eggert@cs.ucla.edu>
73220
73221         * m4/argp: Depend on alloca.
73222
73223 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73224             Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
73227         freecoding.
73228
73229 2004-05-17  Bruno Haible  <bruno@clisp.org>
73230
73231         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
73232         precision that consists of a '.' followed by an empty digit string.
73233         Patch by Tor Lillqvist <tml@iki.fi>.
73234
73235 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73236
73237         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
73238         for backward compatibility with older code.  We need our own
73239         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
73240         it under some other name, and our alloca.h will define it.
73241
73242 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73243             Derek Price  <derek@ximbiot.com>
73244
73245         * lib/alloca.c: Include <alloca.h>, to get our interface.
73246         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
73247         include <alloca.h> first.  Use C89 prototype for alloca; this
73248         requires including <stddef.h> for size_t.  Use extern "C" if C++.
73249         Use #elif for simplicity, since we can assume C89 now.
73250         Don't try to source the system alloca.h since it will not be found
73251         and to prevent recursively including its replacement.
73252         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
73253         * lib/regex.c: Likewise.
73254
73255 2004-05-16  Derek Price  <derek@ximbiot.com>
73256             Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         getline cleanup.  This changes the getndelim2 API: both order of
73259         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
73260         no delimiter).
73261
73262         * lib/getline.c: Don't include stddef.h or stdio.h, since our
73263         interface does that.
73264         (getline): Always use getdelim, so that we don't have two
73265         copies of this code.
73266         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
73267         if available.
73268         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
73269         (GETNDELIM2_MAXIMUM): New macro.
73270         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
73271         instead of the old practice of delim2==0.  All callers changed.
73272         Return -1 on overflow, instead of returning junk.
73273         Do not set *linesize unless allocation succeeds.
73274         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
73275         that we include sys/types.h.
73276         * lib/getnline.h: Likewise.
73277         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
73278         (getndelim2): Reorder arguments.
73279         * lib/getnline.c (getnline, getndelim):
73280         Don't discard the NMAX argument.
73281         (getnline): Invoke getndelim, to avoid code duplication.
73282         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
73283         of (size_t) -1 by callers of the getnline family.
73284
73285 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73286
73287         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
73288         Check for gettimeofday.
73289         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
73290         Check for settimeofday, stime.
73291
73292 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73293
73294         * lib/nanosleep.c (suspended): Change its type from int to
73295         sig_atomic_t volatile.
73296         (first_call): Make it private to rpl_nanosleep, and have it
73297         be zero initially as that's a bit faster.
73298         (my_usleep): Round up fractional times instead of truncating them,
73299         as this is the usual meaning for 'sleep'.
73300
73301         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
73302         doesn't work.
73303         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
73304         (ENOSYS): Define if not defined.
73305         (settime): Fall back on stime if it exists and settimeofday fails.
73306         But don't bother with fallbacks if a method fails with errno == EPERM.
73307
73308 2004-05-11  Jim Meyering  <jim@meyering.net>
73309
73310         Prior to this change, the save_cwd caller required read access to the
73311         current directory on most systems (ones with the fchdir function).
73312
73313         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
73314         fails, try write-only, and finally, resort to using xgetcwd.
73315
73316 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73317
73318         * lib/obstack.c, obstack.h: Import changes from libc.
73319
73320 2004-04-28  Bruno Haible  <bruno@clisp.org>
73321
73322         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
73323         also implicitly appends .exe to executables.
73324         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
73325         accepts Windows pathnames.
73326         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73327         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73328         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73329         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73330         Reported by Derek Robert Price <derek@ximbiot.com>.
73331
73332 2004-04-21  Karl Berry  <karl@gnu.org>
73333
73334         * config/srclist.txt (localcharset.c): break sync.
73335
73336 2004-04-20  Paul Eggert  <eggert@twinsun.com>
73337
73338         * m4/host-os.m4: Add a copyright notice.
73339
73340 2004-04-20  Jim Meyering  <jim@meyering.net>
73341
73342         Change UTILS_ to gl_ in AC_DEFINE'd names.
73343         Change utils_- and jm_-prefixed variables, too.
73344         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
73345         UTILS_FUNC_MKDIR_TRAILING_SLASH.
73346         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
73347
73348         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
73349         Don't emit trailing blanks.
73350         Also rename jm_-prefixed variables to have gl_ prefix.
73351
73352         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
73353         Also rename jm_-prefixed variables to have gl_ prefix.
73354
73355         * m4/jm-macros.m4: Reflect the renamings.
73356         * m4/prereq.m4: Likewise.
73357
73358 2004-04-20  Jim Meyering  <jim@meyering.net>
73359
73360         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
73361         memory.
73362
73363 2004-04-20  Jim Meyering  <jim@meyering.net>
73364             Bruno Haible  <bruno@clisp.org>
73365
73366         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
73367         memory when realloc fails.
73368
73369 2004-04-19  Jim Meyering  <jim@meyering.net>
73370
73371         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
73372         now that readutmp.c may call `free (0)'.
73373
73374 2004-04-19  Bruno Haible  <bruno@clisp.org>
73375
73376         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
73377         * m4/inttypes_h.m4: Likewise.
73378         * m4/stdint_h.m4: Likewise.
73379         * m4/intmax_t.m4: Likewise.
73380         * m4/uintmax_t.m4: Likewise.
73381
73382 2004-04-18  Jim Meyering  <jim@meyering.net>
73383
73384         * m4/prereq.m4: Don't forbid jm_ prefix.
73385
73386         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
73387         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
73388         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
73389         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
73390         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
73391         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
73392         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
73393         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
73394         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
73395         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
73396         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
73397         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
73398         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
73399         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
73400         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
73401         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73402         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73403         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73404         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73405
73406 2004-04-18  Jim Meyering  <jim@meyering.net>
73407
73408         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73409         failure, don't leak memory and do call END_UTMP_ENT.
73410
73411 2004-04-16  Jim Meyering  <jim@meyering.net>
73412
73413         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73414         coreutils' stat program.
73415         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73416
73417 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73418
73419         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73420         C89.
73421         (CHAR_BIT): Remove, since we assume C89.
73422         Include <stdint.h> if available, as per current Autoconf CVS advice.
73423
73424 2004-03-31  Jim Meyering  <jim@meyering.net>
73425
73426         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73427         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73428         * m4/xalloc.m4: Likewise.
73429
73430 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73431
73432         Merge from coreutils.
73433
73434         * m4/inttostr.m4: New file.
73435         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73436         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73437         Require gl_CLOCK_TIME.
73438         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73439
73440 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73441
73442         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73443         not bool, to be more consistent with Unix conventions.
73444         Suggested by Bruno Haible.
73445
73446         Merge from coreutils.
73447
73448         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73449         * lib/umaxtostr.c: New files.
73450
73451         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73452         the usual <time.h> dance.
73453         (get_date): Change signature to support fractional time stamps.
73454         All callers changed.
73455         * lib/getdate.y: Include "getdate.h" first, as we can now
73456         assume C89 and don't need to worry about 'const'.
73457         Similarly, include "unlocked-io.h" near start, not in middle.
73458         Include <limits.h>.
73459         (textint.value): Use long int rather than int.
73460         (textint.digits): Use size_t rather than int.
73461         (BILLION, LOG10_BILLION): New constants.
73462         (parser_control): New member rel_ns.  Members day_ordinal,
73463         time_zone, month, day, hour, minutes, rel_year, rel_month,
73464         rel_day, rel_hour, rel_minutes, rel_seconds
73465         are now long int, not int.  Member seconds is now struct timespec,
73466         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73467         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73468         not int.
73469         (%union.intval): Now long int, not int.
73470         New member timespec.
73471         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73472         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73473         (spec): Now is a timespec or an item list.
73474         (timespec, items): New nonterminals.
73475         (time, rel, relunit, number, get_date):
73476         Add support for fractional seconds.
73477         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73478         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73479         (to_hour): First arg is now long int, not int.
73480         (to_year): Returns long int, not int.
73481         Don't treat year -70 like 70.
73482         (tm_diff): Returns long int, not int.
73483         (lookup_word): Use bool instead of int when appropriate.
73484         (yylex): Use size_t for count, not int.
73485         Detect overflow when parsing large integer constants.
73486         Add support for fractions.
73487         (get_date): Make pointers 'const' if possible.
73488         Use more-portable code to detect integer overflow.
73489         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73490         Don't use ctime; it's not reliable if the year has >4 digits.
73491
73492         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73493         This is for compatibility with BSD.
73494
73495         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73496         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73497         From coreutils' system.h.
73498
73499         * lib/userspec.c: Don't include "posixver.h".
73500         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73501         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73502         compatible extension.  Simplify code by removing a boolean int
73503         that was always nonzero if a string was nonnull.
73504
73505 2004-03-30  Jim Meyering  <jim@meyering.net>
73506
73507         Merge from coreutils.
73508
73509         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73510         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73511         on some systems one must include <grp.h> before it.
73512         Reported by Christian Krackowizer.
73513
73514 2004-03-30  Jim Meyering  <jim@meyering.net>
73515
73516         Merge from coreutils.
73517
73518         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73519
73520         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73521         an empty input stream.
73522
73523         * lib/readtokens.c: Include <stdbool.h>.
73524         (readtoken): Use `size_t' rather than int/long.
73525         All callers adjusted.
73526         Use `bool' rather than `int' where appropriate.
73527         Use memset rather than an explicit loop.
73528         Use x2nrealloc rather than xrealloc.
73529         Allow the use of `\0' as a delimiter.
73530         (readtokens): Likewise.
73531         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73532
73533 2004-03-30  Jim Meyering  <jim@meyering.net>
73534
73535         * m4/realloc.m4: Remove file, since now it does no more than
73536         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73537         the `configure.ac' section of module/realloc.
73538         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73539
73540 2004-03-30  Bruno Haible  <bruno@clisp.org>
73541
73542         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73543         nonnull.
73544
73545 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73546
73547         Merge changes to getloadavg.c from coreutils and Emacs.
73548
73549         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73550         Define to an expression, not to the empty string.
73551         Include cloexec.h and xalloc.h.
73552         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73553         Use set_cloexec_flag rather than rolling our own.
73554         * lib/cloexec.c, lib/cloexec.h: New files.
73555
73556 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73557
73558         * m4/cloexec.m4: New file.
73559
73560 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73561
73562         * lib/getopt.h: Sync with libc CVS.
73563
73564 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73565             Bruno Haible  <bruno@clisp.org>
73566
73567         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73568         mbswidth.
73569
73570 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73571             Bruno Haible  <bruno@clisp.org>
73572
73573         * lib/mbswidth.h: Include <wchar.h> only if
73574         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73575         <wchar.h>.
73576         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73577
73578 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73579
73580         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73581         Sync with libc CVS.
73582         * lib/getopt_int.h: New file, also synced from libc.
73583
73584 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73585
73586         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73587         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73588         Bring back getopt.c, getopt.h, getopt1.c.
73589
73590 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73591
73592         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73593         All uses changed.  Check for sa_sigaction member; this fixes
73594         a bug first reported by Jason Andrade in
73595         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73596
73597 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73598
73599         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73600         '#if' expressions.  Unlike the code it replaces, it does not
73601         depend on (defined _SC_PAGESIZE).  However, it does depend on
73602         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73603         first reported by Jason Andrade in
73604         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73605
73606 2004-02-25  Simon Josefsson  <jas@extundo.com>
73607
73608         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73609
73610 2004-02-25  Simon Josefsson  <jas@extundo.com>
73611
73612         * lib/strdup.h: New file.
73613         * lib/strdup.c: Include it.
73614         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73615         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73616
73617 2004-02-23  Karl Berry  <karl@gnu.org>
73618
73619         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73620         (from fencepost.gnu.org:/gd/gnuorg).
73621
73622 2004-02-23  Karl Berry  <karl@gnu.org>
73623
73624         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73625         * config/srclist.txt: add maintain/standards documents.
73626
73627 2004-02-18  Bruno Haible  <bruno@clisp.org>
73628
73629         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73630         Reported by Derek Robert Price <derek@ximbiot.com>.
73631
73632 2004-02-16  Karl Berry  <karl@gnu.org>
73633
73634         * config/mkinstalldirs, install-sh: update from automake.
73635
73636 2004-02-06  Karl Berry  <karl@gnu.org>
73637
73638         * m4/po.m4: update from gettext 0.14.1.
73639
73640 2004-02-06  Karl Berry  <karl@gnu.org>
73641
73642         * lib/config.charset: update from gettext 0.14.1.
73643
73644 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73645
73646         Add comments and code, prompted by suggestions from Bruno Haible
73647         for sh-quote.
73648         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73649         describing the enum quoting_style values.
73650         * lib/quotearg.c (quotearg_alloc): New function.
73651         (quotearg_buffer_restyled): Treat lone { and } as special.
73652         Treat = as special.  Work around bug with older shells
73653         that "see" a '\' that is really the 2nd byte of a multibyte char.
73654         Quote empty string with shell_quoting_style.
73655
73656 2004-02-03  Bruno Haible  <bruno@clisp.org>
73657
73658         * m4/pipe.m4: New file, from GNU gettext.
73659
73660 2004-02-03  Bruno Haible  <bruno@clisp.org>
73661
73662         * lib/pipe.h: New file, from GNU gettext.
73663         * lib/pipe.c: New file, from GNU gettext.
73664
73665 2004-01-27  Bruno Haible  <bruno@clisp.org>
73666
73667         * m4/execute.m4: New file, from GNU gettext.
73668
73669 2004-01-27  Bruno Haible  <bruno@clisp.org>
73670
73671         * lib/execute.h: New file, from GNU gettext.
73672         * lib/execute.c: New file, from GNU gettext.
73673         * lib/w32spawn.h: New file, from GNU gettext.
73674
73675 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73676
73677         Merge from diffutils.
73678
73679         * lib/file-type.c (file_type): Add typed memory objects.
73680         * lib/file-type.h (S_TYPEISTMO): New macro.
73681
73682         * lib/c-stack.h (c_stack_action): Remove argv argument.
73683         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73684         (die): Don't calculate message unless segv_action returns.
73685         (get_stack_location, min_address_from_argv, max_address_from_argv,
73686         volatile stack_base, volatile_stack_size): Remove.
73687         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73688         that every segmentation violation is a stack overflow.  (Ouch!)
73689         See Debian bug 136249 (still outstanding) for more info about why
73690         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73691
73692 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73693
73694         Exit-status fix from coreutils.
73695
73696         Use exit_failure consistently in place of EXIT_FAILURE,
73697         so that program exit statuses are consistent on failure.
73698
73699         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73700         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73701         * lib/argmatch.h: Comment fix to match the above.
73702         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73703         Now a macro referring to exit_failure, instead of a separate
73704         variable.  Include "exitfail.h" to get it.
73705         * lib/xstrtol.h: Include "exitfail.h".
73706         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73707
73708         * lib/long-options.c (parse_long_options): Use prototype
73709         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73710         for clarity.
73711
73712 2004-01-21  Jim Meyering  <jim@meyering.net>
73713
73714         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73715         so as not to conflict with a different-sized __mktime_internal
73716         function in GNU libc.
73717         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73718         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73719
73720 2004-01-20  Karl Berry  <karl@gnu.org>
73721
73722         * config/config.guess: update from config.
73723
73724         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73725
73726 2004-01-20  Bruno Haible  <bruno@clisp.org>
73727
73728         Safer stack allocation.
73729         * lib/setenv.c: Include allocsa.h.
73730         (alloca): Remove fallback definition.
73731         (freea): Remove macro.
73732         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73733         instead of freea.
73734
73735 2004-01-20  Bruno Haible  <bruno@clisp.org>
73736
73737         * m4/eealloc.m4: New file, from GNU gettext.
73738
73739 2004-01-20  Bruno Haible  <bruno@clisp.org>
73740
73741         * m4/allocsa.m4: New file, from GNU gettext.
73742
73743 2004-01-20  Bruno Haible  <bruno@clisp.org>
73744
73745         * lib/xallocsa.h: New file, from GNU gettext.
73746         * lib/xallocsa.c: New file, from GNU gettext.
73747
73748 2004-01-20  Bruno Haible  <bruno@clisp.org>
73749
73750         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73751
73752 2004-01-20  Bruno Haible  <bruno@clisp.org>
73753
73754         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73755         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73756         specially.
73757
73758 2004-01-20  Bruno Haible  <bruno@clisp.org>
73759
73760         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73761         patch.
73762
73763 2004-01-20  Bruno Haible  <bruno@clisp.org>
73764
73765         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73766
73767 2004-01-20  Bruno Haible  <bruno@clisp.org>
73768
73769         * lib/eealloc.h: New file.
73770
73771 2004-01-20  Bruno Haible  <bruno@clisp.org>
73772
73773         * lib/binary-io.h: Avoid warnings on Cygwin.
73774
73775 2004-01-20  Bruno Haible  <bruno@clisp.org>
73776
73777         * lib/allocsa.h: New file, from GNU gettext.
73778         * lib/allocsa.c: New file, from GNU gettext.
73779
73780 2004-01-18  Karl Berry  <karl@gnu.org>
73781
73782         * doc/gpl.texi, doc/lgpl.texi: new files.
73783
73784 2004-01-18  Karl Berry  <karl@gnu.org>
73785
73786         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73787         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73788
73789 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73790
73791         Merge from coreutils.
73792
73793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73794         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73795         (gl_DEFAULT_POSIX2_VERSION): Move
73796         the documentation from 'configure' into 'config.hin',
73797         so that 'configure --help' isn't burdened by it and
73798         we don't have to worry about its formatting there.
73799         Reword the documentation so that it's more succinct
73800         and can be run together into a single paragraph.
73801         * m4/same.m4 (gl_SAME): Check for pathconf.
73802
73803 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73804
73805         Merge from coreutils.
73806
73807         * lib/posixver.c: Include posixver.h.
73808
73809         * lib/same.c: Include <stdbool.h>, <limits.h>.
73810         (_POSIX_NAME_MAX): Define if not defined.
73811         (MIN): New macro.
73812         (same_name): If file names are silently truncated, report
73813         that the file names are the same if they are the same after
73814         the silent truncation.
73815
73816         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73817         conversion function.
73818         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73819         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73820         longer needed.
73821
73822 2004-01-15  Jim Meyering  <jim@meyering.net>
73823
73824         Merge from coreutils.
73825
73826         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73827         if no library is required.
73828         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73829         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73830         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73831         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73832         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73833         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73834         value, $ac_cv_search_crypt, if it's "none required".
73835         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73836         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73837         not gl_FUNC_GETLOADAVG.
73838         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73839         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73840
73841 2004-01-15  Jim Meyering  <jim@meyering.net>
73842
73843         Merge from coreutils.
73844
73845         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73846         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73847         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73848
73849         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73850         optional configure-time default.
73851
73852         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73853
73854         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73855
73856 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73857
73858         Merge from coreutils.
73859
73860         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73861         value, $ac_cv_search_nanosleep, if it's "none required".
73862
73863 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73864
73865         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73866         with like-named macro in fnmatch.c.
73867         (EXT): Use an internal constant instead.
73868
73869         Merge fnmatch patches from glibc.
73870         * lib/fnmatch.c (mbsinit): Remove define.
73871         Add libc_hidden_ver (__fnmatch, fnmatch).
73872         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73873         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73874
73875 2004-01-14  Karl Berry  <karl@gnu.org>
73876
73877         * config/install-sh: update from automake.
73878
73879 2004-01-13  Karl Berry  <karl@gnu.org>
73880
73881         * config/install-sh: update from automake.
73882
73883 2004-01-09  Karl Berry  <karl@gnu.org>
73884
73885         * config/install-sh: update from automake.
73886
73887 2004-01-05  Karl Berry  <karl@gnu.org>
73888
73889         * config/config.{sub,guess}: update from config.
73890
73891 2003-12-31  Karl Berry  <karl@gnu.org>
73892
73893         * config/depcomp: update from automake.
73894
73895 2003-12-14  Karl Berry  <karl@gnu.org>
73896
73897         * lib/config.charset: update from gettext-runtime.
73898
73899 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73900
73901         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73902         Bug reported by Alfred M. Szmidt.
73903
73904 2003-12-03  Bruno Haible  <bruno@clisp.org>
73905
73906         * m4/gettext.m4: Upgrade from gettext-0.13.
73907         * m4/po.m4: Upgrade from gettext-0.13.
73908         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73909         * m4/intmax.m4: New file, from gettext-0.13.
73910         * m4/printf-posix.m4: New file, from gettext-0.13.
73911
73912 2003-11-29  Karl Berry  <karl@gnu.org>
73913
73914         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73915
73916 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73917             Bruno Haible  <bruno@clisp.org>
73918
73919         * lib/printf-parse.h: Don't include sys/types.h.
73920         (ARG_NONE): New macro.
73921         (char_directive): Change type of *arg_index fields to size_t.
73922         * lib/printf-parse.c: Don't include sys/types.h.
73923         (SSIZE_MAX): Remove macro.
73924         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73925         Remove unnecessary overflow check.
73926         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73927         fields.
73928
73929 2003-11-25  Bruno Haible  <bruno@clisp.org>
73930
73931         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73932
73933 2003-11-25  Bruno Haible  <bruno@clisp.org>
73934
73935         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73936         gt_TYPE_SSIZE_T.
73937
73938 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73939
73940         * modules/alloca: Remove dependency on xalloc.
73941
73942 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73943
73944         * lib/alloca.c: Remove dependency on xalloc module.
73945         (xalloc_die): Remove.
73946         (memory_full) [!defined emacs]: New macro.
73947         [!defined emacs]: Don't include xalloc.h.
73948         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73949         address arithmetic overflows.  Change datatypes a bit to avoid
73950         unnecessary casts.
73951
73952 2003-11-22  Jim Meyering  <jim@meyering.net>
73953
73954         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73955         s/size/size_t/.
73956
73957 2003-11-21  Karl Berry  <karl@gnu.org>
73958
73959         * config/config.{sub,guess}: update from config.
73960
73961 2003-11-18  Karl Berry  <karl@gnu.org>
73962
73963         * config/config.{sub,guess}: update from config.
73964
73965         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73966
73967 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73968
73969         * README: Mention that S+T cannot overflow if S is the size of
73970         an existing object and T is sufficiently small.
73971
73972 2003-11-17  Jim Meyering  <jim@meyering.net>
73973
73974         On systems without utime and without a utimes function capable of
73975         dealing with a NULL struct utimbuf* argument, this utime replacement
73976         could -- in unusual circumstances -- leak a file descriptor.
73977         * lib/utime.c: Include <unistd.h> and <errno.h>.
73978         (utime_null): Be sure to close `fd' and to preserve errno.
73979         Reported by Geoff Collyer via Arnold Robbins.
73980
73981 2003-11-17  Bruno Haible  <bruno@clisp.org>
73982
73983         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73984         (Depends-on): Add xsize.
73985
73986 2003-11-17  Bruno Haible  <bruno@clisp.org>
73987
73988         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73989
73990 2003-11-17  Bruno Haible  <bruno@clisp.org>
73991
73992         * lib/vasnprintf.c (alloca): Remove fallback definition.
73993         (freea): Remove definition.
73994         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73995         Reported by Paul Eggert.
73996
73997 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73998             Bruno Haible  <bruno@clisp.org>
73999
74000         Protect against address arithmetic overflow.
74001         * lib/printf-args.h: Include stddef.h.
74002         (arguments): Change type of field 'count' to size_t.
74003         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
74004         'unsigned int' where appropriate.
74005         * lib/printf-parse.h: Include sys/types.h.
74006         (char_directive): Change type of *arg_index fields to ssize_t.
74007         (char_directives): Change type of fields 'count', max_*_length to
74008         size_t.
74009         * lib/printf-parse.c: Include sys/types.h and xsize.h.
74010         (SSIZE_MAX): Define fallback value.
74011         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
74012         instead of 'int' where appropriate. Check a_allocated, d_allocated
74013         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
74014         * lib/vasnprintf.c: Include xsize.h.
74015         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
74016         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
74017         overflow. Avoid wraparound when converting a width or precision from
74018         decimal to binary.
74019
74020 2003-11-16  Bruno Haible  <bruno@clisp.org>
74021
74022         Update from GNU gettext.
74023         * lib/printf-parse.c: Generalize to it can be compiled for wide
74024         strings.
74025         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
74026         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
74027         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
74028         SNPRINTF): New macros.
74029         Don't include <alloca.h> if the file is used inside libintl.
74030         (local_wcslen): New function, for Solaris 2.5.1.
74031         (VASNPRINTF): Use it instead of wcslen.
74032
74033 2003-11-16  Bruno Haible  <bruno@clisp.org>
74034
74035         * lib/xsize.h (xmax): New function.
74036         (xsum, xsum3, xsum4): Declare as "pure" functions.
74037
74038 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74039
74040         * modules/xalloc (Files): Undo latest change, since xalloc.h
74041         no longer needs SIZE_MAX or PTRDIFF_MAX.
74042
74043 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74044
74045         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
74046         gl_PTRDIFF_MAX.
74047
74048 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74049
74050         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
74051         "return", to pacify some unknown compiler.  Problem reported
74052         by Joerg Schilling.
74053
74054 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74055
74056         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
74057         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
74058         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
74059         heuristic is just as accurate as far as we know, and it removes a
74060         dependency on size_max.m4 and ptrdiff_max.m4.
74061
74062 2003-11-11  Bruno Haible  <bruno@clisp.org>
74063
74064         * modules/xsize (Files): Add m4/size_max.m4.
74065         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
74066
74067 2003-11-11  Bruno Haible  <bruno@clisp.org>
74068
74069         * m4/size_max.m4: New file.
74070         * m4/ptrdiff_max.m4: New file.
74071         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
74072         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
74073         (gl_XALLOC): Invoke it.
74074
74075 2003-11-11  Bruno Haible  <bruno@clisp.org>
74076
74077         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
74078         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
74079         defined.
74080
74081 2003-11-10  Paul Eggert  <eggert@twinsun.com>
74082
74083         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
74084         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
74085         rejected some allocations of exactly SIZE_MAX - 2 bytes.
74086         From Bruno Haible.
74087         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
74088         not (size_t) -1, since it's defined here.
74089
74090 2003-11-09  Karl Berry  <karl@gnu.org>
74091
74092         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
74093
74094 2003-11-06  Paul Eggert  <eggert@twinsun.com>
74095
74096         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
74097         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
74098         Reject sizes of exactly SIZE_MAX bytes.
74099         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
74100         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
74101
74102 2003-11-05  Bruno Haible  <bruno@clisp.org>
74103
74104         * lib/xsize.h: Include limits.h, to avoid a possible collision with
74105         SIZE_MAX defined in <limits.h> on Solaris.
74106
74107 2003-11-04  Jim Meyering  <jim@meyering.net>
74108
74109         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
74110         variable names, rather than @VAR@.
74111         * modules/poll: Likewise.
74112
74113 2003-11-04  Bruno Haible  <bruno@clisp.org>
74114
74115         * modules/xsize: New file.
74116         * modules/linebreak: Depend on xsize.
74117         * MODULES.html.sh (func_all_modules): Add xsize.
74118
74119 2003-11-04  Bruno Haible  <bruno@clisp.org>
74120
74121         * m4/xsize.m4: New file.
74122
74123 2003-11-04  Bruno Haible  <bruno@clisp.org>
74124
74125         * lib/xsize.h: New file.
74126         * lib/linebreak.c: Include xsize.h.
74127         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
74128         argument for overflow.
74129         Suggested by Paul Eggert.
74130
74131 2003-11-03  Karl Berry  <karl@gnu.org>
74132
74133         * config/config.{guess,sub}: update from config.
74134
74135 2003-11-03  Jim Meyering  <jim@meyering.net>
74136
74137         * modules/userspec (lib_SOURCES): Add userspec.h.
74138         (Include): Add "userspec.h".
74139         Improve description.
74140
74141 2003-11-03  Jim Meyering  <jim@meyering.net>
74142
74143         * lib/userspec.c: Include "userspec.h".
74144         * lib/userspec.h: New file.
74145
74146 2003-11-03  Bruno Haible  <bruno@clisp.org>
74147
74148         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
74149
74150 2003-11-03  Bruno Haible  <bruno@clisp.org>
74151
74152         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
74153         available, to avoid (extremely rare) race condition.
74154         Suggested by Paul Eggert.
74155
74156 2003-11-02  Karl Berry  <karl@gnu.org>
74157
74158         * config/srclist.txt (vasprintf.c): sync broken, sigh.
74159
74160 2003-10-31  Paul Eggert  <eggert@twinsun.com>
74161
74162         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
74163         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
74164         (read_filesystem_list): Set and use me_type_malloced.
74165         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
74166         whatever the type happens to be), for brevity and consistency.
74167         Check for size calculation overflow on Alphas running OSF/1.
74168
74169 2003-10-31  Jim Meyering  <jim@meyering.net>
74170
74171         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
74172
74173         * lib/linebuffer.c: Include <string.h> for declaration of memset.
74174
74175 2003-10-30  Paul Eggert  <eggert@twinsun.com>
74176             Bruno Haible  <bruno@clisp.org>
74177
74178         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
74179         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
74180
74181 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74182
74183         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
74184         netbsd*-gnu*.  Suggested by Robert Millan.
74185
74186 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74187
74188         * modules/group-member: Depend on stdbool.
74189
74190 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74191
74192         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
74193
74194 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74195
74196         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
74197         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
74198         after the 'gnu' in these cases.  This fixes some bugs in the
74199         previous change, and is based on suggestions by Robert Millan.
74200
74201 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74202
74203         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
74204         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
74205         no longer needed.
74206         * lib/quotearg.c (quotearg_n_options): Use it.
74207         * lib/group-member.c: Include <stdbool.h>.
74208         (free_group_info): Arg is now const *; don't free arg.
74209         (get_group_info): Now returns bool and accepts struct group_info *,
74210         rather than returning a malloc'ed struct group_info *.
74211         All uses changed.  Check for overflow in internal size calculation.
74212
74213         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
74214         rather than xmalloc/xrealloc.
74215         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
74216         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
74217         conformance bug: the old code used a pointer after freeing the
74218         storage that it addressed.
74219         * lib/hash.c (hash_initialize): Simplify the code by using
74220         xalloc_oversized rather than doing it by hand.
74221         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
74222         the buffer preserved.  Use free and xmalloc instead.
74223         * lib/quotearg.c (quotearg_n_options): Likewise.
74224         Use a simpler test for size overflow.  Don't use xalloc_oversized
74225         because unsigned int might be wider than size_t (!); this suggests
74226         that we should switch from unsigned int to size_t for slot numbers.
74227
74228 2003-10-28  Paul Eggert  <eggert@twinsun.com>
74229
74230         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
74231         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
74232         NetBSD kernels.  Requested by Richard Stallman.
74233
74234 2003-10-27  Paul Eggert  <eggert@twinsun.com>
74235
74236         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
74237         to allocate the returned structure.  Do not allocate a subarray,
74238         as x2nrealloc will do that.
74239         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
74240         instead of xnrealloc.
74241         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
74242
74243 2003-10-27  Bruno Haible  <bruno@clisp.org>
74244
74245         * lib/stdbool_.h: Better support for BeOS.
74246
74247 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74248
74249         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
74250         now uses inline.
74251
74252 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74253
74254         * lib/xalloc.h (xalloc_oversized): New static inline function, for
74255         callers that want to do their own size-overflow checking.  Include
74256         <stdbool.h>, since xalloc_oversized returns bool.
74257         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
74258         to use xalloc_oversized.
74259
74260         Add two functions x2realloc, x2nrealloc, for programs that grow
74261         arrays dynamically by doubling their sizes.
74262         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
74263         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
74264         New functions.
74265
74266         Port to C99 semantics for 'inline' of external functions.
74267         Bug reported by Bruno Haible.
74268         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
74269         with the old contents of xnmalloc.
74270         (xnmalloc, xmalloc): Use it.
74271         (xnrealloc_inline): New static inline function,
74272         with the old contents of xnrealloc.
74273         (xnrealloc, xrealloc): Use it.
74274
74275         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
74276         that.
74277
74278 2003-10-26  Karl Berry  <karl@gnu.org>
74279
74280         * config/srclist.txt (COPYING.DOC): no longer available from
74281         /gd/gnuorg; don't know where the ultimate source is.
74282
74283 2003-10-25  Paul Eggert  <eggert@twinsun.com>
74284
74285         Fix several address-calculation bugs in the hash modules,
74286         plus some minor code cleanup.
74287
74288         * lib/hash.h: Include <stdbool.h>, for bool.
74289         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
74290         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
74291         hash_get_n_entries, hash_get_max_bucket_length,
74292         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
74293         hash_rehash): Use size_t rather than unsigned.
74294         * lib/hash.c (struct hash_table, hash_get_n_buckets,
74295         hash_get_n_buckets_used, hash_get_n_entries,
74296         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
74297         hash_get_entries, hash_do_for_each, hash_string, is_prime,
74298         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
74299         Likewise.
74300         (SIZE_MAX): Define if not defined.
74301         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
74302         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
74303         hash_print):
74304         Use const * when possible.
74305         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
74306         (check_tuning): Fix bug: if tuning parameters were very close to
74307         0 or 1, rounding errors could have caused subscript violations.
74308         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
74309         (hash_initialize): Add 'fail:' label
74310         to free table and return NULL, and use it to simplify code.
74311         Use calloc rather than clearing the storage ourself.
74312         (hash_initialize, hash_rehash): Check for arithmetic overflow in
74313         buffer size calculations.
74314         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
74315         Include <stddef.h>, for size_t.
74316         * lib/hash-pjw.c (hash_pjw): Likewise.
74317         Switch to method described by Bruno Haible.
74318         Include <limits.h>, for CHAR_BIT.
74319         (SIZE_BITS): New macro.
74320
74321 2003-10-23  Paul Eggert  <eggert@twinsun.com>
74322
74323         * m4/getline.m4 (AM_FUNC_GETLINE):
74324         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
74325         hosts.  Problem reported by Derek Robert Price in
74326         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
74327         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
74328         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
74329
74330 2003-10-21  Paul Eggert  <eggert@twinsun.com>
74331
74332         * lib/getndelim2.c (getndelim2): When size calculation overflows,
74333         ceiling the allocation at NMAX bytes rather than silently
74334         discarding input bytes before NMAX is reached.  This makes
74335         a difference only if NMAX exceeds SIZE_MAX / 2.
74336
74337         * lib/obstack.c: Merge from glibc.
74338         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
74339         Add libc_hidden_def (_obstack_newchunk).
74340         (_obstack_free) [! defined _LIBC]: Remove.
74341         [defined _LIBC]: Make a strong alias from obstack_free, rather than
74342         a clone of the function body.
74343         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
74344         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
74345
74346         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
74347         glibc.
74348         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
74349         arg to memcpy.
74350
74351         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
74352         (obstack_ptr_grow_fast, obstack_int_grow_fast):
74353         Don't use lvalue casts, as GCC plans to remove support for them
74354         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
74355         was also present in the non-GCC version, indicating that this
74356         code had always been buggy and had never been widely used.
74357         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
74358         Use the fast variant of each macro, rather than copying the
74359         definiens of the fast variant; that way, we'll be more likely to
74360         catch future bugs in the fast variants.
74361
74362 2003-10-20  Bruno Haible  <bruno@clisp.org>
74363
74364         * modules/wait-process: New file.
74365         * MODULES.html.sh (func_all_modules): Add wait-process.
74366
74367 2003-10-20  Bruno Haible  <bruno@clisp.org>
74368
74369         * m4/wait-process.m4: New file.
74370
74371 2003-10-20  Bruno Haible  <bruno@clisp.org>
74372
74373         * lib/wait-process.h: New file, from GNU gettext.
74374         * lib/wait-process.c: New file, from GNU gettext.
74375
74376 2003-10-19  Jim Meyering  <jim@meyering.net>
74377
74378         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
74379         HPUX 10.20.
74380
74381 2003-10-18  Karl Berry  <karl@gnu.org>
74382
74383         * config/config.guess: update from config.
74384
74385 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74386
74387         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
74388         (getgroups): First arg is int, not size_t.
74389         Don't let 'free' mangle errno.
74390
74391 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74392
74393         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
74394
74395 2003-10-16  Karl Berry  <karl@gnu.org>
74396
74397         * config/config.{guess,sub}: update from config.
74398
74399 2003-10-16  Jim Meyering  <jim@meyering.net>
74400
74401         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74402         memcpy.
74403
74404 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74405
74406         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74407         (SIZE_MAX): Remove.
74408         (new_exclude, add_exclude_file): Initial size no longer needs to
74409         be a power of 2.
74410         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74411         our own address arithmetic overflow checking.
74412
74413         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74414         (fnmatch): Do not alloca more than 2000 wide characters;
74415         instead, use malloc for large buffers.
74416         Check for address arithmetic overflow, and return -1
74417         with errno set to ENOMEM in that case.
74418         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74419         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74420         instead, return -1.  Check for address arithmetic overflow.
74421
74422 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74423
74424         Handle invalid suffixes and overflow independently, so that
74425         callers can treat them independently as needed.  Fix some bugs in
74426         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74427         suffix for a human-readable blocksize.  The major caller-visible
74428         change is the addition of a new
74429         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74430         that both overflow and suffix chars were found.
74431
74432         * lib/human.c (humblock): Don't check separately for invalid suffix
74433         char; that is xstrtoumax's job (now that its bug is fixed).
74434         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74435         INTMAX_MAX]: New macros.
74436         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74437         TYPE_MAXIMUM): New macros.
74438         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74439         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74440         if overflow occurs, as it's what __strtol does and it's more useful
74441         in practice.
74442         (__xstrtol): If __strtol reports some error other than ERANGE,
74443         reflect it to the caller as LONGINT_INVALID.  If it reports
74444         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74445         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74446         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74447         value.
74448         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74449         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74450         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74451         [defined UINTMAX_MAX]: New macros.
74452
74453 2003-10-14  Bruno Haible  <bruno@clisp.org>
74454
74455         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74456
74457 2003-10-14  Bruno Haible  <bruno@clisp.org>
74458
74459         * m4/sig_atomic_t: New file, from GNU gettext.
74460         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74461
74462 2003-10-14  Bruno Haible  <bruno@clisp.org>
74463
74464         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74465         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74466         Also use volatile where needed.
74467
74468 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74469
74470         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74471         Change maintainer from Bruno Haible to 'all'.
74472
74473 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74474
74475         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74476
74477 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74478
74479         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74480         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74481         and define in terms of the other primitives.
74482         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74483         (SIZE_MAX): Define if not already defined.
74484         (array_size_overflow): New function.
74485         (xalloc_die): Abort instead of exiting if 'error' returns.
74486         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74487         (xmalloc, xrealloc): Use them.
74488         (xcalloc): Check for address arithmetic overflow.
74489         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74490         a bit faster than strcpy.
74491
74492 2003-10-10  Simon Josefsson  <jas@extundo.com>
74493
74494         * modules/argp (Depends-on): Add restrict and strcase.
74495
74496 2003-10-10  Simon Josefsson  <jas@extundo.com>
74497
74498         * m4/argp.m4: Add AC_C_INLINE.
74499
74500 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74501
74502         Merge getpass from libc, plus a few fixes.
74503
74504         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74505         Include <stdbool.h>.
74506         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74507         __fsetlocking to empty.
74508         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74509         do include <bits/libc-lock.h>.
74510         Do not include <fcntl.h>; not needed.
74511         [_LIBC]: Include <wchar.h>.
74512         (NOTCANCEL_MODE): New macro.
74513         (flockfile, funlockfile) [_LIBC]: New macros.
74514         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74515         [!_LIBC]: New macros.
74516         (call_fclose): New function.
74517         (getpass): Use it.  Save tty stream separately; this simplifies the
74518         code and makes it more reliable if stdin happens to equal stdout.
74519         Invoke __fsetlocking on tty.
74520         Handle thread cancellation if needed.
74521         Namespace cleanup (use __tcgetattr, __getline).
74522         Use bool for Booleans.
74523         [USE_IN_LIBIO]: Handle wide streams.
74524         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74525         stream might go where.
74526
74527         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74528         doesn't have to include <stdio.h> before us.
74529         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74530         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74531         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74532         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74533         if not declared, so that we can use getpass.c code from libc without
74534         rewriting it.
74535         (flockfile, ftrylockfile, funlockfile): New macros.
74536
74537 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74538
74539         * modules/getpass: Depend on stdbool.
74540
74541 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74542
74543         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74544
74545 2003-10-07  Karl Berry  <karl@gnu.org>
74546
74547         * config/config.{guess,sub}: update from config.
74548
74549 2003-10-06  Jim Meyering  <jim@meyering.net>
74550             Bruno Haible  <bruno@clisp.org>
74551
74552         This lets translators provide better translations for the
74553         "Written by ..." part of --version output.
74554         * lib/version-etc.h: Include stdarg.h.
74555         (version_etc_copyright): Declare as readonly.
74556         (version_etc): Make this function variadic with a NULL-terminated list
74557         of author name strings.
74558         (version_etc_va): New declaration.
74559         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74560         (version_etc_copyright): Declare as readonly.
74561         (version_etc_va): New function. Provide a different translatable string
74562         for each possible number of authors < 10. Abbreviate when there are 10
74563         authors or more.
74564         (version_etc): Make this function variadic. Call version_etc_va.
74565         Suggestion from Gary V. Vaughan.
74566
74567         * lib/long-options.h (parse_long_options): Change prototype: the
74568         authors string is moved to the end and becomes variadic.
74569         * lib/long-options.c: Include stdarg.h.
74570         (parse_long_options): Make this function variadic, too.
74571         Call version_etc_va, not version_etc.
74572
74573 2003-10-06  Bruno Haible  <bruno@clisp.org>
74574
74575         * modules/version-etc-2: Remove file.
74576         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74577
74578 2003-10-06  Bruno Haible  <bruno@clisp.org>
74579
74580         * modules/fatal-signal: New file.
74581         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74582
74583 2003-10-06  Bruno Haible  <bruno@clisp.org>
74584
74585         * m4/fatal-signal.m4: New file.
74586         * m4/signalblocking.m4: New file, from GNU gettext.
74587
74588 2003-10-06  Bruno Haible  <bruno@clisp.org>
74589
74590         * lib/version-etc-2.h: Remove file.
74591         * lib/version-etc-2.c: Remove file.
74592
74593 2003-10-06  Bruno Haible  <bruno@clisp.org>
74594
74595         * lib/fatal-signal.h: New file, from GNU gettext.
74596         * lib/fatal-signal.c: New file, from GNU gettext.
74597
74598 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74599
74600         * README: Rework advice for preventing empty .o files.
74601         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74602         not <sys/types.h>.
74603
74604 2003-10-04  Karl Berry  <karl@gnu.org>
74605
74606         * lib/argp*: update from libc.
74607
74608 2003-10-04  Karl Berry  <karl@gnu.org>
74609
74610         * config/config.{guess,sub}: update from config.
74611
74612 2003-10-02  Bruno Haible  <bruno@clisp.org>
74613
74614         * modules/lchown (Include): Add lchown.h.
74615         * modules/time_r (Include): Use "..." syntax.
74616         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74617
74618 2003-10-01  Simon Josefsson  <jas@extundo.com>
74619
74620         * MODULES.html.sh (func_all_modules): Move gethostname from section
74621         'based on' to section 'lacking' POSIX:2001.
74622
74623 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74624
74625         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74626         to output mode on the same stream.
74627
74628 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74629
74630         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74631         Fix arg typo in previous patch.
74632
74633 2003-09-28  Jim Meyering  <jim@meyering.net>
74634
74635         * lib/error.c: Correct cpp indentation.
74636
74637 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74638
74639         * modules/free: New file.
74640
74641 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74642
74643         * m4/free.m4: New file.
74644
74645 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74646
74647         * lib/minmax.h (MIN, MAX)
74648         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74649         Omit the special code that used __typeof__, since we worry that
74650         it could be more trouble than it's worth.  See:
74651         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74652         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74653
74654         * lib/free.c: New file.
74655
74656 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74657
74658         Trivial fixes to Makefile.am parts of module listings.
74659         * modules/strstr: Append strstr.h to lib_SOURCES.
74660         * modules/strcase: Likewise, for strcase.h.
74661
74662 2003-09-27  Karl Berry  <karl@gnu.org>
74663
74664         * config/mkinstalldirs: update from automake.
74665
74666 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74667
74668         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74669         (error_tail): Do not loop, reallocating temporary buffer, since
74670         the output cannot contain more wide characters than the input
74671         contains bytes, the size must be big enough already.  This avoids
74672         one potential size overflow calculation.  Check for size overflow
74673         when calculating temporary buffer size.  Free temporary buffer
74674         when done, if it was allocated with malloc; this plugs a memory
74675         leak.  Remove casts from void * to pointers, that are no longer
74676         needed now that we're assuming C89 or better.
74677
74678         Merge error changes from glibc.
74679
74680         * lib/error.c, error.h: Update copyright notice header to match glibc.
74681         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74682         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74683         Disable cancellation while printing error.
74684         * lib/error.h: Prepend __ to parameter names.
74685
74686 2003-09-26  Jim Meyering  <jim@meyering.net>
74687
74688         * lib/error.c (error_tail): Move some declarations
74689         into inner scope where the local variables are used.
74690
74691 2003-09-26  Bruno Haible  <bruno@clisp.org>
74692
74693         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74694         stpncpy().
74695         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74696
74697 2003-09-26  Bruno Haible  <bruno@clisp.org>
74698
74699         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74700         (stpncpy): Define as alias for gnu_stpncpy.
74701         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74702
74703 2003-09-25  Simon Josefsson  <jas@extundo.com>
74704
74705         * lib/xgetdomainname.h: New file.
74706         * lib/xgetdomainname.c: New file.
74707
74708 2003-09-25  Simon Josefsson  <jas@extundo.com>
74709             Bruno Haible  <bruno@clisp.org>
74710
74711         * modules/getdomainname: New file.
74712         * modules/xgetdomainname: New file.
74713         * MODULES.html.sh (func_all_modules): Add getdomainname,
74714         xgetdomainname.
74715
74716 2003-09-25  Simon Josefsson  <jas@extundo.com>
74717             Bruno Haible  <bruno@clisp.org>
74718
74719         * m4/getdomainname.m4: New file.
74720
74721 2003-09-25  Simon Josefsson  <jas@extundo.com>
74722             Bruno Haible  <bruno@clisp.org>
74723
74724         * lib/getdomainname.h: New file.
74725         * lib/getdomainname.c: New file.
74726
74727 2003-09-25  Karl Berry  <karl@gnu.org>
74728
74729         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74730
74731 2003-09-25  Karl Berry  <karl@gnu.org>
74732
74733         * config/install-sh: update from automake.
74734
74735 2003-09-25  Bruno Haible  <bruno@clisp.org>
74736
74737         * modules/version-etc-2: New file, from modules/version-etc with
74738         modifications.
74739         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74740
74741 2003-09-25  Bruno Haible  <bruno@clisp.org>
74742
74743         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74744         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74745
74746 2003-09-24  Simon Josefsson  <jas@extundo.com>
74747
74748         * modules/xgethostname: Add xgethostname.h.
74749
74750 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74751
74752         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74753         the buffer associated with the argument.  Bug reported by
74754         Simon Josefsson.
74755
74756 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74757
74758         * README: Document assumptions that 'int' is at least 32 bits
74759         wide, that integer arithmetic is 2's complement without overflow,
74760         that there are no holes in integer values, that adding sizes of
74761         two nonoverlapping objects can't overflow, and that all-bits-zero
74762         yields scalar zero.  Fix spelling and capitalization typos.
74763
74764 2003-09-19  Karl Berry  <karl@gnu.org>
74765
74766         * lib/argp.h: update from libc.
74767
74768 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74769
74770         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74771         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74772         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74773
74774 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74775
74776         * gnulib-tool: Use "test -h", not "test -L", for portability
74777         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74778         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74779         (sed_extract_prog): Issue s commands one-by-one, rather than
74780         using \| in one s command.
74781
74782 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74783
74784         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74785         input error, instead of returning NULL the next time we are called
74786         (and therefore losing track of errno).
74787
74788 2003-09-16  Bruno Haible  <bruno@clisp.org>
74789
74790         * gnulib-tool (func_create_testdir): Warn about duplicated
74791         dependencies.
74792
74793 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74794
74795         * modules/argmatch, modules/fatal, modules/obstack,
74796         modules/xalloc, modules/xgethostname: Sort dependencies by
74797         importance, not alphabetically.
74798
74799 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74800
74801         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74802         fails, so that the caller gets the proper errno.
74803
74804         * lib/readutmp.c (read_utmp): Likewise.
74805         Check for fstat error.  Close stream and free storage
74806         when failing.
74807
74808 2003-09-14  Karl Berry  <karl@gnu.org>
74809
74810         * config/srclist.txt (strdup.c): disable for c89 changes.
74811
74812 2003-09-14  Jim Meyering  <jim@meyering.net>
74813
74814         * lib/getloadavg.c: Correct cpp indentation.
74815         * lib/strdup.c: Likewise.
74816         * lib/vasnprintf.c: Likewise.
74817
74818 2003-09-14  Bruno Haible  <bruno@clisp.org>
74819
74820         * modules/fwriteerror: New file.
74821         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74822
74823 2003-09-14  Bruno Haible  <bruno@clisp.org>
74824
74825         * lib/fwriteerror.h: New file.
74826         * lib/fwriteerror.c: New file.
74827
74828 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74829
74830         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74831         modules/xgethostname, modules/xalloc: Depend on exit.
74832
74833 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74834
74835         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74836
74837         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74838         and AC_MINIX, too, so that their extensions are available.
74839
74840         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74841         This macro has been superseded by gl_BACKUPFILE.
74842
74843         More patches to assume C89 or better.
74844
74845         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74846
74847         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74848         unconditionally.
74849         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74850         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74851         Include <string.h>, <stdlib.h> unconditionally.
74852         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74853         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74854         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74855         headers or for string.h.
74856         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74857         or strtoul.
74858
74859         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74860         headers.
74861         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74862         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74863         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74864         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74865         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74866         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74867         memcpy, memset.
74868         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74869         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74870         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74871         strtol.
74872         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74873         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74874         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74875         strtoul.
74876
74877 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74878
74879         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74880         * lib/obstack.c [!defined _LIBC]: Likewise.
74881         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74882         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74883         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74884
74885         More changes to assume C89 or better.
74886
74887         * lib/error.c (error_tail): Assume vprintf.
74888
74889         * lib/argmatch.c (getenv): Remove decl.
74890         * lib/progreloc.c (get_full_program_name): Define via prototype.
74891         * lib/setenv.c (clearenv): Likewise.
74892         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74893         needed.
74894         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74895         (malloc, memcpy): Remove decls.
74896         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74897         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74898         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74899         (memcpy): Remove macro.
74900         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74901         (__P): Remove.  All uses removed.
74902         (PTR): Remove.  All uses changed to void *.
74903         (CHAR_BIT, NULL): Remove.
74904         (spaces, zeros, memset_space, memset_zero)
74905         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74906         Remove.
74907         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74908         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74909         Define with prototype.
74910         Remove now-unnecessary prototype decl.
74911         (extra_args_spec): Assume ANSI C.  All uses changed.
74912         (extra_args_spec_iso): Remove.
74913         (my_strftime, emacs_strftimeu): Define via prototype.
74914         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74915         unconditionally.
74916         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74917         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74918         (strtoul, strtol): Remove decls.
74919         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74920         LONG_MAX): Remove.
74921         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74922         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74923         (LOCALE_PARAM_PROTO): New macro.
74924         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74925         (INTERNAL (strtol), strtol): Define with a prototype.
74926         (PARAMS): Remove.  All uses removed.
74927         * lib/tempname.c: Include <string.h> unconditionally.
74928         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74929         * lib/xgethostname.c (main): Define with a prototype.
74930         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74931         Include <stdlib.h> unconditionally.
74932         (calloc, malloc, realloc, free): Remove decls.
74933         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74934         Include <stdlib.h> unconditionally.  Sort include file names.
74935         (strtod): Remove.
74936         (xstrtod): Define with a prototype.
74937         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74938         (strtol, strtoul): Remove decls.
74939
74940 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74941
74942         More patches to assume C89 or better.
74943         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74944         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74945         string.h, memchr, STDC_HEADERS.
74946
74947 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74948
74949         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74950         Include <stdlib.h>, <string.h> unconditionally.
74951         Remove now-unnecessary cast to char *.
74952         * lib/strnlen.c: Include <string.h> unconditionally.
74953         * lib/yesno.c (yesno): Define with a prototype.
74954
74955 2003-09-11  Bruno Haible  <bruno@clisp.org>
74956
74957         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74958
74959 2003-09-10  Jim Meyering  <jim@meyering.net>
74960
74961         * lib/error.c: Correct indentation of cpp directives.
74962
74963 2003-09-10  Bruno Haible  <bruno@clisp.org>
74964
74965         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74966         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74967         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74968         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74969         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74970         <stdlib.h> and <string.h> checks.
74971         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74972         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74973
74974 2003-09-10  Bruno Haible  <bruno@clisp.org>
74975
74976         * lib/strcspn.c: Include <string.h> unconditionally.
74977         * lib/strpbrk.c: Include <string.h> unconditionally.
74978         * lib/strstr.c: Include <string.h> unconditionally.
74979         * lib/unicodeio.c: Include <string.h> unconditionally.
74980         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74981         * lib/unsetenv.c: Likewise.
74982         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74983         * lib/yesno.c: Include <stdlib.h> unconditionally.
74984         (rpmatch): Add prototype.
74985
74986 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74987
74988         More patches to assume C89 or better.
74989         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74990         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74991         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74992         or for string.h.
74993         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74994         stdlib.h.
74995         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74996         C headers.
74997         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74998         string.h.
74999         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
75000         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
75001         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
75002         or for string.h.
75003         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
75004         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
75005         C headers.
75006         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
75007         memcpy.
75008         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
75009         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
75010         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
75011         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
75012         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
75013         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
75014         string.h, free.
75015         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
75016         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
75017         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
75018         C headers, or for string.h.
75019         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
75020         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
75021         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
75022         headers, memory.h, stdlib.h, string.h, strings.h.
75023         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
75024         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
75025         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
75026         strchr.
75027         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
75028         headers, memory.h, string.h.
75029         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
75030         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
75031         free.
75032         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
75033         headers.
75034         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
75035         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
75036         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
75037         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
75038         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
75039
75040 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75041
75042         More K&R removal.
75043
75044         * lib/acosl.c (main): Use a prototype.
75045         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
75046         tanl.c: Likewise.
75047
75048         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
75049
75050         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
75051         (getopt, etopt_long, getopt_long_only, _getopt_internal)
75052         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
75053         with a prototype.
75054         * lib/getopt.c (const): Remove macro.
75055         Include <string.h> unconditionally.
75056         (my_index): Remove; all uses changed to strchr.
75057         (strlen): Remove decl.
75058         (exchange): Remove forward decl; no longer needed.
75059         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
75060         Define with prototype.
75061         * lib/getopt1.c (const): Remove macro.
75062         (getopt_long, getopt_long_only, main): Define with prototype.
75063
75064         * lib/getugroups.c: Include <string.h> unconditionally.
75065
75066         * lib/getusershell.c: Include <stdlib.h> unconditionally.
75067         (getusershell, setusershell, endusershell, readname, main):
75068         Define with prototypes.
75069
75070         * lib/group-member.c: Include group-member.h first.
75071         Include <stdlib.h> unconditionally.
75072
75073         * lib/hard-locale.c: Include hard-locale.h first.
75074         Include <stdlib.h>, <string.h> unconditionally.
75075
75076         * lib/hash.c (free, malloc): Remove decls.
75077         Include <stdlib.h> unconditionally.
75078
75079         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
75080         (getenv): Do not declare.
75081
75082         * lib/idcache.c: Include <string.h> unconditionally.
75083
75084         * lib/long-options.c: Include long-options.h first, to test interface.
75085         Include <stdlib.h> unconditionally.
75086
75087         * lib/makepath.c: Include makepath.h first, to test interface.
75088         Include <stdlib.h> and <string.h> unconditionally.
75089
75090         * lib/linebuffer.c: Include <stdlib.h>.
75091         (free): Remove decl.
75092
75093         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
75094         stddef.h. rpl_malloc returns void *, not char *.
75095         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
75096         prototype.
75097
75098         * lib/md5.h: Include <limits.h> unconditionally.
75099         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
75100         (__P): Remove; all uses removed.
75101         * lib/md5.c: Include "md5.h" first.
75102         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
75103         md5_buffer, md5_process_bytes, md5_process_block):
75104         Define with prototypes.
75105         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
75106         * lib/sha.c: Include "sha.h" first.
75107         Include <stdlib.h>, <string.h> unconditionally.
75108
75109         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
75110         * lib/memcmp.c (__ptr_t): Likewise.
75111         * lib/memrchr.c (__ptr_t): Likewise.
75112         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
75113         Include <string.h> unconditionally.
75114         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
75115         * lib/memchr.c: Include <stdlib.h> unconditionally.
75116         * lib/memchr.c (LONG_MAX): Remove.
75117         * lib/memrchr.c (LONG_MAX): Likewise.
75118         * lib/memchr.c (__memchr): Define via a prototype.
75119         * lib/memrchr.c (__memrchr): Likewise.
75120         * lib/memcmp.c (__P): Remove, and remove all uses.
75121         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
75122         Remove forward decls; no longer needed.
75123         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
75124         Use types required by C89 in prototype.
75125
75126         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
75127         * lib/savedir.c: Likewise.
75128         * lib/mkdir.c (free): Remove decl.
75129         * lib/rmdir.c (rmdir): Define with a prototype.
75130         * lib/savedir.c: Include savedir.h first, to test interface.
75131
75132         * lib/mktime.c (STDC_HEADERS): Remove.
75133         Include <stdlib.h>, <string.h> unconditionally.
75134
75135         * lib/modechange.c: Include <stdlib.h> unconditionally.
75136         (malloc): Remove decl.
75137
75138         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
75139         (free): Remove decl.
75140
75141         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
75142         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
75143         (This type really should be intptr_t, but that's a C99ism.)
75144         (_obstack_memcpy): Remove: all uses changed to memcpy.
75145         Include <string.h> unconditionally.
75146         (struct obstack): Assume __STDC__ for types of members
75147         chunkfun, freefun, extra_arg.
75148         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
75149         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
75150         obstack_begin, obstack_specify_allocation,
75151         obstack_specify_allocation_with_arg, obstack_chunkfun,
75152         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
75153         Remove unprototyped decls and the macros that use them.
75154         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
75155         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
75156         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
75157         (defined __STDC__ && __STDC__)]:
75158         Remove nonprototyped code.
75159         Include <stdlib.h> unconditionally.
75160         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
75161         _obstack_allocated_p, _obstack_free, obstack_free,
75162         _obstack_memory_used, print_and_abort):
75163         Define using prototypes.
75164         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
75165         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
75166         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
75167         obstack_next_free, obstack_object_size, obstack_room) [0]:
75168         Remove unused, unprototyped code.
75169
75170         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
75171
75172         * lib/physmem.c (physmem_total, physmem_available, main): Define
75173         with prototypes.
75174
75175         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
75176         (main): Define with a prototype.
75177
75178         * lib/posixver.c (getenv): Remove decl.
75179
75180         * lib/putenv.c (malloc): Returns void *, not char *.
75181         Include <string.h> unconditionally.
75182         (strchr, memcpy, NULL): Do not define.
75183
75184         * lib/readtokens.c: Include readtokens.h first, to test interface.
75185         Include <stdlib.h>, <string.h> unconditionally.
75186         (init_tokenbuffer): Define with a prototype.
75187
75188         * lib/regex.c (PARAMS): Remove.  All uses removed.
75189         All uses of _RE_ARGS removed, too.
75190         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75191         unconditionally.
75192         (bzero): Assume memset exists.
75193         (memcmp, memcpy, NULL): Remove.
75194         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
75195         char, or assignments to local vars of type signed char.
75196         (init_syntax_once, PREFIX(extract_number_and_incr),
75197         PREFIX(print_partial_compiled_pattern),
75198         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
75199         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
75200         PREFIX(regex_grow_registers), PREFIX(regex_compile),
75201         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
75202         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
75203         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
75204         wcs_compile_range, byte_compile_range, truncate_wchar,
75205         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
75206         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
75207         count_mbs_length, wcs_re_match_2_internal,
75208         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
75209         PREFIX(alt_match_null_string_p),
75210         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
75211         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
75212         regfree, PREFIX(extract_number)): Define with prototype.  Remove
75213         now-unnecessary declaration, if any.
75214         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
75215         regcomp, regexec):
75216         Remove now-unnecessary casts among pointer types.
75217         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
75218
75219         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
75220         (free): Remove decl.
75221
75222         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
75223
75224         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
75225         (free): Remove decl.
75226
75227         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
75228         * lib/xgetcwd.c: Likewise.
75229
75230         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
75231         (free): Remove decl.
75232
75233         * lib/strchrnul.c (strchrnul): Define with a prototype.
75234         Fix bug: c_in was not converted to char before searching.
75235
75236         The following changes are not K&R related:
75237
75238         * lib/group-member.h: Include <sys/types.h>, so that this file is
75239         self-contained.
75240         * lib/makepath.h: Likewise.
75241
75242         * lib/getusershell.c (readname, default_index, line_size, readname):
75243         Use size_t, not int, for sizes.
75244         (readname): If the size overflows, report an error instead of
75245         looping forever.
75246
75247 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75248
75249         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
75250         libc.
75251
75252 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75253
75254         * README: New section: portability guidelines.
75255
75256 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75257
75258         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
75259         C89 spec.
75260
75261 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75262
75263         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
75264
75265 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75266
75267         Assume C89 or better; remove K&R cruft.
75268         A few of these changes were first proposed by Derek Robert Price
75269         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
75270
75271         * lib/addext.c: Include <string.h> unconditionally.
75272         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
75273         Don't declare getenv or malloc.
75274
75275         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
75276         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
75277         (NULL): Remove.
75278         (find_stack_direction, alloca): Use prototypes.
75279
75280         * lib/atexit.c (atexit): Define using a prototype.
75281
75282         * lib/basename.c, dirname.c, stripslash.c:
75283         Include <string.h> unconditionally.
75284
75285         * lib/bcopy.c: Include <stddef.h>.
75286         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
75287
75288         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
75289
75290         * lib/error.h (error, error_at_line, error_print_progname)
75291         [! (defined (__STDC__) && __STDC__)]: Remove decls.
75292         * lib/error.c: Include error.h first, to check interface.
75293         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75294         (VA_START): Remove; all uses changeed to va_start.
75295         (exit, strerror): Remove decls.
75296         (error_print_progname): Prototype uncondionally.
75297         Don't include <errno.h>; no longer needed.
75298         (private_strerror): Remove.
75299         (error_tail): Always define.
75300         (error, error_at_line): Assume C89 or better; always use prototypes.
75301         * lib/fatal.c: Include "fatal.h" first, to test interface.
75302         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75303         (VA_START): Remove; all uses changed to va_start.
75304         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
75305         this case.
75306         (exit): Remove decl.
75307         (fatal): Prototype unconditionally.  Assume va_start works.
75308         Abort at end, to pacify gcc.
75309
75310         * lib/euidaccess.c (main): Define with a prototype.
75311
75312         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
75313
75314         * lib/exitfail.c: Include <stdlib.h> unconditionally.
75315
75316         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
75317         prototypes.
75318         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
75319         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
75320         (getenv): Remove decl.
75321         (fnmatch): Define using a prototype.
75322         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
75323         (FCT): Define using a prototype.
75324
75325         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
75326
75327         * lib/gethostname.c: Include <stddef.h>.
75328         (gethostname): Define with prototype.  Length is size_t, not int.
75329
75330 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75331
75332         Assume C89 or better; remove K&R cruft.
75333         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
75334         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
75335         string.h, getenv, malloc.
75336         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
75337         headers.
75338         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
75339         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
75340         do not check for strerror.
75341         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
75342         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
75343         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
75344         do not check for doprnt or vprintf.
75345         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
75346         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
75347
75348 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75349
75350         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
75351         getversion.c should have been removed then, but was accidentally
75352         preserved.
75353
75354         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
75355         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
75356
75357 2003-09-08  Karl Berry  <karl@gnu.org>
75358
75359         * config/config.sub, config.guess, srclistvars.sh: update from savannah
75360                 config, forget about prep.
75361
75362         * config/depcomp, missing: update from automake.
75363
75364 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75365
75366         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
75367         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75368
75369 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75370
75371         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
75372         copy_tm_result.  Bug reported by Simon Josefsson in
75373         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75374
75375 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75376
75377         * m4/time_r.m4: New file.
75378         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
75379         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
75380         is. Check for timegm declaration.
75381         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
75382         Do not check for gmtime_r.
75383         Replace mktime if __mktime_internal does not exist and if mktime
75384         hasn't been replaced already.
75385
75386 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75387
75388         * lib/time_r.c, lib/time_r.h: New files.
75389
75390         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
75391         __localtime_r.
75392         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
75393         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
75394
75395         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
75396         __gmtime_r.
75397         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
75398         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
75399         Include <time_r.h>.
75400
75401         * lib/timegm.c: Switch to glibc implementation, with the following
75402         changes:
75403         [defined HAVE_CONFIG_H]: Include <config.h>.
75404         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75405         (__mktime_internal) [!defined _LIBC]: New decl.
75406         (__gmtime_r) [!defined _LIBC]: New macro and function.
75407         (timegm): Use a prototype, since gnulib assumes C89.
75408         Do not bother declaring tmp to be const, as it's not really usefu.
75409         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75410         (timegm): Declare only if HAVE_DECL_TIMEGM.
75411
75412 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75413
75414         * MODULES.html.sh (func_all_modules): Add time_r.
75415         * modules/time_r: New file.
75416         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75417         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75418
75419 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75420
75421         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75422         Bug reported by Lute Kamstra in
75423         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75424
75425         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75426         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75427         course with correspondingly smaller numbers for tomorrow and
75428         yesterday.  From Tadayoshi Funaba.  Originally installed into
75429         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75430         coreutils merge?).
75431
75432 2003-08-31  Simon Josefsson  <jas@extundo.com>
75433
75434         * modules/timegm: New file.
75435         * MODULES.html.sh (func_all_modules): Add timegm.
75436
75437 2003-08-31  Simon Josefsson  <jas@extundo.com>
75438
75439         * m4/timegm.m4: New file.
75440
75441 2003-08-31  Simon Josefsson  <jas@extundo.com>
75442
75443         * lib/timegm.h: New file.
75444         * lib/timegm.c: New file.  Based on
75445         wget-1.8.2/src/http.c:mktime_from_utc.
75446
75447 2003-08-31  Karl Berry  <karl@gnu.org>
75448
75449         * lib/argp.h: update from libc.
75450
75451 2003-08-28  Bruno Haible  <bruno@clisp.org>
75452
75453         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75454         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75455         followed by '#define fnmatch fnmatch_posix' gives an error.
75456
75457 2003-08-28  Bruno Haible  <bruno@clisp.org>
75458
75459         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75460         warning on QNX, which defines O_BINARY to 000000.
75461
75462 2003-08-27  Jim Meyering  <jim@meyering.net>
75463
75464         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75465         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75466         would fail after 32.  Reported by Danny Levinson.  Details here:
75467         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75468
75469 2003-08-24  Bruno Haible  <bruno@clisp.org>
75470
75471         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75472         MSVC7 <stdio.h> is included later.
75473
75474 2003-08-22  Simon Josefsson  <jas@extundo.com>
75475
75476         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75477
75478 2003-08-20  Karl Berry  <karl@gnu.org>
75479
75480         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75481
75482 2003-08-20  Bruno Haible  <bruno@clisp.org>
75483
75484         * modules/progname: New file.
75485         * MODULES.html.sh (func_all_modules): Add progname.
75486
75487 2003-08-20  Bruno Haible  <bruno@clisp.org>
75488
75489         * lib/progname.h: New file, from GNU gettext.
75490         * lib/progname.c: New file, from GNU gettext.
75491         * lib/progreloc.c: New file, from GNU gettext.
75492
75493 2003-08-19  Jim Meyering  <jim@meyering.net>
75494
75495         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75496         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75497
75498 2003-08-19  Bruno Haible  <bruno@clisp.org>
75499
75500         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75501         more.
75502
75503 2003-08-19  Bruno Haible  <bruno@clisp.org>
75504
75505         * lib/xstrdup.c: Assume <string.h> exists.
75506
75507 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75508
75509         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75510         in makefile rules.
75511
75512 2003-08-18  Jim Meyering  <jim@meyering.net>
75513
75514         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75515         * m4/lib-ld.m4: Likewise.
75516
75517 2003-08-18  Jim Meyering  <jim@meyering.net>
75518
75519         * lib/setenv.h: Indent nested cpp directive.
75520         * lib/vasnprintf.c: Remove trailing blanks.
75521
75522 2003-08-17  Simon Josefsson  <jas@extundo.com>
75523
75524         * modules/xstrndup: New file.
75525         * MODULES.html.sh (func_all_modules): Add xstrndup.
75526
75527 2003-08-17  Simon Josefsson  <jas@extundo.com>
75528
75529         * modules/argp: Fix autoconf macro name. Add more dependencies.
75530
75531 2003-08-17  Simon Josefsson  <jas@extundo.com>
75532
75533         * m4/xstrndup.m4: New file.
75534
75535 2003-08-17  Simon Josefsson  <jas@extundo.com>
75536
75537         * m4/argp.m4: New file.
75538
75539 2003-08-17  Simon Josefsson  <jas@extundo.com>
75540             Bruno Haible  <bruno@clisp.org>
75541
75542         * lib/xstrndup.h: New file.
75543         * lib/xstrndup.c: New file.
75544
75545 2003-08-17  Bruno Haible  <bruno@clisp.org>
75546
75547         * modules/strndup (Files, Include): Add lib/strndup.h.
75548
75549 2003-08-17  Bruno Haible  <bruno@clisp.org>
75550
75551         * modules/euidaccess (Files): Add lib/euidaccess.h.
75552
75553 2003-08-17  Bruno Haible  <bruno@clisp.org>
75554
75555         * lib/strndup.h: New file.
75556
75557 2003-08-17  Bruno Haible  <bruno@clisp.org>
75558
75559         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75560         like AC_GNU_SOURCE.
75561         * modules/extensions (configure.ac): Comment out the invocation of
75562         gl_USE_SYSTEM_EXTENSIONS.
75563
75564 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75565
75566         Merges from coreutils, etc.
75567         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75568         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75569         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75570         fixing a typo.
75571         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75572         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75573
75574 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75575
75576         Document merge from coreutils.
75577         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75578         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75579         * modules/utime: Add m4/utimes-null.m4.
75580
75581 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75582
75583         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75584         space, undoing this 2003-08-12 change:
75585         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75586
75587 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75588
75589         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75590         strtoul.c from libc, undoing this 2003-08-12 change:
75591         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75592
75593 2003-08-16  Jim Meyering  <jim@meyering.net>
75594
75595         Merges from coreutils.
75596         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75597         prefix.  Adjust cache variables similarly.  Create 500 rather than
75598         just 300 files, to exercise bug on Darwin6.5, too.
75599         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75600         $missing_dir.
75601         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75602         AM_SYS_POSIX_TERMIOS.
75603         Reported by mkc@mathdogs.com.
75604         Also change use of $am_cv_sys_posix_termios
75605         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75606         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75607         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75608         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75609         in /proc/mounts until it finds one with matching device number.  This
75610         is unnecessary when the FILE argument *is* a mount point.  No stat call
75611         is necessary in that case.  So, disable the statvfs-testing code on
75612         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75613         as RedHat bug# 84846.
75614         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75615         to 1MB, so as not to render systems with no stack size limit (e.g.,
75616         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75617         Include <unistd.h>.  On some systems,
75618         it is required for the definition of _SC_PAGESIZE.
75619
75620 2003-08-16  Jim Meyering  <jim@meyering.net>
75621
75622         Merge from coreutils.
75623         * lib/xstrtoimax.c: #else #if -> #elif.
75624         * lib/xstrtoumax.c: Likewise.
75625
75626 2003-08-16  Jim Meyering  <jim@meyering.net>
75627
75628         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75629         * m4/utimes.m4: Removed.
75630         * m4/utimes-null.m4: Renamed from utimes.m4.
75631
75632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75633         to 1MB, so as not to render systems with no stack size limit (e.g.,
75634         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75635         Include <unistd.h>.  On some systems,
75636         it is required for the definition of _SC_PAGESIZE.
75637
75638 2003-08-16  Jim Meyering  <jim@meyering.net>
75639         and Paul Eggert  <eggert@cs.ucla.edu>
75640
75641         Merges from coreutils, etc.
75642
75643         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75644         using the latest version from cvs.  This avoids problems with #line
75645         directives using a vendor (Sun) compiler.
75646         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75647         Don't set GETGROUPS_LIB here; now it's
75648         done via getgroups.m4's wrapper function.
75649         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75650         rather than just in sh-util/configure.in, so that the
75651         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75652         same.
75653         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75654         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75655         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75656         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75657         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75658         Remove code that is now done by the newly-required macros.
75659         Append $(EXEEXT) to DF_PROG.
75660         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75661         Do not invoke or require the following here,
75662         since prereq.m4 or some gnulib .m4 now does this for us:
75663         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75664         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75665         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75666         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75667         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75668         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75669         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75670         AC_FUNC_OBSTACK.
75671         Do not replace the following functions, as this is now the job
75672         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75673         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75674         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75675         atexit getpass, strdup, getpagesize.
75676         Replace 'raise'.
75677         Do not check for the following functions, as this is now the job
75678         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75679         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75680         setregid.
75681         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75682         Check for sys/sysctl.h.
75683         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75684         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75685         of checking for ssize_t ourselves.
75686
75687         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75688         Require every macro that gnulib/modules/* suggests for us.
75689         (jm_PREREQ_ADDEXT): New macro.
75690         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75691         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75692
75693         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75694         (gl_PHYSMEM): Use it.
75695         Also check for `table' function.
75696         Check for new headers and functions.
75697         Add check for sys/sysmp.h.
75698         With suggestions from Kaveh Ghazi.
75699         Ignore headers that are present but cannot be compiled.  This
75700         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75701         C 5.4.
75702
75703 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75704
75705         Document merge from coreutils.
75706         * modules/userspec: Depend on posixver.
75707         * modules/strftime: Depend on tzset.
75708
75709 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75710
75711         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75712         rather than tab, after '#' in shell-script copyright notices.
75713         Suggested by Bruno Haible.
75714
75715 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75716
75717         * config/srclist-update: Use three spaces, rather than tab, after '#'
75718         in shell-script copyright notices.  Suggested by Bruno Haible.
75719         Remove unnecessary parenthesization in regular expression.
75720
75721 2003-08-15  Jim Meyering  <jim@meyering.net>
75722
75723         Merge from coreutils.
75724         * lib/xgethostname.c: Include <stdlib.h>.
75725         (xghostname): Don't exit for anything other than memory-related
75726         failure; just return NULL.
75727         * lib/userspec.c: Include "posixver.h".
75728         (parse_user_spec): Accept `.' as a separator only
75729         in pre-POSIX-200112 mode.
75730         * lib/strtoimax.c: Use #elif rather than #else #if.
75731         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75732         Remove function, now that we can rely on a working tzset function.
75733         [!_LIBC]: Ensure that the required autoconf test has been run.
75734         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75735         Use underlying_strftime for %r.
75736         * lib/sha.c: Merge in some clean-up and optimization changes from
75737         glibc.
75738         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75739         Ensure that it is a multiple of 64.
75740         Rearrange loop exit tests so as to avoid performing an
75741         additional fread after encountering an error or EOF.
75742         * lib/realloc.c: Update copyright date.
75743
75744 2003-08-15  Jim Meyering  <jim@meyering.net>
75745         and Paul Eggert  <eggert@twinsun.com>
75746
75747         Merge from coreutils.
75748         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75749         member but strut utmpx does not.  Needed for AIX 4.3.3.
75750         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75751
75752 2003-08-15  Jim Meyering  <jim@meyering.net>
75753         and Paul Eggert  <eggert@cs.ucla.edu>
75754
75755         Merges from coreutils, etc.
75756         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75757         Require gl_FUNC_TZSET_CLOBBER.
75758         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75759         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75760         members.
75761
75762 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75763
75764         Help the merge from coreutils.
75765         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75766         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75767         * m4/tzset.m4: Use it too.
75768
75769 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75770
75771         * modules/tzset: New file.
75772
75773 2003-08-14  Jim Meyering  <jim@meyering.net>
75774
75775         Merges from coreutils.
75776         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75777         variable names, rather than @FNMATCH_H@.
75778         * modules/alloca: Likewise for $(ALLOCA_H).
75779
75780         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75781         the three copies of the literal target, `fnmatch.h'.
75782         * modules/alloca (alloca.h): Likewise.
75783
75784 2003-08-14  Jim Meyering  <jim@meyering.net>
75785
75786         Merge from coreutils.
75787         * m4/tzset.m4: New file.
75788         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75789         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75790         otherwise, AIX 5.1 systems would end up using the latter.
75791         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75792         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75793         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75794         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75795
75796 2003-08-14  Jim Meyering  <jim@meyering.net>
75797
75798         Merge from coreutils.
75799         * lib/obstack.h: Whitespace changes.
75800         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75801         and xcalloc return values.
75802         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75803         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75804         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75805         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75806         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75807         error from mntctl.
75808         Use mntctl's return value to drive the entry-processing loop, since
75809         we can't rely on the value of the vmt_length member in the last
75810         entry.  On some systems doing so could result in exhausting
75811         virtual memory.  Based in part on a patch from Mike Jetzer.
75812
75813 2003-08-14  Jim Meyering  <jim@meyering.net>
75814         and Paul Eggert  <eggert@twinsun.com>
75815
75816         Merges from coreutils, plus other fixes.
75817         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75818         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75819         for credits and details.  Thanks to Kaveh Ghazi for helping
75820         to keep these files in sync.
75821         (ARRAY_SIZE): Define it.
75822         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75823         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75824         (memcasecmp): Don't assume size_t fits in unsigned int.
75825         Remove casts and duplicate code.
75826         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75827         (memcpy): Remove definition.
75828         Merge in some clean-up and optimization changes from glibc.
75829         [BLOCKSIZE]: Move definition to top of file.
75830         Ensure that it is a multiple of 64.
75831         Rearrange loop exit tests so as to avoid performing an
75832         additional fread after encountering an error or EOF.
75833         * lib/md5.h (md5_uintptr): Define.
75834         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75835         return to the initial working directory.  Preserve errno
75836         for caller.
75837         * lib/idcache.c: Include "xalloc.h".
75838         (xmalloc, xrealloc): Remove decls.
75839         (getuser): Remove casts no longer required in C89.
75840         * lib/human.c: Include stdio.h, for sprintf.
75841         * lib/group-member.c: Include "xalloc.h".
75842         (xmalloc, xrealloc): Remove decls.
75843         (get_group_info): Remove casts no longer required in C89.
75844         * lib/getusershell.c (readname): Remove casts no longer required in
75845         C89.
75846         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75847         * lib/getline.c: Whitespace fix, from coreutils.
75848
75849 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75850
75851         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75852         Check for isascii.
75853
75854         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75855         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75856         Undo previous (whitespace-only) change.
75857
75858 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75859
75860         * lib/exclude.c: Include <ctype.h>
75861         (IN_CTYPE_DOMAIN): New macro.
75862         (is_space): New fn.
75863         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75864         and empty lines.
75865
75866         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75867         Undo previous (whitespace-only) change.
75868
75869 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75870
75871         * config/srclist-update: Change update back to the old behavior,
75872         leaving whitespace alone.  Use one 'sed' command rather than a
75873         pipeline.
75874         (fixlicense): Now a variable, not a function.
75875         (remove_trailing_blanks): Remove.
75876         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75877         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75878         Undo previous (whitespace-only) change.
75879
75880 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75881
75882         Merge from coreutils.
75883         * modules/euidaccess: Add lib_SOURCES, include for new
75884         file euidaccess.h
75885
75886 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75887
75888         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75889         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75890         Normalize leading white space and remove trailing white space.
75891
75892         Merge from coreutils
75893         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75894
75895         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75896         0.12.1.  These files are now being upgraded automatically by
75897         ../config/srclist-update.
75898
75899 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75900
75901         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75902         Normalize leading white space and remove trailing white space.
75903         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75904         notice, as per ../config/srclist-update.
75905
75906         Merge from coreutils.
75907         * lib/euidaccess.h: New file.
75908         * lib/euidaccess.c: Include it.
75909         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75910         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75911         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75912
75913 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75914
75915         * config/srclist-update: Add copyright notice.
75916         (remove_id_lines, remove_trailing_blanks): New constants.
75917         (fixfile): Use them to normalize spacing a bit in copied files.
75918         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75919         Normalize leading white space and remove trailing white space.
75920
75921         * config/texinfo.tex: Sync with texinfo.
75922
75923         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75924         strtoul.c from libc, to merge coreutils whitespace changes.
75925
75926         * config/srclist.txt: Get the following m4 files from gettext:
75927         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75928         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75929         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75930         wint_t.m4.
75931
75932 2003-08-12  Karl Berry  <karl@gnu.org>
75933
75934         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75935         been made.
75936
75937 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75938
75939         * modules/gnu-source, m4/gnu-source.m4:
75940         Remove; we're assuming Autoconf 2.54 or later now.
75941         Suggested by Bruno Haible.
75942         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75943
75944 2003-08-11  Bruno Haible  <bruno@clisp.org>
75945
75946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75947
75948 2003-08-11  Bruno Haible  <bruno@clisp.org>
75949
75950         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75951         (vasnprintf): Use it instead of wcslen.
75952
75953 2003-08-11  Bruno Haible  <bruno@clisp.org>
75954
75955         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75956         value to ensure that _Bool promotes to int. Use #define for _Bool when
75957         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75958
75959 2003-08-10  Karl Berry  <karl@gnu.org>
75960
75961         * lib/regex.h: update from libc (whitespace fix).
75962
75963 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75964
75965         Merge some files from coreutils.  These changes were
75966         originally made by Jim Meyering.
75967         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75968         many older Unixes require this.
75969         * lib/alloca.c (alloca): Remove cast to argument of free;
75970         no longer needed in C89.
75971         * lib/alloca_.h, regex.h: Fix white space to match
75972         what GNU indent does.
75973
75974 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75975
75976         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75977         apparently Emacs's Unicode mode got confused before my 2003-08-05
75978         checkin.
75979
75980 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75981
75982         * m4/extensions.m4: New file.
75983         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75984         Require gl_USE_SYSTEM_EXTENSIONS.
75985         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75986         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75987
75988 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75989
75990         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75991         * modules/extensions, modules/gnu-source: New files.
75992         * modules/timespec, modules/unlocked-io: Depend on extensions.
75993
75994 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75995
75996         * modules/restrict: New file.
75997         * MODULES.html.sh (func_all_modules): Add restrict.
75998         * modules/regex: Depend on restrict.
75999
76000 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76001
76002         * m4/restrict.m4: New file.
76003         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
76004
76005 2003-08-07  Bruno Haible  <bruno@clisp.org>
76006
76007         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
76008         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
76009
76010 2003-08-07  Bruno Haible  <bruno@clisp.org>
76011
76012         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
76013         makes the module 'getndelim2' compatible with the module 'getline'.
76014
76015 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76016
76017         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
76018         byte with "\201" to avoid glitches when editing that source file
76019         with multi-gnome-terminal.
76020
76021 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76022
76023         * lib/bumpalloc.h: Remove.
76024
76025 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76026
76027         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
76028         * modules/bumpalloc: Remove.
76029
76030 2003-08-04  Paul Eggert  <eggert@twinsun.com>
76031
76032         * lib/getloadavg.c: Change copyright notice and spacing to conform to
76033         GNU coding style.
76034
76035         Merge from coreutils.
76036         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
76037         1. From glibc.
76038         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
76039         from Karl Berry, implemented by Jim Meyering.
76040         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
76041         from Dmitry V. Levin.
76042         Remove anachronistic cast of xrealloc.
76043         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
76044         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
76045         type. Otherwise, it wouldn't compile with at least /bin/cc on
76046         ymp-cray-unicos9.0.2.X.
76047         Combine two mostly-identical uses of alloca into one.
76048         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
76049
76050 2003-08-04  Dave Love  <d.love@dl.ac.uk>
76051
76052         [From Emacs.]
76053
76054         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
76055         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
76056         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
76057         obsolete NLIST_NAME_UNION.
76058         [__GNU__]: Undef BSD and FSCALE.
76059         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
76060
76061 2003-08-03  Paul Eggert  <eggert@twinsun.com>
76062
76063         * lib/stdbool_.h (_Bool): Make it signed char, instead of
76064         an enum type, so that it's guaranteed to promote to int.  See:
76065         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
76066
76067 2003-08-03  Karl Berry  <karl@gnu.org>
76068
76069         * config/depcomp: update from automake.
76070
76071 2003-07-31  Paul Eggert  <eggert@twinsun.com>
76072
76073         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
76074         (strerror): Don't assume that a printable int fits in 14 bytes.
76075
76076 2003-07-31  Bruno Haible  <bruno@clisp.org>
76077
76078         * modules/getpass-gnu: New file.
76079         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
76080
76081 2003-07-31  Bruno Haible  <bruno@clisp.org>
76082
76083         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
76084
76085 2003-07-24  Karl Berry  <karl@gnu.org>
76086
76087         * config/missing: update from automake.
76088
76089 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
76090             Bruno Haible  <bruno@clisp.org>
76091
76092         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
76093         * lib/getline.c (getline, getdelim): Likewise.
76094         Remove _GNU_SOURCE define; now it's defined in config.h through
76095         m4/getline.m4.
76096
76097 2003-07-23  Karl Berry  <karl@gnu.org>
76098
76099         * config/config.sub: update from prep.
76100
76101 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76102
76103         * modules/xalloc (Depends-on): Add exitfail.
76104         * modules/xmemcoll: Likewise.
76105
76106 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76107
76108         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
76109         over-parenthesization in macros.
76110
76111         Sync with coreutils.
76112
76113         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
76114         required by C99.
76115
76116         Use `exit_failure' for xalloc and xmemcoll instead of their own
76117         private exit-failure variables.
76118         * lib/xalloc.h (xalloc_exit_failure): Remove.
76119         * lib/xmalloc.c: Likewise.  Include exitfail.h.
76120         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
76121         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
76122         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
76123         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
76124
76125 2003-07-20  Jim Meyering  <jim@meyering.net>
76126
76127         * modules/closeout (Depends-on): Add exitfail.
76128         Suggestion from Bruno Haible.
76129
76130 2003-07-19  Karl Berry  <karl@gnu.org>
76131
76132         * config/config.sub: update from prep.
76133
76134 2003-07-18  Paul Eggert  <eggert@twinsun.com>
76135
76136         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
76137         Remove.
76138         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
76139         to test that it can stand by itself.  Include "exitfail.h".
76140         Clients should set exit_failure instead.
76141         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
76142
76143 2003-07-18  Bruno Haible  <bruno@clisp.org>
76144
76145         * modules/getndelim2: New file.
76146         * modules/getline: Share files with module getndelim2.
76147         * modules/getnline: Depend on getndelim2 instead of sharing files with
76148         it. Add getnline.c to lib_SOURCES.
76149         * MODULES.html.sh (func_all_modules): Add getndelim2.
76150
76151 2003-07-18  Bruno Haible  <bruno@clisp.org>
76152
76153         * m4/getndelim2.m4: New file.
76154         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
76155         invoke gl_PREREQ_GETNDELIM2.
76156         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
76157         gl_PREREQ_GETNDELIM2.
76158         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
76159         gl_GETNDELIM2.
76160
76161 2003-07-18  Bruno Haible  <bruno@clisp.org>
76162
76163         * lib/getndelim2.h: New file.
76164         * lib/getndelim2.c: Make into a module of its own. Include config.h,
76165         getndelim2.h.
76166         (getndelim2): Make non-static. Change return type to ssize_t.
76167         * lib/getline.h: Change argument names.
76168         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
76169         * lib/getnline.c: Include getndelim2.h.
76170
76171 2003-07-18  Andreas Schwab  <schwab@suse.de>
76172
76173         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
76174
76175 2003-07-17  Karl Berry  <karl@gnu.org>
76176
76177         * config/config.sub: update from prep.
76178
76179 2003-07-17  Bruno Haible  <bruno@clisp.org>
76180
76181         * modules/getnline: New file.
76182         * modules/getline: Add lib/getndelim2.c to source file list.
76183         * MODULES.html.sh (func_all_modules): Add getnline.
76184
76185 2003-07-17  Bruno Haible  <bruno@clisp.org>
76186
76187         * m4/getnline.m4: New file.
76188
76189 2003-07-17  Bruno Haible  <bruno@clisp.org>
76190
76191         * m4/Makefile.am.in: Remove file.
76192         * m4/Makefile.am: Remove file.
76193         * m4/Makefile.in: Remove file.
76194
76195 2003-07-17  Bruno Haible  <bruno@clisp.org>
76196
76197         * lib/getnline.h: New file.
76198         * lib/getnline.c: New file.
76199         * lib/getndelim2.c: New file, extracted from getline.c.
76200         (getndelim2): Renamed from getdelim2, with added nmax argument.
76201         * lib/getline.c: Include getndelim2.c.
76202         (getdelim2): Moved out to getndelim2.c.
76203         (getline, getdelim): Update.
76204
76205 2003-07-17  Bruno Haible  <bruno@clisp.org>
76206
76207         * lib/Makefile.am: Remove file.
76208         * lib/Makefile.in: Remove file.
76209
76210 2003-07-17  Bruno Haible  <bruno@clisp.org>
76211
76212         * configure.in: Remove file.
76213         * Makefile.in: Remove file.
76214
76215 2003-07-17  Bruno Haible  <bruno@clisp.org>
76216
76217         * MODULES.html.sh: Put the </BODY> right before </HTML>.
76218
76219 2003-07-16  Karl Berry  <karl@gnu.org>
76220
76221         * config/srclist-update: was running fixlicense twice, which caused
76222                 texinfo.tex to be nullified for some reason.  Simplify,
76223                 $gplsrc is no longer needed as far as I can see?
76224
76225 2003-07-16  Jim Meyering  <jim@meyering.net>
76226
76227         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
76228
76229 2003-07-15  Paul Eggert  <eggert@twinsun.com>
76230
76231         * config/srclist.txt: Get the following files from gettext-runtime/intl
76232         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
76233         ref-del.sin.  From Bruno Haible.
76234         * config/srclist-update (fixfile): Change grep pattern again, since the
76235         previous fix didn't work (there was another trailing $).  Use
76236         '[$]' to escape the $s.
76237
76238 2003-07-15  Karl Berry  <karl@gnu.org>
76239
76240         * lib/vasnprintf.c: update from gettext.
76241
76242 2003-07-15  Karl Berry  <karl@gnu.org>
76243
76244         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
76245         gets expanded when surrounded by '$'.
76246
76247 2003-07-15  Jim Meyering  <jim@meyering.net>
76248
76249         * modules/save-cwd: Don't depend on error.  From Derek Price.
76250
76251 2003-07-15  Jim Meyering  <jim@meyering.net>
76252
76253         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
76254
76255 2003-07-14  Simon Josefsson  <jas@extundo.com>
76256
76257         * modules/mempcpy: New file.
76258         * MODULES.html.sh (func_all_modules): Add mempcpy.
76259
76260 2003-07-14  Simon Josefsson  <jas@extundo.com>
76261
76262         * m4/mempcpy.m4: New file.
76263
76264 2003-07-14  Simon Josefsson  <jas@extundo.com>
76265
76266         * lib/mempcpy.h: New file.
76267         * lib/mempcpy.c: New file.
76268
76269 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76270
76271         * modules/getdate, modules/posixtm: Depend on mktime.
76272
76273 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76274
76275         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
76276         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
76277         unicodeio.c, unicodeio.h, unlocked-io.h:
76278         Switch from LGPL to GPL.
76279
76280 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76281
76282         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
76283         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
76284         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
76285         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
76286         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
76287         updated automatically by ../config/srclist-update.  This changes
76288         their license from LPGL to GPL.
76289
76290 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76291
76292         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
76293         assumed to refer to the root of the most recent stable gettext version.
76294         * config/srclistvars.sh: Add defaults for eggert.
76295         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
76296         Match "This program" as well as "The program".  This is needed
76297         for gettext.
76298
76299 2003-07-14  Jim Meyering  <jim@meyering.net>
76300
76301         Don't emit diagnostics.  Let callers do that.
76302         * lib/save-cwd.c: Don't include "error.h".
76303         (save_cwd): Don't call error.  Ensure that errno is valid
76304         when returning nonzero.
76305
76306         * lib/save-cwd.h (restore_cwd): Update prototype.
76307         * lib/save-cwd.c (restore_cwd): Remove two parameters.
76308         Simplify.  Don't call error upon failure.  Let callers do that.
76309         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
76310         when auditing is enabled.  But don't bother updating the #if.
76311
76312 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
76313
76314         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
76315         it breaks C++ compilation.
76316         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
76317
76318 2003-07-10  Simon Josefsson  <jas@extundo.com>
76319
76320         * modules/strchrnul (Makefile.am): Add strchrnul.h.
76321
76322 2003-07-10  Jim Meyering  <jim@meyering.net>
76323
76324         * m4/clock_time.m4: Remove trailing blank.
76325         * m4/intmax_t.m4: Likewise.
76326
76327 2003-07-10  Jim Meyering  <jim@meyering.net>
76328
76329         * lib/vasnprintf.c: Remove trailing blanks.
76330         Make cpp indentation consistent.
76331
76332 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76333
76334         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
76335         posixver.c, strftime.c, strnlen.c, strverscmp.c:
76336         Switch from LGPL to GPL.
76337
76338 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76339
76340         * config/srclist.txt: Sort sublists.  Add
76341         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
76342         that differ from gnulib for one reason or another; we'd like this list
76343         to be smaller but for now let's document what we have.
76344
76345 2003-07-08  Paul Eggert  <eggert@twinsun.com>
76346
76347         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
76348         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
76349         and sweeter "eval x=$x".
76350         * config/srclist.txt: Get lib/argp* from glibc.
76351
76352 2003-07-07  Paul Eggert  <eggert@twinsun.com>
76353
76354         * lib/mktime.c: Fix some boundary cases and remove need for floating
76355         point.
76356
76357         Issue a compile-time diagnostic if time_t is floating point, or if
76358         two's complement arithmetic is not in effect, or if arithmetic
76359         right shift does not propagate the sign.  These assumptions were
76360         all in the original code but they weren't checked.
76361
76362         (TIME_T_MIDPOINT, verify): New macros.
76363         (__isleap): Remove; it has integer overflow problems.
76364         (leapyear): New function, without those problems.
76365         (ydhms_tm_diff): Remove; splitting into two parts.
76366         (ydhms_diff): New function, containing the arithmetic part of
76367         the old ydhms_tm_diff function.  Issue a compile-time
76368         diagnostic if we are not using C99 integer division.
76369         Avoid casts when possible.
76370         (guess_time_tm): New function, containing the checking part of
76371         the old ydhms_tm_diff function.  Return the new value, rather than
76372         the difference between it and the old.  Accept a new argument T
76373         so that *T specifies the old value.  Check for overflow in the result.
76374
76375         (__mktime_internal): Use a time_t offset, not a long int offset.
76376         This undoes the 2003-06-04 change, which is no longer needed now
76377         that we have better overflow checking.
76378         (localtime_offset): Likewise.
76379
76380         (__mktime_internal): Avoid harmful overflow on hosts where time_t
76381         and long are 64-bit but int is only 32-bit.
76382         (ydhms_diff): Use long int to store year1 and yday1.
76383         Issue a compile-time diagnostic if long int is not wide enough.
76384
76385         (__mktime_internal): Use long int to store adjusted year and yday.
76386         Use plain C rather than preprocessor commands, if that doesn't
76387         affect efficiency.
76388         Check for overflow (and try to repair) after each probe
76389         rather than checking only at the very end.  This avoids some bugs
76390         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
76391         does not equal GMT offset at maximum time).
76392         Use integer to check for overflow rather than floating point; this
76393         is more portable to non-IEEE hosts, and is a tad faster.
76394         When we detect that we are oscillating between two values,
76395         don't check whether tm_isdst has the requested value, since
76396         we already know the answer.  When tm_isdst has the wrong value,
76397         use a different heuristic to find the right one, based on the
76398         extreme values actually observed in practice in tz2003a,
76399         rather than the (overly optimistic) "previous 3 calendar quarters".
76400
76401         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76402         "T const" to accommodate glibc style.
76403         (check_result): Use less-confusing report format.  "long" -> "long int.
76404         (main): Likewise.
76405         Don't loop if the iteration overflows time_t.
76406         Allow a negative step in the iteration.
76407
76408 2003-07-06  Karl Berry  <karl@gnu.org>
76409
76410         * config/depcomp: update from automake.
76411         * config/config.sub: update from prep.
76412
76413 2003-07-03  Karl Berry  <karl@gnu.org>
76414
76415         * config/config.guess: update from prep.
76416
76417 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76418
76419         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76420         xreadlink.c now includes it unconditionally.
76421
76422 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76423
76424         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76425         having it depend on HAVE_SYS_TYPES_H.
76426
76427 2003-07-01  Bruno Haible  <bruno@clisp.org>
76428
76429         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76430         <sys/types.h> should be sufficient.
76431         Reported by Paul Eggert.
76432
76433 2003-06-26  Karl Berry  <karl@gnu.org>
76434
76435         * config/depcomp: update from automake.
76436
76437 2003-06-26  Bruno Haible  <bruno@clisp.org>
76438
76439         * modules/human: Depend on module stdbool.
76440
76441 2003-06-25  Bruno Haible  <bruno@clisp.org>
76442
76443         * modules/readlink: New file.
76444         * modules/xreadlink: Depend on it.
76445         * MODULES.html.sh (func_all_modules): Add readlink.
76446
76447 2003-06-25  Bruno Haible  <bruno@clisp.org>
76448
76449         * m4/readlink.m4: New file.
76450
76451 2003-06-25  Bruno Haible  <bruno@clisp.org>
76452
76453         * lib/readlink.c: New file.
76454
76455 2003-06-22  Karl Berry  <karl@gnu.org>
76456
76457         * config/srclist.txt: update mkinstalldirs from automake.
76458         * config/mkinstalldirs: update.
76459
76460 2003-06-22  Bruno Haible  <bruno@clisp.org>
76461
76462         Portability to mingw32.
76463         * m4/ssize_t.m4: New file, from GNU gettext.
76464         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76465         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76466
76467 2003-06-22  Bruno Haible  <bruno@clisp.org>
76468
76469         * modules/safe-read: Add m4/ssize_t.m4.
76470         * modules/xreadlink: Add m4/ssize_t.m4.
76471
76472 2003-06-20  Bruno Haible  <bruno@clisp.org>
76473
76474         Assume C89, so PARAMS isn't needed.
76475         * lib/unicodeio.h (PARAMS): Remove.
76476         * lib/unicodeio.c: Don't use PARAMS.
76477
76478 2003-06-18  Karl Berry  <karl@gnu.org>
76479
76480         * config/config.{guess,sub}: update from prep.
76481
76482 2003-06-18  Jim Meyering  <jim@meyering.net>
76483
76484         Merge changes from coreutils.
76485         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76486         Remove explicit declarations of xmalloc and realloc.
76487         Include xalloc.h.
76488         (read_utmp): Remove anachronistic cast of xmalloc.
76489
76490 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76491
76492         Assume C89, so PARAMS isn't needed.
76493         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76494         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76495         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76496         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76497         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76498         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76499         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76500         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76501         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76502         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76503         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76504         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76505         no longer needed. Anyway, config.h should always be included before any
76506         other file.
76507
76508 2003-06-11  Simon Josefsson  <jas@extundo.com>
76509
76510         * modules/sysexits: New file.
76511         * MODULES.html.sh (func_all_modules): Add sysexits.
76512
76513 2003-06-11  Simon Josefsson  <jas@extundo.com>
76514
76515         * lib/sysexit_.h: New file.
76516
76517 2003-06-11  Derek Price  <derek@ximbiot.com>
76518
76519         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76520         necessary.
76521
76522 2003-06-11  Bruno Haible  <bruno@clisp.org>
76523
76524         * m4/sysexits.m4: New file.
76525
76526 2003-06-10  Simon Josefsson  <jas@extundo.com>
76527
76528         * lib/argp.h: New file, from glibc.
76529         * lib/argp-ba.c: New file, from glibc.
76530         * lib/argp-eexst.c: New file, from glibc.
76531         * lib/argp-fmtstream.c: New file, from glibc.
76532         * lib/argp-fmtstream.h: New file, from glibc.
76533         * lib/argp-fs-xinl.c: New file, from glibc.
76534         * lib/argp-help.c: New file, from glibc.
76535         * lib/argp-namefrob.h: New file, from glibc.
76536         * lib/argp-parse.c: New file, from glibc.
76537         * lib/argp-pv.c: New file, from glibc.
76538         * lib/argp-pvh.c: New file, from glibc.
76539         * lib/argp-xinl.c: New file, from glibc.
76540
76541 2003-06-10  Simon Josefsson  <jas@extundo.com>
76542
76543         * modules/strchrnul: New file.
76544
76545 2003-06-10  Simon Josefsson  <jas@extundo.com>
76546
76547         * modules/argp: New file.
76548
76549 2003-06-10  Simon Josefsson  <jas@extundo.com>
76550
76551         * m4/strchrnul.m4: New file.
76552
76553 2003-06-10  Simon Josefsson  <jas@extundo.com>
76554
76555         * lib/strchrnul.h: New file.
76556         * lib/strchrnul.c: New file.
76557
76558 2003-06-10  Bruno Haible  <bruno@clisp.org>
76559
76560         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76561
76562 2003-06-07  Karl Berry  <karl@gnu.org>
76563
76564         * config/config.{guess,sub}: update from prep.
76565
76566 2003-06-07  Jim Meyering  <jim@meyering.net>
76567
76568         * modules/strtod: Use $(...) notation, not @...@ for
76569         AC_REPLACE'd variables.
76570         * modules/localcharset: Likewise.
76571
76572 2003-06-07  Jim Meyering  <jim@meyering.net>
76573
76574         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76575         in place of my name in the copyright comment.
76576         Remove definition and uses of __P.
76577
76578         From coreutils.
76579         * lib/stat.c: Don't declare xmalloc explicitly.
76580         Instead, include "xalloc.h".
76581         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76582         xrealloc, and xcalloc return values.
76583         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76584         Improve comment.
76585         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76586
76587 2003-06-07  Bruno Haible  <bruno@clisp.org>
76588
76589         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76590         avoid AC_CONFIG_LINKS.
76591         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76592         fnmatch.h, to avoid AC_CONFIG_LINKS.
76593         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76594
76595 2003-06-07  Bruno Haible  <bruno@clisp.org>
76596
76597         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76598         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76599         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76600         directory.
76601         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76602         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76603         directory.
76604
76605 2003-06-06  Jim Meyering  <jim@meyering.net>
76606
76607         Merge from coreutils.
76608         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76609         Consolidate declarations and initializations of *_base* locals.
76610
76611         Merge from coreutils.
76612         This avoids a core dump on systems without GNU putenv,
76613         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76614         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76615         (unsetenv): New static function, from GNU libc.
76616         (rpl_putenv): Use it.
76617
76618         * lib/modechange.c: Remove trailing blanks.
76619
76620         Merge from coreutils.
76621         * lib/fsusage.c: Remove declaration of statfs.
76622         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76623
76624         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76625
76626 2003-06-06  Jim Meyering  <jim@meyering.net>
76627
76628         * lib/stdbool_.h: Renamed from stdbool.h.in.
76629
76630 2003-06-06  Jim Meyering  <jim@meyering.net>
76631             Bruno Haible  <bruno@clisp.org>
76632
76633         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76634         Adjust Makefile.am snippet not to redirect directly to target.
76635         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76636
76637 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76638
76639         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76640         mismatch, look in future quarters as well as past.  This fixes a
76641         bug when processing fall-backwards gaps immediately after a long
76642         period of daylight-saving time.
76643
76644         * lib/mktime.c: Assume freestanding C89 or better.
76645         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76646         (__P): Remove; not used.
76647         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76648         (mktime, not_equal_tm, print_tm, check_result,
76649         main): Use prototypes.  Use const * where appropriate.
76650         (main): Fix typo in testing code that uncovered by above changes.
76651         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76652
76653 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76654
76655         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76656         locale.h, localeconv.  This merges changes from coreutils.
76657
76658         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76659         It can be removed after the next Autoconf is released.
76660         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76661         needed.
76662
76663 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76664
76665         * lib/mktime.c: Fix Debian bug 177940
76666         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76667         (localtime_offset): Now long int, not time_t, because we want it
76668         to be guaranteed to be signed.  All uses changed.
76669         (__mktime_internal): If overflow would occur when adding offset,
76670         don't add it.
76671
76672         Merge 'human' changes from coreutils.  Rewrite to support
76673         locale-specific notations like thousands separators.
76674         * lib/human.c: Simplify authorship notice.
76675         Include human.h immediately after config.h.
76676         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76677         <limits.h>: Do not include, since human.h does.
76678         (SIZE_MAX, UINTMAX_MAX): New macros.
76679         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76680         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76681         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76682         (power_letter): Renamed from suffixes.
76683         (generate_suffix_backwards): Remove.
76684         (adjust_value): Now takes int style (because of human.h changes)
76685         and long double value (for greater precision on some platforms).
76686         (group_number): New function.
76687         (human_readable): Use it.  Use integer options, not enum.
76688         Put the options before the sizes in the arg list.
76689         Support all the new options.
76690         The old human_readable function has been removed;
76691         use inttostr.h instead.
76692         (human_readable, default_block_size, humblock):
76693         Use uintmax_t, not int, for block sizes.
76694         (human_readable_inexact, block_size_types): Remove.
76695         (block_size_opts): New constant.
76696         (human_options): Renamed from human_block_size, with new signature
76697         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76698         * lib/human.h: Add copyright and authorship notice.
76699         Include <limits.h> and <stdbool.h> unconditionally.
76700         (PARAMS): Remove.  All uses removed.
76701         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76702         (enum human_inexact_style): Remove tag; now a nameless enum.
76703         (human_floor, human_ceiling, human_round_to_even): Now have
76704         values 2, 0, 1 rather than -1, 1, 0.
76705         (human_group_digits, human_suppress_point_zero, human_autoscale,
76706         human_base_1024, human_SI, human_B): New constants.
76707         (human_readable_inexact, human_block_size): Remove.
76708         (human_readable): Size args are now uintmax_t, not int.
76709         (human_options): New decl.
76710
76711         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76712         unnecessary now that we assume C89 or better.  This change
76713         imported from coreutils.
76714
76715         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76716         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76717         in the 2003-05-30 sync from glibc.
76718
76719         .h files should stand alone, but we shouldn't include <sys/types.h>
76720         if we can get away with just <stddef.h>.
76721
76722         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76723         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76724         rather than <sys/types.h>, as we merely need size_t.
76725         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76726         to get size_t.
76727         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76728         Include <stdio.h>, to get FILE.
76729         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76730         memcasecmp.h has included <stddef.h> and all we need is size_t.
76731         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76732         our interface, instead of including <sys/types.h>
76733
76734 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76735
76736         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76737         now, as glibc mktime is buggy on non-glibc systems.
76738
76739 2003-06-03  Karl Berry  <karl@gnu.org>
76740
76741         * config/config.sub: update from prep.
76742
76743 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76744
76745         [from coreutils]
76746         Fix some minor time-related bugs with POSIX time arguments.
76747         Some valid time stamps were being rejected (notably -1, and
76748         time stamps before 1900 on 64-bit hosts).  And some invalid
76749         time stamps were being accepted, e.g. September 31.
76750
76751         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76752         that we can return (time_t) -1 successfully.
76753         * lib/posixtm.c: Likewise.
76754         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76755         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76756         (t): Remove static var.
76757         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76758         of static var.  All uses changed.
76759         (year): Do not reject years before 1900; they can occur with
76760         64-bit time_t.
76761         (posix_time_parse): Do not check for out-of-range components;
76762         that is now the caller's responsibility, since our checks were
76763         only approximations.
76764         (posixtime): Use mktime to check for out-of-range components,
76765         since it knows them exactly.
76766         If mktime returns (time_t) -1, check whether an error actually occurred
76767         by invoking localtime on -1.
76768         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76769         posixtime failures better.
76770         Improve the test data (in comments only).
76771
76772 2003-06-02  Karl Berry  <karl@gnu.org>
76773
76774         * config/mkinstalldirs (version): new variable.
76775         (--version): new option.
76776         (usage): improve message.
76777
76778 2003-05-30  Karl Berry  <karl@gnu.org>
76779
76780         * lib/mktime.c: update from libc.
76781
76782 2003-05-30  Bruno Haible  <bruno@clisp.org>
76783
76784         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76785         * config/config.rpath: Upgrade to gettext-0.12.1.
76786
76787 2003-05-30  Bruno Haible  <bruno@clisp.org>
76788
76789         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76790         * m4/nls.m4: New file, from gettext-0.12.1.
76791         * m4/po.m4: New file, from gettext-0.12.1.
76792         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76793
76794 2003-05-30  Bruno Haible  <bruno@clisp.org>
76795
76796         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76797         * lib/localcharset.h: Likewise.
76798         * lib/localcharset.c: Likewise.
76799
76800 2003-05-29  Karl Berry  <karl@gnu.org>
76801
76802         * config/config.rpath: update from gettext.
76803
76804 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76805
76806         Assume the headers required for C89 freestanding compilers.
76807         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76808         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76809         * m4/human.m4 (gl_HUMAN): Likewise.
76810         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76811         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76812         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76813         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76814         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76815         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76816
76817 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76818
76819         Assume the headers required for C89 freestanding compilers.
76820         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76821         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76822         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76823         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76824         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76825         define, since <limits.h> is guaranteed to do that.
76826         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76827         * lib/exclude.c: Include <stdbool.h> unconditionally.
76828         * lib/tempname.c: Include <stddef.h> unconditionally.
76829         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76830         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76831         <stddef.h> does that.
76832         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76833         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76834         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76835         needed.
76836         * lib/xstrtol.c: Likewise.
76837         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76838         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76839
76840         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76841         warnings on some platforms.
76842
76843         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76844         arbitrarily.
76845
76846 2003-05-26  Jim Meyering  <jim@meyering.net>
76847
76848         Merge in a change from coreutils:
76849         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76850         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76851         that condition, rather than `-1' which is slightly misleading.
76852         Change the name of the cache variable to have the gl_ prefix.
76853         Prompted by a patch from Richard Dawe for DJGPP.
76854
76855 2003-05-24  Karl Berry  <karl@gnu.org>
76856
76857         * config/config.guess: update from prep.
76858
76859 2003-05-22  Karl Berry  <karl@gnu.org>
76860
76861         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76862
76863 2003-05-20  Karl Berry  <karl@gnu.org>
76864
76865         * config/config.guess: update from prep.
76866
76867 2003-05-18  Karl Berry  <karl@gnu.org>
76868
76869         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76870         might actually be set by the user.
76871
76872         * config/depcomp, install-sh, mdate-sh: update from automake.
76873
76874 2003-05-17  Bruno Haible  <bruno@clisp.org>
76875
76876         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76877         invalid expansion for AC_EGREP_CPP.
76878         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76879         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76880         Suggested by Akim Demaille <akim@epita.fr> in
76881         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76882
76883 2003-05-12  Jim Meyering  <jim@meyering.net>
76884
76885         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76886         the space-padded-by-default conversion specifiers, %e, %k, %l.
76887
76888 2003-05-12  Bruno Haible  <bruno@clisp.org>
76889
76890         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76891         the string is longer than 4 KB.
76892
76893 2003-05-11  Karl Berry  <karl@gnu.org>
76894
76895         * config/config.{guess,sub}: update from prep.
76896
76897 2003-05-09  Bruno Haible  <bruno@clisp.org>
76898
76899         * modules/error: Add m4/strerror_r.m4 to file list.
76900
76901 2003-05-03  Bruno Haible  <bruno@clisp.org>
76902
76903         Upgrade to Unicode-4.0.
76904         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76905         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76906         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76907         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76908         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76909         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76910         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76911         Change width of U+E0100..U+E01EF from 1 to 0.
76912
76913 2003-04-25  Jim Meyering  <jim@meyering.net>
76914
76915         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76916         of type size_t, not int.
76917
76918 2003-04-25  Bruno Haible  <bruno@clisp.org>
76919
76920         * lib/copy-file.c: Include <stddef.h>, for size_t.
76921
76922 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76923
76924         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76925         code which expansion is under static control.  Patch imported from
76926         Akim Demaille's patch to Bison; see
76927         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76928
76929 2003-04-14  Bruno Haible  <bruno@clisp.org>
76930
76931         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76932
76933 2003-04-11  Jim Meyering  <jim@meyering.net>
76934
76935         Merge changes from Coreutils.
76936
76937         2003-03-22  Jim Meyering  <jim@meyering.net>
76938
76939         * lib/strftime.c (widen): Cast alloca return value to proper type.
76940
76941         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76942
76943         From GNU libc.
76944         * lib/strftime.c (my_strftime): Handle very large width
76945         specifications for numeric values correctly.  Improve checks for
76946         overflow.
76947
76948         2003-01-19  Jim Meyering  <jim@meyering.net>
76949
76950         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76951         definitions.
76952         (nl_get_alt_digit) [! defined my_strftime]: Define.
76953         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76954         _nl_get_alt_digit and _nl_get_walt_digit.
76955
76956         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76957         libc. These changes have no effect outside of _LIBC.
76958
76959 2003-04-10  Bruno Haible  <bruno@clisp.org>
76960
76961         * modules/findprog: New file.
76962         * MODULES.html.sh (func_all_modules): Add it.
76963
76964 2003-04-10  Bruno Haible  <bruno@clisp.org>
76965
76966         * m4/findprog.m4: New file.
76967         * m4/eaccess.m4: New file.
76968
76969 2003-04-10  Bruno Haible  <bruno@clisp.org>
76970
76971         * lib/findprog.h: New file, from GNU gettext.
76972         * lib/findprog.c: New file, from GNU gettext.
76973
76974 2003-04-05  Jim Meyering  <jim@meyering.net>
76975
76976         Merge changes from Coreutils.
76977
76978         * lib/exclude.h (PARAMS): Remove definition and uses.
76979         * lib/exclude.c: Remove uses of `PARAMS'.
76980
76981         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76982         Add test-cases for DOS filenames. Declare program_name.
76983         (main): Set up program_name.  Patch by Rich Dawe.
76984
76985         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76986         error from mntctl.
76987         Use mntctl's return value to drive the entry-processing loop, since
76988         we can't rely on the value of the vmt_length member in the last
76989         entry.  On some systems doing so could result in exhausting
76990         virtual memory.  Based in part on a patch from Mike Jetzer.
76991
76992 2003-04-04  Bruno Haible  <bruno@clisp.org>
76993
76994         * modules/linebreak: New file.
76995         * MODULES.html.sh (func_all_modules): Add it.
76996
76997 2003-04-04  Bruno Haible  <bruno@clisp.org>
76998
76999         * m4/linebreak.m4: New file.
77000
77001 2003-04-04  Bruno Haible  <bruno@clisp.org>
77002
77003         * lib/linebreak.h: New file, from GNU gettext.
77004         * lib/linebreak.c: New file, from GNU gettext with slight
77005         modifications.
77006         * lib/lbrkprop.h: New file, from GNU gettext.
77007
77008 2003-04-03  Bruno Haible  <bruno@clisp.org>
77009
77010         * modules/utf8-ucs4: New file.
77011         * modules/utf16-ucs4: New file.
77012         * modules/ucs4-utf8: New file.
77013         * modules/ucs4-utf16: New file.
77014         * MODULES.html.sh (func_all_modules): Add them.
77015
77016 2003-04-03  Bruno Haible  <bruno@clisp.org>
77017
77018         * m4/utf-ucs4.m4: New file.
77019         * m4/ucs4-utf.m4: New file.
77020
77021 2003-04-03  Bruno Haible  <bruno@clisp.org>
77022
77023         * lib/utf8-ucs4.h: New file, from GNU gettext.
77024         * lib/utf16-ucs4.h: New file, from GNU gettext.
77025         * lib/ucs4-utf8.h: New file, from GNU gettext.
77026         * lib/ucs4-utf16.h: New file, from GNU gettext.
77027
77028 2003-04-02  Bruno Haible  <bruno@clisp.org>
77029
77030         * modules/binary-io: New file.
77031         * MODULES.html.sh (func_all_modules): Add it.
77032
77033 2003-04-02  Bruno Haible  <bruno@clisp.org>
77034
77035         * lib/binary-io.h: New file, from GNU gettext.
77036
77037 2003-04-01  Bruno Haible  <bruno@clisp.org>
77038
77039         * modules/pathname: New file.
77040         * MODULES.html.sh (func_all_modules): Add it.
77041
77042 2003-04-01  Bruno Haible  <bruno@clisp.org>
77043
77044         * lib/pathname.h: New file, from GNU gettext.
77045         * lib/concatpath.c: New file, from GNU gettext.
77046
77047 2003-03-30  Bruno Haible  <bruno@clisp.org>
77048
77049         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
77050
77051 2003-03-30  Bruno Haible  <bruno@clisp.org>
77052
77053         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
77054         function chown() doesn't exist.
77055
77056 2003-03-28  Bruno Haible  <bruno@clisp.org>
77057
77058         * modules/copy-file: New file.
77059         * MODULES.html.sh (func_all_modules): Add it.
77060
77061 2003-03-28  Bruno Haible  <bruno@clisp.org>
77062
77063         * m4/copy-file.m4: New file.
77064
77065 2003-03-28  Bruno Haible  <bruno@clisp.org>
77066
77067         * lib/copy-file.h: New file, from GNU gettext.
77068         * lib/copy-file.c: New file, from GNU gettext.
77069
77070 2003-03-18  Jim Meyering  <jim@meyering.net>
77071
77072         * lib/quote.c (quote_n): Fix typo in comment.
77073
77074 2003-03-18  Bruno Haible  <bruno@clisp.org>
77075
77076         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
77077         checking.
77078         * m4/onceonly_2_57.m4: Likewise.
77079
77080 2003-03-17  Bruno Haible  <bruno@clisp.org>
77081
77082         * m4/onceonly.m4: Require autoconf 2.54 or newer.
77083         (m4_quote): Remove macro.
77084         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
77085
77086 2003-03-14  Jim Meyering  <jim@meyering.net>
77087
77088         Merge changes from Coreutils.
77089         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
77090         to be const, in order to avoid warnings.
77091         (obstack_room): Likewise.
77092         (obstack_empty_p): Likewise.
77093
77094 2003-03-14  Bruno Haible  <bruno@clisp.org>
77095
77096         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
77097         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
77098
77099 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77100
77101         Merge changes from Bison.
77102         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
77103         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
77104         when compiling Bison 1.875's `bitset bset = obstack_alloc
77105         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
77106         * lib/hash.c: Include <stdbool.h> unconditionally.
77107
77108 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77109
77110         * m4/onceonly.m4 (m4_quote): New macro.
77111         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
77112         Quote AC_FOREACH variable-expansions properly.
77113
77114 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77115
77116         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
77117
77118 2003-03-09  Paul Eggert  <eggert@twinsun.com>
77119
77120         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
77121         Reported by Bruce Becker; see:
77122         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
77123
77124 2003-03-03  Paul Eggert  <eggert@twinsun.com>
77125             Bruno Haible  <bruno@clisp.org>
77126
77127         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
77128         Reported by John Hughes, see
77129         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
77130
77131 2003-02-20  Bruno Haible  <bruno@clisp.org>
77132
77133         * MODULES.html.sh (func_all_modules): Add poll.
77134
77135 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77136
77137         * modules/poll: New file.
77138
77139 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77140
77141         * lib/poll_.h: New file.
77142         * lib/poll.c: New file.
77143
77144 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77145
77146         * m4/poll.m4: New file.
77147
77148 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77149
77150         * modules/mathl: New file.
77151
77152 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77153
77154         * lib/mathl.h: New file.
77155         * lib/acosl.c: New file.
77156         * lib/asinl.c: New file.
77157         * lib/atanl.c: New file.
77158         * lib/ceill.c: New file.
77159         * lib/cosl.c: New file.
77160         * lib/expl.c: New file.
77161         * lib/floorl.c: New file.
77162         * lib/frexpl.c: New file.
77163         * lib/ldexpl.c: New file.
77164         * lib/logl.c: New file.
77165         * lib/sincosl.c: New file.
77166         * lib/sinl.c: New file.
77167         * lib/sqrtl.c: New file.
77168         * lib/tanl.c: New file.
77169         * lib/trigl.c: New file.
77170         * lib/trigl.h: New file.
77171
77172 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77173
77174         * m4/mathl.m4: New file.
77175
77176 2003-02-18  Bruno Haible  <bruno@clisp.org>
77177
77178         * MODULES.html.sh (func_all_modules): Add mathl.
77179
77180 2003-02-17  Bruno Haible  <bruno@clisp.org>
77181
77182         * modules/mkdtemp: New module.
77183         * MODULES.html.sh (func_all_modules): Add it.
77184
77185 2003-02-17  Bruno Haible  <bruno@clisp.org>
77186
77187         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
77188
77189 2003-02-17  Bruno Haible  <bruno@clisp.org>
77190
77191         * lib/mkdtemp.h: New file, from GNU gettext.
77192         * lib/mkdtemp.c: New file, from GNU gettext.
77193
77194 2003-02-02  Jim Meyering  <jim@meyering.net>
77195
77196         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
77197         e.g. glibc-2.2.93.
77198
77199 2003-01-31  Bruno Haible  <bruno@clisp.org>
77200
77201         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
77202         'rpl_rename'.
77203         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
77204         'rpl_strnlen'.
77205         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
77206         'rpl_strtod'.
77207         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
77208         'rpl_utime'.
77209
77210 2003-01-31  Bruno Haible  <bruno@clisp.org>
77211
77212         * lib/rename.c: #undef rename before defining rpl_rename.
77213         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
77214
77215 2003-01-30  Bruno Haible  <bruno@clisp.org>
77216
77217         * modules/vasnprintf, modules/vasprintf: New modules.
77218         * MODULES.html.sh (func_all_modules): Add them.
77219
77220 2003-01-30  Bruno Haible  <bruno@clisp.org>
77221
77222         * m4/signed.m4: New file, from GNU gettext.
77223         * m4/longdouble.m4: New file, from GNU gettext.
77224         * m4/wchar_t.m4: New file, from GNU gettext.
77225         * m4/wint_t.m4: New file, from GNU gettext.
77226         * m4/vasnprintf.m4: New file.
77227         * m4/vasprintf.m4: New file.
77228
77229 2003-01-30  Bruno Haible  <bruno@clisp.org>
77230
77231         * lib/printf-args.h: New file, from GNU gettext.
77232         * lib/printf-args.c: New file, from GNU gettext.
77233         * lib/printf-parse.h: New file, from GNU gettext.
77234         * lib/printf-parse.c: New file, from GNU gettext.
77235         * lib/vasnprintf.h: New file, from GNU gettext.
77236         * lib/vasnprintf.c: New file, from GNU gettext.
77237         * lib/asnprintf.c: New file, from GNU gettext.
77238         * lib/vasprintf.h: New file, from GNU gettext with modifications.
77239         * lib/vasprintf.c: New file, from GNU gettext.
77240         * lib/asprintf.c: New file, from GNU gettext.
77241
77242 2003-01-29  Bruno Haible  <bruno@clisp.org>
77243
77244         * modules/stpncpy: New module.
77245         * MODULES.html.sh (func_all_modules): Add it.
77246
77247 2003-01-29  Bruno Haible  <bruno@clisp.org>
77248
77249         * m4/stpncpy.m4: New file.
77250
77251 2003-01-29  Bruno Haible  <bruno@clisp.org>
77252
77253         * lib/stpncpy.h: New file, from GNU gettext with modifications.
77254         * lib/stpncpy.c: New file, from GNU gettext with modifications.
77255
77256 2003-01-28  Bruno Haible  <bruno@clisp.org>
77257
77258         * modules/c-ctype: New module.
77259         * MODULES.html.sh (func_all_modules): Add it.
77260
77261 2003-01-28  Bruno Haible  <bruno@clisp.org>
77262
77263         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
77264         Paul Eggert.
77265         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
77266         Paul Eggert.
77267
77268 2003-01-27  Bruno Haible  <bruno@clisp.org>
77269
77270         * modules/xsetenv: New module.
77271         * MODULES.html.sh (func_all_modules): Add it.
77272
77273 2003-01-27  Bruno Haible  <bruno@clisp.org>
77274
77275         * lib/xsetenv.h: New file, from GNU gettext.
77276         * lib/xsetenv.c: New file, from GNU gettext.
77277
77278 2003-01-23  Jim Meyering  <jim@meyering.net>
77279
77280         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
77281         from working on systems without dirfd (at least Irix and OSF1/Tru64).
77282
77283 2003-01-23  Bruno Haible  <bruno@clisp.org>
77284
77285         * modules/minmax: New module.
77286         * MODULES.html.sh (func_all_modules): Add it.
77287
77288 2003-01-23  Bruno Haible  <bruno@clisp.org>
77289
77290         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
77291         Eggert.
77292
77293 2003-01-22  Bruno Haible  <bruno@clisp.org>
77294
77295         * modules/exit: New module.
77296         * MODULES.html.sh (func_all_modules): Add it.
77297
77298 2003-01-22  Bruno Haible  <bruno@clisp.org>
77299
77300         * lib/exit.h: New file, from GNU gettext.
77301
77302 2003-01-19  Bruno Haible  <bruno@clisp.org>
77303
77304         * gnulib-tool: Recognize option --extract-maintainer.
77305         (func_get_maintainer): New function.
77306         * modules/*: Add Maintainer entry.
77307
77308 2003-01-16  Jim Meyering  <jim@meyering.net>
77309
77310         * m4/regex.m4: The `regex' struct is both input and output.
77311         Initialize it before each use.  Patch by Tim Waugh.
77312
77313 2003-01-16  Bruno Haible  <bruno@clisp.org>
77314
77315         * MODULES.html.sh: Add a table of contents. Add the module name as
77316         leftmost column. Add hyperlinks.
77317
77318 2003-01-15  Bruno Haible  <bruno@clisp.org>
77319
77320         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
77321
77322 2003-01-15  Bruno Haible  <bruno@clisp.org>
77323
77324         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
77325         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
77326         suffix.
77327
77328 2003-01-15  Bruno Haible  <bruno@clisp.org>
77329
77330         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
77331
77332 2003-01-15  Bruno Haible  <bruno@clisp.org>
77333
77334         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
77335         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
77336
77337 2003-01-14  Jim Meyering  <jim@meyering.net>
77338
77339         * lib/same.c (same_name): Tweak a comment.
77340
77341 2003-01-14  Bruno Haible  <bruno@clisp.org>
77342
77343         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
77344         when a string comparison is sufficient.
77345
77346 2003-01-14  Bruno Haible  <bruno@clisp.org>
77347
77348         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
77349         'unsigned int'.
77350
77351 2003-01-14  Bruno Haible  <bruno@clisp.org>
77352
77353         * lib/hash-pjw.c: Add comment about low quality of this function.
77354
77355 2003-01-13  Bruno Haible  <bruno@clisp.org>
77356
77357         * modules/stpcpy: Distribute lib/stpcpy.h.
77358         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
77359
77360 2003-01-13  Bruno Haible  <bruno@clisp.org>
77361
77362         * modules/*: Add a description.
77363         * modules/strpbrk: Fix Makefile.am snippet.
77364         * modules/strtoimax: Fix dependencies.
77365         * modules/strtoumax: Likewise.
77366
77367 2003-01-13  Bruno Haible  <bruno@clisp.org>
77368
77369         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
77370         * modules/alloca (Makefile.am): All object files depend on alloca.h.
77371         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
77372
77373 2003-01-13  Bruno Haible  <bruno@clisp.org>
77374
77375         * gnulib-tool (func_create_testdir): Store config/* files in the main
77376         directory.
77377         * config.rpath: Move to ...
77378         * config/config.rpath: ... here.
77379         * modules/gettext: Contains config/config.rpath, not config.rpath.
77380         * modules/iconv: Likewise.
77381
77382 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77383
77384         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77385         to avoid collisions with libcurses and libreadline.
77386
77387         * m4/getstr.m4: Remove.
77388         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
77389
77390 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77391
77392         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77393         to avoid collisions with libcurses and libreadline.
77394
77395         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
77396         * lib/getstr.h, getstr.c: Remove.
77397         * lib/getline.c: Include "getline.h", to check interface.
77398         Move body of old getstr.c here: this defines MIN_CHUNK and
77399         declares getdelim2, which is renamed from getstr.
77400         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
77401
77402         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77403         All uses changed.
77404         * lib/linebuffer.h: Likewise.
77405         (readline): Remove backward-compatibility macro.
77406
77407 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77408
77409         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77410         to avoid collisions with libcurses and libreadline.
77411         * getstr: Remove.
77412         * MODULES.html.sh: Remove getstr.
77413         * modules/getline: Depend on unlocked-io, not getstr.
77414
77415 2003-01-12  Jim Meyering  <jim@meyering.net>
77416
77417         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77418
77419 2003-01-10  Bruno Haible  <bruno@clisp.org>
77420
77421         * modules/alloca: Change Makefile.am requirements. Simplify Include
77422         requirements. Add lib/alloca_.h to file list.
77423
77424 2003-01-10  Bruno Haible  <bruno@clisp.org>
77425
77426         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77427
77428 2003-01-10  Bruno Haible  <bruno@clisp.org>
77429
77430         * lib/alloca_.h: New file.
77431         * lib/getdate.y: Unconditionally include alloca.h.
77432         * lib/makepath.c: Likewise.
77433         * lib/setenv.c: Likewise.
77434         * lib/userspec.c: Likewise.
77435
77436 2003-01-09  Karl Berry  <karl@gnu.org>
77437
77438         * MODULES.html.sh: include `dirname $0` in PATH, to find
77439         gnulib-tool.
77440
77441 2003-01-09  Bruno Haible  <bruno@clisp.org>
77442
77443         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77444         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77445
77446 2003-01-09  Bruno Haible  <bruno@clisp.org>
77447
77448         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77449
77450 2003-01-09  Bruno Haible  <bruno@clisp.org>
77451
77452         * lib/stdbool.h.in: New file.
77453
77454 2003-01-09  Bruno Haible  <bruno@clisp.org>
77455
77456         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77457         * MODULES.html.sh: Likewise.
77458
77459 2003-01-08  Jim Meyering  <jim@meyering.net>
77460
77461         * lib/full-write.c: Undefine and define-away `const' after inclusion
77462         of errno.h, not before.  Suggestion from Bruno Haible.
77463
77464 2003-01-08  Bruno Haible  <bruno@clisp.org>
77465
77466         * modules/full-read: Depend on full-write.
77467
77468 2003-01-08  Bruno Haible  <bruno@clisp.org>
77469
77470         * lib/safe-read.c: Include specification header first, to ensure its
77471         selfcontainedness.
77472         * lib/full-write.c: Likewise.
77473
77474 2003-01-07  Jim Meyering  <jim@meyering.net>
77475
77476         * lib/full-write.c: Rework so that it may serve to define full_read,
77477         too.
77478         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77479
77480 2003-01-07  Bruno Haible  <bruno@clisp.org>
77481
77482         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77483         <inttypes.h>.
77484         * lib/xstrtol.h: Likewise.
77485         * lib/xstrtoimax.c: Likewise.
77486         * lib/xstrtoumax.c: Likewise.
77487         * lib/human.h: Likewise.
77488
77489         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77490         on systems that have <inttypes.h> but not <stdint.h>.
77491
77492 2003-01-07  Bruno Haible  <bruno@clisp.org>
77493
77494         * MODULES.html.sh: Add copyright notice.
77495         (missed_files): Omit CVS directory entries.
77496         (func_module): Make it work with sed-3.02.
77497         * MODULES.txt: Remove file.
77498
77499 2003-01-06  Jim Meyering  <jim@meyering.net>
77500
77501         * lib/version-etc.c: Update year in translatable copyright string.
77502
77503 2003-01-03  Karl Berry  <karl@gnu.org>
77504
77505         * config/config.{guess,sub}: update from prep.
77506
77507 2003-01-02  Karl Berry  <karl@gnu.org>
77508
77509         * doc/COPYING.DOC: belatedly updated to 1.2.
77510
77511 2003-01-01  Karl Berry  <karl@gnu.org>
77512
77513         * gnulib-tool (func_verify_module): report module name $module in
77514         error message, not $1.
77515         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77516         be created, only if it doesn't exist.
77517         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77518
77519 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77520
77521         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77522
77523 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77524
77525         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77526         memcmp if strcoll doesn't work.
77527
77528 2002-12-31  Bruno Haible  <bruno@clisp.org>
77529
77530         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77531         nonempty.
77532
77533 2002-12-31  Bruno Haible  <bruno@clisp.org>
77534
77535         * lib/memcoll.c (STRCOLL): New macro.
77536         (memcoll): Use it.
77537
77538 2002-12-31  Bruno Haible  <bruno@clisp.org>
77539
77540         * lib/localcharset.h: New file.
77541         * lib/localcharset.c: Include it.
77542         * lib/unicodeio.c: Likewise.
77543
77544 2002-12-31  Bruno Haible  <bruno@clisp.org>
77545
77546         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77547         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77548
77549 2002-12-31  Bruno Haible  <bruno@clisp.org>
77550
77551         * lib/getline.h: Include <stddef.h>, for size_t.
77552
77553         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77554         * lib/unicodeio.c: Don't include <stddef.h>.
77555
77556 2002-12-31  Bruno Haible  <bruno@clisp.org>
77557
77558         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77559         HAVE_TM_ZONE.
77560
77561 2002-12-24  Karl Berry  <karl@gnu.org>
77562
77563         * config/config.guess: update from prep.
77564
77565 2002-12-24  Bruno Haible  <bruno@clisp.org>
77566
77567         General infrasructure.
77568         * m4/README: Rewritten.
77569         * m4/onceonly.m4: New file.
77570         * m4/onceonly_2_57.m4: New file.
77571
77572         Module atexit.
77573         * m4/atexit.m4: New file.
77574
77575         Module strtod.
77576         * m4/strtod.m4: New file.
77577
77578         Module strtol.
77579         * m4/strtol.m4: New file.
77580
77581         Module strtoul.
77582         * m4/strtoul.m4: New file.
77583
77584         Module memchr.
77585         * m4/memchr.m4: New file.
77586
77587         Module memcmp.
77588         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77589         (jm_FUNC_MEMCMP): Invoke it.
77590
77591         Module memcpy.
77592         * m4/memcpy.m4: New file.
77593
77594         Module memmove.
77595         * m4/memmove.m4: New file.
77596
77597         Module memset.
77598         * m4/memset.m4: New file.
77599
77600         Module strcspn.
77601         * m4/strcspn.m4: New file.
77602
77603         Module strpbrk.
77604         * m4/strpbrk.m4: New file.
77605
77606         Module strstr.
77607         * m4/strstr.m4: New file.
77608
77609         Module strerror.
77610         * m4/strerror.m4: New file.
77611
77612         Module mktime.
77613         * m4/mktime.m4: Renamed from jm-mktime.m4.
77614         (gl_PREREQ_MKTIME): New macro.
77615         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77616
77617         Module malloc.
77618         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77619         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77620         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77621
77622         Module realloc.
77623         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77624         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77625         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77626
77627         Module strftime.
77628         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77629         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77630         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77631         gl_TM_GMTOFF.
77632         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77633
77634         Module xalloc.
77635         * m4/xalloc.m4: New file.
77636
77637         Module alloca.
77638         * m4/alloca.m4: New file.
77639
77640         Module putenv.
77641         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77642         (jm_FUNC_PUTENV): Invoke it.
77643
77644         Module setenv.
77645         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77646         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77647         when invoked twice.
77648         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77649         gt_FUNC_SETENV.
77650
77651         Module memrchr.
77652         * m4/memrchr.m4: New file.
77653
77654         Module stpcpy.
77655         * m4/stpcpy.m4: New file.
77656
77657         Module strcase.
77658         * m4/strcase.m4: New file.
77659
77660         Module strdup.
77661         * m4/strdup.m4: New file.
77662
77663         Module strnlen.
77664         * m4/strnlen.m4: New file.
77665
77666         Module strndup.
77667         * m4/strndup.m4: New file.
77668
77669         Module xstrtod.
77670         * m4/xstrtod.m4: New file.
77671
77672         Module xstrtol.
77673         * m4/xstrtol.m4: New file.
77674
77675         Module getdate.
77676         * m4/getdate.m4: New file.
77677
77678         Module unlocked-io.
77679         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77680         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77681         * m4/jm-glibc-io.m4n: Remove file.
77682
77683         Module long-options.
77684         * m4/long-options.m4: New file.
77685
77686         Module md5.
77687         * m4/md5.m4: New file.
77688
77689         Module sha.
77690         * m4/sha.m4: New file.
77691
77692         Module getstr.
77693         * m4/getstr.m4: New file.
77694
77695         Module getline.
77696         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77697         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77698         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77699         simply getline. Infoke gl_PREREQ_GETLINE.
77700
77701         Module obstack.
77702         * m4/obstack.m4: New file.
77703
77704         Module hash.
77705         * m4/hash.m4: New file.
77706
77707         Module readtokens.
77708         * m4/readtokens.m4: New file.
77709
77710         Module strverscmp.
77711         * m4/strverscmp.m4: New file.
77712
77713         Module stdbool.
77714         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77715         OSF/1.
77716
77717         Module strtoll.
77718         * m4/strtoll.m4: New file.
77719
77720         Module strtoull.
77721         * m4/strtoull.m4: New file.
77722
77723         Module strtoimax.
77724         * m4/strtoimax.m4: New file.
77725
77726         Module strtoumax.
77727         * m4/strtoumax.m4: New file.
77728
77729         Module xstrtoimax.
77730         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77731         jm_AC_PREREQ_XSTRTOIMAX.
77732         Moved the strtol prerequisites to strtol.m4.
77733         Moved the strtoll prerequisites to strtoll.m4.
77734         Moved the strtoimax prerequisites to strtoimax.m4.
77735
77736         Module xstrtoumax.
77737         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77738         jm_AC_PREREQ_XSTRTOUMAX.
77739         Moved the strtoul prerequisites to strtoul.m4.
77740         Moved the strtoull prerequisites to strtoull.m4.
77741         Moved the strtoumax prerequisites to strtoumax.m4.
77742
77743         Module chown.
77744         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77745         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77746
77747         Module dup2.
77748         * m4/dup2.m4: New file.
77749
77750         Module ftruncate.
77751         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77752         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77753
77754         Module getgroups.
77755         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77756         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77757
77758         Module gettimeofday.
77759         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77760         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77761         gl_PREREQ_GETTIMEOFDAY.
77762
77763         Module mkdir.
77764         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77765         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77766
77767         Module mkstemp.
77768         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77769         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77770         jm_AC_TYPE_UINTMAX_T.
77771         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77772
77773         Module stat.
77774         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77775         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77776
77777         Module lstat.
77778         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77779         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77780
77781         Module timespec.
77782         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77783         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77784         * m4/st_mtim.m4: Indentation.
77785
77786         Module nanosleep.
77787         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77788         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77789         gl_PREREQ_NANOSLEEP.
77790
77791         Module regex.
77792         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77793         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77794         (gl_REGEX): New macro.
77795
77796         Module rename.
77797         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77798         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77799
77800         Module rmdir.
77801         * m4/rmdir.m4: New file.
77802
77803         Module utime.
77804         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77805         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77806         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77807
77808         Module dirname.
77809         * m4/dirname.m4: New file.
77810
77811         Module getopt.
77812         * m4/getopt.m4: New file.
77813
77814         Module unistd-safer.
77815         * m4/unistd-safer.m4: New file.
77816
77817         Module fnmatch.
77818         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77819         declaration.
77820         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77821         (gl_FUNC_FNMATCH_POSIX): New macro.
77822         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77823         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77824         simply fnmatch.
77825
77826         Module exclude.
77827         * m4/exclude.m4: New file.
77828
77829         Module human.
77830         * m4/human.m4: New file.
77831
77832         Module acl.
77833         * m4/acl.m4: Nop.
77834
77835         Module backupfile.
77836         * m4/backupfile.m4: New file.
77837         * m4/d-ino.m4: Indentation.
77838
77839         Module fsusage.
77840         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77841         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77842         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77843
77844         Module dirfd.
77845         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77846         requirements.
77847
77848         Module euidaccess.
77849         * m4/euidaccess.m4: New file.
77850
77851         Module file-type.
77852         * m4/file-type.m4: New file.
77853
77854         Module fileblocks.
77855         * m4/fileblocks.m4: New file.
77856
77857         Module filemode.
77858         * m4/filemode.m4: New file.
77859
77860         Module isdir.
77861         * m4/isdir.m4: New file.
77862
77863         Module lchown.
77864         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77865         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77866
77867         Module makepath.
77868         * m4/makepath.m4: New file.
77869
77870         Module modechange.
77871         * m4/modechange.m4: New file.
77872
77873         Module mountlist.
77874         * m4/mountlist.m4: New file.
77875         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77876         Indentation.
77877
77878         Module path-concat.
77879         * m4/path-concat.m4: New file.
77880
77881         Module pathmax.
77882         * m4/pathmax.m4: New file.
77883
77884         Module same.
77885         * m4/same.m4: New file.
77886
77887         Module save-cwd.
77888         * m4/save-cwd.m4: New file.
77889
77890         Module savedir.
77891         * m4/savedir.m4: New file.
77892
77893         Module xgetcwd.
77894         * m4/xgetcwd.m4: New file.
77895         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77896
77897         Module xreadlink.
77898         * m4/xreadlink.m4: New file.
77899
77900         Module safe-read.
77901         * m4/safe-read.m4: New file.
77902
77903         Module safe-write.
77904         * m4/safe-write.m4: New file.
77905
77906         Module closeout.
77907         * m4/closeout.m4: New file.
77908
77909         Module stdio-safer.
77910         * m4/stdio-safer.m4: New file.
77911
77912         Module getpass.
77913         * m4/getpass.m4: New file.
77914
77915         Module getugroups.
77916         * m4/getugroups.m4: New file.
77917
77918         Module group-member.
77919         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77920         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77921
77922         Module idcache.
77923         * m4/idcache.m4: New file.
77924
77925         Module userspec.
77926         * m4/userspec.m4: New file.
77927
77928         Module gettime.
77929         * m4/clock_time.m4: New file.
77930         * m4/gettime.m4: New file.
77931
77932         Module settime.
77933         * m4/settime.m4: New file.
77934
77935         Module posixtm.
77936         * m4/posixtm.m4: New file.
77937
77938         Module gethostname.
77939         * m4/gethostname.m4: New file.
77940
77941         Module canon-host.
77942         * m4/canon-host.m4: New file.
77943
77944         Module gettext.
77945         * m4/codeset.m4: New file, from gettext-0.11.5.
77946         * m4/gettext.m4: New file, from gettext-0.11.5.
77947         * m4/glibc21.m4: New file, from gettext-0.11.5.
77948         * m4/iconv.m4: New file, from gettext-0.11.5.
77949         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77950         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77951         * m4/inttypes.m4: New file, from gettext-0.11.5.
77952         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77953         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77954         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77955         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77956         * m4/lib-link.m4: New file, from gettext-0.11.5.
77957         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77958         * m4/progtest.m4: New file, from gettext-0.11.5.
77959         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77960         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77961         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77962
77963         Module localcharset.
77964         * m4/localcharset.m4: New file.
77965
77966         Module hard-locale.
77967         * m4/hard-locale.m4: New file.
77968
77969         Module mbswidth.
77970         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77971         onceonly macros.
77972         * m4/mbrtowc.m4: Add comment.
77973
77974         Module memcasecmp.
77975         * m4/memcasecmp.m4: New file.
77976
77977         Module memcoll.
77978         * m4/memcoll.m4: New file.
77979
77980         Module unicodeio.
77981         * m4/unicodeio.m4: New file.
77982
77983         Module rpmatch.
77984         * m4/rpmatch.m4: New file.
77985
77986         Module yesno.
77987         * m4/yesno.m4: New file.
77988
77989         Module exitfail.
77990         * m4/exitfail.m4: New file.
77991
77992         Module c-stack.
77993         * m4/c-stack.m4 (gl_C_STACK): New macro.
77994         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77995
77996         Module error.
77997         * m4/error.m4 (gl_ERROR): New macro.
77998         (jm_PREREQ_ERROR): Use onceonly macros.
77999
78000         Module fatal.
78001         * m4/fatal.m4: New file.
78002
78003         Module getloadavg.
78004         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
78005         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
78006
78007         Module getpagesize.
78008         * m4/getpagesize.m4: New file.
78009
78010         Module getusershell.
78011         * m4/getusershell.m4: New file.
78012
78013         Module physmem.
78014         * m4/physmem.m4: New file.
78015
78016         Module posixver.
78017         * m4/posixver.m4: New file.
78018
78019         Module quotearg.
78020         * m4/quotearg.m4: New file.
78021
78022         Module quote.
78023         * m4/quote.m4: New file.
78024
78025         Module readutmp.
78026         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
78027
78028         Module sig2str.
78029         * m4/sig2str.m4: New file.
78030
78031         Other.
78032         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
78033         ulonglong.m4.
78034         * m4/intmax_t.m4: New file.
78035         * m4/d-type.m4: Indentation.
78036         * m4/jm-macros.m4: Update.
78037         * m4/prereq.m4 (jm_PREREQ): Update.
78038         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
78039         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
78040         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
78041         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
78042         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
78043         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
78044         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
78045         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
78046         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
78047         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
78048         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
78049         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
78050         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
78051         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
78052         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
78053         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
78054         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
78055         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
78056         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
78057
78058 2002-12-24  Bruno Haible  <bruno@clisp.org>
78059
78060         * MODULES.txt: Update according to m4/ changes.
78061
78062         Module gettext.
78063         * config.rpath: New file, from gettext-0.11.5.
78064
78065         * modules/*: New module descriptions.
78066         * gnulib-tool: New file.
78067         * MODULES.html.sh: New file.
78068
78069 2002-12-21  Karl Berry  <karl@gnu.org>
78070
78071         * doc/fdl.texi: update to version 1.2.
78072
78073 2002-12-19  Karl Berry  <karl@gnu.org>
78074
78075         * config/config.guess: update from prep.
78076
78077 2002-12-18  Bruno Haible  <bruno@clisp.org>
78078
78079         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
78080         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
78081
78082 2002-12-17  Bruno Haible  <bruno@clisp.org>
78083
78084         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
78085         stdlib.h, string.h.
78086
78087 2002-12-17  Bruno Haible  <bruno@clisp.org>
78088
78089         * lib/canon-host.c (strdup): Remove unused declaration.
78090
78091         * lib/fsusage.c: Include full_read.h.
78092         (get_fs_usage): Use full_read instead of safe_read.
78093
78094         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
78095
78096 2002-12-12  Karl Berry  <karl@gnu.org>
78097
78098         * config/config.guess: update from prep.
78099
78100 2002-12-11  Bruno Haible  <bruno@clisp.org>
78101
78102         * m4/setenv.m4: New file, from gettext-0.11.5.
78103
78104 2002-12-11  Bruno Haible  <bruno@clisp.org>
78105
78106         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
78107         not unsetenv().
78108         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
78109         modifications:
78110
78111         2002-12-11  Bruno Haible  <bruno@clisp.org>
78112
78113                 * setenv.c (alloca): Fall back to malloc.
78114                 (freea): New macro.
78115                 (setenv): Use freea() to free memory allocated with alloca().
78116
78117         2002-11-13  Bruno Haible  <bruno@clisp.org>
78118
78119                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
78120                 function declarations.
78121                 * unsetenv.c (unsetenv): Likewise.
78122
78123         2002-03-04  Bruno Haible  <bruno@clisp.org>
78124
78125                 Portability to AIX 4.3.3.
78126                 * unsetenv.c: New file, extracted from setenv.c.
78127                 * setenv.c: Move the unsetenv() function to unsetenv.c.
78128
78129         2001-12-20  Bruno Haible  <bruno@clisp.org>
78130
78131                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
78132                 use malloc instead. For SunOS 4.
78133
78134         2001-12-11  Bruno Haible  <bruno@clisp.org>
78135
78136                 * setenv.c: Declare alloca.
78137                 (compar_fn_t): New typedef.
78138                 (KNOWN_VALUE, STORE_VALUE): Use it.
78139
78140         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
78141         setenv.h.
78142
78143 2002-12-10  Paul Eggert  <eggert@twinsun.com>
78144
78145         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
78146         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
78147         Choose values that are less likely to collide with system fnmatch
78148         options.
78149         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
78150         defined (e.g., a pure POSIX system).
78151         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
78152         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
78153
78154 2002-12-06  Paul Eggert  <eggert@twinsun.com>
78155
78156         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
78157         a pain in practice to deal with generated m4 files.  This change
78158         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
78159
78160         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
78161         and jm-glibc-io.m4, as they are no longer a special case.
78162         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
78163         kludge and the auto-generation stuff.  Check only whether the
78164         functions are declared, not whether they exist, since older hosts
78165         that don't declare the functions can't use the optimization anyway.
78166
78167 2002-12-06  Jim Meyering  <jim@meyering.net>
78168
78169         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
78170
78171         Merge in changes from libc's misc/error.c, in preparation
78172         for the merge of gnulib's changes back into libc.
78173
78174         * lib/error.c (_): Define only if not already defined.
78175         Move definition to follow all #include directives.
78176         Include unlocked-io.h only if !_LIBC.
78177         [_LIBC]: Include <libio/libioP.h>.
78178         [USE_IN_LIBIO]: Include <libio/iolibio.h>
78179         (fflush): Tweak definition to use INTUSE.
78180         (putc): Define.
78181
78182 2002-12-05  Paul Eggert  <eggert@twinsun.com>
78183
78184         * lib/alloca.c [defined emacs]: Include "lisp.h".
78185         (xalloc_die) [defined emacs]: New macro.
78186         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
78187         [! defined emacs]: Include <xalloc.h>.
78188         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
78189         (pointer): Typedef to POINTER_TYPE *.
78190         (malloc): Remove decl; we now always use xmalloc.
78191         (alloca): Use old-style definition, since Emacs needs this.
78192         Check for arithmetic overflow when computing combined size.
78193
78194 2002-12-04  Paul Eggert  <eggert@twinsun.com>
78195
78196         Do not generate unlocked-io.h automatically, since it's easier to
78197         maintain it by hand.
78198
78199         * lib/unlocked-io.h: New file, from GNU diffutils,
78200         but with proper copyright notice and attribution.
78201         * lib/gen-uio: Remove.
78202         * lib/Makefile.am: Add copyright notice.
78203         (libfetish_a_SOURCES): Add unlocked-io.h.
78204         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
78205         (DISTCLEANFILES, io_functions): Remove macros.
78206         (EXTRA_DIST): Remove gen_uio.
78207         (unlocked-io.h): Remove rule.
78208
78209 2002-12-04  Jim Meyering  <jim@meyering.net>
78210
78211         Reflect the fact that stat.c and lstat.c are no longer generated.
78212         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
78213         (DISTCLEANFILES): Likewise.
78214         (EXTRA_DIST): Likewise.
78215         (all_local): Don't depend on stat.c or lstat.c.
78216         (stat.c, lstat.c): Remove rules.
78217         (EXTRA_DIST): Remove xstat.in.
78218
78219         * lib/xstat.in: Remove file.  Contents moved into stat.c.
78220         * lib/stat.c: New file.  Contents mostly from xstat.in.
78221         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
78222         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
78223
78224         * lib/safe-read.c: Rework so that it may serve to define safe_write,
78225         too.
78226         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
78227
78228 2002-12-03  Jim Meyering  <jim@meyering.net>
78229
78230         * lib/safe-read.c, safe-write.c: Change variable names and comments,
78231         but not semantics, to minimize the differences between these two files.
78232         (safe_read): Change comment to mention SAFE_READ_ERROR.
78233
78234         * lib/safe-read.c (IS_EINTR): Define.
78235         (safe_read): Use IS_EINTR in place of in-function cpp directives.
78236
78237 2002-12-02  Jim Meyering  <jim@meyering.net>
78238
78239         * lib/safe-read.c (EINTR): Define.
78240         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78241         (INT_MAX): Provide fallback.
78242         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
78243
78244         * lib/safe-read.h (SAFE_READ_ERROR): Define.
78245
78246 2002-12-02  Bruno Haible  <bruno@clisp.org>
78247
78248         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
78249         Define, taken from safe-read.c.
78250         (INT_MAX): Provide fallback.
78251         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
78252         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
78253
78254         * lib/safe-read.c (EINTR): Remove definition.
78255         (safe_read): Don't use EINTR if it is absent.
78256
78257 2002-12-01  Jim Meyering  <jim@meyering.net>
78258
78259         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
78260         zero.
78261         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
78262
78263 2002-11-27  Paul Eggert  <eggert@twinsun.com>
78264
78265         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
78266         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
78267         with `if (! (value < limit)) abort ();', for readability.
78268
78269 2002-11-26  Karl Berry  <karl@gnu.org>
78270
78271         * lib/strdup.c: copy from libc again, with jim's ok.
78272         * lib/.cppi-disable: re-add strdup.c
78273
78274 2002-11-25  Karl Berry  <karl@gnu.org>
78275
78276         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
78277         instead of "strtol.c".
78278
78279 2002-11-25  Karl Berry  <karl@gnu.org>
78280
78281         * config/install-sh: update from automake for variable quoting, $0 in
78282         error msgs, etc.
78283
78284         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
78285         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
78286         entry.
78287
78288 2002-11-25  Jim Meyering  <jim@meyering.net>
78289
78290         * lib/mktime.c: Sync from libc, now that it has the latest fix.
78291
78292 2002-11-24  Karl Berry  <karl@gnu.org>
78293
78294         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
78295         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
78296
78297 2002-11-24  Jim Meyering  <jim@meyering.net>
78298
78299         Update from coreutils:
78300
78301         * lib/mktime.c: Merge in changes from libc.
78302
78303         Avoid a link-time failure on some Linux systems.
78304         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
78305         (otherwise).
78306         (__mon_yday): Declare with the STATIC attribute.
78307         (__mktime_internal): Likewise.
78308         Based on a report from Greg Schafer.
78309
78310 2002-11-23  Jim Meyering  <jim@meyering.net>
78311
78312         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
78313         Use `unsigned', not `int', as type of index.
78314
78315         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
78316
78317         * lib/fsusage.c: Remove unneeded parentheses around operands of
78318         `defined'.
78319
78320 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78321
78322         * lib/quotearg.h: Allow multiple inclusion by surrounding with
78323         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
78324         so that we can be included first.
78325         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
78326         * lib/quotearg.c: Include quotearg.h immediately after config.h.
78327         No need to include stddef.h or sys/types.h any more.
78328         Surround local include files with "", not "<>".
78329         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
78330         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
78331         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
78332         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
78333         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
78334         (ISPRINT): Remove; no longer needed now that we assume C89.
78335
78336         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
78337         Preserve errno.
78338
78339         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
78340         quotearg_char): Use SIZE_MAX rather than
78341         (size_t) -1 when we are talking about "infinity".
78342
78343         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
78344
78345 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78346
78347         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
78348         hint that one should use `if (! x) abort ();' rather than `assert
78349         (x);', and anyway it's one less thing to worry about configuring.
78350         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
78351         hash_rehash, hash_insert): Use abort rather than assert.
78352
78353 2002-11-22  Bruno Haible  <bruno@clisp.org>
78354
78355         * lib/safe-read.h: Assume C89. Add comments.
78356         (safe_read): Change return type to size_t.
78357         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
78358         byte counts > SSIZE_MAX correctly.
78359         * lib/safe-write.h: New file.
78360         * lib/safe-write.c: New file.
78361         * lib/full-read.h: New file.
78362         * lib/full-read.c: New file.
78363         * lib/full-write.h: Assume C89. Add comments.
78364         * lib/full-write.c: Include safe-write.h.
78365         (full_write): Rewritten to use safe_write.
78366         Suggested by Jim Meyering and Paul Eggert.
78367
78368 2002-11-21  Jim Meyering  <jim@meyering.net>
78369
78370         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
78371
78372         Merge in changes from the coreutils.
78373
78374         2002-09-25  Paul Eggert  <eggert@twinsun.com>
78375         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
78376         <stdint.h>.
78377         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
78378         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
78379         int.  Work more efficiently if X is the same width as uintmax_t.
78380         Do not compare X to -1, to avoid bogus compiler warning.
78381         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
78382         Don't assume that f_frsize and f_bsize are the same type.
78383
78384         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
78385         warning on FreeBSD.
78386
78387         * lib/makepath.c (make_path): Restore umask *before* creating the final
78388         component.
78389         (make_path): Minor reformatting.
78390
78391         * lib/xmalloc.c: Adjust to work with new autoconf macros,
78392         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
78393         HAVE_MALLOC/HAVE_REALLOC.
78394
78395         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
78396         dummy ones.  At least on GNU/Linux systems, `auto' means something
78397         else.
78398         From Michael Stone.
78399
78400 2002-11-21  Bruno Haible  <bruno@clisp.org>
78401
78402         Remove case insensitive option matching.
78403         * lib/argmatch.h (argcasematch): Remove declaration.
78404         (ARGCASEMATCH): Remove macro.
78405         (__xargmatch_internal): Remove case_sensitive argument.
78406         (XARGMATCH): Update.
78407         (XARGCASEMATCH): Remove macro.
78408         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78409         case_sensitive argument.
78410         (argcasematch): Remove function.
78411         (__xargmatch_internal): Remove case_sensitive argument.
78412         (main): Use XARGMATCH instead of XARGCASEMATCH.
78413
78414         * lib/xmalloc.c: Change compile-time error message. Add comment about
78415         required autoconf version.
78416
78417 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78418
78419         Merge argmatch cleanups from Bison.  Assume C89.
78420
78421         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78422         Include stdlib.h, for EXIT_FAILURE.
78423         Always include <string.h>, since we assume C89.
78424         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78425         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78426         Include <stddef.h> instead, since it's all we need for size_t.
78427         (PARAMS): Remove.  All uses removed.
78428         (ARRAY_CARDINALITY): Do not bother to #undef.
78429         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78430         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78431         Remove unnecessary parentheses.
78432         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78433         Insert necessary parentheses.
78434         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78435         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78436
78437 2002-11-19  Bruno Haible  <bruno@clisp.org>
78438
78439         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78440         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78441
78442         * lib/mbswidth.h (PARAMS): Remove macro.
78443         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78444         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78445
78446         * lib/gcd.h (PARAMS): Remove macro.
78447         (gcd): Use ANSI C function declarations.
78448         * lib/gcd.c (gcd): Likewise.
78449
78450 2002-11-15  Bruno Haible  <bruno@clisp.org>
78451
78452         * lib/strcspn.c: Include <stddef.h>.
78453         (strcspn): Use ANSI C function declaration. Change return type to
78454         size_t. Use NULL.
78455         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78456         (strpbrk): Use NULL.
78457         * lib/strpbrk.h (PARAMS): Remove macro.
78458         (strpbrk): Use ANSI C function declaration.
78459         * lib/strstr.c: Don't include <sys/types.h>.
78460         * lib/strstr.h (PARAMS): Remove macro.
78461         (strstr): Use ANSI C function declarations.
78462
78463 2002-11-14  Karl Berry  <karl@gnu.org>
78464
78465         * config/mkinstalldirs: `do' on separate line, instead of
78466         `for var; do'.
78467
78468 2002-11-06  Bruno Haible  <bruno@clisp.org>
78469
78470         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78471         * lib/gcd.c (gcd): Likewise.
78472
78473 2002-11-05  Bruno Haible  <bruno@clisp.org>
78474
78475         * lib/gcd.h: New file, from gettext-0.11.5.
78476         * lib/gcd.c: New file, from gettext-0.11.5.
78477
78478 2002-11-05  Bruno Haible  <bruno@clisp.org>
78479
78480         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78481         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78482         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78483         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78484
78485         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78486         <libintl.h>.
78487         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78488         <libintl.h>.
78489
78490         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78491         * lib/human.c: Include gettext.h instead of <libintl.h>.
78492         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78493         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78494         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78495         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78496         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78497         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78498         (textdomain): Remove definition.
78499         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78500
78501         * lib/long-options.c: Remove include of <libintl.h> and definition of
78502         _.
78503         * lib/same.c: Remove include of <libintl.h> and definition of _.
78504
78505 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78506
78507         * lib/config.charset: A few additions for Solaris.
78508
78509 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78510
78511         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78512         * lib/localcharset.c (locale_charset): Declare as extern "C".
78513
78514 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78515
78516         * lib/config.charset: msdos in uk_UA uses CP1125.
78517
78518 2002-11-04  Bruno Haible  <bruno@clisp.org>
78519
78520         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78521         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78522         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78523         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78524         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78525
78526 2002-11-04  Bruno Haible  <bruno@clisp.org>
78527
78528         * lib/localcharset.c (locale_charset): Don't return an empty string.
78529
78530 2002-11-04  Bruno Haible  <bruno@clisp.org>
78531
78532         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78533         aliases.
78534
78535 2002-11-04  Bruno Haible  <bruno@clisp.org>
78536
78537         * lib/config.charset: Update for newest glibc. Add canonical names
78538         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78539
78540 2002-11-04  Bruno Haible  <bruno@clisp.org>
78541
78542         * lib/config.charset: Add support for NetBSD.
78543
78544 2002-11-04  Bruno Haible  <bruno@clisp.org>
78545
78546         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78547
78548 2002-11-01  Bruno Haible  <bruno@clisp.org>
78549
78550         * configure.in: Add AC_CONFIG_AUX_DIR call.
78551         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78552         test/Makefile.
78553         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78554
78555 2002-09-28  Karl Berry  <karl@gnu.org>
78556
78557         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78558         installed automake until the next release, since changes have been
78559         made.
78560
78561 2002-09-25  Karl Berry  <karl@gnu.org>
78562
78563         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78564         * lib/getopt*: copy from libc/posix.
78565         * lib/gettext.h: copy from gettext.
78566         * lib/.cppi-disable: add strdup.c, gettext.h.
78567
78568 2002-09-25  Karl Berry  <karl@gnu.org>
78569
78570         * config/srclist.txt: enable gettext.h check.
78571         * config/config.{guess,sub}: update from prep.
78572         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78573                 from automake 1.6.3.
78574         See srclist*.
78575
78576 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78577
78578         * regex.c (PATFETCH): Remove the translating fetch.
78579         (PATFETCH_RAW): Rename to PATFETCH.
78580         (set_image_of_range): New fun.
78581         (SET_RANGE_TABLE_WORK_AREA): Use it.
78582         (regex_compile): Don't translate the pattern chars so eagerly.
78583         Only do it when inserting an `exactn' bytecode or when handling
78584         a char-range.
78585         (mutually_exclusive_p): Avoid empty statement.
78586
78587 2002-07-06  Jim Meyering  <meyering@lucent.com>
78588
78589         * m4/README: Don't mention Makefile.am.in.
78590         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78591
78592 2002-07-01  Jim Meyering  <meyering@lucent.com>
78593
78594         * lib/c-stack.c: Include sys/time.h.
78595         From Volker Borchert.
78596
78597 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78598
78599         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78600
78601 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78602
78603         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78604         New macro.  Use it uniformly instead of
78605         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78606         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78607         reported by Vin Shelton.
78608
78609 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78610
78611         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78612         Do not assume SA_SIGINFO behavior.
78613         Bug reported by Jim Meyering on NetBSD 1.5.2.
78614
78615 2002-06-22  Jim Meyering  <meyering@lucent.com>
78616
78617         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78618         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78619
78620         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78621         now that configure.ac uses AC_GNU_SOURCE.
78622         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78623         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78624
78625         Update to latest tools.  Suggestions from Paul Eggert.
78626         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78627         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78628         * m4/fnmatch.m4: Likewise.
78629         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78630         to AC_HEADER_STDBOOL
78631
78632 2002-06-22  Jim Meyering  <meyering@lucent.com>
78633
78634         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78635         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78636
78637 2002-06-22  Jim Meyering  <meyering@lucent.com>
78638
78639         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78640
78641         * lib/exitfail.c, exitfail.h: Likewise.
78642         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78643
78644         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78645         of fnmatch.h.
78646         (EXTRA_DIST): Add fnmatch_loop.c.
78647         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78648
78649         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78650         * lib/fnmatch.c: Update from diffutils-2.8.2.
78651         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78652         * lib/fnmatch.h: Remove file.
78653
78654 2002-06-21  Jim Meyering  <meyering@lucent.com>
78655
78656         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78657         * m4/mbrtowc.m4: Likewise.
78658
78659         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78660         * m4/mbswidth.m4: Reflect name change:
78661         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78662         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78663
78664         * m4/lib-link.m4: Update from gettext-0.11.2.
78665         * m4/gettext.m4: Likewise.
78666
78667         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78668         From Alfred M. Szmidt.
78669
78670 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78671
78672         * lib/file-type.h: Report an error if neither S_ISREG nor
78673         S_IFREG is defined, instead of using a test specific to glibc
78674         2.2.  This should be safe, since POSIX requires S_ISREG and
78675         Unix Version 7 had S_IFREG.  We don't need to check for
78676         <sys/types.h> since we don't use any symbols that it defines.
78677
78678 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78679
78680         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78681         $@-t, so that each temporary file name is unique and valid in the first
78682         8 characters, for operation under DOS.
78683
78684 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78685
78686         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78687
78688 2002-06-15  Jim Meyering  <meyering@lucent.com>
78689
78690         Work even with DJGPP 2.03, which lacks support for symlinks.
78691         From Richard Dawe.
78692         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78693         is defined.
78694         * lib/lchown.c (S_ISLNK): Likewise.
78695
78696 2002-06-15  Jim Meyering  <meyering@lucent.com>
78697
78698         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78699         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78700         have been included before this file.
78701
78702 2002-06-14  Jim Meyering  <meyering@lucent.com>
78703
78704         * lib/file-type.h: Use the version from diffutils-2.8.2.
78705         * lib/file-type.c: Likewise.
78706
78707 2002-06-07  Jim Meyering  <meyering@lucent.com>
78708
78709         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78710         They're needed at least for NetBSD 1.5.2.
78711         ($statxfs_includes): Include those same headers.
78712         ($statxfs_includes): Include sys/vfs.h if available.
78713         ($statxfs_includes): Likewise for sys/statvfs.h.
78714         Check for the following members in both structs statfs and statvfs:
78715         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78716
78717 2002-06-01  Jim Meyering  <meyering@lucent.com>
78718
78719         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78720         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78721
78722 2002-05-28  Jim Meyering  <meyering@lucent.com>
78723
78724         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78725         Reported by Volker Borchert.
78726
78727 2002-05-27  Jim Meyering  <meyering@lucent.com>
78728
78729         Fix a problem seen only on nonconforming systems whereby ls.c's
78730         use of localtime, and then of gettimeofday would cause trouble:
78731         the localtime call used to initialize rpl_gettimeofday's save
78732         mechanism would clobber ls's current local time information so
78733         that in any long listing the first file would always be listed
78734         with date 1970-01-01.  Analysis by Volker Borchert.
78735
78736         * lib/gettimeofday.c (localtime): Undefine.
78737         (rpl_localtime): New function.
78738
78739 2002-05-27  Jim Meyering  <meyering@lucent.com>
78740
78741         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78742         localtime.
78743
78744         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78745         use the replacement function; it wouldn't resolve at link time.
78746         Reported by Volker Borchert.
78747
78748 2002-05-22  Jim Meyering  <meyering@lucent.com>
78749
78750         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78751         file-type.h.
78752         * lib/file-type.h: New file.
78753         * lib/file-type.c (file_type): New file/function.  Extracted from
78754         diffutils.
78755
78756 2002-04-30  Jim Meyering  <meyering@lucent.com>
78757
78758         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78759
78760 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78761
78762         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78763
78764 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78765
78766         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78767         Do not check for alloca.h (no longer used) or stdbool.h (was never
78768         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78769
78770 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78771
78772         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78773
78774 2002-04-29  Jim Meyering  <meyering@lucent.com>
78775
78776         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78777         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78778         Use AC_FUNC_STRNLEN here instead.
78779
78780         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78781         With autoconf-2.53a, it's part of AC_PROG_CC.
78782
78783 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78784
78785         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78786         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78787
78788 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78789
78790         * lib/sig2str.h, lib/sig2str.c: New files.
78791         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78792
78793 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78794
78795         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78796         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78797         of 127, since 64 is the largest conceivable number for ancient
78798         nonstandard hosts.
78799         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78800
78801 2002-04-28  Jim Meyering  <meyering@lucent.com>
78802
78803         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78804
78805 2002-04-24  Jim Meyering  <meyering@lucent.com>
78806
78807         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78808         (jm_PREREQ): Use it.
78809
78810         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78811         mach/mach.h fcntl.h.
78812         Check for this function: setlocale.
78813
78814 2002-04-24  Jim Meyering  <meyering@lucent.com>
78815
78816         * lib/gettext.h: New file, from Gettext.
78817         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78818         (libfetish_a_SOURCES): Add gettext.h.
78819
78820 2002-04-16  Jim Meyering  <meyering@lucent.com>
78821
78822         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78823         ut_pid, ut_id, ut_exit.
78824
78825 2002-04-16  Jim Meyering  <meyering@lucent.com>
78826
78827         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78828         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78829         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78830
78831 2002-04-12  Jim Meyering  <meyering@lucent.com>
78832
78833         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78834         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78835         existence of the getmntinfo function.  Needed for Darwin 5.3.
78836
78837         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78838         This is necessary at least on Darwin 5.3.
78839
78840         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78841         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78842         strnlen.o in the library, and that makes some versions of ranlib
78843         object.
78844
78845 2002-04-12  Jim Meyering  <meyering@lucent.com>
78846
78847         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78848
78849 2002-04-09  Jim Meyering  <meyering@lucent.com>
78850
78851         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78852         to be more precise.  Rather than saying we're checking whether the
78853         function `works', say what we're testing.
78854         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78855         Reported by Bruno Haible.
78856
78857 2002-03-10  Jim Meyering  <meyering@lucent.com>
78858
78859         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78860         Suggestion from Santiago Vila.
78861
78862 2002-03-08  Jim Meyering  <meyering@lucent.com>
78863
78864         * lib/rename.c: Mention that this wrapper is needed also on
78865         mips-dec-ultrix4.4 systems.
78866
78867 2002-03-02  Jim Meyering  <meyering@lucent.com>
78868
78869         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78870         not HAVE_CLOCK_SETTIME.
78871
78872 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78873
78874         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78875         Check for clock_settime.
78876
78877 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78878
78879         * lib/nanosleep.h: Rename to....
78880         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78881
78882         * lib/gettime.c: New file.
78883         * lib/settime.c: New file.
78884         * lib/stime.c: Remove.
78885
78886         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78887         timespec.h.  Remove nanosleep.h.
78888
78889 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78890
78891         * m4/acl.m4: New file.
78892         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78893         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78894
78895 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78896
78897         * lib/acl.c, lib/acl.h: New files.
78898         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78899
78900 2002-02-24  Jim Meyering  <meyering@lucent.com>
78901
78902         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78903         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78904         cause trouble.  Reported by Nelson Beebe.
78905
78906 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78907
78908         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78909         compilers that don't know that xalloc_die never returns.
78910
78911 2002-02-20  Jim Meyering  <meyering@lucent.com>
78912
78913         * lib/getdate.c: Regenerate using bison-1.33.
78914
78915 2002-02-17  Jim Meyering  <meyering@lucent.com>
78916
78917         * config/config.guess (main): Don't use `head -1'; it's no longer
78918         portable. Use `sed 1q' instead.
78919
78920 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78921
78922         * m4/codeset.m4: Upgrade to gettext-0.11.
78923         * m4/gettext.m4: Upgrade to gettext-0.11.
78924         * m4/glibc21.m4: Upgrade to gettext-0.11.
78925         * m4/iconv.m4: Upgrade to gettext-0.11.
78926         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78927         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78928         * m4/lib-ld.m4: New file, from gettext-0.11.
78929         * m4/lib-link.m4: New file, from gettext-0.11.
78930         * m4/lib-prefix.m4: New file, from gettext-0.11.
78931         * m4/progtest.m4: Upgrade to gettext-0.11.
78932
78933 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78934
78935         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78936         (jm_PREREQ): Use it.
78937
78938 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78939
78940         * lib/posixver.c, lib/posixver.h: New files.
78941         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78942
78943 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78944             Bruno Haible  <bruno@clisp.org>
78945
78946         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78947         (fwrite_success_callback): New declaration.
78948         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78949         print_unicode_char. Call failure callback instead of error.
78950         (fwrite_success_callback): New function.
78951         (exit_failure_callback): New function.
78952         (fallback_failure_callback): New function.
78953         (print_unicode_char): Call unicode_to_mb.
78954
78955 2002-01-26  Jim Meyering  <meyering@lucent.com>
78956
78957         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78958         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78959
78960 2002-01-26  Jim Meyering  <meyering@lucent.com>
78961
78962         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78963
78964 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78965
78966         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78967
78968 2002-01-22  Jim Meyering  <meyering@lucent.com>
78969
78970         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78971         Otherwise, some versions of automake would omit the rule that makes
78972         Makefile from Makefile.in.
78973
78974 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78975
78976         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78977         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78978         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78979         (memcoll): Set errno to zero if there is no error.
78980
78981         * lib/quotearg.c (quotearg_buffer_restyled):
78982         Fix bug with quoting buffers containing NUL when backslashing escapes.
78983         This bug was exposed by the other changes in this patch.
78984         (quotearg_n_options): New arg ARGSIZE.
78985         All callers changed.
78986         (quoting_options_from_style): New function.
78987         (quotearg_n_style): Use it.
78988         (quotearg_n_style_mem): New function.
78989
78990         * lib/quotearg.h (quotearg_n_style_mem): New function.
78991
78992 2002-01-19  Jim Meyering  <meyering@lucent.com>
78993
78994         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78995         Remove useless quotes: DF_PROG="df".
78996         * m4/strnlen.m4: New file.
78997
78998 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78999
79000         * lib/backupfile.c (ISDIGIT): Comment fix.
79001         * lib/getdate.y (ISDIGIT): Likewise.
79002         * lib/posixtm.c (ISDIGIT, year): Likewise.
79003         * lib/strverscmp.c (ISDIGIT): Likewise.
79004         * lib/userspec.c (ISDIGIT): Likewise.
79005
79006 2002-01-16  Jim Meyering  <meyering@lucent.com>
79007
79008         * lib/getdate.y: Add three semicolons, each just before a closing
79009         brace. Bison (as of version 1.31) no longer papers over that mistake.
79010
79011 2002-01-05  Jim Meyering  <meyering@lucent.com>
79012
79013         * lib/version-etc.c (version_etc_copyright): Update copyright year.
79014
79015 2001-12-19  Paul Eggert  <eggert@twinsun.com>
79016
79017         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
79018         not silently exit merely because the output buffer happens to
79019         have nothing pending.
79020
79021 2001-12-18  Paul Eggert  <eggert@twinsun.com>
79022
79023         See the big note in ../ChangeLog.
79024         * lib/human.c (suffixes): Prefer K to k for 1024.
79025         (generate_suffix_backwards): New function.
79026         (human_readable_inexact): Use it.
79027         * lib/xstrtol.c (__xstrtol): If there is no number but there
79028         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
79029         Accept 'K' as well as 'k'.
79030
79031 2001-12-15  Jim Meyering  <meyering@lucent.com>
79032
79033         * lib/regex.h (__restrict_arr): Update from libc.
79034
79035         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
79036         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
79037         (STREQ): Define.
79038
79039 2001-12-14  Jim Meyering  <meyering@lucent.com>
79040
79041         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
79042         Suggestion from Bruno Haible.
79043
79044 2001-12-10  Jim Meyering  <meyering@lucent.com>
79045
79046         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
79047         xrealloc, Instead, include "xalloc.h".
79048         (initbuffer): Don't cast xmalloc return value to char*.
79049         (readline): Reword comment.
79050         Don't cast xrealloc return value to char*
79051         Return NULL, not 0.
79052
79053 2001-12-09  Jim Meyering  <meyering@lucent.com>
79054
79055         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
79056         about `signed and unsigned type in conditional expression'.
79057         * lib/posixtm.c (posix_time_parse): Likewise.
79058
79059         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
79060
79061         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
79062         to avoid a pedantic warning.
79063
79064         * lib/getstr.c: Don't include assert.h.
79065         (getstr): Remove warning-evoking assertions.
79066         Return -1 if offset parameter is out of bounds.
79067         Change the type of a local from int to size_t.
79068
79069         * lib/strftime.c (my_strftime_localtime_r): Include this function
79070         definition in the `#if ! HAVE_TM_GMTOFF' block.
79071
79072         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
79073         Include xalloc.h instead.
79074
79075 2001-12-02  Jim Meyering  <meyering@lucent.com>
79076
79077         * lib/tempname.c: Don't declare getenv, thus reverting the change of
79078         2001-11-18.  It's no longer necessary, now that stdlib.h is always
79079         included.
79080
79081         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
79082         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
79083
79084 2001-11-30  Akim Demaille  <akim@epita.fr>
79085
79086         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
79087         before being defined.
79088
79089 2001-11-27  Paul Eggert  <eggert@twinsun.com>
79090
79091         * lib/quotearg.h (quotearg_n, quotearg_n_style):
79092         First arg is int, not unsigned.
79093         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
79094         (SIZE_MAX, UINT_MAX): New macros.
79095         (quotearg_n_options): Abort if N is negative.
79096         Avoid overflow check on hosts where size_t is 64 bits and int
79097         is 32 bits, as overflow is impossible there.
79098         Fix off-by-one typo that caused unnecessary reallocation.
79099
79100 2001-11-27  Jim Meyering  <meyering@lucent.com>
79101
79102         * lib/tempname.c: Merge with version from libc.
79103         * lib/regex.c: Likewise.
79104
79105         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
79106         systems for which STDC_HEADERS is 0, it was not included, resulting in
79107         a warning about an integer-to-pointer conversion problem with getenv.
79108         Reported by Volker Borchert.
79109
79110 2001-11-26  Jim Meyering  <meyering@lucent.com>
79111
79112         * lib/gtod.h: Remove file.
79113         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
79114         * lib/gettimeofday.c: Don't include gtod.h.
79115         (GTOD_init): Remove function.
79116         (rpl_gettimeofday): Do its job here instead, rather than aborting.
79117         Suggestion from Volker Borchert.
79118
79119 2001-11-23  Jim Meyering  <meyering@lucent.com>
79120
79121         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
79122         it.
79123         * lib/hash.c (struct hash_table): Define it here instead.
79124
79125 2001-11-22  Jim Meyering  <meyering@lucent.com>
79126
79127         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
79128
79129 2001-11-20  Jim Meyering  <meyering@lucent.com>
79130
79131         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
79132         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
79133
79134 2001-11-19  Jim Meyering  <meyering@lucent.com>
79135
79136         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
79137         directory.  Use "conftestXXXXXX" as the template.
79138         Suggestion from Paul Eggert.
79139
79140         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
79141         immediately, so the test doesn't mistakenly hit the max-open-files
79142         limit.
79143
79144 2001-11-18  Paul Eggert  <eggert@twinsun.com>
79145
79146         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
79147         (TEMPORARIES): New macro.
79148         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
79149         removes an artificial limitation (e.g. HP-UX 10.20, where
79150         TMP_MAX is 17576).
79151
79152 2001-11-18  Jim Meyering  <meyering@lucent.com>
79153
79154         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
79155
79156 2001-11-18  Jim Meyering  <meyering@lucent.com>
79157
79158         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
79159         on SunOS 4.
79160
79161         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
79162         files will be created before anything else.
79163
79164 2001-11-17  Paul Eggert  <eggert@twinsun.com>
79165
79166         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
79167         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
79168
79169 2001-11-17  Jim Meyering  <meyering@lucent.com>
79170
79171         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
79172         Prompted by a report from Bob Proulx.
79173
79174         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
79175         Instead, require UTILS_FUNC_MKSTEMP.
79176
79177 2001-11-17  Jim Meyering  <meyering@lucent.com>
79178
79179         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
79180         Now, that's done as part of AC_FUNC_STRTOD.
79181
79182 2001-11-17  Jim Meyering  <meyering@lucent.com>
79183
79184         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
79185         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
79186         rather than group writable.  Patch by Juan F. Codagnone.
79187
79188         * lib/readtokens.c: Remove explicit declarations of xmalloc and
79189         xrealloc, Instead, include "xalloc.h".
79190
79191         * lib/mountlist.c: Include unlocked-io.h after all system headers.
79192         Remove explicit declarations of xmalloc, xrealloc,
79193         and xstrdup.  Instead, include "xalloc.h".
79194
79195         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
79196         unlocked-io.h.
79197         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
79198         Likewise.
79199         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
79200
79201         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
79202         Reported by Padraig Brady.
79203
79204         * lib/mkstemp.c: #undef mkstemp.
79205         Include config.h.
79206         (rpl_mkstemp): Rename from mkstemp.
79207         Protoize.
79208
79209 2001-11-16  Jim Meyering  <meyering@lucent.com>
79210
79211         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
79212         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
79213         determine the amount of total physical memory, use pstat_getstatic.
79214         HPUX-11 doesn't define _SC_PHYS_PAGES.
79215         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
79216         If sysconf couldn't be used to determine the amount of available
79217         physical memory, use both pstat_getstatic and pstat_getdynamic.
79218         Based on a patch from Bob Proulx.
79219
79220 2001-11-10  Jim Meyering  <meyering@lucent.com>
79221
79222         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
79223         (jm_PREREQ): Use it.
79224
79225 2001-11-09  Jim Meyering  <meyering@lucent.com>
79226
79227         * m4/jm-macros.m4: Require autoconf-2.52f.
79228         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
79229         Use these AC_-prefixed names, not the AM_-prefixed ones.
79230
79231         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
79232
79233 2001-11-05  Jim Meyering  <meyering@lucent.com>
79234
79235         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
79236
79237 2001-11-04  Jim Meyering  <meyering@lucent.com>
79238
79239         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
79240         $DEFS.
79241
79242 2001-11-03  Jim Meyering  <meyering@lucent.com>
79243
79244         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
79245         of AC_DEFUN.
79246
79247         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
79248         know the name of the variable in the macro definition.
79249
79250 2001-11-03  Jim Meyering  <meyering@lucent.com>
79251
79252         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
79253         in argmatch_to_argument call.
79254
79255         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
79256         argument.
79257
79258         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
79259         e.g., a fault due to an attempt to free a NULL pointer.
79260
79261 2001-11-01  Jim Meyering  <meyering@lucent.com>
79262
79263         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
79264         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
79265
79266 2001-11-01  Jim Meyering  <meyering@lucent.com>
79267
79268         * lib/dirfd.c, lib/dirfd.h: New files.
79269         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
79270
79271         * lib/hash.c (hash_print) [TESTING]: Clean up.
79272
79273 2001-10-22  Paul Eggert  <eggert@twinsun.com>
79274
79275         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
79276         to avoid a warning if -Wall.
79277
79278 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
79279
79280         * README: New file
79281         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
79282         (per RMS's instructions, this is now the canonical source)
79283         * lgpl/, gpl/: New directories.
79284
79285 2001-10-21  Paul Eggert  <eggert@twinsun.com>
79286
79287         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
79288
79289 2001-10-21  Jim Meyering  <meyering@lucent.com>
79290
79291         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
79292         this code would end up calling gettext even in packages built
79293         with --disable-nls.
79294         * lib/getopt.c (_): Likewise.
79295         * lib/regex.c (_): Likewise.
79296
79297 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79298
79299         * m4/error.m4 (jm_PREREQ_ERROR):
79300         Do not invoke AC_CHECK_FUNCS with strerror_r, as
79301         AC_FUNC_STRERROR_R does that.
79302         Check for strerror declaration.
79303
79304         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
79305         are supposed to have them these days.
79306         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
79307         Merge changes from latest Autoconf CVS.
79308         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
79309         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
79310         POSIX decided to standardize on the int flavor of strerror_r.
79311
79312 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79313
79314         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
79315         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
79316         Use strerror_r that is only a macro, even if it is not a function.
79317         (strerror): Check for HAVE_DECL_STRERROR before declaring.
79318         (private_strerror): Use prototypes, not old-style function definition.
79319         (print_errno_message): New function.
79320         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
79321         char*-flavored one.
79322         (error_tail, error, error_at_line): Use it.
79323
79324 2001-10-11  Jim Meyering  <meyering@lucent.com>
79325
79326         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
79327         and quote_n (1, ... to avoid clobbering a buffer.
79328
79329 2001-10-05  Jim Meyering  <meyering@lucent.com>
79330
79331         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
79332         hash-pjw.h.
79333         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
79334         * lib/hash-pjw.h: New file.
79335
79336 2001-09-30  Jim Meyering  <meyering@lucent.com>
79337
79338         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
79339         `struct fsstat' has the `f_fstypename' member.
79340         Use that to define FS_TYPE, which is now used to make
79341         the getfsstat link test tighter.
79342
79343 2001-09-30  Jim Meyering  <meyering@lucent.com>
79344
79345         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
79346         Include <sys/ucred.h>, for Apple Darwin.
79347         Include sys/mount.h and sys/fs_types.h only if available.
79348         (FS_TYPE): Define.
79349         (read_filesystem_list): Use FS_TYPE.
79350
79351 2001-09-29  Paul Eggert  <eggert@twinsun.com>
79352
79353         * lib/exclude.c (excluded_filename): 0 -> false, since it's
79354         a boolean context.
79355
79356 2001-09-29  Jim Meyering  <meyering@lucent.com>
79357
79358         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79359         [one-argument getmntent function]): Include stdio.h before mntent.h.
79360         SunOS 4.1.x needs it for the declaration of `FILE'.
79361         Patch by Volker Borchert.
79362
79363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79364         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
79365         sys/fs_types.h, and make the link-test for getfsstat guard #include
79366         directives with appropriate #if HAVE_*_H tests so that we can
79367         detect getfsstat on Apple Darwin1.3.7 systems.
79368         Reported by Nelson Beebe.
79369         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
79370
79371 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79372
79373         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79374         #defines strtoimax.  Also treat the other strto* functions
79375         like strtoimax.
79376
79377         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79378         Check for strtoul and strtoumax,
79379         as those declarations are made even in the signed case.
79380         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
79381         Likewise, for strtol and strtoimax.
79382
79383 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79384
79385         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79386         #defines strtoimax.  Also treat the other strto* functions
79387         like strtoimax.
79388
79389         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
79390         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
79391         (strtoimax, strtoumax): Do not declare if already defined as a macro.
79392
79393 2001-09-26  Jim Meyering  <meyering@lucent.com>
79394
79395         Most macros in unlocked-io.h had the wrong number of arguments.
79396         * lib/gen-uio: New script.
79397         (USE_UNLOCKED_IO): Define to 1 if not already defined.
79398         * lib/unlocked-io.hin: Remove file.
79399         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
79400         rather than trying to embed it here.
79401         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79402         Reported by Padraig Brady.
79403
79404 2001-09-25  Volker Borchert  <bt@teknon.de>
79405
79406         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79407         `result'.
79408
79409 2001-09-24  Jim Meyering  <meyering@lucent.com>
79410
79411         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79412
79413 2001-09-23  Jim Meyering  <meyering@lucent.com>
79414
79415         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79416         instead of the mere test for existence of mntent.h.  The latter
79417         would get a false-positive on AIX 3.4 systems.
79418         In the outer getmntent if-block, don't die if neither of the getmntent
79419         tests succeeds.  Instead, just fall through and continue with the
79420         remaining tests.
79421
79422 2001-09-23  Jim Meyering  <meyering@lucent.com>
79423
79424         * lib/mountlist.c: Remove useless parentheses in #if directives.
79425         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79426         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79427
79428 2001-09-22  Jim Meyering  <meyering@lucent.com>
79429
79430         * m4/gettext.m4: New file.  From gettext.
79431         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79432         * m4/progtest.m4: Likewise
79433         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79434         * m4/glibc21.m4: Likewise.
79435
79436         * m4/libintl.m4: Remove.  No longer used.
79437
79438 2001-09-22  Jim Meyering  <meyering@lucent.com>
79439
79440         * lib/localcharset.c: Update from latest gettext.
79441         * lib/config.charset: Likewise.
79442
79443 2001-09-20  Jim Meyering  <meyering@lucent.com>
79444
79445         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79446         strtoimax.
79447         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79448         strtoumax.
79449
79450 2001-09-20  Jim Meyering  <meyering@lucent.com>
79451
79452         * lib/xstrtol.c (strtoimax): Guard declaration with
79453         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79454         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79455         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79456         (strtoumax): Likewise, for completeness (it wasn't necessary).
79457
79458 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79459
79460         * lib/strtoimax.c (HAVE_LONG_LONG):
79461         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79462         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79463         to work around bug in IBM C compiler.
79464
79465 2001-09-17  Jim Meyering  <meyering@lucent.com>
79466
79467         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79468         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79469         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79470         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79471         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79472         whenever the right hand side need not be expanded by the shell.
79473
79474 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79475
79476         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79477         library.  It's not correct, as some older glibcs are buggy.
79478         fnmatch wasn't fixed until glibc 2.2.
79479
79480         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79481         special shell magic here.
79482
79483 2001-09-16  Jim Meyering  <meyering@lucent.com>
79484
79485         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79486         * m4/jm-macros.m4: Require it.
79487
79488 2001-09-16  Jim Meyering  <meyering@lucent.com>
79489
79490         * lib/mkdir.c: New file.
79491
79492 2001-09-15  Jim Meyering  <meyering@lucent.com>
79493
79494         * m4/jm-macros.m4: Check for help2man.
79495
79496 2001-09-11  Jim Meyering  <meyering@lucent.com>
79497
79498         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79499         The body, by Paul Eggert, was moved here from configure.in.
79500         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79501
79502 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79503
79504         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79505         (jm_PREREQ): Use it.
79506
79507 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79508
79509         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79510         Use ssize_t, not int, to store result of readlink.
79511         Check for ssize_t overflow as well as size_t overflow,
79512         as POSIX says the result of readlink is implementation-defined
79513         when ssize_t overflows.
79514         Remove unnecessary cast to char*.
79515         Use free+malloc instead of realloc, as the storage doesn't need
79516         to be preserved and it's clearer and can be more efficient that way.
79517         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79518         * lib/xreadlink.h (xreadlink): Update prototype.
79519
79520 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79521
79522         * lib/xgetcwd.c: Revert some of the previous change; intead,
79523         fix the HAVE_GETCWD_NULL code to behave more like the
79524         !HAVE_GETCWD_NULL code used to.
79525
79526         Include "xalloc.h".
79527         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79528         invoke xalloc_die.
79529
79530 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79531
79532         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79533         sys/param.h, as pathmax.h includes them.
79534
79535 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79536
79537         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79538         (jm_PREREQ_XGETCWD): New macro.
79539
79540         * m4/getcwd.m4: New file.
79541
79542 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79543
79544         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79545         like the HAVE_GETCWD_NULL code.
79546         Include pathmax.h if not HAVE_GETCWD.
79547         Do not include xalloc.h.
79548         (INITIAL_BUFFER_SIZE): New symbol.
79549         Do not use xmalloc / xrealloc, since the caller is responsible for
79550         handling errors.  Preserve errno around `free' during failure.
79551         Do not overrun buffer when using getwd.
79552
79553 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79554
79555         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79556         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79557         getcwd (NULL, 0).
79558
79559 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79560
79561         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79562         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79563         spotted by Jim Meyering.
79564
79565 2001-09-03  Jim Meyering  <meyering@lucent.com>
79566
79567         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79568         failure.
79569
79570 2001-09-02  Jim Meyering  <meyering@lucent.com>
79571
79572         * lib/error.c: Update from GNU libc.
79573
79574 2001-09-01  Jim Meyering  <meyering@lucent.com>
79575
79576         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79577         Used by df.
79578
79579 2001-09-01  Jim Meyering  <meyering@lucent.com>
79580
79581         * lib/xreadlink.c: New file.
79582         * lib/xreadlink.h: New file.
79583         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79584         xreadlink.h.
79585
79586         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79587         doesn't conflict with sparc Solaris 7's definition in
79588         /usr/include/sys/int_types.h.
79589
79590         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79591         files.
79592         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79593         and strncasecmp as r-values.  Unixware didn't have declarations.
79594
79595 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79596
79597         * lib/xstrtol.h: Add copyright notice.
79598         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79599         LONGINT_INVALID_SUFFIX_CHAR.
79600
79601 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79602
79603         * lib/xstrtol.c (strtoimax): New decl.
79604
79605 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79606
79607         * lib/xgetcwd.c: Don't include pathmax.h.
79608         Include stdlib.h and unistd.h if available.
79609         Include xalloc.h.
79610         (xmalloc, xstrdup, free): Remove decls.
79611         (xgetcwd): Don't assume sizes fit in unsigned.
79612         Check for overflow when computing sizes.
79613         Simplify reallocation code.
79614
79615 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79616
79617         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79618         a directory's st_size can have an arbitrary value, so the old
79619         usage could waste an arbitrary amount of memory.  All uses
79620         changed.
79621         * lib/savedir.h: Update prototype.
79622
79623 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79624
79625         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79626
79627         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79628         old strtoimax.c.
79629
79630         Also, make the following further changes to make this file's
79631         configuration more similar to that of strtol.c:
79632         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79633         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79634         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79635         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79636         changed to signed values.
79637
79638         And make the following changes as well:
79639         Fix copyright notice, as 1999 was missing.
79640         (verify): New macro.
79641         (strtoimax): Check sizes at compile-time, not run-time.
79642         Prefer strtol to strtoll if both work.
79643         (main): Remove; it was not that useful and was a pain to maintain.
79644
79645         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79646
79647 2001-08-31  Jim Meyering  <meyering@lucent.com>
79648
79649         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79650         Use an initial, malloc'd, buffer of length 128 rather than
79651         a statically allocated one of length 1024.
79652
79653 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79654
79655         Simplify code, partly by assuming autoconf 2.52 semantics.
79656
79657         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79658
79659         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79660         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79661         All uses removed.
79662         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79663         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79664         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79665         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79666         jm_AC_HEADER_INTTYPES_H.
79667         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79668
79669         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79670
79671         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79672         Quote first arg of AC_DEFUN.
79673         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79674         since they are needed to parse the include file even if we need
79675         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79676         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79677         but with opposite signedness.
79678
79679 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79680
79681         Merge 'exclude' changes from tar 1.13.22.
79682         This fixes one or two unlikely storage allocation overflow bugs,
79683         but doesn't change user-visible behavior otherwise.
79684
79685 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79686
79687         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79688         (jm_PREREQ_EXCLUDE): New macro.
79689
79690 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79691
79692         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79693         tm to be declared.
79694
79695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79696
79697         * lib/hash.c: Remove '2001' from copyright notice.
79698
79699 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79700
79701         * lib/full-write.h: New file.
79702         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79703         * lib/full-write.c: Correct credits, as cccp.c no longer
79704         exists and anyway it was so heavily changed from the old cccp
79705         code as to be unrecognizable.  Include full-write.h.
79706         (full_write): Return size_t, with short writes meaning failure.
79707         All callers changed.  This fixes a bug with large buffers
79708         on 64-bit hosts.
79709         * lib/utime.c: Include full-write.h.
79710
79711 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79712
79713         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79714         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79715         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79716         Include if available.
79717         (<xalloc.h>): Include
79718         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79719         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79720         collide with FNM macros.
79721         (struct patopts): New struct.
79722         (struct exclude): Use it, as exclude patterns now come with options.
79723         (new_exclude): Support above changes.
79724         (new_exclude, add_exclude_file):
79725         Initial size must now be a power of two to simplify overflow checking.
79726         (free_exclude, fnmatch_no_wildcards): New function.
79727         (excluded_filename): No longer requires options arg, as the options
79728         are determined by add_exclude.  Now returns bool, not int.
79729         (excluded_filename, add_exclude):
79730         Add support for the fancy new exclusion options.
79731         (add_exclude, add_exclude_file): Now takes int options arg.
79732         Check for arithmetic overflow when computing sizes.
79733         (add_exclude_file): xrealloc might modify errno, so don't
79734         realloc until after errno might be used.
79735
79736         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79737         New macros.
79738         (free_exclude): New decl.
79739         (add_exclude, add_exclude_file): Now takes int options arg.
79740         (excluded_filename): No longer requires options arg, as the options
79741         are determined by add_exclude.  Now returns bool, not int.
79742
79743 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79744
79745         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79746
79747 2001-08-27  Jim Meyering  <meyering@lucent.com>
79748
79749         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79750
79751         * lib/version-etc.c (N_): Remove definition.
79752         Revert most of last change.
79753         Instead, simply don't mark the `Copyright...' string for translation.
79754         Based on advice from Paul Eggert.
79755
79756         * lib/strtoxmax.c: Tweak comment.
79757
79758 2001-08-26  Jim Meyering  <meyering@lucent.com>
79759
79760         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79761
79762         * m4/xstrtoimax.m4: New file.
79763         * m4/xstrtoumax.m4: Add comments explaining why we
79764         AC_REPLACE_FUNCS(strtol).
79765
79766 2001-08-26  Jim Meyering  <meyering@lucent.com>
79767
79768         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79769         of copyright with `%s' so translators don't get an untranslated
79770         message in 2002.
79771         (COPYRIGHT_YEAR): Define.
79772         (version_etc): Use fprintf rather than fputs.
79773         Suggestion from Ulrich Drepper.
79774
79775         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79776
79777         * lib/strtoll.c: New file, from GNU libc.
79778         * lib/xstrtoimax.c: New file.
79779
79780         * lib/xstrtol.h: Add xstrtoimax.
79781         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79782         * lib/strtoimax.c: New file.  Likewise, but first define
79783         STRTOUXMAX_SIGNED.
79784
79785         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79786         ...
79787         * lib/strtoxmax.c: ... then renamed to this.
79788
79789 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79790
79791         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79792         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79793         (jm_AC_TYPE_INTMAX_T): New macro.
79794         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79795
79796         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79797
79798         * m4/longlong.m4: Renamed from ulonglong.m4.
79799         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79800         * m4/uintmax_t.m4: Removed.
79801
79802 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79803
79804         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79805         Port to Solaris 8, where 'sed' requires a space after the 'r'
79806         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79807         Redirect output to $tmp just once.
79808
79809 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79810
79811         * lib/addext.c (<errno.h>): Include.
79812         (errno): Declare if not defined.
79813         (addext): Work correctly when pathconf returns -1 and leaves
79814         errno alone because there is no limit.  Also, work even if
79815         pathconf returns a value greater than SIZE_MAX.
79816
79817 2001-08-12  Jim Meyering  <meyering@lucent.com>
79818
79819         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79820         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79821         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79822         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79823         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79824         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79825         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79826         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79827         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79828         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79829         utime.m4, utimes.m4, xstrtoumax.m4:
79830         Quote the first argument in each use of AC_DEFUN.
79831
79832 2001-08-12  Jim Meyering  <meyering@lucent.com>
79833
79834         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79835         Simply `return getcwd (NULL, 0);'.
79836         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79837         Use 1300 as initial value for length, not PATH_MAX.
79838
79839         * lib/pathmax.h: Clean up cpp syntax.
79840
79841 2001-08-12  Jim Meyering  <meyering@lucent.com>
79842
79843         * lib/gettimeofday.c: New file.
79844         * lib/gtod.h: New file.
79845         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79846
79847 2001-08-05  Jim Meyering  <meyering@lucent.com>
79848
79849         * m4/jm-macros.m4: Require autoconf-2.52.
79850
79851 2001-08-04  Jim Meyering  <meyering@lucent.com>
79852
79853         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79854         stmt, to get in sync with glibc.
79855
79856 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79857
79858         The following changes are from gettext 0.10.39 as maintained by
79859         Bruno Haible.
79860
79861         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79862         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79863         with inverted sense.  All uses changed.
79864
79865         * lib/mbswidth.c: Don't include <limits.h>.
79866         Include <stdlib.h> and <string.h> unconditionally.
79867         (iswcntrl, mbsinit, ISCNTRL): New macros.
79868         (mbsnwidth): Use K&R style function declarations.
79869         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79870         can optimize it when MB_CUR_MAX == 1.
79871         The width of control characters is zero, not 1.
79872
79873 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79874
79875         The following changes are from gettext 0.10.39 as maintained by
79876         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79877
79878         * m4/codeset.m4: Upgrade to serial AM1.
79879         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79880         all uses changed.  Quote first arg of AC_DEFUN.
79881         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79882
79883         * m4/iconv.m4: Upgrade to serial AM2.
79884         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79885         Add --with-libconv-prefix.
79886         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79887         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79888         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79889         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79890         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79891
79892         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79893         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79894         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79895         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79896         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79897         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79898         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79899         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79900         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79901
79902         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79903         string.h any more.
79904
79905         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79906         not the default value.
79907
79908         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79909         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79910         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79911         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79912         Also check for iswcntrl, used for wcwidth fallback.
79913         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79914         to Autoconf 2.13.
79915
79916 2001-08-03  Jim Meyering  <meyering@lucent.com>
79917
79918         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79919         as it was in the original.  Reported by Paul Eggert.
79920
79921 2001-07-16  Jim Meyering  <meyering@lucent.com>
79922
79923         * m4/gettimeofday.m4: New file.
79924         Prompted by a report from Bernhard Baehr.
79925
79926 2001-07-15  Jim Meyering  <meyering@lucent.com>
79927
79928         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79929         stuff. Now it's in ../Makefile.cfg.
79930
79931 2001-07-15  Jim Meyering  <meyering@lucent.com>
79932
79933         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79934         (BUILT_SOURCES): Add unlocked-io.h.
79935         (io_functions): Define.
79936         (unlocked-io.h): New rule.
79937         (DISTCLEANFILES): Add unlocked-io.h.
79938         (all-local): Depend on unlocked-io.h, to ensure it is created.
79939
79940         * lib/unlocked-io.hin: New file
79941
79942         * lib/regex.c: Update from glibc.
79943
79944 2001-07-05  Jim Meyering  <meyering@lucent.com>
79945
79946         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79947         recommendation.
79948         (libfetish_a_SOURCES): Put all .h files here instead.
79949         Remove a thus-exposed (better checks in automake) duplicate and
79950         two unnecessary .h files.
79951
79952 2001-07-04  Jim Meyering  <meyering@lucent.com>
79953
79954         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79955         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79956         distcheck failure.
79957
79958 2001-07-02  Jim Meyering  <meyering@lucent.com>
79959
79960         The following changes were prompted by suggestions from Bruno Haible.
79961
79962         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79963         is now generated.
79964         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79965         definition of EXTRA_DIST.
79966         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79967         ensure that the generated file is created/updated whenever the list
79968         of $(unlocked_functions) is changed.
79969         (jm-glibc-io.m4): New rule.
79970         (unlocked-io.h): New rule -- currently unused.
79971
79972 2001-06-24  Jim Meyering  <meyering@lucent.com>
79973
79974         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79975         unmatched right bracket, rather than kludging it with an extra,
79976         falsely-matching quote in a comment.  Patch by Akim Demaille.
79977
79978 2001-06-11  Jim Meyering  <meyering@lucent.com>
79979
79980         * lib/regex.c: Update from GNU libc.
79981
79982 2001-05-27  Jim Meyering  <meyering@lucent.com>
79983
79984         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79985         Check for ut_type in struct utmp.
79986
79987 2001-05-27  Jim Meyering  <meyering@lucent.com>
79988
79989         * lib/readutmp.h (UT_TYPE): Define.
79990
79991 2001-05-24  Jim Meyering  <meyering@lucent.com>
79992
79993         * lib/argmatch.c: Include "quote.h".
79994         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79995         quote function.  Reported by Göran Uddeborg.
79996
79997 2001-05-22  Jim Meyering  <meyering@lucent.com>
79998
79999         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
80000         now that we use the package-supplied version unconditionally.
80001         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
80002
80003 2001-05-21  Jim Meyering  <meyering@lucent.com>
80004
80005         * m4/regex.m4: Change a couple backticks to single quotes to avoid
80006         shell syntax errors.
80007
80008 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80009
80010         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
80011
80012 2001-05-20  Paul Eggert  <eggert@twinsun.com>
80013
80014         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
80015         Don't bother to check library strftime, since
80016         we'll be using our own my_strftime function anyway.
80017         Define my_strftime instead of strftime.
80018
80019 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
80020
80021         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
80022         which is not yet declared.
80023
80024 2001-05-15  Jim Meyering  <meyering@lucent.com>
80025
80026         * m4/regex.m4: Use proper quoting so brackets appear in the test
80027         program.
80028         Reported by, and with help from, Bruno Haible.
80029
80030 2001-05-13  Jim Meyering  <meyering@lucent.com>
80031
80032         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
80033         undefined.
80034
80035 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80036
80037         dirname code cleanup.  base_name now behaves more compatibly
80038         with POSIX basename when given file names that have trailing
80039         slashes, and similarly for dir_name.  Add new primitives
80040         base_len and dir_len.  Put the directory-name-related decls
80041         into dirname.h.
80042
80043         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
80044         * lib/backupfile.c (base_name): Likewise.
80045         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
80046         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
80047         * lib/makepath.c (strip_trailing_slashes): Likewise.
80048         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
80049         ISSLASH): Likewise.
80050         * lib/rename.c (strip_trailing_slashes): Likewise.
80051         * lib/same.c (base_name): Likewise.
80052         * lib/stripslash.c (ISSLASH): Likewise.
80053
80054         * lib/addext.c: Include <dirname.h> after size_t is defined.
80055         * lib/backupfile.c: Likewise.
80056
80057         * lib/addext.c (addext): Use base_len to trim redundant
80058         trailing slashes instead of doing it ourselves.
80059         But do not trim the last slash if it is not redundant.
80060
80061         * lib/backupfile.c (find_backup_file_name,
80062         max_backup_version): Use base_len instead of rolling it ourselves.
80063         Handle the case of "" and (on DOS) "C:" correctly.
80064
80065         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
80066         needed. Include <string.h>, <dirname.h>.
80067         (base_name): Allow file names ending in slashes, other than names
80068         that are all slashes.  In this case, return the basename followed
80069         by the slashes.  This is more general, and can be used in places
80070         where the original base_name purposely had an assertion failure.
80071         (base_len): New function.
80072
80073         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
80074         Do not include <assert.h>; no longer needed.
80075         Include xalloc.h.
80076         (memrchr): Remove decl.
80077         (dir_name_r): Remove.
80078         (dir_len): Renamed from dirlen.  All callers changed.
80079         Rewrite in terms of base_name, for simplicity and consistency.
80080         (dir_name): Never return NULL.  All callers changed.
80081         Do not include <stdlib.h> in test program; no longer needed.
80082         return 0; is fine for test program.
80083
80084         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
80085         New macros.
80086         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
80087
80088         * lib/path-concat.c (path_concat): Use base_len to compute
80089         base length, not strlen; this means we cannot rely on memcpy
80090         to null-terminate.
80091
80092         * lib/same.c (STREQ): Remove.
80093         (same_name): Handle the case where the basename ends in trailing '/'.
80094
80095         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
80096         a slash was stripped.  Do not strip the last slash after a
80097         file system prefix.
80098
80099 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80100
80101         * lib/Makefile.am (libfetish_a_SOURCES):
80102         Add strftime.c, since we now compile it on all hosts.
80103
80104         * lib/strftime.c (my_strftime):
80105         Define to nstrftime if emacs, but only if my_strftime is not defined.
80106         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
80107         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
80108         Add one more extra argument: a nanoseconds value.
80109         All uses changed.
80110         (ns): New macro.
80111         (my_strftime function): Add %N format.
80112         (emacs_strftimeu): Renamed from emacs_strftime,
80113         with extra ut argument.
80114
80115 2001-05-09  Paul Eggert  <eggert@twinsun.com>
80116
80117         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
80118
80119 2001-04-21  Jim Meyering  <meyering@lucent.com>
80120
80121         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
80122         doesn't interfere.
80123
80124 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80125
80126         * m4/ftruncate.m4: Check for chsize.
80127         Link with ftruncate.o unconditionally if ftruncate is missing.
80128         This was required when cross-compiling to i586-mingw32msvc.
80129
80130 2001-04-08  Jim Meyering  <meyering@lucent.com>
80131
80132         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
80133         recomputed; that's necessary when the offset spans a DST transition.
80134         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
80135
80136 2001-04-02  Jim Meyering  <meyering@lucent.com>
80137
80138         * lib/regex.h, regex.c: Update from GNU libc.
80139
80140 2001-03-24  Jim Meyering  <meyering@lucent.com>
80141
80142         * m4/jm-macros.m4: Require autoconf-2.49d.
80143
80144 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
80145
80146         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
80147
80148 2001-03-19  Paul Eggert  <eggert@twinsun.com>
80149
80150         * lib/version-etc.c (version_etc_copyright): Update to 2001.
80151
80152 2001-03-17  Jim Meyering  <meyering@lucent.com>
80153
80154         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
80155         now that the version in autoconf is equivalent.
80156         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
80157
80158         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
80159         Suggestion from Akim Demaille.
80160
80161         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
80162         (jm_PREREQ_TEMPNAME): New function.
80163
80164 2001-03-16  Paul Eggert  <eggert@twinsun.com>
80165
80166         * lib/tempname.c (uint64_t): Define to uintmax_t if
80167         not defined, and if UINT64_MAX is not defined.
80168         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
80169         Reported by John David Anglin.
80170
80171 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
80172
80173         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
80174         resolve alias if codeset is empty.
80175         * lib/config.charset (BeOS): Use wildcard syntax.
80176
80177 2001-03-13  Jim Meyering  <meyering@lucent.com>
80178
80179         * lib/path-concat.c (path_concat)
80180         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
80181         concatenating e.g., `C:' and `foo'.
80182         From Bruno Haible.
80183
80184 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80185
80186         * lib/localcharset.c (locale_charset): Don't use
80187         setlocale(LC_CTYPE,NULL). Don't return NULL.
80188         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
80189
80190 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80191
80192         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
80193         support for DOS/DJGPP.
80194
80195 2001-03-01  Paul Eggert  <eggert@twinsun.com>
80196
80197         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
80198         lacks mkstemp.  Compile our own tempname.c if we compile our own
80199         mkstemp.c, as mkstemp relies on tempname.
80200
80201 2001-03-01  Jim Meyering  <meyering@lucent.com>
80202
80203         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
80204         AH_VERBATIM really does output its argument verbatim.
80205
80206 2001-02-28  Paul Eggert  <eggert@twinsun.com>
80207
80208         * lib/Makefile.am (libfetish_a_SOURCES):
80209         Add dup-safer.c, fopen-safer.c.
80210         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
80211
80212         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
80213         * lib/unistd-safer.h: New files.
80214
80215 2001-02-25  Paul Eggert  <eggert@twinsun.com>
80216
80217         The mkstemp replacement is taken from glibc 2.2.2, with some
80218         portability fixes for use outside glibc, as follows:
80219
80220         * lib/tempname.c (struct_stat64): New macro.
80221         (direxists, __gen_tempname): Use it.
80222         This avoids a portability problem with Solaris 8.
80223
80224         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
80225         (<stddef.h>, <stdint.h>, <string.h>):
80226         Include only if STDC_HEADERS || _LIBC.
80227         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
80228         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
80229         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
80230         (__set_errno): Define this macro if <errno.h> doesn't.
80231         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
80232         Define these macros if <stdio.h> doesn't.
80233         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
80234         Define these macros if <sys/stat.h>
80235         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
80236         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
80237         __xstat64): Define if not _LIBC.
80238         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
80239         (__gen_tempname): Invoke gettimeofday only if
80240         HAVE_GETTIMEOFDAY || _LIBC;
80241         otherwise, fall back on plain "time".
80242         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
80243
80244         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
80245
80246         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
80247
80248 2001-02-18  Paul Eggert  <eggert@twinsun.com>
80249
80250         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
80251
80252 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80253
80254         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
80255         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
80256         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
80257         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80258
80259 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80260
80261         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
80262         Remove workaround macros for hosts that have mbrtowc but not
80263         mbstate_t, as we now insist on proper declarations for both
80264         before using mbrtowc.
80265
80266 2001-02-17  Jim Meyering  <meyering@lucent.com>
80267
80268         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
80269         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
80270         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
80271         UnixWare 7.1.1.
80272
80273         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
80274         rather than AC_CACHE_VAL.
80275
80276 2001-02-17  Jim Meyering  <meyering@lucent.com>
80277
80278         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
80279         around included file name.
80280
80281         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
80282
80283         * lib/strftime.c: Update from GNU libc (the only changes were to
80284         comments).
80285
80286 2001-02-17  Jim Meyering  <meyering@lucent.com>
80287
80288         * lib/regex.c: Update from libc.
80289
80290 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
80291
80292         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
80293         clash.
80294
80295 2001-02-16  Paul Eggert  <eggert@twinsun.com>
80296
80297         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
80298         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
80299         Reported by Mark Hounschell via Paul Eggert.
80300
80301 2001-02-07  Jim Meyering  <meyering@lucent.com>
80302
80303         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
80304
80305 2001-02-05  Jim Meyering  <meyering@lucent.com>
80306
80307         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
80308         it includes the patch required for `large file' support with at least
80309         HP-UX's 10.20 /bin/cc.
80310
80311 2001-02-03  Jim Meyering  <meyering@lucent.com>
80312
80313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
80314         AS_IF, now that it works once again (mysteriously).
80315         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80316
80317 2001-01-30  Jim Meyering  <meyering@lucent.com>
80318
80319         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
80320         * m4/chown.m4: Rename conftestchown to conftest.chown.
80321         * m4/rename.m4: s/conftestdir/conftest.d1/ and
80322         s/conftestdir2/conftest.d2/.
80323         * m4/utimes.m4: s/conftestdata/conftest.data/
80324         Inspired by Pavel Roskin's change in autoconf.
80325
80326 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
80327
80328         * lib/config.charset: Update for FreeBSD 4.2.
80329
80330 2001-01-27  Jim Meyering  <meyering@lucent.com>
80331
80332         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
80333         a use of AS_IF.
80334         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80335
80336 2001-01-26  Jim Meyering  <meyering@lucent.com>
80337
80338         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
80339         quotearg.c includes it.
80340
80341 2001-01-26  Jim Meyering  <meyering@lucent.com>
80342
80343         * lib/quotearg.c: Include stddef.h.
80344         * lib/quote.c: Include stddef.h.
80345         Reported by Axel Kittenberger.
80346
80347         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
80348         line in double quotes so that it evokes a better diagnostic.
80349         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
80350         Reported by Axel Kittenberger.
80351
80352 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
80353
80354         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
80355         as if it was a `charset'.
80356
80357 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80358
80359         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
80360         has const.
80361
80362 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80363
80364         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
80365         to avoid a warning.  Add back 'const' to inptr.
80366
80367 2001-01-20  Jim Meyering  <meyering@lucent.com>
80368
80369         Be sure that headers are checked before used in code compiled
80370         for the type checks.
80371         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
80372         In place of that, invoke jm_CHECK_ALL_TYPES.
80373         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
80374         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
80375         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
80376         The check for ssize_t was mistakenly run before the test for unistd.h.
80377
80378         The configure-time check for stdbool.h was missing.
80379         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
80380         (jm_PREREQ_HASH): New function.
80381
80382 2001-01-17  Jim Meyering  <meyering@lucent.com>
80383
80384         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
80385         for autoconf-2.49c.
80386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
80387
80388 2001-01-16  Jim Meyering  <meyering@lucent.com>
80389
80390         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
80391         From Bruno Haible.
80392
80393 2001-01-14  Jim Meyering  <meyering@lucent.com>
80394
80395         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
80396         foo and bar.  Create conftestdir/ in the script, not in the C code.
80397         Remove directories in the script, not in the C code.
80398         Remove conftestdir{,2} before trying to create the directory.
80399         Make the entire configure script fail if the mkdir fails.
80400
80401 2001-01-14  Jim Meyering  <meyering@lucent.com>
80402
80403         * lib/rename.c: New file.  From Volker Borchert.
80404         Include stdlib.h, string.h or strings.h, and xalloc.h.
80405         Use strip_trailing_slashes rather than open-coding it.
80406
80407 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80408
80409         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80410
80411 2001-01-03  Jim Meyering  <meyering@lucent.com>
80412
80413         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80414         of local `inptr' to avoid warning with some system declarations of
80415         iconv.
80416
80417 2001-01-02  Volker Borchert  <bt@teknon.de>
80418
80419         * m4/rename.m4: New file.
80420         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80421
80422 2001-01-01  Jim Meyering  <meyering@lucent.com>
80423
80424         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80425         even on systems with utmpx.h.  It's necessary for the declaration of
80426         utmp's ut_user member.  Reported by Andreas Jaeger.
80427
80428         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80429         available. They are required for the declarations of getgrgid and
80430         getpwuid resp.
80431         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80432         Reported by Andreas Jaeger.
80433
80434 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80435
80436         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80437         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80438         so `make install' also works in VPATH builds.
80439
80440 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80441
80442         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80443         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80444         can be used in subdirectories.
80445
80446 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80447
80448         * lib/modechange.c: Do not assume that mode_t uses the
80449         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80450         the other-execute bit of FOO even if S_IXOTH != 1.
80451
80452         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80453         WOTH, XOTH, ALLM): New macros.
80454         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80455          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80456         Use them.
80457         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80458         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80459         (mode_compile):
80460         No need to use uintmax_t; unsigned long is long enough.
80461         Don't bother to get suffix since we don't use it.
80462
80463 2000-12-26  Jim Meyering  <meyering@lucent.com>
80464
80465         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80466         better with autoheader.
80467
80468 2000-12-24  Jim Meyering  <meyering@lucent.com>
80469
80470         * lib/hash.c (is_prime): Return explicit boolean values.
80471         (hash_get_first): Return NULL to appease Irix5.6's 89.
80472         Reported by Nelson Beebe.
80473
80474 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80475
80476         * lib/localcharset.c (locale_charset): Add support for Win32.
80477
80478 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80479
80480         * lib/physmem.h, lib/physmem.c: New files.
80481
80482         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80483         (noinst_HEADERS): Add physmem.h.
80484
80485         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80486         't' for compatibility with Solaris 8 sort.
80487
80488 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80489
80490         * lib/config.charset: Add support for BeOS.
80491
80492 2000-12-17  Jim Meyering  <meyering@lucent.com>
80493
80494         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80495         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80496
80497 2000-12-16  Jim Meyering  <meyering@lucent.com>
80498
80499         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80500         N and M) would have treated it like `chown N:N FILE'.
80501
80502         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80503
80504 2000-12-16  Jim Meyering  <meyering@lucent.com>
80505
80506         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80507         SHELLS_FILE to a file name that's useful on djgpp systems.
80508         Include stdlib.h.
80509         (ADDITIONAL_DEFAULT_SHELLS): Define.
80510         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80511         Based mostly on a patch from Prashant TR.
80512
80513 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80514
80515         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80516         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80517         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80518
80519 2000-12-08  Andreas Schwab  <schwab@suse.de>
80520
80521         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80522         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80523
80524 2000-12-07  Jim Meyering  <meyering@lucent.com>
80525
80526         * lib/stripslash.c (ISSLASH): Define.
80527         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80528         `/'.
80529         From Prashant TR.
80530
80531         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80532         (dir_name_r): Declare this function as static.
80533         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80534         manifest itself on a name containing a mix of slashes and
80535         backslashes.
80536         Make this function work with names starting with a DOS-style
80537         drive letter and colon prefix.
80538         (dir_name): Append `.' if necessary.
80539         Based mostly on patches from Prashant TR and Eli Zaretskii.
80540
80541         * lib/dirname.h (dir_name_r): Remove prototype.
80542
80543 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80544
80545         * m4/off_t-format.m4: Remove this file.
80546         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80547
80548 2000-12-06  Jim Meyering  <meyering@lucent.com>
80549
80550         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80551         replacement strtoull, we may well need the replacement strtoul, too.
80552         Check for declarations of strtoul and strtoull.
80553         Check for strtol.  Mainly as a cue to cause automake to include
80554         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80555         Check for limits.h -- strtol.c needs it.
80556
80557 2000-12-05  Jim Meyering  <meyering@lucent.com>
80558
80559         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80560
80561 2000-12-04  Jim Meyering  <meyering@lucent.com>
80562
80563         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80564         Also include memory.h, stdlib.h, unistd.h if appropriate.
80565         Reported by Andreas Jaeger (conflicting declaration of malloc).
80566
80567 2000-12-02  Jim Meyering  <meyering@lucent.com>
80568
80569         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80570         * m4/jm-macros.m4 (jm_MACROS): require it.
80571
80572 2000-12-02  Jim Meyering  <meyering@lucent.com>
80573
80574         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80575
80576 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80577
80578         * lib/memrchr.c: Include <config.h> before any system include file.
80579
80580 2000-11-30  Jim Meyering  <meyering@lucent.com>
80581
80582         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80583
80584 2000-11-30  Jim Meyering  <meyering@lucent.com>
80585
80586         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80587
80588 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80589
80590         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80591
80592 2000-11-26  Jim Meyering  <meyering@lucent.com>
80593
80594         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80595
80596 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80597
80598         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80599         size of (size_t) -1; it's not portable.
80600
80601 2000-11-17  Jim Meyering  <meyering@lucent.com>
80602
80603         * lib/strstr.c: Update from GNU libc.
80604
80605 2000-11-17  Akim Demaille  <akim@epita.fr>
80606
80607         * lib/obstack.h: Formatting changes.
80608         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80609         prevent type checking.
80610         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80611         cast the value to (void *): assigning a `foo *' to a `void *'
80612         variable is valid.
80613         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80614
80615 2000-11-16  Jim Meyering  <meyering@lucent.com>
80616
80617         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80618
80619 2000-11-11  Jim Meyering  <meyering@lucent.com>
80620
80621         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80622
80623 2000-11-10  Jim Meyering  <meyering@lucent.com>
80624
80625         * lib/obstack.h: Update from GNU libc.
80626         * lib/obstack.c: Likewise.
80627
80628 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80629
80630         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80631
80632 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80633
80634         * lib/getusershell.c (setusershell): Use rewind rather than
80635         fseek/fseeko, to avoid configuration hassles with fseeko.
80636         Don't bother opening SHELLS_FILE if shellstream is NULL;
80637         it's not necessary.
80638
80639 2000-11-05  Jim Meyering  <meyering@lucent.com>
80640
80641         * lib/makepath.h (make_dir): Declare.
80642         * lib/makepath.c (make_dir): Remove `static' attribute.
80643         Tweak a comment.
80644
80645 2000-11-04  Jim Meyering  <meyering@lucent.com>
80646
80647         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80648
80649 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80650
80651         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80652         last one in a bucket, advance to the next bucket.
80653
80654 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80655
80656         * lib/fnmatch.c: Do not comment out all the code if we are using
80657         the GNU C library, because in some cases we are replacing buggy
80658         code in the GNU C library itself.
80659
80660 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80661
80662         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80663         (regex_compile): Catch bogus \(\1\).
80664
80665 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80666
80667         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80668         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80669         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80670
80671 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80672
80673         * lib/error.h, getline.h, modechange.h:
80674         Remove "2000" from Copyright line, as the file hasn't been
80675         changed this year other than in the copyright notice.
80676
80677         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80678         was changed this year.
80679
80680 2000-10-29  Jim Meyering  <meyering@lucent.com>
80681
80682         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80683         renaming.
80684         * m4/ls-mntd-fs.m4: Likewise
80685
80686 2000-10-29  Jim Meyering  <meyering@lucent.com>
80687
80688         * lib/xstat.in: Fix grammar in comment.
80689
80690 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80691
80692         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80693         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80694         doesn't define __restrict_arr.
80695
80696 2000-10-28  Jim Meyering  <meyering@lucent.com>
80697
80698         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80699         (jm_PREREQ_MEMCHR): New function.
80700
80701 2000-10-28  Jim Meyering  <meyering@lucent.com>
80702
80703         * lib/memchr.c: Update from libc.
80704         Adjust for portability:
80705         [HAVE_STDLIB_H]: Include stdlib.h.
80706         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80707         Undef __memchr, too.
80708         [!weak_alias]: Define __memchr to memchr.
80709
80710         * lib/regex.c: Update from libc.
80711         * lib/regex.h: Likewise.
80712         * lib/getopt1.c: Likewise.
80713         * lib/memcmp.c: Likewise.
80714
80715         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80716         Avoid using fseek, when possible -- it's broken by design.
80717         Patch by Ulrich Drepper.
80718
80719 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80720
80721         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80722         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80723         Giving in to popular pressure to shut up the compiler with casts.
80724
80725 2000-10-26  Jim Meyering  <meyering@lucent.com>
80726
80727         * lib/strftime.c: Update from libc.
80728
80729 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80730
80731         * regex.c: More `unsigned char' -> `re_char' changes.
80732         Also change several `int' into `re_wchar_t'.
80733         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80734         (PUSH_FAILURE_POINTER): Don't cast any more.
80735         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80736         We want GCC to complain, since this piece of code makes
80737         re_match non-reentrant, which *should* be fixed.
80738         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80739         (EXTEND_BUFFER): Use RETALLOC.
80740         (SET_LIST_BIT): Don't cast.
80741         (re_wchar_t): New type.
80742         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80743         that those two functions will always properly return.
80744         (IMMEDIATE_QUIT_CHECK): Cast to void.
80745         (analyse_first): Use recursion rather than an explicit stack.
80746         (re_compile_fastmap): Can't fail anymore.
80747         (re_search_2): Don't check re_compile_fastmap for failure.
80748         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80749         Now also sets the new value (passed in a new argument).
80750         (re_match_2_internal): Use it.
80751         Also, use a new var `reg' of type size_t when looping through regs
80752         rather than reuse the inappropriate `mcnt'.
80753
80754 2000-10-25  Jim Meyering  <meyering@lucent.com>
80755
80756         * lib/obstack.c: Update from libc.
80757
80758 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80759
80760         * regex.c (regex_compile): Change the way of handling a range from
80761         a char less than 256 to a char not less than 256.
80762
80763 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80764
80765         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80766         NT-Emacs only.
80767         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80768         so that re_search functions only quit when callers expect them to.
80769
80770 2000-10-23  Jim Meyering  <meyering@lucent.com>
80771
80772         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80773         wrong.  That set_locale call must not have any side effects.
80774         From Paul Eggert.
80775
80776 2000-10-22  Jim Meyering  <meyering@lucent.com>
80777
80778         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80779         [CYCLIC]: Remove now-unused definition.
80780
80781         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80782         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80783         Suggestion from Ulrich Drepper.
80784
80785 2000-10-21  Jim Meyering  <meyering@lucent.com>
80786
80787         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80788         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80789         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80790
80791 2000-10-21  Jim Meyering  <meyering@lucent.com>
80792
80793         * lib/dirname.c (memrchr): Declare if necessary.
80794         (dir_name): Remove the restriction that there be no
80795         trailing slashes.  Now, this code skips past them, effectively
80796         ignoring them.
80797         [TEST_DIRNAME] (main): New unit tests.
80798
80799         * lib/memrchr.c: New file from GNU libc.
80800         Undef __memrchr, too.
80801         [!weak_alias]: Define __memrchr to memrchr.
80802         Guard weak_alias use with `#ifdef weak_alias'.
80803
80804 2000-10-21  Jim Meyering  <meyering@lucent.com>
80805
80806         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80807         (dir_name): Use dir_name_r.
80808         * lib/dirname.h (dir_name_r): Declare it.
80809
80810 2000-10-17  Jim Meyering  <meyering@lucent.com>
80811
80812         * lib/quote.h (PARAMS): Define and use.
80813         Reported by Akim Demaille.
80814
80815         * lib/getopt.c: Update from libc.
80816
80817 2000-10-16  Jim Meyering  <meyering@lucent.com>
80818
80819         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80820         setlocale.
80821         From Jan Fedak.
80822
80823 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80824
80825         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80826
80827 2000-09-25  Jim Meyering  <meyering@lucent.com>
80828
80829         * lib/md5.h (rol): Define (from GnuPG).
80830
80831         * lib/sha.c: Give credit (GnuPG) where due.
80832         (M): Use rol rather than open-coding it.
80833         Add a FIXME comment.
80834
80835 2000-09-21  Jim Meyering  <meyering@lucent.com>
80836
80837         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80838         Reported by Michael Stone.
80839
80840 2000-09-20  Jim Meyering  <meyering@lucent.com>
80841
80842         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80843         (noinst_HEADERS): Add sha.h.
80844         Based on code from Scott G. Miller and from GnuPG.
80845
80846 2000-09-18  Jim Meyering  <meyering@lucent.com>
80847
80848         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80849         LIBS. Otherwise, everyone ends up linking with -lelf for some
80850         configurations.
80851         Reported by Mike Stone.
80852
80853 2000-09-15  Jim Meyering  <meyering@lucent.com>
80854
80855         * lib/regex.c: Update from libc.
80856
80857 2000-09-10  Jim Meyering  <meyering@lucent.com>
80858
80859         * lib/getopt.c (_getopt_internal): Update from glibc.
80860
80861 2000-09-09  Jim Meyering  <meyering@lucent.com>
80862
80863         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80864         think it should be used as a general replacement for isascii.
80865         * lib/fnmatch.c: Likewise.
80866         * lib/mbswidth.c: Likewise
80867         * lib/regex.c: Likewise.
80868
80869         Don't use atoi.
80870         * lib/userspec.c: Include sys/param.h and limits.h.
80871         Include xstrtol.h.
80872         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80873         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80874         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80875         UID, GID.  Check range.
80876
80877 2000-09-06  Jim Meyering  <meyering@lucent.com>
80878
80879         * lib/getopt.c (_getopt_internal): Update from glibc.
80880
80881 2000-08-30  Jim Meyering  <meyering@lucent.com>
80882
80883         * lib/strftime.c: Merge in changes from GNU libc.
80884
80885 2000-08-26  Jim Meyering  <meyering@lucent.com>
80886
80887         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80888         * m4/fpending.m4: New file.
80889
80890 2000-08-26  Jim Meyering  <meyering@lucent.com>
80891
80892         * lib/closeout.c: Include "__fpending.h".
80893         (close_stdout_status): Return right away if there's nothing to flush.
80894
80895         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80896         * lib/__fpending.c: New file.
80897         * lib/__fpending.h: New file.
80898
80899 2000-08-20  Jim Meyering  <meyering@lucent.com>
80900
80901         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80902         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80903         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80904
80905 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80906
80907         Improve fileutils installation on systems where running
80908         programs (like install) can't be unlinked.
80909         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80910         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80911
80912 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80913
80914         Standardize on "memory exhausted" instead of "Memory exhausted"
80915         or "virtual memory exhausted".
80916         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80917         "virtual memory exhausted".
80918         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80919         our own message.
80920         * lib/userspec.c (parse_user_spec): Likewise.
80921         * lib/bumpalloc.h: comment fix
80922         * lib/same.c, userspec.c: Include xalloc.h.
80923
80924         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80925         not char *const and pointing to a constant array.
80926         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80927         (xrealloc): Comment fix.
80928
80929         * lib/userspec.c (parse_user_spec):
80930         Don't translate a message until just before returning,
80931         to avoid unnecessary translation.
80932
80933 2000-08-07  Jim Meyering  <meyering@lucent.com>
80934
80935         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80936         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80937         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80938         getgroups.c, gethostname.c, getopt.h, group-member.c,
80939         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80940         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80941         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80942         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80943         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80944         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80945         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80946         yesno.c: Back out Copyright date changes for each file with no change
80947         this year.  This eases coordination with other programs using the same
80948         source code modules.  From Paul Eggert.
80949
80950 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80951
80952         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80953         not char, for compatibility with glibc 2.1.3 strftime.c.
80954
80955 2000-08-03  Greg McGary  <greg@mcgary.org>
80956
80957         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80958         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80959         (EXTEND_BUFFER): Use them.
80960
80961 2000-08-01  Jim Meyering  <meyering@lucent.com>
80962
80963         * lib/dirname.c (ISSLASH): Define.
80964         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80965         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80966         both `\' and `/' may be use as path separators.
80967         Based on a patch from Prashant TR.
80968
80969 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80970
80971         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80972         slot vector a constant, since it might get modified.
80973
80974 2000-07-31  Jim Meyering  <meyering@lucent.com>
80975
80976         * lib/xmalloc.c: Use `virtual memory exhausted', not
80977         `Memory exhausted'.
80978         * lib/obstack.c (print_and_abort): Likewise.
80979
80980 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80981
80982         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80983         buffer, so that the caller can always quote one small
80984         component of a "memory exhausted" message in slot 0.
80985         From a suggestion by Jim Meyering.
80986
80987 2000-07-30  Jim Meyering  <meyering@lucent.com>
80988
80989         * lib/makepath.c (make_path): Quote the other instance, too.
80990
80991         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80992         (STATIC_BUF_SIZE): Define.
80993         (quotearg_n_options): Use only statically allocated storage when
80994         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80995         than STATIC_BUF_SIZE.
80996
80997 2000-07-29  Jim Meyering  <meyering@lucent.com>
80998
80999         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
81000         * lib/dirname.c (dir_name): Likewise.
81001
81002         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
81003         `/'.
81004
81005         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
81006         (dir_name): Assert that there are no trailing slashes.
81007
81008 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
81009
81010         * lib/mbswidth.h (mbswidth): Add a flags argument.
81011         (mbswidth): New declaration.
81012         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
81013         * lib/mbswidth.c (mbswidth): Add a flags argument.
81014         (mbsnwidth): New function.
81015
81016 2000-07-24  Jim Meyering  <meyering@lucent.com>
81017
81018         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
81019
81020 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81021
81022         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
81023
81024 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81025
81026         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
81027         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
81028         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
81029         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
81030         invoke multibyte primitives.
81031
81032 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81033
81034         * lib/quotearg.c:
81035         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
81036         so that mbstate_t is always defined.
81037
81038         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
81039         be 1 in at least one GCC installation, and this configuration
81040         error is likely to be common.  Ignoring MB_LEN_MAX hurts
81041         performance on hosts that have mbrtowc but have only unibyte
81042         locales, but I assume these hosts are rare.
81043
81044 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81045
81046         * lib/mbswidth.c (_XOPEN_SOURCE):
81047         Don't define; this causes problems on Solaris 7.
81048         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
81049
81050 2000-07-23  Jim Meyering  <meyering@lucent.com>
81051
81052         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
81053         too: getgrgid, getpwuid, getuid.
81054
81055 2000-07-23  Jim Meyering  <meyering@lucent.com>
81056
81057         * lib/basename.c (base_name): Add an assertion.
81058
81059 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
81060
81061         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
81062         shadow its mbsinit function.
81063
81064 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81065
81066         * lib/mbswidth.h: New file.
81067         * lib/mbswidth.c: New file.
81068         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
81069         (noinst_HEADERS): Add mbswidth.h.
81070
81071 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81072
81073         * lib/config.charset: Add support for FreeBSD. Improve support for
81074         HP-UX and IRIX 6.
81075
81076 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
81077
81078         * m4/mbswidth.m4: New file.
81079         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
81080
81081 2000-07-15  Jim Meyering  <meyering@lucent.com>
81082
81083         * lib/makepath.c: Include quote.h.
81084         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
81085         corresponding argument in a `quote (...)' call.
81086         Give better diagnostics.
81087
81088         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
81089         (noinst_HEADERS): Add quote.h.
81090
81091         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
81092         from tar's src/misc.c.
81093         * lib/quote.h: New file.  Prototypes for same.
81094
81095 2000-07-14  Paul Eggert  <eggert@twinsun.com>
81096
81097         From a suggestion by Bruno Haible.
81098         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
81099         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
81100         to decide whether to define the BeOS workaround macro;
81101         this adjusts to the change to AC_MBSTATE_T.
81102
81103 2000-07-14  Jim Meyering  <meyering@lucent.com>
81104
81105         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
81106         jm_AC_TYPE_UINTMAX_T.
81107
81108 2000-07-13  Paul Eggert  <eggert@twinsun.com>
81109
81110         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
81111
81112         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
81113         quotearg_buffer_restyled): Add support for
81114         clocale_quoting_style.  Undo previous change to
81115         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
81116         and "{RIGHT QUOTATION MARK}" msgids.
81117
81118 2000-07-10  Paul Eggert  <eggert@twinsun.com>
81119
81120         From a suggestion by Bruno Haible.
81121         * m4/mbstate_t.m4 (AC_MBSTATE_T):
81122         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
81123         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
81124         and mbstate_t, to a single-part test that simply defines mbstate_t.
81125         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
81126         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
81127
81128 2000-07-10  Jim Meyering  <meyering@lucent.com>
81129
81130         * m4/strerror_r.m4: Mirror the correction made in autoconf.
81131
81132         * m4/gnu-source.m4: Output to confdefs.h directly.
81133         Suggestion from Akim Demaille.
81134
81135 2000-07-09  Paul Eggert  <eggert@twinsun.com>
81136
81137         The old behavior of quoting `like this' doesn't look good with
81138         newer, ISO-style fonts.  See:
81139         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
81140
81141         Instead, quote "like this" by default.  Let the translator
81142         tailor the locale-specific quoting behavior by providing
81143         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
81144
81145         * lib/quotearg.c (N_): New macro.
81146         (gettext_default): New function.
81147         (quotearg_buffer_restyled): Use
81148         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
81149         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
81150
81151 2000-07-09  Jim Meyering  <meyering@lucent.com>
81152
81153         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
81154         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
81155
81156         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
81157         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
81158
81159 2000-07-09  Jim Meyering  <meyering@lucent.com>
81160
81161         * lib/Most files: Update copyright dates to include 2000.
81162
81163 2000-07-08  Jim Meyering  <meyering@lucent.com>
81164
81165         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
81166         if not defined.
81167         (xgethostname): Remove now-unnecessary #ifdef.
81168         Move declaration of `err' into loop where it's used.
81169
81170 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81171         and Bruno Haible  <haible@clisp.cons.org>
81172
81173         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
81174         only if the test for an object-type mbstate_t fails.  This
81175         prevents us from mistakenly reporting that mbstate_t is a
81176         system object type after we "#define mbstate_t int" to work
81177         around its lack.
81178
81179 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81180         and Bruno Haible  <haible@clisp.cons.org>
81181
81182         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
81183
81184 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81185
81186         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
81187         to strerror_r.
81188         Include <ctype.h> for use of isalpha.
81189
81190 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81191
81192         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
81193         by allocating a larger buffer. Test the gethostname return value for
81194         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
81195         returns an error and ENAMETOOLONG isn't defined.
81196
81197 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81198
81199         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
81200         dimension.
81201
81202 2000-07-04  Jim Meyering  <meyering@lucent.com>
81203
81204         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
81205         of the deprecated AC_CHECKING.
81206
81207 2000-07-04  Jim Meyering  <meyering@lucent.com>
81208
81209         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
81210         Reported by Bruno Haible.
81211
81212 2000-07-04  Jim Meyering  <meyering@lucent.com>
81213
81214         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
81215         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
81216         lacks mbrtowc.
81217
81218 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81219
81220         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
81221         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
81222
81223 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81224         and Bruno Haible  <haible@clisp.cons.org>
81225
81226         * lib/quotearg.c (mbrtowc):
81227         Assign to *pwc, and return 1 only if result is nonzero.
81228         (iswprint): Use ISPRINT when substituting our own mbrtowc.
81229
81230 2000-07-03  Jim Meyering  <meyering@lucent.com>
81231
81232         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
81233
81234 2000-07-03  Jim Meyering  <meyering@lucent.com>
81235
81236         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
81237         This is necessary to get a definition of e.g., UTMP_FILE on
81238         HP-UX 10.20.
81239         From Bob Proulx.
81240
81241 2000-07-02  Jim Meyering  <meyering@lucent.com>
81242
81243         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
81244
81245         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
81246         AC_LIBOBJ(function_name).
81247         * m4/chown.m4: Likewise.
81248         * m4/fnmatch.m4: Likewise.
81249         * m4/ftruncate.m4: Likewise.
81250         * m4/getgroups.m4: Likewise.
81251         * m4/getline.m4: Likewise.
81252         * m4/group-member.m4: Likewise.
81253         * m4/jm-macros.m4: Likewise.
81254         * m4/lstat.m4: Likewise.
81255         * m4/malloc.m4: Likewise.
81256         * m4/memcmp.m4: Likewise.
81257         * m4/nanosleep.m4: Likewise.
81258         * m4/putenv.m4: Likewise.
81259         * m4/realloc.m4: Likewise.
81260         * m4/regex.m4: Likewise.
81261         * m4/stat.m4: Likewise.
81262         * m4/strftime.m4: Likewise.
81263
81264 2000-07-02  Jim Meyering  <meyering@lucent.com>
81265
81266         * lib/quotearg.c (mbstate_t): Don't define here.
81267
81268 2000-07-02  Jim Meyering  <meyering@lucent.com>
81269
81270         * lib/nanosleep.c (SIGCONT): Define if not already defined.
81271
81272 2000-07-01  Jim Meyering  <meyering@lucent.com>
81273
81274         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
81275
81276 2000-07-01  Jim Meyering  <meyering@lucent.com>
81277
81278         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
81279         problem.
81280
81281 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81282
81283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
81284         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
81285
81286 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81287
81288         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
81289         per change in ../m4/ls-mntd-fs.m4.
81290         (read_filesystem_list): Ignore symbolic links.
81291
81292 2000-06-29  Jim Meyering  <meyering@lucent.com>
81293
81294         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
81295         for declaration of strcmp.
81296
81297         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
81298
81299         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
81300         Avoid warning by casting result to `char *' to remove `const'.
81301
81302 2000-06-28  Jim Meyering  <meyering@lucent.com>
81303
81304         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
81305         included by quotearg.c, for which we perform this test.  From
81306         Bruno Haible.
81307
81308 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81309
81310         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
81311         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
81312         <utmpx.h> exists, put readutmp.o into LIBOBJS.
81313
81314 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81315
81316         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
81317
81318 2000-06-26  Paul Eggert  <eggert@twinsun.com>
81319
81320         savedir now sets errno on failure and invokes xmalloc to get memory.
81321         Fix a couple of other minor bugs while we're at it.
81322
81323         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
81324         (NAMLEN): Remove macro.
81325         (malloc, realloc): Remove decls.
81326         (stpcpy): Likewise.
81327         ("xalloc.h"): Include.
81328         (NAME_SIZE_DEFAULT): New macro.
81329         (savedir): Use xmalloc / xrealloc to allocate memory.
81330         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
81331         Skip "" directory entries.
81332         Use strlen to calculate directory entry length, since the old method
81333         is rarely used these days and isn't worth supporting.
81334         Don't use a pointer after freeing it.
81335         Check for integer overflow when calculating allocation size.
81336         Use memcpy to copy entries, instead of stpcpy.
81337         Set errno properly when returning NULL.
81338         Check for readdir error.
81339
81340 2000-06-26  Jim Meyering  <meyering@lucent.com>
81341
81342         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
81343
81344 2000-06-25  Jim Meyering  <meyering@lucent.com>
81345
81346         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
81347         Linux header bug when _XOPEN_SOURCE is defined to 500.
81348
81349 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81350
81351         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
81352         deficiency.
81353
81354 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81355
81356         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
81357         Include xalloc.h.
81358         Don't include <stdlib.h>.  Don't declare malloc, realloc.
81359
81360 2000-06-24  Jim Meyering  <meyering@lucent.com>
81361
81362         * m4/strerror_r.m4: Revive this file -- to try out an experimental
81363         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
81364         for which strerror does return char*, but which lacks a conveniently
81365         accessible declaration of the function.  If the compile-test says
81366         strerror_r doesn't work, then resort to a `run'-test that works on
81367         BeOS and segfaults on DEC Unix.
81368
81369 2000-06-24  Jim Meyering  <meyering@lucent.com>
81370
81371         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
81372
81373 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81374
81375         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
81376         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
81377
81378 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81379
81380         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
81381         (mbrtowc, mbstate_t): Define substitutes if
81382         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
81383         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
81384         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
81385
81386 2000-06-23  Jim Meyering  <meyering@lucent.com>
81387
81388         * m4/afs.m4: Add missing AC_MSG_RESULT.
81389         Reported by Bruno Haible.
81390
81391         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
81392         Suggestion from Bruno Haible.
81393
81394 2000-06-23  Jim Meyering  <meyering@lucent.com>
81395
81396         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
81397
81398 2000-06-21  Jim Meyering  <meyering@lucent.com>
81399
81400         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
81401
81402 2000-06-21  Jim Meyering  <meyering@lucent.com>
81403
81404         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81405         (noinst_HEADERS): Add getstr.h.
81406
81407         * lib/getline.c (getstr): Move into a separate file.
81408         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81409         the following changes: new parameter, delim2; both delim[12]
81410         parameters have type `int', not `char'.  The latter would lose
81411         with 8-bit delimiters.
81412         * lib/getstr.h: New file.
81413
81414 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81415
81416         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81417         than 1024, return a memory chunk of least possible size, instead
81418         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81419         Use free/xmalloc instead of xrealloc to avoid copying for very long
81420         paths.
81421
81422 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81423
81424         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81425         the empty string.
81426
81427 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81428
81429         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81430         address, not strdup.  Include <stdlib.h> and don't declare free().
81431
81432 2000-06-19  Jim Meyering  <meyering@lucent.com>
81433
81434         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81435
81436 2000-06-18  Jim Meyering  <meyering@lucent.com>
81437
81438         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81439
81440         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81441         `checking whether...' message to be consistent with that of the
81442         lstat test.
81443
81444 2000-06-18  Jim Meyering  <meyering@lucent.com>
81445
81446         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81447         Besides, these days every porting target provides a mkdir function.
81448
81449         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81450         needed. (this snippet comes from src/system.h).
81451
81452 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81453
81454         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81455
81456 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81457
81458         * lib/human.c (adjust_value): New function.
81459         (human_readable_inexact): Apply rounding style even when
81460         printing approximate values.
81461
81462 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81463
81464         * lib/human.c (human_readable_inexact): Allow an input block
81465         size that is not a multiple of the output block size, and vice versa.
81466         Reported by Piergiorgio Sartor.
81467
81468 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81469
81470         * lib/getdate.y (get_date): Apply relative times after time
81471         zone indicator, not before.  Reported by Todd A. Jacobs.
81472
81473 2000-06-13  Jim Meyering  <meyering@lucent.com>
81474
81475         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81476
81477         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81478
81479 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81480
81481         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81482
81483 2000-06-12  Jim Meyering  <meyering@lucent.com>
81484
81485         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81486         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81487         optional argument.
81488         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81489         the optional argument, `lib'.
81490
81491 2000-06-08  Jim Meyering  <meyering@lucent.com>
81492
81493         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81494
81495 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81496
81497         Rewrite largefile configuration so that we don't need to run
81498         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81499         AC_CANONICAL_HOST in configure.in -- jmm]
81500
81501         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81502         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81503         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81504         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81505         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81506         All uses changed.
81507         Instead of inspecting the output of getconf, try to compile the
81508         test program without and with the macro definition.
81509         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81510         for getconf.  Instead, check for the needed flags by compiling
81511         test programs.
81512
81513 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81514
81515         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81516
81517 2000-06-04  Jim Meyering  <meyering@lucent.com>
81518
81519         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81520         SunOS 4.1.4 for which gid_t is an unsigned type.
81521
81522 2000-06-03  Jim Meyering  <meyering@lucent.com>
81523
81524         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81525         now that autoconf requires that.
81526
81527         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81528         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81529         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81530
81531 2000-06-03  Jim Meyering  <meyering@lucent.com>
81532
81533         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81534
81535 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81536
81537         * m4/glibc21.m4: New file.
81538         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81539
81540 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81541
81542         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81543         newer, don't install charset.alias.
81544         * lib/config.charset: Change the Linux/glibc rules so they become empty
81545         on glibc-2.1 or newer.
81546
81547 2000-06-02  Jim Meyering  <meyering@lucent.com>
81548
81549         * lib/mountlist.c: Back out last change.  Instead, do this...
81550         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81551         me_dummy member using the same `ignore'-testing code.
81552         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81553         fs_type strings.
81554         From Mark D. Roth.
81555
81556 2000-05-29  Jim Meyering  <meyering@lucent.com>
81557
81558         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81559         mounts with the `ignore' attribute.  Based on a patch from
81560         Mark D. Roth.
81561
81562 2000-05-28  Jim Meyering  <meyering@lucent.com>
81563
81564         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81565         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81566         * m4/stat.m4: Likewise.
81567         * m4/lstat.m4: Likewise.
81568         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81569
81570         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81571         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81572
81573 2000-05-26  Jim Meyering  <meyering@lucent.com>
81574
81575         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81576
81577 2000-05-24  Jim Meyering  <meyering@lucent.com>
81578
81579         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81580         autoconf requires that.
81581         * m4/lib-check.m4: Likewise.
81582         * m4/jm-macros.m4: Likewise.
81583         * m4/strftime.m4: Likewise.
81584
81585         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81586         AC_CHECK_DECLS, now that autoconf requires that.
81587
81588 2000-05-22  Jim Meyering  <meyering@lucent.com>
81589
81590         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81591         * m4/lstat.m4: Likewise.
81592
81593 2000-05-22  Jim Meyering  <meyering@lucent.com>
81594
81595         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81596
81597 2000-05-20  Jim Meyering  <meyering@lucent.com>
81598
81599         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81600         (jm_PREREQ): Use it.
81601
81602 2000-05-18  Jim Meyering  <meyering@lucent.com>
81603
81604         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81605         back, too, since it may have been modified by allocate_entry.
81606         (hash_delete): Rewrite to use neither the assignment operator
81607         nor the comma operator in an if-expression.
81608
81609 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81610
81611         * lib/closeout.c:
81612         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81613         Remove; no longer needed.
81614         "quotearg.h": Add include.
81615         (file_name): Do not bother to explicitly initialize to NULL; it's less
81616         efficient on some hosts.
81617         (close_stdout_status): Remove test as to whether stdout was already
81618         closed; it breaks for the case "echo x | sort >&-".
81619         Quote file name colons.
81620         Do not assume that _("write error") lacks format strings.
81621
81622 2000-05-15  Jim Meyering  <meyering@lucent.com>
81623
81624         * lib/version-etc.c (version_etc_copyright): Update the copyright
81625         string used in all --version output.
81626
81627 2000-05-14  Jim Meyering  <meyering@lucent.com>
81628
81629         * lib/closeout.c (close_stdout_set_file_name): New function.
81630         (close_stdout_status): Use new file-scoped global.
81631         Return right away if fstat says the stdout file descriptor is invalid.
81632         * lib/closeout.h (close_stdout_set_file_name): Declare.
81633
81634 2000-05-10  Jim Meyering  <meyering@lucent.com>
81635
81636         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81637         (close_stdout_set_status): New function.
81638         * lib/closeout.h (close_stdout_set_status): Declare.
81639
81640 2000-05-09  Jim Meyering  <meyering@lucent.com>
81641
81642         * m4/gettext.m4: Rename this...
81643         * m4/libintl.m4: ...to this.
81644
81645 2000-05-08  Jim Meyering  <meyering@lucent.com>
81646
81647         * lib/long-options.c: Don't include closeout.h.
81648         (parse_long_options): Don't call close_stdout for --version.
81649
81650 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81651
81652         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81653         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81654         2.1.3 bug.  This avoids a clash when files like regex.c define
81655         _GNU_SOURCE.
81656
81657 2000-05-06  Jim Meyering  <meyering@lucent.com>
81658
81659         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81660         (AC_REPLACE_FUNCS): Add strnlen.
81661
81662         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81663         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81664
81665         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81666         AC_SEARCH_LIBS call for nanosleep.
81667         (LIB_NANOSLEEP): Set and AC_SUBST.
81668
81669 2000-05-06  Jim Meyering  <meyering@lucent.com>
81670
81671         * lib/strnlen.c: Undefine __strnlen and strnlen.
81672         [!weak_alias]: Define __strnlen to strnlen.
81673
81674         * lib/atexit.c: New file, from libiberty.
81675
81676 2000-05-06  Jim Meyering  <meyering@lucent.com>
81677
81678         * lib/closeout.c (close_stdout_status): Also check for errors on the
81679         stderr stream.
81680
81681 2000-05-05  Jim Meyering  <meyering@lucent.com>
81682
81683         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81684         AC_SEARCH_LIBS call for clock_gettime.
81685         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81686
81687         * m4/search-libs.m4: Update from autoconf.
81688
81689         su doesn't work on Solaris 2.6.
81690         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81691         <shadow.h>.  Reported by Dragos Harabor.
81692
81693 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81694
81695         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81696         memcpy instead of xmalloc, xrealloc, path_concat.
81697         (locale_charset): Treat empty environment variables as absent.
81698         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81699
81700 2000-05-04  Jim Meyering  <meyering@lucent.com>
81701
81702         * lib/getopt.c: Update from glibc.
81703         * lib/obstack.c: Likewise.
81704         * lib/obstack.h: Likewise.
81705         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81706         file
81707
81708         * lib/regex.h: Likewise.
81709         * lib/strndup.c: Likewise.
81710         * lib/strnlen.c: New file, from glibc.
81711
81712 2000-05-03  Jim Meyering  <meyering@lucent.com>
81713
81714         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81715
81716 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81717
81718         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81719         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81720         compile-time test, rather than inspecting host and OS, to
81721         decide whether to define _LARGEFILE_SOURCE.
81722
81723 2000-05-01  Jim Meyering  <meyering@lucent.com>
81724
81725         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81726
81727         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81728         Based on a patch from Bruno Haible.
81729
81730 2000-05-01  Jim Meyering  <meyering@lucent.com>
81731
81732         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81733
81734 2000-04-29  Jim Meyering  <meyering@lucent.com>
81735
81736         * lib/path-concat.c: Declare strdup only if it's not defined.
81737         * lib/canon-host.c: Likewise.
81738
81739 2000-04-28  Jim Meyering  <meyering@lucent.com>
81740
81741         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81742         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81743         is included first, then limits.h is included by locale.h by libintl.h.
81744         From John David Anglin.
81745
81746 2000-04-25  Jim Meyering  <meyering@lucent.com>
81747
81748         * lib/makepath.c (S_IRWXUGO): Define.
81749         (make_path): Always perform explicit chmod if MODE specifies any
81750         of the `special' permission bits.  Prompted by a bug report against
81751         install from Mate Wierdl and Joost van Baal.
81752
81753 2000-04-18  Jim Meyering  <meyering@lucent.com>
81754
81755         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81756         (jm_PREREQ): Use it.
81757
81758 2000-04-18  Jim Meyering  <meyering@lucent.com>
81759
81760         * lib/README: New file.
81761
81762         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81763         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81764
81765 2000-04-17  Jim Meyering  <meyering@lucent.com>
81766
81767         Get it right :-)
81768         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81769         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81770         Suggestion from Akim Demaille.
81771
81772 2000-04-17  Jim Meyering  <meyering@lucent.com>
81773
81774         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81775         the definition of it to rpl_strftime also defined-away the system's
81776         declaration.
81777
81778 2000-04-15  Jim Meyering  <meyering@lucent.com>
81779
81780         Use `C' to denote so-called `contiguous' files, the same way
81781         that tar does.
81782         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81783         (ftypelet): Use S_ISCTG.
81784         From Michael Deutschmann.
81785
81786 2000-04-14  Jim Meyering  <meyering@lucent.com>
81787
81788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81789         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81790         clobbered.
81791
81792 2000-04-14  Jim Meyering  <meyering@lucent.com>
81793
81794         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81795
81796 2000-04-13  Jim Meyering  <meyering@lucent.com>
81797
81798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81799         AH_VERBATIM to insert required #ifndef into config.h.in.
81800         Suggestion from Akim Demaille.
81801
81802 2000-04-12  Jim Meyering  <meyering@lucent.com>
81803
81804         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81805         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81806         Christian Krackowizer.
81807
81808         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81809         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81810         (AC_SYS_LARGEFILE): Require.
81811         (AM_C_PROTOTYPES): Require.
81812
81813 2000-04-08  Jim Meyering  <meyering@lucent.com>
81814
81815         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81816         names don't conflict.  Reported by Eli Zaretskii.
81817
81818 2000-04-07  Jim Meyering  <meyering@lucent.com>
81819
81820         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81821         sys/types.h, to work around system header problems on AIX 3.2.5.
81822         From Bruno Haible.
81823
81824 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81825
81826         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81827         bug.  Deal with the different error behavior of Irix iconv.
81828
81829 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81830
81831         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81832         IRIX if the installer said otherwise.
81833
81834 2000-04-05  Jim Meyering  <meyering@lucent.com>
81835
81836         Portability tweaks required for ultrix4.3.
81837         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81838         (jm_CHECK_DECLS): Add getutent to the list of functions.
81839         (_jm_DECL_HEADERS): Add utmpx.h.
81840         From John David Anglin.
81841
81842         * m4/strftime.m4: Back out the 2000-04-02 change.
81843         Instead of that change, simply undefine putenv in the test program.
81844
81845 2000-04-05  Jim Meyering  <meyering@lucent.com>
81846
81847         Portability tweaks required for ultrix4.3.
81848         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81849         getutent.
81850         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81851         * lib/canon-host.c: Declare strdup.
81852         * lib/path-concat.c: Likewise.
81853         From John David Anglin.
81854
81855 2000-04-04  Jim Meyering  <meyering@lucent.com>
81856
81857         Be more DOS 8.3-friendly.
81858         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81859         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81860         * lib/Makefile.am: Reflect renaming.
81861         Reported by Eli Zaretskii.
81862
81863         Use a temporary file name that won't clash with `charset.alias'
81864         in the DOS 8.3 name space.
81865         * lib/Makefile.am (charset_tmp): Define.
81866         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81867         (uninstall-local): Likewise.
81868         Reported by Eli Zaretskii.
81869
81870 2000-04-03  Jim Meyering  <meyering@lucent.com>
81871
81872         * m4/gettext.m4: Fix typo in comment.
81873
81874         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81875         textutils/configure.in).  Suggestion from Paul Eggert.
81876         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81877
81878 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81879
81880         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81881         variable in the shell rather than using putenv, which isn't
81882         portable.  This avoids the configure-time inter-test dependency
81883         on the potentially-renamed putenv function.
81884
81885 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81886
81887         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81888         before checking struct stat.st_blksize, so that
81889         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81890
81891 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81892
81893         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81894         since strftime.c uses HAVE_STRFTIME to decide whether to use
81895         the underlying strftime.
81896
81897 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81898
81899         * lib/time/strftime.c (my_strftime): Make sure we call the system
81900         strftime, not ourselves, when invoking the underlying strftime.
81901
81902 2000-03-24  Jim Meyering  <meyering@lucent.com>
81903
81904         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81905         (charset_alias): Define.
81906         (install-exec-local): Factor out common code.
81907         (uninstall-local): Split lines longer than 80.
81908         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81909         (SUFFIXES): Define.
81910         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81911         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81912
81913 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81914
81915         * lib/config.charset: Output a line containing "Packages using this
81916         file".
81917         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81918         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81919         ref-del.sed): New rules.
81920
81921 2000-03-17  Jim Meyering  <meyering@lucent.com>
81922
81923         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81924         Otherwise, include <strings.h>
81925
81926 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81927
81928         * lib/unicodeio.c (utf8_wctomb): New function.
81929         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81930         format instead of in UCS-4 with platform dependent endianness.
81931
81932 2000-03-10  Jim Meyering  <meyering@lucent.com>
81933
81934         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81935         From Marco Franzen.
81936
81937 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81938
81939         * lib/savedir.c (savedir): Work even if directory size is
81940         negative; this can happen with some screwy NFS configurations.
81941
81942 2000-03-06  Jim Meyering  <meyering@lucent.com>
81943
81944         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81945         if it's NULL (because we ran out of memory).  From Bruno Haible.
81946
81947 2000-03-05  Jim Meyering  <meyering@lucent.com>
81948
81949         * lib/localcharset.c ("path-concat.h"): Include.
81950         (get_charset_aliases): Use path_concat instead of ANSI string
81951         concatenation.
81952
81953         * lib/unicodeio.h (PARAMS): Define.
81954         Use it to guard prototype.
81955
81956 2000-03-04  Jim Meyering  <meyering@lucent.com>
81957
81958         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81959         for lib/localcharset.c.
81960
81961 2000-03-04  Jim Meyering  <meyering@lucent.com>
81962
81963         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81964         installing into it.
81965         (uninstall-local): Uncomment this rule so `make distcheck' works
81966         once again.
81967
81968         * lib/unicodeio.c (<errno.h>): Include it.
81969         (errno): Declare if not defined.
81970
81971         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81972
81973         * lib/config.charset: New version, incorporating remarks from a linux
81974         i18n mailing list.  From Bruno Haible.
81975
81976 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81977
81978         * m4/codeset.m4: New file.
81979         * m4/iconv.m4: New file.
81980         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81981
81982 2000-03-03  Jim Meyering  <meyering@lucent.com>
81983
81984         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81985
81986 2000-03-02  Jim Meyering  <meyering@lucent.com>
81987
81988         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81989         the messages come out on separate lines.
81990
81991         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81992         rather than jm_CHECK_DECLARATIONS.
81993         * m4/decl.m4: Remove now-unused file.
81994
81995         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81996         geteuid.
81997
81998 2000-03-02  Jim Meyering  <meyering@lucent.com>
81999
82000         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
82001
82002 2000-03-01  Jim Meyering  <meyering@lucent.com>
82003
82004         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
82005         * lib/unicodeio.c: Likewise.
82006
82007 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
82008
82009         * lib/config.charset: New file.
82010         * lib/localcharset.c: New file.
82011         * lib/unicodeio.h, lib/unicodeio.c: New files.
82012         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
82013         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
82014         (noinst_HEADERS): Add unicodeio.h.
82015         (all-local, install-exec-local, charset.alias): New targets.
82016
82017 2000-02-28  Paul Eggert  <eggert@twinsun.com>
82018
82019         * lib/quotearg.c (ALERT_CHAR): New macro.
82020         (quotearg_buffer_restyled): Use it.
82021
82022 2000-02-27  Jim Meyering  <meyering@lucent.com>
82023
82024         * m4/check-decl.m4: Add getenv to the list.
82025
82026 2000-02-27  Jim Meyering  <meyering@lucent.com>
82027
82028         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
82029         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
82030
82031         * lib/backupfile.c: Guard inclusion of stdlib.h with
82032         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
82033         Declare malloc if needed.
82034
82035         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
82036         `#ifndef HAVE_DECL..'
82037         now that autoconf always defines the HAVE_DECL_ symbols.
82038         * lib/human.c: Likewise.
82039         * lib/same.c: Likewise.
82040         * lib/strtoumax.c: Likewise.
82041
82042         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
82043         declaration check was not run.
82044         * lib/hash.c: Likewise.
82045         * lib/human.c: Likewise.
82046         * lib/same.c: Likewise.
82047         * lib/strtoumax.c: Likewise.
82048
82049         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
82050         `.', then first look up the entire `.'-containing string as a login
82051         name.
82052
82053 2000-02-23  Jim Meyering  <meyering@lucent.com>
82054
82055         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
82056         in place of my hack.
82057
82058 2000-02-18  Paul Eggert  <eggert@twinsun.com>
82059
82060         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
82061         (textint): New typedef.
82062         (parser_control): Member year changed from int to textint.
82063         All uses changed.
82064         (YYSTYPE): Removed; replaced by %union with int and textint members.
82065         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
82066         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
82067         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
82068         (tSNUMBER, tUNUMBER): Now of type <textintval>.
82069         (date, number, to_year): Use width of number in digits, not its value,
82070         to determine whether it's a 2-digit year, or a 2-digit time.
82071         (yylex): Store number of digits of numeric tokens.
82072         Reported by John Kendall.
82073
82074         (parser_control): Changed from struct parser_control to typedef (for
82075         consistency).  All uses changed.
82076
82077         (tID): Removed; not used.
82078         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
82079
82080 2000-02-14  Paul Eggert  <eggert@twinsun.com>
82081
82082         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
82083         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
82084
82085 2000-02-12  Jim Meyering  <meyering@lucent.com>
82086
82087         * lib/userspec.c (ISDIGIT): Define it.
82088         (isdigit): Remove definition.
82089         (is_number): Use ISDIGIT, not isdigit.
82090         <libintl.h>: Include.
82091         (_ and N_): Define.
82092         (parse_user_spec): Mark translatable strings.
82093
82094 2000-02-10  Jim Meyering  <meyering@lucent.com>
82095
82096         With these changes, nanosleep.[ch] are finally enough like the other
82097         lib/* replacement files to compile on a few more losing systems.
82098
82099         * lib/nanosleep.h: Don't include config.h.
82100         Remove prototype from declaration of nanosleep.
82101         (PARAMS): Remove now-unneeded definition.
82102         * lib/nanosleep.c: #undef nanosleep.
82103         (rpl_nanosleep): Rename from nanosleep.
82104
82105 2000-02-10  Jim Meyering  <meyering@lucent.com>
82106
82107         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
82108         gnu_nanosleep to rpl_nanosleep.
82109
82110 2000-02-09  Jim Meyering  <meyering@lucent.com>
82111
82112         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
82113         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
82114
82115 2000-02-08  Akim Demaille  <akim@epita.fr>
82116
82117         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
82118         `[' and `]' and remove uses of `changequote'.
82119         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
82120         (AC_SYS_LARGEFILE): Likewise.
82121         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
82122         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
82123         of changequote.
82124         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
82125         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
82126         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
82127         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
82128
82129 2000-02-05  Jim Meyering  <meyering@lucent.com>
82130
82131         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
82132         Remove explicit use of AC_HEADER_TIME.  It is required by
82133         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
82134         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
82135         in autoconf whereby the expansion of the latter ended up preceding
82136         the expansion of its prerequisite, AC_HEADER_TIME.
82137         Reported by Volker Borchert.
82138
82139 2000-02-03  Jim Meyering  <meyering@lucent.com>
82140
82141         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
82142
82143 2000-02-03  Jim Meyering  <meyering@lucent.com>
82144
82145         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
82146         rather than with `#if HAVE_UTMPNAME'.
82147
82148 2000-02-02  Jim Meyering  <meyering@lucent.com>
82149
82150         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
82151         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
82152         Reported by Eli Zaretskii.
82153
82154 2000-02-01  Jim Meyering  <meyering@lucent.com>
82155
82156         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
82157
82158 2000-01-31  Jim Meyering  <meyering@lucent.com>
82159
82160         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
82161         functions.  Add the time.h and sys/time.h headers along with the
82162         AC_REQUIRE'ment of AC_HEADER_TIME.
82163
82164 2000-01-31  Jim Meyering  <meyering@lucent.com>
82165
82166         * lib/nanosleep.h (nanosleep): Guard declaration with
82167         `#if ! HAVE_DECL_NANOSLEEP'.
82168         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
82169         the declaration in that vendor's sys/timers.h.
82170         Reported by Christian Krackowizer.
82171
82172         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
82173         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
82174         (ISPRINT): Likewise.
82175         Reported by Tom Tromey.
82176
82177 2000-01-30  Jim Meyering  <meyering@lucent.com>
82178
82179         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
82180
82181         * m4/prereq.m4 (utmp_includes): Define.
82182         Check for ut_user and ut_name members in both struct utmpx
82183         and struct utmp.
82184
82185 2000-01-30  Jim Meyering  <meyering@lucent.com>
82186
82187         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
82188         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
82189         header files where only utmpx.ut_user is declared.
82190
82191         * lib/readutmp.h (UT_USER): Define.
82192
82193 2000-01-29  Jim Meyering  <meyering@lucent.com>
82194
82195         * m4/lib-check.m4: New file containing library-related checks from
82196         fileutils and sh-utils (textutils had none).
82197
82198 2000-01-28  Jim Meyering  <meyering@lucent.com>
82199
82200         * m4/perl.m4: Change format of warning message to look more like that
82201         from the missing script.  Suggestion from François Pinard.
82202
82203 2000-01-25  Jim Meyering  <meyering@lucent.com>
82204
82205         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
82206         well as time.h in the compile check.
82207         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
82208         Fix typo in cross-compiling case: s/yes/no/.
82209
82210 2000-01-23  Jim Meyering  <meyering@lucent.com>
82211
82212         * m4/jm-macros.m4: Move df-related tests here from
82213         fileutils/configure.in
82214
82215         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
82216         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
82217
82218         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
82219         s/space/ac_fsusage_space/.
82220         (jm_FILE_SYSTEM_USAGE): Take two parameters.
82221
82222         * m4/ftruncate.m4: New file (derived from part of
82223         fileutils/configure.in).
82224         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
82225         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
82226
82227         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
82228         AC_SUBST these here, rather than just in sh-util/configure.in, so
82229         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
82230         all the same.
82231         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
82232         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
82233         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
82234         (AC_SUBST(POW_LIBM)): Likewise.
82235         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
82236
82237 2000-01-23  Jim Meyering  <meyering@lucent.com>
82238
82239         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
82240         obstack.c.
82241
82242 2000-01-22  Jim Meyering  <meyering@lucent.com>
82243
82244         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
82245
82246         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
82247
82248         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
82249         configure.in
82250         (AC_CHECK_HEADERS): Likewise for sh-utils.
82251         (AC_CHECK_HEADERS): Likewise for textutils.
82252         Merge the three lists of headers.
82253
82254         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
82255         from fileutils' configure.in.
82256
82257         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
82258         code. Moved tests into their own function (_jm_DECL_HEADERS) in
82259         check-decl.m4.
82260
82261         * m4/check-decl.m4: Use #if rather than #ifdef.
82262         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
82263         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
82264         (_jm_DECL_HEADERS): Define new function.
82265         (jm_CHECK_DECLARATIONS): Require it.
82266
82267 2000-01-22  Jim Meyering  <meyering@lucent.com>
82268
82269         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
82270         [! HAVE_DECL_STRTOULL]: Declare strtoull.
82271         Required for some AIX systems.  Reported by Christian Krackowizer.
82272         [TESTING] (main): New function.
82273
82274         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
82275         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
82276         letters.
82277
82278         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
82279         iswprint.
82280
82281         * lib/strverscmp.c (ISDIGIT): Define.
82282         (strverscmp): Use ISDIGIT, not isdigit.
82283
82284 2000-01-19  Jim Meyering  <meyering@lucent.com>
82285
82286         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
82287         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
82288         defines `struct timespec' in <sys/time.h>
82289
82290         * m4/c-bs-a.m4: Remove uses of changequote altogether.
82291         Thanks to Akim for explaining.
82292
82293 2000-01-17  Paul Eggert  <eggert@twinsun.com>
82294
82295         * lib/nanosleep.c (nanosleep):
82296         Don't use SA_INTERRUPT to decide whether to call sigaction, as
82297         POSIX.1 doesn't require SA_INTERRUPT and some systems
82298         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
82299         it's been part of POSIX.1 since day 1 (in 1988).
82300
82301 2000-01-17  Jim Meyering  <meyering@lucent.com>
82302
82303         * lib/interlock: Remove unused file.  Reported by François Pinard.
82304
82305 2000-01-16  Paul Eggert  <eggert@twinsun.com>
82306
82307         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
82308         alert, backslash, formfeed, and vertical tab unnecessarily in
82309         shell quoting style.
82310
82311 2000-01-16  Jim Meyering  <meyering@lucent.com>
82312
82313         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
82314         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
82315         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
82316         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
82317
82318 2000-01-16  Jim Meyering  <meyering@lucent.com>
82319
82320         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
82321         because the latter didn't work.
82322
82323 2000-01-15  Jim Meyering  <meyering@lucent.com>
82324
82325         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
82326         (AC_REPLACE_FUNCS): Add memcpy and memset.
82327         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
82328         Add strpbrk.
82329         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
82330
82331 2000-01-12  Jim Meyering  <meyering@lucent.com>
82332
82333         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
82334         (jm_PREREQ): Use it.
82335         (jm_PREREQ_READUTMP): New macro.
82336         (jm_PREREQ): Use it.
82337
82338 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82339
82340         Quote multibyte characters correctly.
82341         * m4/c-bs-a.m4: New file.
82342         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
82343         (jm_PREREQ): Use it.
82344
82345 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82346
82347         * m4/uintmax_t.m4: Port to autoconf 2.13.
82348
82349 2000-01-08  Jim Meyering  <meyering@ascend.com>
82350
82351         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
82352         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
82353
82354 2000-01-04  Jim Meyering  <meyering@ascend.com>
82355
82356         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
82357         jm_STRUCT_DIRENT_D_TYPE.
82358         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
82359         jm_STRUCT_DIRENT_D_INO.
82360         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
82361         jm_STRUCT_UTIMBUF.
82362         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
82363         renamings.
82364         * m4/utime.m4: Likewise.
82365
82366         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
82367         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
82368
82369 2000-01-03  Paul Eggert  <eggert@twinsun.com>
82370
82371         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
82372         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
82373
82374 2000-01-02  Jim Meyering  <meyering@ascend.com>
82375
82376         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
82377         remember if this is necessary.
82378
82379 1999-12-26  Jim Meyering  <meyering@ascend.com>
82380
82381         * m4/jm-macros.m4: Use it here.
82382         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
82383
82384 1999-12-23  Jim Meyering  <meyering@ascend.com>
82385
82386         * m4/jm-macros.m4: Check for clock_gettime (moved from
82387         fileutils/configure.in)
82388         Check for gettimeofday.
82389
82390 1999-12-20  Jim Meyering  <meyering@ascend.com>
82391
82392         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
82393         autoconf-2.14a-1999-12-20.
82394
82395 1999-12-19  Jim Meyering  <meyering@ascend.com>
82396
82397         * m4/lstat-slash.m4: New file.
82398         * m4/jm-macros.m4: Use the new macro:
82399         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82400
82401 1999-12-07  Jim Meyering  <meyering@ascend.com>
82402
82403         * m4/perl.m4: Require that File::Compare be available, too.
82404         Too many systems seem to lack it.
82405
82406         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82407         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82408
82409 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82410
82411         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82412         problem with the QNX 4.25 shell, which doesn't propagate exit
82413         status of failed commands inside shell assignments.
82414
82415 1999-11-17  Jim Meyering  <meyering@ascend.com>
82416
82417         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82418
82419 1999-11-07  Jim Meyering  <meyering@ascend.com>
82420
82421         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82422
82423 1999-11-06  Jim Meyering  <meyering@ascend.com>
82424
82425         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82426         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82427
82428 1999-11-05  Jim Meyering  <meyering@ascend.com>
82429
82430         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82431         configure.in of textutils, fileutils, and sh-utils into this one
82432         (shared between those packages) file.
82433         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82434         AC_STRUCT_ST_BLKSIZE.
82435
82436 1999-11-03  Jim Meyering  <meyering@ascend.com>
82437
82438         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82439         of AC_CHECK_TYPE checks includes unistd.h.
82440         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82441         Suggestion from Akim Demaille.
82442
82443 1999-10-30  Jim Meyering  <meyering@ascend.com>
82444
82445         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82446         m4-quoted string.
82447         * m4/ls-mntd-fs.m4: Likewise.
82448         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82449         * m4/jm-winsz1.m4: Likewise.
82450
82451         * m4/const.m4: Remove file, since the fix made it into the experimental
82452         version of autoconf.
82453         * m4/mktime.m4: Likewise.
82454
82455         * m4/check-type.m4: Remove file, now that the latest version of
82456         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82457
82458         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82459         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82460         AC_CHECK_TYPE.
82461
82462 1999-10-04  Jim Meyering  <meyering@ascend.com>
82463
82464         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82465
82466 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82467
82468         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82469         2.95.1 bug with HP-UX 10.20.
82470
82471 1999-09-17  Jim Meyering  <meyering@ascend.com>
82472
82473         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82474         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82475         due to missing strdup (against sh-utils-2.0).
82476
82477 1999-08-29  Jim Meyering  <meyering@ascend.com>
82478
82479         * m4/jm-macros.m4: Require jm_BISON.
82480         * m4/bison.m4: New file.
82481
82482 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82483
82484         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82485         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82486
82487 1999-08-05  Jim Meyering  <meyering@ascend.com>
82488
82489         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82490         to avoid conflicts with `conftest' on 8+3 filesystems.
82491         Suggestion from Eli Zaretskii.
82492
82493 1999-08-04  Jim Meyering  <meyering@ascend.com>
82494
82495         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82496         fileutils and sh-utils (textutils's getline test was inadequate).
82497         (AM_FUNC_GETLINE): Run this test.
82498         (AC_CHECK_FUNCS): Check for getdelim.
82499         Reported by Bob Proulx.
82500
82501 1999-08-02  Jim Meyering  <meyering@ascend.com>
82502
82503         * m4/jm-macros.m4: Add a comment.
82504
82505 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82506
82507         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82508         <inttypes.h> defines strtoumax as a macro (and not as a
82509         function).
82510
82511 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82512
82513         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82514         that we can shift, multiply and divide unsigned long long
82515         values; Ultrix cc can't do it.
82516
82517 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82518
82519         * m4/mktime.m4: New file, which is a preview of what should appear
82520         in the next public autoconf release.
82521
82522 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82523
82524         * m4/lfs.m4: Remove this file.
82525         * m4/largefile.m4: New file.  It contains the old contents of
82526         lfs.m4, except that all names with prefix AC_LFS have been
82527         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82528         compatible with future autoconf versions.  Also, some minor m4
82529         quoting problems have been fixed.
82530
82531 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82532
82533         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82534         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82535         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82536         and simplify the shell code.
82537
82538 1999-08-01  Jim Meyering  <meyering@ascend.com>
82539
82540         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82541         m4.
82542
82543 1999-07-20  Jim Meyering  <meyering@ascend.com>
82544
82545         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82546
82547 1999-07-15  Jim Meyering  <meyering@ascend.com>
82548
82549         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82550
82551 1999-05-22  Jim Meyering  <meyering@ascend.com>
82552
82553         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82554
82555 1999-05-20  Jim Meyering  <meyering@ascend.com>
82556
82557         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82558         Add a colon after each `then' in case $4 is empty.
82559
82560 1999-05-16  Jim Meyering  <meyering@ascend.com>
82561
82562         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82563
82564 1999-05-10  Jim Meyering  <meyering@ascend.com>
82565
82566         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82567
82568         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82569         AC_FUNC_MKTIME.
82570
82571 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82572
82573         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82574
82575 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82576
82577         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82578         not CPPFLAGS, so that linking works correctly in IRIX.
82579
82580 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82581
82582         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82583
82584 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82585
82586         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82587         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82588         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82589         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82590         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82591
82592         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82593
82594 1999-04-20  Jim Meyering  <meyering@ascend.com>
82595
82596         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82597         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82598         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82599
82600 1999-04-18  Jim Meyering  <meyering@ascend.com>
82601
82602         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82603         * m4/jm-macros.m4: Use it.
82604
82605 1999-04-06  Jim Meyering  <meyering@ascend.com>
82606
82607         * m4/strftime.m4: Remove test for %f.
82608
82609 1999-03-29  Jim Meyering  <meyering@ascend.com>
82610
82611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82612         superset of the AC_TYPE_* checks in the textutils, fileutils,
82613         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82614         AC_TYPE_PID_T.
82615
82616 1999-03-28  Jim Meyering  <meyering@ascend.com>
82617
82618         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82619         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82620         replaced e.g., in the *.sh files of the sh-utils.
82621
82622 1999-03-20  Jim Meyering  <meyering@ascend.com>
82623
82624         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82625         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82626         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82627
82628 1999-03-19  Jim Meyering  <meyering@ascend.com>
82629
82630         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82631
82632 1999-03-12  Jim Meyering  <meyering@ascend.com>
82633
82634         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82635
82636 1999-03-07  Jim Meyering  <meyering@ascend.com>
82637
82638         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82639         declared.
82640
82641 1999-02-17  Jim Meyering  <meyering@ascend.com>
82642
82643         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82644         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82645
82646 1999-02-07  Jim Meyering  <meyering@ascend.com>
82647
82648         * m4/group-member.m4: New file -- extracted from sh-utils'
82649         configure.in.
82650
82651         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82652         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82653
82654 1999-02-06  Jim Meyering  <meyering@ascend.com>
82655
82656         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82657         * m4/fnmatch.m4: Likewise.
82658         * m4/getgroups.m4: Likewise.
82659         * m4/lstat.m4: Likewise.
82660         * m4/malloc.m4: Likewise.
82661         * m4/putenv.m4: Likewise.
82662         * m4/realloc.m4: Likewise.
82663         * m4/regex.m4: Likewise.
82664         * m4/stat.m4: Likewise.
82665         * m4/strftime.m4: Likewise.
82666         Suggestion from Alain Magloire.
82667
82668         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82669         * m4/fnmatch.m4: Likewise.
82670         * m4/getgroups.m4: Likewise.
82671         * m4/getline.m4: Likewise.
82672         * m4/lstat.m4: Likewise.
82673         * m4/malloc.m4: Likewise.
82674         * m4/memcmp.m4: Likewise.
82675         * m4/putenv.m4: Likewise.
82676         * m4/realloc.m4: Likewise.
82677         * m4/regex.m4: Likewise.
82678         * m4/stat.m4: Likewise.
82679         * m4/strftime.m4: Likewise.
82680         Suggestion from Alain Magloire.
82681
82682         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82683         an argument.
82684
82685         * m4/regex.m4: Add a run-time Test for proper operation of
82686         re_compile_pattern.
82687
82688 1999-01-31  Jim Meyering  <meyering@ascend.com>
82689
82690         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82691
82692 1999-01-30  Jim Meyering  <meyering@ascend.com>
82693
82694         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82695
82696         * m4/jm-mktime.m4: Make this a wrapper around the official
82697         AM_FUNC_MKTIME rather than my private copy, now that the official one
82698         is up to date.
82699         * m4/mktime.m4: Remove file.
82700
82701         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82702         * m4/uptime.m4: Likewise.
82703         * m4/uintmax_t.m4: Likewise.
82704
82705 1999-01-28  Jim Meyering  <meyering@ascend.com>
82706
82707         * m4/jm-macros.m4: Use jm_AFS.
82708         * m4/afs.m4: New file (from fileutils' configure.in).
82709
82710         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82711         * m4/chown.m4: Likewise.
82712         * m4/d-ino.m4: Likewise.
82713         * m4/d-type.m4: Likewise.
82714         * m4/fnmatch.m4: Likewise.
82715         * m4/getgroups.m4: Likewise.
82716         * m4/gettext.m4: Likewise.
82717         * m4/jm-mktime.m4: Likewise.
82718         * m4/jm-winsz2.m4: Likewise.
82719         * m4/lcmessage.m4: Likewise.
82720         * m4/ls-mntd-fs.m4: Likewise.
82721         * m4/malloc.m4: Likewise.
82722         * m4/memcmp.m4: Likewise.
82723         * m4/putenv.m4: Likewise.
82724         * m4/realloc.m4: Likewise.
82725         * m4/st_mtim.m4: Likewise.
82726         * m4/strftime.m4: Likewise.
82727
82728 1999-01-16  Jim Meyering  <meyering@ascend.com>
82729
82730         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82731         (ARGMATCH_DIE_DECL): Define.
82732
82733 1999-01-12  Jim Meyering  <meyering@ascend.com>
82734
82735         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82736         Reported by Lars Hecking.
82737
82738 1999-01-10  Jim Meyering  <meyering@ascend.com>
82739
82740         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82741         gross kludge.
82742         * m4/inttypes_h.m4: Likewise.
82743         * m4/lstat.m4: Likewise.
82744         * m4/malloc.m4: Likewise.
82745         * m4/readdir.m4: Likewise.
82746         * m4/realloc.m4: Likewise.
82747         * m4/st_dm_mode.m4: Likewise.
82748         * m4/stat.m4: Likewise.
82749         * m4/utimbuf.m4: Likewise.
82750         * m4/utimes.m4: Likewise.
82751
82752         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82753         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82754         comments in config.h.in are meaningful.
82755
82756         * m4/jm-macros.m4: Require autoconf-2.13 here.
82757
82758         * m4/regex.m4: By default, don't use the included regex.c on systems
82759         with glibc 2.  Suggestion from Uli Drepper.
82760
82761 1999-01-02  Jim Meyering  <meyering@ascend.com>
82762
82763         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82764
82765 1998-12-18  Jim Meyering  <meyering@ascend.com>
82766
82767         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82768         Based on a suggestion from Lars Hecking.
82769
82770 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82771
82772         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82773
82774 1998-11-16  Jim Meyering  <meyering@ascend.com>
82775
82776         * m4/lfs.m4: Double-quote the `uname...` expression.
82777
82778 1998-11-14  Jim Meyering  <meyering@ascend.com>
82779
82780         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82781         * m4/stat.m4: Likewise.
82782
82783 1998-11-03  Jim Meyering  <meyering@ascend.com>
82784
82785         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82786         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82787
82788 1998-10-18  Jim Meyering  <meyering@ascend.com>
82789
82790         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82791
82792 1998-10-17  Jim Meyering  <meyering@ascend.com>
82793
82794         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82795         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82796         calls for those previously hard-coded headers.  Instead, take a new
82797         parameter.
82798         (jm_CHECK_DECLARATIONS): Reflect interface change.
82799         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82800         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82801
82802         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82803
82804 1998-10-14  Jim Meyering  <meyering@ascend.com>
82805
82806         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82807         instead of "TZ=America/Vancouver".  From Paul Eggert.
82808
82809 1998-10-11  Jim Meyering  <meyering@ascend.com>
82810
82811         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82812         This adds a test for a recently added compatibility fix for mktime.c.
82813         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82814
82815 1998-09-27  Jim Meyering  <meyering@ascend.com>
82816
82817         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82818
82819         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82820         ../configure.in, including a change from Gordon Matzigkeit to allow
82821         cross-compiling for the Hurd.
82822
82823         * m4/glibc.m4: New file/macro to test for the GNU C Library
82824         versions 1 and 2.  From Gordon Matzigkeit.
82825         Indent.
82826
82827 1998-09-21  Jim Meyering  <meyering@ascend.com>
82828
82829         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82830
82831 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82832
82833         Port nanosecond-resolution times to UnixWare 2.1.2 and
82834         pedantic Solaris 2.6.
82835
82836         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82837         AC_STRUCT_ST_MTIM.
82838         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82839         Generate name of ns member, instead of just 1 or undef.
82840         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82841
82842 1998-08-15  Jim Meyering  <meyering@ascend.com>
82843
82844         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82845         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82846         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82847         instead of jm_TYPE_SSIZE_T.
82848
82849 1998-08-12  Jim Meyering  <meyering@ascend.com>
82850
82851         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82852
82853 1998-08-02  Jim Meyering  <meyering@ascend.com>
82854
82855         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82856         in acconfig.h manually.
82857
82858 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82859
82860         * m4/st_mtim.m4: New file.
82861
82862 1998-07-28  Jim Meyering  <meyering@ascend.com>
82863
82864         * m4/utimes.m4: Undef stat.
82865
82866 1998-07-25  Jim Meyering  <meyering@ascend.com>
82867
82868         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82869         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82870
82871 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82872
82873         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82874         uid and gid actually remain unchanged.
82875
82876 1998-07-07  Jim Meyering  <meyering@ascend.com>
82877
82878         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82879
82880 1998-07-04  Jim Meyering  <meyering@ascend.com>
82881
82882         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82883         to prove that this macro can be used in packages without regex.c.
82884
82885 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82886
82887         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82888         is to be used.
82889
82890 1998-07-03  Jim Meyering  <meyering@ascend.com>
82891
82892         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82893
82894         * m4/gettext.m4: New file -- from gettext-0.10.35.
82895         * m4/lcmessage.m4: Likewise.
82896         * m4/progtest.m4: Likewise.
82897
82898         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82899         * m4/jm-macros.m4: Require the new macro.
82900
82901 1998-06-29  Jim Meyering  <meyering@ascend.com>
82902
82903         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82904         for the definition of NGROUPS (used in a system header included
82905         by sys/mount.h).
82906
82907 1998-06-28  Jim Meyering  <meyering@ascend.com>
82908
82909         * m4/ls-mntd-fs.m4: New file.
82910         * m4/fstypename.m4: New file.
82911
82912         * m4/jm-macros.m4: Require the new macro.
82913         * m4/jm-glibc-io.m4: New file.
82914
82915 1998-05-19  Jim Meyering  <meyering@ascend.com>
82916
82917         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82918         * m4/lchown.m4: New file.
82919
82920         * m4/Makefile.am.in: New file.
82921         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82922
82923 1998-05-14  Jim Meyering  <meyering@ascend.com>
82924
82925         * m4/Makefile.am (EXTRA_DIST): Add them.
82926         * m4/jm-macros.m4: New file.
82927         * m4/utimbuf.m4: New file.
82928
82929 1998-05-12  Jim Meyering  <meyering@ascend.com>
82930
82931         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82932
82933 1998-05-11  Jim Meyering  <meyering@ascend.com>
82934
82935         * m4/isc-posix.m4: New file.
82936
82937 1998-05-10  Jim Meyering  <meyering@ascend.com>
82938
82939         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82940
82941 1998-05-09  Jim Meyering  <meyering@ascend.com>
82942
82943         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82944         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82945         with automake.
82946
82947         * m4/ssize_t.m4: New file.
82948         * m4/mktime.m4: Remove file -- the new automake has this now.
82949
82950 1998-04-26  Jim Meyering  <meyering@ascend.com>
82951
82952         * m4/assert.m4: New file.
82953         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82954
82955 1998-04-05  Jim Meyering  <meyering@ascend.com>
82956
82957         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82958         (jm_PREREQ): Use it here.
82959
82960 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82961
82962         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82963         in acconfig.h.
82964
82965 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82966
82967         * m4/prereq.m4: New file.
82968         * m4/error.m4: New file.
82969         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82970
82971 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82972
82973         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82974         cache-check for the same variable -- that defeated the purpose of
82975         the test; the test program was never run.  This was a problem only
82976         on systems with losing getline functions -- HP-UX 10.20 is one.
82977         Reported by Bjorn Helgaas.
82978
82979 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82980
82981         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82982
82983 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82984
82985         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82986
82987         * m4/const.m4: New file.  Use an initializer in this declaration
82988         typedef int charset[2]; const charset x;
82989         Reported by Bob Glickstein.
82990
82991 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82992
82993         * m4/chown.m4: Fix reversed types on -1 args to chown.
82994         From Kaveh Ghazi.
82995
82996 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82997
82998         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82999         Add lseek and memchr.
83000
83001         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
83002         T.E.Dickey <dickey@clark.net> said that some older preprocessors
83003         have a 20-character limit on names.
83004
83005 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
83006
83007         * m4/inttypes_h.m4: New file.
83008         * m4/uintmax_t.m4: New file.
83009         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
83010
83011
83012         -----
83013
83014         Local Variables:
83015         coding: utf-8
83016         End:
83017
83018         Copyright (C) 1997-2011 Free Software Foundation, Inc.
83019
83020         Copying and distribution of this file, with or without
83021         modification, are permitted provided the copyright notice
83022         and this notice are preserved.