mpsort: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2
3         mpsort: Move AC_LIBOBJ invocations to module description.
4         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6
7 2011-05-23  Bruno Haible  <bruno@clisp.org>
8
9         modechange: Move AC_LIBOBJ invocations to module description.
10         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12
13 2011-05-23  Bruno Haible  <bruno@clisp.org>
14
15         mkdir-p: Move AC_LIBOBJ invocations to module description.
16         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18
19 2011-05-23  Bruno Haible  <bruno@clisp.org>
20
21         mkancesdirs: Move AC_LIBOBJ invocations to module description.
22         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
23         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
24
25 2011-05-23  Bruno Haible  <bruno@clisp.org>
26
27         mgetgroups: Move AC_LIBOBJ invocations to module description.
28         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
29         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
30
31 2011-05-23  Bruno Haible  <bruno@clisp.org>
32
33         memxor: Move AC_LIBOBJ invocations to module description.
34         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
35         * modules/memxor (Makefile.am): Augment lib_SOURCES.
36
37 2011-05-23  Bruno Haible  <bruno@clisp.org>
38
39         memcoll: Move AC_LIBOBJ invocations to module description.
40         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
41         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
42
43 2011-05-23  Bruno Haible  <bruno@clisp.org>
44
45         memcasecmp: Move AC_LIBOBJ invocations to module description.
46         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
47         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
48
49 2011-05-23  Bruno Haible  <bruno@clisp.org>
50
51         crypto/md5: Move AC_LIBOBJ invocations to module description.
52         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
53         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
54
55 2011-05-23  Bruno Haible  <bruno@clisp.org>
56
57         crypto/md4: Move AC_LIBOBJ invocations to module description.
58         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
59         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
60
61 2011-05-23  Bruno Haible  <bruno@clisp.org>
62
63         crypto/md2: Move AC_LIBOBJ invocations to module description.
64         * m4/md2.m4: Remove file.
65         * modules/crypto/md2 (Files): Remove it.
66         (configure.ac): Remove gl_MD2 call.
67         (Makefile.am): Augment lib_SOURCES.
68
69 2011-05-23  Bruno Haible  <bruno@clisp.org>
70
71         long-options: Move AC_LIBOBJ invocations to module description.
72         * m4/long-options.m4: Remove file.
73         * modules/long-options (Files): Remove it.
74         (configure.ac): Remove gl_LONG_OPTIONS call.
75         (Makefile.am): Augment lib_SOURCES.
76
77 2011-05-23  Bruno Haible  <bruno@clisp.org>
78
79         i-ring: Move AC_LIBOBJ invocations to module description.
80         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
81         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
82
83 2011-05-23  Bruno Haible  <bruno@clisp.org>
84
85         idcache: Move AC_LIBOBJ invocations to module description.
86         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
87         * modules/idcache (Makefile.am): Augment lib_SOURCES.
88
89 2011-05-23  Bruno Haible  <bruno@clisp.org>
90
91         human: Move AC_LIBOBJ invocations to module description.
92         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
93         * modules/human (Makefile.am): Augment lib_SOURCES.
94
95 2011-05-23  Bruno Haible  <bruno@clisp.org>
96
97         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
98         * m4/hmac-sha1.m4: Remove file.
99         * modules/crypto/hmac-sha1 (Files): Remove it.
100         (configure.ac): Remove gl_HMAC_SHA1 call.
101         (Makefile.am): Augment lib_SOURCES.
102
103 2011-05-23  Bruno Haible  <bruno@clisp.org>
104
105         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
106         * m4/hmac-md5.m4: Remove file.
107         * modules/crypto/hmac-md5 (Files): Remove it.
108         (configure.ac): Remove gl_HMAC_MD5 call.
109         (Makefile.am): Augment lib_SOURCES.
110
111 2011-05-23  Bruno Haible  <bruno@clisp.org>
112
113         hash: Move AC_LIBOBJ invocations to module description.
114         * m4/hash.m4: Remove file.
115         * modules/hash (Files): Remove it.
116         (configure.ac): Remove gl_HASH call.
117         (Makefile.am): Augment lib_SOURCES.
118
119 2011-05-23  Bruno Haible  <bruno@clisp.org>
120
121         hard-locale: Move AC_LIBOBJ invocations to module description.
122         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
123         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
124
125 2011-05-23  Bruno Haible  <bruno@clisp.org>
126
127         getugroups: Move AC_LIBOBJ invocations to module description.
128         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
129         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
130
131 2011-05-23  Bruno Haible  <bruno@clisp.org>
132
133         gettime: Move AC_LIBOBJ invocations to module description.
134         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
135         * modules/gettime (Makefile.am): Augment lib_SOURCES.
136
137 2011-05-23  Bruno Haible  <bruno@clisp.org>
138
139         getndelim2: Move AC_LIBOBJ invocations to module description.
140         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
141         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
142
143 2011-05-23  Bruno Haible  <bruno@clisp.org>
144
145         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
146         * m4/gc-pbkdf2-sha1.m4: Remove file.
147         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
148         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
149         (Makefile.am): Augment lib_SOURCES.
150
151 2011-05-23  Bruno Haible  <bruno@clisp.org>
152
153         fts: Move AC_LIBOBJ invocations to module description.
154         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
155         * modules/fts (configure.ac): ... to here.
156
157 2011-05-23  Bruno Haible  <bruno@clisp.org>
158
159         file-type: Move AC_LIBOBJ invocations to module description.
160         * m4/file-type.m4: Remove file.
161         * modules/file-type (Files): Remove it.
162         (configure.ac): Remove gl_FILE_TYPE call.
163         (Makefile.am): Augment lib_SOURCES.
164
165 2011-05-23  Bruno Haible  <bruno@clisp.org>
166
167         filenamecat*: Respect rules for use of AC_LIBOBJ.
168         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
169         Remove AC_LIBOBJ invocation.
170         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
171         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
172
173 2011-05-23  Bruno Haible  <bruno@clisp.org>
174
175         filemode: Move AC_LIBOBJ invocations to module description.
176         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
177         * modules/filemode (Makefile.am): Augment lib_SOURCES.
178
179 2011-05-23  Bruno Haible  <bruno@clisp.org>
180
181         openat-safer: Move AC_LIBOBJ invocations to module description.
182         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
183         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
184
185 2011-05-23  Bruno Haible  <bruno@clisp.org>
186
187         fcntl-safer: Move AC_LIBOBJ invocations to module description.
188         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
189         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
190
191 2011-05-23  Bruno Haible  <bruno@clisp.org>
192
193         exclude: Move AC_LIBOBJ invocations to module description.
194         * m4/exclude.m4: Remove file.
195         * modules/exclude (Files): Remove it.
196         (configure.ac): Remove gl_EXCLUDE call.
197         (Makefile.am): Augment lib_SOURCES.
198
199 2011-05-23  Bruno Haible  <bruno@clisp.org>
200
201         dirname*: Respect rules for use of AC_LIBOBJ.
202         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
203         invocations.
204         * modules/dirname (Makefile.am): Augment lib_SOURCES.
205         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
206
207 2011-05-23  Bruno Haible  <bruno@clisp.org>
208
209         dirent-safer: Move AC_LIBOBJ invocations to module description.
210         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
211         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
212
213 2011-05-23  Bruno Haible  <bruno@clisp.org>
214
215         crypto/des: Move AC_LIBOBJ invocations to module description.
216         * m4/des.m4: Remove file.
217         * modules/crypto/des (Files): Remove it.
218         (configure.ac): Remove gl_DES call.
219         (Makefile.am): Augment lib_SOURCES.
220
221 2011-05-23  Bruno Haible  <bruno@clisp.org>
222
223         cycle-check: Move AC_LIBOBJ invocations to module description.
224         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
225         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
226
227 2011-05-23  Bruno Haible  <bruno@clisp.org>
228
229         c-strtold: Move AC_LIBOBJ invocations to module description.
230         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
231         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
232
233 2011-05-23  Bruno Haible  <bruno@clisp.org>
234
235         c-strtod: Move AC_LIBOBJ invocations to module description.
236         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
237         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
238
239 2011-05-23  Bruno Haible  <bruno@clisp.org>
240
241         crc: Move AC_LIBOBJ invocations to module description.
242         * m4/crc.m4: Remove file.
243         * modules/crc (Files): Remove it.
244         (configure.ac): Remove gl_CRC call.
245         (Makefile.am): Augment lib_SOURCES.
246
247 2011-05-23  Bruno Haible  <bruno@clisp.org>
248
249         close-stream: Move AC_LIBOBJ invocations to module description.
250         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
251         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
252
253 2011-05-23  Bruno Haible  <bruno@clisp.org>
254
255         closeout: Move AC_LIBOBJ invocations to module description.
256         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
257         * modules/closeout (Makefile.am): Augment lib_SOURCES.
258
259 2011-05-23  Bruno Haible  <bruno@clisp.org>
260
261         closein: Move AC_LIBOBJ invocations to module description.
262         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
263         * modules/closein (Makefile.am): Augment lib_SOURCES.
264
265 2011-05-23  Bruno Haible  <bruno@clisp.org>
266
267         cloexec: Move AC_LIBOBJ invocations to module description.
268         * m4/cloexec.m4: Remove file.
269         * modules/cloexec (Files): Remove it.
270         (configure.ac): Remove gl_CLOEXEC call.
271         (Makefile.am): Augment lib_SOURCES.
272
273 2011-05-23  Bruno Haible  <bruno@clisp.org>
274
275         check-version: Move AC_LIBOBJ invocations to module description.
276         * m4/check-version.m4: Remove file.
277         * modules/check-version (Files): Remove it.
278         (configure.ac): Remove gl_CHECK_VERSION call.
279         (Makefile.am): Augment lib_SOURCES.
280
281 2011-05-23  Bruno Haible  <bruno@clisp.org>
282
283         chdir-safer: Move AC_LIBOBJ invocations to module description.
284         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
285         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
286
287 2011-05-23  Bruno Haible  <bruno@clisp.org>
288
289         canonicalize: Move AC_LIBOBJ invocations to module description.
290         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
291         AC_LIBOBJ invocation.
292         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
293
294 2011-05-23  Bruno Haible  <bruno@clisp.org>
295
296         canon-host: Move AC_LIBOBJ invocations to module description.
297         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
298         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
299         instead of gl_CANON_HOST.
300         (Makefile.am): Augment lib_SOURCES.
301
302 2011-05-23  Bruno Haible  <bruno@clisp.org>
303
304         backupfile: Move AC_LIBOBJ invocations to module description.
305         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
306         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
307
308 2011-05-23  Bruno Haible  <bruno@clisp.org>
309
310         argmatch: Move AC_LIBOBJ invocations to module description.
311         * m4/argmatch.m4: Remove file.
312         * modules/argmatch (Files): Remove it.
313         (configure.ac): Remove gl_ARGMATCH call.
314         (Makefile.am): Augment lib_SOURCES.
315
316 2011-05-23  Bruno Haible  <bruno@clisp.org>
317
318         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
319         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
320         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
321
322 2011-05-23  Bruno Haible  <bruno@clisp.org>
323
324         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
325         * m4/arcfour.m4: Remove file.
326         * modules/crypto/arcfour (Files): Remove it.
327         (configure.ac): Remove gl_ARCFOUR call.
328         (Makefile.am): Augment lib_SOURCES.
329
330 2011-05-22  Bruno Haible  <bruno@clisp.org>
331
332         write: Move AC_LIBOBJ invocations to module description.
333         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
334         * modules/write (configure.ac): ... to here.
335
336 2011-05-22  Bruno Haible  <bruno@clisp.org>
337
338         wmemset: Move AC_LIBOBJ invocations to module description.
339         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
340         here...
341         * modules/wmemset (configure.ac): ... to here.
342
343 2011-05-22  Bruno Haible  <bruno@clisp.org>
344
345         wmemmove: Move AC_LIBOBJ invocations to module description.
346         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
347         here...
348         * modules/wmemmove (configure.ac): ... to here.
349
350 2011-05-22  Bruno Haible  <bruno@clisp.org>
351
352         wmemcpy: Move AC_LIBOBJ invocations to module description.
353         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
354         here...
355         * modules/wmemcpy (configure.ac): ... to here.
356
357 2011-05-22  Bruno Haible  <bruno@clisp.org>
358
359         wmemcmp: Move AC_LIBOBJ invocations to module description.
360         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
361         here...
362         * modules/wmemcmp (configure.ac): ... to here.
363
364 2011-05-22  Bruno Haible  <bruno@clisp.org>
365
366         wmemchr: Move AC_LIBOBJ invocations to module description.
367         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
368         here...
369         * modules/wmemchr (configure.ac): ... to here.
370
371 2011-05-22  Bruno Haible  <bruno@clisp.org>
372
373         wcswidth: Move AC_LIBOBJ invocations to module description.
374         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
375         here...
376         * modules/wcswidth (configure.ac): ... to here.
377
378 2011-05-22  Bruno Haible  <bruno@clisp.org>
379
380         wcwidth: Respect rules for use of AC_LIBOBJ.
381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
382         invocation from here...
383         * modules/wcwidth (configure.ac): ... to here.
384         (Depends-on): Update conditions.
385
386 2011-05-22  Bruno Haible  <bruno@clisp.org>
387
388         wctype: Move AC_LIBOBJ invocations to module description.
389         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
390         invocation from here...
391         * modules/wctype (configure.ac): ... to here.
392         (Depends-on): Update conditions.
393
394 2011-05-22  Bruno Haible  <bruno@clisp.org>
395
396         wctrans: Move AC_LIBOBJ invocations to module description.
397         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
398         invocation from here...
399         * modules/wctrans (configure.ac): ... to here.
400
401 2011-05-22  Bruno Haible  <bruno@clisp.org>
402
403         wctomb: Move AC_LIBOBJ invocations to module description.
404         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
405         invocations from here...
406         * modules/wctomb (configure.ac): ... to here.
407
408 2011-05-22  Bruno Haible  <bruno@clisp.org>
409
410         wctob: Move AC_LIBOBJ invocations to module description.
411         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
412         gl_PREREQ_WCTOB invocations from here...
413         * modules/wctob (configure.ac): ... to here.
414         (Depends-on): Update conditions.
415
416 2011-05-22  Bruno Haible  <bruno@clisp.org>
417
418         wcsxfrm: Move AC_LIBOBJ invocations to module description.
419         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
420         here...
421         * modules/wcsxfrm (configure.ac): ... to here.
422
423 2011-05-22  Bruno Haible  <bruno@clisp.org>
424
425         wcstok: Move AC_LIBOBJ invocations to module description.
426         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
427         * modules/wcstok (configure.ac): ... to here.
428
429 2011-05-22  Bruno Haible  <bruno@clisp.org>
430
431         wcsstr: Move AC_LIBOBJ invocations to module description.
432         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
433         * modules/wcsstr (configure.ac): ... to here.
434
435 2011-05-22  Bruno Haible  <bruno@clisp.org>
436
437         wcsspn: Move AC_LIBOBJ invocations to module description.
438         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
439         * modules/wcsspn (configure.ac): ... to here.
440
441 2011-05-22  Bruno Haible  <bruno@clisp.org>
442
443         wcsrtombs: Move AC_LIBOBJ invocations to module description.
444         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
445         gl_PREREQ_WCSRTOMBS invocations from here...
446         * modules/wcsrtombs (configure.ac): ... to here.
447
448 2011-05-22  Bruno Haible  <bruno@clisp.org>
449
450         wcsrchr: Move AC_LIBOBJ invocations to module description.
451         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
452         here...
453         * modules/wcsrchr (configure.ac): ... to here.
454
455 2011-05-22  Bruno Haible  <bruno@clisp.org>
456
457         wcspbrk: Move AC_LIBOBJ invocations to module description.
458         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
459         here...
460         * modules/wcspbrk (configure.ac): ... to here.
461
462 2011-05-22  Bruno Haible  <bruno@clisp.org>
463
464         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
465         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
466         gl_PREREQ_WCSNRTOMBS invocations from here...
467         * modules/wcsnrtombs (configure.ac): ... to here.
468
469 2011-05-22  Bruno Haible  <bruno@clisp.org>
470
471         wcsnlen: Move AC_LIBOBJ invocations to module description.
472         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
473         here...
474         * modules/wcsnlen (configure.ac): ... to here.
475
476 2011-05-22  Bruno Haible  <bruno@clisp.org>
477
478         wcsncpy: Move AC_LIBOBJ invocations to module description.
479         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
480         here...
481         * modules/wcsncpy (configure.ac): ... to here.
482
483 2011-05-22  Bruno Haible  <bruno@clisp.org>
484
485         wcsncmp: Move AC_LIBOBJ invocations to module description.
486         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
487         here...
488         * modules/wcsncmp (configure.ac): ... to here.
489
490 2011-05-22  Bruno Haible  <bruno@clisp.org>
491
492         wcsncat: Move AC_LIBOBJ invocations to module description.
493         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
494         here...
495         * modules/wcsncat (configure.ac): ... to here.
496
497 2011-05-22  Bruno Haible  <bruno@clisp.org>
498
499         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
500         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
501         from here...
502         * modules/wcsncasecmp (configure.ac): ... to here.
503
504 2011-05-22  Bruno Haible  <bruno@clisp.org>
505
506         wcslen: Move AC_LIBOBJ invocations to module description.
507         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
508         * modules/wcslen (configure.ac): ... to here.
509
510 2011-05-22  Bruno Haible  <bruno@clisp.org>
511
512         wcsdup: Move AC_LIBOBJ invocations to module description.
513         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
514         * modules/wcsdup (configure.ac): ... to here.
515
516 2011-05-22  Bruno Haible  <bruno@clisp.org>
517
518         wcscspn: Move AC_LIBOBJ invocations to module description.
519         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
520         here...
521         * modules/wcscspn (configure.ac): ... to here.
522
523 2011-05-22  Bruno Haible  <bruno@clisp.org>
524
525         wcscpy: Move AC_LIBOBJ invocations to module description.
526         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
527         * modules/wcscpy (configure.ac): ... to here.
528
529 2011-05-22  Bruno Haible  <bruno@clisp.org>
530
531         wcscoll: Move AC_LIBOBJ invocations to module description.
532         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
533         here...
534         * modules/wcscoll (configure.ac): ... to here.
535
536 2011-05-22  Bruno Haible  <bruno@clisp.org>
537
538         wcscmp: Move AC_LIBOBJ invocations to module description.
539         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
540         * modules/wcscmp (configure.ac): ... to here.
541
542 2011-05-22  Bruno Haible  <bruno@clisp.org>
543
544         wcschr: Move AC_LIBOBJ invocations to module description.
545         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
546         * modules/wcschr (configure.ac): ... to here.
547
548 2011-05-22  Bruno Haible  <bruno@clisp.org>
549
550         wcscat: Move AC_LIBOBJ invocations to module description.
551         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
552         * modules/wcscat (configure.ac): ... to here.
553
554 2011-05-22  Bruno Haible  <bruno@clisp.org>
555
556         wcscasecmp: Move AC_LIBOBJ invocations to module description.
557         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
558         here...
559         * modules/wcscasecmp (configure.ac): ... to here.
560
561 2011-05-22  Bruno Haible  <bruno@clisp.org>
562
563         wcrtomb: Move AC_LIBOBJ invocations to module description.
564         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
565         invocations from here...
566         * modules/wcrtomb (configure.ac): ... to here.
567
568 2011-05-22  Bruno Haible  <bruno@clisp.org>
569
570         wcpncpy: Move AC_LIBOBJ invocations to module description.
571         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
572         here...
573         * modules/wcpncpy (configure.ac): ... to here.
574
575 2011-05-22  Bruno Haible  <bruno@clisp.org>
576
577         wcpcpy: Move AC_LIBOBJ invocations to module description.
578         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
579         * modules/wcpcpy (configure.ac): ... to here.
580
581 2011-05-22  Bruno Haible  <bruno@clisp.org>
582
583         waitpid: Move AC_LIBOBJ invocations to module description.
584         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
585         invocation from here...
586         * modules/waitpid (configure.ac): ... to here.
587
588 2011-05-22  Bruno Haible  <bruno@clisp.org>
589
590         utimensat: Move AC_LIBOBJ invocations to module description.
591         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
592         here...
593         * modules/utimensat (configure.ac): ... to here.
594
595 2011-05-22  Bruno Haible  <bruno@clisp.org>
596
597         usleep: Move AC_LIBOBJ invocations to module description.
598         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
599         here...
600         * modules/usleep (configure.ac): ... to here.
601
602 2011-05-22  Bruno Haible  <bruno@clisp.org>
603
604         unlockpt: Move AC_LIBOBJ invocations to module description.
605         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
606         gl_PREREQ_UNLOCKPT invocations from here...
607         * modules/unlockpt (configure.ac): ... to here.
608
609 2011-05-22  Bruno Haible  <bruno@clisp.org>
610
611         unlink: Respect rules for use of AC_LIBOBJ.
612         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
613         * modules/unlink (configure.ac): ... to here.
614
615 2011-05-22  Bruno Haible  <bruno@clisp.org>
616
617         uname: Move AC_LIBOBJ invocations to module description.
618         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
619         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
620         here...
621         * modules/uname (configure.ac): ... to here.
622
623 2011-05-22  Bruno Haible  <bruno@clisp.org>
624
625         ttyname_r: Move AC_LIBOBJ invocations to module description.
626         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
627         gl_PREREQ_TTYNAME_R invocations from here...
628         * modules/ttyname_r (configure.ac): ... to here.
629
630 2011-05-22  Bruno Haible  <bruno@clisp.org>
631
632         tsearch: Move AC_LIBOBJ invocations to module description.
633         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
634         invocations from here...
635         * modules/tsearch (configure.ac): ... to here.
636
637 2011-05-22  Bruno Haible  <bruno@clisp.org>
638
639         towctrans: Move AC_LIBOBJ invocations to module description.
640         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
641         AC_LIBOBJ invocation from here...
642         * modules/towctrans (configure.ac): ... to here.
643
644 2011-05-22  Bruno Haible  <bruno@clisp.org>
645
646         tmpfile: Move AC_LIBOBJ invocations to module description.
647         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
648         invocations from here...
649         * modules/tmpfile (configure.ac): ... to here.
650
651 2011-05-22  Bruno Haible  <bruno@clisp.org>
652
653         times: Move AC_LIBOBJ invocations to module description.
654         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
655         * modules/times (configure.ac): ... to here.
656
657 2011-05-22  Bruno Haible  <bruno@clisp.org>
658
659         time_r: Move AC_LIBOBJ invocations to module description.
660         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
661         invocations from here...
662         * modules/time_r (configure.ac): ... to here.
663
664 2011-05-22  Bruno Haible  <bruno@clisp.org>
665
666         timegm: Move AC_LIBOBJ invocations to module description.
667         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
668         invocations from here...
669         * modules/timegm (configure.ac): ... to here.
670
671 2011-05-22  Bruno Haible  <bruno@clisp.org>
672
673         tcgetsid: Move AC_LIBOBJ invocations to module description.
674         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
675         and gl_PREREQ_TCGETSID invocations from here...
676         * modules/tcgetsid (configure.ac): ... to here.
677         (Depends-on): Update conditions.
678
679 2011-05-22  Bruno Haible  <bruno@clisp.org>
680
681         symlinkat: Move AC_LIBOBJ invocations to module description.
682         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
683         here...
684         * modules/symlinkat (configure.ac): ... to here.
685
686 2011-05-22  Bruno Haible  <bruno@clisp.org>
687
688         symlink: Move AC_LIBOBJ invocations to module description.
689         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
690         here...
691         * modules/symlink (configure.ac): ... to here.
692
693 2011-05-22  Bruno Haible  <bruno@clisp.org>
694
695         strverscmp: Move AC_LIBOBJ invocations to module description.
696         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
697         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
698         from here...
699         * modules/strverscmp (configure.ac): ... to here.
700
701 2011-05-22  Bruno Haible  <bruno@clisp.org>
702
703         strtok_r: Move AC_LIBOBJ invocations to module description.
704         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
705         and gl_PREREQ_STRTOK_R invocations from here...
706         * modules/strtok_r (configure.ac): ... to here.
707         (Depends-on): Update conditions.
708
709 2011-05-22  Bruno Haible  <bruno@clisp.org>
710
711         strtoumax: Move AC_LIBOBJ invocations to module description.
712         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
713         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
714         from here...
715         * modules/strtoumax (configure.ac): ... to here.
716
717 2011-05-22  Bruno Haible  <bruno@clisp.org>
718
719         strtoimax: Move AC_LIBOBJ invocations to module description.
720         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
721         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
722         from here...
723         * modules/strtoimax (configure.ac): ... to here.
724
725 2011-05-22  Bruno Haible  <bruno@clisp.org>
726
727         strtoull: Move AC_LIBOBJ invocations to module description.
728         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
729         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
730         from here...
731         * modules/strtoull (configure.ac): ... to here.
732
733 2011-05-22  Bruno Haible  <bruno@clisp.org>
734
735         strtoll: Move AC_LIBOBJ invocations to module description.
736         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
737         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
738         here...
739         * modules/strtoll (configure.ac): ... to here.
740
741 2011-05-22  Bruno Haible  <bruno@clisp.org>
742
743         strtoul: Move AC_LIBOBJ invocations to module description.
744         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
745         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
746         * modules/strtoul (configure.ac): ... to here.
747
748 2011-05-22  Bruno Haible  <bruno@clisp.org>
749
750         strtol: Move AC_LIBOBJ invocations to module description.
751         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
752         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
753         * modules/strtol (configure.ac): ... to here.
754
755 2011-05-22  Bruno Haible  <bruno@clisp.org>
756
757         strtod: Move AC_LIBOBJ invocations to module description.
758         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
759         invocations from here...
760         * modules/strtod (configure.ac): ... to here.
761
762 2011-05-22  Bruno Haible  <bruno@clisp.org>
763
764         strstr*: Move AC_LIBOBJ invocations to module description.
765         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
766         invocations from here...
767         * modules/strstr-simple (configure.ac): ... to here.
768         * modules/strstr (configure.ac): ... and here.
769
770 2011-05-22  Bruno Haible  <bruno@clisp.org>
771
772         strsignal: Move AC_LIBOBJ invocations to module description.
773         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
774         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
775         * modules/strsignal (configure.ac): ... to here.
776         (Depends-on): Update conditions.
777
778 2011-05-22  Bruno Haible  <bruno@clisp.org>
779
780         strsep: Move AC_LIBOBJ invocations to module description.
781         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
782         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
783         here...
784         * modules/strsep (configure.ac): ... to here.
785
786 2011-05-22  Bruno Haible  <bruno@clisp.org>
787
788         strptime: Move AC_LIBOBJ invocations to module description.
789         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
790         gl_PREREQ_STRPTIME invocations from here...
791         * modules/strptime (configure.ac): ... to here.
792
793 2011-05-22  Bruno Haible  <bruno@clisp.org>
794
795         strpbrk: Move AC_LIBOBJ invocations to module description.
796         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
797         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
798         here...
799         * modules/strpbrk (configure.ac): ... to here.
800
801 2011-05-22  Bruno Haible  <bruno@clisp.org>
802
803         strnlen: Move AC_LIBOBJ invocations to module description.
804         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
805         invocations from here...
806         * modules/strnlen (configure.ac): ... to here.
807
808 2011-05-22  Bruno Haible  <bruno@clisp.org>
809
810         strndup: Move AC_LIBOBJ invocations to module description.
811         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
812         invocations from here...
813         * modules/strndup (configure.ac): ... to here.
814         (Depends-on): Update conditions.
815
816 2011-05-22  Bruno Haible  <bruno@clisp.org>
817
818         strncat: Move AC_LIBOBJ invocations to module description.
819         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
820         invocations from here...
821         * modules/strncat (configure.ac): ... to here.
822
823 2011-05-22  Bruno Haible  <bruno@clisp.org>
824
825         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
826         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
827         invocations from here...
828         * modules/strdup (configure.ac): ... to here.
829         * modules/strdup-posix (configure.ac): ... and here.
830
831 2011-05-22  Bruno Haible  <bruno@clisp.org>
832
833         strcspn: Move AC_LIBOBJ invocations to module description.
834         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
835         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
836         here...
837         * modules/strcspn (configure.ac): ... to here.
838
839 2011-05-22  Bruno Haible  <bruno@clisp.org>
840
841         strchrnul: Move AC_LIBOBJ invocations to module description.
842         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
843         gl_PREREQ_STRCHRNUL invocations from here...
844         * modules/strchrnul (configure.ac): ... to here.
845
846 2011-05-22  Bruno Haible  <bruno@clisp.org>
847
848         strcasestr*: Move AC_LIBOBJ invocations to module description.
849         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
850         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
851         * modules/strcasestr-simple (configure.ac): ... to here.
852         * modules/strcasestr (configure.ac): ... and here.
853
854 2011-05-22  Bruno Haible  <bruno@clisp.org>
855
856         strcase: Move AC_LIBOBJ invocations to module description.
857         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
858         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
859         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
860         gl_PREREQ_STRNCASECMP invocations from here...
861         * modules/strcase (configure.ac): ... to here.
862
863 2011-05-22  Bruno Haible  <bruno@clisp.org>
864
865         stpncpy: Move AC_LIBOBJ invocations to module description.
866         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
867         here...
868         * modules/stpncpy (configure.ac): ... to here.
869
870 2011-05-22  Bruno Haible  <bruno@clisp.org>
871
872         stpcpy: Move AC_LIBOBJ invocations to module description.
873         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
875         here...
876         * modules/stpcpy (configure.ac): ... to here.
877
878 2011-05-21  Bruno Haible  <bruno@clisp.org>
879
880         stat: Move AC_LIBOBJ invocations to module description.
881         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
882         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
883         here...
884         * modules/stat (configure.ac): ... to here.
885
886 2011-05-21  Bruno Haible  <bruno@clisp.org>
887
888         sleep: Move AC_LIBOBJ invocations to module description.
889         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
890         * modules/sleep (configure.ac): ... to here.
891
892 2011-05-21  Bruno Haible  <bruno@clisp.org>
893
894         signbit: Move AC_LIBOBJ invocations to module description.
895         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
896         * modules/signbit (configure.ac): ... to here.
897
898 2011-05-21  Bruno Haible  <bruno@clisp.org>
899
900         sigprocmask: Move AC_LIBOBJ invocations to module description.
901         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
902         gl_PREREQ_SIGPROMASK invocations from here...
903         * modules/sigprocmask (configure.ac): ... to here.
904
905 2011-05-21  Bruno Haible  <bruno@clisp.org>
906
907         sigaction: Move AC_LIBOBJ invocations to module description.
908         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
909         gl_PREREQ_SIGACTION invocations from here...
910         * modules/sigaction (configure.ac): ... to here.
911
912 2011-05-21  Bruno Haible  <bruno@clisp.org>
913
914         sig2str: Move AC_LIBOBJ invocations to module description.
915         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
916         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
917         here...
918         * modules/sig2str (configure.ac): ... to here.
919
920 2011-05-21  Bruno Haible  <bruno@clisp.org>
921
922         setlocale: Move AC_LIBOBJ invocations to module description.
923         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
924         gl_PREREQ_SETLOCALE invocations from here...
925         * modules/setlocale (configure.ac): ... to here.
926
927 2011-05-21  Bruno Haible  <bruno@clisp.org>
928
929         unsetenv: Move AC_LIBOBJ invocations to module description.
930         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
931         and gl_PREREQ_UNSETENV invocations from here...
932         * modules/unsetenv (configure.ac): ... to here.
933         (Depends-on): Update.
934
935 2011-05-21  Bruno Haible  <bruno@clisp.org>
936
937         setenv: Move AC_LIBOBJ invocations to module description.
938         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
939         here...
940         * modules/setenv (configure.ac): ... to here.
941
942 2011-05-21  Bruno Haible  <bruno@clisp.org>
943
944         selinux-h: Move AC_LIBOBJ invocations to module description.
945         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
946         AC_LIBOBJ invocation from here...
947         * modules/selinux-h (configure.ac): ... to here.
948
949 2011-05-21  Bruno Haible  <bruno@clisp.org>
950
951         select: Respect rules for use of AC_LIBOBJ.
952         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
953         here...
954         * modules/select (configure.ac): ... to here.
955
956 2011-05-21  Bruno Haible  <bruno@clisp.org>
957
958         scandir: Move AC_LIBOBJ invocations to module description.
959         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
960         invocations from here...
961         * modules/scandir (configure.ac): ... to here.
962
963 2011-05-21  Bruno Haible  <bruno@clisp.org>
964
965         rpmatch: Move AC_LIBOBJ invocations to module description.
966         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
967         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
968         here...
969         * modules/rpmatch (configure.ac): ... to here.
970
971 2011-05-21  Bruno Haible  <bruno@clisp.org>
972
973         rmdir: Respect rules for use of AC_LIBOBJ.
974         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
975         * modules/rmdir (configure.ac): ... to here.
976
977 2011-05-21  Bruno Haible  <bruno@clisp.org>
978
979         renameat: Move AC_LIBOBJ invocations to module description.
980         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
981         here...
982         * modules/renameat (configure.ac): ... to here.
983
984 2011-05-21  Bruno Haible  <bruno@clisp.org>
985
986         rename: Respect rules for use of AC_LIBOBJ.
987         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
988         here...
989         * modules/rename (configure.ac): ... to here.
990
991 2011-05-21  Bruno Haible  <bruno@clisp.org>
992
993         remove: Move AC_LIBOBJ invocations to module description.
994         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
995         here...
996         * modules/remove (configure.ac): ... to here.
997
998 2011-05-21  Bruno Haible  <bruno@clisp.org>
999
1000         relocatable-lib: Move AC_LIBOBJ invocations to module description.
1001         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
1002         macro.
1003         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
1004         * modules/relocatable-lib (configure.ac): ... to here.
1005         * modules/relocatable-prog-wrapper (configure.ac): Invoke
1006         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
1007
1008 2011-05-21  Bruno Haible  <bruno@clisp.org>
1009
1010         relocatable-prog: Move AC_LIBOBJ invocations to module description.
1011         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
1012         here...
1013         * modules/relocatable-prog (configure.ac): ... to here.
1014
1015 2011-05-21  Bruno Haible  <bruno@clisp.org>
1016
1017         regex: Move AC_LIBOBJ invocations to module description.
1018         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
1019         invocations from here...
1020         * modules/regex (configure.ac): ... to here.
1021
1022 2011-05-21  Bruno Haible  <bruno@clisp.org>
1023
1024         realloc-*: Move AC_LIBOBJ invocations to module description.
1025         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
1026         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
1027         AC_LIBOBJ invocations from here...
1028         * modules/realloc-gnu (configure.ac): ... to here.
1029         * modules/realloc-posix (configure.ac): ... and here.
1030
1031 2011-05-21  Bruno Haible  <bruno@clisp.org>
1032
1033         readutmp: Move AC_LIBOBJ invocations to module description.
1034         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
1035         * modules/readutmp (configure.ac): ... to here.
1036
1037 2011-05-21  Bruno Haible  <bruno@clisp.org>
1038
1039         readlinkat: Move AC_LIBOBJ invocations to module description.
1040         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
1041         here...
1042         * modules/readlinkat (configure.ac): ... to here.
1043
1044 2011-05-21  Bruno Haible  <bruno@clisp.org>
1045
1046         readlink: Move AC_LIBOBJ invocations to module description.
1047         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
1048         gl_PREREQ_READLINK invocations from here...
1049         * modules/readlink (configure.ac): ... to here.
1050
1051 2011-05-21  Bruno Haible  <bruno@clisp.org>
1052
1053         readline: Move AC_LIBOBJ invocations to module description.
1054         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
1055         gl_PREREQ_READLINE invocations from here...
1056         * modules/readline (configure.ac): ... to here.
1057
1058 2011-05-21  Bruno Haible  <bruno@clisp.org>
1059
1060         read: Move AC_LIBOBJ invocations to module description.
1061         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
1062         * modules/read (configure.ac): ... to here.
1063
1064 2011-05-21  Bruno Haible  <bruno@clisp.org>
1065
1066         rawmemchr: Move AC_LIBOBJ invocations to module description.
1067         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
1068         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
1069         from here...
1070         * modules/rawmemchr (configure.ac): ... to here.
1071
1072 2011-05-21  Bruno Haible  <bruno@clisp.org>
1073
1074         random_r: Move AC_LIBOBJ invocations to module description.
1075         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
1076         gl_PREREQ_RANDOM_R invocations from here...
1077         * modules/random_r (configure.ac): ... to here.
1078
1079 2011-05-21  Bruno Haible  <bruno@clisp.org>
1080
1081         pwrite: Move AC_LIBOBJ invocations to module description.
1082         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
1083         * modules/pwrite (configure.ac): ... to here.
1084
1085 2011-05-21  Bruno Haible  <bruno@clisp.org>
1086
1087         putenv: Move AC_LIBOBJ invocations to module description.
1088         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
1089         * modules/putenv (configure.ac): ... to here.
1090
1091 2011-05-21  Bruno Haible  <bruno@clisp.org>
1092
1093         login_tty: Move AC_LIBOBJ invocations to module description.
1094         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
1095         * modules/login_tty (configure.ac): ... to here.
1096
1097 2011-05-21  Bruno Haible  <bruno@clisp.org>
1098
1099         openpty: Move AC_LIBOBJ invocations to module description.
1100         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
1101         * modules/openpty (configure.ac): ... to here.
1102
1103 2011-05-21  Bruno Haible  <bruno@clisp.org>
1104
1105         forkpty: Move AC_LIBOBJ invocations to module description.
1106         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
1107         * modules/forkpty (configure.ac): ... to here.
1108
1109 2011-05-21  Bruno Haible  <bruno@clisp.org>
1110
1111         ptsname: Move AC_LIBOBJ invocations to module description.
1112         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
1113         invocations from here...
1114         * modules/ptsname (configure.ac): ... to here.
1115
1116 2011-05-21  Bruno Haible  <bruno@clisp.org>
1117
1118         pread: Move AC_LIBOBJ invocations to module description.
1119         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
1120         * modules/pread (configure.ac): ... to here.
1121
1122 2011-05-21  Bruno Haible  <bruno@clisp.org>
1123
1124         posix_spawn*: Move AC_LIBOBJ invocations to module description.
1125         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
1126         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
1127         * modules/posix_spawn (configure.ac): ... to here.
1128         * modules/posix_spawnp (configure.ac): ... and here.
1129
1130 2011-05-21  Bruno Haible  <bruno@clisp.org>
1131
1132         popen: Move AC_LIBOBJ invocations to module description.
1133         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
1134         invocations from here...
1135         * modules/popen (configure.ac): ... to here.
1136
1137 2011-05-21  Bruno Haible  <bruno@clisp.org>
1138
1139         poll: Move AC_LIBOBJ invocations to module description.
1140         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
1141         invocations from here...
1142         * modules/poll (configure.ac): ... to here.
1143
1144 2011-05-21  Bruno Haible  <bruno@clisp.org>
1145
1146         pipe-posix: Move AC_LIBOBJ invocations to module description.
1147         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
1148         * modules/pipe-posix (configure.ac): ... to here.
1149
1150 2011-05-21  Bruno Haible  <bruno@clisp.org>
1151
1152         openat: Respect rules for use of AC_LIBOBJ.
1153         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
1154         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1155         * modules/openat (configure.ac): ... to here.
1156
1157 2011-05-21  Bruno Haible  <bruno@clisp.org>
1158
1159         obstack-printf*: Move AC_LIBOBJ invocations to module description.
1160         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
1161         invocation from here...
1162         * modules/obstack-printf (configure.ac): ... to here.
1163         * modules/obstack-printf-posix (configure.ac): ... and here.
1164
1165 2011-05-21  Bruno Haible  <bruno@clisp.org>
1166
1167         nl_langinfo: Move AC_LIBOBJ invocations to module description.
1168         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
1169         from here...
1170         * modules/nl_langinfo (configure.ac): ... to here.
1171
1172 2011-05-21  Bruno Haible  <bruno@clisp.org>
1173
1174         nanosleep: Move AC_LIBOBJ invocations to module description.
1175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
1176         gl_PREREQ_NANOSLEEP invocations from here...
1177         * modules/nanosleep (configure.ac): ... to here.
1178
1179 2011-05-21  Bruno Haible  <bruno@clisp.org>
1180
1181         mountlist: Move AC_LIBOBJ invocations to module description.
1182         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
1183         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
1184         * modules/mountlist (configure.ac): ... to here.
1185
1186 2011-05-21  Bruno Haible  <bruno@clisp.org>
1187
1188         mktime: Respect rules for use of AC_LIBOBJ.
1189         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
1190         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
1191         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
1192         (gl_FUNC_MKTIME_INTERNAL): ... and here...
1193         * modules/mktime (configure.ac): ... to here.
1194         * modules/mktime-internal (configure.ac): ... and here.
1195         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
1196
1197 2011-05-21  Bruno Haible  <bruno@clisp.org>
1198
1199         mkstemps: Move AC_LIBOBJ invocations to module description.
1200         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
1201         here...
1202         * modules/mkstemps (configure.ac): ... to here.
1203
1204 2011-05-21  Bruno Haible  <bruno@clisp.org>
1205
1206         mkstemp: Move AC_LIBOBJ invocations to module description.
1207         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
1208         gl_PREREQ_MKSTEMP invocations from here...
1209         * modules/mkstemp (configure.ac): ... to here.
1210
1211 2011-05-21  Bruno Haible  <bruno@clisp.org>
1212
1213         mkostemps: Move AC_LIBOBJ invocations to module description.
1214         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
1215         here...
1216         * modules/mkostemps (configure.ac): ... to here.
1217
1218 2011-05-21  Bruno Haible  <bruno@clisp.org>
1219
1220         mkostemp: Move AC_LIBOBJ invocations to module description.
1221         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
1222         gl_PREREQ_MKOSTEMP invocations from here...
1223         * modules/mkostemp (configure.ac): ... to here.
1224
1225 2011-05-21  Bruno Haible  <bruno@clisp.org>
1226
1227         mknod: Move AC_LIBOBJ invocations to module description.
1228         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
1229         * modules/mknod (configure.ac): ... to here.
1230
1231 2011-05-21  Bruno Haible  <bruno@clisp.org>
1232
1233         mkfifoat: Move AC_LIBOBJ invocations to module description.
1234         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
1235         here...
1236         * modules/mkfifoat (configure.ac): ... to here.
1237
1238 2011-05-21  Bruno Haible  <bruno@clisp.org>
1239
1240         mkfifo: Respect rules for use of AC_LIBOBJ.
1241         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
1242         here...
1243         * modules/mkfifo (configure.ac): ... to here.
1244
1245 2011-05-21  Bruno Haible  <bruno@clisp.org>
1246
1247         mkdtemp: Move AC_LIBOBJ invocations to module description.
1248         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
1249         invocations from here...
1250         * modules/mkdtemp (configure.ac): ... to here.
1251
1252 2011-05-21  Bruno Haible  <bruno@clisp.org>
1253
1254         mkdir: Move AC_LIBOBJ invocations to module description.
1255         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
1256         * modules/mkdir (configure.ac): ... to here.
1257
1258 2011-05-21  Bruno Haible  <bruno@clisp.org>
1259
1260         memset: Move AC_LIBOBJ invocations to module description.
1261         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
1262         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
1263         here...
1264         * modules/memset (configure.ac): ... to here.
1265
1266 2011-05-21  Bruno Haible  <bruno@clisp.org>
1267
1268         memrchr: Move AC_LIBOBJ invocations to module description.
1269         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
1270         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
1271         here...
1272         * modules/memrchr (configure.ac): ... to here.
1273
1274 2011-05-21  Bruno Haible  <bruno@clisp.org>
1275
1276         mempcpy: Move AC_LIBOBJ invocations to module description.
1277         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
1278         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
1279         here...
1280         * modules/mempcpy (configure.ac): ... to here.
1281
1282 2011-05-21  Bruno Haible  <bruno@clisp.org>
1283
1284         memmove: Move AC_LIBOBJ invocations to module description.
1285         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
1286         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
1287         here...
1288         * modules/memmove (configure.ac): ... to here.
1289
1290 2011-05-21  Bruno Haible  <bruno@clisp.org>
1291
1292         memmem*: Move AC_LIBOBJ invocations to module description.
1293         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
1294         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
1295         here...
1296         (gl_FUNC_MEMMEM): ... and here...
1297         * modules/memmem-simple (configure.ac): ... to here.
1298         * modules/memmem (configure.ac): ... and here.
1299
1300 2011-05-21  Bruno Haible  <bruno@clisp.org>
1301
1302         memcpy: Move AC_LIBOBJ invocations to module description.
1303         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
1304         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
1305         here...
1306         * modules/memcpy (configure.ac): ... to here.
1307
1308 2011-05-21  Bruno Haible  <bruno@clisp.org>
1309
1310         memcmp: Simplify autoconf macro.
1311         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
1312         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
1313         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
1314
1315 2011-05-21  Bruno Haible  <bruno@clisp.org>
1316
1317         memcmp: Move AC_LIBOBJ invocations to module description.
1318         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
1319         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
1320         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
1321         * modules/memcmp (configure.ac): ... to here.
1322         (Depends-on): Update conditions.
1323
1324 2011-05-21  Bruno Haible  <bruno@clisp.org>
1325
1326         memchr: Respect rules for use of AC_LIBOBJ.
1327         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
1328         invocations from here...
1329         * modules/memchr (configure.ac): ... to here.
1330
1331 2011-05-21  Bruno Haible  <bruno@clisp.org>
1332
1333         mbtowc: Move AC_LIBOBJ invocations to module description.
1334         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1335         invocations from here...
1336         * modules/mbtowc (configure.ac): ... to here.
1337
1338 2011-05-21  Bruno Haible  <bruno@clisp.org>
1339
1340         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1341         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1342         gl_PREREQ_MBSRTOWCS invocations from here...
1343         * modules/mbsrtowcs (configure.ac): ... to here.
1344
1345 2011-05-21  Bruno Haible  <bruno@clisp.org>
1346
1347         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1348         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1349         gl_PREREQ_MBSNRTOWCS invocations from here...
1350         * modules/mbsnrtowcs (configure.ac): ... to here.
1351
1352 2011-05-21  Bruno Haible  <bruno@clisp.org>
1353
1354         mbsinit: Move AC_LIBOBJ invocations to module description.
1355         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1356         invocations from here...
1357         * modules/mbsinit (configure.ac): ... to here.
1358
1359 2011-05-21  Bruno Haible  <bruno@clisp.org>
1360
1361         mbrlen: Move AC_LIBOBJ invocations to module description.
1362         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1363         invocations from here...
1364         * modules/mbrlen (configure.ac): ... to here.
1365
1366 2011-05-21  Bruno Haible  <bruno@clisp.org>
1367
1368         mbrtowc: Respect rules for use of AC_LIBOBJ.
1369         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1370         invocations from here...
1371         * modules/mbrtowc (configure.ac): ... to here.
1372
1373 2011-05-21  Bruno Haible  <bruno@clisp.org>
1374
1375         malloc-*: Move AC_LIBOBJ invocations to module description.
1376         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1377         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1378         AC_LIBOBJ invocations from here...
1379         * modules/malloc-gnu (configure.ac): ... to here.
1380         * modules/malloc-posix (configure.ac): ... and here.
1381
1382 2011-05-21  Bruno Haible  <bruno@clisp.org>
1383
1384         lstat, openat: Respect rules for use of AC_LIBOBJ.
1385         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1386         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1387         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1388         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1389         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1390         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1391         here.
1392         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1393
1394 2011-05-21  Bruno Haible  <bruno@clisp.org>
1395
1396         lseek: Move AC_LIBOBJ invocations to module description.
1397         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1398         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1399         * modules/lseek (configure.ac): ... to here.
1400
1401 2011-05-21  Bruno Haible  <bruno@clisp.org>
1402
1403         linkat: Move AC_LIBOBJ invocations to module description.
1404         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1405         here...
1406         * modules/linkat (configure.ac): ... to here.
1407
1408 2011-05-21  Bruno Haible  <bruno@clisp.org>
1409
1410         link: Respect rules for use of AC_LIBOBJ.
1411         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1412         * modules/link (configure.ac): ... to here.
1413
1414 2011-05-21  Bruno Haible  <bruno@clisp.org>
1415
1416         lchown: Move AC_LIBOBJ invocations to module description.
1417         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1418         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1419         * modules/lchown (configure.ac): ... to here.
1420
1421 2011-05-21  Bruno Haible  <bruno@clisp.org>
1422
1423         iswctype: Move AC_LIBOBJ invocations to module description.
1424         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1425         here...
1426         * modules/iswctype (configure.ac): ... to here.
1427
1428 2011-05-21  Bruno Haible  <bruno@clisp.org>
1429
1430         iswblank: Move AC_LIBOBJ invocations to module description.
1431         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1432         here...
1433         * modules/iswblank (configure.ac): ... to here.
1434
1435 2011-05-21  Bruno Haible  <bruno@clisp.org>
1436
1437         atanl: Move AC_LIBOBJ invocations to module description.
1438         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1439         * modules/atanl (configure.ac): ... to here.
1440
1441 2011-05-21  Bruno Haible  <bruno@clisp.org>
1442
1443         acosl: Move AC_LIBOBJ invocations to module description.
1444         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1445         * modules/acosl (configure.ac): ... to here.
1446
1447 2011-05-21  Bruno Haible  <bruno@clisp.org>
1448
1449         asinl: Respect rules for use of AC_LIBOBJ.
1450         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1451         * modules/asinl (configure.ac): ... to here.
1452
1453 2011-05-21  Bruno Haible  <bruno@clisp.org>
1454
1455         tanl: Move AC_LIBOBJ invocations to module description.
1456         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1457         * modules/tanl (configure.ac): ... to here.
1458
1459 2011-05-21  Bruno Haible  <bruno@clisp.org>
1460
1461         cosl: Move AC_LIBOBJ invocations to module description.
1462         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1463         * modules/cosl (configure.ac): ... to here.
1464
1465 2011-05-21  Bruno Haible  <bruno@clisp.org>
1466
1467         sinl: Move AC_LIBOBJ invocations to module description.
1468         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1469         * modules/sinl (configure.ac): ... to here.
1470
1471 2011-05-21  Bruno Haible  <bruno@clisp.org>
1472
1473         logl: Move AC_LIBOBJ invocations to module description.
1474         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1475         * modules/logl (configure.ac): ... to here.
1476
1477 2011-05-21  Bruno Haible  <bruno@clisp.org>
1478
1479         expl: Move AC_LIBOBJ invocations to module description.
1480         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1481         * modules/expl (configure.ac): ... to here.
1482
1483 2011-05-21  Bruno Haible  <bruno@clisp.org>
1484
1485         roundl: Move AC_LIBOBJ invocations to module description.
1486         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1487         * modules/roundl (configure.ac): ... to here.
1488
1489 2011-05-21  Bruno Haible  <bruno@clisp.org>
1490
1491         round: Move AC_LIBOBJ invocations to module description.
1492         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1493         * modules/round (configure.ac): ... to here.
1494
1495 2011-05-21  Bruno Haible  <bruno@clisp.org>
1496
1497         roundf: Move AC_LIBOBJ invocations to module description.
1498         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1499         * modules/roundf (configure.ac): ... to here.
1500
1501 2011-05-21  Bruno Haible  <bruno@clisp.org>
1502
1503         truncl: Move AC_LIBOBJ invocations to module description.
1504         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1505         * modules/truncl (configure.ac): ... to here.
1506
1507 2011-05-21  Bruno Haible  <bruno@clisp.org>
1508
1509         trunc: Move AC_LIBOBJ invocations to module description.
1510         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1511         * modules/trunc (configure.ac): ... to here.
1512
1513 2011-05-21  Bruno Haible  <bruno@clisp.org>
1514
1515         truncf: Move AC_LIBOBJ invocations to module description.
1516         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1517         * modules/truncf (configure.ac): ... to here.
1518
1519 2011-05-21  Bruno Haible  <bruno@clisp.org>
1520
1521         ceill: Move AC_LIBOBJ invocations to module description.
1522         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1523         * modules/ceill (configure.ac): ... to here.
1524
1525 2011-05-21  Bruno Haible  <bruno@clisp.org>
1526
1527         ceil: Move AC_LIBOBJ invocations to module description.
1528         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1529         * modules/ceil (configure.ac): ... to here.
1530
1531 2011-05-21  Bruno Haible  <bruno@clisp.org>
1532
1533         ceilf: Move AC_LIBOBJ invocations to module description.
1534         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1535         * modules/ceilf (configure.ac): ... to here.
1536
1537 2011-05-21  Bruno Haible  <bruno@clisp.org>
1538
1539         floorl: Respect rules for use of AC_LIBOBJ.
1540         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1541         * modules/floorl (configure.ac): ... to here.
1542
1543 2011-05-21  Bruno Haible  <bruno@clisp.org>
1544
1545         floor: Respect rules for use of AC_LIBOBJ.
1546         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1547         * modules/floor (configure.ac): ... to here.
1548
1549 2011-05-21  Bruno Haible  <bruno@clisp.org>
1550
1551         floorf: Move AC_LIBOBJ invocations to module description.
1552         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1553         * modules/floorf (configure.ac): ... to here.
1554
1555 2011-05-20  Bruno Haible  <bruno@clisp.org>
1556
1557         sqrtl: Respect rules for use of AC_LIBOBJ.
1558         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1559         * modules/sqrtl (configure.ac): ... to here.
1560
1561 2011-05-20  Bruno Haible  <bruno@clisp.org>
1562
1563         ldexpl: Respect rules for use of AC_LIBOBJ.
1564         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1565         * modules/ldexpl (configure.ac): ... to here.
1566
1567 2011-05-20  Bruno Haible  <bruno@clisp.org>
1568
1569         frexpl*: Respect rules for use of AC_LIBOBJ.
1570         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1571         invocation from here...
1572         * modules/frexpl (configure.ac): ... to here.
1573         * modules/frexpl-nolibm (configure.ac): ... and here.
1574
1575 2011-05-20  Bruno Haible  <bruno@clisp.org>
1576
1577         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1578         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1579         invocation from here...
1580         * modules/frexp (configure.ac): ... to here.
1581         * modules/frexp-nolibm (configure.ac): ... and here.
1582
1583 2011-05-20  Bruno Haible  <bruno@clisp.org>
1584
1585         isnan: Respect rules for use of AC_LIBOBJ.
1586         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1587         invocations here.
1588         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1589         REPLACE_ISNAN.
1590         * modules/isnand (configure.ac): Likewise.
1591         * modules/isnanl (configure.ac): Likewise.
1592
1593 2011-05-20  Bruno Haible  <bruno@clisp.org>
1594
1595         isnanl*: Respect rules for use of AC_LIBOBJ.
1596         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1597         invocation from here...
1598         * modules/isnanl (configure.ac): ... to here.
1599         * modules/isnanl-nolibm (configure.ac): ... and here.
1600
1601 2011-05-20  Bruno Haible  <bruno@clisp.org>
1602
1603         isnand*: Move AC_LIBOBJ invocations to module description.
1604         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1605         invocation from here...
1606         * modules/isnand (configure.ac): ... to here.
1607         * modules/isnand-nolibm (configure.ac): ... and here.
1608
1609 2011-05-20  Bruno Haible  <bruno@clisp.org>
1610
1611         isnanf*: Move AC_LIBOBJ invocations to module description.
1612         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1613         invocation from here...
1614         * modules/isnanf (configure.ac): ... to here.
1615         * modules/isnanf-nolibm (configure.ac): ... and here.
1616
1617 2011-05-20  Bruno Haible  <bruno@clisp.org>
1618
1619         isnan*: Separate the AC_LIBOBJ invocations.
1620         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1621         AC_LIBOBJ invocation.
1622         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1623         here.
1624         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1625         AC_LIBOBJ invocation.
1626         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1627         here.
1628         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1629         AC_LIBOBJ invocation.
1630         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1631         here.
1632         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1633
1634 2011-05-08  Bruno Haible  <bruno@clisp.org>
1635
1636         isinf: Move AC_LIBOBJ invocations to module description.
1637         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1638         * modules/isinf (configure.ac): ... to here.
1639
1640 2011-05-08  Bruno Haible  <bruno@clisp.org>
1641
1642         isfinite: Move AC_LIBOBJ invocations to module description.
1643         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1644         * modules/isfinite (configure.ac): ... to here.
1645
1646 2011-05-08  Bruno Haible  <bruno@clisp.org>
1647
1648         isblank: Move AC_LIBOBJ invocations to module description.
1649         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1650         here...
1651         * modules/isblank (configure.ac): ... to here.
1652
1653 2011-05-08  Bruno Haible  <bruno@clisp.org>
1654
1655         isapipe: Move AC_LIBOBJ invocations to module description.
1656         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1657         gl_PREREQ_ISAPIPE invocations from here...
1658         * modules/isapipe (configure.ac): ... to here.
1659         (Depends-on): Update condition.
1660
1661 2011-05-08  Bruno Haible  <bruno@clisp.org>
1662
1663         ioctl: Move AC_LIBOBJ invocations to module description.
1664         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1665         invocations from here...
1666         * modules/ioctl (configure.ac): ... to here.
1667         (Depends-on): Update condition.
1668
1669 2011-05-08  Bruno Haible  <bruno@clisp.org>
1670
1671         imaxdiv: Move AC_LIBOBJ invocations to module description.
1672         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1673         invocations from here...
1674         * modules/imaxdiv (configure.ac): ... to here.
1675
1676 2011-05-08  Bruno Haible  <bruno@clisp.org>
1677
1678         imaxabs: Move AC_LIBOBJ invocations to module description.
1679         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1680         invocations from here...
1681         * modules/imaxabs (configure.ac): ... to here.
1682
1683 2011-05-08  Bruno Haible  <bruno@clisp.org>
1684
1685         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1686         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1687         AC_LIBOBJ invocations from here...
1688         * modules/getaddrinfo (configure.ac): ... to here.
1689         (Depends-on): Add conditions.
1690
1691 2011-05-08  Bruno Haible  <bruno@clisp.org>
1692
1693         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1694         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1695         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1696         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1697         (gl_PREREQ_INET_PTON): ... from here.
1698         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1699         gl_PREREQ_INET_PTON here.
1700         (Depends-on): Update condition.
1701
1702 2011-05-08  Bruno Haible  <bruno@clisp.org>
1703
1704         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1705         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1706         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1707         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1708         (gl_PREREQ_INET_NTOP): ... from here.
1709         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1710         gl_PREREQ_INET_NTOP here.
1711         (Depends-on): Update condition.
1712
1713 2011-05-08  Bruno Haible  <bruno@clisp.org>
1714
1715         iconv_open: Move AC_LIBOBJ invocations to module description.
1716         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1717         AC_LIBOBJ invocations from here...
1718         * modules/iconv_open (configure.ac): ... to here.
1719
1720 2011-05-08  Bruno Haible  <bruno@clisp.org>
1721
1722         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1723         If module 'iconv_open' is among the main modules and module
1724         'iconv_open-utf' is among the tests dependencies, then
1725         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1726         return the special iconv_t values. Therefore iconv() and iconv_close()
1727         must support these special iconv_t values, already in lib, not only in
1728         tests.
1729         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1730         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1731         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1732         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1733         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1734         (Depends-on): Add the dependencies of iconv_open-utf.
1735         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1736         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1737         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1738
1739 2011-05-08  Bruno Haible  <bruno@clisp.org>
1740
1741         group-member: Move AC_LIBOBJ invocations to module description.
1742         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1743         gl_PREREQ_GROUP_MEMBER invocations from here...
1744         * modules/group-member (configure.ac): ... to here.
1745
1746 2011-05-08  Bruno Haible  <bruno@clisp.org>
1747
1748         grantpt: Move AC_LIBOBJ invocations to module description.
1749         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1750         invocations from here...
1751         * modules/grantpt (configure.ac): ... to here.
1752
1753 2011-05-08  Bruno Haible  <bruno@clisp.org>
1754
1755         glob: Move AC_LIBOBJ invocations to module description.
1756         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1757         from here...
1758         * modules/glob (configure.ac): ... to here.
1759
1760 2011-05-08  Bruno Haible  <bruno@clisp.org>
1761
1762         getusershell: Move AC_LIBOBJ invocations to module description.
1763         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1764         Move AC_LIBOBJ invocation from here...
1765         * modules/getusershell (configure.ac): ... to here.
1766         (Depends-on): Update condition.
1767
1768 2011-05-08  Bruno Haible  <bruno@clisp.org>
1769
1770         gettimeofday: Move AC_LIBOBJ invocations to module description.
1771         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1772         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1773         gl_PREREQ_GETTIMEOFDAY invocations from here...
1774         * modules/gettimeofday (configure.ac): ... to here.
1775
1776 2011-05-08  Bruno Haible  <bruno@clisp.org>
1777
1778         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1779         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1780         just gl_FUNC_TZSET.
1781         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1782         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1783         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1784         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1785
1786 2011-05-08  Bruno Haible  <bruno@clisp.org>
1787
1788         getsubopt: Move AC_LIBOBJ invocations to module description.
1789         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1790         gl_PREREQ_GETSUBOPT invocations from here...
1791         * modules/getsubopt (configure.ac): ... to here.
1792
1793 2011-05-08  Bruno Haible  <bruno@clisp.org>
1794
1795         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1796         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1797         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1798         * modules/getpass-gnu (configure.ac): ... to here.
1799
1800 2011-05-08  Bruno Haible  <bruno@clisp.org>
1801
1802         getpass: Move AC_LIBOBJ invocations to module description.
1803         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1804         gl_PREREQ_GETPASS invocations from here...
1805         * modules/getpass (configure.ac): ... to here.
1806
1807 2011-05-08  Bruno Haible  <bruno@clisp.org>
1808
1809         getpagesize: Move AC_LIBOBJ invocations to module description.
1810         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1811         from here...
1812         * modules/getpagesize (configure.ac): ... to here.
1813
1814 2011-05-08  Bruno Haible  <bruno@clisp.org>
1815
1816         getopt: Move AC_LIBOBJ invocations to module description.
1817         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1818         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1819         invocations from here...
1820         * modules/getopt-gnu (configure.ac): ... to here.
1821         * modules/getopt-posix (configure.ac): ... and here.
1822         (Depends-on): Update condition.
1823
1824 2011-05-08  Bruno Haible  <bruno@clisp.org>
1825
1826         getopt, argp: Respect rules for use of AC_LIBOBJ.
1827         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1828         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1829         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1830         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1831
1832 2011-05-08  Bruno Haible  <bruno@clisp.org>
1833
1834         getlogin_r: Move AC_LIBOBJ invocations to module description.
1835         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1836         gl_PREREQ_GETLOGIN_R invocations from here...
1837         * modules/getlogin_r (configure.ac): ... to here.
1838
1839 2011-05-08  Bruno Haible  <bruno@clisp.org>
1840
1841         getlogin: Move AC_LIBOBJ invocations to module description.
1842         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1843         here...
1844         * modules/getlogin (configure.ac): ... to here.
1845
1846 2011-05-08  Bruno Haible  <bruno@clisp.org>
1847
1848         getloadavg: Move AC_LIBOBJ invocations to module description.
1849         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1850         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1851         * modules/getloadavg (configure.ac): ... to here.
1852
1853 2011-05-08  Bruno Haible  <bruno@clisp.org>
1854
1855         gethrxtime: Move AC_LIBOBJ invocations to module description.
1856         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1857         LIB_GETHRXTIME from here...
1858         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1859         invocations from here...
1860         * modules/gethrxtime (configure.ac): ... to here.
1861
1862 2011-05-08  Bruno Haible  <bruno@clisp.org>
1863
1864         gethostname: Move AC_LIBOBJ invocations to module description.
1865         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1866         gl_PREREQ_GETHOSTNAME invocations from here...
1867         * modules/gethostname (configure.ac): ... to here.
1868
1869 2011-05-08  Bruno Haible  <bruno@clisp.org>
1870
1871         getgroups: Move AC_LIBOBJ invocations to module description.
1872         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1873         here...
1874         * modules/getgroups (configure.ac): ... to here.
1875
1876 2011-05-08  Bruno Haible  <bruno@clisp.org>
1877
1878         getdtablesize: Move AC_LIBOBJ invocations to module description.
1879         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1880         invocation from here...
1881         * modules/getdtablesize (configure.ac): ... to here.
1882
1883 2011-05-08  Bruno Haible  <bruno@clisp.org>
1884
1885         getdomainname: Move AC_LIBOBJ invocations to module description.
1886         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1887         gl_PREREQ_GETDOMAINNAME invocations from here...
1888         * modules/getdomainname (configure.ac): ... to here.
1889
1890 2011-05-08  Bruno Haible  <bruno@clisp.org>
1891
1892         getline: Move AC_LIBOBJ invocations to module description.
1893         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1894         invocations from here...
1895         * modules/getline (configure.ac): ... to here.
1896
1897 2011-05-08  Bruno Haible  <bruno@clisp.org>
1898
1899         getline: Simplify.
1900         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1901         It's already handled through the module dependency.
1902
1903 2011-05-08  Bruno Haible  <bruno@clisp.org>
1904
1905         getdelim: Move AC_LIBOBJ invocations to module description.
1906         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1907         and gl_PREREQ_GETDELIM invocations from here...
1908         * modules/getdelim (configure.ac): ... to here.
1909         (Depends-on): Fix condition.
1910
1911 2011-05-08  Bruno Haible  <bruno@clisp.org>
1912
1913         getcwd: Move AC_LIBOBJ invocations to module description.
1914         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1915         invocations from here...
1916         * modules/getcwd (configure.ac): ... to here.
1917
1918 2011-05-08  Bruno Haible  <bruno@clisp.org>
1919
1920         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1921         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1922         here...
1923         * modules/getcwd-lgpl (configure.ac): ... to here.
1924
1925 2011-05-07  Bruno Haible  <bruno@clisp.org>
1926
1927         crypto/gc: Move AC_LIBOBJ invocations to module description.
1928         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1929         * modules/crypto/gc (configure.ac): ... to here.
1930
1931 2011-05-07  Bruno Haible  <bruno@clisp.org>
1932
1933         fwriting: Move AC_LIBOBJ invocations to module description.
1934         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1935         here...
1936         * modules/fwriting (configure.ac): ... to here.
1937
1938 2011-05-07  Bruno Haible  <bruno@clisp.org>
1939
1940         fwritable: Move AC_LIBOBJ invocations to module description.
1941         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1942         here...
1943         * modules/fwritable (configure.ac): ... to here.
1944
1945 2011-05-07  Bruno Haible  <bruno@clisp.org>
1946
1947         futimens: Move AC_LIBOBJ invocations to module description.
1948         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1949         here...
1950         * modules/futimens (configure.ac): ... to here.
1951
1952 2011-05-07  Bruno Haible  <bruno@clisp.org>
1953
1954         ftruncate: Move AC_LIBOBJ invocations to module description.
1955         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1956         gl_PREREQ_FTRUNCATE invocations from here...
1957         * modules/ftruncate (configure.ac): ... to here.
1958
1959 2011-05-07  Bruno Haible  <bruno@clisp.org>
1960
1961         fsync: Move AC_LIBOBJ invocations to module description.
1962         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1963         invocations from here...
1964         * modules/fsync (configure.ac): ... to here.
1965
1966 2011-05-07  Bruno Haible  <bruno@clisp.org>
1967
1968         fsusage: Move AC_LIBOBJ invocations to module description.
1969         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1970         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1971         * modules/fsusage (configure.ac): ... to here.
1972
1973 2011-05-07  Bruno Haible  <bruno@clisp.org>
1974
1975         freopen: Move AC_LIBOBJ invocations to module description.
1976         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1977         invocations from here...
1978         * modules/freopen (configure.ac): ... to here.
1979
1980 2011-05-07  Bruno Haible  <bruno@clisp.org>
1981
1982         free: Move AC_LIBOBJ invocations to module description.
1983         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1984         invocations from here...
1985         * modules/free (configure.ac): ... to here.
1986
1987 2011-05-07  Bruno Haible  <bruno@clisp.org>
1988
1989         freadable: Move AC_LIBOBJ invocations to module description.
1990         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1991         here...
1992         * modules/freadable (configure.ac): ... to here.
1993
1994 2011-05-07  Bruno Haible  <bruno@clisp.org>
1995
1996         fpurge: Move AC_LIBOBJ invocations to module description.
1997         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1998         invocations from here...
1999         * modules/fpurge (configure.ac): ... to here.
2000
2001 2011-05-07  Bruno Haible  <bruno@clisp.org>
2002
2003         fpending: Move AC_LIBOBJ invocations to module description.
2004         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
2005         gl_FUNC_FPENDING.
2006         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
2007         invocations from here...
2008         * modules/fpending (configure.ac): ... to here.
2009
2010 2011-05-07  Bruno Haible  <bruno@clisp.org>
2011
2012         fopen: Move AC_LIBOBJ invocations to module description.
2013         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
2014         invocations from here...
2015         * modules/fopen (configure.ac): ... to here.
2016
2017 2011-05-07  Bruno Haible  <bruno@clisp.org>
2018
2019         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
2020         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
2021         gl_FUNC_FNMATCH_POSIX.
2022         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
2023         invocations from here...
2024         * modules/fnmatch (configure.ac): ... to here.
2025         * modules/fnmatch-gnu (configure.ac): ... and here.
2026
2027 2011-05-07  Bruno Haible  <bruno@clisp.org>
2028
2029         flock: Move AC_LIBOBJ invocations to module description.
2030         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
2031         invocations from here...
2032         * modules/flock (configure.ac): ... to here.
2033
2034 2011-05-07  Bruno Haible  <bruno@clisp.org>
2035
2036         fileblocks: Move AC_LIBOBJ invocations to module description.
2037         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
2038         gl_PREREQ_FILEBLOCKS invocations from here...
2039         * modules/fileblocks (configure.ac): ... to here.
2040
2041 2011-05-06  Bruno Haible  <bruno@clisp.org>
2042
2043         fflush: Move AC_LIBOBJ invocations to module description.
2044         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
2045         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
2046         invocations from here...
2047         * modules/fflush (configure.ac): ... to here.
2048
2049 2011-05-06  Bruno Haible  <bruno@clisp.org>
2050
2051         fdopendir: Move AC_LIBOBJ invocations to module description.
2052         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
2053         here...
2054         * modules/fdopendir (configure.ac): ... to here.
2055         (Depends-on): Improve conditions.
2056
2057 2011-05-06  Bruno Haible  <bruno@clisp.org>
2058
2059         _Exit: Move AC_LIBOBJ invocations to module description.
2060         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
2061         invocations from here...
2062         * modules/_Exit (configure.ac): ... to here.
2063
2064 2011-05-21  Bruno Haible  <bruno@clisp.org>
2065
2066         euidaccess: Respect rules for use of AC_LIBOBJ.
2067         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2068         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
2069         from here...
2070         * modules/euidaccess (configure.ac): ... to here.
2071
2072 2011-05-06  Bruno Haible  <bruno@clisp.org>
2073
2074         error: Move AC_LIBOBJ invocations to module description.
2075         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
2076         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
2077         invocations from here...
2078         * modules/error (configure.ac): ... to here.
2079
2080 2011-05-06  Bruno Haible  <bruno@clisp.org>
2081
2082         duplocale: Move AC_LIBOBJ invocations to module description.
2083         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
2084         gl_PREREQ_DUPLOCALE invocations from here...
2085         * modules/duplocale (configure.ac): ... to here.
2086
2087 2011-05-05  Bruno Haible  <bruno@clisp.org>
2088
2089         dirfd: Move AC_LIBOBJ invocations to module description.
2090         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
2091         gl_FUNC_DIRFD.
2092         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
2093         here...
2094         * modules/dirfd (configure.ac): ... to here.
2095         (Depends-on): Fix condition.
2096
2097 2011-05-05  Bruno Haible  <bruno@clisp.org>
2098
2099         chown: Respect rules for use of AC_LIBOBJ.
2100         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
2101         * modules/chown (configure.ac): ... to here.
2102
2103 2011-05-05  Bruno Haible  <bruno@clisp.org>
2104
2105         chdir-long: Move AC_LIBOBJ invocations to module description.
2106         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
2107         gl_PREREQ_CHDIR_LONG invocations from here...
2108         * modules/chdir-long (configure.ac): ... to here.
2109
2110 2011-05-05  Bruno Haible  <bruno@clisp.org>
2111
2112         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
2113         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
2114         from here...
2115         * modules/canonicalize-lgpl (configure.ac): ... to here.
2116
2117 2011-05-05  Bruno Haible  <bruno@clisp.org>
2118
2119         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
2120         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
2121         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
2122         REPLACE_CALLOC.
2123         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
2124         * modules/calloc-gnu (configure.ac): Likewise.
2125
2126 2011-05-05  Bruno Haible  <bruno@clisp.org>
2127
2128         btowc: Move AC_LIBOBJ invocations to module description.
2129         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
2130         invocations from here...
2131         * modules/btowc (configure.ac): ... to here.
2132
2133 2011-05-21  Bruno Haible  <bruno@clisp.org>
2134
2135         atexit: Move AC_LIBOBJ invocations to module description.
2136         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
2137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
2138         here...
2139         * modules/atexit (configure.ac): ... to here.
2140
2141 2011-05-05  Bruno Haible  <bruno@clisp.org>
2142
2143         atoll: Move AC_LIBOBJ invocations to module description.
2144         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
2145         invocations from here...
2146         * modules/atoll (configure.ac): ... to here.
2147
2148 2011-05-05  Bruno Haible  <bruno@clisp.org>
2149
2150         argz: Move AC_LIBOBJ invocations to module description.
2151         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
2152         * modules/argz (configure.ac): ... to here.
2153
2154 2011-05-05  Bruno Haible  <bruno@clisp.org>
2155
2156         alphasort: Move AC_LIBOBJ invocations to module description.
2157         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
2158         gl_PREREQ_ALPHASORT invocations from here...
2159         * modules/alphasort (configure.ac): ... to here.
2160
2161 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2162
2163         verify: new macro verify_expr; verify_true deprecated
2164         * NEWS: Mention this.
2165         * doc/verify.texi (Compile-time Assertions): Document this.
2166         * lib/verify.h (verify_true): Deprecate.
2167         (verify_expr): New macro.
2168         * tests/test-verify.c (function): Test verify_expr.
2169
2170 2011-06-14  Jim Meyering  <meyering@redhat.com>
2171
2172         init.sh: give more portable redirection-related advice in a comment
2173         * tests/init.sh (stderr_fileno_): Update the advice in comments.
2174         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
2175         for lots of discussion.  Stefano Lattarini suggested the solution
2176         of putting "9>&2" after the command.  Reported by Bruno Haible.
2177
2178 2011-06-13  Bruno Haible  <bruno@clisp.org>
2179
2180         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
2181         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
2182         'none'.
2183
2184 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2185
2186         ftoastr: use strtof only if HAVE_STRTOF
2187         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
2188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
2189         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
2190         * modules/ftoastr (configure.ac): Check for strtof.
2191
2192 2011-06-13  Bruno Haible  <bruno@clisp.org>
2193
2194         gnulib-tool: Addendum to 2011-06-08 commit.
2195         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
2196         and --witness-c-macro have been given, augment AM_CPPFLAGS.
2197
2198 2011-06-13  Bruno Haible  <bruno@clisp.org>
2199
2200         fseeko: Provide a non-inline replacement of fseek().
2201         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
2202         * modules/fseeko (Depends-on): Add fseek.
2203         * modules/fseek (License): Change to LGPLv2+.
2204
2205 2011-06-13  Bruno Haible  <bruno@clisp.org>
2206
2207         ftello: Provide a non-inline replacement of ftell().
2208         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
2209         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
2210         not have ftello() (such as on mingw).
2211         * modules/ftello (Depends-on): Add ftell.
2212         * modules/ftell (License): Change to LGPLv2+.
2213
2214 2011-05-07  Bruno Haible  <bruno@clisp.org>
2215
2216         ftell: Move AC_LIBOBJ invocations to module description.
2217         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
2218         * modules/ftell (configure.ac): ... to here.
2219
2220 2011-05-07  Bruno Haible  <bruno@clisp.org>
2221
2222         ftello: Respect rules for use of AC_LIBOBJ.
2223         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
2224         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
2225         here...
2226         * modules/ftello (configure.ac): ... to here.
2227
2228 2011-05-07  Bruno Haible  <bruno@clisp.org>
2229
2230         fseeko: Simplify.
2231         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
2232         (gl_FUNC_FSEEKO): Inline it here.
2233
2234 2011-05-07  Bruno Haible  <bruno@clisp.org>
2235
2236         fseek: Move AC_LIBOBJ invocations to module description.
2237         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
2238         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2239         * modules/fseek (configure.ac): ... to here.
2240
2241 2011-05-07  Bruno Haible  <bruno@clisp.org>
2242
2243         fseek: Respect rules for use of AC_LIBOBJ.
2244         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
2245         here...
2246         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
2247
2248 2011-05-07  Bruno Haible  <bruno@clisp.org>
2249
2250         fseeko: Respect rules for use of AC_LIBOBJ.
2251         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
2252         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
2253         here...
2254         * modules/fseeko (configure.ac): ... to here.
2255
2256 2011-06-13  Bruno Haible  <bruno@clisp.org>
2257
2258         gnulib-tool: Allow comments in the 'Depends-on' section.
2259         * doc/gnulib.texi (Module description): Mention comment syntax in the
2260         Depends-on section.
2261         * gnulib-tool (func_get_dependencies): Filter out comment lines.
2262
2263 2011-06-13  Bruno Haible  <bruno@clisp.org>
2264
2265         file-set.h: guard __attibute__ use, now that it's not always defined
2266         * lib/file-set.h (record_file): Use __attribute__ only with compiler
2267         versions that support it.  This fixes a coreutils build failure with
2268         the vendor cc on HP-UX 11.31.
2269
2270 2011-06-12  Bruno Haible  <bruno@clisp.org>
2271
2272         acl: Add support for HP-UX >= 11.11 JFS ACLs.
2273         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
2274         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
2275         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
2276         (acl, aclsort): New declarations.
2277         (aclv_nontrivial): New declaration.
2278         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
2279         (file_has_acl): Read also the second kind of HP-UX ACLs.
2280         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
2281         kind of HP-UX ACLs if the first kind fails.
2282         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
2283         second kind of HP-UX ACLs.
2284         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
2285         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
2286         agree.
2287         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2288         hpuxjfs.
2289         Handle hpuxjfs.
2290         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2291         hpuxjfs.
2292         Handle hpuxjfs.
2293         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2294         (func_test_same_acls): Use both lsacl and getacl.
2295         Handle hpuxjfs.
2296         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2297         (func_test_same_acls): Use both lsacl and getacl.
2298         Handle hpuxjfs.
2299
2300 2011-06-12  Bruno Haible  <bruno@clisp.org>
2301
2302         acl: Complete the 2010-08-10 fix.
2303         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
2304         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
2305         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
2306         explicitly.
2307         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
2308         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
2309
2310 2011-06-12  Bruno Haible  <bruno@clisp.org>
2311
2312         spawn-pipe tests: Comments.
2313         * tests/test-spawn-pipe-child.c (main): Update comment.
2314         Reported by James Youngman <jay@gnu.org>.
2315
2316 2011-06-11  James Youngman  <jay@gnu.org>
2317
2318         New module 'stat-size'.
2319         * modules/stat-size: New module.  Provides macros for accessing
2320         file size information in instances of struct stat.  Depends on the
2321         fileblocks module because it calls st_blocks.
2322         * lib/stat-size.h: New file, adapted from coreutils' system.h.
2323         * doc/gnulib.texi: Include stat-size.texi.
2324         * doc/stat-size.texi: Documentation for this module.
2325         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
2326         * m4/fileblocks.m4: Mention that stat-size depends on the call to
2327         AC_STRUCT_ST_BLOCKS.
2328
2329 2011-06-09  Bruno Haible  <bruno@clisp.org>
2330
2331         thread: Support pthreads-win32.
2332         * lib/glthread/thread.h (gl_thread_self): Define differently on
2333         pthreads-win32.
2334         (gl_null_thread): New declaration.
2335         (gl_thread_self_pointer): New macro.
2336         * lib/glthread/thread.c (gl_null_thread): New constant.
2337         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2338         gl_thread_self.
2339         * tests/test-tls.c: Likewise.
2340         Suggested by Paul Eggert. Reported by Eric Blake.
2341
2342 2011-06-09  Bruno Haible  <bruno@clisp.org>
2343
2344         thread: Fix confusion between NULL and 0.
2345         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2346         Reported by Paul Eggert.
2347
2348 2011-06-09  Bruno Haible  <bruno@clisp.org>
2349
2350         spawn-pipe tests: Avoid test failure on HP-UX 11.
2351         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2352         is closed.
2353
2354 2011-06-09  Bruno Haible  <bruno@clisp.org>
2355
2356         acl tests: Fix compilation error on HP-UX 11.
2357         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2358
2359 2011-06-09  Bruno Haible  <bruno@clisp.org>
2360
2361         rmdir: Avoid test failure on HP-UX 10.20.
2362         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2363         EEXIST.
2364
2365 2011-06-08  Eric Blake  <eblake@redhat.com>
2366
2367         perror: fix test on mingw
2368         * modules/perror-tests (Depends-on): Add dup2.
2369
2370         strerror_r-posix: fix on MacOS
2371         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2373         logic bug.
2374         * lib/strerror_r.c (strerror_r): Fix the bug.
2375         * lib/strerror.c (strerror): Likewise.
2376         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2377         problem.
2378         * doc/posix-functions/strerror.texi (strerror): Likewise.
2379         * doc/posix-functions/perror.texi (perror): Likewise.
2380         * tests/test-strerror.c (main): Enhance test.
2381         * tests/test-strerror_r.c (main): Likewise.
2382
2383 2011-06-08  Bruno Haible  <bruno@clisp.org>
2384
2385         gnulib-tool: Better isolation between different gnulib-tool invocations.
2386         * gnulib-tool: New option --witness-c-macro.
2387         (witness_c_macro): New variable.
2388         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2389         AM_CPPFLAGS define it as a C macro.
2390         (func_emit_tests_Makefile_am): Likewise.
2391         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2392         read it from there.
2393         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2394         m4_define, not AC_DEFUN.
2395         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2396         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2397         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2398         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2399         s|...|...|, to substitute the values of the GNULIB_* module indicator
2400         variables.
2401         * modules/dirent (Makefile.am): Likewise.
2402         * modules/fcntl-h (Makefile.am): Likewise.
2403         * modules/iconv-h (Makefile.am): Likewise.
2404         * modules/langinfo (Makefile.am): Likewise.
2405         * modules/locale (Makefile.am): Likewise.
2406         * modules/math (Makefile.am): Likewise.
2407         * modules/netdb (Makefile.am): Likewise.
2408         * modules/poll-h (Makefile.am): Likewise.
2409         * modules/pty (Makefile.am): Likewise.
2410         * modules/search (Makefile.am): Likewise.
2411         * modules/signal (Makefile.am): Likewise.
2412         * modules/spawn (Makefile.am): Likewise.
2413         * modules/stdio (Makefile.am): Likewise.
2414         * modules/stdlib (Makefile.am): Likewise.
2415         * modules/string (Makefile.am): Likewise.
2416         * modules/sys_ioctl (Makefile.am): Likewise.
2417         * modules/sys_select (Makefile.am): Likewise.
2418         * modules/sys_socket (Makefile.am): Likewise.
2419         * modules/sys_stat (Makefile.am): Likewise.
2420         * modules/sys_times (Makefile.am): Likewise.
2421         * modules/sys_utsname (Makefile.am): Likewise.
2422         * modules/sys_wait (Makefile.am): Likewise.
2423         * modules/termios (Makefile.am): Likewise.
2424         * modules/time (Makefile.am): Likewise.
2425         * modules/unistd (Makefile.am): Likewise.
2426         * modules/wchar (Makefile.am): Likewise.
2427
2428 2011-06-08  Eric Blake  <eblake@redhat.com>
2429
2430         strerror: simplify replacement
2431         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2432         * modules/strerror (configure.ac): No prereqs needed here...
2433         * modules/strerror-override (configure.ac): ...but this needs it.
2434         (Files): Add file for needed prereq macro.
2435
2436 2011-06-08  Bruno Haible  <bruno@clisp.org>
2437
2438         strerror_r-posix: Tweaks.
2439         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2440         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2441         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2442         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2443         (gl_FUNC_STRERROR_R): ... to here.
2444         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2445
2446 2011-06-07  Eric Blake  <eblake@redhat.com>
2447
2448         perror: document fixed bugs
2449         * doc/posix-functions/perror.texi (perror): Document recent
2450         patches.
2451
2452 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2453
2454         stat-time: get_stat_birthtime failure is better-defined
2455         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2456         return a timestamp whose tv_sec and tv_nsec values are both -1.
2457         Previously, the spec said only that the tv_nsec value was negative.
2458         This upward-compatible change simplifies GNU tar a bit.
2459
2460 2011-06-07  Eric Blake  <eblake@redhat.com>
2461
2462         strerror_r-posix: work around cygwin 1.7.9
2463         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2464         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2465         bug without replacing strerror_r.
2466         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2467         strerror_r is buggy, but without requiring strerror_r compilation.
2468         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2469
2470         test-perror: relax test to ignore cygwin bug
2471         * tests/test-perror2.c (main): Relax test on requiring detection
2472         of stream errors, and use unbuffered stream.
2473         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2474         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2475         * doc/posix-functions/fputc.texi (fputc): Likewise.
2476         * doc/posix-functions/fputs.texi (fputs): Likewise.
2477         * doc/posix-functions/fputws.texi (fputws): Likewise.
2478         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2479         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2480         * doc/posix-functions/getopt.texi (getopt): Likewise.
2481         * doc/posix-functions/perror.texi (perror): Likewise.
2482         * doc/posix-functions/printf.texi (printf): Likewise.
2483         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2484         * doc/posix-functions/psignal.texi (psignal): Likewise.
2485         * doc/posix-functions/putc.texi (putc): Likewise.
2486         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2487         Likewise.
2488         * doc/posix-functions/putchar.texi (putchar): Likewise.
2489         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2490         Likewise.
2491         * doc/posix-functions/puts.texi (puts): Likewise.
2492         * doc/posix-functions/putwc.texi (putwc): Likewise.
2493         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2494         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2495         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2496         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2497         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2498         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2499         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2500         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2501
2502 2011-05-22  Bruno Haible  <bruno@clisp.org>
2503
2504         strerror: Move AC_LIBOBJ invocations to module description.
2505         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2506         gl_PREREQ_STRERROR invocations from here...
2507         * modules/strerror (configure.ac): ... to here.
2508
2509 2011-05-21  Bruno Haible  <bruno@clisp.org>
2510
2511         perror: Use common idiom.
2512         * modules/perror (configure.ac): Reorder statements.
2513
2514 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2515
2516         tests: fix usage message in 'mktempd_'
2517         * tests/init.sh (mktempd_): In the usage message, use literal
2518         'mktempd_', not '$ME' (which is even undefined), as the name of
2519         the subroutine.
2520
2521 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2522
2523         tests init: new function 'fatal_', for hard errors
2524         Before this patch, the only way offered by tests/init.sh to
2525         properly signal a hard error was the `framework_failure_'
2526         function.  But the error message issued by that function,
2527         as its name would suggest, refers to a set-up failure in the
2528         testsuite, while hard errors can obviously also be due to
2529         other reasons.  The best way to fix this inconsistency is to
2530         introduce a new function with a more general error message.
2531         * tests/init.sh (fatal_): New function.
2532
2533 2011-06-06  Eric Blake  <eblake@redhat.com>
2534
2535         canonicalize-lgpl: use common idiom
2536         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2537         over newer POSIX -Rf.
2538         Reported by Bruno Haible.
2539
2540         canonicalize-lgpl: work around AIX realpath bug
2541         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2542         * doc/posix-functions/realpath.texi (realpath): Document it.
2543         Reported by Bruno Haible.
2544
2545         strerror: work around FreeBSD bug
2546         * lib/strerror.c (strerror): Special case 0.
2547         Reported by Bruno Haible.
2548
2549         strerror-override: avoid bloating errno module
2550         * modules/errno (Files, configure.ac): Move replacement strings...
2551         * modules/strerror-override: ...to new module.
2552         * modules/strerror (Depends-on): Add strerror-override.
2553         * modules/strerror_r-posix (Depends-on): Likewise.
2554         * MODULES.html.sh: Document new module.
2555         Reported by Bruno Haible.
2556
2557 2011-06-06  Bruno Haible  <bruno@clisp.org>
2558
2559         spawn-pipe tests: Rename program.
2560         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2561         * tests/test-spawn-pipe-child.c: Update comment.
2562         * tests/test-spawn-pipe.sh: Update.
2563         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2564
2565         spawn-pipe tests: Link the child program only against libc.
2566         * tests/test-spawn-pipe-child.c: New file, extracted from
2567         tests/test-spawn-pipe.c.
2568         (main): Expect only one argument.
2569         (is_open): New function, copied from tests/test-pipe.c.
2570         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2571         (child_main): Remove function.
2572         (test_pipe): Pass only one argument to the child program.
2573         (main): Remove child process code. Expect the child program's name as
2574         first argument.
2575         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2576         argument.
2577         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2578         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2579         test-spawn-pipe-child against no libraries.
2580
2581 2011-06-06  Bruno Haible  <bruno@clisp.org>
2582
2583         careadlinkat: Avoid mismatch between ssize_t and int.
2584         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2585         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2586
2587 2011-06-06  Jim Meyering  <meyering@redhat.com>
2588
2589         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2590         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2591         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2592
2593 2011-06-05  Bruno Haible  <bruno@clisp.org>
2594
2595         ansi-c++-opt: Interoperability with libtool.
2596         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2597         set the variable to "no", not to ":".
2598         * NEWS: Mention the change.
2599
2600 2011-06-05  Bruno Haible  <bruno@clisp.org>
2601
2602         acl: Fix test failure on AIX 7.
2603         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2604         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2605
2606 2011-06-05  Bruno Haible  <bruno@clisp.org>
2607
2608         pipe-filter-ii: Fix test failure on AIX and IRIX.
2609         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2610         with EAGAIN, retry with a smaller buffer size.
2611
2612 2011-06-05  Bruno Haible  <bruno@clisp.org>
2613
2614         localename: Fix link dependencies.
2615         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2616         * modules/localename-tests (Makefile.am): Link test-localename with
2617         $(LIBTHREAD).
2618
2619 2011-06-05  Bruno Haible  <bruno@clisp.org>
2620
2621         error: Avoid gcc warning.
2622         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2623
2624 2011-06-05  Bruno Haible  <bruno@clisp.org>
2625
2626         unsetenv: Avoid gcc warning.
2627         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2628
2629 2011-06-05  Bruno Haible  <bruno@clisp.org>
2630
2631         setenv: Avoid gcc warning.
2632         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2633
2634 2011-06-05  Bruno Haible  <bruno@clisp.org>
2635
2636         sys_select: Ensure memset is declared also on AIX 7.
2637         * lib/sys_select.in.h: Include <string.h> also on AIX.
2638         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2639         self-contained also on AIX 7.1.
2640
2641 2011-06-04  Jim Meyering  <meyering@redhat.com>
2642
2643         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2644         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2645         function name, "error".
2646         (_gl_translatable_diag_func_re): New configurable variable.
2647
2648 2011-06-04  Bruno Haible  <bruno@clisp.org>
2649
2650         getopt: Avoid gcc warning.
2651         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2652
2653 2011-06-04  Bruno Haible  <bruno@clisp.org>
2654
2655         strerror_r: Fix comments.
2656         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2657         commit.
2658
2659 2011-06-04  Bruno Haible  <bruno@clisp.org>
2660
2661         perror: Fix compilation error.
2662         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2663         Undefine fprintf, not sprintf.
2664         * modules/perror (Depends-on): Remove intprops, verify.
2665
2666 2011-06-04  Bruno Haible  <bruno@clisp.org>
2667
2668         setlocale: Enable replacement on Cygwin 1.5.
2669         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2670         Cygwin 1.5.x.
2671         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2672         LC_CTYPE category also exists on Cygwin 1.5.x.
2673
2674 2011-06-04  Bruno Haible  <bruno@clisp.org>
2675
2676         strerror-override: Don't disable symbol renamings.
2677         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2678         * lib/strerror-override.c: Include config.h.
2679         (strerror_override): Don't undefine.
2680
2681 2011-06-03  Bruno Haible  <bruno@clisp.org>
2682
2683         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2684         * lib/localename.h: Update copyright header.
2685         * lib/localename.c: Likewise.
2686         * lib/relocatable.h: Likewise.
2687         * lib/relocatable.c: Likewise.
2688
2689 2011-06-02  Bruno Haible  <bruno@clisp.org>
2690
2691         doc: Fix a module name.
2692         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2693
2694 2011-06-02  Bruno Haible  <bruno@clisp.org>
2695
2696         pipe2: Remove dependency on 'nonblocking' module.
2697         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2698         O_NONBLOCK is defined by gnulib.
2699         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2700         is zero.
2701         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2702         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2703         defined by gnulib.
2704         (get_nonblocking_flag): New function.
2705         (main): Test O_NONBLOCK flag only if it is nonzero.
2706         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2707
2708 2011-06-03  Jim Meyering  <meyering@redhat.com>
2709
2710         maint: three new prohibit-header-without-use rules
2711         Prohibit use of cloexec.h, posixver.h, same.h without use.
2712         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2713         (sc_prohibit_posixver_without_use): Likewise.
2714         (sc_prohibit_same_without_use): Likewise.
2715
2716 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2717
2718         allocator: 'die' routine is now given requested size
2719         * lib/allocator.h (struct allocator.die): New size arg.
2720         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2721         If the actual problem is an ssize_t limitation, not a size_t or
2722         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2723
2724 2011-06-01  Eric Blake  <eblake@redhat.com>
2725
2726         strerror: drop strerror_r dependency
2727         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2728         * lib/strerror-override.c (strerror_override): ...to new file.
2729         * lib/strerror-override.h: Add prototype.
2730         * lib/strerror-impl.h: Delete.
2731         * lib/strerror.c (strerror): New implementation.
2732         * modules/errno (Files): Add new files.
2733         (configure.ac): Compile new file as appropriate.
2734         * modules/strerror (Files): Drop unused file.
2735         (Depends-on): Drop strerror_r-posix.
2736         * MODULES.html.sh: Document strerror_r-posix.
2737         Requested by Sam Steingold.
2738
2739         perror: call strerror_r directly
2740         * modules/perror (Files): Drop strerror-impl.h.
2741         * lib/perror.c (perror): Use our own stack buffer, rather than
2742         calling a wrapper that uses static storage.
2743         * doc/posix-functions/perror.texi (perror): Document a limitation
2744         of our replacement.
2745
2746         strerror_r: fix includes for FreeBSD
2747         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2748         since we use abort on some platforms.
2749         Reported by Matthias Bolte.
2750
2751 2011-05-31  Bruno Haible  <bruno@clisp.org>
2752
2753         Fix link errors in tests: openat-die uses gettext-h.
2754         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2755         against $(LIBINTL).
2756         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2757         against $(LIBINTL).
2758         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2759         $(LIBINTL).
2760         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2761         against $(LIBINTL).
2762         * modules/linkat-tests (Makefile.am): Link test-linkat against
2763         $(LIBINTL).
2764         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2765         $(LIBINTL).
2766         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2767         against $(LIBINTL).
2768         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2769         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2770         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2771         $(LIBINTL).
2772         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2773         $(LIBINTL).
2774         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2775         $(LIBINTL).
2776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2777
2778 2011-05-31  Bruno Haible  <bruno@clisp.org>
2779
2780         Fix link errors in tests: wait-process uses gettext-h.
2781         * modules/nonblocking-pipe-tests (Makefile.am): Set
2782         test_nonblocking_pipe_main_LDADD.
2783         * modules/nonblocking-socket-tests (Makefile.am): Link
2784         test-nonblocking-socket-main against $(LIBINTL).
2785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2786
2787 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2788
2789         assert-h: work around 'verify' incompatibility
2790         * lib/verify.h: Use @...@ directives, not ifdef.
2791         * modules/assert-h (assert.h): Implement the directives.
2792         (assert.h): Substitute the symbol-prefix more consistently.
2793
2794 2011-05-29  Jim Meyering  <meyering@redhat.com>
2795
2796         trim: remove three superfluous assignments
2797         * lib/trim.c (trim2): Remove three superfluous assignments
2798         and correct brace positioning.
2799
2800 2011-05-29  Bruno Haible  <bruno@clisp.org>
2801
2802         wctype-h: Avoid namespace pollution on Solaris 2.6.
2803         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2804         identifiers.
2805         * doc/posix-headers/wctype.texi: Mention the problem.
2806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2807
2808 2011-05-28  Jim Meyering  <meyering@redhat.com>
2809
2810         parse-datetime.y: accommodate -Wstrict-overflow
2811         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2812         placate -Wstrict-overflow.
2813
2814         trim: avoid a warning from -O2 -Wstrict-overflow
2815         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2816
2817 2011-05-29  Bruno Haible  <bruno@clisp.org>
2818
2819         gnulib-tool: Fix bug in yesterday's commit.
2820         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2821         twice.
2822
2823 2011-05-29  Bruno Haible  <bruno@clisp.org>
2824
2825         Allow multiple gnulib generated include files to be combined.
2826         * gnulib-tool (func_compute_include_guard_prefix): New function.
2827         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2828         ${gl_include_guard_prefix} references.
2829         (func_import, func_create_testdir): Invoke
2830         func_compute_include_guard_prefix.
2831         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2832         * lib/ctype.in.h: Likewise.
2833         * lib/dirent.in.h: Likewise.
2834         * lib/errno.in.h: Likewise.
2835         * lib/fcntl.in.h: Likewise.
2836         * lib/float.in.h: Likewise.
2837         * lib/getopt.in.h: Likewise.
2838         * lib/iconv.in.h: Likewise.
2839         * lib/langinfo.in.h: Likewise.
2840         * lib/locale.in.h: Likewise.
2841         * lib/math.in.h: Likewise.
2842         * lib/netdb.in.h: Likewise.
2843         * lib/netinet_in.in.h: Likewise.
2844         * lib/poll.in.h: Likewise.
2845         * lib/pthread.in.h: Likewise.
2846         * lib/pty.in.h: Likewise.
2847         * lib/sched.in.h: Likewise.
2848         * lib/se-selinux.in.h: Likewise.
2849         * lib/search.in.h: Likewise.
2850         * lib/signal.in.h: Likewise.
2851         * lib/spawn.in.h: Likewise.
2852         * lib/stdarg.in.h: Likewise.
2853         * lib/stddef.in.h: Likewise.
2854         * lib/stdint.in.h: Likewise.
2855         * lib/stdio.in.h: Likewise.
2856         * lib/stdlib.in.h: Likewise.
2857         * lib/string.in.h: Likewise.
2858         * lib/strings.in.h: Likewise.
2859         * lib/sys_file.in.h: Likewise.
2860         * lib/sys_ioctl.in.h: Likewise.
2861         * lib/sys_select.in.h: Likewise.
2862         * lib/sys_socket.in.h: Likewise.
2863         * lib/sys_stat.in.h: Likewise.
2864         * lib/sys_time.in.h: Likewise.
2865         * lib/sys_times.in.h: Likewise.
2866         * lib/sys_uio.in.h: Likewise.
2867         * lib/sys_utsname.in.h: Likewise.
2868         * lib/sys_wait.in.h: Likewise.
2869         * lib/sysexits.in.h: Likewise.
2870         * lib/termios.in.h: Likewise.
2871         * lib/time.in.h: Likewise.
2872         * lib/unistd.in.h: Likewise.
2873         * lib/wchar.in.h: Likewise.
2874         * lib/wctype.in.h: Likewise.
2875         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2876         * modules/ctype (Makefile.am): Likewise.
2877         * modules/dirent (Makefile.am): Likewise.
2878         * modules/errno (Makefile.am): Likewise.
2879         * modules/fcntl-h (Makefile.am): Likewise.
2880         * modules/float (Makefile.am): Likewise.
2881         * modules/getopt-posix (Makefile.am): Likewise.
2882         * modules/iconv-h (Makefile.am): Likewise.
2883         * modules/langinfo (Makefile.am): Likewise.
2884         * modules/locale (Makefile.am): Likewise.
2885         * modules/math (Makefile.am): Likewise.
2886         * modules/netdb (Makefile.am): Likewise.
2887         * modules/netinet_in (Makefile.am): Likewise.
2888         * modules/poll-h (Makefile.am): Likewise.
2889         * modules/pthread (Makefile.am): Likewise.
2890         * modules/pty (Makefile.am): Likewise.
2891         * modules/sched (Makefile.am): Likewise.
2892         * modules/search (Makefile.am): Likewise.
2893         * modules/selinux-h (Makefile.am): Likewise.
2894         * modules/signal (Makefile.am): Likewise.
2895         * modules/spawn (Makefile.am): Likewise.
2896         * modules/stdarg (Makefile.am): Likewise.
2897         * modules/stddef (Makefile.am): Likewise.
2898         * modules/stdint (Makefile.am): Likewise.
2899         * modules/stdio (Makefile.am): Likewise.
2900         * modules/stdlib (Makefile.am): Likewise.
2901         * modules/string (Makefile.am): Likewise.
2902         * modules/strings (Makefile.am): Likewise.
2903         * modules/sys_file (Makefile.am): Likewise.
2904         * modules/sys_ioctl (Makefile.am): Likewise.
2905         * modules/sys_select (Makefile.am): Likewise.
2906         * modules/sys_socket (Makefile.am): Likewise.
2907         * modules/sys_stat (Makefile.am): Likewise.
2908         * modules/sys_time (Makefile.am): Likewise.
2909         * modules/sys_times (Makefile.am): Likewise.
2910         * modules/sys_uio (Makefile.am): Likewise.
2911         * modules/sys_utsname (Makefile.am): Likewise.
2912         * modules/sys_wait (Makefile.am): Likewise.
2913         * modules/sysexits (Makefile.am): Likewise.
2914         * modules/termios (Makefile.am): Likewise.
2915         * modules/time (Makefile.am): Likewise.
2916         * modules/unistd (Makefile.am): Likewise.
2917         * modules/wchar (Makefile.am): Likewise.
2918         * modules/wctype-h (Makefile.am): Likewise.
2919         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2920
2921 2011-05-29  Bruno Haible  <bruno@clisp.org>
2922
2923         assert-h: Allow multiple gnulib generated replacements to coexist.
2924         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2925
2926 2011-05-29  Bruno Haible  <bruno@clisp.org>
2927
2928         argp: Allow coexistence with strerror_r-posix module.
2929         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2930         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2931         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2932         not the glibc signature.
2933
2934 2011-05-28  Bruno Haible  <bruno@clisp.org>
2935
2936         gnulib-tool: Alternative structure of testdirs, similar to --import.
2937         * gnulib-tool: New option --single-configure.
2938         (func_usage): Document it.
2939         (single_configure): New variable.
2940         (func_modules_transitive_closure_separately,
2941         func_modules_transitive_closure_separately,
2942         func_determine_use_libtests, func_modules_add_dummy_separately,
2943         func_modules_to_filelist_separately): New functions, extracted from
2944         func_import.
2945         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2946         (func_import): Use the new functions.
2947         (func_create_testdir): Set final_modules. Handle $single_configure =
2948         true case.
2949
2950 2011-05-28  Bruno Haible  <bruno@clisp.org>
2951
2952         getloadavg: Remove an unreliable safety check.
2953         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2954         getloadavg.c is in place.
2955         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2956         Reported by Sam Steingold <sds@gnu.org>.
2957
2958 2011-05-28  Bruno Haible  <bruno@clisp.org>
2959
2960         doc: Cleanup yet another file produced by texinfo.tex.
2961         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2962
2963 2011-05-28  Bruno Haible  <bruno@clisp.org>
2964
2965         Finish the conditional dependencies mechanism.
2966         * gnulib-tool: New option --no-conditional-dependencies.
2967         (func_usage): Document it. Don't mark --conditional-dependencies as
2968         experimental.
2969         (cond_dependencies): The possible values can now be true, false, empty.
2970         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2971         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2972         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2973
2974 2011-05-28  Bruno Haible  <bruno@clisp.org>
2975
2976         doc: Use a recent texinfo.tex.
2977         * doc/Makefile (tex_opts): New variable.
2978         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2979
2980 2011-05-28  Jim Meyering  <meyering@redhat.com>
2981
2982         intprops.h: adjust comment to match code change
2983         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2984         only once, it *may* have side effects.  Also fix an unrelated typo.
2985         (_GL_INT_SIGNED): Likewise.
2986
2987 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2988
2989         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2990
2991 2011-05-26  Bruno Haible  <bruno@clisp.org>
2992
2993         mbsrchr: Avoid collision with system function on Interix.
2994         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2995         Reported by Markus Duft <mduft@gentoo.org>.
2996
2997 2011-05-15  James Youngman  <jay@gnu.org>
2998
2999         getopt: for ambiguous options, enumerate the possibilities.
3000         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
3001         the ambiguous options when an ambiguous prefix is given. This was
3002         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
3003         glibc change was
3004         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
3005
3006 2011-05-25  Eric Blake  <eblake@redhat.com>
3007
3008         getcwd: work around mingw bug
3009         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
3010         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3011         Reported by Matthias Bolte.
3012
3013 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3014
3015         test-intprops: disable -Wtype-limits diagnostics
3016         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
3017         diagnostics.  Otherwise, the integer overflow macros generate many
3018         diagnostics.  Reported by Jim Meyering in
3019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3020
3021         intprops: shorten, to pacify gcc -Woverlength-strings
3022         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
3023         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
3024         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
3025         likely to run afoul of C compiler limits for string constant lengths.
3026         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3027
3028 2011-05-24  Eric Blake  <eblake@redhat.com>
3029
3030         docs: document recently fixed glibc printf bug
3031         * doc/posix-functions/fprintf.texi (fprintf): Document it.
3032         * doc/posix-functions/printf.texi (printf): Likewise.
3033         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3034         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3035
3036         closein-tests: convert to init.sh
3037         * modules/closein-tests (Files): Add init.sh
3038         * tests/test-closein.sh Use it.
3039
3040         yesno-tests: convert to init.sh
3041         * modules/yesno-tests (Files): Add init.sh.
3042         * tests/test-yesno.sh: Use it.
3043
3044         atexit-tests: ensure reliable exit status
3045         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
3046         Reported by Bruno Haible.
3047
3048 2011-05-24  Bruno Haible  <bruno@clisp.org>
3049
3050         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
3051         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
3052         gl_PREREQ_STRERROR_R invocations from here...
3053         * modules/strerror_r-posix (configure.ac): ... to here.
3054
3055 2011-05-24  Eric Blake  <eblake@redhat.com>
3056
3057         strerror_r: fix missing header
3058         * lib/strerror_r.c: Avoid compiler warning about snprintf.
3059
3060         strerror_r: fix AIX test failures
3061         * lib/strerror_r.c (strerror_r): Convert silent truncation to
3062         ERANGE failure.
3063
3064         strerror_r: fix Solaris test failures
3065         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
3066         failures.
3067         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3068
3069         strerror_r: enforce POSIX recommendations
3070         * lib/strerror_r.c (safe_copy): New helper method.
3071         (strerror_r): Guarantee a non-empty string.
3072         * tests/test-strerror_r.c (main): Enhance tests to incorporate
3073         recent POSIX rulings and to match our strerror guarantees.
3074         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3075
3076 2011-05-24  Jim Meyering  <meyering@redhat.com>
3077
3078         test-perror2.c: avoid warning about unused variable
3079         * tests/test-perror2.c (main): Remove declaration of unused "fp".
3080
3081 2011-05-24  Eric Blake  <eblake@redhat.com>
3082
3083         perror: avoid spurious test failure on HP-UX
3084         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
3085
3086         tests: fix logic bug in init.sh
3087         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
3088         shell.
3089
3090 2011-05-24  Jim Meyering  <meyering@redhat.com>
3091
3092         utimensat: do not reference an out-of-scope buffer
3093         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
3094         declared in an inner scope, yet "times" would be dereferenced outside
3095         the scope in which "ts" was valid.
3096         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
3097         of ts[2] "out/up", so that the use of aliased "times" (via
3098         "times = ts;") does not end up referencing an out-of-scope "ts"
3099
3100         opendir-safer.c: don't clobber errno; don't close negative FD
3101         * lib/opendir-safer.c (opendir_safer):
3102         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
3103         file descriptor, and more importantly, don't clobber the
3104         offending errno value with EINVAL.  Before, upon failure
3105         of dup_safer, we would pass the negative file descriptor to
3106         fdopendir, which would clobber errno.
3107
3108 2011-05-23  Bruno Haible  <bruno@clisp.org>
3109
3110         idcache: Fix module description.
3111         * modules/idcache (Include): Set to "idcache.h".
3112
3113 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3114
3115         gnulib-tool: fix portability problem with MacOS sed
3116         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
3117         before the "}".  Problem reported by Leo in
3118         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
3119         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
3120         sed_extract_condition1, sed_extract_condition2.
3121
3122 2011-05-23  Bruno Haible  <bruno@clisp.org>
3123
3124         hash: Simplify autoconf macro.
3125         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
3126
3127 2011-05-23  Bruno Haible  <bruno@clisp.org>
3128
3129         getugroups: Fix module description.
3130         * modules/getugroups (Include): Set to "getugroups.h".
3131
3132 2011-05-23  Bruno Haible  <bruno@clisp.org>
3133
3134         linkat: Simplify autoconf macro.
3135         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
3136
3137 2011-05-23  Bruno Haible  <bruno@clisp.org>
3138             Eric Blake  <eblake@redhat.com>
3139
3140         linkat, renameat: Update dependencies.
3141         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
3142         * modules/linkat (Depends-on): Likewise. Remove also readlink,
3143         symlinkat.
3144
3145 2011-05-23  Jim Meyering  <meyering@redhat.com>
3146
3147         maint.mk: more tight_scope improvements
3148         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
3149         (_gl_TS_headers): Define only in if-0'd block.
3150         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
3151         sometimes we must *not* use it.  Adjust uses accordingly.
3152         (sc_tight_scope): Use much simpler grep-based test to determine
3153         whether we skip this rule.
3154
3155         maint.mk: generalize/improve the tight-scope rule
3156         * top/maint.mk: Emit a warning when the test is skipped.
3157         (_gl_TS_dir): Add $(srcdir)/ prefix.
3158         (_gl_TS_function_match): Simplify, rather than trying
3159         to enumerate common types.  Otherwise, it would fail to match an
3160         "extern unsigned char const *" declaration in idutils.
3161         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
3162         a way to support use of that type of macro.
3163         (_gl_TS_var_match): Simplify regexp.
3164         (_gl_TS_obj_files): New configurable variable.
3165         (_gl_TS_headers): Likewise.
3166
3167 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3168
3169         verify: fix bug when gnulib <assert.h> is also included
3170         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
3171         is defined, not if _GL_STATIC_ASSERT_H is not defined.
3172         Perhaps there's a better way, but this fixes the immediate problem.
3173         Problem reported by Bruno Haible in
3174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
3175
3176 2011-05-22  Bruno Haible  <bruno@clisp.org>
3177
3178         xgetcwd: Simplify autoconf macro.
3179         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
3180
3181 2011-05-22  Bruno Haible  <bruno@clisp.org>
3182
3183         New module 'mktime-internal'.
3184         * modules/mktime-internal: New file.
3185         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
3186         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
3187         mktime_internal as a C macro if libc has __mktime_internal.
3188         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
3189         conditions.
3190         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
3191
3192 2011-05-22  Bruno Haible  <bruno@clisp.org>
3193
3194         timegm: Correct mktime replacement statements.
3195         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
3196         defining mktime as a C macro. This completes a 2009-07-28 commit.
3197
3198 2011-05-22  Bruno Haible  <bruno@clisp.org>
3199
3200         timegm: Simplify autoconf macro.
3201         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
3202
3203 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3204
3205         clock-time: change to LGPLv2+.
3206         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
3207         BSD-like but we have no mark for that; this is good enough for now.
3208
3209 2011-05-21  Bruno Haible  <bruno@clisp.org>
3210
3211         strerror_r: Fix comments.
3212         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
3213
3214 2011-05-21  Bruno Haible  <bruno@clisp.org>
3215
3216         relocatable-prog-wrapper: Fix possible link error.
3217         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
3218         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
3219         (gl_FUNC_SETENV): ... to here.
3220         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
3221         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
3222
3223 2011-05-21  Bruno Haible  <bruno@clisp.org>
3224
3225         relocatable-prog-wrapper: Assume strerror() exists.
3226         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
3227         m4/strerror.m4.
3228         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
3229         * lib/relocwrapper.c: Remove mention of strerror module.
3230         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
3231         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
3232         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
3233         C macro.
3234
3235 2011-05-21  Bruno Haible  <bruno@clisp.org>
3236
3237         select: Simplify replacement idiom.
3238         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
3239         Win32 platforms.
3240         * lib/sys_select.in.h (select): Simplify accordingly.
3241         * modules/select (Depends-on): Likewise.
3242
3243 2011-05-21  Bruno Haible  <bruno@clisp.org>
3244
3245         mkdir-p: Simplify autoconf macro.
3246         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
3247         gl_FUNC_LCHOWN.
3248
3249 2011-05-21  Eric Blake  <eblake@redhat.com>
3250
3251         strerror_r: avoid clobbering strerror on cygwin
3252         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
3253         fall back instead to sys_errlist.
3254         * modules/strerror (configure.ac): Add witness.
3255         * tests/test-strerror_r.c (main): Enhance test.
3256         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3257         * tests/test-perror2.c (main): Free memory before exit.
3258
3259 2011-05-21  Bruno Haible  <bruno@clisp.org>
3260
3261         mkdtemp: Use gnulib naming conventions.
3262         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
3263         * modules/mkdtemp (configure.ac): Update.
3264
3265 2011-05-20  Eric Blake  <eblake@redhat.com>
3266
3267         strerror_r: avoid corrupting errno on Solaris
3268         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
3269         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3270
3271         strerror_r: avoid compiler warning
3272         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
3273
3274         strerror_r: simplify AIX code
3275         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
3276
3277         test-perror: avoid spurious failure on FreeBSD
3278         * modules/perror-tests (Depends-on): Add strerror, now that
3279         strerror_r no longer pulls it in.
3280
3281 2011-05-20  Bruno Haible  <bruno@clisp.org>
3282
3283         strerror_r-posix: Remove unused dependencies.
3284         * modules/strerror_r-posix (Depends-on): Remove strerror.
3285         Reported by Eric Blake.
3286
3287 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3288
3289         intprops: remove assumption about A|B representation
3290         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
3291         is a valid integer if both A and B are.  Although this is true for
3292         all known practical hosts, the C standard doesn't guarantee it,
3293         and the code need not assume it.  Also, this change may work around
3294         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
3295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
3296
3297 2011-05-20  Eric Blake  <eblake@redhat.com>
3298
3299         perror: work around FreeBSD bug
3300         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
3301         is broken.  Move AC_LIBOBJ...
3302         * modules/perror (configure.ac): Here.
3303         * doc/posix-functions/perror.texi (perror): Document this.
3304         * tests/test-perror2.c (main): Enhance test.
3305
3306         test-perror: check for strerror interactions
3307         * tests/macros.h (STREQ): Add macro.
3308         * modules/perror-tests (Files): Add second test.
3309         * tests/test-perror2.c (main): New file.
3310         * doc/posix-functions/perror.texi (perror): Document glibc bug.
3311
3312         test-perror: rewrite to use init script
3313         * modules/perror-tests (Files): Add init.sh.
3314         * tests/test-perror.sh: Use temporary directory.
3315
3316 2011-05-20  Jim Meyering  <meyering@redhat.com>
3317
3318         maint: replace misused "a" with "an"
3319         * doc/intprops.texi: "a integer"
3320         * doc/regex.texi: "a explanation"
3321         * lib/alignof.h: "a object"
3322         * lib/argmatch.h: "a explanation"
3323         * lib/argp-help.c: "a option" and "a OPTION_DOC"
3324         * lib/stdint.in.h: "a integer"
3325         * lib/userspec.c: "a owner"
3326         * doc/gnulib.texi: Fix "a idea", and reword.
3327
3328 2011-05-19  Jim Meyering  <meyering@redhat.com>
3329
3330         maint: correct misuse of "a" and "an"
3331         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3332         * lib/argp-help.c: "an docum...": s/an/a/
3333         * lib/argp-parse.c: "An vector": s/An/A/
3334         * lib/execute.c: "an native": s/an/a/
3335         * lib/spawn-pipe.c: Likewise.
3336         * lib/gc.h: "an Gc_rc": s/an/a/
3337         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3338         * lib/fts.c: "an stat.st_dev": s/an/a/
3339
3340 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3341
3342         intprops-tests: work around HP-UX 11.23 cc bug with constants
3343         * tests/test-intprops.c (VERIFY): New macro.
3344         (main): Use it, instead of verify, to work around the compiler bug; see
3345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3346
3347         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3348         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3349         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3350         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3351         (_GL_REMAINDER_OVERFLOW): Use it.
3352
3353         intprops-tests: revert unsigned part of previous change
3354         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3355         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3356         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3358
3359 2011-05-19  Bruno Haible  <bruno@clisp.org>
3360
3361         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3362         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3363         strerror_r() returned without filling the buffer.
3364         Reported by Eric Blake.
3365
3366 2011-05-19  Eric Blake  <eblake@redhat.com>
3367
3368         strerror_r: guarantee unchanged errno
3369         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3370         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3371         failure.
3372         * tests/test-strerror_r.c (main): Enhance test.
3373
3374 2011-05-19  Bruno Haible  <bruno@clisp.org>
3375
3376         strerror_r: Reorder #if blocks.
3377         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3378         for consistency with the previous commit.
3379
3380 2011-05-19  Bruno Haible  <bruno@clisp.org>
3381
3382         perror: Avoid clobbering the strerror buffer when possible.
3383         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3384         * lib/strerror.c: Include it.
3385         * modules/strerror (Files): Add lib/strerror-impl.h.
3386         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3387         (my_strerror): New function, defined through lib/strerror-impl.h.
3388         (perror): Use it instead of strerror.
3389         * modules/perror (Files): Add lib/strerror-impl.h.
3390         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3391
3392 2011-05-19  Eric Blake  <eblake@redhat.com>
3393
3394         strerror_r: fix on newer cygwin
3395         * lib/strerror_r.c (strerror_r): Cygwin now has
3396         __xpg_strerror_r, use it.
3397
3398 2011-05-19  Bruno Haible  <bruno@clisp.org>
3399
3400         strerror_r: Avoid clobbering the strerror buffer when possible.
3401         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3402         (sys_nerr, sys_errlist): New declarations.
3403         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3404         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3405         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3406
3407 2011-05-19  Bruno Haible  <bruno@clisp.org>
3408
3409         strerror_r: Fix test failure on mingw.
3410         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3411         EXTEND_STRERROR_R.
3412         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3413         macros from errno.in.h instead.
3414
3415 2011-05-19  Eric Blake  <eblake@redhat.com>
3416
3417         strerror: relax test for Solaris
3418         * tests/test-strerror.c (main): Permit Solaris behavior.
3419         * tests/test-strerror_r.c (main): Likewise.
3420
3421         strerror: enforce POSIX ruling on strerror(0)
3422         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3423         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3424         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3425         * doc/posix-functions/strerror.texi (strerror): Document it.
3426         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3427         * tests/test-strerror.c (main): Strengthen test.
3428         * tests/test-strerror_r.c (main): Likewise.
3429
3430 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3431
3432         intprop-tests: port to older and more-pedantic compilers
3433         * modules/intprops-tests (Files): Add tests/macros.h.
3434         * tests/test-intprops.c: Include macros.h.
3435         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3436         it's no longer documented to expand to an integer constant expression.
3437         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3438         argument is floating point, as it's no longer documented to expand
3439         to an integer constant expression in that case.
3440         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3441         compiler bugs reported by Bruno Haible.  See
3442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3443         (U0, U1): New constants, to work around the same bugs.  Also,
3444         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3445
3446         intprops: work around C compiler bugs
3447         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3448         bug in Sun C 5.11 2010/08/13 and other compilers; see
3449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3450
3451         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3452         * doc/intprops.texi (Integer Type Determination): Fix
3453         documentation for TYPE_IS_INTEGER: it returns an constant
3454         expression, not an integer constant expression.  Fix doc for
3455         TYPE_SIGNED: it returns an integer constant expression only if its
3456         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3457         hardly worth documented that way....)
3458
3459 2011-05-18  Bruno Haible  <bruno@clisp.org>
3460
3461         strerror_r: Avoid clobbering the strerror buffer when possible.
3462         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3463         Handle gnulib defined errno values here. When strerror() returns NULL
3464         or an empty string, return EINVAL.
3465         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3466         gnulib defined errno values here.
3467         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3468
3469 2011-05-18  Eric Blake  <eblake@redhat.com>
3470
3471         fnmatch: avoid compiler warning
3472         * lib/fnmatch_loop.c (FCT): Use correct type.
3473         Reported by Matthias Bolte.
3474
3475 2011-05-13  Jim Meyering  <meyering@redhat.com>
3476
3477         maint.mk: three new prohibit_<HDR>_without_use rules
3478         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3479         (sc_prohibit_stdio-safer_without_use): Likewise.
3480         (sc_prohibit_xfreopen_without_use): Likewise.
3481
3482 2011-05-17  Jim Meyering  <meyering@redhat.com>
3483
3484         announce-gen: fail if the NEWS delta is empty
3485         If there's nothing noteworthy in NEWS, then either you forgot
3486         or you shouldn't be releasing.
3487         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3488
3489 2011-05-17  Pádraig Brady <P@draigBrady.com>
3490
3491         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3492         reserved symbols starting with double underscore from the check.
3493
3494 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3495
3496         intprops: add doc
3497         * doc/intprops.texi: New file, documenting intprops.
3498         * doc/gnulib.texi (Particular Modules): Include it.
3499
3500         verify: add doc to gnulib manual and fix example
3501         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3502         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3503         (Compile-time Assertions): Fix example so it can't overflow.
3504
3505 2011-05-17  Jim Meyering  <meyering@redhat.com>
3506
3507         warnings.m4: don't usurp save_CPPFLAGS variable name
3508         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3509
3510         doc: fix typo
3511         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3512
3513 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3514             Bruno Haible  <bruno@clisp.org>
3515
3516         doc: Tweak recent change.
3517         * README (Portability guidelines): Tweak new text.
3518         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3519         Interix 6.1.
3520
3521 2011-05-16  Eric Blake  <eblake@redhat.com>
3522
3523         inttypes: avoid autoconf warning
3524         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3525         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3526
3527 2011-05-16  Sam Steingold <sds@gnu.org>
3528         and Eric Blake  <eblake@redhat.com>
3529
3530         vc-list-files: accept multiple directory operands
3531         * build-aux/vc-list-files: Iterate over all remaining operands.
3532
3533 2011-05-16  Bruno Haible  <bruno@clisp.org>
3534
3535         Fix confusion regarding deprecated modules.
3536         * modules/calloc (Status, Notice): Mark module as deprecated, not
3537         obsolete.
3538         * modules/fnmatch-posix (Status, Notice): Likewise.
3539         * modules/getdate (Status, Notice): Likewise.
3540         * modules/getopt (Status, Notice): Likewise.
3541         * modules/malloc (Status, Notice): Likewise.
3542         * modules/pipe (Status, Notice): Likewise.
3543         * modules/realloc (Status, Notice): Likewise.
3544         * modules/rename-dest-slash (Status, Notice): Likewise.
3545         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3546         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3547         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3548         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3549         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3550
3551 2011-05-16  Bruno Haible  <bruno@clisp.org>
3552
3553         doc: List the target platforms.
3554         * doc/gnulib-intro.texi (Target Platforms): New section.
3555         * doc/gnulib.texi (Introduction): Update menu.
3556         * README (Portability guidelines): Refer to the new section. Update
3557         statement about oldest supported environment. Remove rationale why
3558         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3559         unportable C89 function.
3560         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3561         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3562
3563 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3564
3565         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3566
3567 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3568
3569         intprops-tests: new module
3570         * modules/intprops-tests, tests/test-intprops.c: New files.
3571
3572         intprops: add safe, portable integer overflow checking
3573         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3574         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3575         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3576         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3577         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3578         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3579         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3580         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3581         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3582         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3583         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3584
3585 2011-05-12  James Youngman  <jay@gnu.org>
3586
3587         Add a test for glibc's Bugzilla bug #12378.
3588         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3589         doesn't allow the literal matching of a lone "[" (which is
3590         required by POSIX).
3591         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3592
3593 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3594
3595         Sync glibc change fixing Bugzilla bug #12378.
3596         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3597         beginning and fall back to matching as normal character if the
3598         string ends before the matching ']' is found.  This is what POSIX
3599         requires.
3600
3601 2011-05-13  Eric Blake  <eblake@redhat.com>
3602
3603         getcwd-lgpl: relax test for FreeBSD
3604         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3605         issue.
3606         * tests/test-getcwd-lgpl.c (main): Relax test.
3607         Reported by Matthias Bolte.
3608
3609 2011-05-11  Eric Blake  <eblake@redhat.com>
3610
3611         test-fflush: silence compiler warning
3612         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3613
3614 2011-05-11  Bruno Haible  <bruno@clisp.org>
3615
3616         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3617         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3618         * modules/canonicalize (Depends-on): Add 'nocrash'.
3619         * modules/canonicalize-lgpl (Depends-on): Likewise.
3620         * doc/posix-functions/realpath.texi: Update platforms list.
3621         Reported by Ryan Schmidt <ryandesign@macports.org>.
3622
3623 2011-05-11  Bruno Haible  <bruno@clisp.org>
3624
3625         group-member: Declare function in <unistd.h>.
3626         * lib/unistd.in.h (group_member): New declaration.
3627         * lib/group-member.h: Remove file.
3628         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3629         * tests/test-unistd-c++.cc: Check signature of group_member.
3630         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3631         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3632         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3633         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3634         HAVE_GROUP_MEMBER.
3635         * modules/group-member (Files): Remove lib/group-member.h.
3636         (Depends-on): Add unistd. Specify conditions.
3637         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3638         (Include): Change to <unistd.h>.
3639         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3640         HAVE_GROUP_MEMBER.
3641         * NEWS: Mention the change.
3642         * lib/euidaccess.c: Don't include group-member.h.
3643
3644 2011-05-11  Bruno Haible  <bruno@clisp.org>
3645
3646         group-member: Document module.
3647         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3648         module.
3649
3650 2011-05-11  Bruno Haible  <bruno@clisp.org>
3651
3652         fclose: Fix mistake earlier today.
3653         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3654
3655 2011-05-11  Eric Blake  <eblake@redhat.com>
3656
3657         fclose: preserve fflush errors
3658         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3659         Reported by Jim Meyering.
3660
3661         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3662         * build-aux/bootstrap (check_versions): When no specific version
3663         is required, merely check that the app produces an exit status
3664         that indicates its existence.
3665
3666         maint.mk: drop redundant check
3667         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3668         the same but better.
3669
3670 2011-05-11  Bruno Haible  <bruno@clisp.org>
3671
3672         fclose: Fix possible link error.
3673         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3674         unregister_shadow_fd. Improve comments.
3675         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3676         Eric Blake.
3677
3678 2011-05-11  Jim Meyering  <meyering@redhat.com>
3679
3680         maint.mk: improve "can not" detection and generalize rule name
3681         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3682         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3683         Use the same technique as in sc_prohibit_doubled_word, so that
3684         we recognize "can not" also when the words are separated by a newline.
3685         Suggested by Eric Blake.
3686         (perl_filename_lineno_text_): Define.  Factored out of...
3687         (prohibit_doubled_word_): ...here.  Use the new definition.
3688         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3689         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3690         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3691
3692 2011-05-10  Eric Blake  <eblake@redhat.com>
3693
3694         fclose: avoid double close race when possible
3695         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3696         all but WINDOWS_SOCKETS.
3697
3698 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3699
3700         openat: correct new comment
3701         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3702
3703 2011-05-10  Jim Meyering  <meyering@redhat.com>
3704
3705         openat: add comments
3706         * lib/openat-proc.c (openat_proc_name): Add comments,
3707         mostly from Eric Blake.
3708
3709 2011-05-09  Eric Blake  <eblake@redhat.com>
3710
3711         openat: reduce syscalls in first probe of /proc
3712         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3713         be a directory.  Simplify the probe for .. bugs.
3714         * modules/openat (Depends-on): Drop same-inode.
3715         Reported by Bastien ROUCARIES.
3716
3717 2011-05-09  Jim Meyering  <meyering@redhat.com>
3718
3719         maint.mk: change semantics/name of tight_scope variables
3720         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3721         Rename variables to align with semantics that make them more useful.
3722
3723         maint.mk: tweak new rule's name not to impinge
3724         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3725         (sc_tight_scope): Use new rule name rather than $@-0.
3726
3727         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3728         * top/maint.mk (sc_tight_scope): New rule.
3729         (sc_tight_scope-0): New rule, ifdef'd out.
3730         (_gl_TS_dir): Default.
3731         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3732         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3733
3734 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3735
3736         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3737         Haible <bruno@clisp.org>.
3738
3739 2011-05-08  Bruno Haible  <bruno@clisp.org>
3740
3741         Comments.
3742         * m4/isnanf.m4: Add comment.
3743         * m4/isnanl.m4: Likewise.
3744
3745 2011-05-08  Bruno Haible  <bruno@clisp.org>
3746
3747         glob: Remove obsolete macro.
3748         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3749
3750 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3751
3752         intprops: Sun C 5.11 supports __typeof__
3753         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3754         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3755         which is new.
3756         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3757
3758         intprops: switch to usual gnulib indenting and naming
3759         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3760         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3761
3762         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3763
3764 2011-05-08  Jim Meyering  <meyering@redhat.com>
3765
3766         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3767         * top/maint.mk (release-prep): Use make's --no-print-directory
3768         option when generating the announcement.  This eliminates the
3769         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3770         generated announcement template.
3771
3772 2011-05-08  Bruno Haible  <bruno@clisp.org>
3773
3774         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3775         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3776         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3777
3778 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3779
3780         ignore-value, verify: Omit include files from lib_SOURCES.
3781         * modules/ignore-value, modules/verify (Makefile.am):
3782         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3783         that leads Automake to duplicate use of am__objects_... variables
3784         in Makefile.in.  See
3785         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3786
3787 2011-05-07  Bruno Haible  <bruno@clisp.org>
3788
3789         fclose: Simplify autoconf macro.
3790         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3791         defined.
3792
3793 2011-05-07  Bruno Haible  <bruno@clisp.org>
3794
3795         canonicalize-lgpl: Fix autoconf macro ordering bug.
3796         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3797         gl_STDLIB_H_DEFAULTS.
3798
3799 2011-05-06  Eric Blake  <eblake@redhat.com>
3800
3801         maintainer-makefile: make sc_po_check easier to tune
3802         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3803         to probe for strings, such as an alternate location for gnulib.
3804
3805         fclose: guarantee behavior on seekable stdin
3806         * modules/fclose (Depends-on): Add fflush.
3807         * doc/posix-functions/fclose.texi (fclose): Document this.
3808         * tests/test-fclose.c (main): Make test for this unconditional.
3809
3810 2011-05-06  Bruno Haible  <bruno@clisp.org>
3811
3812         fflush, fpurge: Relicense under LGPLv2+.
3813         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3814         * modules/fpurge (License): Likewise.
3815         With permission from Eric Blake and Jim Meyering.
3816         Suggested by Eric Blake.
3817
3818 2011-05-06  Karl Berry  <karl@gnu.org>
3819
3820         * MODULES.html.sh (func_all_modules): remove exit.
3821
3822 2011-05-06  Jim Meyering  <meyering@redhat.com>
3823
3824         maint.mk: use info-gnu@ as the default only for a stable release
3825         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3826         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3827         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3828         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3829
3830 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3831
3832         assert-h: new module, which supports C1X-style static_assert
3833         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3834         * lib/verify.h: Revamp so that this can be copied into assert.h,
3835         while retaining the ability to use it standalone as before.
3836         Rename private identifiers so as not to encroach on the
3837         standard C namespace, since this is now used by assert.h.
3838         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3839         the old verify_true.
3840         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3841         the old verify_true.  Use _GL_VERIFY_TYPE.
3842         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3843         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3844         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3845         defined when this file is copied into the replacement assert.h.
3846         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3847         and _Static_assert is not built in.
3848         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3849         defined, and use the new macros mentioned above.
3850         * doc/posix-headers/assert.texi: Document this.
3851
3852 2011-05-05  Bruno Haible  <bruno@clisp.org>
3853
3854         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3855         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3856         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3857         gl_REPLACE_FCLOSE here.
3858         * modules/fflush (Depends-on): Remove fclose.
3859         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3860         combination with module 'fclose'.
3861
3862 2011-05-05  Bruno Haible  <bruno@clisp.org>
3863
3864         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3865         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3866         gl_FUNC_FFLUSH.
3867         (gl_FUNC_FFLUSH): Use it.
3868         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3870         gl_REPLACE_FSEEKO here.
3871
3872 2011-05-05  Bruno Haible  <bruno@clisp.org>
3873
3874         tzset: Relicense under LGPL.
3875         * modules/tzset (License): Change to LGPL.
3876         No agreement needed; it's a no-op.
3877
3878         strtoimax, strtoumax: Relicense under LGPL.
3879         * modules/strtoimax (License): Change to LGPL.
3880         * modules/strtoumax (License): Likewise.
3881         With permission from Jim Meyering, Paul Eggert:
3882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3884
3885         getgroups: Relicense under LGPL.
3886         * modules/getgroups (License): Change to LGPL.
3887         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3891
3892         nanosleep: Relicense under LGPL.
3893         * modules/nanosleep (License): Change to LGPL.
3894         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3895         Haible:
3896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3900
3901         futimens: Relicense under LGPL.
3902         * modules/futimens (License): Change to LGPL.
3903         With permission from Eric Blake:
3904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3905
3906         fflush: Relicense under LGPL.
3907         * modules/fflush (License): Change to LGPL.
3908         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3912
3913         tmpfile: Relicense under LGPL.
3914         * modules/tmpfile (License): Change to LGPL.
3915         With permission from Ben Pfaff:
3916         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3917
3918         isfinite: Relicense under LGPL.
3919         * modules/isfinite (License): Change to LGPL.
3920         With permission from Ben Pfaff, Bruno Haible:
3921         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3923
3924         acosl..tanl: Relicense under LGPL.
3925         * modules/acosl (License): Change to LGPL.
3926         * modules/asinl (License): Likewise.
3927         * modules/atanl (License): Likewise.
3928         * modules/cosl (License): Likewise.
3929         * modules/expl (License): Likewise.
3930         * modules/logl (License): Likewise.
3931         * modules/sinl (License): Likewise.
3932         * modules/sqrtl (License): Likewise.
3933         * modules/tanl (License): Likewise.
3934         Source code originally from glibc and Paolo Bonzini. Agreements:
3935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3937
3938 2011-05-05  Bruno Haible  <bruno@clisp.org>
3939
3940         signal: Define sighandler_t.
3941         * lib/signal.in.h (sighandler_t): New type.
3942         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3943         whether sighandler_t is defined.
3944         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3945         * modules/signal (Depends-on): Add extensions.
3946         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3947         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3948         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3949
3950 2011-05-05  Eric Blake  <eblake@redhat.com>
3951
3952         maint: remove useless REPLACE_*_H macros
3953         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3954         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3955         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3956         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3957         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3958         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3959         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3960         * m4/btowc.m4: Update callers.
3961         * m4/dirfd.m4: Likewise.
3962         * m4/duplocale.m4: Likewise.
3963         * m4/fchdir.m4: Likewise.
3964         * m4/fdopendir.m4: Likewise.
3965         * m4/inet_ntop.m4: Likewise.
3966         * m4/inet_pton.m4: Likewise.
3967         * m4/ioctl.m4: Likewise.
3968         * m4/mbrlen.m4: Likewise.
3969         * m4/mbrtowc.m4: Likewise.
3970         * m4/mbsinit.m4: Likewise.
3971         * m4/mbsnrtowcs.m4: Likewise.
3972         * m4/mbsrtowcs.m4: Likewise.
3973         * m4/poll.m4: Likewise.
3974         * m4/setlocale.m4: Likewise.
3975         * m4/wcrtomb.m4: Likewise.
3976         * m4/wcsnrtombs.m4: Likewise.
3977         * m4/wcsrtombs.m4: Likewise.
3978         * m4/wctob.m4: Likewise.
3979         * m4/wcwidth.m4: Likewise.
3980         * modules/posix_spawn: Likewise.
3981         * modules/posix_spawn_file_actions_addclose: Likewise.
3982         * modules/posix_spawn_file_actions_adddup2: Likewise.
3983         * modules/posix_spawn_file_actions_addopen: Likewise.
3984         * modules/posix_spawn_file_actions_destroy: Likewise.
3985         * modules/posix_spawn_file_actions_init: Likewise.
3986         * modules/posix_spawnattr_destroy: Likewise.
3987         * modules/posix_spawnattr_getflags: Likewise.
3988         * modules/posix_spawnattr_getpgroup: Likewise.
3989         * modules/posix_spawnattr_getschedparam: Likewise.
3990         * modules/posix_spawnattr_getschedpolicy: Likewise.
3991         * modules/posix_spawnattr_getsigdefault: Likewise.
3992         * modules/posix_spawnattr_getsigmask: Likewise.
3993         * modules/posix_spawnattr_init: Likewise.
3994         * modules/posix_spawnattr_setflags: Likewise.
3995         * modules/posix_spawnattr_setpgroup: Likewise.
3996         * modules/posix_spawnattr_setschedparam: Likewise.
3997         * modules/posix_spawnattr_setschedpolicy: Likewise.
3998         * modules/posix_spawnattr_setsigdefault: Likewise.
3999         * modules/posix_spawnattr_setsigmask: Likewise.
4000         * modules/posix_spawnp: Likewise.
4001
4002 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
4003
4004         Add option to do-release-commit-and-tag to specify branch.
4005         * build-aux/do-release-commit-and-tag: Add --branch.
4006
4007 2011-05-03  Bruno Haible  <bruno@clisp.org>
4008
4009         Avoid unnecessary compilation units, through conditional dependencies.
4010         * modules/accept (Depends-on): Add conditions to the dependencies.
4011         * modules/acosl (Depends-on): Likewise.
4012         * modules/argz (Depends-on): Likewise.
4013         * modules/asinl (Depends-on): Likewise.
4014         * modules/atanl (Depends-on): Likewise.
4015         * modules/atoll (Depends-on): Likewise.
4016         * modules/bind (Depends-on): Likewise.
4017         * modules/btowc (Depends-on): Likewise.
4018         * modules/canonicalize-lgpl (Depends-on): Likewise.
4019         * modules/ceil (Depends-on): Likewise.
4020         * modules/ceilf (Depends-on): Likewise.
4021         * modules/ceill (Depends-on): Likewise.
4022         * modules/chdir-long (Depends-on): Likewise.
4023         * modules/chown (Depends-on): Likewise.
4024         * modules/close (Depends-on): Likewise.
4025         * modules/connect (Depends-on): Likewise.
4026         * modules/cosl (Depends-on): Likewise.
4027         * modules/dirfd (Depends-on): Likewise.
4028         * modules/dprintf (Depends-on): Likewise.
4029         * modules/dprintf-posix (Depends-on): Likewise.
4030         * modules/error (Depends-on): Likewise.
4031         * modules/euidaccess (Depends-on): Likewise.
4032         * modules/expl (Depends-on): Likewise.
4033         * modules/faccessat (Depends-on): Likewise.
4034         * modules/fchdir (Depends-on): Likewise.
4035         * modules/fclose (Depends-on): Likewise.
4036         * modules/fcntl (Depends-on): Likewise.
4037         * modules/fdopendir (Depends-on): Likewise.
4038         * modules/fflush (Depends-on): Likewise.
4039         * modules/floor (Depends-on): Likewise.
4040         * modules/floorf (Depends-on): Likewise.
4041         * modules/floorl (Depends-on): Likewise.
4042         * modules/fnmatch (Depends-on): Likewise.
4043         * modules/fopen (Depends-on): Likewise.
4044         * modules/fprintf-posix (Depends-on): Likewise.
4045         * modules/frexp (Depends-on): Likewise.
4046         * modules/frexp-nolibm (Depends-on): Likewise.
4047         * modules/frexpl (Depends-on): Likewise.
4048         * modules/frexpl-nolibm (Depends-on): Likewise.
4049         * modules/fseek (Depends-on): Likewise.
4050         * modules/fsusage (Depends-on): Likewise.
4051         * modules/ftell (Depends-on): Likewise.
4052         * modules/ftello (Depends-on): Likewise.
4053         * modules/futimens (Depends-on): Likewise.
4054         * modules/getcwd (Depends-on): Likewise.
4055         * modules/getcwd-lgpl (Depends-on): Likewise.
4056         * modules/getdelim (Depends-on): Likewise.
4057         * modules/getdomainname (Depends-on): Likewise.
4058         * modules/getgroups (Depends-on): Likewise.
4059         * modules/gethostname (Depends-on): Likewise.
4060         * modules/getline (Depends-on): Likewise.
4061         * modules/getlogin_r (Depends-on): Likewise.
4062         * modules/getopt-posix (Depends-on): Likewise.
4063         * modules/getpeername (Depends-on): Likewise.
4064         * modules/getsockname (Depends-on): Likewise.
4065         * modules/getsockopt (Depends-on): Likewise.
4066         * modules/getsubopt (Depends-on): Likewise.
4067         * modules/getusershell (Depends-on): Likewise.
4068         * modules/glob (Depends-on): Likewise.
4069         * modules/grantpt (Depends-on): Likewise.
4070         * modules/iconv_open (Depends-on): Likewise.
4071         * modules/iconv_open-utf (Depends-on): Likewise.
4072         * modules/inet_ntop (Depends-on): Likewise.
4073         * modules/inet_pton (Depends-on): Likewise.
4074         * modules/ioctl (Depends-on): Likewise.
4075         * modules/isapipe (Depends-on): Likewise.
4076         * modules/isfinite (Depends-on): Likewise.
4077         * modules/isinf (Depends-on): Likewise.
4078         * modules/lchown (Depends-on): Likewise.
4079         * modules/ldexpl (Depends-on): Likewise.
4080         * modules/link (Depends-on): Likewise.
4081         * modules/linkat (Depends-on): Likewise.
4082         * modules/listen (Depends-on): Likewise.
4083         * modules/logl (Depends-on): Likewise.
4084         * modules/lstat (Depends-on): Likewise.
4085         * modules/mbrlen (Depends-on): Likewise.
4086         * modules/mbrtowc (Depends-on): Likewise.
4087         * modules/mbsinit (Depends-on): Likewise.
4088         * modules/mbsnrtowcs (Depends-on): Likewise.
4089         * modules/mbsrtowcs (Depends-on): Likewise.
4090         * modules/mbtowc (Depends-on): Likewise.
4091         * modules/memcmp (Depends-on): Likewise.
4092         * modules/mkdir (Depends-on): Likewise.
4093         * modules/mkdtemp (Depends-on): Likewise.
4094         * modules/mkfifo (Depends-on): Likewise.
4095         * modules/mkfifoat (Depends-on): Likewise.
4096         * modules/mknod (Depends-on): Likewise.
4097         * modules/mkostemp (Depends-on): Likewise.
4098         * modules/mkostemps (Depends-on): Likewise.
4099         * modules/mkstemp (Depends-on): Likewise.
4100         * modules/mkstemps (Depends-on): Likewise.
4101         * modules/mktime (Depends-on): Likewise.
4102         * modules/nanosleep (Depends-on): Likewise.
4103         * modules/open (Depends-on): Likewise.
4104         * modules/openat (Depends-on): Likewise.
4105         * modules/perror (Depends-on): Likewise.
4106         * modules/poll (Depends-on): Likewise.
4107         * modules/popen (Depends-on): Likewise.
4108         * modules/posix_spawn (Depends-on): Likewise.
4109         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
4110         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
4111         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
4112         * modules/posix_spawnp (Depends-on): Likewise.
4113         * modules/pread (Depends-on): Likewise.
4114         * modules/printf-posix (Depends-on): Likewise.
4115         * modules/ptsname (Depends-on): Likewise.
4116         * modules/putenv (Depends-on): Likewise.
4117         * modules/pwrite (Depends-on): Likewise.
4118         * modules/readline (Depends-on): Likewise.
4119         * modules/readlink (Depends-on): Likewise.
4120         * modules/readlinkat (Depends-on): Likewise.
4121         * modules/recv (Depends-on): Likewise.
4122         * modules/recvfrom (Depends-on): Likewise.
4123         * modules/regex (Depends-on): Likewise.
4124         * modules/remove (Depends-on): Likewise.
4125         * modules/rename (Depends-on): Likewise.
4126         * modules/renameat (Depends-on): Likewise.
4127         * modules/rmdir (Depends-on): Likewise.
4128         * modules/round (Depends-on): Likewise.
4129         * modules/roundf (Depends-on): Likewise.
4130         * modules/roundl (Depends-on): Likewise.
4131         * modules/rpmatch (Depends-on): Likewise.
4132         * modules/select (Depends-on): Likewise.
4133         * modules/send (Depends-on): Likewise.
4134         * modules/sendto (Depends-on): Likewise.
4135         * modules/setenv (Depends-on): Likewise.
4136         * modules/setlocale (Depends-on): Likewise.
4137         * modules/setsockopt (Depends-on): Likewise.
4138         * modules/shutdown (Depends-on): Likewise.
4139         * modules/sigaction (Depends-on): Likewise.
4140         * modules/signbit (Depends-on): Likewise.
4141         * modules/sigprocmask (Depends-on): Likewise.
4142         * modules/sinl (Depends-on): Likewise.
4143         * modules/sleep (Depends-on): Likewise.
4144         * modules/snprintf (Depends-on): Likewise.
4145         * modules/snprintf-posix (Depends-on): Likewise.
4146         * modules/socket (Depends-on): Likewise.
4147         * modules/sprintf-posix (Depends-on): Likewise.
4148         * modules/sqrtl (Depends-on): Likewise.
4149         * modules/stat (Depends-on): Likewise.
4150         * modules/strchrnul (Depends-on): Likewise.
4151         * modules/strdup-posix (Depends-on): Likewise.
4152         * modules/strerror (Depends-on): Likewise.
4153         * modules/strerror_r-posix (Depends-on): Likewise.
4154         * modules/strndup (Depends-on): Likewise.
4155         * modules/strnlen (Depends-on): Likewise.
4156         * modules/strptime (Depends-on): Likewise.
4157         * modules/strsep (Depends-on): Likewise.
4158         * modules/strsignal (Depends-on): Likewise.
4159         * modules/strstr-simple (Depends-on): Likewise.
4160         * modules/strtod (Depends-on): Likewise.
4161         * modules/strtoimax (Depends-on): Likewise.
4162         * modules/strtok_r (Depends-on): Likewise.
4163         * modules/strtoumax (Depends-on): Likewise.
4164         * modules/symlink (Depends-on): Likewise.
4165         * modules/symlinkat (Depends-on): Likewise.
4166         * modules/tanl (Depends-on): Likewise.
4167         * modules/tcgetsid (Depends-on): Likewise.
4168         * modules/tmpfile (Depends-on): Likewise.
4169         * modules/trunc (Depends-on): Likewise.
4170         * modules/truncf (Depends-on): Likewise.
4171         * modules/truncl (Depends-on): Likewise.
4172         * modules/uname (Depends-on): Likewise.
4173         * modules/unlink (Depends-on): Likewise.
4174         * modules/unlockpt (Depends-on): Likewise.
4175         * modules/unsetenv (Depends-on): Likewise.
4176         * modules/usleep (Depends-on): Likewise.
4177         * modules/utimensat (Depends-on): Likewise.
4178         * modules/vasprintf (Depends-on): Likewise.
4179         * modules/vdprintf (Depends-on): Likewise.
4180         * modules/vdprintf-posix (Depends-on): Likewise.
4181         * modules/vfprintf-posix (Depends-on): Likewise.
4182         * modules/vprintf-posix (Depends-on): Likewise.
4183         * modules/vsnprintf (Depends-on): Likewise.
4184         * modules/vsnprintf-posix (Depends-on): Likewise.
4185         * modules/vsprintf-posix (Depends-on): Likewise.
4186         * modules/wcrtomb (Depends-on): Likewise.
4187         * modules/wcscasecmp (Depends-on): Likewise.
4188         * modules/wcscspn (Depends-on): Likewise.
4189         * modules/wcsdup (Depends-on): Likewise.
4190         * modules/wcsncasecmp (Depends-on): Likewise.
4191         * modules/wcsnrtombs (Depends-on): Likewise.
4192         * modules/wcspbrk (Depends-on): Likewise.
4193         * modules/wcsrtombs (Depends-on): Likewise.
4194         * modules/wcsspn (Depends-on): Likewise.
4195         * modules/wcsstr (Depends-on): Likewise.
4196         * modules/wcstok (Depends-on): Likewise.
4197         * modules/wcswidth (Depends-on): Likewise.
4198         * modules/wctob (Depends-on): Likewise.
4199         * modules/wctomb (Depends-on): Likewise.
4200         * modules/wctype (Depends-on): Likewise.
4201         * modules/wcwidth (Depends-on): Likewise.
4202         * modules/write (Depends-on): Likewise.
4203
4204 2011-05-03  Bruno Haible  <bruno@clisp.org>
4205
4206         Support for conditional dependencies.
4207         * doc/gnulib.texi (Module description): Document the syntax of
4208         conditional dependencies.
4209         * gnulib-tool: New option --conditional-dependencies.
4210         (func_usage): Document it.
4211         (cond_dependencies): New variable.
4212         (func_get_automake_snippet_conditional,
4213         func_get_automake_snippet_unconditional): New functions, extracted from
4214         func_get_automake_snippet.
4215         (func_get_automake_snippet): Use them.
4216         (sed_first_32_chars): New variable.
4217         (func_module_shellfunc_name): New function.
4218         (func_module_shellvar_name): New function.
4219         (func_module_conditional_name): New function.
4220         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
4221         func_cond_module_condition): New functions.
4222         (func_modules_transitive_closure): Add support for conditional
4223         dependencies.
4224         (func_emit_lib_Makefile_am): For a conditional module, enclose the
4225         conditional automake snippet in an automake conditional.
4226         (func_emit_autoconf_snippets): Emit shell functions that contain the
4227         code for conditional modules.
4228         (func_import, func_create_testdir): Update specification.
4229
4230 2011-05-03  Eric Blake  <eblake@redhat.com>
4231
4232         test-getaddrinfo: report error information
4233         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
4234
4235 2011-05-03  Jim Meyering  <meyering@redhat.com>
4236
4237         bootstrap: avoid build failure when $GZIP is set
4238         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
4239         program name.  If defined at all, it is supposed to list gzip options.
4240         Reported by Alan Curry in http://debbugs.gnu.org/8609
4241
4242 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
4243
4244         readme-release: new module with release instructions
4245         * modules/readme-release: New module.
4246         * top/README-release: New file, from coreutils, grep, diffutils.
4247         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4248
4249 2011-05-02  Eric Blake  <eblake@redhat.com>
4250
4251         fflush: also replace fclose when fixing fflush
4252         * modules/fflush (Depends-on): Add fclose.
4253         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
4254         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
4255         memstreams with no backing fd.
4256         * doc/posix-functions/fclose.texi (fclose): Document the use of
4257         fflush module to fix the bug.
4258         * tests/test-fclose.c (main): Relax test when fclose is used in
4259         isolation.
4260
4261         fclose: add some tests
4262         * modules/fclose-tests: New test module.
4263         * tests/test-fclose.c: New file.
4264         * doc/posix-functions/fclose.texi (fclose): Document the bug.
4265
4266         fclose: reduced dependencies
4267         * modules/fclose (Depends-on): Switch from fflush/fseeko to
4268         simpler lseek.
4269         * lib/fclose.c (rpl_fclose): Likewise.
4270         Reported by Simon Josefsson.
4271
4272         exit: drop remaining clients
4273         * modules/argmatch (Depends-on): Replace exit with stdlib.
4274         * modules/copy-file (Depends-on): Likewise.
4275         * modules/execute (Depends-on): Likewise.
4276         * modules/exitfail (Depends-on): Likewise.
4277         * modules/obstack (Depends-on): Likewise.
4278         * modules/pagealign_alloc (Depends-on): Likewise.
4279         * modules/pipe-filter-gi (Depends-on): Likewise.
4280         * modules/pipe-filter-ii (Depends-on): Likewise.
4281         * modules/savewd (Depends-on): Likewise.
4282         * modules/spawn-pipe (Depends-on): Likewise.
4283         * modules/wait-process (Depends-on): Likewise.
4284         * modules/xsetenv (Depends-on): Likewise.
4285         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
4286         * modules/git-merge-changelog (Depends-on): Likewise.
4287         * modules/long-options (Depends-on): Likewise.
4288         * modules/pt_chown (Depends-on): Likewise.
4289         * modules/sysexits (Depends-on): Likewise.
4290
4291         freading: relax license from LGPLv3+ to LGPLv2+
4292         * modules/freading (License): Relax LGPL version.
4293
4294 2011-05-02  Bruno Haible  <bruno@clisp.org>
4295
4296         fchdir: Remove unused dependencies.
4297         * modules/fchdir (Depends-on): Remove include_next.
4298
4299 2011-05-02  Bruno Haible  <bruno@clisp.org>
4300
4301         gnulib-tool: Refactor.
4302         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
4303         from func_emit_autoconf_snippets.
4304         (func_emit_autoconf_snippets): Use it.
4305
4306 2011-05-02  Simon Josefsson  <simon@josefsson.org>
4307
4308         * NEWS: Document removal of 'exit'.
4309         * modules/exit: Remove file.
4310
4311 2011-05-01  Bruno Haible  <bruno@clisp.org>
4312
4313         Update DEPENDENCIES.
4314         * DEPENDENCIES (gettext): Recommend the newest release.
4315         Reported by Simon Josefsson.
4316
4317 2011-05-01  Bruno Haible  <bruno@clisp.org>
4318
4319         gnulib-tool: Reduce code duplication.
4320         * gnulib-tool (func_emit_autoconf_snippets): New function.
4321         (func_import, func_create_testdir): Use it.
4322
4323 2011-04-30  Eric Blake  <eblake@redhat.com>
4324
4325         fclose: don't fail on non-seekable input stream
4326         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
4327         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
4328         since fflush is allowed to fail in that case.
4329
4330 2011-04-30  Bruno Haible  <bruno@clisp.org>
4331
4332         dup3: cleanup
4333         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4334
4335 2011-04-30  Bruno Haible  <bruno@clisp.org>
4336
4337         netdb: Make it work in C++ mode.
4338         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4339         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4340         module.
4341         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4342         gl_MODULE_INDICATOR_FOR_TESTS.
4343         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4344         * modules/netdb-c++-tests: New file.
4345         * tests/test-netdb-c++.cc: New file.
4346
4347 2011-04-30  Bruno Haible  <bruno@clisp.org>
4348
4349         New modules 'vfscanf', 'vscanf'.
4350         * modules/vfscanf: New file.
4351         * modules/vscanf: New file.
4352         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4353         here.
4354         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4355         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4356
4357 2011-04-30  Bruno Haible  <bruno@clisp.org>
4358
4359         passfd: Add comments.
4360         * lib/passfd.c: Add comments about platforms.
4361
4362 2011-04-30  Bruno Haible  <bruno@clisp.org>
4363
4364         sys_uio: Make <sys/uio.h> self-contained.
4365         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4366         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4367
4368 2011-04-30  Bruno Haible  <bruno@clisp.org>
4369
4370         sys_socket: Ensure 'struct iovec' definition.
4371         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4372         <sys/socket.h>.
4373         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4374
4375 2011-04-30  Bruno Haible  <bruno@clisp.org>
4376
4377         sys_uio: Protect definition of 'struct iovec'.
4378         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4379         it as a C struct.
4380
4381 2011-04-30  Bruno Haible  <bruno@clisp.org>
4382
4383         manywarnings: fix indentation
4384         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4385
4386 2011-04-30  Pádraig Brady <P@draigBrady.com>
4387
4388         manywarnings: add -Wno-missing-field-initializers if needed.
4389         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4390         option if it's needed to allow initialization with { 0, }
4391
4392 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4393
4394         announce-gen: cosmetic improvement
4395         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4396
4397 2011-04-29  Jim Meyering  <meyering@redhat.com>
4398
4399         vc-list-files: indent with spaces, not TABs
4400         * build-aux/vc-list-files: Convert leading TABs to spaces,
4401         to match the style of most other files in gnulib.
4402
4403         announce-gen: indent with spaces, not TABs
4404         * build-aux/announce-gen: Convert all TABs to spaces, to match
4405         the style of most other files in gnulib.
4406
4407 2011-04-29  Eric Blake  <eblake@redhat.com>
4408
4409         quotearg: avoid uninitialized variable use
4410         * lib/quotearg.c (quoting_options_from_style): Initialize
4411         remaining fields, and ensure that custom styles are only used via
4412         quoting_options rather than quoting_style.
4413
4414 2011-04-29  Jim Meyering  <meyering@redhat.com>
4415
4416         maint.mk: remove unused VC-tag variable
4417         * top/maint.mk (VC-tag): Remove unused variable.
4418
4419 2011-04-29  Bruno Haible  <bruno@clisp.org>
4420
4421         netdb: fix gai_strerror replacements
4422         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4423         * modules/netdb: Substitute it.
4424
4425 2011-04-29  Jim Meyering  <meyering@redhat.com>
4426
4427         test-getcwd.c: avoid new set-but-not-used warning
4428         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4429         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4430         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4431         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4432
4433         test-hash.c: avoid a new shadowing warning
4434         * tests/test-hash.c (main): Don't shadow "dup".
4435
4436 2011-04-28  Eric Blake  <eblake@redhat.com>
4437
4438         getaddrinfo: fix gai_strerror signature
4439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4440         and work around mingw with UNICODE defined.
4441         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4442         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4443         * modules/netdb (Makefile.am): Substitute it.
4444         * lib/netdb.in.h (gai_strerror): Declare replacement.
4445         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4446         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4447         the fix.
4448
4449         getsockopt: avoid compiler warning
4450         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4451         Reported by Matthias Bolte.
4452
4453         tests: drop unused link dependency
4454         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4455         * modules/dirent-safer-tests (Makefile.am): Likewise.
4456         * modules/fdopendir-tests (Makefile.am): Likewise.
4457         * modules/mkfifoat-tests (Makefile.am): Likewise.
4458         * modules/openat-safer-tests (Makefile.am): Likewise.
4459         * modules/openat-tests (Makefile.am): Likewise.
4460         * modules/readlinkat-tests (Makefile.am): Likewise.
4461         * modules/symlinkat-tests (Makefile.am): Likewise.
4462         * modules/linkat-tests (Makefile.am): Likewise.
4463         (Depends-on): Switch to filenamecat-lgpl.
4464         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4465         LIBINTL.
4466         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4467         * tests/test-linkat.c (main): Don't require xalloc.
4468
4469         hash, mgetgroups: drop xalloc dependency
4470         * lib/hash.c (includes): Adjust includes.
4471         * lib/mgetgroups.c (includes): Likewise.
4472         (xgetgroups): Move...
4473         * lib/xgetgroups.c: ...to new file.
4474         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4475         * modules/xgetgroups: New file, split from...
4476         * modules/mgetgroups: ...here.
4477         (Depends-on): Add xalloc-oversized.
4478         * modules/hash (Depends-on): Likewise.
4479         * modules/hash-tests (Depends-on): Drop xalloc.
4480         (test_hash_LDADD): Drop unused library.
4481         * tests/test-hash.c (main): Break xalloc dependency.
4482         (includes): Drop unused include.
4483
4484         xalloc-oversized: new module
4485         * modules/xalloc-oversized: New module.
4486         * modules/xalloc (Depends-on): Add it.
4487         * lib/xalloc.h (xalloc_oversized): Move...
4488         * lib/xalloc-oversized.h: ...into new file.
4489
4490         utimecmp: drop dependency on xmalloc
4491         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4492         due to memory pressure.
4493         * modules/utimecmp (Depends-on): Drop xalloc.
4494
4495 2011-04-27  Eric Blake  <eblake@redhat.com>
4496
4497         getcwd: fix mingw bugs
4498         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4499         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4500         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4501
4502 2011-04-27  Bruno Haible  <bruno@clisp.org>
4503
4504         mkstemps: Ensure declaration on MacOS X 10.5.
4505         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4506         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4507         MacOS X.
4508
4509 2011-04-27  Bruno Haible  <bruno@clisp.org>
4510
4511         mkstemp: More documentation.
4512         * doc/posix-functions/mkstemp.texi: Document header file problem on
4513         MacOS X.
4514
4515 2011-04-27  Bruno Haible  <bruno@clisp.org>
4516
4517         mkstemp: Tweak configure message when cross-compiling.
4518         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4519         result as a guess.
4520
4521 2011-04-27  Bruno Haible  <bruno@clisp.org>
4522
4523         clean-temp: Clarify what it does.
4524         * lib/clean-temp.h: Add more comments.
4525         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4526         module.
4527         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4528         * doc/glibc-functions/mkstemps.texi: Likewise.
4529         * doc/glibc-functions/mkostemps.texi: Likewise.
4530
4531 2011-04-27  Eric Blake  <eblake@redhat.com>
4532
4533         fchdir: avoid extra chdir and fix test
4534         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4535         getcwd-lgpl.
4536         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4537         have to be canonical.
4538         (canonicalize_file_name): Drop unused macro.
4539         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4540
4541         filenamecat-lgpl: fix licence
4542         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4543         when it was first created.
4544
4545         linkat, renameat: add missing dependency
4546         * modules/linkat (Depends-on): Require getcwd-lgpl.
4547         * modules/renameat (Depends-on): Likewise.
4548
4549         tests: reduce dependencies
4550         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4551         * tests/test-renameat.c (main): Likewise.
4552         * modules/linkat-tests (Depends-on): Relax dependency.
4553         * modules/renameat-tests (Depends-on): Likewise.
4554         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4555         dependency explicit.
4556
4557         save-cwd: reduce default dependency
4558         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4559         * lib/save-cwd.c: Update comments.
4560         * NEWS: Document the semantic change.
4561
4562         getcwd: enhance tests
4563         * tests/test-getcwd-lgpl.c: New file, taken from...
4564         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4565         repeat long path stress tests from m4 probe.
4566         * modules/getcwd-lgpl-tests: New module.
4567         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4568         * m4/getcwd-abort-bug.m4: Update comment.
4569         * m4/getcwd-path-max.m4: Likewise.
4570
4571         getcwd-lgpl: new module
4572         * modules/getcwd-lgpl: New module.
4573         * lib/getcwd-lgpl.c: New file.
4574         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4575         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4576         * modules/getcwd (configure.ac): Set C witness.
4577         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4578
4579         getcwd: tweak comments
4580         * m4/getcwd-abort-bug.m4: Fix comments.
4581         * m4/getcwd-path-max.m4: Likewise.
4582         * m4/getcwd.m4: Likewise.
4583
4584 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4585         and Eric Blake  <eblake@redhat.com>
4586
4587         mkstemp: replace if system version uses wrong permissions
4588         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4589         read/write mode bits set in file created by mkstemp.
4590         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4591
4592 2011-04-27  Eric Blake  <eblake@redhat.com>
4593
4594         passfd: avoid compiler warning
4595         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4596         Reported by Laine Stump.
4597
4598 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4599
4600         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4601         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4602
4603 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4604         and Eric Blake  <eblake@redhat.com>
4605
4606         mkstemp: mention clean-temp module
4607         * lib/mkstemp.c: Add comment.
4608         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4609
4610 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4611
4612         inttypes: also provide default values for 32-bit tests
4613         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4614         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4615
4616 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4617
4618         strtoumax: remove dependency on strtoimax
4619         This is like the strtoull change of yesterday.
4620         * modules/strtoumax (Files): Add lib/strtoimax.c.
4621         (Depends-on): Remove strtoimax and add verify.
4622
4623         inttypes-incomplete: new module
4624         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4625         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4626         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4627         of gl_INTTYPES_H.
4628         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4629         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4630         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4631         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4632         * modules/strtoumax, modules/xstrtol (Depends-on):
4633         Depend on inttypes-incomplete, not inttypes.
4634         * modules/inttypes-incomplete: New module, containing the contents
4635         of the old modules/inttypes module, except that the Files: section
4636         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4637         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4638         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4639         (Depends-on): Depend only on inttypes-incomplete.
4640         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4641
4642         inttypes: omit now-redundant strtoimax and strtoumax work
4643         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4644         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4645
4646         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4647         This supports apps that need pointers to strtoimax and strtoumax,
4648         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4649         nonexistent functions.  See
4650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4651         et seq.
4652         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4653         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4654         a macro.
4655         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4656
4657 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4658
4659         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4660
4661 2011-04-25  Bruno Haible  <bruno@clisp.org>
4662
4663         strtol, strtoul: Mark modules as obsolete.
4664         * modules/strtol (Status, Notice): New sections.
4665         * modules/strtoul (Status, Notice): New sections.
4666
4667 2011-04-25  Bruno Haible  <bruno@clisp.org>
4668
4669         strtod: Remove check for strtod, unless supporting old platforms.
4670         * modules/strtod-obsolete: New file.
4671         * m4/strtod-obsolete.m4: New file.
4672         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4673         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4674         * modules/strtod (Depends-on): Add strtod-obsolete.
4675         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4676
4677 2011-04-25  Bruno Haible  <bruno@clisp.org>
4678
4679         strcase: Make module obsolete.
4680         * modules/strcase (Status, Notice): New sections.
4681
4682 2011-04-25  Bruno Haible  <bruno@clisp.org>
4683
4684         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4685         * modules/dup2-obsolete: New file.
4686         * m4/dup2-obsolete.m4: New file.
4687         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4688         gl_FUNC_DUP2_OBSOLETE is not also defined.
4689         * modules/dup2 (Depends-on): Add dup2-obsolete.
4690         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4691
4692 2011-04-25  Bruno Haible  <bruno@clisp.org>
4693
4694         strnlen: Avoid memchr related link error on old obsolete platforms.
4695         * modules/memchr-obsolete: New file.
4696         * m4/memchr-obsolete.m4: New file.
4697         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4698         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4699         * modules/memchr (Depends-on): Add memchr-obsolete.
4700         * modules/strnlen (Depends-on): Likewise.
4701         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4702
4703 2011-04-25  Jim Meyering  <meyering@redhat.com>
4704
4705         maint.mk: makefile_at_at_check extend and clean up
4706         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4707         in addition to */Makefile.am.
4708         Exempt legitimate uses of @VAR@ notation, e.g.,
4709         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4710         Remove obsolete coreutils-specific comment.
4711         Prompted by discussion here:
4712         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4713
4714 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4715
4716         strtoul: remove dependency on strtol
4717         This is so that 'configure' need not check for strtol merely because
4718         the application needs strtoul.
4719         * modules/strtoul (Files): Add lib/strtol.c.
4720         (Depends-on): Remove strtol.
4721
4722         strtoull: remove dependency on strtoul
4723         This is like the strtoll change.
4724         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4725         (Depends-on): Remove strtoul.
4726
4727         strtoll: remove dependency on strtol
4728         This is so that 'configure' need not check for strtol merely because
4729         the application needs strtoll.
4730         * modules/strtoll (Files): Add lib/strtol.c.
4731         (Depends-on): Remove strtol.
4732
4733 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4734
4735         inttypes: Move some configure check to module 'imaxdiv'.
4736         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4737         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4738         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4739
4740 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4741
4742         inttypes: Move some configure check to module 'imaxabs'.
4743         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4744         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4745         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4746
4747 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4748
4749         inttypes: Remove configure tests that are not needed since 2009-12-31.
4750         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4751         gl_cv_header_working_inttypes_h.
4752
4753 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4754
4755         * modules/strnlen (Depends-on): Remove memchr.
4756         The strnlen implementation doesn't need the memchr module's fixes; see
4757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4758
4759         strtol: remove dependency on wchar
4760         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4761         * modules/strtol (Depends-on): Remove wchar.
4762
4763 2011-04-21  Eric Blake  <eblake@redhat.com>
4764
4765         passfd: fix test regression on Linux
4766         * modules/passfd-tests (configure.ac): Correct socketpair check.
4767
4768         passfd: speed up configure and drop unused code
4769         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4770         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4771         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4772         Instead of probing at configure for unix_scm_rights_bsd44_way,
4773         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4774         check to a struct member probe.
4775         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4776         (sendfd, recvfd): Update preprocessor checks.
4777         * modules/passfd (Files): Reflect rename, and drop unused file.
4778         (Depends-on): Drop unused dependency.
4779
4780         passfd: allow compilation on mingw
4781         * modules/sys_socket (Depends-on): Add sys_uio.
4782         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4783         iovec and a minimal struct msghdr.
4784         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4785         * tests/test-sys_socket.c (main): Enhance test.
4786         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4787         guaranteed to provide what we need.
4788         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4789         * modules/passfd-tests (Depends-on): Add sys_wait.
4790         * tests/test-passfd.c (main): Skip test on mingw, for now.
4791         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4792         partial 'struct msghdr' implementation.
4793
4794         sys_uio: new module
4795         * modules/sys_uio: New module.
4796         * modules/sys_uio-tests: Likewise.
4797         * lib/sys_uio.in.h: New file.
4798         * m4/sys_uio_h.m4: Likewise.
4799         * tests/test-sys_uio.c: Likewise.
4800         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4801         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4802
4803 2011-04-20  Jim Meyering  <meyering@redhat.com>
4804
4805         useless-if-before-free: avoid false-positive
4806         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4807         disjunct so that it too requires a terminating ";".  Without that,
4808         this script would identify as useless one statement from gcc that
4809         was not:
4810           if (aligned_ptr)
4811             free (((void **) aligned_ptr) [-1]);
4812
4813 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4814
4815         doc: update users.txt.
4816         * users.txt: Add barcode.
4817
4818 2011-04-19  Bruno Haible  <bruno@clisp.org>
4819
4820         ioctl: Remove link dependency on native Windows.
4821         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4822         (gl_close_fn, gl_ioctl_fn): New types.
4823         (struct fd_hook): Renamed from struct close_hook. Change type of
4824         private_close_fn field. Add private_ioctl_fn field.
4825         (close_hook_fn): Add parameter for primary close method.
4826         (execute_close_hooks, execute_all_close_hooks): Likewise.
4827         (ioctl_hook_fn): New type.
4828         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4829         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4830         argument.
4831         (unregister_fd_hook): Renamed from unregister_close_hook.
4832         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4833         Don't include <unistd.h>.
4834         (close): Remove undef.
4835         (anchor): Update.
4836         (execute_close_hooks): Add argument for primary close method.
4837         (execute_all_close_hooks): Likewise.
4838         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4839         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4840         argument. Allow each argument to be NULL.
4841         (unregister_fd_hook): Renamed from unregister_close_hook.
4842         * lib/close.c (rpl_close): Pass 'close' function pointer to
4843         execute_all_close_hooks.
4844         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4845         (primary_ioctl): New function.
4846         (ioctl): Don't call ioctlsocket here. Instead, call
4847         execute_all_ioctl_hooks.
4848         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4849         close method.
4850         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4851         (fd_sockets_hook): Renamed from close_sockets_hook.
4852         (gl_sockets_startup, gl_sockets_cleanup): Update.
4853         * modules/fd-hook: Renamed from modules/close-hook. Update.
4854         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4855         * modules/sockets (Depends-on): Likewise.
4856         * modules/ioctl (Depends-on): Add fd-hook.
4857         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4858         GNULIB_SOCKET.
4859
4860 2011-04-19  Bruno Haible  <bruno@clisp.org>
4861
4862         Move the support of O_NONBLOCK in open() to the 'open' module.
4863         * modules/nonblocking (Depends-on): Remove 'open'.
4864         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4865         gl_cv_have_open_O_NONBLOCK.
4866         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4867         O_NONBLOCK support.
4868         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4869
4870 2011-04-17  Bruno Haible  <bruno@clisp.org>
4871
4872         pipe2: Simplify code.
4873         * lib/pipe2.c (pipe2): Reduce code duplication.
4874
4875 2011-04-17  Bruno Haible  <bruno@clisp.org>
4876
4877         nonblocking: Add comment.
4878         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4879
4880 2011-04-17  Bruno Haible  <bruno@clisp.org>
4881
4882         nonblocking: Add tests for sockets.
4883         * tests/test-nonblocking-socket.sh: New file.
4884         * tests/test-nonblocking-socket-main.c: New file.
4885         * tests/test-nonblocking-socket-child.c: New file.
4886         * tests/test-nonblocking-socket.h: New file.
4887         * tests/socket-server.h: New file.
4888         * tests/socket-client.h: New file.
4889         * modules/nonblocking-socket-tests: New file.
4890         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4891
4892 2011-04-17  Bruno Haible  <bruno@clisp.org>
4893
4894         nonblocking: Add tests for pipes.
4895         * tests/test-nonblocking-pipe.sh: New file.
4896         * tests/test-nonblocking-pipe-main.c: New file.
4897         * tests/test-nonblocking-pipe-child.c: New file.
4898         * tests/test-nonblocking-pipe.h: New file.
4899         * tests/test-nonblocking-writer.h: New file.
4900         * tests/test-nonblocking-reader.h: New file.
4901         * tests/test-nonblocking-misc.h: New file.
4902         * modules/nonblocking-pipe-tests: New file.
4903         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4904
4905 2011-04-16  Bruno Haible  <bruno@clisp.org>
4906
4907         gettext: Clarify the needed programmer actions.
4908         * modules/gettext (Notice): New field.
4909         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4910
4911 2011-04-16  Bruno Haible  <bruno@clisp.org>
4912
4913         strchrnul: Tweak last commit.
4914         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4915         bug.
4916         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4917         as in _GL_FUNCDECL_SYS.
4918         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4919         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4920
4921 2011-04-15  Eric Blake  <eblake@redhat.com>
4922
4923         strchrnul: work around cygwin bug
4924         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4925         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4927         * modules/string (Makefile.am): Substitute it.
4928         * lib/string.in.h (strchrnul): Use it.
4929
4930 2011-04-15  Bruno Haible  <bruno@clisp.org>
4931
4932         Don't require lib/stdio-write.c when only module 'stdio' is used.
4933         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4934         invocation.
4935         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4936
4937 2011-04-14  Bruno Haible  <bruno@clisp.org>
4938
4939         Support non-blocking pipe I/O in read() on native Windows.
4940         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4941         (read): New declaration.
4942         * lib/read.c: New file.
4943         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4944         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4945         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4946         vscanf): New declarations.
4947         * lib/stdio-read.c: New file.
4948         * m4/read.m4: New file.
4949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4950         REPLACE_READ.
4951         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4952         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4953         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4954         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4955         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4956         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4957         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4958         * modules/read: New file.
4959         * modules/nonblocking (Files): Add lib/stdio-read.c.
4960         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4961         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4962         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4963         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4964         * modules/pread (Depends-on): Add read.
4965         * modules/safe-read (Depends-on): Likewise.
4966         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4967         gets, scanf, vfscanf, vscanf): Verify signatures.
4968         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4969         problem with non-blocking pipes.
4970         * doc/posix-functions/fgetc.texi: Likewise.
4971         * doc/posix-functions/fgets.texi: Likewise.
4972         * doc/posix-functions/fread.texi: Likewise.
4973         * doc/posix-functions/fscanf.texi: Likewise.
4974         * doc/posix-functions/getc.texi: Likewise.
4975         * doc/posix-functions/getchar.texi: Likewise.
4976         * doc/posix-functions/gets.texi: Likewise.
4977         * doc/posix-functions/scanf.texi: Likewise.
4978         * doc/posix-functions/vfscanf.texi: Likewise.
4979         * doc/posix-functions/vscanf.texi: Likewise.
4980
4981 2011-04-14  Bruno Haible  <bruno@clisp.org>
4982
4983         Support non-blocking pipe I/O in write() on native Windows.
4984         * lib/write.c (rpl_write): Split a write request that failed merely
4985         because the byte count was larger than the pipe buffer's size.
4986         * doc/posix-functions/write.texi: Mention the problem with large byte
4987         counts.
4988
4989 2011-04-14  Bruno Haible  <bruno@clisp.org>
4990
4991         wchar: Ensure that wchar_t gets defined on uClibc.
4992         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4993         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4994
4995 2011-04-13  Bruno Haible  <bruno@clisp.org>
4996
4997         safe-write, full-read: Avoid unnecessary compilation units.
4998         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4999         (Depends-on): Remove safe-read. Add ssize_t.
5000         * modules/full-read (Files): Add lib/full-write.c.
5001         (Depends-on): Add full-write.
5002
5003 2011-04-13  Bruno Haible  <bruno@clisp.org>
5004
5005         Support non-blocking pipe I/O and SIGPIPE in pwrite().
5006         * modules/pwrite (Depends-on): Add 'write'.
5007
5008 2011-04-13  Bruno Haible  <bruno@clisp.org>
5009
5010         Support non-blocking pipe I/O in write() on native Windows.
5011         * lib/unistd.in.h (write): Enable replacement also if
5012         GNULIB_UNISTD_H_NONBLOCKING is 1.
5013         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
5014         (rpl_write): When failing to write on a non-blocking pipe, change
5015         errno from ENOSPC to EAGAIN.
5016         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
5017         putchar, puts, vfprintf, vprintf): Enable replacement also if
5018         GNULIB_STDIO_H_NONBLOCKING is 1.
5019         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
5020         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
5021         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
5022         CALL_WITH_SIGPIPE_EMULATION.
5023         (CALL_WITH_SIGPIPE_EMULATION): Use them.
5024         * m4/nonblocking.m4: New file.
5025         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
5026         for non-blocking I/O support.
5027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5028         GNULIB_UNISTD_H_NONBLOCKING.
5029         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
5030         required for non-blocking I/O support.
5031         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
5032         * modules/nonblocking (Files): Add m4/nonblocking.m4,
5033         lib/stdio-write.c, m4/asm-underscore.m4.
5034         (Depends-on): Add stdio, unistd.
5035         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
5036         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
5037         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
5038         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
5039         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
5040         problem with non-blocking pipes.
5041         * doc/posix-functions/fputc.texi: Likewise.
5042         * doc/posix-functions/fputs.texi: Likewise.
5043         * doc/posix-functions/fwrite.texi: Likewise.
5044         * doc/posix-functions/printf.texi: Likewise.
5045         * doc/posix-functions/putc.texi: Likewise.
5046         * doc/posix-functions/putchar.texi: Likewise.
5047         * doc/posix-functions/puts.texi: Likewise.
5048         * doc/posix-functions/vfprintf.texi: Likewise.
5049         * doc/posix-functions/vprintf.texi: Likewise.
5050         * doc/posix-functions/write.texi: Likewise.
5051
5052 2011-04-10  Jim Meyering  <meyering@redhat.com>
5053
5054         maint.mk: prohibit doubled words
5055         Detect them also when they're separated by a newline.
5056         There are 3 ways to customize it:
5057           - disable the test on a per file basis, as usual with rules using
5058             $(VC_LIST_EXCEPT)
5059           - replace the default doubled-word-selecting regexp (affects all files)
5060           - ignore a particular file-vs-doubled-word match
5061         I nearly used that last one to ignore the "is is" match in
5062         coreutils' NEWS file, since the text was "ls -is is ..."
5063         To do that, I would have added this line to cfg.mk:
5064           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
5065         but it would have ignored any "is is" match in NEWS.
5066         Low probability, but still...
5067         Instead, I changed the text, slightly:
5068           -  ls -is is now consistent with ls -lis in ignoring values returned
5069           +  "ls -is" is now consistent with ls -lis in ignoring values returned
5070         * top/maint.mk (prohibit_double_word_RE_): Provide default.
5071         (prohibit_doubled_word_): Define.
5072         (sc_prohibit_doubled_word): New rule.
5073         (sc_prohibit_the_the): Remove.  Subsumed by the above.
5074
5075 2011-04-10  Jim Meyering  <meyering@redhat.com>
5076
5077         maint: fix doubled-word typo in comment
5078         * m4/gethostname.m4: s/is is/it is/
5079         * m4/getdomainname.m4: Likewise.
5080
5081 2011-04-10  Jim Meyering  <meyering@redhat.com>
5082
5083         maint: remove doubled word: s/it it/it/
5084         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
5085
5086 2011-04-10  Jim Meyering  <meyering@redhat.com>
5087
5088         maint.mk: remove useless semicolon and backslash
5089         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
5090         semicolon and backslash.
5091
5092 2011-04-10  Bruno Haible  <bruno@clisp.org>
5093
5094         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
5095         * modules/stdint-tests (Depends-on): Add wchar.
5096
5097 2011-04-10  Jim Meyering  <meyering@redhat.com>
5098
5099         maint: remove doubled words in comments, e.g., s/a a/a/
5100         * lib/strptime.c (day_of_the_week): s/the the/the/
5101         * tests/test-chown.h (test_chown): s/a a/a/
5102
5103         test-chown.h: correct a cast
5104         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5105         when the destination is a stat.st_gid.
5106
5107 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
5108
5109         getaddrinfo: Fix test for sa_len member.
5110         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
5111         include <sys/types.h> before <sys/socket.h>.
5112
5113 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5114
5115         maint: change "can not" to "cannot"
5116         * doc/posix-functions/iconv.texi (iconv): This one crossed line
5117         boundaries.
5118
5119 2011-04-09  Jim Meyering  <meyering@redhat.com>
5120
5121         maint: change "a a" to "a"
5122         * tests/test-lchown.h (test_lchown): s/a a/a/
5123
5124         maint.mk: prohibit \<the the\>
5125         * top/maint.mk (sc_prohibit_the_the): New rule.
5126
5127         maint: fix "the the" in comment
5128         * lib/count-one-bits.h: s/the the/the/
5129
5130         maint: change "can not" to "cannot"
5131         But do not change the occurrences in maintain.texi or in
5132         build-aux/po/Makefile.in.in, which I presume comes from gettext.
5133         * doc/gnulib-tool.texi: s/can not/cannot/
5134         * doc/posix-functions/accept.texi (accept): Likewise.
5135         * doc/posix-functions/socket.texi (socket): Likewise.
5136         * lib/mbrtowc.c: Likewise.
5137
5138         maint.mk: prohibit use of "can not"
5139         * top/maint.mk (sc_prohibit_can_not): New rule.
5140         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
5141
5142 2011-04-09  Bruno Haible  <bruno@clisp.org>
5143
5144         careadlinkat: Guard against misuse of careadlinkatcwd.
5145         * lib/careadlinkat.c: Include <stdlib.h>.
5146         (careadlinkatcwd): Check that the fd argument is as expected.
5147
5148 2011-04-09  Bruno Haible  <bruno@clisp.org>
5149
5150         careadlinkat: Use common coding style.
5151         * lib/careadlinkat.c: Move gnulib includes after system includes.
5152
5153 2011-04-09  Bruno Haible  <bruno@clisp.org>
5154
5155         careadlinkat: Clarify specification.
5156         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
5157         (careadlinkatcwd): Add comment.
5158         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
5159
5160 2011-04-09  Bruno Haible  <bruno@clisp.org>
5161
5162         areadlinkat: Avoid link error on many platforms.
5163         * modules/areadlinkat (Depends-on): Add areadlink.
5164
5165 2011-04-09  Bruno Haible  <bruno@clisp.org>
5166
5167         allocator, careadlinkat: Fix double-inclusion guard.
5168         * lib/allocator.h: Fix double-inclusion guard.
5169         * lib/careadlinkat.h: Likewise.
5170
5171 2011-04-09  Bruno Haible  <bruno@clisp.org>
5172
5173         relocatable-prog-wrapper: Update after module 'areadlink' changed.
5174         * lib/relocwrapper.c: Update dependencies hierarchy.
5175         * build-aux/install-reloc: Update list of files to be compiled.
5176         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
5177         lib/allocator.[hc].
5178
5179 2011-04-08  Eric Blake  <eblake@redhat.com>
5180
5181         strftime: silence gnulib-tool warning
5182         * modules/strftime-tests (Depends-on): Drop automatic dependency.
5183
5184 2011-04-08  Bruno Haible  <bruno@clisp.org>
5185
5186         verify: Fix syntax error with GCC 4.6 in C++ mode.
5187         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
5188         (HAVE_STATIC_ASSERT): New macro.
5189         (verify_true, verify): Use 'static_assert' if it is supported and
5190         '_Static_assert' is not supported.
5191
5192 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5193
5194         allocator: New module.
5195         * modules/allocator, lib/allocator.c: New files.
5196         * lib/allocator.h (stdlib_allocator): New decl.
5197         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
5198         Remove.  Do not include <stdlib.h>.
5199         (careadlinkat): Use stdlib_allocator instead of rolling our own.
5200         * modules/careadlinkat (Files): Remove lib/allocator.h.
5201         (Depends-on): Add allocator.
5202
5203         stdlib: let modules use system malloc, realloc
5204         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
5205         if !_GL_USE_STDLIB_ALLOC.
5206         (malloc, realloc): Limit this change to a smaller scope.
5207
5208         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
5209         (malloc, realloc): Don't #undef; no longer needed.
5210         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5211         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5212         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5213         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5214         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5215         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5216         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5217         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5218
5219         careadlinkat: rename members to avoid problem
5220         * lib/allocator.h (struct allocator): Rename members from
5221         malloc/realloc to allocate/reallocate, to avoid problems if malloc
5222         and realloc are #define'd.  Reported by Eric Blake in
5223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
5224         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
5225
5226 2011-04-08  Eric Blake  <eblake@redhat.com>
5227
5228         nonblocking: reduce dependency
5229         * tests/test-nonblocking.c: Only test sockets when in use.
5230         * modules/nonblocking-tests (Depends-on): Drop socket.
5231         (Makefile.am): Link even if sockets are not present.
5232         * modules/pipe2-tests (Makefile.am): Likewise.
5233         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
5234
5235         pipe2: fix O_NONBLOCK support on mingw
5236         * modules/pipe2 (Depends-on): Add nonblocking.
5237         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
5238         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
5239         * tests/test-nonblocking.c (main): Likewise.
5240         * modules/pipe2-tests (Makefile.am): Avoid link failure.
5241
5242         fcntl-h: fix O_ACCMODE on cygwin
5243         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
5244         * lib/fcntl.in.h (O_ACCMODE): Fix it.
5245
5246         pipe-filter: drop O_NONBLOCK workarounds
5247         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
5248         * modules/pipe-filter-ii (Depends-on): Likewise.
5249         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
5250
5251         nonblocking: provide O_NONBLOCK for mingw
5252         * modules/nonblocking (Depends-on): Add open.
5253         (configure.ac): Set new witness macro.
5254         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
5255         * modules/fcntl-h (Makefile.am): Substitute it.
5256         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
5257         nonblocking module is in use.
5258         * lib/nonblocking.c: Adjust portability test.
5259         * lib/open.c (open): Don't let native open see gnulib flag.
5260         * tests/test-fcntl-h.c (main): Enhance test.
5261         * tests/test-open.h (test_open): Likewise.
5262         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
5263
5264         careadlinkat: fix compilation error on mingw
5265         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
5266         within struct allocator.
5267
5268 2011-04-06  Eric Blake  <eblake@redhat.com>
5269
5270         binary-io: relicense under LGPLv2+
5271         * modules/binary-io (License): Relax to LGPLv2+.
5272         Requested for libvirt, and required by pipe2.
5273
5274 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5275
5276         verify: use _Static_assert if available
5277         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
5278         (verify_true, verify): Use it if available.  This generates better
5279         diagnostics with GCC 4.6.0 and later.
5280
5281 2011-04-05  Bruno Haible  <bruno@clisp.org>
5282
5283         Remove leftover generated .h files after config.status changed.
5284
5285         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
5286         GL_GENERATE_ALLOCA_H.
5287         * modules/alloca-opt (Makefile.am): Remove alloca.h if
5288         GL_GENERATE_ALLOCA_H evaluates to false.
5289
5290         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
5291         GL_GENERATE_ARGZ_H.
5292         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
5293         evaluates to false.
5294
5295         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
5296         GL_GENERATE_BYTESWAP_H.
5297         * modules/byteswap (Makefile.am): Remove byteswap.h if
5298         GL_GENERATE_BYTESWAP_H evaluates to false.
5299
5300         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
5301         GL_GENERATE_ERRNO_H.
5302         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
5303         evaluates to false.
5304
5305         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
5306         GL_GENERATE_FLOAT_H.
5307         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
5308         evaluates to false.
5309
5310         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
5311         GL_GENERATE_FNMATCH_H.
5312         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
5313         GL_GENERATE_FNMATCH_H evaluates to false.
5314
5315         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
5316         GL_GENERATE_GLOB_H.
5317         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
5318         evaluates to false.
5319
5320         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
5321         automake conditional GL_GENERATE_ICONV_H.
5322         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
5323         evaluates to false.
5324
5325         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
5326         GL_GENERATE_NETINET_IN_H.
5327         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
5328         GL_GENERATE_NETINET_IN_H evaluates to false.
5329
5330         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5331         conditional GL_GENERATE_PTHREAD_H.
5332         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5333         * modules/pthread (Makefile.am): Remove pthread.h if
5334         GL_GENERATE_PTHREAD_H evaluates to false.
5335
5336         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5337         GL_GENERATE_SCHED_H.
5338         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5339         evaluates to false.
5340
5341         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5342         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5343         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5344         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5345
5346         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5347         GL_GENERATE_STDARG_H.
5348         * modules/stdarg (Makefile.am): Remove stdarg.h if
5349         GL_GENERATE_STDARG_H evaluates to false.
5350
5351         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5352         GL_GENERATE_STDBOOL_H.
5353         * modules/stdbool (Makefile.am): Remove stdbool.h if
5354         GL_GENERATE_STDBOOL_H evaluates to false.
5355
5356         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5357         conditional GL_GENERATE_STDDEF_H.
5358         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5359         * modules/stddef (Makefile.am): Remove stddef.h if
5360         GL_GENERATE_STDDEF_H evaluates to false.
5361
5362         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5363         GL_GENERATE_STDINT_H.
5364         * modules/stdint (Makefile.am): Remove stdint.h if
5365         GL_GENERATE_STDINT_H evaluates to false.
5366
5367         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5368         GL_GENERATE_SYSEXITS_H.
5369         * modules/sysexits (Makefile.am): Remove sysexits.h if
5370         GL_GENERATE_SYSEXITS_H evaluates to false.
5371
5372         Reported by Karl Berry and Ralf Wildenhues.
5373
5374 2011-04-05  Bruno Haible  <bruno@clisp.org>
5375
5376         Ensure to rebuild generated .h files when config.status has changed.
5377         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5378         config.status.
5379         * modules/ctype (Makefile.am): Likewise.
5380         * modules/dirent (Makefile.am): Likewise.
5381         * modules/errno (Makefile.am): Likewise.
5382         * modules/fcntl-h (Makefile.am): Likewise.
5383         * modules/float (Makefile.am): Likewise.
5384         * modules/getopt-posix (Makefile.am): Likewise.
5385         * modules/glob (Makefile.am): Likewise.
5386         * modules/iconv-h (Makefile.am): Likewise.
5387         * modules/inttypes (Makefile.am): Likewise.
5388         * modules/langinfo (Makefile.am): Likewise.
5389         * modules/locale (Makefile.am): Likewise.
5390         * modules/math (Makefile.am): Likewise.
5391         * modules/netdb (Makefile.am): Likewise.
5392         * modules/netinet_in (Makefile.am): Likewise.
5393         * modules/poll-h (Makefile.am): Likewise.
5394         * modules/pthread (Makefile.am): Likewise.
5395         * modules/pty (Makefile.am): Likewise.
5396         * modules/sched (Makefile.am): Likewise.
5397         * modules/search (Makefile.am): Likewise.
5398         * modules/selinux-h (Makefile.am): Likewise.
5399         * modules/signal (Makefile.am): Likewise.
5400         * modules/spawn (Makefile.am): Likewise.
5401         * modules/stdarg (Makefile.am): Likewise.
5402         * modules/stdbool (Makefile.am): Likewise.
5403         * modules/stddef (Makefile.am): Likewise.
5404         * modules/stdint (Makefile.am): Likewise.
5405         * modules/stdio (Makefile.am): Likewise.
5406         * modules/stdlib (Makefile.am): Likewise.
5407         * modules/string (Makefile.am): Likewise.
5408         * modules/strings (Makefile.am): Likewise.
5409         * modules/sys_file (Makefile.am): Likewise.
5410         * modules/sys_ioctl (Makefile.am): Likewise.
5411         * modules/sys_select (Makefile.am): Likewise.
5412         * modules/sys_socket (Makefile.am): Likewise.
5413         * modules/sys_stat (Makefile.am): Likewise.
5414         * modules/sys_time (Makefile.am): Likewise.
5415         * modules/sys_times (Makefile.am): Likewise.
5416         * modules/sys_utsname (Makefile.am): Likewise.
5417         * modules/sys_wait (Makefile.am): Likewise.
5418         * modules/sysexits (Makefile.am): Likewise.
5419         * modules/termios (Makefile.am): Likewise.
5420         * modules/time (Makefile.am): Likewise.
5421         * modules/unistd (Makefile.am): Likewise.
5422         * modules/wchar (Makefile.am): Likewise.
5423         * modules/wctype-h (Makefile.am): Likewise.
5424         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5425
5426 2011-04-05  Bruno Haible  <bruno@clisp.org>
5427
5428         pipe2: Relicense under LGPLv2+.
5429         * modules/pipe2 (License): Change to LGPLv2+.
5430         Requested by Eric Blake, for libvirt.
5431
5432 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5433
5434         bootstrap: compute gnulib_extra_files after updating build_aux
5435         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5436         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5437
5438 2011-04-05  Eric Blake  <eblake@redhat.com>
5439
5440         bootstrap: preserve git whitelist item sorting
5441         * build-aux/bootstrap (sort_patterns): New function.
5442         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5443
5444 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5445
5446         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5447         sc_space_tab check.
5448
5449 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5450
5451         areadlink, areadlinkat: rewrite in terms of careadlinkat
5452         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5453         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5454         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5455         (malloc, realloc): Remove #undefs.
5456         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5457         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5458         readlink, ssize_t, stdint, unistd.
5459         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5460         areadlink, stdint.
5461
5462         careadlinkat: new module
5463         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5464         * modules/careadlinkat: New files, written by me with
5465         a review and feedback from Ben Pfaff in
5466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5467
5468 2011-04-01  Bruno Haible  <bruno@clisp.org>
5469
5470         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5471         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5472         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5473         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5474         Reported by Bruce Korb <bruce.korb@gmail.com>.
5475
5476 2011-04-01  Bruno Haible  <bruno@clisp.org>
5477
5478         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5479         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5480         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5481         * modules/wcpcpy (Depends-on): Add extensions.
5482         * modules/wcpncpy (Depends-on): Likewise.
5483         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5484         systems.
5485         * doc/posix-functions/wcpncpy.texi: Likewise.
5486         * doc/posix-functions/wcwidth.texi: Likewise.
5487
5488 2011-03-31  Eric Blake  <eblake@redhat.com>
5489
5490         nonblocking: fix mingw test failures
5491         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5492         non-blocking flag on regular file.
5493         (get_nonblocking_flag): Set errno on invalid fd.
5494         * tests/test-nonblocking.c (main): Avoid test failure on
5495         directories if fchdir is not active.
5496         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5497
5498 2011-03-31  Bruno Haible  <bruno@clisp.org>
5499
5500         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5501         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5502         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5503         Reported by Simon Josefsson <simon@josefsson.org>.
5504
5505 2011-03-31  Bruno Haible  <bruno@clisp.org>
5506         and Eric Blake  <eblake@redhat.com>
5507
5508         nonblocking: new module
5509         * modules/nonblocking: New module.
5510         * modules/nonblocking-tests: Likewise.
5511         * lib/nonblocking.h: New file.
5512         * lib/nonblocking.c: Likewise.
5513         * tests/test-nonblocking.c: New test.
5514         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5515
5516 2011-03-30  Bruno Haible  <bruno@clisp.org>
5517
5518         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5519         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5520         instead of 'printf' format for GCC >= 4.4.
5521         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5522         (fprintf, printf, vfprintf, vprintf): Declare with
5523         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5524         the system's vfprintf() function.
5525         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5526
5527 2011-03-30  Eric Blake  <eblake@redhat.com>
5528
5529         passfd: fix scoping bug
5530         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5531         before sendmsg/recvmsg.
5532
5533         passfd: standardize coding conventions
5534         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5535         can be learned at compile time.
5536         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5537         ifdefs.
5538         (sendfd, recvfd): Follow gnulib code conventions.
5539
5540         passfd: fix incorrect sendmsg arguments
5541         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5542         incorrect msg_controllen value.
5543         * modules/passfd-tests (Depends-on): Check for alarm.
5544         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5545         Reported by Bastien ROUCARIES.
5546
5547 2011-03-30  Bruno Haible  <bruno@clisp.org>
5548
5549         c-strcasestr: Relicense under LGPLv2+.
5550         * modules/c-strcasestr (License): Change to LGPLv2+.
5551         Requested by Eric Blake, for libvirt.
5552
5553 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5554
5555         * users.txt: Add libidn2.  Fix libtasn1 link.
5556
5557 2011-03-30  Jim Meyering  <meyering@redhat.com>
5558
5559         tests: readlink* ("",... fails with EINVAL on newer kernels
5560         readlink and readlinkat have typically failed with ENOENT for
5561         the invalid, empty file name,  "".  However, with the advent
5562         of linux-2.6.39, they fail with EINVAL.
5563         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5564         when operating on the empty file name.
5565         * tests/test-readlink.h (test_readlink): Likewise.
5566
5567 2011-03-29  Bruno Haible  <bruno@clisp.org>
5568
5569         Relicense some modules under LGPLv2+, for libidn2.
5570         * modules/array-mergesort (License): Change to LGPLv2+.
5571         * modules/c-strcaseeq (License): Likewise.
5572         * modules/striconveh (License): Likewise.
5573         * modules/striconveha (License): Likewise.
5574         * modules/uniconv/base (License): Likewise.
5575         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5576         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5577         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5578         * modules/unictype/base (License): Likewise.
5579         * modules/unictype/bidiclass-of (License): Likewise.
5580         * modules/unictype/category-M (License): Likewise.
5581         * modules/unictype/category-none (License): Likewise.
5582         * modules/unictype/category-of (License): Likewise.
5583         * modules/unictype/category-test (License): Likewise.
5584         * modules/unictype/category-test-withtable (License): Likewise.
5585         * modules/unictype/combining-class (License): Likewise.
5586         * modules/unictype/joiningtype-of (License): Likewise.
5587         * modules/unictype/scripts (License): Likewise.
5588         * modules/uninorm/base (License): Likewise.
5589         * modules/uninorm/canonical-decomposition (License): Likewise.
5590         * modules/uninorm/composition (License): Likewise.
5591         * modules/uninorm/decompose-internal (License): Likewise.
5592         * modules/uninorm/decomposition-table (License): Likewise.
5593         * modules/uninorm/nfc (License): Likewise.
5594         * modules/uninorm/nfd (License): Likewise.
5595         * modules/uninorm/u32-normalize (License): Likewise.
5596         * modules/unistr/base (License): Likewise.
5597         * modules/unistr/u32-cpy (License): Likewise.
5598         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5599         * modules/unistr/u32-to-u8 (License): Likewise.
5600         * modules/unistr/u32-uctomb (License): Likewise.
5601         * modules/unistr/u8-check (License): Likewise.
5602         * modules/unistr/u8-mblen (License): Likewise.
5603         * modules/unistr/u8-mbtouc (License): Likewise.
5604         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5605         * modules/unistr/u8-mbtoucr (License): Likewise.
5606         * modules/unistr/u8-prev (License): Likewise.
5607         * modules/unistr/u8-strlen (License): Likewise.
5608         * modules/unistr/u8-to-u32 (License): Likewise.
5609         * modules/unistr/u8-uctomb (License): Likewise.
5610         * modules/unitypes (License): Likewise.
5611         Requested by Simon Josefsson.
5612
5613 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5614
5615         lib-symbol-visibility: Add a notice.
5616         * modules/lib-symbol-visibility (Notice): New field.
5617
5618 2011-03-29  Bruno Haible  <bruno@clisp.org>
5619
5620         getaddrinfo: Doc fix.
5621         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5622         section "fixed in Gnulib".
5623
5624 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5625
5626         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5627         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5628
5629 2011-03-26  Bruno Haible  <bruno@clisp.org>
5630
5631         unictype/property-byname: Reduce the number of load-time relocations.
5632         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5633         (UC_PROPERTY_INDEX_*): New enumeration values.
5634         (uc_property_byname): Convert an index from the lookup table to an
5635         uc_property_t.
5636         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5637         values.
5638
5639 2011-03-26  Bruno Haible  <bruno@clisp.org>
5640
5641         unictype/property-byname: Allow omitted word separators and aliases.
5642         * lib/unictype/pr_byname.gperf: Add property names without word
5643         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5644         for 'space'.
5645
5646 2011-03-26  Bruno Haible  <bruno@clisp.org>
5647
5648         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5649         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5650         also hyphens to space.
5651         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5652         without spaces.
5653         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5654
5655 2011-03-26  Bruno Haible  <bruno@clisp.org>
5656
5657         unictype/joiningtype-byname: Recognize long names as well.
5658         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5659         a long name.
5660         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5661         unictype/joiningtype_byname.h.
5662         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5663         * lib/unictype/joiningtype_byname.gperf: New file.
5664         * modules/unictype/joiningtype-byname (Files): Add
5665         lib/unictype/joiningtype_byname.gperf.
5666         (Depends-on): Add gperf.
5667         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5668         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5669         long names.
5670
5671         Tests for module 'unictype/joiningtype-longname'.
5672         * modules/unictype/joiningtype-longname-tests: New file.
5673         * tests/unictype/test-joiningtype_longname.c: New file.
5674
5675         New module 'unictype/joiningtype-longname'.
5676         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5677         * lib/unictype/joiningtype_longname.c: New file.
5678         * modules/unictype/joiningtype-longname: New file.
5679         * modules/unictype/joiningtype-all (Depends-on): Add
5680         unictype/joiningtype-longname.
5681
5682 2011-03-26  Bruno Haible  <bruno@clisp.org>
5683
5684         unictype/bidiclass-byname: Recognize long names as well.
5685         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5686         name.
5687         * lib/unictype/bidi_byname.c: Include <string.h>,
5688         unictype/bidi_byname.h.
5689         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5690         * lib/unictype/bidi_byname.gperf: New file.
5691         * modules/unictype/bidiclass-byname (Files): Add
5692         lib/unictype/bidi_byname.gperf.
5693         (Depends-on): Add gperf.
5694         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5695         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5696         long names.
5697
5698         Tests for module 'unictype/bidiclass-longname'.
5699         * modules/unictype/bidiclass-longname-tests: New file.
5700         * tests/unictype/test-bidi_longname.c: New file.
5701
5702         New module 'unictype/bidiclass-longname'.
5703         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5704         * lib/unictype/bidi_longname.c: New file.
5705         * modules/unictype/bidiclass-longname: New file.
5706         * modules/unictype/bidiclass-all (Depends-on): Add
5707         unictype/bidiclass-longname.
5708
5709 2011-03-26  Bruno Haible  <bruno@clisp.org>
5710
5711         unictype/bidi*: Rename modules.
5712         * modules/unictype/bidiclass-all: Renamed from
5713         modules/unictype/bidicategory-all.
5714         * modules/unictype/bidiclass-name: Renamed from
5715         modules/unictype/bidiclass-name.
5716         (Description): Update.
5717         * modules/unictype/bidiclass-name-tests: Renamed from
5718         modules/unictype/bidicategory-name-tests.
5719         * modules/unictype/bidiclass-byname: Renamed from
5720         modules/unictype/bidicategory-byname.
5721         (Description): Update.
5722         * modules/unictype/bidiclass-byname-tests: Renamed from
5723         modules/unictype/bidicategory-byname-tests.
5724         * modules/unictype/bidiclass-of: Renamed from
5725         modules/unictype/bidicategory-of.
5726         (Description): Update.
5727         * modules/unictype/bidiclass-of-tests: Renamed from
5728         modules/unictype/bidicategory-of-tests.
5729         * modules/unictype/bidiclass-test: Renamed from
5730         modules/unictype/bidicategory-test.
5731         (Description): Update.
5732         * modules/unictype/bidiclass-test-tests: Renamed from
5733         modules/unictype/bidicategory-test-tests.
5734         * modules/unictype/bidicategory-all: New file, a simple redirection.
5735         * modules/unictype/bidicategory-name: Likewise.
5736         * modules/unictype/bidicategory-byname: Likewise.
5737         * modules/unictype/bidicategory-of: Likewise.
5738         * modules/unictype/bidicategory-test: Likewise.
5739         * modules/unictype/property-bidi-* (Dependencies): Update.
5740         * lib/unictype/bidi_*.c: Update comment.
5741
5742 2011-03-26  Bruno Haible  <bruno@clisp.org>
5743
5744         unictype/bidi*: Rename functions, part 2.
5745         * modules/unictype/bidicategory-name (configure.ac): Update required
5746         libunistring version.
5747         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5748
5749 2011-03-25  Bruno Haible  <bruno@clisp.org>
5750
5751         New module 'unictype/combining-class-all'.
5752         * modules/unictype/combining-class-all: New file.
5753
5754         Tests for module 'unictype/combining-class-byname'.
5755         * modules/unictype/combining-class-byname-tests: New file.
5756         * tests/unictype/test-combiningclass_byname.c: New file.
5757
5758         New module 'unictype/combining-class-byname'.
5759         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5760         * lib/unictype/combiningclass_byname.c: New file.
5761         * lib/unictype/combiningclass_byname.gperf: New file.
5762         * modules/unictype/combining-class-byname: New file.
5763
5764         Tests for module 'unictype/combining-class-longname'.
5765         * modules/unictype/combining-class-longname-tests: New file.
5766         * tests/unictype/test-combiningclass_longname.c: New file.
5767
5768         New module 'unictype/combining-class-longname'.
5769         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5770         * lib/unictype/combiningclass_longname.c: New file.
5771         * modules/unictype/combining-class-longname: New file.
5772
5773         Tests for module 'unictype/combining-class-name'.
5774         * modules/unictype/combining-class-name-tests: New file.
5775         * tests/unictype/test-combiningclass_name.c: New file.
5776
5777         New module 'unictype/combining-class-name'.
5778         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5779         * lib/unictype/combiningclass_name.c: New file.
5780         * modules/unictype/combining-class-name: New file.
5781
5782 2011-03-25  Bruno Haible  <bruno@clisp.org>
5783
5784         unictype/combining-class: Rename source files.
5785         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5786         of unictype/combining.h.
5787         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5788         Update.
5789         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5790         * modules/unictype/combining-class (Description): Fix.
5791         (Files, Makefile.am): Update.
5792         * tests/unictype/test-combiningclass.c: Renamed from
5793         tests/unictype/test-combining.c.
5794         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5795
5796 2011-03-25  Bruno Haible  <bruno@clisp.org>
5797
5798         unictype: Update list of canonical combining classes.
5799         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5800
5801 2011-03-25  Bruno Haible  <bruno@clisp.org>
5802
5803         unictype/category-byname: Recognize long names as well.
5804         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5805         a long name.
5806         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5807         unictype/categ_byname.h.
5808         (UC_CATEGORY_INDEX_*): New enumeration values.
5809         (uc_general_category_byname): Use uc_general_category_lookup and
5810         convert from index to value.
5811         * lib/unictype/categ_byname.gperf: New file.
5812         * modules/unictype/category-byname (Files): Add
5813         lib/unictype/categ_byname.gperf.
5814         (Depends-on): Add gperf.
5815         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5816         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5817         long names.
5818
5819         Tests for module 'unictype/category-longname'.
5820         * modules/unictype/category-longname-tests: New file.
5821         * tests/unictype/test-categ_longname.c: New file.
5822
5823         New module 'unictype/category-longname'.
5824         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5825         * lib/unictype/categ_longname.c: New file.
5826         * modules/unictype/category-longname: New file.
5827         * modules/unictype/category-all (Depends-on): Add it.
5828
5829 2011-03-25  Bruno Haible  <bruno@clisp.org>
5830
5831         Tests for module 'unictype/category-LC'.
5832         * modules/unictype/category-LC-tests: New file.
5833         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5834
5835         New module 'unictype/category-LC'.
5836         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5837         (UC_CATEGORY_LC): New declaration.
5838         (UC_CASED_LETTER): New macro.
5839         * lib/gen-uni-tables.c (is_category_LC): New function.
5840         (output_categories): Also handle category LC.
5841         (UC_CATEGORY_MASK_LC): New enumeration value.
5842         (general_category_byname): Also handle category LC.
5843         * lib/unictype/categ_LC.c: New file.
5844         * lib/unictype/categ_LC.h: New file, automatically generated.
5845         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5846         category LC.
5847         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5848         * modules/unictype/category-LC: New file.
5849         * modules/unictype/category-byname (Depends-on): Add
5850         unictype/category-LC.
5851         * modules/unictype/category-all (Depends-on): Likewise.
5852
5853 2011-03-25  Eric Blake  <eblake@redhat.com>
5854
5855         xmalloc: revert yesterday's regression
5856         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5857         realloc's underlying behavior (allowing allocation of zero-size
5858         objects, especially if malloc-gnu is also in use).
5859
5860 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5861
5862         maint.mk: add missing version to VC-tag
5863         * top/maint.mk: git tag was missing actual tag name; add it.
5864
5865         valgrind: do leak checking, and exit with code 1 on error (not 0)
5866         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5867         to VALGRIND.
5868
5869 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5870
5871         posix-modules: say what it does.
5872         * posix-modules: Add a line to the --help output saying what it does.
5873
5874 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5875
5876         xmalloc: Do not leak if underlying realloc is C99 compatible.
5877         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5878         This avoids a leak on C99-based systems.  See
5879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5880
5881 2011-03-24  Eric Blake  <eblake@redhat.com>
5882
5883         realloc: document portability problem
5884         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5885         passing 0 size to realloc.
5886
5887 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5888
5889         doc: update users.txt
5890         * users.txt: Add cvsps, tmpwatch
5891
5892 2011-03-23  Matt Rice  <ratmice@gmail.com>
5893
5894         doc: update users.txt
5895         * users.txt: Add gdb.
5896
5897 2011-03-23  Jim Meyering  <meyering@redhat.com>
5898
5899         doc: update users.txt
5900         Looking through matches up to the following URL (there are still
5901         several more pages), I found several projects that use gnulib:
5902         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5903         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5904         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5905
5906 2011-03-22  Bruno Haible  <bruno@clisp.org>
5907
5908         unictype/bidi*: Rename functions.
5909         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5910         uc_bidi_class, uc_is_bidi_class): New declarations.
5911         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5912         uc_bidi_category_byname.
5913         (uc_bidi_category_byname): New function.
5914         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5915         u_bidi_category_name.
5916         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5917         (uc_bidi_category_name): New function.
5918         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5919         uc_bidi_category.
5920         (uc_bidi_category): New function.
5921         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5922         uc_is_bidi_category. Invoke uc_bidi_class.
5923         (uc_is_bidi_category): New function.
5924         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5925         instead of uc_bidi_category_byname.
5926         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5927         instead of uc_bidi_category_name.
5928         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5929         uc_bidi_category.
5930         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5931         instead of uc_is_bidi_category.
5932
5933 2011-03-21  Bruno Haible  <bruno@clisp.org>
5934
5935         New module 'unictype/joininggroup-all'.
5936         * modules/unictype/joininggroup-all: New file.
5937
5938         Tests for module 'unictype/joininggroup-of'.
5939         * modules/unictype/joininggroup-of-tests: New file.
5940         * tests/unictype/test-joininggroup_of.c: New file.
5941         * tests/unictype/test-joininggroup_of.h: New file, automatically
5942         generated by gen-uni-tables.
5943
5944         New module 'unictype/joininggroup-of'.
5945         * modules/unictype/joininggroup-of: New file.
5946         * lib/unictype/joininggroup_of.c: New file.
5947         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5948         gen-uni-tables.
5949
5950         Tests for module 'unictype/joininggroup-byname'.
5951         * modules/unictype/joininggroup-byname-tests: New file.
5952         * tests/unictype/test-joininggroup_byname.c: New file.
5953
5954         New module 'unictype/joininggroup-byname'.
5955         * modules/unictype/joininggroup-byname: New file.
5956         * lib/unictype/joininggroup_byname.c: New file.
5957         * lib/unictype/joininggroup_byname.gperf: New file.
5958
5959         Tests for module 'unictype/joininggroup-name'.
5960         * modules/unictype/joininggroup-name-tests: New file.
5961         * tests/unictype/test-joininggroup_name.c: New file.
5962
5963         New module 'unictype/joininggroup-name'.
5964         * modules/unictype/joininggroup-name: New file.
5965         * lib/unictype/joininggroup_name.c: New file.
5966         * lib/unictype/joininggroup_name.h: New file.
5967
5968         New module 'unictype/joiningtype-all'.
5969         * modules/unictype/joiningtype-all: New file.
5970
5971         Tests for module 'unictype/joiningtype-of'.
5972         * modules/unictype/joiningtype-of-tests: New file.
5973         * tests/unictype/test-joiningtype_of.c: New file.
5974         * tests/unictype/test-joiningtype_of.h: New file, automatically
5975         generated by gen-uni-tables.
5976
5977         New module 'unictype/joiningtype-of'.
5978         * modules/unictype/joiningtype-of: New file.
5979         * lib/unictype/joiningtype_of.c: New file.
5980         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5981         gen-uni-tables.
5982
5983         Tests for module 'unictype/joiningtype-byname'.
5984         * modules/unictype/joiningtype-byname-tests: New file.
5985         * tests/unictype/test-joiningtype_byname.c: New file.
5986
5987         New module 'unictype/joiningtype-byname'.
5988         * modules/unictype/joiningtype-byname: New file.
5989         * lib/unictype/joiningtype_byname.c: New file.
5990
5991         Tests for module 'unictype/joiningtype-name'.
5992         * modules/unictype/joiningtype-name-tests: New file.
5993         * tests/unictype/test-joiningtype_name.c: New file.
5994
5995         New module 'unictype/joiningtype-name'.
5996         * modules/unictype/joiningtype-name: New file.
5997         * lib/unictype/joiningtype_name.c: New file.
5998
5999         unictype: Add support for Arabic shaping properties.
6000         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
6001         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
6002         declarations.
6003         (UC_JOINING_GROUP_*): New enumeration values.
6004         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
6005         declarations.
6006         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
6007         (unicode_joining_type): New variable.
6008         (UC_JOINING_GROUP_*): New enumeration values.
6009         (unicode_joining_group): New variable.
6010         (fill_arabicshaping, joining_type_as_c_identifier,
6011         output_joining_type_test, output_joining_type,
6012         joining_group_as_c_identifier, output_joining_group_test,
6013         output_joining_group): New functions.
6014         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
6015         fill_arabicshaping and output_joining_type_test, output_joining_type,
6016         output_joining_group_test, output_joining_group.
6017         Reported by Simon Josefsson.
6018
6019 2011-03-21  Jim Meyering  <meyering@redhat.com>
6020
6021         strftime: fix a bug in yesterday's change
6022         * lib/strftime.c (add): Accommodate width's initial value of -1.
6023         Otherwise, nstrftime would copy uninitialized data into
6024         the result buffer.
6025
6026 2011-03-21  Jim Meyering  <meyering@redhat.com>
6027
6028         tests: add strftime-tests module
6029         * tests/test-strftime.c: New file.
6030         * modules/strftime-tests: New module.
6031
6032 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6033
6034         strftime: don't assume a byte count fits in 'int'
6035         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
6036         found this problem by static analysis, using gcc -Wstrict-overflow
6037         (GCC 4.5.2, x86-64).  This reported an optimization that depended
6038         on an integer overflow having undefined behavior, but it turns out
6039         that the argument is a size, which might not fit in 'int' anyway,
6040
6041 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6042
6043         stdio: don't require ignore_value around fwrite
6044
6045         This patch works around libc bug 11959
6046         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
6047         Without this patch, applications must often write
6048         ignore_value (fwrite (...)) even though the ignore_value is
6049         not helpful here.  It's common to write many objects, using
6050         fwrite/printf/etc., and then use ferror to detect output error.
6051
6052         I considered making this patch optional, but decided against it,
6053         because libc is obviously being inconsistent here: there is no
6054         reason libc should insist that user code must inspect fwrite
6055         return's value without also insisting that it inspect printf's,
6056         putchar's, etc.  If user code wants to have a strict style where
6057         all these functions' values are checked (so that ferror need not
6058         be checked), we could add support for that style in a new gnulib
6059         module, but in the meantime it's better to be consistent and to
6060         support common usage.
6061
6062         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
6063         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
6064         that we are compiling in checking mode, and if not C++, and
6065         if not already wrapping fwrite for some other reason.
6066         (fwrite): #define to rpl_fwrite if the latter is defined.
6067
6068 2011-03-20  Bruno Haible  <bruno@clisp.org>
6069
6070         verror: Fix compilation error introduced on 2011-02-13.
6071         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
6072         instead of __attribute__.
6073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6074
6075 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6076             Bruno Haible  <bruno@clisp.org>
6077
6078         socklen: do not depend on sys_socket
6079         While trying to modify Emacs to use gnulib's socklen module,
6080         I discovered a circular dependency: socklen depends on sys_socket
6081         and vice versa.  Emacs can use socklen, but it does not need
6082         sys_socket because it has its own substitute for sys/socket.h.
6083         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
6084         gl_TYPE_SOCKLEN_T.
6085         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
6086         gl_PREREQ_SYS_H_SOCKET.
6087         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
6088         gl_PREREQ_SYS_H_SOCKET.
6089         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
6090         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
6091         * modules/socklen (Depends-on): Do not depend on sys_socket.
6092         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
6093
6094 2011-03-20  Jim Meyering  <meyering@redhat.com>
6095
6096         maint.mk: sort file names *after* new transformation
6097         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
6098         prefix would have led to an unwarranted failure in GNU parted.
6099         Sort after that transformation.
6100
6101 2011-03-19  Jim Meyering  <meyering@redhat.com>
6102
6103         maint.mk: fix po-file syntax-check rule
6104         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
6105         Patch by Bruno Haible.
6106
6107 2011-03-19  Bruno Haible  <bruno@clisp.org>
6108
6109         socklen: Update comment.
6110         * m4/socklen.m4: Update comment about platforms.
6111
6112 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6113             Bruno Haible  <bruno@clisp.org>
6114
6115         inet_ntop, inet_pton: Simplify.
6116         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
6117         documented to provide socklen_t and we already depend on sys_socket.
6118         * modules/inet_pton (Depends-on): Likewise.
6119         * lib/arpa_inet.in.h: Adjust comment.
6120
6121 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6122             Bruno Haible  <bruno@clisp.org>
6123
6124         netdb: Simplify.
6125         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
6126         documented to provide socklen_t and we already depend on sys_socket.
6127         * lib/netdb.in.h: Adjust comment.
6128
6129 2011-03-19  Bruno Haible  <bruno@clisp.org>
6130
6131         sys_socket, netdb: Document problem with socklen_t.
6132         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
6133         platforms.
6134         * doc/posix-headers/netdb.texi: Likewise.
6135
6136 2011-03-18  Eric Blake  <eblake@redhat.com>
6137
6138         maint.mk: let po check work in VPATH build
6139         * top/maint.mk (po_file): Allow cfg.mk override.
6140         (sc_po_check): Allow VPATH use.
6141         Reported by Jiri Denemark.
6142
6143 2011-03-16  Jim Meyering  <meyering@redhat.com>
6144
6145         maint.mk: allow fine-grained syntax-check exclusion via Make variables
6146         Before, you would have had to create one .x-sc_ file per rule in order
6147         to exempt offending files.  Now, you may instead use a Make variable --
6148         usually defined in cfg.mk -- whose name identifies the affected rule.
6149         * top/maint.mk (_sc_excl): Define.
6150         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
6151         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
6152
6153 2011-03-13  Bruno Haible  <bruno@clisp.org>
6154
6155         ignore-value tests: Avoid warnings.
6156         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
6157         empty for gcc < 3.4.
6158
6159 2011-03-13  Bruno Haible  <bruno@clisp.org>
6160
6161         passfd: Fix link error on Solaris.
6162         * modules/passfd (Description): Correct.
6163         (Depends-on): Add socketlib.
6164         (Link): New section.
6165         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
6166
6167 2011-03-13  Bruno Haible  <bruno@clisp.org>
6168
6169         passfd: Fix link error on AIX 5.2.
6170         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
6171
6172 2011-03-13  Bruno Haible  <bruno@clisp.org>
6173
6174         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
6175         * lib/sys_socket.in.h: Include <stddef.h>.
6176         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
6177         CMSG_FIRSTHDR. Remove unused variable.
6178
6179 2011-03-13  Bruno Haible  <bruno@clisp.org>
6180
6181         passfd: Fix compilation error on OpenBSD.
6182         * lib/passfd.c: Include <sys/uio.h>.
6183
6184 2011-03-13  Bruno Haible  <bruno@clisp.org>
6185
6186         passfd test: Fix warnings.
6187         * tests/test-passfd.c: Include <sys/wait.h>.
6188         (main): Fix typo.
6189
6190 2011-03-13  Bruno Haible  <bruno@clisp.org>
6191
6192         passfd module, part 4, tweaks.
6193         * tests/test-passfd.c: Reorder includes.
6194         (main): Fix perror and printf calls.
6195
6196 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6197
6198         passfd module, part 4.
6199         * modules/passfd-tests: New file.
6200         * tests/test-passfd.c: New file.
6201
6202 2011-03-13  Jim Meyering  <meyering@redhat.com>
6203
6204         Makefile: rely on GNU make; derive syntax-check rule names
6205         Rather than requiring that each sc_ rule be listed as a dependent
6206         of "check", use features of GNU make to derive the list.
6207         * Makefile (syntax-check-rules): Define.
6208         (check): Depend on the new variable, not the hard-coded list.
6209
6210 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
6211             Bruno Haible  <bruno@clisp.org>
6212
6213         passfd module, part 3.
6214         * lib/passfd.h (recvfd): Add a flags argument.
6215         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
6216         (recvfd): Add a flags argument.
6217         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
6218         exists.
6219         * modules/passfd (Depends-on): Add cloexec.
6220         Suggested by Eric Blake.
6221
6222 2011-03-13  Bruno Haible  <bruno@clisp.org>
6223
6224         passfd module, part 2, tweaks.
6225         * modules/passfd (Files): Reorder.
6226         (Depends-on): Remove errno.
6227         (Include): Remove <sys/socket.h>, <sys/un.h>.
6228         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
6229         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
6230         specification header. Include <sys/socket.h> always. Don't include
6231         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
6232         (sendfd): Clarify that it sets errno when it fails.
6233         (recvfd): Fix specification.
6234
6235 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6236
6237         passfd module, part 2.
6238         * modules/passfd: New file.
6239         * lib/passfd.h: New file.
6240         * lib/passfd.c: New file.
6241
6242 2011-03-12  Bruno Haible  <bruno@clisp.org>
6243
6244         wcswidth, mbswidth: Avoid integer overflow.
6245         * lib/wcswidth.c: Include <limits.h>.
6246         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
6247         * lib/mbswidth.c: Include <limits.h>.
6248         (mbsnwidth): Avoid 'int' overflow.
6249         Reported by Jim Meyering.
6250
6251 2011-03-12  Bruno Haible  <bruno@clisp.org>
6252
6253         futimens, utimensat: Avoid endless recursion on Solaris 10.
6254         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
6255         Solaris.
6256         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
6257         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
6258
6259 2011-03-11  Jim Meyering  <meyering@redhat.com>
6260
6261         maint.mk: relax a regexp to accommodate other formatting styles
6262         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
6263         between "ngettext" and the following "(".
6264
6265 2011-03-11  Pádraig Brady <P@draigBrady.com>
6266
6267         maint.mk: suppress a false positive warning
6268         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
6269         diagnostics are marked with ngettext.
6270
6271 2011-03-10  Eric Blake  <eblake@redhat.com>
6272
6273         wchar: add explicit dependencies, for Tru64
6274         * modules/mbmemcasecoll (Depends-on): Add wchar.
6275         * modules/mbtowc (Depends-on): Likewise.
6276         * modules/vasnprintf (Depends-on): Likewise.
6277         * modules/unistdio/u-printf-args (Depends-on): Likewise.
6278         * modules/wctomb (Depends-on): Likewise.
6279         Reported by Peter O'Gorman.
6280
6281 2011-03-08  Bruno Haible  <bruno@clisp.org>
6282
6283         passfd module, part 1, tweaks.
6284         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
6285         Improve indentation. Improve AC_MSG_CHECKING messages.
6286         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
6287         gl_SOCKET_FAMILIES.
6288
6289 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6290
6291         passfd module, part 1.
6292         * m4/afunix.m4: New file.
6293         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
6294         sockets.
6295
6296 2011-03-08  Bruno Haible  <bruno@clisp.org>
6297
6298         regex-quote: New API.
6299         * lib/regex-quote.h: Include <stdbool.h>.
6300         (struct regex_quote_spec): New type.
6301         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6302         New declarations.
6303         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6304         'const struct regex_quote_spec *' argument.
6305         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
6306         (pcre_special): New constant.
6307         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6308         New functions.
6309         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6310         'const struct regex_quote_spec *' argument.
6311         * modules/regex-quote (Depends-on): Add stdbool.
6312         * tests/test-regex-quote.c (check): Update for new API. Add test for
6313         anchored results.
6314         * NEWS: Mention the API change.
6315         Reported by Reuben Thomas and Eric Blake.
6316
6317 2011-03-06  Bruno Haible  <bruno@clisp.org>
6318
6319         regex-quote: Fix creation of POSIX extended regular expressions.
6320         * lib/regex-quote.c (ere_special): Add grouping and alternation
6321         operators.
6322
6323 2011-03-05  Bruno Haible  <bruno@clisp.org>
6324
6325         doc: Improve doc regarding autopoint vs. gnulib.
6326         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
6327         disable autopoint while running autoreconf.
6328         Suggested by Ralf Wildenhues.
6329
6330 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6331
6332         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6333         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6334
6335 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6336
6337         parse-duration: remove xalloc.h dependency
6338         * lib/parse-duration.c (parse_period): handle NULL return from
6339         strdup instead of calling xstrdup().
6340         * modules/parse-duration: remove "xalloc" dependency
6341
6342 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6343
6344         bootstrap: honor m4_base when running aclocal
6345         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6346
6347 2011-03-02  Jim Meyering  <meyering@redhat.com>
6348
6349         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6350         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6351         on request from Matt Booth.
6352
6353 2011-03-01  Eric Blake  <eblake@redhat.com>
6354
6355         test-link: work on Hurd
6356         * tests/test-link.h (test_link): Hurd rejects linking directories
6357         with EISDIR instead of the POSIX-mandated EPERM.
6358
6359 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6360
6361         stdio: simplify by moving files to printf-posix, sigpipe
6362         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6363         since this symbol is needed only if printf is replaced.
6364         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6365         Require gl_ASM_SYMBOL_PREFIX.
6366         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6367         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6368         (Depends-on): Add 'raise'.
6369         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6370         * modules/stdio (Files): Remove lib/stdio-write.c,
6371         m4/asm-underscore.m4.
6372         (Depends-on): Remove 'raise'.
6373
6374         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6375         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6376         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6377         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6378
6379 2011-02-28  Bruno Haible  <bruno@clisp.org>
6380
6381         localcharset: Assume ANSI C behaviour of free().
6382         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6383         calling free().
6384         Suggested by Simon Josefsson <simon@josefsson.org>.
6385
6386 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6387             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6388             Bruno Haible  <bruno@clisp.org>  (tiny change)
6389
6390         On Cygwin, use /proc file system instead of win32 API.
6391         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6392         Win32 file names.
6393         (DllMain): Simplify by removing Cygwin specific code.
6394         (find_shared_library_fullname): Use Linux specific implementation also
6395         for Cygwin.
6396         (get_shared_library_fullname): Update accordingly.
6397         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6398         Win32 file names.
6399         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6400         Cygwin specific code.
6401
6402 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6403             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6404
6405         Fix OpenMP flag detection for various Fortran compilers.
6406         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6407         OpenMP-conditional compilation construct, to force compile
6408         failure with missing OpenMP flag.
6409         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6410
6411 2011-02-25  Eric Blake  <eblake@redhat.com>
6412
6413         strstr: expand test coverage
6414         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6415         compilation.
6416         * tests/test-memmem.c (main): Duplicate tests.
6417         * tests/test-strcasestr.c (main): Likewise.
6418         * tests/test-c-strcasestr.c (main): Likewise.
6419
6420 2011-02-25  Jim Meyering  <meyering@redhat.com>
6421
6422         maint.mk: detect missing-NL-at-EOF, too
6423         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6424         it also detects when a file lacks a newline at EOF.
6425         (require_exactly_one_NL_at_EOF_): Renamed from
6426         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6427         since people may well have .x-sc_... file names tied to the
6428         existing name.  Suggested by Eric Blake.
6429
6430 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6431
6432         dirname: move m4/dos.m4 functionality into lib/dosname.h
6433
6434         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6435         extracts symbols from it, puts them into config.h; but it's much
6436         easier to use the symbols directly.  filename.h already does this,
6437         but it disagrees with dos.m4 in some respects.  This patch
6438         introduces a different include file dosname.h that packages up
6439         dos.m4, and then later we can work on merging filename.h and
6440         dosname.h.  Applications that need only the easy-to-configure
6441         symbols should consider including dosname.h rather than dirname.h.
6442         * NEWS: Mention incompatible changes.
6443         * m4/dos.m4: Remove.
6444         * lib/dosname.h, modules/dosname: New files.
6445         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6446         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6447         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6448         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6449         Include dosname.h, not dirname.h.
6450         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6451         Include dosname.h, for definitions of symbols like ISSLASH
6452         that used to be in config.h.
6453         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6454         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6455         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6456         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6457         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6458         * modules/rmdir (Files): Likewise.
6459         * modules/stat (Files): Likewise.
6460         * modules/unlink (Files): Likewise.
6461         * modules/dirname-lgpl (Depends-on): Add dosname.
6462         * modules/lstat (Depends-on): Likewise.
6463         * modules/openat (Depends-on): Likewise.
6464         * modules/rmdir (Depends-on): Likewise.
6465         * modules/savewd (Depends-on): Likewise.
6466         * modules/stat (Depends-on): Likewise.
6467         * modules/unlink (Depends-on): Likewise.
6468         * modules/openat (Depends-on): Remove dirname-lgpl.
6469         * modules/savewd (Depends-on): Likewise.
6470         * tests/test-dirname.c: Do not use removed symbols like
6471         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6472         the remaining symbols, e.g., ISSLASH ('\\').
6473
6474 2011-02-25  Eric Blake  <eblake@redhat.com>
6475
6476         strstr: revert patches that introduced bug and pessimization
6477         * lib/str-two-way.h: Add another reference.
6478         (two_way_short_needle, two_way_long_needle): Revert changes from
6479         2011-02-24; they pessimize search speed.
6480         (critical_factorization): Partially revert changes from
6481         2010-06-22; they violate the requirement that the left half of the
6482         needle be smaller than the period of the needle.
6483
6484 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6485
6486         filenamecat: remove unnecessary dependency on dirname-lgpl
6487         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6488         is no direct dependency, just an indirect one via filenamecat-lgpl.
6489
6490         remove: remove unnecessary use of m4/dos.m4
6491         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6492         * modules/remove (FILES): Remove m4/dos.m4.
6493
6494         * lib/openat-proc.c: Don't include dirname.h; not needed.
6495
6496         backupfile: remove unnecessary use of m4/dos.m4
6497         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6498         of its symbols are used by the backupfile code.  backupfile.c does
6499         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6500         for the rare case of programs that want all their backup file
6501         names to live within 8+3 limits, and dos.m4 doesn't address that.
6502         * modules/backupfile (Files): Remove m4/dos.m4.
6503
6504 2011-02-24  Jim Meyering  <meyering@redhat.com>
6505
6506         strstr: fix a bug whereby strstr would mistakenly return NULL
6507         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6508         in period calculation.
6509         (two_way_long_needle): Likewise.
6510         The original problem was reported by Mike Stump in
6511         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6512         Ralf Wildenhues provided the short needle and haystack.
6513         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6514         Add a more involved test to trigger the bug in two_way_long_needle.
6515
6516 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6517
6518         gnulib-tool: remove use of bold display in help screen
6519         * gnulib-tool (func_usage): Do not use bold display anymore in the
6520         help screen.  That was just meant to be a temporary emphasis for a
6521         backward-incompatible change.
6522
6523 2011-02-23  Bruno Haible  <bruno@clisp.org>
6524
6525         Fix misindentation of preprocessor directives.
6526         * lib/argp-namefrob.h: Reindent preprocessor directives.
6527         * lib/getopt_int.h (struct _getopt_data): Likewise.
6528         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6529         * lib/vasnprintf.c (decode_long_double): Likewise.
6530         * tests/test-argmatch.c: Insert blank lines, for clarity.
6531         * tests/test-exclude.c: Likewise.
6532
6533 2011-02-22  Bruno Haible  <bruno@clisp.org>
6534
6535         ioctl: Fix for MacOS X in 64-bit mode.
6536         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6537         value.
6538         Suggested by Eric Blake.
6539         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6540
6541 2011-02-22  Jim Meyering  <meyering@redhat.com>
6542
6543         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6544         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6545         in lib/.
6546
6547 2011-02-22  Eric Blake  <eblake@redhat.com>
6548
6549         maint: avoid any CDPATH issue
6550         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6551
6552         maint: adjust cpp indentation for my modules, as well
6553         * Makefile (sc_cpp_indent_check): Add my name.
6554         * lib/fbufmode.c: Filter through cppi.
6555         * lib/fpurge.c: Likewise.
6556         * lib/freadable.c: Likewise.
6557         * lib/freading.c: Likewise.
6558         * lib/fwritable.c: Likewise.
6559         * lib/fwriting.c: Likewise.
6560         * lib/sigaction.c: Likewise.
6561
6562 2011-02-22  Jim Meyering  <meyering@redhat.com>
6563
6564         maint: adjust cpp indentation to reflect nesting depth
6565         I.e., in a block of code that begins with an unnested "#if",
6566         put one space between the "#" in column 1 and following token.
6567         For example,
6568         -#include <sys/vfs.h>
6569         +# include <sys/vfs.h>
6570         Do this only in .c files that are part of a module I maintain.
6571         * lib/linkat.c: Filter through cppi.
6572         * lib/nanosleep.c: Likewise.
6573         * lib/openat.c: Likewise.
6574         * lib/openat-die.c: Likewise.
6575         * lib/dup3.c: Likewise.
6576         * lib/fchownat.c: Likewise.
6577         * lib/flock.c: Likewise.
6578         * lib/fsync.c: Likewise.
6579         * lib/fts.c: Likewise.
6580         * lib/getpass.c: Likewise.
6581         * lib/gettimeofday.c: Likewise.
6582         * lib/userspec.c: Likewise.
6583         * Makefile (sc_cpp_indent_check): New rule, to check this.
6584
6585 2011-02-22  Bruno Haible  <bruno@clisp.org>
6586
6587         New module 'wctomb'.
6588         * lib/stdlib.in.h (wctomb): New declaration.
6589         * lib/wctomb.c: New file.
6590         * lib/wctomb-impl.h: New file.
6591         * m4/wctomb.m4: New file.
6592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6593         REPLACE_WCTOMB.
6594         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6595         REPLACE_WCTOMB.
6596         * modules/wctomb: New file.
6597         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6598         * doc/posix-functions/wctomb.texi: Mention the new module.
6599         * modules/wctob (Depends-on): Add wctomb.
6600
6601 2011-02-22  Bruno Haible  <bruno@clisp.org>
6602
6603         New module 'mbtowc'.
6604         * lib/stdlib.in.h (mbtowc): New declaration.
6605         * lib/mbtowc.c: New file.
6606         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6607         * m4/mbtowc.m4: New file.
6608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6609         REPLACE_MBTOWC.
6610         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6611         REPLACE_MBTOWC.
6612         * modules/mbtowc: New file.
6613         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6614         * doc/posix-functions/mbtowc.texi: Mention the new module.
6615         * modules/btowc (Depends-on): Add mbtowc.
6616
6617 2011-02-22  Bruno Haible  <bruno@clisp.org>
6618
6619         wcrtomb: Add more tests for native Windows platforms.
6620         * tests/test-wcrtomb-w32-1.sh: New file.
6621         * tests/test-wcrtomb-w32-2.sh: New file.
6622         * tests/test-wcrtomb-w32-3.sh: New file.
6623         * tests/test-wcrtomb-w32-4.sh: New file.
6624         * tests/test-wcrtomb-w32-5.sh: New file.
6625         * tests/test-wcrtomb-w32.c: New file.
6626         * modules/wcrtomb-tests (Files): Add them.
6627         (Makefile.am): Arrange to run these tests.
6628         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6629         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6630
6631 2011-02-20  Bruno Haible  <bruno@clisp.org>
6632
6633         wcrtomb: Enhance test.
6634         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6635
6636 2011-02-20  Bruno Haible  <bruno@clisp.org>
6637
6638         mbrtowc: Tiny optimization.
6639         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6640
6641 2011-02-20  Jim Meyering  <meyering@redhat.com>
6642
6643         test-exclude.c: remove unmatched #endif
6644         * tests/test-exclude.c: Remove stray #endif, left over from
6645         the change of a week ago.
6646
6647 2011-02-19  Jim Meyering  <meyering@redhat.com>
6648
6649         git-version-gen: skip "-dirty" check when appropriate
6650         * build-aux/git-version-gen: Don't run any git commands when the
6651         version string comes from .tarball-version.  Prior to this, we
6652         would run git update-index --refresh even from a just-unpacked
6653         tarball directory, and that could affect a .git/ directory in a
6654         parent of the build directory.  Reported by Mike Frysinger.
6655
6656 2011-02-19  Bruno Haible  <bruno@clisp.org>
6657
6658         unictype/property-byname: Reduce the size of the 'data' segment.
6659         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6660
6661 2011-02-19  Bruno Haible  <bruno@clisp.org>
6662
6663         unictype/scripts: Reduce the size of the 'data' segment.
6664         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6665         '%pic'.
6666         * lib/unictype/scripts_byname.gperf: Regenerated.
6667
6668 2011-02-19  Bruno Haible  <bruno@clisp.org>
6669
6670         stdint: Update documentation.
6671         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6672
6673 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6674
6675         stdint: omit redundant check for wchar.h
6676         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6677         always tests whether wchar.h exists, so remove the now-redundant test.
6678
6679 2011-02-18  Bruno Haible  <bruno@clisp.org>
6680
6681         stdint: Cut dependency to module 'wchar'.
6682         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6683         include the necessary prerequisites.
6684         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6685         * modules/stdint (Depends-on): Remove wchar.
6686         (Makefile.am): Substitute HAVE_WCHAR_H.
6687         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6688
6689 2011-02-18  Eric Blake  <eblake@redhat.com>
6690
6691         longlong: skip, rather than fail, on cross-compilation
6692         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6693         when cross-compiling; regression from 2011-02-16.
6694
6695 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6696
6697         * NEWS: Mention 2011-02-08 change to stdlib.
6698
6699 2011-02-17  Bruno Haible  <bruno@clisp.org>
6700
6701         getloadavg: Add comments about platforms.
6702         * m4/getloadavg.m4: Add comment.
6703         * lib/getloadavg.c: Likewise.
6704
6705 2011-02-17  Bruno Haible  <bruno@clisp.org>
6706
6707         getloadavg: Fix link error on Solaris 2.6.
6708         * modules/getloadavg (Link): New section.
6709         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6710         linking test-getloadavg.
6711         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6712         getloadavg.
6713
6714 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6715
6716         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6717         It was 'int', but this doesn't match the IRIX 6.5 manual.
6718         Suggested by Bruno Haible in
6719         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6720
6721 2011-02-17  Bruno Haible  <bruno@clisp.org>
6722
6723         havelib: Fix comments.
6724         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6725         change.
6726
6727 2011-02-17  Bruno Haible  <bruno@clisp.org>
6728
6729         havelib: Update config.rpath.
6730         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6731
6732 2011-02-17  Bruno Haible  <bruno@clisp.org>
6733
6734         getloadavg test: Add some plausibility checks.
6735         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6736         is improbable.
6737
6738 2011-02-16  Eric Blake  <eblake@redhat.com>
6739
6740         maintainer-makefile: make syntax-check a no-op from tarballs
6741         * top/maint.mk (no-vc-detected): New rule.
6742         (local-checks-available): Use it to avoid hanging if someone tries
6743         'make syntax-check' from a tarball.  Also append to any non-syntax
6744         checks already defined in cfg.mk.
6745
6746 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6747
6748         longlong: tune, particularly for common case of c99
6749
6750         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6751         or running anything if c99, or if unsigned long long int does not
6752         work.  In either case, we know the answer without further tests.
6753         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6754         it at most once, and use its results for both long long int and
6755         unsigned long long int.  This is more likely to be efficient in
6756         the common case where the program wants to check for both long
6757         long int and unsigned long long int.
6758         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6759         since the answer is already known.
6760
6761 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6762
6763         getloadavg: set errno
6764         * lib/getloadavg.c: Set errno when returning -1.  If no other
6765         error number looks appropriate, set it to ENOSYS if the getloadavg
6766         looks like it can't possibly ever work, ENOTSUP otherwise.
6767         Suggested by Bruno Haible in
6768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6769
6770         getloadavg: trim unused parts and speed up 'configure'
6771         * NEWS: Document this.
6772         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6773         always compiled if getloadavg is absent.
6774         Move test code to ...
6775         * tests/test-getloadavg.c: New file, containing previous
6776         contents of test from lib/getloadavg.c.  It also contains
6777         suggestions by Bruno Haible in
6778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6779         * modules/getloadavg-tests: New file.
6780         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6781         Do tests in the same order as they're needed for getloadavg.c.
6782         Omit setgid-related tests that generate symbols KMEM_GROUP,
6783         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6784         Do only the tests that are needed to see whether the system has
6785         getloadavg, moving the other tests into ...
6786         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6787         NLIST_NAME_UNION; nobody should be using it.  Do not define
6788         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6789         relevant, as the user of this module shouldn't care how getloadavg
6790         is implemented.
6791
6792         getloadavg: omit unused var
6793         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6794
6795 2011-02-15  Jim Meyering  <meyering@redhat.com>
6796
6797         doc: update users.txt
6798         * users.txt: Update iwhd's URL.
6799
6800 2011-02-13  Bruno Haible  <bruno@clisp.org>
6801
6802         Consistent macro naming for macros that use GCC __attribute__.
6803         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6804         _ATTRIBUTE_NONNULL_.
6805         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6806         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6807         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6808         ATTRIBUTE_DEPRECATED.
6809         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6810         ATTRIBUTE_NORETURN.
6811         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6812         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6813         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6814         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6815         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6816         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6817         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6818         ATTRIBUTE_SENTINEL.
6819         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6820         ATTRIBUTE_RETURN_CHECK.
6821         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6822         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6823         ATTRIBUTE_NORETURN.
6824         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6825         Reported by Paul Eggert.
6826
6827 2011-02-13  Bruno Haible  <bruno@clisp.org>
6828
6829         Don't interfere with a program's definition of __attribute__.
6830         * lib/argp.h (__attribute__): Remove definition.
6831         (_GL_ATTRIBUTE_FORMAT): New macro.
6832         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6833         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6834         (_GL_ATTRIBUTE_FORMAT): New macro.
6835         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6836         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6837         GCC 3 or newer.
6838         * lib/error.h (__attribute__): Remove definition.
6839         (_GL_ATTRIBUTE_FORMAT): New macro.
6840         (error, error_at_line): Use it.
6841         * lib/hash.h (__attribute__): Remove definition.
6842         (ATTRIBUTE_WUR): Update definition. Define always.
6843         * lib/openat.h (__attribute__): Remove definition.
6844         (ATTRIBUTE_NORETURN): Update definition. Define always.
6845         * lib/sigpipe-die.h (__attribute__): Remove definition.
6846         (ATTRIBUTE_NORETURN): Update definition. Define always.
6847         * lib/vasnprintf.h (__attribute__): Remove definition.
6848         (_GL_ATTRIBUTE_FORMAT): New macro.
6849         (asnprintf, vasnprintf): Use it.
6850         * lib/xalloc.h (__attribute__): Remove definition.
6851         (ATTRIBUTE_NORETURN): Update definition. Define always.
6852         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6853         * lib/xmemdup0.h (__attribute__): Remove definition.
6854         (ATTRIBUTE_NORETURN): Update definition. Define always.
6855         * lib/xprintf.h (__attribute__): Remove definition.
6856         (_GL_ATTRIBUTE_FORMAT): New macro.
6857         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6858         * lib/xstrtol.h (__attribute__): Remove definition.
6859         (ATTRIBUTE_NORETURN): Update definition. Define always.
6860         * lib/xvasprintf.h (__attribute__): Remove definition.
6861         (_GL_ATTRIBUTE_FORMAT): New macro.
6862         (xasprintf, xvasprintf): Use it.
6863         * tests/test-argmatch.c (__attribute__): Remove definition.
6864         (ATTRIBUTE_NORETURN): Update definition. Define always.
6865         * tests/test-exclude.c (__attribute__): Remove definition.
6866         (ATTRIBUTE_NORETURN): Update definition. Define always.
6867         Reported by Paul Eggert.
6868
6869 2011-02-13  Bruno Haible  <bruno@clisp.org>
6870
6871         mbrtowc: Add more tests for native Windows platforms.
6872         * tests/test-mbrtowc-w32-1.sh: New file.
6873         * tests/test-mbrtowc-w32-2.sh: New file.
6874         * tests/test-mbrtowc-w32-3.sh: New file.
6875         * tests/test-mbrtowc-w32-4.sh: New file.
6876         * tests/test-mbrtowc-w32-5.sh: New file.
6877         * tests/test-mbrtowc-w32.c: New file.
6878         * modules/mbrtowc-tests (Files): Add them.
6879         (Makefile.am): Arrange to run these tests.
6880         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6881         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6882
6883 2011-02-13  Bruno Haible  <bruno@clisp.org>
6884
6885         mbrtowc: Work around native Windows bug.
6886         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6887         guess when no suitable locale for testing was found.
6888         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6889
6890 2011-02-13  Bruno Haible  <bruno@clisp.org>
6891
6892         mbsinit: Work around mingw bug.
6893         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6894         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6895         Windows.
6896         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6897
6898 2011-02-13  Bruno Haible  <bruno@clisp.org>
6899
6900         mbsinit: Don't crash for a NULL argument.
6901         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6902         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6903
6904 2011-02-13  Bruno Haible  <bruno@clisp.org>
6905
6906         Don't interfere with a program's definition of __attribute__.
6907         * lib/stdio.in.h (__attribute__): Remove definition.
6908         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6909         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6910         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6911         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6912         * lib/string.in.h (__attribute__): Remove definition.
6913         Reported by Paul Eggert.
6914
6915 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6916
6917         stdlib: don't get in the way of non-GCC __attribute__
6918         See thread starting at
6919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6920         Revert previous stdlib change, installing the following instead:
6921         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6922         to get in the way of a non-GCC compiler that supports __attribute__.
6923         (_GL_ATTRIBUTE_RETURN): New macro.
6924         (_Exit): Use it instead of __attribute__.
6925
6926 2011-02-12  Bruno Haible  <bruno@clisp.org>
6927
6928         quotearg test: Avoid test failure on mingw.
6929         * tests/test-quotearg.sh: Convert the locale identifier from native
6930         Windows syntax to Unix syntax.
6931
6932 2011-02-12  Bruno Haible  <bruno@clisp.org>
6933
6934         setlocale: Prefer gnulib's override over libintl's override.
6935         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6936         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6937         GNULIB_defined_setlocale is set.
6938
6939 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6940
6941         stdlib: support non-GCC __attribute__
6942
6943         Fix a serious and tricky problem encountered when attempting to
6944         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6945         5.5, but it crashed due to memory corruption on Solaris 10 with
6946         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6947         bits that are otherwise zero.  This tagging is optional inside
6948         Emacs but is preferred and is used when __attribute__ ((__aligned
6949         (8))) works, as it does with both recent-enough GCC and with Sun C
6950         5.11.  However, Sun C 5.11 is not GCC and does not #define
6951         __GNUC__ and __GNUC_MINOR__.
6952
6953         When I added the getloadavg module to Emacs, it brought in
6954         stdlib.in.h, which contained this fragment:
6955
6956            #ifndef __attribute__
6957            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6958            #  define __attribute__(Spec)   /* empty */
6959            # endif
6960            #endif
6961
6962         When files that include <stdlib.h> were compiled with Sun C 5.11,
6963         the above code disabled __attribute__ ((__aligned (8))), which
6964         caused variables to not be properly aligned, which eventually led
6965         to the pointer corruption mentioned above.  (This was a bit hard
6966         to diagnose, unfortunately.)
6967
6968         Several "#define __attribute__(X) /* empty */" code snippets need
6969         to be eradicated from Gnulib to work with non-GCC compilers that
6970         support __attribute__.  The Autoconf way to do this is to test for
6971         each kind of attribute that we want support for, and selectively
6972         enable that in source code.
6973
6974         Fix this problem just for stdlib.h, by adding a test for the
6975         __noreturn__ attribute, and change stdlib.in.h to use that test
6976         when needed.  This technique can be easily generalized to the
6977         other *.in.h files and attributes, and a similar technique can be
6978         used for *.h and *.c files.  This patch is enough to solve the
6979         problem for Emacs + getloadavg, and I thought I'd publish it for
6980         feedback before undertaking further, similar fixes in other
6981         modules.
6982
6983         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6984         because it's not needed for stdlib.h.  It merely substitutes the
6985         value directly into stdlib.h.  We may well need to #define it, or
6986         similar symbols, for other modules, but it's nice to also have an
6987         option to not #define it for applications like Emacs that do not
6988         need it.
6989
6990         * lib/stdlib.in.h (__attribute__): Do not #define.
6991         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6992         be defined only if the _Exit module is also used.
6993         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6995         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6996         platforms.
6997         * modules/_Exit (Files): Add m4/attribute.m4.
6998         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6999         * m4/attribute.m4: New file.
7000
7001 2011-02-12  Bruno Haible  <bruno@clisp.org>
7002
7003         wcsrtombs: Work around bug on native Windows.
7004         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
7005         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
7006         instead of len.
7007         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
7008
7009 2011-02-12  Bruno Haible  <bruno@clisp.org>
7010
7011         mbsrtowcs: Work around bug on native Windows.
7012         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
7013         against mingw bug.
7014         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
7015
7016 2011-02-12  Bruno Haible  <bruno@clisp.org>
7017
7018         Avoid setlocale bugs in tests.
7019         * modules/btowc (Dependencies): Add setlocale.
7020         * modules/c-strcase (Dependencies): Likewise.
7021         * modules/mbmemcasecmp (Dependencies): Likewise.
7022         * modules/mbmemcasecoll (Dependencies): Likewise.
7023         * modules/mbrtowc (Dependencies): Likewise.
7024         * modules/mbscasecmp (Dependencies): Likewise.
7025         * modules/mbscasestr (Dependencies): Likewise.
7026         * modules/mbschr (Dependencies): Likewise.
7027         * modules/mbscspn (Dependencies): Likewise.
7028         * modules/mbsinit (Dependencies): Likewise.
7029         * modules/mbsncasecmp (Dependencies): Likewise.
7030         * modules/mbsnrtowcs (Dependencies): Likewise.
7031         * modules/mbspbrk (Dependencies): Likewise.
7032         * modules/mbspcasecmp (Dependencies): Likewise.
7033         * modules/mbsrchr (Dependencies): Likewise.
7034         * modules/mbsrtowcs (Dependencies): Likewise.
7035         * modules/mbsspn (Dependencies): Likewise.
7036         * modules/mbsstr (Dependencies): Likewise.
7037         * modules/nl_langinfo (Dependencies): Likewise.
7038         * modules/quotearg (Dependencies): Likewise.
7039         * modules/unicase/locale-language (Dependencies): Likewise.
7040         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
7041         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
7042         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
7043         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
7044         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
7045         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
7046         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
7047         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
7048         * modules/vasnprintf-posix (Dependencies): Likewise.
7049         * modules/wcrtomb (Dependencies): Likewise.
7050         * modules/wcsnrtombs (Dependencies): Likewise.
7051         * modules/wcsrtombs (Dependencies): Likewise.
7052
7053 2011-02-12  Bruno Haible  <bruno@clisp.org>
7054
7055         setlocale: Workaround native Windows bug.
7056         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
7057         succeeds but sets LC_CTYPE to "C", report a failure.
7058         * tests/test-setlocale2.sh: New file.
7059         * tests/test-setlocale2.c: New file.
7060         * modules/setlocale-tests (Files): Add the new files.
7061         (Makefile.am): Enable test-setlocale2.sh test.
7062         * doc/posix-functions/setlocale.texi: Mention workaround.
7063
7064 2011-02-11  Bruno Haible  <bruno@clisp.org>
7065
7066         Tests for module 'setlocale'.
7067         * modules/setlocale-tests: New file.
7068         * tests/test-setlocale1.sh: New file.
7069         * tests/test-setlocale1.c: New file.
7070
7071         New module 'setlocale'.
7072         * lib/locale.in.h (setlocale): New declaration.
7073         * lib/setlocale.c: New file, based on
7074         gettext/gettext-runtime/intl/setlocale.c.
7075         * m4/setlocale.m4: New file.
7076         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
7077         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
7078         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
7079         REPLACE_SETLOCALE.
7080         * modules/setlocale: New file.
7081         * tests/test-locale-c++.cc: Test the declaration of setlocale.
7082         * doc/posix-functions/setlocale.texi: Mention the new module.
7083
7084 2011-02-11  Bruno Haible  <bruno@clisp.org>
7085
7086         Prepare for locale dependent tests on mingw.
7087         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
7088         because it has the wrong locale encoding.
7089         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
7090         French_France.1252 instead of "fr".
7091         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
7092         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
7093         because it has the wrong locale encoding.
7094         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
7095         native Windows, try Turkish_Turkey.65001.
7096         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
7097         Chinese_China.54936.
7098
7099         Prepare for locale dependent tests on mingw.
7100         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
7101         differently.
7102         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
7103         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
7104         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7105         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7106
7107 2011-02-11  Eric Blake  <eblake@redhat.com>
7108
7109         strptime: avoid compiler warnings
7110         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
7111         compiler warnings about dead code.
7112         Reported by Daniel P. Berrange.
7113
7114 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
7115
7116         doc: update users.txt
7117         * users.txt: Add rcs.
7118
7119 2011-02-10  John W. Eaton  <jwe@gnu.org>
7120
7121         doc: update users.txt
7122         * users.txt: Add octave.
7123
7124 2011-02-10  Jim Meyering  <meyering@redhat.com>
7125
7126         doc: update users.txt
7127         * users.txt: Add iwhd.
7128
7129 2011-02-09  Bruno Haible  <bruno@clisp.org>
7130
7131         gnulib-tool: Make copyright notice adjustment more robust.
7132         * gnulib-tool (func_import): In sed_transform_main_lib_file,
7133         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
7134         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
7135         License".
7136         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
7137
7138 2011-02-06  Bruno Haible  <bruno@clisp.org>
7139
7140         New module 'towctrans'.
7141         * modules/towctrans: New file.
7142         * lib/wctype.in.h (towctrans): New declaration.
7143         * lib/towctrans.c: New file.
7144         * lib/towctrans-impl.h: New file.
7145         * m4/towctrans.m4: New file.
7146         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
7147         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
7148         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
7149         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
7150         * doc/posix-functions/towctrans.texi: Mention the new module.
7151
7152 2011-02-06  Bruno Haible  <bruno@clisp.org>
7153
7154         New module 'wctrans'.
7155         * modules/wctrans: New file.
7156         * lib/wctype.in.h (wctrans): New declaration.
7157         * lib/wctrans.c: New file.
7158         * lib/wctrans-impl.h: New file.
7159         * m4/wctrans.m4: New file.
7160         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
7161         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
7162         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
7163         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
7164         * doc/posix-functions/wctrans.texi: Mention the new module.
7165
7166 2011-02-06  Bruno Haible  <bruno@clisp.org>
7167
7168         New module 'iswctype'.
7169         * modules/iswctype: New file.
7170         * lib/wctype.in.h (iswctype): New declaration.
7171         * lib/iswctype.c: New file.
7172         * lib/iswctype-impl.h: New file.
7173         * m4/iswctype.m4: New file.
7174         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
7175         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
7176         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
7177         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
7178         * doc/posix-functions/iswctype.texi: Mention the new module and the
7179         HP-UX 11.00 problem.
7180
7181 2011-02-06  Bruno Haible  <bruno@clisp.org>
7182
7183         New module 'wctype'.
7184         * modules/wctype: Change to represent the wctype() substitute.
7185         * lib/wctype.in.h (wctype): New declaration.
7186         * lib/wctype.c: New file.
7187         * lib/wctype-impl.h: New file.
7188         * m4/wctype.m4: New file.
7189         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
7190         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
7191         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
7192         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
7193         * doc/posix-functions/wctype.texi: Mention the new module and the
7194         HP-UX 11.00 problem.
7195
7196 2011-02-06  Bruno Haible  <bruno@clisp.org>
7197
7198         wctype-h: Ensure wctype_t and wctrans_t are defined.
7199         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
7200         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7201         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7202         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
7203         HAVE_WCTRANS_T.
7204         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
7205
7206 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7207
7208         flock: fix license typo
7209
7210         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
7211         omitted.
7212
7213 2011-02-08  Bruno Haible  <bruno@clisp.org>
7214
7215         Split large sed scripts, for HP-UX sed.
7216         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
7217         to avoid HP-UX limit of 99 commands, in the near future.
7218         * modules/stdlib (Makefile.am): Likewise.
7219         * modules/unistd (Makefile.am): Likewise.
7220         * modules/wchar (Makefile.am): Likewise.
7221         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7222         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
7223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
7224
7225 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7226             Bruno Haible  <bruno@clisp.org>
7227
7228         stdlib: improve random_r modularization
7229         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
7230         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
7231         you also need the random_r module to get this material right.
7232         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
7233         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
7234         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
7235
7236 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7237
7238         stdlib: don't depend on stdint
7239         * lib/stdlib.in.h: Don't include <stdint.h> merely because
7240         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
7241         be independent of whether stdint.h is needed.
7242         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
7243         here, instead of ...
7244         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
7245         struct random_data should be using the random_r module, not just
7246         the stdlib module (which wouldn't make sense: what package needs
7247         just struct random_data without also needing random_r?).
7248         * modules/stdlib (Depends-on): Remove stdint.
7249
7250         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
7251         See the thread rooted at
7252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
7253         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
7254         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
7255         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
7256         __VMS)); previously it was always included (via fcntl--.h).
7257         (getloadavg): Do not use c_strtod.  Instead, approximate it by
7258         hand; this is good enough for load averages.  Also, do not use
7259         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
7260         flags directly if available and don't bother otherwise.  (Packages
7261         that need the extra reliability should use the modules that define
7262         these flags on older platforms that lack them.)
7263         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
7264         fcntl-safer.
7265
7266 2011-02-08  Jim Meyering  <meyering@redhat.com>
7267
7268         di-set.h, ino-map.h: add multiple-inclusion guard
7269         Technically, the guard is required only for ino-map.h, due to its
7270         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
7271         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
7272         * lib/ino-map.h: Likewise.
7273
7274 2011-02-06  Bruno Haible  <bruno@clisp.org>
7275
7276         iswblank: Ensure declaration on glibc systems.
7277         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
7278         * modules/iswblank (Dependencies): Add 'extensions'.
7279         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7280
7281 2011-02-06  Bruno Haible  <bruno@clisp.org>
7282
7283         New module 'iswblank'.
7284         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
7285         * modules/iswblank: New file.
7286         * modules/wctype-h (Files): Remove lib/iswblank.c.
7287         (Makefile.am): Substitute GNULIB_ISWBLANK.
7288         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
7289         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
7290         (gl_WCTYPE_H_DEFAULTS): New macro.
7291         (gl_WCTYPE_H): Require it. Remove iswblank related code.
7292         * modules/iswblank-tests: New file.
7293         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
7294         * tests/test-wctype-h.c (main): Remove iswblank tests.
7295         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
7296         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
7297         of 'wctype-h'.
7298         * NEWS: Mention the change.
7299         * modules/mbchar (Depends-on): Add iswblank.
7300
7301 2011-02-08  Bruno Haible  <bruno@clisp.org>
7302
7303         di-set tests: Refactor.
7304         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
7305         unnecessary includes.
7306         (ASSERT): Remove macro.
7307         (main): Make C90 compliant by avoiding variable declaration after
7308         statement.
7309         * modules/di-set-tests (Files): Add tests/macros.h.
7310
7311 2011-02-08  Bruno Haible  <bruno@clisp.org>
7312
7313         ino-map tests: Refactor.
7314         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
7315         unnecessary includes.
7316         (ASSERT): Remove macro.
7317         (main): Make C90 compliant by avoiding variable declaration after
7318         statement.
7319         * modules/ino-map-tests (Files): Add tests/macros.h.
7320
7321 2011-02-08  Jim Meyering  <meyering@redhat.com>
7322
7323         di-set: add "const" to a cast
7324         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
7325         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
7326
7327 2011-02-06  Bruno Haible  <bruno@clisp.org>
7328
7329         Rename module 'wctype' to 'wctype-h'.
7330         * modules/wctype-h: Renamed from modules/wctype.
7331         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7332         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7333         (Files, Depends-on, Makefile.am): Update.
7334         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7335         (Files, Makefile.am): Update.
7336         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7337         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7338         * doc/posix-headers/wctype.texi: Update.
7339         * doc/posix-functions/iswalnum.texi: Update.
7340         * doc/posix-functions/iswalpha.texi: Update.
7341         * doc/posix-functions/iswblank.texi: Update.
7342         * doc/posix-functions/iswcntrl.texi: Update.
7343         * doc/posix-functions/iswdigit.texi: Update.
7344         * doc/posix-functions/iswgraph.texi: Update.
7345         * doc/posix-functions/iswlower.texi: Update.
7346         * doc/posix-functions/iswprint.texi: Update.
7347         * doc/posix-functions/iswpunct.texi: Update.
7348         * doc/posix-functions/iswspace.texi: Update.
7349         * doc/posix-functions/iswupper.texi: Update.
7350         * doc/posix-functions/iswxdigit.texi: Update.
7351         * doc/posix-functions/towlower.texi: Update.
7352         * doc/posix-functions/towupper.texi: Update.
7353         * NEWS: Mention the change.
7354         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7355         * modules/mbchar (Dependencies): Likewise.
7356         * modules/mbswidth (Dependencies): Likewise.
7357         * modules/quotearg (Dependencies): Likewise.
7358         * modules/regex (Dependencies): Likewise.
7359         * modules/wcscasecmp (Dependencies): Likewise.
7360         * modules/wcsncasecmp (Dependencies): Likewise.
7361         * modules/wcwidth (Dependencies): Likewise.
7362
7363 2011-02-06  Bruno Haible  <bruno@clisp.org>
7364
7365         New module 'wcswidth'.
7366         * modules/wcswidth: New file.
7367         * lib/wchar.in.h (wcswidth): New declaration.
7368         * lib/wcswidth.c: New file.
7369         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7370         * m4/wcswidth.m4: New file.
7371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7373         REPLACE_WCSWIDTH.
7374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7375         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7376         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7377         * doc/posix-functions/wcswidth.texi: Mention the new module.
7378
7379 2011-02-06  Bruno Haible  <bruno@clisp.org>
7380
7381         New module 'wcstok'.
7382         * modules/wcstok: New file.
7383         * lib/wchar.in.h (wcstok): New declaration.
7384         * lib/wcstok.c: New file.
7385         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7386         * m4/wcstok.m4: New file.
7387         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7388         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7389         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7390         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7391         * doc/posix-functions/wcstok.texi: Mention the new module.
7392
7393 2011-02-06  Bruno Haible  <bruno@clisp.org>
7394
7395         New module 'wcsstr'.
7396         * modules/wcsstr: New file.
7397         * lib/wchar.in.h (wcsstr): New declaration.
7398         * lib/wcsstr.c: New file.
7399         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7400         * m4/wcsstr.m4: New file.
7401         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7402         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7403         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7404         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7405         * doc/posix-functions/wcsstr.texi: Mention the new module.
7406
7407 2011-02-06  Bruno Haible  <bruno@clisp.org>
7408
7409         New module 'wcspbrk'.
7410         * modules/wcspbrk: New file.
7411         * lib/wchar.in.h (wcspbrk): New declaration.
7412         * lib/wcspbrk.c: New file.
7413         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7414         * m4/wcspbrk.m4: New file.
7415         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7416         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7417         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7418         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7419         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7420
7421 2011-02-06  Bruno Haible  <bruno@clisp.org>
7422
7423         New module 'wcsspn'.
7424         * modules/wcsspn: New file.
7425         * lib/wchar.in.h (wcsspn): New declaration.
7426         * lib/wcsspn.c: New file.
7427         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7428         * m4/wcsspn.m4: New file.
7429         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7430         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7431         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7432         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7433         * doc/posix-functions/wcsspn.texi: Mention the new module.
7434
7435 2011-02-06  Bruno Haible  <bruno@clisp.org>
7436
7437         New module 'wcscspn'.
7438         * modules/wcscspn: New file.
7439         * lib/wchar.in.h (wcscspn): New declaration.
7440         * lib/wcscspn.c: New file.
7441         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7442         * m4/wcscspn.m4: New file.
7443         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7444         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7445         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7446         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7447         * doc/posix-functions/wcscspn.texi: Mention the new module.
7448
7449 2011-02-06  Bruno Haible  <bruno@clisp.org>
7450
7451         New module 'wcsrchr'.
7452         * modules/wcsrchr: New file.
7453         * lib/wchar.in.h (wcsrchr): New declaration.
7454         * lib/wcsrchr.c: New file.
7455         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7456         * m4/wcsrchr.m4: New file.
7457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7459         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7460         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7461         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7462
7463 2011-02-06  Bruno Haible  <bruno@clisp.org>
7464
7465         New module 'wcschr'.
7466         * modules/wcschr: New file.
7467         * lib/wchar.in.h (wcschr): New declaration.
7468         * lib/wcschr.c: New file.
7469         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7470         * m4/wcschr.m4: New file.
7471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7474         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7475         * doc/posix-functions/wcschr.texi: Mention the new module.
7476
7477 2011-02-06  Bruno Haible  <bruno@clisp.org>
7478
7479         New module 'wcsdup'.
7480         * modules/wcsdup: New file.
7481         * lib/wchar.in.h (wcsdup): New declaration.
7482         * lib/wcsdup.c: New file.
7483         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7484         * m4/wcsdup.m4: New file.
7485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7488         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7489         * doc/posix-functions/wcsdup.texi: Mention the new module.
7490
7491 2011-02-06  Bruno Haible  <bruno@clisp.org>
7492
7493         New module 'wcsxfrm'.
7494         * modules/wcsxfrm: New file.
7495         * lib/wchar.in.h (wcsxfrm): New declaration.
7496         * lib/wcsxfrm.c: New file.
7497         * lib/wcsxfrm-impl.h: New file.
7498         * m4/wcsxfrm.m4: New file.
7499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7502         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7503         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7504
7505 2011-02-06  Bruno Haible  <bruno@clisp.org>
7506
7507         New module 'wcscoll'.
7508         * modules/wcscoll: New file.
7509         * lib/wchar.in.h (wcscoll): New declaration.
7510         * lib/wcscoll.c: New file.
7511         * lib/wcscoll-impl.h: New file.
7512         * m4/wcscoll.m4: New file.
7513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7516         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7517         * doc/posix-functions/wcscoll.texi: Mention the new module.
7518
7519 2011-02-06  Bruno Haible  <bruno@clisp.org>
7520
7521         New module 'wcsncasecmp'.
7522         * modules/wcsncasecmp: New file.
7523         * lib/wchar.in.h (wcsncasecmp): New declaration.
7524         * lib/wcsncasecmp.c: New file.
7525         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7526         * m4/wcsncasecmp.m4: New file.
7527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7530         HAVE_WCSNCASECMP.
7531         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7532         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7533
7534 2011-02-06  Bruno Haible  <bruno@clisp.org>
7535
7536         New module 'wcscasecmp'.
7537         * modules/wcscasecmp: New file.
7538         * lib/wchar.in.h (wcscasecmp): New declaration.
7539         * lib/wcscasecmp.c: New file.
7540         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7541         * m4/wcscasecmp.m4: New file.
7542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7545         HAVE_WCSCASECMP.
7546         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7547         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7548
7549 2011-02-05  Bruno Haible  <bruno@clisp.org>
7550
7551         New module 'wcsncmp'.
7552         * modules/wcsncmp: New file.
7553         * lib/wchar.in.h (wcsncmp): New declaration.
7554         * lib/wcsncmp.c: New file.
7555         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7556         * m4/wcsncmp.m4: New file.
7557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7560         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7561         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7562
7563 2011-02-05  Bruno Haible  <bruno@clisp.org>
7564
7565         New module 'wcscmp'.
7566         * modules/wcscmp: New file.
7567         * lib/wchar.in.h (wcscmp): New declaration.
7568         * lib/wcscmp.c: New file.
7569         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7570         * m4/wcscmp.m4: New file.
7571         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7572         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7573         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7574         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7575         * doc/posix-functions/wcscmp.texi: Mention the new module.
7576
7577 2011-02-05  Bruno Haible  <bruno@clisp.org>
7578
7579         New module 'wcsncat'.
7580         * modules/wcsncat: New file.
7581         * lib/wchar.in.h (wcsncat): New declaration.
7582         * lib/wcsncat.c: New file.
7583         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7584         * m4/wcsncat.m4: New file.
7585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7588         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7589         * doc/posix-functions/wcsncat.texi: Mention the new module.
7590
7591 2011-02-05  Bruno Haible  <bruno@clisp.org>
7592
7593         New module 'wcscat'.
7594         * modules/wcscat: New file.
7595         * lib/wchar.in.h (wcscat): New declaration.
7596         * lib/wcscat.c: New file.
7597         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7598         * m4/wcscat.m4: New file.
7599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7602         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7603         * doc/posix-functions/wcscat.texi: Mention the new module.
7604
7605 2011-02-05  Bruno Haible  <bruno@clisp.org>
7606
7607         New module 'wcpncpy'.
7608         * modules/wcpncpy: New file.
7609         * lib/wchar.in.h (wcpncpy): New declaration.
7610         * lib/wcpncpy.c: New file.
7611         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7612         * m4/wcpncpy.m4: New file.
7613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7615         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7616         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7617         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7618
7619 2011-02-05  Bruno Haible  <bruno@clisp.org>
7620
7621         New module 'wcsncpy'.
7622         * modules/wcsncpy: New file.
7623         * lib/wchar.in.h (wcsncpy): New declaration.
7624         * lib/wcsncpy.c: New file.
7625         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7626         * m4/wcsncpy.m4: New file.
7627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7630         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7631         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7632
7633 2011-02-05  Bruno Haible  <bruno@clisp.org>
7634
7635         New module 'wcpcpy'.
7636         * modules/wcpcpy: New file.
7637         * lib/wchar.in.h (wcpcpy): New declaration.
7638         * lib/wcpcpy.c: New file.
7639         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7640         * m4/wcpcpy.m4: New file.
7641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7643         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7644         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7645         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7646
7647 2011-02-05  Bruno Haible  <bruno@clisp.org>
7648
7649         New module 'wcscpy'.
7650         * modules/wcscpy: New file.
7651         * lib/wchar.in.h (wcscpy): New declaration.
7652         * lib/wcscpy.c: New file.
7653         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7654         * m4/wcscpy.m4: New file.
7655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7658         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7659         * doc/posix-functions/wcscpy.texi: Mention the new module.
7660
7661 2011-02-05  Bruno Haible  <bruno@clisp.org>
7662
7663         New module 'wcsnlen'.
7664         * modules/wcsnlen: New file.
7665         * lib/wchar.in.h (wcsnlen): New declaration.
7666         * lib/wcsnlen.c: New file.
7667         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7668         * m4/wcsnlen.m4: New file.
7669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7672         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7673         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7674
7675 2011-02-05  Bruno Haible  <bruno@clisp.org>
7676
7677         New module 'wcslen'.
7678         * modules/wcslen: New file.
7679         * lib/wchar.in.h (wcslen): New declaration.
7680         * lib/wcslen.c: New file.
7681         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7682         * m4/wcslen.m4: New file.
7683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7686         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7687         * doc/posix-functions/wcslen.texi: Mention the new module.
7688
7689 2011-02-05  Bruno Haible  <bruno@clisp.org>
7690
7691         New module 'wmemset'.
7692         * modules/wmemset: New file.
7693         * lib/wchar.in.h (wmemset): New declaration.
7694         * lib/wmemset.c: New file.
7695         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7696         * m4/wmemset.m4: New file.
7697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7699         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7700         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7701         * doc/posix-functions/wmemset.texi: Mention the new module.
7702
7703 2011-02-05  Bruno Haible  <bruno@clisp.org>
7704
7705         New module 'wmemmove'.
7706         * modules/wmemmove: New file.
7707         * lib/wchar.in.h (wmemmove): New declaration.
7708         * lib/wmemmove.c: New file.
7709         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7710         * m4/wmemmove.m4: New file.
7711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7713         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7714         HAVE_WMEMMOVE.
7715         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7716         * doc/posix-functions/wmemmove.texi: Mention the new module.
7717
7718 2011-02-05  Bruno Haible  <bruno@clisp.org>
7719
7720         New module 'wmemcpy'.
7721         * modules/wmemcpy: New file.
7722         * lib/wchar.in.h (wmemcpy): New declaration.
7723         * lib/wmemcpy.c: New file.
7724         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7725         * m4/wmemcpy.m4: New file.
7726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7728         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7729         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7730         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7731
7732 2011-02-05  Bruno Haible  <bruno@clisp.org>
7733
7734         New module 'wmemcmp'.
7735         * modules/wmemcmp: New file.
7736         * lib/wchar.in.h (wmemcmp): New declaration.
7737         * lib/wmemcmp.c: New file.
7738         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7739         * m4/wmemcmp.m4: New file.
7740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7742         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7743         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7744         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7745
7746 2011-02-07  Jim Meyering  <meyering@redhat.com>
7747
7748         di-set, ino-map: new modules, from coreutils
7749         * lib/di-set.c: New file.
7750         * lib/di-set.h: Likewise.
7751         * lib/ino-map.c: Likewise.
7752         * lib/ino-map.h: Likewise.
7753         * modules/di-set: Likewise.
7754         * modules/di-set-tests: Likewise.
7755         * modules/ino-map: Likewise.
7756         * modules/ino-map-tests: Likewise.
7757         * tests/test-di-set.c: Likewise.
7758         * tests/test-ino-map.c: Likewise.
7759
7760 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7761
7762         getloadavg: merge minor changes from Emacs
7763
7764         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7765         (getloadavg): Use memset, not bzero.
7766
7767         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7768         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7769         clash (bug#86).
7770
7771 2010-11-14  Bruno Haible  <bruno@clisp.org>
7772
7773         Allow multiple gnulib generated replacements to coexist.
7774         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7775         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7776         * lib/langinfo.in.h (nl_item): Likewise.
7777         * lib/math.in.h (_NaN, NAN): Likewise.
7778         * lib/netdb.in.h (struct addrinfo): Likewise.
7779         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7780         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7781         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7782         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7783         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7784         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7785         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7786         pthread_mutexattr_init, pthread_mutexattr_settype,
7787         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7788         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7789         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7790         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7791         * lib/sched.in.h (struct sched_param): Likewise.
7792         * lib/se-selinux.in.h (security_class_t, security_context_t,
7793         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7794         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7795         lsetfilecon, fsetfilecon, security_check_context,
7796         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7797         Likewise.
7798         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7799         Likewise.
7800         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7801         _gl_function_taking_int_returning_void_t, union sigval,
7802         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7803         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7804         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7805         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7806         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7807         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7808         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7809         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7810         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7811         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7812         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7813         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7814         socklen_t, rpl_fd_isset): Likewise.
7815         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7816         * lib/sys_time.in.h (struct timeval): Likewise.
7817         * lib/sys_times.in.h (struct tms): Likewise.
7818         * lib/sys_utsname.in.h (struct utsname):
7819         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7820         * lib/unistd.in.h (getpagesize): Likewise.
7821         * lib/wchar.in.h (mbstate_t): Likewise.
7822         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7823         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7824         towlower, towupper): Likewise.
7825         Reported by Sam Steingold <sds@gnu.org>.
7826
7827 2011-02-05  Eric Blake  <eblake@redhat.com>
7828
7829         unsetenv: work around Haiku issues
7830         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7831         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7832
7833 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7834
7835         libposix: avoid calling error() within libposix
7836         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7837         is defined.
7838
7839 2011-02-05  Eric Blake  <eblake@redhat.com>
7840
7841         strerror_r-posix: port to cygwin
7842         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7843         implementation.
7844         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7845         * tests/test-strerror_r.c (main): Fix test.
7846         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7847         issue.
7848
7849 2011-02-05  Bruno Haible  <bruno@clisp.org>
7850
7851         New module 'wmemchr'.
7852         * modules/wmemchr: New file.
7853         * lib/wchar.in.h (wmemchr): New declaration.
7854         * lib/wmemchr.c: New file.
7855         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7856         * m4/wmemchr.m4: New file.
7857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7859         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7860         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7861         * doc/posix-functions/wmemchr.texi: Mention the new module.
7862
7863 2011-02-04  Eric Blake  <eblake@redhat.com>
7864
7865         fdopendir: detect FreeBSD bug
7866         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7867         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7868
7869 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7870
7871         stdbool: do not define HAVE_STDBOOL_H
7872         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7873         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7874         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7875         imported from the latest Autoconf git.  It was motivated by Emacs,
7876         which uses gnulib but does not need HAVE_STDBOOL_H.
7877
7878 2011-02-04  Bruno Haible  <bruno@clisp.org>
7879
7880         wcsnrtombs: Prepare for new module wwcsnrtombs.
7881         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7882         * lib/wcsnrtombs.c: Include it.
7883         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7884
7885         wcsrtombs: Prepare for new module wwcsrtombs.
7886         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7887         * lib/wcsrtombs.c: Include it.
7888         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7889
7890         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7891         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7892         * lib/mbsnrtowcs.c: Include it.
7893         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7894
7895         mbsrtowcs: Prepare for new module mbsrtowwcs.
7896         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7897         * lib/mbsrtowcs.c: Include it.
7898         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7899
7900 2011-02-04  Bruno Haible  <bruno@clisp.org>
7901
7902         vasnprintf: Reduce use of malloc for small format strings.
7903         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7904         (arguments): Add room for the first 7 arguments.
7905         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7906         (char_directives, u8_directives, u16_directives, u32_directives): Add
7907         room for the first 7 directives.
7908         * lib/printf-parse.c: Include <string.h>.
7909         (PRINTF_PARSE): Change memory handling code so that it uses the first
7910         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7911         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7912         Reported by Pádraig Brady <P@draigbrady.com>.
7913
7914 2011-01-31  Eric Blake  <eblake@redhat.com>
7915
7916         dup2: work around Haiku bug
7917         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7918         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7919         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7920         * tests/test-dup2.c (main): Enhance test.
7921
7922 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7923
7924         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7925         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7926         declared by eglibc 2.11.2.
7927         * lib/stdio.in.h: Likewise.
7928
7929 2011-01-31  Eric Blake  <eblake@redhat.com>
7930
7931         ignore-value: add missing test dependency
7932         * tests/test-ignore-value.c: Revert previous change; stdio.h
7933         provides off_t.
7934         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7935
7936 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7937
7938         mktime: clarify long_int width checking
7939         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7940         the top level, to make it clearer that the assumption about
7941         long_int width is being checked.  See
7942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7943
7944 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7945
7946         ignore-value: Fix self-test.
7947         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7948
7949 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7950
7951         TYPE_MAXIMUM: avoid theoretically undefined behavior
7952         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7953         negative number, which the C Standard says has undefined behavior.
7954         In practice this is not a problem, but might as well do it by the book.
7955         Reported by Rich Felker and Eric Blake; see
7956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7957         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7958         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7960         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7961         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7962         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7963
7964         mktime: #undef mktime before #defining it
7965         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7966
7967         mktime: systematically normalize tm_isdst comparisons
7968         * lib/mktime.c (isdst_differ): New function.
7969         (__mktime_internal): Use it systematically for all isdst comparisons.
7970         This completes the fix for libc BZ #6723, and removes the need for
7971         normalizing tm_isdst.  See
7972         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7973         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7974
7975         mktime: fix some integer overflow issues and sidestep the rest
7976
7977         This was prompted by a bug report by Benjamin Lindner for MinGW
7978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7979         His bug is due to signed integer overflow (0 - INT_MIN), and I
7980         I scanned through mktime.c looking for other integer overflow
7981         problems, fixing all the bugs I found.
7982
7983         Although the C Standard says the resulting code is still not safe
7984         in the presence of integer overflow, in practice it should be good
7985         enough for all real-world two's-complement implementations, except
7986         for debugging environments that deliberately trap on integer
7987         overflow (e.g., gcc -ftrapv).
7988
7989         * lib/mktime.c (WRAPV): New macro.
7990         (SHR): Also check that long_int and time_t shift right in the
7991         usual way, before using the fast-but-unportable method.
7992         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7993         used.  The code already assumed two's complement, so there's
7994         no need to test for alternatives.  All uses removed.
7995         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7996         the C standard.  Problem reported by Rich Felker in
7997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7998         (twos_complement_arithmetic): Also check long_int and time_t.
7999         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
8000         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
8001         (__mktime_internal): Avoid integer overflow with unary subtraction
8002         in two instances where -1 - X is an adequate replacement for -X,
8003         since the calculations are approximate.
8004
8005 2011-01-29  Eric Blake  <eblake@redhat.com>
8006
8007         mktime: avoid infinite loop
8008         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
8009         type; behavior is still undefined but portable to all known targets.
8010         Reported by Rich Felker.
8011
8012 2011-01-29  Simon Josefsson  <simon@josefsson.org>
8013
8014         rename, unlink, same-inode: Relicense.
8015         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
8016         * modules/unlink (License): Likewise.
8017         * modules/same-inode (License): Likewise.
8018
8019 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8020
8021         mktime: avoid problems on NetBSD 5 / i386
8022         * lib/mktime.c (long_int): New type.  This works around a problem
8023         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
8024         but time_t is 64 bits, and where I expect the existing code is
8025         wrong in some cases.
8026         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
8027         (ydhms_diff): Bring back the compile-time check for wide-enough
8028         year and yday.
8029
8030         mktime: fix misspelling in comment
8031         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
8032         This merges all recent glibc changes of importance.
8033
8034 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8035
8036         move-if-change: cope with concurrent mv of identical file.
8037         * build-aux/move-if-change (CMPPROG): Accept environment
8038         variable as an override for `cmp'.
8039         (usage): Document CMPPROG.
8040         Adjust comparison to drop stdout.  Cope with failure of mv if
8041         the target file exists and is identical to the source, for
8042         parallel builds.
8043         Report from H.J. Lu against binutils in PR binutils/12283.
8044
8045 2011-01-28  Bruce Korb  <bkorb@gnu.org>
8046
8047         * users.txt: Mention sharutils.
8048
8049 2011-01-28  Simon Josefsson  <simon@josefsson.org>
8050
8051         * users.txt: Mention OATH Toolkit.
8052
8053 2011-01-27  Bruno Haible  <bruno@clisp.org>
8054
8055         Prepare for supporting FreeBSD 10.
8056         * build-aux/config.libpath: Remove handling of freebsd1*.
8057
8058 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
8059
8060         Prepare for supporting FreeBSD 10.
8061         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
8062         match FreeBSD 10.0.
8063
8064 2011-01-27  Bruno Haible  <bruno@clisp.org>
8065
8066         vma-iter, get-rusage-as: Add OpenBSD support.
8067         * modules/vma-iter (configure.ac): Test for mquery.
8068         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
8069         * lib/vma-iter.c: Include <sys/mman.h>.
8070         (vma_iterate): Add an implementation based on mquery().
8071         * lib/resource-ext.h (get_rusage_as): Update comments.
8072         * lib/get-rusage-as.c: Likewise.
8073         * lib/get-rusage-data.c: Likewise.
8074
8075 2011-01-26  Karl Berry  <karl@gnu.org>
8076
8077         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
8078         variables to make it easier to override the makeinfo program used.
8079
8080 2011-01-26  Eric Blake  <eblake@redhat.com>
8081
8082         fcntl: work around Haiku F_DUPFD bugs
8083         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
8084         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
8085         cloexec bit on duplication.
8086         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
8087
8088 2011-01-26  Bruno Haible  <bruno@clisp.org>
8089
8090         Enable memory leak tests on AIX.
8091         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
8092         * tests/test-fprintf-posix3.c (main): Likewise.
8093
8094 2011-01-26  Bruno Haible  <bruno@clisp.org>
8095
8096         Tests for module 'get-rusage-data'.
8097         * modules/get-rusage-data-tests: New file.
8098         * tests/test-get-rusage-data.c: New file.
8099
8100         New module 'get-rusage-data'.
8101         * lib/resource-ext.h (get_rusage_data): New declaration.
8102         * lib/get-rusage-data.c: New file.
8103         * modules/get-rusage-data: New file.
8104
8105 2011-01-25  Bruno Haible  <bruno@clisp.org>
8106
8107         get-rusage-as: Allow for easier testing.
8108         * lib/resource-ext.h (get_rusage_as): Add comment.
8109         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
8110         (main): New function for interactive testing.
8111
8112 2011-01-25  Bruno Haible  <bruno@clisp.org>
8113
8114         vma-iter: Treat Haiku like BeOS.
8115         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
8116         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
8117
8118 2011-01-25  Eric Blake  <eblake@redhat.com>
8119
8120         c-stack: fix regression on cygwin when libsigsegv is present
8121         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
8122
8123 2011-01-24  Bruno Haible  <bruno@clisp.org>
8124
8125         vma-iter: Avoid empty intervals.
8126         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
8127         on an empty interval.
8128
8129 2011-01-24  Jim Meyering  <meyering@redhat.com>
8130
8131         u64: remove unnecessary #include
8132         * lib/u64.h: Don't include <stddef.h>.  It was not used.
8133
8134 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8135
8136         Allow the user to avoid the HAVE_RAW_DECL_* macros.
8137         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
8138
8139 2011-01-23  Bruno Haible  <bruno@clisp.org>
8140
8141         New module 'vma-iter'.
8142         * lib/vma-iter.h: New file.
8143         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
8144         * modules/vma-iter: New file.
8145         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
8146         for get_rusage_as_via_iterator.
8147         (vma_iterate_callback): New function.
8148         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
8149         * modules/get-rusage-as (Depends-on): Add vma-iter.
8150
8151 2011-01-23  Bruno Haible  <bruno@clisp.org>
8152
8153         uninorm: Tweak includes.
8154         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
8155         Reported by Jim Meyering.
8156
8157 2011-01-23  Bruno Haible  <bruno@clisp.org>
8158
8159         get-rusage-as: Improve on NetBSD.
8160         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
8161         /proc, like on FreeBSD.
8162
8163 2011-01-23  Jim Meyering  <meyering@redhat.com>
8164
8165         xreadlink.h: remove unnecessary #include
8166         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
8167
8168         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
8169         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
8170
8171 2011-01-23  Bruno Haible  <bruno@clisp.org>
8172
8173         get-rusage-as: Fix bug.
8174         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
8175         original limit when aborting the first loop.
8176
8177 2011-01-23  Bruno Haible  <bruno@clisp.org>
8178
8179         wctype: Ensure valid C syntax.
8180         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
8181         unconditionally, instead of gl_NEXT_HEADERS conditionally.
8182
8183 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8184
8185         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
8186         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
8187         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
8188         as they are needed only for configure's test case.
8189         This removes two unnecessary symbols from config.h.
8190
8191         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
8192         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
8193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
8194         AC_CHECK_HEADERS_ONCE on a header that we also invoke
8195         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
8196         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
8197         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
8198         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8199         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8200         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8201         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8203         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8204         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8205         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8206         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8207         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8208         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8209
8210 2011-01-21  Eric Blake  <eblake@redhat.com>
8211
8212         maintainer-makefile: work with older git for submodule check
8213         * top/maint.mk (public-submodule-commit): Rewrite to avoid
8214         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
8215         Reported by Matthias Bolte.
8216
8217         bootstrap: minor portability fixes
8218         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
8219         (usage): Omit leading capital and trailing . on help phrases, per
8220         GNU Coding Standards.
8221         (check_versions, top level): Prefix messages with script name.
8222
8223 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
8224
8225         bootstrap: support --no-git option
8226         * build-aux/bootstrap: Add --no-git option, to be used when
8227         --gnulib-srcdir points to the exact desired checkout.
8228
8229 2011-01-21  Eric Blake  <eblake@redhat.com>
8230
8231         strerror_r-posix: work with glibc 2.13
8232         * lib/strerror_r.c (strerror_r): Fix return type.
8233
8234 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8235             Bruno Haible  <bruno@clisp.org>
8236
8237         uN_strstr: New unit tests.
8238         * modules/unistr/u8-strstr-tests: New file.
8239         * modules/unistr/u16-strstr-tests: New file.
8240         * modules/unistr/u32-strstr-tests: New file.
8241         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
8242         * tests/unistr/test-u8-strstr.c: New file.
8243         * tests/unistr/test-u16-strstr.c: New file.
8244         * tests/unistr/test-u32-strstr.c: New file.
8245
8246 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8247             Bruno Haible  <bruno@clisp.org>
8248
8249         Make uN_strstr functions O(n) worst-case.
8250         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
8251         16-bit and 32-bit unit cases, use the unibyte algorithm from
8252         lib/mbsstr.c.
8253         * lib/unistr/u8-strstr.c: Include <string.h>.
8254         (UNIT_IS_UINT8_T): New macro.
8255         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
8256         (U_STRLEN, U_STRNLEN): New macros.
8257         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
8258         (U_STRLEN, U_STRNLEN): New macros.
8259         * modules/unistr/u8-strstr (Depends-on): Add strstr.
8260         (configure.ac): Update required libunistring version.
8261         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
8262         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
8263         malloca.
8264         (configure.ac): Update required libunistring version.
8265         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
8266         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
8267         malloca.
8268         (configure.ac): Update required libunistring version.
8269
8270 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8271             Bruno Haible  <bruno@clisp.org>
8272
8273         Prepare for faster uN_strstr functions.
8274         * lib/str-kmp.h: Support definable UNITs.
8275         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
8276         needle_len argument.
8277         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
8278         * lib/mbscasestr.c (mbscasestr): Likewise.
8279
8280 2011-01-21  Pádraig Brady <P@draigBrady.com>
8281
8282         malloca-tests: make faster by unsetting MALLOC_PERTURB_
8283         * tests/test-malloca.c (main): Unset the environment variable
8284         to greatly speed up the test.
8285         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
8286         * modules/malloca-tests: Depend on unsetenv.
8287
8288 2011-01-21  Pádraig Brady <P@draigBrady.com>
8289
8290         ignore-value: remove stdint dependency
8291         * lib/ignore-value.h: Remove <stdint.h>
8292         * modules/ignore-value: Remove stdint dependency.
8293
8294 2011-01-21  Jim Meyering  <meyering@redhat.com>
8295
8296         maint.mk: adjust variable name to be consistent with other gl_ vars
8297         * top/maint.mk (gl_public_submodule_commit): Rename the variable
8298         to be lower case.
8299
8300 2011-01-20  Jim Meyering  <meyering@redhat.com>
8301
8302         maint.mk: make "check" depend on public-submodule-commit by default
8303         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
8304
8305 2011-01-20  Bruno Haible  <bruno@clisp.org>
8306
8307         mbfile, mbiter: Complete change from 2008-12-21.
8308         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
8309         * m4/mbiter.m4 (gl_MBITER): Likewise.
8310
8311 2011-01-20  Jim Meyering  <meyering@redhat.com>
8312
8313         init.sh: insert space between each function name and "()"
8314         * tests/init.sh: Make it a little easier to see that a function's
8315         name is "warn_", and not "warn" when looking at the first part of
8316         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
8317
8318 2011-01-20  Jim Meyering  <meyering@redhat.com>
8319
8320         mountlist: clean up code formatting
8321         * lib/mountlist.c (read_file_system_list): Split a long line,
8322         correct bracing style, use NULL in place of "(struct statfs *)0",
8323         don't parenthesize return value, add spaces around "=" and after
8324         ";-in-for-stmt".
8325
8326 2011-01-14  Markus Duft <mduft@gentoo.org>
8327
8328         mountlist: add support for Interix
8329         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8330         Apply statvfs to all entries of /dev/fs.
8331         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8332         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8333
8334 2011-01-20  Jim Meyering  <meyering@redhat.com>
8335
8336         maint.mk: improve the public-submodule-commit rule
8337         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8338         to suppress printing of its commands... unless V=1.
8339         Add git submodule's --quiet option to suppress printing of e.g.,
8340         "Entering gnulib" output.
8341         "cd" into $(srcdir) before running git submodule.
8342
8343 2011-01-20  Bruno Haible  <bruno@clisp.org>
8344
8345         include_next: Fix bug introduced on 2011-01-18.
8346         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8347         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8348         ac_cv_header_... variable if the second argument is not 'check'.
8349         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8350         gl_NEXT_HEADERS_INTERNAL.
8351
8352 2011-01-20  Bruno Haible  <bruno@clisp.org>
8353
8354         Allow the user to avoid the GNULIB_TEST_* macros.
8355         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8356         Suggested by Paul Eggert.
8357
8358 2011-01-14  Jim Meyering  <meyering@redhat.com>
8359
8360         bootstrap: avoid failure when there is no .gitmodules file
8361         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8362         has been assigned to, even when its value is the empty string.
8363         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8364         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8365         Reported by John W. Eaton <jwe@gnu.org>.
8366
8367 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8368
8369         assume <ctype.h>, ..., <time.h> exist
8370         For years gnulib has been assuming the existence of the headers
8371         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8372         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8373         them, since they don't appear to be needed.
8374         * README (Portability guidelines): Document this.
8375         * lib/flock.c: Assume <fcntl.h> exists.
8376         * lib/regex_internal.h: Assume <locale.h> exists.
8377         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8378         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8379         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8380         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8381         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8382         * m4/regex.m4 (gl_REGEX): Likewise.
8383         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8384         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8385         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8386         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8387         * tests/test-argp.c: Likewise.
8388         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8389
8390         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8391         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8392         AA_APPLE_UNIVERSAL_BUILD.  See
8393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8394         * NEWS: Document this.
8395
8396 2011-01-19  Eric Blake  <eblake@redhat.com>
8397
8398         c-stack: assume stack overflow if SA_SIGINFO unsupported
8399         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8400         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8401         sigaction will work.
8402         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8403         behavior match Linux.
8404         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8405
8406         stdbool-tests: accomodate Haiku
8407         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8408
8409         binary-io: fix O_TEXT on Haiku
8410         * modules/binary-io (Depends-on): Add fcntl-h.
8411         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8412         than blindly undefining O_TEXT.
8413         Reported by Scott McCreary.
8414
8415 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8416
8417         include_next: do not check for standard headers like stddef.h
8418
8419         I found this problem when modifying Emacs to use gnulib.
8420         I noticed that it added HAVE_STDDEF_H to config.h, even though
8421         gnulib always assumes <stddef.h> exists as per README and this
8422         symbol is unnecessary.
8423         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8424         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8425         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8426         faster for headers like stddef.h that are known to exist.
8427         (gl_CHECK_NEXT_HEADERS): Use it.
8428         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8429         rather than gl_CHECK_NEXT_HEADERS.
8430         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8431         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8432
8433 2011-01-18  Eric Blake  <eblake@redhat.com>
8434
8435         ansi-c++-opt: skip C++ dependency style if C++ is unused
8436         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8437         tests when we know C++ compilation is not desired.
8438         Reported by Scott McCreary.
8439
8440 2011-01-18  Bruno Haible  <bruno@clisp.org>
8441
8442         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8443         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8444         (main): Perform test also when getrlimit and setrlimit don't exist or
8445         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8446         limiting the address space size using setrlimit, compare the address
8447         space size before and after the the test.
8448         * tests/test-dprintf-posix2.c: Likewise.
8449         * tests/test-fprintf-posix3.sh: Update skip messages.
8450         * tests/test-dprintf-posix2.sh: Likewise.
8451         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8452         * modules/dprintf-posix-tests (Depends-on): Likewise.
8453         Reported by Bruce Korb <bkorb@gnu.org> and
8454         Gary V. Vaughan <gary@gnu.org>.
8455
8456 2011-01-18  Bruno Haible  <bruno@clisp.org>
8457
8458         get-rusage-as: Improvement for Cygwin.
8459         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8460         areas that are merely reserved.
8461
8462 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8463
8464         strftime: remove dependencies on multibyte modules
8465
8466         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8467         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8468         only if __osf__ is defined, and I suspect OSF doesn't need these
8469         other modules.  If my guess is wrong, we'll need to come up with a
8470         variant of strftime that doesn't need the multibyte modules.
8471
8472         I discovered this problem when attempting modify Emacs to use the
8473         strftime module.  With the previous gnulib, this caused Emacs to
8474         need 31 new files, ranging from lib/config.charset to
8475         m4/wint_t.m4.  This was overkill and I expect would be offputting
8476         to the Emacs maintainers.  After this change, only 6 new files are
8477         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8478         stdbool.m4, and tm_gmtoff.m4.
8479
8480         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8481         Suggested by Bruno Haible in
8482         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8483         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8484         and do not check for wchar.h.
8485         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8486         (Depends-on): Remove mbrlen, mbsinit, wchar.
8487
8488 2011-01-18  Bruno Haible  <bruno@clisp.org>
8489
8490         Tests for module 'get-rusage-as'.
8491         * modules/get-rusage-as-tests: New file.
8492         * tests/test-get-rusage-as.c: New file.
8493
8494         New module 'get-rusage-as'.
8495         * modules/get-rusage-as: New file.
8496         * lib/resource-ext.h: New file.
8497         * lib/get-rusage-as.c: New file.
8498
8499 2011-01-17  Eric Blake  <eblake@redhat.com>
8500
8501         sigaction: relax license from LGPLv3+ to LGPLv2+
8502         * modules/sigaction (License): Relax to LGPLv2+.
8503
8504 2011-01-14  Bruno Haible  <bruno@clisp.org>
8505
8506         filemode: Make function declarations usable in C++ mode.
8507         * lib/filemode.h: Enclose function declarations in extern "C" block.
8508         Reported by John W. Eaton <jwe@gnu.org>.
8509
8510 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8511
8512         save-cwd: no longer include "xgetcwd.h"
8513         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8514         This avoids a compilation failure in projects that use save-cwd
8515         without also using the xgetcwd module.
8516
8517 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8518
8519         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8520         This is so that a program like Emacs, which needs only dtoastr,
8521         does not have to bother with distributing and compiling ftoastr
8522         and ldtoastr.
8523         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8524         * modules/dtoastr, modules/ldtoastr: New files.
8525         * modules/ftoastr: Now works just for 'float'.
8526         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8527         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8528         dtoastr.c, ldtoastr.c.
8529
8530 2011-01-11  Jim Meyering  <meyering@redhat.com>
8531
8532         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8533         There is no need to work around the lack of the fchdir function,
8534         since gnulib can now provide a replacement when required.
8535         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8536         * modules/save-cwd (Depends-on): Add fchdir.
8537
8538 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8539
8540         openat, save-cwd: avoid xmalloc
8541
8542         This removes a direct (but undocumented) dependency of openat on
8543         xalloc, along with an indirect dependency via save-cwd.  It also
8544         removes a dependency of save-cwd on xgetcwd, and thereby
8545         indirectly on xalloc.  This change causes the openat substitute
8546         to fall back on save_cwd when memory is tight, and for save_cwd to
8547         fail instead of dying when memory is tight, but that's good enough.
8548         Problem and initial idea for fix reported by Bastien Roucaries in
8549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8550
8551         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8552         xalloc.h (for xmalloc).
8553         (openat_proc_name): Use malloc, not xmalloc.
8554         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8555         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8556
8557         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8558         This avoids heap allocation for file names whose lengths are in
8559         the range 512..1023, with the upper bound increasing to at most
8560         4031 depending on the platform's PATH_MAX.  (We do not want
8561         pathmax.h here as it might supply a non-constant PATH_MAX.)
8562         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8563         Perhaps they should be moved to malloca.h?
8564         (OPENAT_BUFFER_SIZE): Use them.
8565
8566 2011-01-10  Bruno Haible  <bruno@clisp.org>
8567
8568         doc: Update users.txt.
8569         * users.txt: Add recutils.
8570
8571 2011-01-09  Karl Berry  <karl@gnu.org>
8572
8573         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8574
8575         * doc/configmake.texi: New file.
8576         * doc/gnulib.texi: Include it.
8577         * modules/configmake: Move documentation from here.
8578
8579 2011-01-09  Bruno Haible  <bruno@clisp.org>
8580
8581         Update to Unicode 6.0.0.
8582         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8583         (get_lbp): Update for Unicode 6.0.0.
8584         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8585         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8586         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8587         U+11001, U+11038..U+11046. Remove U+06DE.
8588         (uc_width): Fix bounds of planes.
8589         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8590         lib/uniwidth/width.c.
8591         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8592         trailing whitespace removed.
8593         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8594         without comments, but with the original copyright notice.
8595         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8596         * lib/unicase/ignorable.h: Likewise.
8597         * lib/unicase/tocasefold.h: Likewise.
8598         * lib/unicase/tolower.h: Likewise.
8599         * lib/unicase/totitle.h: Likewise.
8600         * lib/unicase/toupper.h: Likewise.
8601         * lib/unictype/bidi_of.h: Likewise.
8602         * lib/unictype/blocks.h: Likewise.
8603         * lib/unictype/categ_C.h: Likewise.
8604         * lib/unictype/categ_Cn.h: Likewise.
8605         * lib/unictype/categ_L.h: Likewise.
8606         * lib/unictype/categ_Ll.h: Likewise.
8607         * lib/unictype/categ_Lm.h: Likewise.
8608         * lib/unictype/categ_Lo.h: Likewise.
8609         * lib/unictype/categ_Lu.h: Likewise.
8610         * lib/unictype/categ_M.h: Likewise.
8611         * lib/unictype/categ_Mc.h: Likewise.
8612         * lib/unictype/categ_Me.h: Likewise.
8613         * lib/unictype/categ_Mn.h: Likewise.
8614         * lib/unictype/categ_N.h: Likewise.
8615         * lib/unictype/categ_Nd.h: Likewise.
8616         * lib/unictype/categ_No.h: Likewise.
8617         * lib/unictype/categ_P.h: Likewise.
8618         * lib/unictype/categ_Po.h: Likewise.
8619         * lib/unictype/categ_S.h: Likewise.
8620         * lib/unictype/categ_Sc.h: Likewise.
8621         * lib/unictype/categ_Sk.h: Likewise.
8622         * lib/unictype/categ_Sm.h: Likewise.
8623         * lib/unictype/categ_So.h: Likewise.
8624         * lib/unictype/categ_of.h: Likewise.
8625         * lib/unictype/combining.h: Likewise.
8626         * lib/unictype/ctype_alnum.h: Likewise.
8627         * lib/unictype/ctype_alpha.h: Likewise.
8628         * lib/unictype/ctype_graph.h: Likewise.
8629         * lib/unictype/ctype_lower.h: Likewise.
8630         * lib/unictype/ctype_print.h: Likewise.
8631         * lib/unictype/ctype_punct.h: Likewise.
8632         * lib/unictype/ctype_upper.h: Likewise.
8633         * lib/unictype/decdigit.h: Likewise.
8634         * lib/unictype/digit.h: Likewise.
8635         * lib/unictype/numeric.h: Likewise.
8636         * lib/unictype/pr_alphabetic.h: Likewise.
8637         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8638         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8639         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8640         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8641         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8642         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8643         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8644         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8645         * lib/unictype/pr_case_ignorable.h: Likewise.
8646         * lib/unictype/pr_cased.h: Likewise.
8647         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8648         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8649         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8650         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8651         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8652         * lib/unictype/pr_combining.h: Likewise.
8653         * lib/unictype/pr_composite.h: Likewise.
8654         * lib/unictype/pr_currency_symbol.h: Likewise.
8655         * lib/unictype/pr_decimal_digit.h: Likewise.
8656         * lib/unictype/pr_deprecated.h: Likewise.
8657         * lib/unictype/pr_format_control.h: Likewise.
8658         * lib/unictype/pr_grapheme_base.h: Likewise.
8659         * lib/unictype/pr_grapheme_extend.h: Likewise.
8660         * lib/unictype/pr_grapheme_link.h: Likewise.
8661         * lib/unictype/pr_id_continue.h: Likewise.
8662         * lib/unictype/pr_id_start.h: Likewise.
8663         * lib/unictype/pr_ideographic.h: Likewise.
8664         * lib/unictype/pr_lowercase.h: Likewise.
8665         * lib/unictype/pr_math.h: Likewise.
8666         * lib/unictype/pr_numeric.h: Likewise.
8667         * lib/unictype/pr_other_alphabetic.h: Likewise.
8668         * lib/unictype/pr_other_id_continue.h: Likewise.
8669         * lib/unictype/pr_other_math.h: Likewise.
8670         * lib/unictype/pr_punctuation.h: Likewise.
8671         * lib/unictype/pr_sentence_terminal.h: Likewise.
8672         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8673         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8674         * lib/unictype/pr_unified_ideograph.h: Likewise.
8675         * lib/unictype/pr_uppercase.h: Likewise.
8676         * lib/unictype/pr_xid_continue.h: Likewise.
8677         * lib/unictype/pr_xid_start.h: Likewise.
8678         * lib/unictype/scripts.h: Likewise.
8679         * lib/unictype/scripts_byname.gperf: Likewise.
8680         * lib/unictype/sy_java_ident.h: Likewise.
8681         * lib/unigbrk/gbrkprop.h: Likewise.
8682         * lib/unilbrk/lbrkprop1.h: Likewise.
8683         * lib/unilbrk/lbrkprop2.h: Likewise.
8684         * lib/uninorm/decomposition-table2.h: Likewise.
8685         * lib/uniwbrk/wbrkprop.h: Likewise.
8686         * tests/unicase/test-cased.c: Likewise.
8687         * tests/unicase/test-ignorable.c: Likewise.
8688         * tests/unicase/test-uc_tolower.c: Likewise.
8689         * tests/unicase/test-uc_totitle.c: Likewise.
8690         * tests/unicase/test-uc_toupper.c: Likewise.
8691         * tests/unictype/test-categ_C.c: Likewise.
8692         * tests/unictype/test-categ_Cn.c: Likewise.
8693         * tests/unictype/test-categ_L.c: Likewise.
8694         * tests/unictype/test-categ_Ll.c: Likewise.
8695         * tests/unictype/test-categ_Lm.c: Likewise.
8696         * tests/unictype/test-categ_Lo.c: Likewise.
8697         * tests/unictype/test-categ_Lu.c: Likewise.
8698         * tests/unictype/test-categ_M.c: Likewise.
8699         * tests/unictype/test-categ_Mc.c: Likewise.
8700         * tests/unictype/test-categ_Me.c: Likewise.
8701         * tests/unictype/test-categ_Mn.c: Likewise.
8702         * tests/unictype/test-categ_N.c: Likewise.
8703         * tests/unictype/test-categ_Nd.c: Likewise.
8704         * tests/unictype/test-categ_No.c: Likewise.
8705         * tests/unictype/test-categ_P.c: Likewise.
8706         * tests/unictype/test-categ_Po.c: Likewise.
8707         * tests/unictype/test-categ_S.c: Likewise.
8708         * tests/unictype/test-categ_Sc.c: Likewise.
8709         * tests/unictype/test-categ_Sk.c: Likewise.
8710         * tests/unictype/test-categ_Sm.c: Likewise.
8711         * tests/unictype/test-categ_So.c: Likewise.
8712         * tests/unictype/test-ctype_alnum.c: Likewise.
8713         * tests/unictype/test-ctype_alpha.c: Likewise.
8714         * tests/unictype/test-ctype_graph.c: Likewise.
8715         * tests/unictype/test-ctype_lower.c: Likewise.
8716         * tests/unictype/test-ctype_print.c: Likewise.
8717         * tests/unictype/test-ctype_punct.c: Likewise.
8718         * tests/unictype/test-ctype_upper.c: Likewise.
8719         * tests/unictype/test-decdigit.h: Likewise.
8720         * tests/unictype/test-digit.h: Likewise.
8721         * tests/unictype/test-numeric.h: Likewise.
8722         * tests/unictype/test-pr_alphabetic.c: Likewise.
8723         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8724         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8725         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8726         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8727         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8728         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8729         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8730         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8731         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8732         * tests/unictype/test-pr_cased.c: Likewise.
8733         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8734         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8735         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8736         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8737         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8738         * tests/unictype/test-pr_combining.c: Likewise.
8739         * tests/unictype/test-pr_composite.c: Likewise.
8740         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8741         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8742         * tests/unictype/test-pr_deprecated.c: Likewise.
8743         * tests/unictype/test-pr_format_control.c: Likewise.
8744         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8745         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8746         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8747         * tests/unictype/test-pr_id_continue.c: Likewise.
8748         * tests/unictype/test-pr_id_start.c: Likewise.
8749         * tests/unictype/test-pr_ideographic.c: Likewise.
8750         * tests/unictype/test-pr_lowercase.c: Likewise.
8751         * tests/unictype/test-pr_math.c: Likewise.
8752         * tests/unictype/test-pr_numeric.c: Likewise.
8753         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8754         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8755         * tests/unictype/test-pr_other_math.c: Likewise.
8756         * tests/unictype/test-pr_punctuation.c: Likewise.
8757         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8758         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8759         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8760         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8761         * tests/unictype/test-pr_uppercase.c: Likewise.
8762         * tests/unictype/test-pr_xid_continue.c: Likewise.
8763         * tests/unictype/test-pr_xid_start.c: Likewise.
8764         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8765         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8766         changes.
8767         * lib/unictype/categ_Cc.h: Likewise.
8768         * lib/unictype/categ_Cf.h: Likewise.
8769         * lib/unictype/categ_Co.h: Likewise.
8770         * lib/unictype/categ_Cs.h: Likewise.
8771         * lib/unictype/categ_Lt.h: Likewise.
8772         * lib/unictype/categ_Nl.h: Likewise.
8773         * lib/unictype/categ_Pc.h: Likewise.
8774         * lib/unictype/categ_Pd.h: Likewise.
8775         * lib/unictype/categ_Pe.h: Likewise.
8776         * lib/unictype/categ_Pf.h: Likewise.
8777         * lib/unictype/categ_Pi.h: Likewise.
8778         * lib/unictype/categ_Ps.h: Likewise.
8779         * lib/unictype/categ_Z.h: Likewise.
8780         * lib/unictype/categ_Zl.h: Likewise.
8781         * lib/unictype/categ_Zp.h: Likewise.
8782         * lib/unictype/categ_Zs.h: Likewise.
8783         * lib/unictype/ctype_blank.h: Likewise.
8784         * lib/unictype/ctype_cntrl.h: Likewise.
8785         * lib/unictype/ctype_digit.h: Likewise.
8786         * lib/unictype/ctype_space.h: Likewise.
8787         * lib/unictype/ctype_xdigit.h: Likewise.
8788         * lib/unictype/mirror.h: Likewise.
8789         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8790         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8791         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8792         * lib/unictype/pr_bidi_control.h: Likewise.
8793         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8794         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8795         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8796         * lib/unictype/pr_bidi_pdf.h: Likewise.
8797         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8798         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8799         * lib/unictype/pr_dash.h: Likewise.
8800         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8801         * lib/unictype/pr_diacritic.h: Likewise.
8802         * lib/unictype/pr_extender.h: Likewise.
8803         * lib/unictype/pr_hex_digit.h: Likewise.
8804         * lib/unictype/pr_hyphen.h: Likewise.
8805         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8806         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8807         * lib/unictype/pr_ignorable_control.h: Likewise.
8808         * lib/unictype/pr_iso_control.h: Likewise.
8809         * lib/unictype/pr_join_control.h: Likewise.
8810         * lib/unictype/pr_left_of_pair.h: Likewise.
8811         * lib/unictype/pr_line_separator.h: Likewise.
8812         * lib/unictype/pr_logical_order_exception.h: Likewise.
8813         * lib/unictype/pr_non_break.h: Likewise.
8814         * lib/unictype/pr_not_a_character.h: Likewise.
8815         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8816         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8817         * lib/unictype/pr_other_id_start.h: Likewise.
8818         * lib/unictype/pr_other_lowercase.h: Likewise.
8819         * lib/unictype/pr_other_uppercase.h: Likewise.
8820         * lib/unictype/pr_paired_punctuation.h: Likewise.
8821         * lib/unictype/pr_paragraph_separator.h: Likewise.
8822         * lib/unictype/pr_pattern_syntax.h: Likewise.
8823         * lib/unictype/pr_pattern_white_space.h: Likewise.
8824         * lib/unictype/pr_private_use.h: Likewise.
8825         * lib/unictype/pr_quotation_mark.h: Likewise.
8826         * lib/unictype/pr_radical.h: Likewise.
8827         * lib/unictype/pr_soft_dotted.h: Likewise.
8828         * lib/unictype/pr_space.h: Likewise.
8829         * lib/unictype/pr_titlecase.h: Likewise.
8830         * lib/unictype/pr_variation_selector.h: Likewise.
8831         * lib/unictype/pr_white_space.h: Likewise.
8832         * lib/unictype/pr_zero_width.h: Likewise.
8833         * lib/unictype/sy_c_ident.h: Likewise.
8834         * lib/unictype/sy_c_whitespace.h: Likewise.
8835         * lib/unictype/sy_java_whitespace.h: Likewise.
8836         * lib/uninorm/composition-table.gperf: Likewise.
8837         * lib/uninorm/decomposition-table1.h: Likewise.
8838         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8839         LB8.
8840         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8841         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8842         * modules/unictype/*: Bump version number of expected libunistring
8843         version.
8844
8845 2011-01-09  Bruno Haible  <bruno@clisp.org>
8846
8847         Update to Unicode 5.2.0.
8848         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8849         trailing whitespace removed.
8850
8851 2011-01-09  Bruno Haible  <bruno@clisp.org>
8852
8853         New Unicode character properties, from Unicode 5.2.0.
8854         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8855         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8856         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8857         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8858         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8859         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8860         uc_is_property_cased, uc_is_property_case_ignorable,
8861         uc_is_property_changes_when_lowercased,
8862         uc_is_property_changes_when_uppercased,
8863         uc_is_property_changes_when_titlecased,
8864         uc_is_property_changes_when_casefolded,
8865         uc_is_property_changes_when_casemapped): New declarations.
8866         * lib/unictype/pr_byname.gperf: Add the new properties.
8867         * modules/unictype/property-byname (Depends-on): Depend on the new
8868         properties modules.
8869         * modules/unictype/property-all (Depends-on): Likewise.
8870         * MODULES.html.sh (Unicode string functions): Add
8871         unictype/property-case-ignorable, unictype/property-cased,
8872         unictype/property-changes-when-casefolded,
8873         unictype/property-changes-when-casemapped,
8874         unictype/property-changes-when-lowercased,
8875         unictype/property-changes-when-titlecased,
8876         unictype/property-changes-when-uppercased.
8877
8878         New module 'unictype/property-changes-when-casemapped'.
8879         * modules/unictype/property-changes-when-casemapped: New file.
8880         * lib/unictype/pr_changes_when_casemapped.c: New file.
8881         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8882         generated by gen-uni-tables.
8883         * modules/unictype/property-changes-when-casemapped-tests: New file.
8884         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8885         automatically generated by gen-uni-tables.
8886
8887         New module 'unictype/property-changes-when-casefolded'.
8888         * modules/unictype/property-changes-when-casefolded: New file.
8889         * lib/unictype/pr_changes_when_casefolded.c: New file.
8890         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8891         generated by gen-uni-tables.
8892         * modules/unictype/property-changes-when-casefolded-tests: New file.
8893         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8894         automatically generated by gen-uni-tables.
8895
8896         New module 'unictype/property-changes-when-titlecased'.
8897         * modules/unictype/property-changes-when-titlecased: New file.
8898         * lib/unictype/pr_changes_when_titlecased.c: New file.
8899         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8900         generated by gen-uni-tables.
8901         * modules/unictype/property-changes-when-titlecased-tests: New file.
8902         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8903         automatically generated by gen-uni-tables.
8904
8905         New module 'unictype/property-changes-when-uppercased'.
8906         * modules/unictype/property-changes-when-uppercased: New file.
8907         * lib/unictype/pr_changes_when_uppercased.c: New file.
8908         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8909         generated by gen-uni-tables.
8910         * modules/unictype/property-changes-when-uppercased-tests: New file.
8911         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8912         automatically generated by gen-uni-tables.
8913
8914         New module 'unictype/property-changes-when-lowercased'.
8915         * modules/unictype/property-changes-when-lowercased: New file.
8916         * lib/unictype/pr_changes_when_lowercased.c: New file.
8917         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8918         generated by gen-uni-tables.
8919         * modules/unictype/property-changes-when-lowercased-tests: New file.
8920         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8921         automatically generated by gen-uni-tables.
8922
8923         New module 'unictype/property-case-ignorable'.
8924         * modules/unictype/property-case-ignorable: New file.
8925         * lib/unictype/pr_case_ignorable.c: New file.
8926         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8927         by gen-uni-tables.
8928         * modules/unictype/property-case-ignorable-tests: New file.
8929         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8930         generated by gen-uni-tables.
8931
8932         New module 'unictype/property-cased'.
8933         * modules/unictype/property-cased: New file.
8934         * lib/unictype/pr_cased.c: New file.
8935         * lib/unictype/pr_cased.h: New file, automatically generated by
8936         gen-uni-tables.
8937         * modules/unictype/property-cased-tests: New file.
8938         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8939         gen-uni-tables.
8940
8941 2011-01-09  Bruno Haible  <bruno@clisp.org>
8942
8943         Update to Unicode 5.2.0.
8944         * lib/gen-uni-tables.c (output_predicate, output_category,
8945         output_combclass, output_bidi_category, output_decimal_digit_test,
8946         output_decimal_digit, output_digit_test, output_digit,
8947         output_numeric_test, output_numeric, output_mirror, output_scripts,
8948         output_scripts_byname, output_blocks, output_ident_category): Fix
8949         comment header.
8950         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8951         get_wbp.
8952         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8953         items.
8954         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8955         Changes_When_Lowercased, Changes_When_Uppercased,
8956         Changes_When_Titlecased, Changes_When_Casefolded,
8957         Changes_When_Casemapped.
8958         (is_property_alphabetic, is_property_default_ignorable_code_point):
8959         Update for Unicode 5.2.0.
8960         (is_property_cased, is_property_case_ignorable,
8961         is_property_changes_when_lowercased,
8962         is_property_changes_when_uppercased,
8963         is_property_changes_when_titlecased,
8964         is_property_changes_when_casefolded,
8965         is_property_changes_when_casemapped): New functions.
8966         (output_properties): Output also the properties cased, case_ignorable,
8967         changes_when_lowercased, changes_when_uppercased,
8968         changes_when_titlecased, changes_when_casefolded,
8969         changes_when_casemapped.
8970         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8971         Unicode TR#11 revision 17 -> 19.
8972         (LBP_CP): New enumeration value.
8973         (LBP_*): Adjust values accordingly.
8974         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8975         TR#14 revision 22 -> 24.
8976         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8977         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8978         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8979         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8980         is_WBP_MIDLETTER.
8981         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8982         the code1 and code2 of each composition rule.
8983         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8984         * lib/unicase/ignorable.h: Likewise.
8985         * lib/unicase/tocasefold.h: Likewise.
8986         * lib/unicase/tolower.h: Likewise.
8987         * lib/unicase/totitle.h: Likewise.
8988         * lib/unicase/toupper.h: Likewise.
8989         * lib/unictype/bidi_of.h: Likewise.
8990         * lib/unictype/blocks.h: Likewise.
8991         * lib/unictype/categ_C.h: Likewise.
8992         * lib/unictype/categ_Cf.h: Likewise.
8993         * lib/unictype/categ_Cn.h: Likewise.
8994         * lib/unictype/categ_L.h: Likewise.
8995         * lib/unictype/categ_Ll.h: Likewise.
8996         * lib/unictype/categ_Lm.h: Likewise.
8997         * lib/unictype/categ_Lo.h: Likewise.
8998         * lib/unictype/categ_Lu.h: Likewise.
8999         * lib/unictype/categ_M.h: Likewise.
9000         * lib/unictype/categ_Mc.h: Likewise.
9001         * lib/unictype/categ_Mn.h: Likewise.
9002         * lib/unictype/categ_N.h: Likewise.
9003         * lib/unictype/categ_Nd.h: Likewise.
9004         * lib/unictype/categ_Nl.h: Likewise.
9005         * lib/unictype/categ_No.h: Likewise.
9006         * lib/unictype/categ_P.h: Likewise.
9007         * lib/unictype/categ_Pd.h: Likewise.
9008         * lib/unictype/categ_Po.h: Likewise.
9009         * lib/unictype/categ_S.h: Likewise.
9010         * lib/unictype/categ_Sc.h: Likewise.
9011         * lib/unictype/categ_So.h: Likewise.
9012         * lib/unictype/categ_of.h: Likewise.
9013         * lib/unictype/combining.h: Likewise.
9014         * lib/unictype/ctype_alnum.h: Likewise.
9015         * lib/unictype/ctype_alpha.h: Likewise.
9016         * lib/unictype/ctype_graph.h: Likewise.
9017         * lib/unictype/ctype_lower.h: Likewise.
9018         * lib/unictype/ctype_print.h: Likewise.
9019         * lib/unictype/ctype_punct.h: Likewise.
9020         * lib/unictype/ctype_upper.h: Likewise.
9021         * lib/unictype/decdigit.h: Likewise.
9022         * lib/unictype/digit.h: Likewise.
9023         * lib/unictype/numeric.h: Likewise.
9024         * lib/unictype/pr_alphabetic.h: Likewise.
9025         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9026         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9027         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9028         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9029         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9030         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9031         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9032         * lib/unictype/pr_combining.h: Likewise.
9033         * lib/unictype/pr_composite.h: Likewise.
9034         * lib/unictype/pr_currency_symbol.h: Likewise.
9035         * lib/unictype/pr_dash.h: Likewise.
9036         * lib/unictype/pr_decimal_digit.h: Likewise.
9037         * lib/unictype/pr_deprecated.h: Likewise.
9038         * lib/unictype/pr_diacritic.h: Likewise.
9039         * lib/unictype/pr_extender.h: Likewise.
9040         * lib/unictype/pr_grapheme_base.h: Likewise.
9041         * lib/unictype/pr_grapheme_extend.h: Likewise.
9042         * lib/unictype/pr_grapheme_link.h: Likewise.
9043         * lib/unictype/pr_id_continue.h: Likewise.
9044         * lib/unictype/pr_id_start.h: Likewise.
9045         * lib/unictype/pr_ideographic.h: Likewise.
9046         * lib/unictype/pr_ignorable_control.h: Likewise.
9047         * lib/unictype/pr_logical_order_exception.h: Likewise.
9048         * lib/unictype/pr_lowercase.h: Likewise.
9049         * lib/unictype/pr_numeric.h: Likewise.
9050         * lib/unictype/pr_other_alphabetic.h: Likewise.
9051         * lib/unictype/pr_punctuation.h: Likewise.
9052         * lib/unictype/pr_sentence_terminal.h: Likewise.
9053         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9054         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9055         * lib/unictype/pr_unified_ideograph.h: Likewise.
9056         * lib/unictype/pr_uppercase.h: Likewise.
9057         * lib/unictype/pr_xid_continue.h: Likewise.
9058         * lib/unictype/pr_xid_start.h: Likewise.
9059         * lib/unictype/pr_zero_width.h: Likewise.
9060         * lib/unictype/scripts.h: Likewise.
9061         * lib/unictype/scripts_byname.gperf: Likewise.
9062         * lib/unictype/sy_java_ident.h: Likewise.
9063         * lib/unigbrk/gbrkprop.h: Likewise.
9064         * lib/unilbrk/lbrkprop1.h: Likewise.
9065         * lib/unilbrk/lbrkprop2.h: Likewise.
9066         * lib/unilbrk/lbrktables.h: Likewise.
9067         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
9068         LBP_CP. Implement rule LB30.
9069         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
9070         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
9071         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
9072         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
9073         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
9074         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
9075         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
9076         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
9077         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
9078         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
9079         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
9080         bits instead of 16 bits in the code1 and code2 of each composition
9081         rule.
9082         (uc_composition): Update for Unicode 5.2.0.
9083         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
9084         * lib/uninorm/decomposition-table2.h: Likewise.
9085         * lib/uniwbrk/wbrkprop.h: Likewise.
9086         * tests/unicase/test-cased.c: Likewise.
9087         * tests/unicase/test-ignorable.c: Likewise.
9088         * tests/unicase/test-uc_tolower.c: Likewise.
9089         * tests/unicase/test-uc_totitle.c: Likewise.
9090         * tests/unicase/test-uc_toupper.c: Likewise.
9091         * tests/unictype/test-categ_C.c: Likewise.
9092         * tests/unictype/test-categ_Cf.c: Likewise.
9093         * tests/unictype/test-categ_Cn.c: Likewise.
9094         * tests/unictype/test-categ_L.c: Likewise.
9095         * tests/unictype/test-categ_Ll.c: Likewise.
9096         * tests/unictype/test-categ_Lm.c: Likewise.
9097         * tests/unictype/test-categ_Lo.c: Likewise.
9098         * tests/unictype/test-categ_Lu.c: Likewise.
9099         * tests/unictype/test-categ_M.c: Likewise.
9100         * tests/unictype/test-categ_Mc.c: Likewise.
9101         * tests/unictype/test-categ_Mn.c: Likewise.
9102         * tests/unictype/test-categ_N.c: Likewise.
9103         * tests/unictype/test-categ_Nd.c: Likewise.
9104         * tests/unictype/test-categ_Nl.c: Likewise.
9105         * tests/unictype/test-categ_No.c: Likewise.
9106         * tests/unictype/test-categ_P.c: Likewise.
9107         * tests/unictype/test-categ_Pd.c: Likewise.
9108         * tests/unictype/test-categ_Po.c: Likewise.
9109         * tests/unictype/test-categ_S.c: Likewise.
9110         * tests/unictype/test-categ_Sc.c: Likewise.
9111         * tests/unictype/test-categ_So.c: Likewise.
9112         * tests/unictype/test-ctype_alnum.c: Likewise.
9113         * tests/unictype/test-ctype_alpha.c: Likewise.
9114         * tests/unictype/test-ctype_graph.c: Likewise.
9115         * tests/unictype/test-ctype_lower.c: Likewise.
9116         * tests/unictype/test-ctype_print.c: Likewise.
9117         * tests/unictype/test-ctype_punct.c: Likewise.
9118         * tests/unictype/test-ctype_upper.c: Likewise.
9119         * tests/unictype/test-decdigit.h: Likewise.
9120         * tests/unictype/test-digit.h: Likewise.
9121         * tests/unictype/test-numeric.h: Likewise.
9122         * tests/unictype/test-pr_alphabetic.c: Likewise.
9123         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9124         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9125         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9126         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9127         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9128         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9129         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9130         * tests/unictype/test-pr_combining.c: Likewise.
9131         * tests/unictype/test-pr_composite.c: Likewise.
9132         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9133         * tests/unictype/test-pr_dash.c: Likewise.
9134         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9135         * tests/unictype/test-pr_deprecated.c: Likewise.
9136         * tests/unictype/test-pr_diacritic.c: Likewise.
9137         * tests/unictype/test-pr_extender.c: Likewise.
9138         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9139         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9140         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9141         * tests/unictype/test-pr_id_continue.c: Likewise.
9142         * tests/unictype/test-pr_id_start.c: Likewise.
9143         * tests/unictype/test-pr_ideographic.c: Likewise.
9144         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9145         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9146         * tests/unictype/test-pr_lowercase.c: Likewise.
9147         * tests/unictype/test-pr_numeric.c: Likewise.
9148         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9149         * tests/unictype/test-pr_punctuation.c: Likewise.
9150         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9151         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9152         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9153         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9154         * tests/unictype/test-pr_uppercase.c: Likewise.
9155         * tests/unictype/test-pr_xid_continue.c: Likewise.
9156         * tests/unictype/test-pr_xid_start.c: Likewise.
9157         * tests/unictype/test-pr_zero_width.c: Likewise.
9158         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9159         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
9160         changed behaviour: line breaking is now disallowed between a letter
9161         or '=' and '('.
9162         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9163         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9164         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9165         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
9166         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9167         lib/uniwidth/width.c.
9168         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
9169         without comments, but with the original copyright notice.
9170         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9171         changes.
9172         * lib/unictype/categ_Cc.h: Likewise.
9173         * lib/unictype/categ_Co.h: Likewise.
9174         * lib/unictype/categ_Cs.h: Likewise.
9175         * lib/unictype/categ_Lt.h: Likewise.
9176         * lib/unictype/categ_Me.h: Likewise.
9177         * lib/unictype/categ_Pc.h: Likewise.
9178         * lib/unictype/categ_Pe.h: Likewise.
9179         * lib/unictype/categ_Pf.h: Likewise.
9180         * lib/unictype/categ_Pi.h: Likewise.
9181         * lib/unictype/categ_Ps.h: Likewise.
9182         * lib/unictype/categ_Sk.h: Likewise.
9183         * lib/unictype/categ_Sm.h: Likewise.
9184         * lib/unictype/categ_Z.h: Likewise.
9185         * lib/unictype/categ_Zl.h: Likewise.
9186         * lib/unictype/categ_Zp.h: Likewise.
9187         * lib/unictype/categ_Zs.h: Likewise.
9188         * lib/unictype/ctype_blank.h: Likewise.
9189         * lib/unictype/ctype_cntrl.h: Likewise.
9190         * lib/unictype/ctype_digit.h: Likewise.
9191         * lib/unictype/ctype_space.h: Likewise.
9192         * lib/unictype/ctype_xdigit.h: Likewise.
9193         * lib/unictype/mirror.h: Likewise.
9194         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9195         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9196         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9197         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9198         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9199         * lib/unictype/pr_bidi_control.h: Likewise.
9200         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9201         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9202         * lib/unictype/pr_bidi_pdf.h: Likewise.
9203         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9204         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9205         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9206         * lib/unictype/pr_format_control.h: Likewise.
9207         * lib/unictype/pr_hex_digit.h: Likewise.
9208         * lib/unictype/pr_hyphen.h: Likewise.
9209         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9210         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9211         * lib/unictype/pr_iso_control.h: Likewise.
9212         * lib/unictype/pr_join_control.h: Likewise.
9213         * lib/unictype/pr_left_of_pair.h: Likewise.
9214         * lib/unictype/pr_line_separator.h: Likewise.
9215         * lib/unictype/pr_math.h: Likewise.
9216         * lib/unictype/pr_non_break.h: Likewise.
9217         * lib/unictype/pr_not_a_character.h: Likewise.
9218         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9219         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9220         * lib/unictype/pr_other_id_continue.h: Likewise.
9221         * lib/unictype/pr_other_id_start.h: Likewise.
9222         * lib/unictype/pr_other_lowercase.h: Likewise.
9223         * lib/unictype/pr_other_math.h: Likewise.
9224         * lib/unictype/pr_other_uppercase.h: Likewise.
9225         * lib/unictype/pr_paired_punctuation.h: Likewise.
9226         * lib/unictype/pr_paragraph_separator.h: Likewise.
9227         * lib/unictype/pr_pattern_syntax.h: Likewise.
9228         * lib/unictype/pr_pattern_white_space.h: Likewise.
9229         * lib/unictype/pr_private_use.h: Likewise.
9230         * lib/unictype/pr_quotation_mark.h: Likewise.
9231         * lib/unictype/pr_radical.h: Likewise.
9232         * lib/unictype/pr_soft_dotted.h: Likewise.
9233         * lib/unictype/pr_space.h: Likewise.
9234         * lib/unictype/pr_titlecase.h: Likewise.
9235         * lib/unictype/pr_variation_selector.h: Likewise.
9236         * lib/unictype/pr_white_space.h: Likewise.
9237         * lib/unictype/sy_c_ident.h: Likewise.
9238         * lib/unictype/sy_c_whitespace.h: Likewise.
9239         * lib/unictype/sy_java_whitespace.h: Likewise.
9240         * modules/uni*/*: Bump version number of expected libunistring version.
9241         Reported by Simon Josefsson.
9242
9243 2011-01-09  Karl Heuer  <kwzh@gnu.org>
9244
9245         useless-if-before-free: fix typo in --help and make the internal,
9246         automatic version date update process work once again.
9247         --help output contained a NUL character instead of the
9248         backslash-zero that was intended.  Also, the "must lie within
9249         the first 8 lines" line is on line 9, and hence not getting
9250         automatically updated.
9251         * build-aux/useless-if-before-free: Fix the former by adding a
9252         backslash, and the latter by condensing the three lines of what-it-does
9253         to a single line, leaving one line of slack for the future.
9254
9255 2011-01-09  Bruno Haible  <bruno@clisp.org>
9256
9257         uniwidth/width: Fix width of U+1D173..U+1D17A.
9258         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
9259         symbolic_width, output_width_property_test): New functions.
9260         (main): Invoke output_nonspacing_property, output_width_property_test.
9261         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
9262         U+1D173..U+1D17A.
9263         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
9264         1.
9265         * modules/uniwidth/*: Bump version number of expected libunistring
9266         version.
9267         * modules/unilbrk/*: Likewise.
9268
9269 2011-01-08  Bruno Haible  <bruno@clisp.org>
9270
9271         uninorm tests: Preserve copyright of Unicode data file.
9272         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
9273         Mention modifications.
9274
9275 2011-01-08  Bruno Haible  <bruno@clisp.org>
9276
9277         gen-uni-tables: Prepare for Unicode 5.2.0.
9278         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
9279         (debug_output_lbp, output_lbp): Update.
9280
9281 2011-01-08  Bruno Haible  <bruno@clisp.org>
9282
9283         unilbrk: Clarify gen-uni-tables.c code.
9284         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
9285         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
9286         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
9287
9288 2011-01-07  Bruno Haible  <bruno@clisp.org>
9289
9290         strtod: Restore errno when successfully parsing Infinity or NaN.
9291         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
9292         restore the original errno.
9293
9294 2011-01-07  Bruno Haible  <bruno@clisp.org>
9295
9296         remove test: Avoid failure on HP-UX 11.
9297         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
9298
9299 2011-01-07  Bruno Haible  <bruno@clisp.org>
9300
9301         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
9302         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
9303         error code.
9304
9305 2011-01-07  Pádraig Brady <P@draigBrady.com>
9306
9307         ignore-value: fixup comments, and add Eric Blake
9308         as an author since he rewrote the macros.
9309         * lib/ignore-value.h (ignore_value):  State that
9310         we now support aggregates.  Also specify exactly
9311         when the GCC warn_unused_result feature was added.
9312
9313 2011-01-06  Eric Blake  <eblake@redhat.com>
9314
9315         ignore-value: support aggregate types
9316         * lib/ignore-value.h (ignore_value): Provide separate gcc
9317         definition.
9318         * modules/ignore-value-tests: New test module.
9319         * tests/test-ignore-value.c: New test.
9320
9321         maint.mk: improve sc_prohibit_strcmp regex
9322         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
9323         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
9324         definition of STRNEQ.
9325
9326         signal: work around Haiku issue with SIGBUS
9327         * lib/siglist.h: Add comment.
9328         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9329         strsignal's favoring of SIGSEGV.
9330         * tests/test-signal.c (main): Avoid test failure.
9331         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9332         Reported by Scott McCreary.
9333
9334         maint.mk: add pre-release check to ensure submodule commits are public
9335         * top/maint.mk (public-submodule-commit): New rule.
9336         (submodule-checks): New variable.
9337         (alpha beta stable): Depend on the variable.
9338
9339 2011-01-05  Pádraig Brady <P@draigBrady.com>
9340         and Jim Meyering  <meyering@redhat.com>
9341
9342         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9343         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9344         (ATTRIBUTE_DEPRECATED): Define.
9345         (_ignore_case): New function.
9346         (ignore_value): New macro, to replace the old function.
9347         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9348         * modules/ignore-value (Depends-on): Add stdint.
9349
9350 2011-01-04  Eric Blake  <eblake@redhat.com>
9351
9352         doc: regenerate INSTALL
9353         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9354         @firstparagraphindent support, now that autoconf dropped it.
9355         (INSTALL_PRELUDE): Reinstate old macro.
9356         * doc/install.texi: Resync from autoconf.
9357         * doc/INSTALL: Reflect recent autoconf update.
9358         * doc/INSTALL.ISO: Likewise.
9359         * doc/INSTALL.UTF-8: Likewise.
9360         Reported by Karl Berry.
9361
9362 2011-01-04  Bruce Korb  <address@hidden>
9363
9364         git-version-gen: avoid a sub-shell
9365         * build-aux/git-version-gen: Redirect stderr in `...` via
9366         "exec 2>...", rather than via an added sub-shell.
9367
9368 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9369
9370         git-version-gen: use (...) rather than sh -c '...'
9371         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9372         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9373
9374 2011-01-03  Jim Meyering  <meyering@redhat.com>
9375
9376         git-version-gen: convert leading TABs to spaces
9377         * build-aux/git-version-gen: Expand leading TABs.
9378
9379         git-version-gen: handle failed "git rev-list"
9380         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9381         from git and proceeding as if it had succeeded but printed no SHA1
9382         checksums, suppress the diagnostic and handle the failure.
9383         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9384
9385         git-version-gen: include command name in one more diagnostic
9386         * build-aux/git-version-gen: When the required .tarball-version file
9387         was missing or unreadable, you might see the diagnostic from "cat",
9388         but no trace of the name of the invoking script.  Now, you still see
9389         the diagnostic from cat, but also get one from "git-version-gen: ".
9390         Inspired by a patch from Bruce Korb.
9391
9392         update-copyright: adjust test to match changed code
9393         * tests/test-update-copyright.sh: Change test's expected output
9394         to match new actual output.
9395
9396 2011-01-02  Bruno Haible  <bruno@clisp.org>
9397
9398         getlogin_r: Avoid test failure on HP-UX 11.
9399         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9400         ERANGE when the second argument is zero.
9401         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9402         portability problem.
9403
9404 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9405
9406         * build-aux/update-copyright: doc Simon's changes
9407
9408 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9409
9410         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9411         environment variable.
9412
9413 2011-01-02  Bruno Haible  <bruno@clisp.org>
9414
9415         unigbrk: Avoid gcc warnings.
9416         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9417         unused variable.
9418         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9419         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9420         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9421         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9422         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9423         Change type of first argument to 'const char *'.
9424         (main): Remove unused variable.
9425         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9426         type of first argument to 'const char *'.
9427         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9428         Likewise.
9429         (main): Change type of variable 's'.
9430         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9431         to 'int'.
9432
9433 2011-01-02  Bruno Haible  <bruno@clisp.org>
9434
9435         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9436         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9437         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9438         bug.
9439         * lib/pwrite.c: Undo 2010-12-31 patch.
9440         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9441
9442 2011-01-02  Bruno Haible  <bruno@clisp.org>
9443
9444         pread: Fix test whether it works.
9445         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9446
9447 2011-01-02  Bruno Haible  <bruno@clisp.org>
9448
9449         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9450         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9451         ends in "6". Don't require a specific month name. Try also the locale
9452         names found on HP-UX 11 and Solaris 7.
9453
9454 2011-01-02  Bruno Haible  <bruno@clisp.org>
9455
9456         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9457         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9458         C linkage.
9459         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9460
9461 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9462
9463         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9464         for consistency, since the "cluster" term is not used elsewhere.
9465         * lib/unigbrk.in.h: Update name.
9466         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9467         * lib/unigbrk/u16-grapheme-next.c: Update name.
9468         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9469         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9470         * lib/unigbrk/u32-grapheme-next.c: Update name.
9471         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9472         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9473         * lib/unigbrk/u8-grapheme-next.c: Update name.
9474         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9475         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9476         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9477         Suggested by Bruno Haible.
9478
9479 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9480
9481         Remove module 'u8-grapheme-len' as too redundant with
9482         'u8-grapheme-next'.
9483         * modules/unigbrk/u8-grapheme-len: Delete file.
9484         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9485         * lib/unigbrk.in.h: Remove prototype for deleted function.
9486         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9487         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9488
9489         Remove module 'u16-grapheme-len' as too redundant with
9490         'u16-grapheme-next'.
9491         * modules/unigbrk/u16-grapheme-len: Delete file.
9492         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9493         * lib/unigbrk.in.h: Remove prototype for deleted function.
9494         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9495         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9496
9497         Remove module 'u32-grapheme-len' as too redundant with
9498         'u32-grapheme-next'.
9499         * modules/unigbrk/u32-grapheme-len: Delete file.
9500         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9501         * lib/unigbrk.in.h: Remove prototype for deleted function.
9502         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9503         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9504
9505         Suggested by Bruno Haible.
9506
9507 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9508
9509         * unigbrk.in.h: Fix typo: "ben" => "been".
9510         Reported by Bruno Haible.
9511
9512 2011-01-01  Jim Meyering  <meyering@redhat.com>
9513
9514         maint: update almost all copyright ranges to include 2011
9515         Run the new "make update-copyright" rule.
9516
9517 2011-01-01  Jim Meyering  <meyering@redhat.com>
9518
9519         maint: update-copyright: exempt doc/INSTALL*
9520         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9521         since they are generated.  Suggested by Bruno Haible.
9522
9523 2011-01-01  Jim Meyering  <meyering@redhat.com>
9524
9525         maint: refine the update-copyright rule
9526         * Makefile (update-copyright): Also exclude any file that includes
9527         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9528         code that merely generates the comment.
9529
9530 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9531
9532         New module 'u8-grapheme-len'.
9533         * modules/unigbrk/u8-grapheme-len: New file.
9534         * modules/unigbrk/u8-grapheme-len-tests: New file.
9535         * lib/unigbrk.in.h: Add prototype for new function.
9536         * lib/unigbrk/u8-grapheme-len.c: New file.
9537         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9538
9539         New module 'u16-grapheme-len'.
9540         * modules/unigbrk/u16-grapheme-len: New file.
9541         * modules/unigbrk/u16-grapheme-len-tests: New file.
9542         * lib/unigbrk.in.h: Add prototype for new function.
9543         * lib/unigbrk/u16-grapheme-len.c: New file.
9544         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9545
9546         New module 'u32-grapheme-len'.
9547         * modules/unigbrk/u32-grapheme-len: New file.
9548         * modules/unigbrk/u32-grapheme-len-tests: New file.
9549         * lib/unigbrk.in.h: Add prototype for new function.
9550         * lib/unigbrk/u32-grapheme-len.c: New file.
9551         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9552
9553         New module 'u8-grapheme-next'.
9554         * modules/unigbrk/u8-grapheme-next: New file.
9555         * modules/unigbrk/u8-grapheme-next-tests: New file.
9556         * lib/unigbrk.in.h: Add prototype for new function.
9557         * lib/unigbrk/u8-grapheme-next.c: New file.
9558         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9559
9560         New module 'u16-grapheme-next'.
9561         * modules/unigbrk/u16-grapheme-next: New file.
9562         * modules/unigbrk/u16-grapheme-next-tests: New file.
9563         * lib/unigbrk.in.h: Add prototype for new function.
9564         * lib/unigbrk/u16-grapheme-next.c: New file.
9565         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9566
9567         New module 'u32-grapheme-next'.
9568         * modules/unigbrk/u32-grapheme-next: New file.
9569         * modules/unigbrk/u32-grapheme-next-tests: New file.
9570         * lib/unigbrk.in.h: Add prototype for new function.
9571         * lib/unigbrk/u32-grapheme-next.c: New file.
9572         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9573
9574         New module 'u8-grapheme-prev'.
9575         * modules/unigbrk/u8-grapheme-prev: New file.
9576         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9577         * lib/unigbrk.in.h: Add prototype for new function.
9578         * lib/unigbrk/u8-grapheme-prev.c: New file.
9579         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9580
9581         New module 'u16-grapheme-prev'.
9582         * modules/unigbrk/u16-grapheme-prev: New file.
9583         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9584         * lib/unigbrk.in.h: Add prototype for new function.
9585         * lib/unigbrk/u16-grapheme-prev.c: New file.
9586         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9587
9588         New module 'u32-grapheme-prev'.
9589         * modules/unigbrk/u32-grapheme-prev: New file.
9590         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9591         * lib/unigbrk.in.h: Add prototype for new function.
9592         * lib/unigbrk/u32-grapheme-prev.c: New file.
9593         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9594
9595         New module 'u8-grapheme-breaks'.
9596         * modules/unigbrk/u8-grapheme-breaks: New file.
9597         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9598         * lib/unigbrk.in.h: Add prototype for new function.
9599         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9600         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9601
9602         New module 'u16-grapheme-breaks'.
9603         * modules/unigbrk/u16-grapheme-breaks: New file.
9604         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9605         * lib/unigbrk.in.h: Add prototype for new function.
9606         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9607         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9608
9609         New module 'u32-grapheme-breaks'.
9610         * modules/unigbrk/u32-grapheme-breaks: New file.
9611         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9612         * lib/unigbrk.in.h: Add prototype for new function.
9613         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9614         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9615
9616         New module 'ulc-grapheme-breaks'.
9617         * modules/unigbrk/ulc-grapheme-breaks: New file.
9618         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9619         * m4/locale-ar.m4: New file.
9620         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9621         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9622         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9623
9624 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9625
9626         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9627         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9628         modified how this file was generated before I initially submitted
9629         the module, but failed to regenerate it.  This meant that several
9630         of the level2 entries were wrong.
9631         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9632         Remove the division-by-2 that is folded into the table now that
9633         gbrkprop.h has been regenerated properly.  Now -1 entries are
9634         handled correctly.
9635
9636         New module 'unigbrk/uc-gbrk-prop-tests'.
9637         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9638         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9639         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9640         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9641
9642 2011-01-01  Bruno Haible  <bruno@clisp.org>
9643
9644         Avoid use of hexadecimal escapes.
9645         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9646         instead of hexadecimal escapes.
9647
9648 2011-01-01  Jim Meyering  <meyering@redhat.com>
9649
9650         maint: new rule to update copyright year ranges
9651         * Makefile (update-copyright): New rule.
9652
9653         maint: indent with TABs in Makefile
9654         * Makefile: Expand leading sequences of spaces to TABs
9655
9656         version-etc: update the copyright year it reports
9657         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9658
9659 2010-12-31  Bruno Haible  <bruno@clisp.org>
9660
9661         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9662         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9663         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9664         zero.
9665
9666 2010-12-31  Bruno Haible  <bruno@clisp.org>
9667
9668         pwrite: Work around HP-UX 11.11 bug.
9669         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9670         works and set REPLACE_PWRITE if not.
9671         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9672         function.
9673         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9674
9675 2010-12-31  Bruno Haible  <bruno@clisp.org>
9676
9677         pread: Work around HP-UX 11 bugs.
9678         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9679         and set REPLACE_PREAD if not.
9680         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9681
9682 2010-12-31  Eric Blake  <eblake@redhat.com>
9683
9684         nl_langinfo: fix YESEXPR on Irix 6.5
9685         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9686         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9687         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9688         it.
9689
9690 2010-12-31  Bruno Haible  <bruno@clisp.org>
9691
9692         iconv: Document HP-UX 11 bug.
9693         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9694
9695 2010-12-31  Bruno Haible  <bruno@clisp.org>
9696
9697         ldexpl: Fix link error on HP-UX 11.
9698         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9699         LDEXPL_LIBM, using $ISNANL_LIBM.
9700
9701 2010-12-31  Eric Blake  <eblake@redhat.com>
9702
9703         ftello: avoid compilation failure with SunStudio c89
9704         * lib/ftello.c (ftello): Use lseek, not llseek.
9705
9706         tests: avoid failing coreutils tests on cygwin
9707         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9708         (create_exe_shims_): Return 0 when skipping.
9709
9710 2010-12-31  Bruno Haible  <bruno@clisp.org>
9711
9712         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9713         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9714
9715 2010-12-31  Bruno Haible  <bruno@clisp.org>
9716
9717         waitpid: Fix link error in C++ mode.
9718         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9719
9720 2010-12-31  Bruno Haible  <bruno@clisp.org>
9721
9722         isnan: Use GCC built-ins when possible.
9723         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9724         __builtin_isnan.
9725         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9726         (isnan): Define using GCC built-ins for GCC >= 4.0.
9727
9728 2010-12-31  Bruno Haible  <bruno@clisp.org>
9729
9730         isnand: Fix mistake.
9731         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9732         __builtin_isnand.
9733
9734 2010-12-31  Bruno Haible  <bruno@clisp.org>
9735
9736         open: Avoid C++ error on HP-UX 11.
9737         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9738
9739 2010-12-31  Bruno Haible  <bruno@clisp.org>
9740
9741         time_r: Add missing declarations on HP-UX 11.
9742         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9743         instead of HAVE_LOCALTIME_R.
9744         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9745         HAVE_LOCALTIME_R always.
9746         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9747         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9748         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9749         HAVE_LOCALTIME_R.
9750         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9751         * doc/posix-functions/localtime_r.texi: Likewise.
9752
9753 2010-12-29  Eric Blake  <eblake@redhat.com>
9754
9755         mountlist: tweak previous commit
9756         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9757         Reported by Paul Eggert.
9758
9759         mountlist: fix local drive detection on cygwin
9760         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9761         that works for cygwin.
9762
9763 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9764
9765         ftoastr, snprintf: ftoastr + snprintf module
9766         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9767         since the snprintf module now should be good enough here.
9768         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9769         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9770         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9771         GNULIB_SNPRINTF only for the test directory, and the latter
9772         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9773         seems to suffice by itself.
9774
9775 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9776
9777         alloca: one step towards thread-safety
9778         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9779         need for a static variable.  All callers changed.  This does not
9780         make the alloca replacement thread-safe, but it's one step.
9781
9782         tests: minor indenting change
9783         * tests/init.sh: Sync from coreutils housekeeping patch
9784         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9785         to keep lines within 80 columns.
9786
9787 2010-12-28  Jim Meyering  <meyering@redhat.com>
9788
9789         regex: don't infloop on persistent failing calloc
9790         * lib/regexec.c (build_trtable): Return failure indication upon
9791         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9792         In glibc, this was fixed for version 2.13:
9793         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9794
9795 2010-12-28  Bruno Haible  <bruno@clisp.org>
9796             Paul Eggert <eggert@cs.ucla.edu>
9797
9798         linkat: Make implementation robust against system behaviour variations.
9799         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9800         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9801         way, and to -2 if it needs a generic runtime test.
9802         * lib/linkat.c (solaris_optimized_link_immediate,
9803         solaris_optimized_link_follow): New functions.
9804         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9805         (check_same_link): Use it.
9806
9807 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9808
9809         New module 'unigbrk/base'.
9810         * modules/unigbrk/base: New file.
9811         * lib/unigbrk.in.h: New file.
9812
9813         New module 'unigbrk/uc-gbrk-prop'.
9814         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9815         * modules/unigbrk/uc-gbrk-prop: New file.
9816         * lib/unigbrk/gbrkprop.h: New file.
9817         * lib/unigbrk/uc-gbrk-prop.c: New file.
9818
9819         New module 'unigbrk/uc-is-grapheme-break'.
9820         * modules/unigbrk/uc-is-grapheme-break: New file.
9821         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9822         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9823         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9824         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9825         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9826
9827         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9828
9829 2010-12-27  Bruno Haible  <bruno@clisp.org>
9830
9831         linkat test: Avoid failure on Solaris 11 2010-11.
9832         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9833
9834 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9835
9836         utimens: work around glibc rounding bug on more platforms
9837         * lib/utimens.c (fdutimens): Work around rounding bug even if
9838         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9840
9841 2010-12-27  Bruno Haible  <bruno@clisp.org>
9842
9843         select tests: Improve comments.
9844         * tests/test-select.c (do_select): Add comments.
9845
9846 2010-12-27  Bruno Haible  <bruno@clisp.org>
9847
9848         select tests: Safer way of handling timeout.
9849         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9850         at every invocation.
9851
9852 2010-12-27  Bruno Haible  <bruno@clisp.org>
9853
9854         select tests: Use 'bool' where appropriate.
9855         * tests/test-select.c (connect_to_socket): Change argument type to
9856         'bool'.
9857
9858 2010-12-27  Bruno Haible  <bruno@clisp.org>
9859
9860         select tests: Use existing modules.
9861         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9862         (configure.ac): Don't test for unistd.h.
9863         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9864         declared in <unistd.h>.
9865
9866 2010-12-27  Bruno Haible  <bruno@clisp.org>
9867
9868         mbrtowc: Work around a Solaris 7 bug.
9869         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9870         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9871         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9872         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9873         MBRTOWC_NULL_ARG1_BUG.
9874         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9875         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9876         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9877         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9878
9879 2010-12-27  Jim Meyering  <meyering@redhat.com>
9880
9881         read-file.c: tweak syntax
9882         * lib/read-file.c (fread_file): Remove space after "*" in function
9883         definitions.
9884
9885 2010-12-27  Bruno Haible  <bruno@clisp.org>
9886
9887         times test: Avoid gcc warnings on OSF/1.
9888         * tests/test-times.c (main): Cast printf arguments from clock_t to
9889         'long int'.
9890
9891 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9892
9893         utimens: work around glibc rounding bug on older Linux kernels
9894         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9895         on Linux with a glibc whose utimes might not work, then work
9896         around a longstanding glibc bug involving rounding rather than
9897         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9898         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9899
9900 2010-12-26  Bruno Haible  <bruno@clisp.org>
9901
9902         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9903         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9904         _GL_CXXALIAS_SYS.
9905         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9906
9907 2010-12-26  Bruno Haible  <bruno@clisp.org>
9908
9909         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9910         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9911         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9912         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9913         looking for the declaration.
9914         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9915         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9916         problem.
9917         * doc/posix-functions/inet_pton.texi: Likewise.
9918
9919 2010-12-26  Bruno Haible  <bruno@clisp.org>
9920
9921         arpa_inet: Use the common idioms with C++ support.
9922         * lib/arpa_inet.in.h: Include c++defs.h.
9923         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9924         support.
9925         * modules/arpa_inet (Depends-on): Add c++defs.
9926         (Makefile.am): Substitute the contents of c++defs.h.
9927         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9928         * modules/arpa_inet-c++-tests: New file.
9929         * tests/test-arpa_inet-c++.cc: New file.
9930
9931 2010-12-25  Bruno Haible  <bruno@clisp.org>
9932
9933         Fix more C++ link errors on Solaris 8.
9934         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9935         $(LIB_EACCESS).
9936         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9937         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9938         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9939         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9940         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9941
9942 2010-12-25  Bruno Haible  <bruno@clisp.org>
9943
9944         printf-posix: Fix link error when a non-GCC compiler is used.
9945         * lib/stdio.in.h (printf): When not using GCC, override printf
9946         correctly.
9947         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9948
9949 2010-12-25  Bruno Haible  <bruno@clisp.org>
9950
9951         strerror_r-posix: Update doc.
9952         * doc/posix-functions/strerror_r.texi: Update doc about the return
9953         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9954
9955 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9956
9957         utimens: simplify the logic of the previous change
9958         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9959         This should not affect whether the test succeeds or fails.
9960
9961         utimens: configure better on hosts with NFS clock skew
9962         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9963         uses the clock of the local host.  It might use the clock of the
9964         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9965         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9966
9967 2010-12-25  Bruno Haible  <bruno@clisp.org>
9968
9969         ptsname test: Avoid failure on Solaris.
9970         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9971         open a pseudo-terminal; don't use BSD-style ptys.
9972         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9973
9974 2010-12-25  Bruno Haible  <bruno@clisp.org>
9975
9976         ptsname: Avoid ERANGE failure on some systems.
9977         * lib/ptsname.c (buffer): Increase size.
9978
9979 2010-12-25  Bruno Haible  <bruno@clisp.org>
9980
9981         rename, renameat: Avoid test failures at NFS mounted locations.
9982         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9983         so that subsequent mkdir calls succeed.
9984
9985 2010-12-25  Bruno Haible  <bruno@clisp.org>
9986
9987         iswblank: Fix C++ link error on Solaris 8.
9988         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9989         _GL_FUNCDECL_SYS.
9990
9991 2010-12-25  Bruno Haible  <bruno@clisp.org>
9992
9993         unistd: Fix C++ link error on Solaris 8.
9994         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9995
9996 2010-12-25  Bruno Haible  <bruno@clisp.org>
9997
9998         readlink doc: Mention an old glibc bug.
9999         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
10000
10001 2010-12-25  Bruno Haible  <bruno@clisp.org>
10002
10003         fcntl-h: Fix for use of C++ on glibc systems.
10004         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10005         also on glibc systems in C++ mode.
10006         Reported by Gary V. Vaughan <gary@gnu.org>.
10007
10008 2010-12-25  Bruno Haible  <bruno@clisp.org>
10009
10010         roundl-ieee: Make it work on OSF/1 5.1 with cc.
10011         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
10012
10013 2010-12-25  Bruno Haible  <bruno@clisp.org>
10014
10015         truncl-ieee: Make it work on OSF/1 5.1 with cc.
10016         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
10017         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
10018         test whether truncl works according to ISO C 99 with IEC 60559.
10019         * m4/truncl-ieee.m4: New file.
10020         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
10021         m4/signbit.m4.
10022         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
10023
10024 2010-12-25  Bruno Haible  <bruno@clisp.org>
10025
10026         ceill-ieee: Make it work on OSF/1 5.1 with cc.
10027         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
10028         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
10029         test whether ceill works according to ISO C 99 with IEC 60559.
10030         * m4/ceill-ieee.m4: New file.
10031         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
10032         m4/signbit.m4.
10033         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
10034
10035 2010-12-25  Bruno Haible  <bruno@clisp.org>
10036
10037         Ensure all prerequisites of <wchar.h> are included.
10038         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
10039         before <wchar.h>.
10040         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10041         gl_MBRLEN_NUL_RETVAL): Likewise.
10042         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10043         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10044         AC_FUNC_MBRTOWC): Likewise.
10045         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10046         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10047         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10048         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10049         Likewise.
10050         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10051         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
10052         (gl_WCHAR_H): Improve comments.
10053         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10054
10055 2010-12-25  Bruno Haible  <bruno@clisp.org>
10056
10057         strtok_r: Fix C syntax error in autoconf macro.
10058         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
10059         characters in test program.
10060
10061 2010-12-24  Bruno Haible  <bruno@clisp.org>
10062
10063         ceil, trunc, round: Fix gcc warnings.
10064         * lib/ceil.c (MIN): Undefine before redefining.
10065         * lib/trunc.c (MIN): Likewise.
10066         * lib/round.c (MIN): Likewise.
10067         Include <math.h> first.
10068
10069 2010-12-24  Bruno Haible  <bruno@clisp.org>
10070
10071         select tests: Avoid failures on OSF/1 5.1.
10072         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
10073         failure of closing the last socket; it may fail with ECONNRESET.
10074
10075 2010-12-24  Eric Blake  <eblake@redhat.com>
10076
10077         stdint: avoid HP-UX 10.20 preprocessor bug
10078         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
10079         than #if.
10080         * tests/test-floor2.c (main): Likewise.
10081         Reported by Peter O'Gorman.
10082
10083         pipe: make obsoletion transition easier
10084         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
10085         * modules/pipe (Files): Include revived file.
10086         (Include): Drop reference, to mirror getdate's behavior.
10087
10088 2010-12-24  Bruno Haible  <bruno@clisp.org>
10089
10090         sys_socket: Hide mismatch of declarations on NonStop Kernel.
10091         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
10092         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10093         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10094
10095 2010-12-24  Bruno Haible  <bruno@clisp.org>
10096
10097         gethostname: Ensure declaration on NonStop Kernel.
10098         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
10099         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10100
10101 2010-12-24  Bruno Haible  <bruno@clisp.org>
10102
10103         sys_select: Ensure all necessary types on NonStop Kernel.
10104         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
10105         include <sys/time.h>.
10106         * doc/posix-headers/sys_select.texi: Mention that it's missing on
10107         NonStop Kernel.
10108         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10109
10110 2010-12-24  Bruno Haible  <bruno@clisp.org>
10111
10112         sys_select: Remove unneeded include.
10113         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
10114         have <sys/select.h>.
10115
10116 2010-12-24  Bruno Haible  <bruno@clisp.org>
10117
10118         gethostname: Provide a fallback for HOST_NAME_MAX.
10119         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
10120         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
10121         instead.
10122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10123
10124 2010-12-24  Bruno Haible  <bruno@clisp.org>
10125
10126         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
10127         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
10128         (SA_RESTART): Likewise.
10129         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10130
10131 2010-12-24  Bruno Haible  <bruno@clisp.org>
10132
10133         signal: Define NSIG.
10134         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
10135         * tests/test-signal.c (nsig): New variable.
10136         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10137
10138 2010-12-24  Bruno Haible  <bruno@clisp.org>
10139
10140         rename, renameat: Avoid test failures on OSF/1 5.1.
10141         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
10142         alternative error codes.
10143         * tests/test-renameat.c (main): Likewise.
10144
10145 2010-12-24  Bruno Haible  <bruno@clisp.org>
10146
10147         *printf: Detect large precisions bug on Solaris 10/SPARC.
10148         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
10149         by Paul Eggert.
10150         * tests/test-snprintf-posix.h (test_function): Add this test code here
10151         too.
10152         * tests/test-sprintf-posix.h (test_function): Likewise.
10153         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10154         * tests/test-vasprintf-posix.c (test_function): Likewise.
10155         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
10156         around by gnulib.
10157         * doc/posix-functions/printf.texi: Likewise.
10158         * doc/posix-functions/snprintf.texi: Likewise.
10159         * doc/posix-functions/sprintf.texi: Likewise.
10160         * doc/posix-functions/vfprintf.texi: Likewise.
10161         * doc/posix-functions/vprintf.texi: Likewise.
10162         * doc/posix-functions/vsnprintf.texi: Likewise.
10163         * doc/posix-functions/vsprintf.texi: Likewise.
10164         * doc/posix-functions/dprintf.texi: Undo last commit.
10165         * doc/posix-functions/vdprintf.texi: Likewise.
10166
10167 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10168
10169         tests: port test-fdutimensat.c to Solaris 8
10170         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
10171         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
10172         On Solaris 8, it fails with errno == ENOSYS, because there is no
10173         futimens (so it can't use the fd), and there is no lutimens (so it
10174         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
10175
10176         vsnprintf: make more consistent with snprintf; doc fixes
10177
10178         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
10179         the byte count return problem was promoted from the snprintf-posix
10180         to the snprintf module.
10181         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10182         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10183         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
10184         * tests/test-snprintf.c (main): Check the byte count returned.
10185         * tests/test-vsnprintf.c (main): Likewise.
10186
10187 2010-12-23  Eric Blake  <eblake@redhat.com>
10188
10189         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
10190         * modules/sigpipe (License): Relax license.
10191
10192 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10193
10194         doc: document Solaris printf bug with large float precisions
10195         * doc/posix-functions/dprintf.texi (dprintf):
10196         * doc/posix-functions/fprintf.texi (fprintf):
10197         * doc/posix-functions/printf.texi (printf):
10198         * doc/posix-functions/snprintf.texi (snprintf):
10199         * doc/posix-functions/sprintf.texi (sprintf):
10200         * doc/posix-functions/vdprintf.texi (vdprintf):
10201         * doc/posix-functions/vfprintf.texi (vfprintf):
10202         * doc/posix-functions/vprintf.texi (vprintf):
10203         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10204         * doc/posix-functions/vsprintf.texi (vsprintf):
10205         Mention that these functions mishandle large floating point
10206         precisions on Solaris 10.  The same bug is also present in Solaris
10207         8, and I assume earlier.  This causes "cd gnulib-tests; make
10208         check" to fail on Solaris 8 (and I assume, later) when building
10209         the latest coreutils, in test-vasprintf-posix's call to
10210         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
10211         the wide flavors (e.g., wprintf) so this patch just updates the
10212         documentation for the narrow ones.
10213
10214         test-posixtm.c: add two tests
10215         * tests/test-posixtm.c: Add two tests, to highlight the
10216         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
10217         around this bug; this is merely to document it.
10218
10219 2010-12-22  Bruno Haible  <bruno@clisp.org>
10220
10221         getlogin_r: Work around portability problem on OSF/1.
10222         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
10223         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
10224         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
10225         test for a truncated result.
10226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
10227         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
10228         * modules/getlogin_r (Depends-on): Add memchr.
10229         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
10230
10231 2010-12-22  Bruno Haible  <bruno@clisp.org>
10232
10233         ptsname: Avoid test failure on OSF/1 5.1.
10234         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
10235         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
10236         (same_slave): New function.
10237         (main): Use it to compare ptsname's result with the expected file name.
10238
10239 2010-12-22  Bruno Haible  <bruno@clisp.org>
10240
10241         Port extended stdio modules to HP NonStop Kernel.
10242         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
10243         macros.
10244         * lib/fbufmode.c: Update comments.
10245         * lib/fflush.c: Likewise.
10246         * lib/fpurge.c: Likewise.
10247         * lib/freadable.c: Likewise.
10248         * lib/freadahead.c: Likewise.
10249         * lib/freading.c: Likewise.
10250         * lib/freadptr.c: Likewise.
10251         * lib/freadseek.c: Likewise.
10252         * lib/fseeko.c: Likewise.
10253         * lib/fseterr.c: Likewise.
10254         * lib/fwritable.c: Likewise.
10255         * lib/fwriting.c: Likewise.
10256         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10257
10258 2010-12-22  Bruno Haible  <bruno@clisp.org>
10259
10260         ttyname_r: Work around bug on OSF/1 5.1.
10261         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
10262         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
10263         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
10264         present.
10265         * lib/ttyname_r.c (ttyname_r): Update comments.
10266
10267 2010-12-22  Bruno Haible  <bruno@clisp.org>
10268
10269         round: Implement result sign according to IEEE 754.
10270         * lib/round.c (MIN, MINUS_ZERO): New macros.
10271         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
10272         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
10273         * tests/test-round-ieee.c (main): Likewise.
10274         * tests/test-roundl-ieee.c (main): Likewise.
10275
10276         trunc: Implement result sign according to IEEE 754.
10277         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
10278         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
10279         * tests/test-trunc2.c: Include minus-zero.h.
10280         (MINUS_ZERO): New macro.
10281         (trunc_reference): Keep in sync with lib/trunc.c.
10282         * tests/test-truncf2.c: Include minus-zero.h.
10283         (MINUS_ZERO): New macro.
10284         (truncf_reference): Keep in sync with lib/trunc.c.
10285         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
10286         * tests/test-trunc-ieee.c (main): Likewise.
10287         * tests/test-truncl-ieee.c (main): Likewise.
10288
10289         ceil: Implement result sign according to IEEE 754.
10290         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
10291         (FUNC): Return -0.0 for -1 < x < 0.
10292         * tests/test-ceil2.c: Include minus-zero.h.
10293         (MINUS_ZERO): New macro.
10294         (ceil_reference): Keep in sync with lib/ceil.c.
10295         * tests/test-ceilf2.c: Include minus-zero.h.
10296         (MINUS_ZERO): New macro.
10297         (ceilf_reference): Keep in sync with lib/ceil.c.
10298         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
10299         * tests/test-ceil-ieee.c (main): Likewise.
10300         * tests/test-ceill-ieee.c (main): Likewise.
10301
10302         floor: Implement result sign according to IEEE 754.
10303         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
10304         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
10305         * tests/test-floorf2.c (floorf_reference): Likewise.
10306         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
10307         * tests/test-floor-ieee.c (main): Likewise.
10308         * tests/test-floorl-ieee.c (main): Likewise.
10309
10310 2010-12-22  Bruno Haible  <bruno@clisp.org>
10311
10312         getaddrinfo: Update doc.
10313         * doc/posix-functions/gai_strerror.texi: Return type is also different
10314         on AIX and HP-UX.
10315
10316 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10317
10318         getaddrinfo, inet_ntop: Update doc for Solaris.
10319         * doc/posix-functions/gai_strerror.texi: Return type is also an
10320         issue on Solaris 9 and earlier.
10321         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
10322         on Solaris 10 and earlier.
10323
10324 2010-12-21  Bruno Haible  <bruno@clisp.org>
10325
10326         New module 'roundl-ieee'.
10327         * modules/roundl-ieee: New file.
10328         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10329         test whether roundl works according to ISO C 99 with IEC 60559.
10330         * m4/roundl-ieee.m4: New file.
10331         * modules/roundl-ieee-tests: New file.
10332         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10333         * tests/test-roundl.c (main): Remove signbit tests.
10334         * modules/roundl-tests (Depends-on): Remove signbit.
10335         * doc/posix-functions/roundl.texi: Mention the new module.
10336
10337 2010-12-21  Bruno Haible  <bruno@clisp.org>
10338
10339         New module 'truncl-ieee'.
10340         * modules/truncl-ieee: New file.
10341         * modules/truncl-ieee-tests: New file.
10342         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10343         * tests/test-truncl.c (main): Remove signbit tests.
10344         * modules/truncl-tests (Depends-on): Remove signbit.
10345         * doc/posix-functions/truncl.texi: Mention the new module.
10346
10347 2010-12-21  Bruno Haible  <bruno@clisp.org>
10348
10349         New module 'ceill-ieee'.
10350         * modules/ceill-ieee: New file.
10351         * modules/ceill-ieee-tests: New file.
10352         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10353         * tests/test-ceill.c (main): Remove signbit tests.
10354         * modules/ceill-tests (Depends-on): Remove signbit.
10355         * doc/posix-functions/ceill.texi: Mention the new module.
10356
10357 2010-12-21  Bruno Haible  <bruno@clisp.org>
10358
10359         New module 'floorl-ieee'.
10360         * modules/floorl-ieee: New file.
10361         * modules/floorl-ieee-tests: New file.
10362         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10363         * tests/test-floorl.c (main): Remove signbit tests.
10364         * modules/floorl-tests (Depends-on): Remove signbit.
10365         * doc/posix-functions/floorl.texi: Mention the new module.
10366
10367 2010-12-21  Bruno Haible  <bruno@clisp.org>
10368
10369         New module 'round-ieee'.
10370         * modules/round-ieee: New file.
10371         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10372         whether round works according to ISO C 99 with IEC 60559.
10373         * m4/round-ieee.m4: New file.
10374         * modules/round-ieee-tests: New file.
10375         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10376         * tests/test-round1.c (main): Remove signbit tests.
10377         * modules/round-tests (Depends-on): Remove 'signbit'.
10378         * doc/posix-functions/round.texi: Mention the new module.
10379
10380 2010-12-21  Bruno Haible  <bruno@clisp.org>
10381
10382         New module 'trunc-ieee'.
10383         * modules/trunc-ieee: New file.
10384         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10385         whether trunc works according to ISO C 99 with IEC 60559.
10386         * m4/trunc-ieee.m4: New file.
10387         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10389         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10390         * modules/trunc-ieee-tests: New file.
10391         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10392         * tests/test-trunc1.c (main): Remove signbit tests.
10393         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10394         * doc/posix-functions/trunc.texi: Mention the new module.
10395
10396 2010-12-21  Bruno Haible  <bruno@clisp.org>
10397
10398         New module 'ceil-ieee'.
10399         * modules/ceil-ieee: New file.
10400         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10401         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10402         ISO C 99 with IEC 60559.
10403         * m4/ceil-ieee.m4: New file.
10404         * modules/ceil (Files): Add lib/ceil.c.
10405         (Depends-on): Add 'float'.
10406         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10407         * lib/math.in.h (ceil): New declaration.
10408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10409         REPLACE_CEIL.
10410         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10411         * modules/ceil-ieee-tests: New file.
10412         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10413         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10414         * doc/posix-functions/ceil.texi: Mention the new module.
10415
10416 2010-12-21  Bruno Haible  <bruno@clisp.org>
10417
10418         New module 'floor-ieee'.
10419         * modules/floor-ieee: New file.
10420         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10421         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10422         ISO C 99 with IEC 60559.
10423         * m4/floor-ieee.m4: New file.
10424         * modules/floor (Files): Add lib/floor.c.
10425         (Depends-on): Add 'float'.
10426         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10427         * lib/math.in.h (floor): New declaration.
10428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10429         REPLACE_FLOOR.
10430         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10431         * modules/floor-ieee-tests: New file.
10432         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10433         * tests/test-math-c++.cc: Check the signature of 'floor'.
10434         * doc/posix-functions/floor.texi: Mention the new module.
10435
10436 2010-12-21  Bruno Haible  <bruno@clisp.org>
10437
10438         New module 'roundf-ieee'.
10439         * modules/roundf-ieee: New file.
10440         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10441         test whether roundf works according to ISO C 99 with IEC 60559.
10442         * m4/roundf-ieee.m4: New file.
10443         * modules/roundf-ieee-tests: New file.
10444         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10445         * tests/test-roundf1.c (main): Remove signbit tests.
10446         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10447         * doc/posix-functions/roundf.texi: Mention the new module.
10448
10449 2010-12-21  Bruno Haible  <bruno@clisp.org>
10450
10451         New module 'truncf-ieee'.
10452         * modules/truncf-ieee: New file.
10453         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10454         test whether truncf works according to ISO C 99 with IEC 60559.
10455         * m4/truncf-ieee.m4: New file.
10456         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10458         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10459         * modules/truncf-ieee-tests: New file.
10460         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10461         * tests/test-truncf1.c (main): Remove signbit tests.
10462         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10463         * doc/posix-functions/truncf.texi: Mention the new module.
10464
10465 2010-12-21  Bruno Haible  <bruno@clisp.org>
10466
10467         New module 'ceilf-ieee'.
10468         * modules/ceilf-ieee: New file.
10469         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10470         test whether ceilf works according to ISO C 99 with IEC 60559.
10471         * m4/ceilf-ieee.m4: New file.
10472         * modules/ceilf-ieee-tests: New file.
10473         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10474         * tests/test-ceilf1.c (main): Remove signbit tests.
10475         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10476         * doc/posix-functions/ceilf.texi: Mention the new module.
10477
10478 2010-12-21  Bruno Haible  <bruno@clisp.org>
10479
10480         New module 'floorf-ieee'.
10481         * modules/floorf-ieee: New file.
10482         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10483         test whether floorf works according to ISO C 99 with IEC 60559.
10484         * m4/floorf-ieee.m4: New file.
10485         * modules/floorf-ieee-tests: New file.
10486         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10487         * tests/test-floorf1.c (main): Remove signbit tests.
10488         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10489         * doc/posix-functions/floorf.texi: Mention the new module.
10490
10491 2010-12-21  Bruno Haible  <bruno@clisp.org>
10492
10493         Support for minus zero in autoconf macros.
10494         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10495         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10496         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10497         * tests/minus-zero.h: Update comments.
10498
10499 2010-12-21  Bruno Haible  <bruno@clisp.org>
10500
10501         Tests for module 'ceil'.
10502         * modules/ceil-tests: New file.
10503         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10504         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10505
10506 2010-12-21  Bruno Haible  <bruno@clisp.org>
10507
10508         Tests for module 'floor'.
10509         * modules/floor-tests: New file.
10510         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10511         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10512
10513 2010-12-21  Bruno Haible  <bruno@clisp.org>
10514
10515         math: Fix indentation.
10516         * lib/math.in.h (floorf): Fix indentation.
10517
10518 2010-12-21  Bruno Haible  <bruno@clisp.org>
10519
10520         Fix cross-compilation guesses on Solaris.
10521         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10522         not match "solaris2.10".
10523         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10524         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10525         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10526
10527 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10530         This fixes a problem observed with the latest coreutils snapshot
10531         that caused a test to fail on Solaris 8.  src/csplit.c's call
10532         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10533         earlier, instead of returning the number of bytes that would have
10534         been generated; this causes csplit to incorrectly report memory
10535         exhaustion.
10536         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10537         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10538         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10539         comments to match.
10540         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10541         Fix typo in matching older versions of Solaris: "solaris2.10"
10542         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10543         only for guessing while cross-compiling.
10544         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10545
10546 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10547
10548         ftoastr: fix comment again
10549         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10551         Also, simplify example a bit by using flags = 0.
10552
10553 2010-12-20  Bruno Haible  <bruno@clisp.org>
10554
10555         round*, trunc*: Update documentation regarding glibc.
10556         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10557         * doc/posix-functions/round.texi: Likewise.
10558         * doc/posix-functions/roundl.texi: Likewise.
10559         * doc/posix-functions/truncf.texi: Likewise.
10560         * doc/posix-functions/trunc.texi: Likewise.
10561         * doc/posix-functions/truncl.texi: Likewise.
10562
10563 2010-12-20  Bruno Haible  <bruno@clisp.org>
10564
10565         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10566         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10567         * doc/posix-functions/round.texi: Likewise.
10568         * doc/posix-functions/roundl.texi: Likewise.
10569
10570 2010-12-20  Bruno Haible  <bruno@clisp.org>
10571
10572         ttyname_r: Add missing declaration on HP-UX 11.
10573         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10574         HAVE_TTYNAME_R.
10575         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10576         declared. Set HAVE_TTYNAME_R always.
10577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10578         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10579         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10580         HAVE_TTYNAME_R.
10581         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10582
10583 2010-12-20  Bruno Haible  <bruno@clisp.org>
10584
10585         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10586         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10587         * doc/posix-functions/getlogin_r.texi: Likewise.
10588         * tests/test-getlogin.c: Include <errno.h>.
10589         (main): Avoid test failure on HP-UX 11.11.
10590         * tests/test-getlogin_r.c (main): Likewise.
10591
10592 2010-12-20  Bruno Haible  <bruno@clisp.org>
10593
10594         getlogin_r: Add missing declaration on HP-UX 11.
10595         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10596         declared also when it exists as a function.
10597         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10598
10599 2010-12-20  Bruno Haible  <bruno@clisp.org>
10600
10601         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10602         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10603         through wcrtomb.
10604
10605 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10606
10607         ftoastr: fix comment
10608         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10610
10611 2010-12-19  Bruno Haible  <bruno@clisp.org>
10612
10613         isnan: Ensure it is a macro.
10614         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10615         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10616         Solaris.
10617
10618 2010-12-19  Bruno Haible  <bruno@clisp.org>
10619
10620         ldexpl test: Fix link error on OSF/1 5.1.
10621         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10622
10623 2010-12-19  Bruno Haible  <bruno@clisp.org>
10624
10625         wctype: Make it work in C++ mode on OSF/1 5.1.
10626         * lib/wctype.in.h (iswblank): Declare but not define here.
10627         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10628         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10629         * modules/wctype (Files): Add lib/iswblank.c.
10630
10631 2010-12-19  Bruno Haible  <bruno@clisp.org>
10632
10633         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10634         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10635         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10636
10637 2010-12-19  Bruno Haible  <bruno@clisp.org>
10638
10639         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10641         _POSIX_PII_SOCKET.
10642         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10643         * doc/posix-functions/recvfrom.texi: Likewise.
10644         * doc/posix-functions/send.texi: Likewise.
10645         * doc/posix-functions/sendto.texi: Likewise.
10646
10647 2010-12-19  Bruno Haible  <bruno@clisp.org>
10648
10649         tcgetsid: Add missing declaration on OSF/1 5.1.
10650         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10651         HAVE_TCGETSID.
10652         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10653         Don't set HAVE_TCGETSID.
10654         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10655         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10656         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10657         HAVE_TCGETSID.
10658         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10659
10660 2010-12-19  Bruno Haible  <bruno@clisp.org>
10661
10662         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10663         * lib/stdio.in.h: During the include_next statement, let recursive
10664         includes of this file include only the system header file.
10665
10666 2010-12-19  Bruno Haible  <bruno@clisp.org>
10667
10668         iconv_open: Fix regression from 2010-12-04.
10669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10670         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10671
10672 2010-12-19  Bruno Haible  <bruno@clisp.org>
10673
10674         stdbool test: Avoid a gcc warning.
10675         * tests/test-stdbool.c (main): Fail if e1 is false.
10676         Reported by Jim Meyering.
10677
10678 2010-12-19  Jim Meyering  <meyering@redhat.com>
10679
10680         setenv: restore to working order
10681         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10682         mistakenly removed.
10683         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10684         HAVE_SETENV.
10685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10686         HAVE_SETENV.
10687
10688 2010-12-19  Bruno Haible  <bruno@clisp.org>
10689
10690         Document some different function declarations on OSF/1 5.1.
10691         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10692         * doc/posix-functions/inet_ntop.texi: Likewise.
10693         * doc/posix-functions/gethostname.texi: Likewise.
10694         * lib/unistd.in.h (gethostname): Update comment.
10695
10696 2010-12-19  Bruno Haible  <bruno@clisp.org>
10697
10698         doc: Mention vasprintf-posix module.
10699         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10700         the 'vasprintf-posix' module.
10701         * doc/glibc-functions/vasprintf.texi: Likewise.
10702
10703 2010-12-19  Bruno Haible  <bruno@clisp.org>
10704
10705         unsetenv: Add missing declaration on OSF/1 5.1.
10706         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10707         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10708         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10710         not HAVE_UNSETENV.
10711         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10712         HAVE_UNSETENV.
10713         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10714
10715 2010-12-19  Bruno Haible  <bruno@clisp.org>
10716
10717         setenv: Add missing declaration on OSF/1 5.1.
10718         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10719         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10720         declared. Don't set HAVE_SETENV.
10721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10722         not HAVE_SETENV.
10723         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10724         HAVE_SETENV.
10725         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10726
10727 2010-12-19  Bruno Haible  <bruno@clisp.org>
10728
10729         nl_langinfo tests: Avoid gcc warning.
10730         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10731
10732 2010-12-19  Bruno Haible  <bruno@clisp.org>
10733
10734         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10735         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10736         _GL_CXXALIAS_SYS.
10737
10738 2010-12-19  Bruno Haible  <bruno@clisp.org>
10739
10740         stdbool: Relax test.
10741         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10742         address to 'bool' work in static initializer, for compilers other than
10743         GCC.
10744
10745 2010-12-19  Bruno Haible  <bruno@clisp.org>
10746
10747         ftello: Add missing declaration on OSF/1 5.1.
10748         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10749         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10751         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10752         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10753
10754 2010-12-19  Bruno Haible  <bruno@clisp.org>
10755
10756         fseeko: Add missing declaration on OSF/1 5.1.
10757         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10758         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10760         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10761         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10762
10763 2010-12-19  Bruno Haible  <bruno@clisp.org>
10764
10765         fchdir: Add missing declaration on OSF/1 5.1.
10766         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10767         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10769         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10770         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10771
10772 2010-12-19  Bruno Haible  <bruno@clisp.org>
10773
10774         relocatable-prog-wrapper: Separate from relocatable-prog.
10775         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10776         uninstall-relocwrapper rule here.
10777         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10778         Reported by Ian Beckwith <ianb@erislabs.net>.
10779
10780 2010-12-19  Bruno Haible  <bruno@clisp.org>
10781
10782         unistr/u8-mbsnlen: Add missing dependency.
10783         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10784         Reported by Ian Beckwith <ianb@erislabs.net>.
10785
10786 2010-12-19  Bruno Haible  <bruno@clisp.org>
10787
10788         iconv: Make it possible again to use this module without 'iconv-h'.
10789         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10790         if it is not defined.
10791         Reported by Ian Beckwith <ianb@erislabs.net>.
10792
10793 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10794
10795         acl: port to Solaris 8 when copying from tmpfs to ufs
10796         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10797         error number.  Problem observed on Solaris 8 with latest
10798         coreutils, with "mv A B", where A is on a tmpfs file system and B
10799         is on a ufs file system.  This caused coreutils' mv/part-symlink
10800         test to fail.
10801
10802         tests: set fail=0 at start
10803         * tests/init.sh (setup_): Move fail=0 initialization here ...
10804         (mktempd_): ... from here, so that tests can rely on fail being
10805         set to 0 initially.  This fixes a problem in coreutils; see:
10806         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10807
10808 2010-12-18  Bruno Haible  <bruno@clisp.org>
10809
10810         memmem-simple: Stylistic changes.
10811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10812         Fix preprocessor directive indentation.
10813
10814 2010-12-15  Pádraig Brady <P@draigBrady.com>
10815
10816         memmem, memmem-simple: reorganize and expand empty needle check
10817         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10818         functional checks to memmem-simple so that one has a fully functional
10819         memmem by using just this module.
10820         Restrict the performance only check to the memmem module.
10821         Also expand the empty needle check to ensure the correct
10822         pointer is returned, not just a non NULL pointer.
10823         * doc/glibc-functions/memmem.texi: Rearrange the portability
10824         documentation to correlate with the rearranged checks.
10825         Clarify exactly how the memmem and memmem-simple modules
10826         relate to each other.
10827
10828 2010-12-15  Pádraig Brady <P@draigBrady.com>
10829             Bruno Haible  <bruno@clisp.org>
10830
10831         Improve cross-compilation guesses for uClibc.
10832         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10833         that uClibc does not have the glibc bug.
10834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10835         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10836
10837 2010-12-14  Eric Blake  <eblake@redhat.com>
10838
10839         configmake: provide fallbacks for oldest supported autotools
10840         * m4/configmake.m4: New file.
10841         * modules/configmake (Files): Ship it.
10842         (configure.ac): Use it to guarantee fallbacks.
10843
10844 2010-12-13  Pádraig Brady <P@draigBrady.com>
10845
10846         read-file: Improve handling of large files
10847         * lib/read-file.c (fread_file): Minimize realloc()s
10848         for regular files, and better manage sizes around SIZE_MAX.
10849
10850 2010-12-13  Eric Blake  <eblake@redhat.com>
10851
10852         cloexec, fcntl: relax license
10853         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10854         consent from all contributors.
10855         * modules/fcntl (License): Likewise.
10856
10857 2010-12-10  Bruno Haible  <bruno@clisp.org>
10858
10859         Tests for module 'pipe-posix'.
10860         * modules/pipe-posix-tests: New file.
10861         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10862
10863 2010-12-10  Bruno Haible  <bruno@clisp.org>
10864
10865         pipe-posix: Make it work in C++ mode.
10866         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10867         (pipe): Use common idiom, not a macro definition.
10868         * lib/pipe.c: New file.
10869         * m4/pipe.m4: New file.
10870         * modules/pipe-posix (Description): Enhance.
10871         (Files): Add lib/pipe.c, m4/pipe.m4.
10872         (configure.ac): Invoke gl_FUNC_PIPE.
10873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10874         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10875         * tests/test-unistd-c++.cc: Check the signature of pipe.
10876
10877 2010-12-10  Bruno Haible  <bruno@clisp.org>
10878
10879         Rename module 'pipe' to 'spawn-pipe'.
10880         * modules/spawn-pipe: New file, renamed from modules/pipe.
10881         (Files, configure.ac, Makefile.am): Update.
10882         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10883         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10884         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10885         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10886         "spawn-pipe.h" instead of "pipe.h".
10887         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10888         to gl_SPAWN_PIPE.
10889         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10890         (Files, Makefile.am): Update.
10891         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10892         Update.
10893         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10894         Include "spawn-pipe.h" instead of "pipe.h".
10895         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10896         * lib/javacomp.c: Likewise.
10897         * lib/javaversion.c: Likewise.
10898         * lib/pipe-filter-gi.c: Likewise.
10899         * lib/pipe-filter-ii.c: Likewise.
10900         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10901         * modules/javacomp (Depends-on): Likewise.
10902         * modules/javaversion (Depends-on): Likewise.
10903         * modules/pipe-filter-gi (Depends-on): Likewise.
10904         * modules/pipe-filter-ii (Depends-on): Likewise.
10905         * MODULES.html.sh (Executing programs): Update.
10906         * NEWS: Mention the change.
10907
10908 2010-12-10  Eric Blake  <eblake@redhat.com>
10909
10910         pipe-posix: new module
10911         * modules/pipe-posix: New file.
10912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10913         (gl_UNISTD_H): Check for declaration.
10914         * modules/unistd (Makefile.am): Substitute it.
10915         * lib/unistd.in.h (pipe): Provide it for mingw.
10916         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10917         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10918
10919 2010-12-07  Bruno Haible  <bruno@clisp.org>
10920
10921         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10922         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10923         u8_strcmp_gnu.
10924         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10925
10926 2010-12-06  Bruno Haible  <bruno@clisp.org>
10927
10928         Update internal documentation.
10929         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10930
10931 2010-12-04  Bruno Haible  <bruno@clisp.org>
10932
10933         Put more information about failed tests into the test return codes.
10934         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10935         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10936         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10937         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10938         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10939         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10940         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10941         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10942         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10944         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10945         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10946         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10947         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10948         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10949         returns a bit mask.
10950         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10951         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10952         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10953         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10954         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10955         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10956         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10958         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10959         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10960         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10961         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10962         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10963         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10964         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10965         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10966         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10967         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10968         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10969         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10970         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10971         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10972         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10973         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10974         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10975         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10976         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10977         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10978         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10979         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10980         gl_PRINTF_PRECISION): Likewise.
10981         * m4/regex.m4 (gl_REGEX): Likewise.
10982         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10983         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10984         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10985         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10987         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10989         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10990         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10991         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10992         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10993         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10994         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10995         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10996         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10997         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10998         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10999         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11000         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11001         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
11002         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
11003         enumerated value.
11004         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
11005
11006 2010-12-04  Bruno Haible  <bruno@clisp.org>
11007
11008         Update for Solaris 11 2010-11.
11009         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
11010         Express, released in November 2010.
11011
11012 2010-12-04  Bruno Haible  <bruno@clisp.org>
11013
11014         nproc: Relax license.
11015         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
11016         and Paul Eggert.
11017         Requested by Ludovic Courtès <ludo@gnu.org>.
11018
11019 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11020
11021         utimecmp: fine-grained src to nearby coarse-grained dest
11022
11023         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
11024         and the source is on a file system with higher-resolution time
11025         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
11026         not work, and the time stamps are close together, the algorithm to
11027         determine the exact resolution from the read-back mtime was buggy:
11028         it had a "!=" where it should have had an "==".  This bug has been
11029         in the code ever since it was introduced to gnulib.
11030         Problem reported by Dan Jacobson in
11031         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
11032
11033 2010-11-30  Bruno Haible  <bruno@clisp.org>
11034
11035         strerror_r-posix: Fix autoconf test.
11036         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
11037
11038 2010-11-28  Bruno Haible  <bruno@clisp.org>
11039             Paul Eggert  <eggert@cs.ucla.edu>
11040
11041         Tests for module 'getdomainname'.
11042         * modules/getdomainname-tests: New file.
11043         * tests/test-getdomainname.c: New file, based on
11044         tests/test-gethostname.c.
11045
11046 2010-11-28  Bruno Haible  <bruno@clisp.org>
11047             Paul Eggert  <eggert@cs.ucla.edu>
11048
11049         getdomainname: Use the system function when possible.
11050         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
11051         (getdomainname): Replace if needed. Provide the declaration if it is
11052         missing. Don't use _GL_CXXALIAS_SYS_CAST.
11053         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
11054         (getdomainname): When the system has getdomainname, call the system
11055         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
11056         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11057         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
11058         found in libnsl. Look for the declaration also in <netdb.h>. Replace
11059         the function if its second argument is of type 'int' or if it is found
11060         in libnsl.
11061         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
11062         <sys/systeminfo.h> and sysinfo().
11063         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
11064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11065         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
11066         HAVE_GETDOMAINNAME.
11067         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
11068         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
11069         * doc/glibc-functions/getdomainname.texi: Document the problems with
11070         the getdomainname declaration.
11071
11072 2010-11-28  Bruno Haible  <bruno@clisp.org>
11073
11074         sys_socket: Ensure ss_family field on AIX.
11075         * lib/sys_socket.in.h (ss_family): New macro definition.
11076         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
11077         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
11078         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11079         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11080         * modules/sys_socket (Makefile.am): Substitute
11081         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11082         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
11083
11084 2010-11-27  Bruno Haible  <bruno@clisp.org>
11085
11086         readline: Improve configure output.
11087         * m4/readline.m4 (gl_FUNC_READLINE): Make the
11088         "checking for readline..." result understandable.
11089
11090 2010-11-27  Bruno Haible  <bruno@clisp.org>
11091
11092         *printf-posix: Detect a bug on Solaris 10/x86.
11093         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
11094         for floating-point output.
11095         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
11096         directive.
11097         * tests/test-snprintf-posix.h (test_function): Likewise.
11098         * tests/test-sprintf-posix.h (test_function): Likewise.
11099         * tests/test-vasprintf-posix.c (test_function): Likewise.
11100         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
11101         * doc/posix-functions/printf.texi: Likewise.
11102         * doc/posix-functions/snprintf.texi: Likewise.
11103         * doc/posix-functions/sprintf.texi: Likewise.
11104         * doc/posix-functions/vfprintf.texi: Likewise.
11105         * doc/posix-functions/vprintf.texi: Likewise.
11106         * doc/posix-functions/vsnprintf.texi: Likewise.
11107         * doc/posix-functions/vsprintf.texi: Likewise.
11108         * doc/glibc-functions/obstack_printf.texi: Likewise.
11109         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11110
11111 2010-11-27  Bruno Haible  <bruno@clisp.org>
11112
11113         Fix link error when module libunistring-optional is in use.
11114         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
11115         * modules/striconveha-tests (Makefile.am): Likewise.
11116
11117 2010-11-27  Bruno Haible  <bruno@clisp.org>
11118
11119         regex: Mention link dependencies.
11120         * modules/regex (Link): New section.
11121         * modules/rpmatch (Link): Likewise.
11122         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
11123
11124 2010-11-27  Bruno Haible  <bruno@clisp.org>
11125
11126         ftoastr: Fix compilation error on Solaris.
11127         * lib/ftoastr.c: Include <config.h>.
11128
11129 2010-11-27  Bruno Haible  <bruno@clisp.org>
11130
11131         getloadavg: Update documentation.
11132         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
11133
11134 2010-11-27  Bruno Haible  <bruno@clisp.org>
11135
11136         sys_socket: Fix test whether the functions are declared.
11137         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
11138         not <sys/select.h>.
11139
11140 2010-11-27  Bruno Haible  <bruno@clisp.org>
11141
11142         getpass: Make sure to get system declaration on some platforms.
11143         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
11144         gl_USE_SYSTEM_EXTENSIONS.
11145         * modules/getpass (Depends-on): Add extensions.
11146
11147 2010-11-26  Bruno Haible  <bruno@clisp.org>
11148
11149         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
11150         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
11151         'iconv' module is present.
11152         (ICONV_CONST): New macro.
11153         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
11154         ICONV_CONST.
11155         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
11156         set ICONV_CONST.
11157         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
11158         here.
11159         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
11160         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
11161         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
11162         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
11163         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
11164         present.
11165
11166 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11167
11168         ftoastr: comment fix
11169         * lib/ftoastr.c: "little" -> "little or no" in comment
11170
11171 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
11172
11173         stdint: port to GCC 4.3 + OSX + Octave
11174         On this platform, stdint.h is buggy and defines int64_t to long
11175         long int.  The replacement defined it to long int, causing
11176         problems with C++ style name mangling.  Instead, trust the system
11177         definition if INT64_MAX is defined, and likewise for the unsigned
11178         variant.   Problem reported by Jarno Rajahalme in
11179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
11180         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
11181         and don't mess with int64_t and INT64_MAX in this case.
11182         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
11183
11184 2010-11-24  Bruno Haible  <bruno@clisp.org>
11185
11186         doc: Corrections regarding MacOS X 10.4 and 10.5.
11187         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
11188         MacOS X.
11189         Reported by Simon Josefsson.
11190
11191 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
11192
11193         Uninstall ".bin" files installed by relocwrapper.
11194         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
11195         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
11196         unless it is already there.
11197
11198 2010-11-21  Bruno Haible  <bruno@clisp.org>
11199
11200         Update for NetBSD 5.0.
11201         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11202         NetBSD; the test fails on NetBSD 5.0.
11203         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11204         about NetBSD.
11205
11206 2010-11-21  Bruno Haible  <bruno@clisp.org>
11207
11208         Update for HP-UX 11.23 and HP-UX 11.31.
11209         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
11210         HP-UX.
11211
11212 2010-11-21  Bruno Haible  <bruno@clisp.org>
11213
11214         Update for MacOS X 10.5.
11215         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11216         MacOS X; the test fails on MacOS X 10.5.8.
11217         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11218         about MacOS X.
11219
11220 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
11221
11222         bootstrap: add bootstrap_sync option.
11223         See discussion at
11224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
11225         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
11226         * build-aux/bootstrap: Accept --bootstrap-sync to update
11227         bootstrap if it is not identical to the local gnulib's
11228         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
11229         enable this by default.  Accept --no-bootstrap-sync to disable
11230         it.
11231
11232 2010-11-20  Bruno Haible  <bruno@clisp.org>
11233
11234         Ensure that <features.h> is included before __GLIBC__ is tested.
11235         * lib/printf-parse.h: Include <features.h>.
11236         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
11237         Reported by Mike Frysinger <vapier@gentoo.org>.
11238
11239         Ensure that <features.h> is included before __GLIBC__ is tested.
11240         * lib/wchar.in.h: Include <features.h>.
11241         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
11242         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
11243         Reported by Mike Frysinger <vapier@gentoo.org>.
11244
11245         Ensure that <features.h> is included before __GLIBC__ is tested.
11246         * lib/arpa_inet.in.h: Include <features.h>.
11247         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
11248         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
11249         Reported by Mike Frysinger <vapier@gentoo.org>.
11250
11251         Ensure that <features.h> is included before __GLIBC__ is tested.
11252         * build-aux/link-warning.h: Include <features.h>.
11253         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
11254         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
11255         Reported by Mike Frysinger <vapier@gentoo.org>.
11256
11257         Ensure that <features.h> is included before __GLIBC__ is tested.
11258         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
11259         Reported by Mike Frysinger <vapier@gentoo.org>.
11260
11261 2010-11-20  Bruno Haible  <bruno@clisp.org>
11262
11263         memmem: Fix autoconf test.
11264         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
11265
11266 2010-11-20  Bruno Haible  <bruno@clisp.org>
11267
11268         Port to uClibc.
11269         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
11270         * lib/fcntl.in.h: Likewise.
11271         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
11272         * lib/mbrtowc.c (mbrtowc): Likewise.
11273         * lib/relocatable.c (find_shared_library_fullname): Likewise.
11274         * lib/strerror_r.c: Likewise.
11275         * lib/unistr/u8-strnlen.c: Likewise.
11276         * lib/vasnprintf.c (decimal_point_char): Likewise.
11277         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11278         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11279         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11280         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11281         * tests/test-sigaction.c (handler, main): Likewise.
11282         * lib/freading.h: Treat uClibc like a non-glibc platform.
11283         * lib/freading.c: Likewise.
11284         * lib/gettext.h: Likewise.
11285         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
11286         Likewise.
11287         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
11288         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11289         * lib/propername.c (proper_name_utf8): Likewise.
11290         * lib/spawn.in.h: Likewise.
11291         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
11292         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
11293         mem_cd_iconveh_internal): Likewise.
11294         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
11295         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11296         strstr, strcasestr): Likewise.
11297         * lib/unicodeio.c (unicode_to_mb): Likewise.
11298         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
11299         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
11300         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
11301         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
11302         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
11303         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
11304         * lib/unistr/u8-stpncpy.c: Likewise.
11305         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11306         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
11307         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11308         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11309         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11310         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
11311         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
11312         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
11313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11314         Likewise.
11315         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11316         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11317         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11320         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11321         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11322         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11323         * tests/test-getopt.h (OPTIND_MIN): Likewise.
11324         * tests/test-striconveha.c (main): Likewise.
11325         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11326         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
11327         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
11328         * doc/posix-functions/getline.texi: Likewise.
11329         Reported by Mike Frysinger <vapier@gentoo.org>.
11330
11331 2010-11-20  Bruno Haible  <bruno@clisp.org>
11332
11333         nproc: Fix condition.
11334         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11335         HAVE_PTHREAD_AFFINITY_NP.
11336
11337 2010-11-20  Bruno Haible  <bruno@clisp.org>
11338
11339         Fix a comment.
11340         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11341
11342 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11343
11344         ftoastr: don't assume snprintf
11345         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11346         Implement a subset of snprintf here, by using sprintf safely.
11347         * modules/ftoastr (Depends-on): Remove snprintf.
11348
11349 2010-11-19  Jim Meyering  <meyering@redhat.com>
11350
11351         test-rename.h: fix compilation failure
11352         * tests/test-rename.h (test_rename): Add omitted "}".
11353
11354 2010-11-17  Jim Meyering  <meyering@redhat.com>
11355
11356         maint.mk: add a URL discussing the no-@acronym policy
11357         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11358
11359 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11360
11361         ftoastr: depend on snprintf, improve comments
11362         * lib/ftoastr.c: Also mention Loitsch's draft.
11363         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11364         needed in the current implementation, but it might simplify
11365         speeding up the code later.
11366         * modules/ftoastr: Depend on snprintf; this improves portability.
11367         Suggested by Bruno Haible in the same email.
11368
11369         ftoastr: port to hosts lacking strtof and strtold
11370         Problem reported by Bruno Haible in
11371         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11372         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11373         environment and strtold (and presumably strtof) are not available.
11374         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11375         (configure.ac): Require gl_C99_STRTOLD.
11376
11377 2010-11-18  Bruno Haible  <bruno@clisp.org>
11378
11379         c-strtold: Avoid link error on AIX 7.
11380         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11381         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11382         (gl_C_STRTOLD): Test whether strtold_l exists.
11383         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11384
11385 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11386
11387         intprops: new macro INT_BITS_STRLEN_BOUND
11388         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11389         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11390         not exposed.  Also, it uses a slightly tighter bound than before;
11391         though this makes no practical difference, we might as well be as
11392         tight as we easily can.
11393
11394         ftoastr: new module, for lossless conversion of floats to short strings
11395         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11396         * modules/ftoastr: New files.
11397
11398 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11399
11400         bootstrap: port to Solaris sed
11401         * build-aux/bootstrap (get_version): Port to Solaris sed.
11402         See Ralf Wildenhues's note in
11403         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11404
11405 2010-11-14  Jim Meyering  <meyering@redhat.com>
11406
11407         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11408         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11409         and move definition closer to sole use.
11410
11411 2010-11-13  Jim Meyering  <meyering@redhat.com>
11412
11413         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11414         Now we require at least autoconf-2.59, which means the work-around
11415         is no longer needed.
11416         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11417         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11418         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11419         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11420         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11421
11422 2010-11-13  Bruno Haible  <bruno@clisp.org>
11423
11424         rename, renameat: Avoid test failures at NFS mounted locations.
11425         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11426         functions.
11427         (test_rename): Use assert_nonexistent.
11428         * tests/test-rename.c: Include <dirent.h>.
11429         * tests/test-renameat.c: Likewise.
11430         Reported by Gary V. Vaughan <gary@gnu.org>.
11431
11432         rename, renameat: Document Linux bug with NFS
11433         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11434         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11435         * doc/posix-functions/renameat.texi: Likewise.
11436         Suggested by Eric Blake.
11437
11438 2010-11-13  Bruno Haible  <bruno@clisp.org>
11439
11440         rename test: Add comments.
11441         * tests/test-rename.h (test_rename): Add structure and comments.
11442
11443 2010-11-13  Eric Blake  <eblake@redhat.com>
11444
11445         maintainer-makefile: cover a few more files
11446         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11447         scripts generated within C files, for libvirt.
11448
11449 2010-11-13  Bruno Haible  <bruno@clisp.org>
11450
11451         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11452         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11453         character, return the number of bytes that belong together, not always
11454         1.
11455         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11456         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11457         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11458         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11459         number of bytes of an invalid character.
11460         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11461         (main): Invoke it.
11462         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11463         results.
11464         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11465         malformed byte sequences.
11466         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11467         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11468         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11469         Reported by Ben Pfaff and Paolo Bonzini.
11470
11471 2010-11-13  Bruno Haible  <bruno@clisp.org>
11472
11473         openat: Work around glibc bug with fchownat() and empty file names.
11474         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11475         (gl_FUNC_FCHOWNAT): Invoke it.
11476         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11477         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11478         Reported by Gary V. Vaughan <gary@gnu.org>.
11479
11480 2010-11-13  Bruno Haible  <bruno@clisp.org>
11481
11482         openat: Ensure autoconf macro ordering.
11483         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11484         gl_USE_SYSTEM_EXTENSIONS.
11485         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11486
11487 2010-11-13  Bruno Haible  <bruno@clisp.org>
11488
11489         Update comments.
11490         * lib/unistr/u8-check.c: Update file name in comments.
11491         * lib/unistr/u8-mblen.c: Likewise.
11492         * lib/unistr/u8-prev.c: Likewise.
11493         * lib/unistr/u8-strmblen.c: Likewise.
11494         * lib/unistr/u8-strmbtouc.c: Likewise.
11495
11496 2010-11-13  Jim Meyering  <meyering@redhat.com>
11497
11498         tests: avoid test failure on Solaris 10 due to lack of PATH export
11499         * tests/test-update-copyright.sh: Don't forget to export PATH.
11500
11501         init.sh: ensure that IFS is defined, just in case...
11502         * tests/init.sh (setup_): Ensure that IFS is defined,
11503         so that saving and restoring it works as expected.  This
11504         appears to be useful at least for an old version of dash
11505         from a long time ago (RH 6).  See here for details:
11506         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11507
11508         maint.mk: tighten "test a == b" check
11509         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11510         test to files that contain something like #!/bin/sh.
11511         Without this, coreutils would get two false positives in
11512         the comments of C source files.
11513
11514 2010-11-12  Eric Blake  <eblake@redhat.com>
11515
11516         bootstrap: fix typo in previous attempt
11517         * build-aux/bootstrap (buildreq): Correct the grouping.
11518         Reported by Paul Eggert.
11519
11520         maintainer-makefile: prohibit test x == x
11521         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11522         Based on a report by Matthias Bolte.
11523
11524         bootstrap: allow FreeBSD gzip
11525         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11526         which has no '.' and goes to stderr.
11527         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11528         Reported by Matthias Bolte.
11529
11530         maintainer-makefile: check for i18n setup
11531         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11532         will likely work.
11533
11534 2010-11-12  Bruno Haible  <bruno@clisp.org>
11535
11536         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11537         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11538         * lib/nanosleep.c (nanosleep): Likewise.
11539
11540 2010-11-11  Bruno Haible  <bruno@clisp.org>
11541
11542         fcntl-h: Fix for use of C++ on glibc systems.
11543         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11544         also on glibc systems in C++ mode.
11545         Reported by Gary V. Vaughan <gary@gnu.org>.
11546
11547 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11548
11549         mknod: avoid false failure with dash
11550         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11551
11552 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11553
11554         unlink: Fix "is it should" typo in diagnostic.
11555         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11557
11558 2010-11-11  Bruno Haible  <bruno@clisp.org>
11559
11560         Tests for module 'strerror_r-posix'.
11561         * modules/strerror_r-posix-tests: New file.
11562         * tests/test-strerror_r.c: New file.
11563         * tests/test-string-c++.cc: Check the signature of strerror_r.
11564
11565         New module 'strerror_r-posix'.
11566         * lib/string.in.h (strerror_r): New declaration.
11567         * lib/strerror_r.c: New file.
11568         * m4/strerror_r.m4: New file.
11569         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11570         of strerror_r.
11571         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11572         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11573         * modules/strerror_r-posix: New file.
11574         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11575         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11576         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11577         portability problems.
11578
11579 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11580
11581         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11582         line is also considered for output. Quoted function name in shell
11583         command, so temporary files for functions like MyClass::operator()
11584         are removed correctly without errors.
11585
11586 2010-11-09  Bruno Haible  <bruno@clisp.org>
11587
11588         * doc/posix-functions/strerror.texi: List more failing platforms.
11589
11590         * doc/posix-functions/strerror.texi: Add a comment.
11591
11592 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11593
11594         fdopendir: fix bug on MacOS X when low on file descriptors
11595
11596         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11597         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11598         All callers changed.
11599         (fdopendir): Invoke save_cwd at the top level, not after using
11600         multiple dup() calls to use up file descriptors.  Then retry
11601         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11602         less than the maximum number of open file descriptors, because
11603         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11604         on Mac OS X 10.6.4 for tar 1.24
11605         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11606         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11607         and for tar 1.25
11608         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11609
11610 2010-11-07  Bruno Haible  <bruno@clisp.org>
11611
11612         vasnprintf: Support I flag on glibc systems.
11613         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11614         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11615         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11616         snprintf function.
11617         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11618         glibc systems.
11619         * tests/test-vasnprintf-posix3.c: New file.
11620         * modules/vasnprintf-posix-tests (Files): Add it.
11621         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11622
11623 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11624
11625         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11626         * MODULES.html.sh: For compiler warnings, use name
11627         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11628
11629 2010-11-05  Eric Blake  <eblake@redhat.com>
11630
11631         ceil, floor: avoid spurious failure with icc
11632         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11633         [denormals-as-zero] when optimizing without -mieee-fp option.
11634         * tests/test-floorf2.c (floorf_reference): Likewise.
11635         * tests/test-ceilf1.c (dummy): New function.
11636         (main): Use it to outsmart icc's optimization.
11637         * tests/test-floorf1.c (dummy, main): Likewise.
11638
11639         tests: require working signbit
11640         * modules/ceilf-tests (Depends-on): Add signbit.
11641         * modules/ceill-tests (Depends-on): Likewise.
11642         * modules/floorf-tests (Depends-on): Likewise.
11643         * modules/floorl-tests (Depends-on): Likewise.
11644         * modules/round-tests (Depends-on): Likewise.
11645         * modules/roundf-tests (Depends-on): Likewise.
11646         * modules/roundl-tests (Depends-on): Likewise.
11647         * modules/trunc-tests (Depends-on): Likewise.
11648         * modules/truncf-tests (Depends-on): Likewise.
11649         * modules/truncl-tests (Depends-on): Likewise.
11650
11651         strtod: work around icc bug
11652         * lib/strtod.c (minus_zero): Define to working value.
11653         (strtod): Use it to avoid icc bug.
11654
11655         copysign: enhance tests
11656         * modules/copysign-tests (Files): Add minus-zero.h.
11657         * tests/test-copysign.c (main): Also test zeros.
11658
11659 2010-11-04  Eric Blake  <eblake@redhat.com>
11660
11661         ceil, floor, round, trunc: enhance tests of -0
11662         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11663         * tests/test-ceill.c (main): Likewise.
11664         * tests/test-floorf1.c (main): Likewise.
11665         * tests/test-floorl.c (main): Likewise.
11666         * tests/test-round1.c (main): Likewise.
11667         * tests/test-roundf1.c (main): Likewise.
11668         * tests/test-roundl.c (main): Likewise.
11669         * tests/test-trunc1.c (main): Likewise.
11670         * tests/test-truncf1.c (main): Likewise.
11671         * tests/test-truncl.c (main): Likewise.
11672
11673 2010-11-04  Eric Blake  <eblake@redhat.com>
11674
11675         frexp, tests: work around ICC bug with -zero
11676         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11677         works with more compilers.
11678         * tests/minus-zero.h: New file.
11679         * modules/ceilf-tests (Files): Include it.
11680         * modules/ceill-tests (Files): Likewise.
11681         * modules/floorf-tests (Files): Likewise.
11682         * modules/floorl-tests (Files): Likewise.
11683         * modules/frexp-nolibm-tests (Files): Likewise.
11684         * modules/frexp-tests (Files): Likewise.
11685         * modules/frexpl-nolibm-tests (Files): Likewise.
11686         * modules/frexpl-tests (Files): Likewise.
11687         * modules/isnan-tests (Files): Likewise.
11688         * modules/isnand-nolibm-tests (Files): Likewise.
11689         * modules/isnand-tests (Files): Likewise.
11690         * modules/isnanf-nolibm-tests (Files): Likewise.
11691         * modules/isnanf-tests (Files): Likewise.
11692         * modules/isnanl-nolibm-tests (Files): Likewise.
11693         * modules/isnanl-tests (Files): Likewise.
11694         * modules/round-tests (Files): Likewise.
11695         * modules/roundf-tests (Files): Likewise.
11696         * modules/roundl-tests (Files): Likewise.
11697         * modules/ldexpl-tests (Files): Likewise.
11698         * modules/signbit-tests (Files): Likewise.
11699         * modules/snprintf-posix-tests (Files): Likewise.
11700         * modules/sprintf-posix-tests (Files): Likewise.
11701         * modules/strtod-tests (Files): Likewise.
11702         * modules/trunc-tests (Files): Likewise.
11703         * modules/truncf-tests (Files): Likewise.
11704         * modules/truncl-tests (Files): Likewise.
11705         * modules/vsnprintf-posix-tests (Files): Likewise.
11706         * modules/vsprintf-posix-tests (Files): Likewise.
11707         * modules/vasnprintf-posix-tests (Files): Likewise.
11708         * modules/vasprintf-posix-tests (Files): Likewise.
11709         * tests/test-ceilf1.c (main): Use it.
11710         * tests/test-ceill.c (main): Likewise.
11711         * tests/test-floorf1.c (main): Likewise.
11712         * tests/test-floorl.c (main): Likewise.
11713         * tests/test-frexp.c (main): Likewise.
11714         * tests/test-frexpl.c (main): Likewise.
11715         * tests/test-isnan.c (main): Likewise.
11716         * tests/test-isnand.h (main): Likewise.
11717         * tests/test-isnanf.h (main): Likewise.
11718         * tests/test-isnanl.h (main): Likewise.
11719         * tests/test-ldexpl.c (main): Likewise.
11720         * tests/test-round.c (main): Likewise.
11721         * tests/test-roundf.c (main): Likewise.
11722         * tests/test-roundl.c (main): Likewise.
11723         * tests/test-signbit.c (test_signbitf, test_signbitd)
11724         (test_signbitl): Likewise.
11725         * tests/test-snprintf-posix.h (test_function): Likewise.
11726         * tests/test-sprintf-posix.h (test_function): Likewise.
11727         * tests/test-strtod.c (main): Likewise.
11728         * tests/test-trunc1.c (main): Likewise.
11729         * tests/test-truncf1.c (main): Likewise.
11730         * tests/test-truncl.c (main): Likewise.
11731
11732         isnanl: work around icc bug
11733         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11734
11735 2010-11-03  Eric Blake  <eblake@redhat.com>
11736
11737         tests: fix compiler warnings
11738         * tests/test-getopt.h (test_getopt): Fix condition.
11739         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11740         * tests/test-pipe2.c (main): Likewise.
11741         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11742
11743         utimens: fix broken m4 test
11744         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11745
11746 2010-10-28  Bruno Haible  <bruno@clisp.org>
11747
11748         posix_spawn*, getdtablesize: Relax license.
11749         * modules/posix_spawn (License): Change to LGPLv2+.
11750         * modules/posix_spawnp (License): Likewise.
11751         * modules/posix_spawn-internal (License): Likewise.
11752         * modules/posix_spawnattr_init (License): Likewise.
11753         * modules/posix_spawnattr_getflags (License): Likewise.
11754         * modules/posix_spawnattr_setflags (License): Likewise.
11755         * modules/posix_spawnattr_getpgroup (License): Likewise.
11756         * modules/posix_spawnattr_setpgroup (License): Likewise.
11757         * modules/posix_spawnattr_getschedparam (License): Likewise.
11758         * modules/posix_spawnattr_setschedparam (License): Likewise.
11759         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11760         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11761         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11762         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11763         * modules/posix_spawnattr_getsigmask (License): Likewise.
11764         * modules/posix_spawnattr_setsigmask (License): Likewise.
11765         * modules/posix_spawnattr_destroy (License): Likewise.
11766         * modules/posix_spawn_file_actions_init (License): Likewise.
11767         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11768         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11769         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11770         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11771         * modules/getdtablesize (License): Likewise.
11772         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11773
11774 2010-10-26  Bruno Haible  <bruno@clisp.org>
11775
11776         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11777         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11778         Cygwin and mingw.
11779         Suggested by Eric Blake.
11780
11781 2010-10-26  Bruno Haible  <bruno@clisp.org>
11782
11783         stdio: Work around compilation error due to renameat() on Solaris 10.
11784         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11785         * lib/renameat.c: Don't include <unistd.h> here.
11786         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11787         Reported by Paul Eggert and Eric Blake.
11788
11789 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11790
11791         renameat: port to Solaris 10, which declares renameat in unistd.h
11792
11793         * lib/renameat.c: Include unistd.h before stdio.h, because
11794         Solaris 10 declares renameat in unistd.h.  Problem encountered
11795         when building GNU tar 1.24 on Solaris 10.
11796
11797 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11798
11799         fdopendir: fix C89 compilation
11800         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11801         compilers.
11802
11803 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11804
11805         inttostr: simplify by removing unnecessary redundancy
11806         * lib/anytostr.c: Don't include verify.h.
11807         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11808         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11809         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11810         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11811         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11812         Likewise.
11813         * modules/inttostr (Depends-on): Remove 'verify'.
11814
11815 2010-10-23  Bruno Haible  <bruno@clisp.org>
11816
11817         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11818         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11819         Reported by Eric Blake.
11820
11821 2010-10-23  Bruno Haible  <bruno@clisp.org>
11822
11823         Tests: Fix LOCALE_JA on MirBSD 10.
11824         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11825         to an UTF-8 locale.
11826         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11827         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11828         Reported by Eric Blake.
11829
11830 2010-10-21  Bruno Haible  <bruno@clisp.org>
11831
11832         nl_langinfo test: Avoid test failure on NetBSD 5.
11833         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11834         Reported by Eric Blake.
11835
11836 2010-10-21  Eric Blake  <eblake@redhat.com>
11837
11838         c-stack: work around libsigsegv 2.8 bug
11839         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11840         overflow on at least PowerPC64.
11841
11842 2010-10-17  Bruno Haible  <bruno@clisp.org>
11843
11844         userspec: Drop redundant file.
11845         * modules/userspec (Files): Remove lib/inttostr.h.
11846
11847 2010-10-17  Bruno Haible  <bruno@clisp.org>
11848
11849         nl_langinfo tests: Silence some warnings.
11850         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11851         Reported by Jim Meyering.
11852
11853 2010-10-17  Bruno Haible  <bruno@clisp.org>
11854
11855         Make use of GCC's attribute __alloc_size__.
11856         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11857         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11858         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11859         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11860         __alloc_size__.
11861         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11862         Suggested by Jim Meyering.
11863
11864 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11865
11866         bootstrap: anchor .gitignore entries.
11867         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11868         with...
11869         (insert_vc_ignore): ... this new function, which prepends `/' to
11870         all .gitignore entries before passing them to
11871         insert_sorted_if_absent.
11872
11873 2010-10-16  Bruno Haible  <bruno@clisp.org>
11874
11875         nextafter: Fix configure check.
11876         * modules/nextafter (configure.ac): Correct expected prototype.
11877
11878 2010-10-16  Bruno Haible  <bruno@clisp.org>
11879
11880         termios: Update documentation.
11881         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11882
11883 2010-10-16  Bruno Haible  <bruno@clisp.org>
11884
11885         tests: Make them compile with TinyCC.
11886         * tests/test-strstr.c (main): Remove parentheses around array
11887         initializer.
11888
11889 2010-10-15  Eric Blake  <eblake@redhat.com>
11890
11891         ignore-value: make header idempotent
11892         * lib/ignore-value.h: Add double-inclusion guards.
11893         Reported by Stefan Berger.
11894
11895 2010-10-15  Jim Meyering  <meyering@redhat.com>
11896
11897         GNUmakefile: handle "stable" target, not "major"
11898         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11899         lists in maint.mk and announce-gen.  Without this, "make stable"
11900         would fail to ensure that $(VERSION) is up to date.
11901
11902 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11903
11904         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11905         & co.
11906
11907 2010-10-14  Bruno Haible  <bruno@clisp.org>
11908
11909         vasnprintf: Don't set errno to 0.
11910         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11911         block that sets it to 0.
11912         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11913
11914 2010-10-14  Bruno Haible  <bruno@clisp.org>
11915
11916         socketlib: Fix.
11917         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11918         gl_PREREQ_SYS_H_WINSOCK2.
11919         Reported by Ian Beckwith <ianb@erislabs.net>.
11920
11921 2010-10-13  Jim Meyering  <meyering@redhat.com>
11922
11923         test-select-stdin.c: avoid warn_unused_result warnings
11924         * tests/test-select-stdin.c: Include "macros.h".
11925         ASSERT that read and fflush succeed.
11926
11927 2010-10-13  Jim Meyering  <meyering@redhat.com>
11928
11929         git-version-gen: do require git-VC'd files in cwd
11930         * build-aux/git-version-gen: Reject a git version string
11931         if there are no commits associated with the current directory.
11932         This avoids an unlikely false-positive (unrelated dir whose parent
11933         repository also contains a tag matching v*), as pointed out
11934         by Giuseppe Scrivano in
11935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11936
11937 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11938
11939         argv-iter: omit nonconforming declaration
11940         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11941         enum arg_iter_err declaration, which doesn't conform to C99.
11942         Solaris 10 cc warns about this.
11943
11944 2010-10-13  Eric Blake  <eblake@redhat.com>
11945
11946         termios: fix compilation on mingw
11947         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11948         (gl_TERMIOS_H): Adjust it on mingw.
11949         * modules/termios (Makefile.am): Substitute new key.
11950         * lib/termios.in.h (includes): Make include_next conditional.
11951         * doc/posix-headers/termios.texi (termios.h): Update
11952         documentation.
11953         Reported by Daniel P. Berrange.
11954
11955 2010-10-13  Jim Meyering  <meyering@redhat.com>
11956
11957         git-version-gen: don't require that .git/ be in the current dir
11958         * build-aux/git-version-gen: Adjust this script so that it works
11959         when run from any working directory beneath the top-level .git/-
11960         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11961         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11962
11963         test-select: avoid warn_unused_result warnings
11964         * tests/test-select.c: Include "macros.h".
11965         ASSERT that each call to read, write, and pipe succeeds.
11966         While not technically required, also check each "close".
11967         * modules/select-tests (Files): Add tests/macros.h.
11968
11969         test-symlinkat: remove declaration of unused local
11970         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11971
11972         test-inttostr: avoid shadowing warnings
11973         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11974         and use malloc rather than the stack for the same reason as
11975         mentioned in the comment justifying the other allocation.
11976
11977 2010-10-11  Bruno Haible  <bruno@clisp.org>
11978
11979         stdlib: Allow multiple gnulib generated replacements to coexist.
11980         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11981         Reported by Sam Steingold <sds@gnu.org>.
11982
11983 2010-10-11  Jim Meyering  <meyering@redhat.com>
11984
11985         fix a documentation typo
11986         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11987
11988 2010-10-11  Eric Blake  <eblake@redhat.com>
11989
11990         futimens: work around Solaris 11 bug
11991         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11992         * tests/test-futimens.h (test_futimens): Enhance, rather than
11993         weaken test.
11994         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11995
11996 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11997
11998         Indentation.
11999         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
12000         higher-level operators more to the left.
12001
12002 2010-10-11  Jim Meyering  <meyering@redhat.com>
12003
12004         test-futimens: avoid unwarranted test failure on Solaris 5.11
12005         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
12006         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
12007         because it tries to dereference the NULL name argument.
12008
12009 2010-10-11  Bruno Haible  <bruno@clisp.org>
12010
12011         Indentation.
12012         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
12013         indentation.
12014
12015 2010-10-11  Jim Meyering  <meyering@redhat.com>
12016
12017         spawn.in.h: make indentation consistent with parentheses
12018         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
12019         Make indentation consistent with parentheses.
12020
12021 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
12022
12023         Fix mismatched parens in previous commit
12024         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
12025         parens.
12026
12027 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12028
12029         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
12030
12031         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
12032         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
12033         * lib/malloca.c: Include "verify.h".
12034         (verify1): Remove, replacing with a verify call.
12035         * lib/relocwrapper.c (verify1): Likewise.
12036         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
12037         Likewise.
12038         * modules/malloca (Depends-on): Add 'verify'.
12039         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
12040         * modules/vasnprintf (Depends-on): Add 'verify'.
12041         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12042         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12043         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12044         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12045         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12046         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12047         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12048
12049         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
12050
12051         Formerly the style was sometimes 2*X - 1, because the C standard
12052         was wrongly thought to disallow ?: in integral constant expressions.
12053         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
12054         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
12055         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12056         * lib/stdint.in.h (_verify_intmax_size): Likewise.
12057         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
12058         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
12059         verify that time_t cannot be floating.
12060
12061 2010-10-08  Eric Blake  <eblake@redhat.com>
12062
12063         time: enforce recent POSIX ruling that time_t is integral
12064         * lib/time.in.h (__time_t_must_be_integral): Detect any
12065         problematic systems, allowing the rest of gnulib to assume POSIX.
12066
12067 2010-10-08  Jim Meyering  <meyering@redhat.com>
12068
12069         fdopendir: fix a bug on systems lacking openat and /proc support
12070         OpenBSD 4.7 is one such system.  The most noticeable effect was
12071         failure of any application making nontrivial use of fts: rm, du,
12072         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
12073           ./rm: traversal failed: `a': Bad file descriptor
12074         Debugging that, you see that even though FD 6 was closed just
12075         prior to the opendir call in fd_clone_opendir, its resulting
12076         dir->dd_fd was 8, rather than the expected value of 6:
12077
12078         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
12079         93                close (fd);
12080         (gdb) n
12081         94                dir = fd_clone_opendir (dupfd);
12082         (gdb) n
12083         95                saved_errno = errno;
12084         (gdb) p dir->dd_fd
12085         $11 = 8
12086
12087         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
12088         The problem is that on OpenBSD, fd_clone_opendir has to resort
12089         to using the old-style save/restore CWD mechanism, due to its
12090         lack of openat/proc support, and *that* would steal the FD (6)
12091         that opendir was supposed to use.
12092
12093         The fix is to squirrel away the desired FD so that save_cwd uses a
12094         different one, and then free the dest FD right before calling opendir.
12095         That guarantees opendir will use the required file descriptor.
12096
12097         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
12098
12099 2010-10-08  Bruno Haible  <bruno@clisp.org>
12100
12101         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
12102         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
12103
12104 2010-10-08  Bruno Haible  <bruno@clisp.org>
12105
12106         nanosleep: Make replacement POSIX compliant.
12107         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
12108         is out of range.
12109         Reported by Jim Meyering.
12110
12111 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12112
12113         bootstrap: add hook for altering gnulib.mk, for Bison
12114         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
12115         the Bison bootstrapping process can rewrite file names and variables
12116         in this file before later parts of 'bootstrap' use the file.
12117         Bison wants to include lib/gnulib.mk from the top-level makefile,
12118         so it needs the file names in this file to be relative to the top
12119         level, not relative to lib; plus it needs variable names to be
12120         rewritten.
12121         (slurp): Use the new function.
12122
12123         bootstrap: reformat for readability
12124         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
12125
12126 2010-10-08  Eric Blake  <eblake@redhat.com>
12127
12128         docs: update cygwin progress
12129         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
12130         1.7.7.
12131         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
12132         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
12133         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
12134         * doc/posix-functions/carg.texi (carg): Likewise.
12135         * doc/posix-functions/cargf.texi (cargf): Likewise.
12136         * doc/posix-functions/casin.texi (casin): Likewise.
12137         * doc/posix-functions/casinf.texi (casinf): Likewise.
12138         * doc/posix-functions/casinh.texi (casinh): Likewise.
12139         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
12140         * doc/posix-functions/catan.texi (catan): Likewise.
12141         * doc/posix-functions/catanf.texi (catanf): Likewise.
12142         * doc/posix-functions/catanh.texi (catanh): Likewise.
12143         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
12144         * doc/posix-functions/ccos.texi (ccos): Likewise.
12145         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
12146         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
12147         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
12148         * doc/posix-functions/cexp.texi (cexp): Likewise.
12149         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
12150         * doc/posix-functions/cimag.texi (cimag): Likewise.
12151         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
12152         * doc/posix-functions/clog.texi (clog): Likewise.
12153         * doc/posix-functions/clogf.texi (clogf): Likewise.
12154         * doc/posix-functions/conj.texi (conj): Likewise.
12155         * doc/posix-functions/conjf.texi (conjf): Likewise.
12156         * doc/posix-functions/cpow.texi (cpow): Likewise.
12157         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
12158         * doc/posix-functions/cproj.texi (cproj): Likewise.
12159         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
12160         * doc/posix-functions/creal.texi (creal): Likewise.
12161         * doc/posix-functions/crealf.texi (crealf): Likewise.
12162         * doc/posix-functions/csin.texi (csin): Likewise.
12163         * doc/posix-functions/csinf.texi (csinf): Likewise.
12164         * doc/posix-functions/csinh.texi (csinh): Likewise.
12165         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
12166         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
12167         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
12168         * doc/posix-functions/ctan.texi (ctan): Likewise.
12169         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
12170         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
12171         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
12172         * doc/posix-headers/complex.texi (complex.h): Likewise.
12173
12174 2010-10-07  Jim Meyering  <meyering@redhat.com>
12175
12176         parse-datetime: avoid compilation failure on OpenBSD 4.7
12177         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
12178         This works around a compilation failure on OpenBSD 4.7:
12179         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
12180
12181 2010-10-07  Eric Blake  <eblake@redhat.com>
12182
12183         docs: update cygwin progress
12184         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
12185         1.7.6.
12186         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12187         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
12188         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
12189         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
12190         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
12191         Likewise.
12192         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
12193         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
12194         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
12195         Likewise.
12196         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
12197         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
12198         Likewise.
12199         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
12200         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
12201         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
12202         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
12203         Likewise.
12204         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
12205         Likewise.
12206         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
12207
12208         docs: update parse-datetime history
12209         * doc/parse-datetime.texi (Authors of parse_datetime): Better
12210         documentation of this function's history and alternatives.
12211
12212         cygwin: use more robust version check
12213         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
12214         exclude an eventual cygwin 1.9.1.
12215         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12217         (gl_FUNC_STRCASESTR): Likewise.
12218         Reported by Bruno Haible.
12219
12220 2010-10-06  Bruno Haible  <bruno@clisp.org>
12221
12222         string, sys_select: Avoid #including large headers unless necessary.
12223         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
12224         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
12225         OSF/1, BeOS, Haiku.
12226         Reported by Jim Meyering.
12227
12228 2010-10-05  Eric Blake  <eblake@redhat.com>
12229
12230         memmem, strstr, strcasestr: fix bug with long periodic needle
12231         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
12232         periodic needle having false positive.
12233         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
12234         and cygwin 1.7.7.
12235         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
12236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12237         (gl_FUNC_STRCASESTR): Likewise.
12238         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12239         * tests/test-memmem.c (main): Expose the bug.
12240         * tests/test-strcasestr.c (main): Likewise.
12241         * tests/test-strstr.c (main): Likewise.
12242         * tests/test-c-strcasestr.c (main): Likewise.
12243         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
12244         * doc/posix-functions/strstr.texi (strstr): Likewise.
12245         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12246         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
12247
12248 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12249
12250         parse-datetime: do some more renaming
12251         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
12252         parse_datetime, not get_date.  Mention the renaming.
12253         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
12254         in comments.
12255         * m4/bison.m4: Likewise.
12256
12257 2010-10-05  Eric Blake  <eblake@redhat.com>
12258
12259         parse-datetime: better name than get_date
12260         * NEWS: Reword the deprecation notice.
12261         * modules/get_date: Rename to modules/parse-datetime.
12262         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
12263         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
12264         * lib/get_date.y: Rename to lib/parse-datetime.y.
12265         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
12266         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
12267         * doc/getdate.texi: Provide fallback wrapper.
12268         * lib/getdate.h: Move guts, and wrap...
12269         * lib/parse-datetime.h: ...new file.
12270         * lib/parse-datetime.y (get_date): Rename...
12271         (parse_datetime): ...to this.
12272         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
12273         (gl_PARSE_DATETIME): ...to this.
12274         * doc/posix-functions/getdate.texi (get_date): Provide fallback
12275         documentation.
12276         * modules/getdate (Files): Provide fallback docs and header.
12277         (Notice, Depends-on): Update references.
12278         * tests/test-parse-datetime.c: Likewise.
12279         * DEPENDENCIES: Likewise.
12280         * MODULES.html.sh (Date and time <time.h>): Likewise.
12281         * doc/parse-datetime.texi (Date input formats)
12282         (Authors of parse_datetime): Likewise.
12283         * modules/parse-datetime (Files, configure.ac, Makefile.am)
12284         (Include): Likewise.
12285         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
12286         * gnulib-tool: Likewise.
12287         * m4/bison.m4 (gl_BISON): Likewise.
12288         Suggested by Bruno Haible.
12289
12290 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12291
12292         more ports to Solaris tr, which needs [] around ranges
12293         * gnulib-tool: Solaris tr needs [] around ranges.
12294         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12295         * tests/test-pipe-filter-gi1.c (main): Likewise.
12296         * tests/test-pipe-filter-ii1.c (main): Likewise.
12297
12298 2010-10-05  Eric Blake  <eblake@redhat.com>
12299
12300         bootstrap: fix Solaris regression
12301         * build-aux/bootstrap (check_versions): Solaris tr still needs []
12302         around ranges.
12303         Reported by Pádraig Brady.
12304
12305         bootstrap: work with pkg-config
12306         * build-aux/bootstrap (check_versions): Also transliterate - in
12307         prerequisite name.
12308         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
12309         prerequisites that were already found, to avoid confusion.
12310         Reported by Justin Clift.
12311
12312         faccessat: remove unused wrappers
12313         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
12314         presence of these wrappers dragged in -lgen on Solaris.
12315         Reported by Clemens Brogi; fix suggested by Paul Eggert.
12316
12317 2010-10-05  Jim Meyering  <meyering@redhat.com>
12318
12319         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
12320         * Makefile (sc_pragma_columns): New syntax-check rule.
12321
12322 2010-10-04  Bruno Haible  <bruno@clisp.org>
12323
12324         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
12325         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
12326         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
12327         Reported by Bruce Korb and Eric Blake.
12328
12329 2010-10-04  Bruno Haible  <bruno@clisp.org>
12330
12331         threadlib: Make option --with-libpth-prefix work.
12332         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12333         use $LIBPTH, not just -lpth.
12334
12335 2010-10-04  Bruno Haible  <bruno@clisp.org>
12336
12337         Avoid line length limitation from HP NonStop system header files.
12338         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12339         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12340         * lib/ctype.in.h: Likewise.
12341         * lib/dirent.in.h: Likewise.
12342         * lib/errno.in.h: Likewise.
12343         * lib/fcntl.in.h: Likewise.
12344         * lib/float.in.h: Likewise.
12345         * lib/getopt.in.h: Likewise.
12346         * lib/iconv.in.h: Likewise.
12347         * lib/inttypes.in.h: Likewise.
12348         * lib/langinfo.in.h: Likewise.
12349         * lib/locale.in.h: Likewise.
12350         * lib/math.in.h: Likewise.
12351         * lib/netdb.in.h: Likewise.
12352         * lib/netinet_in.in.h: Likewise.
12353         * lib/poll.in.h: Likewise.
12354         * lib/pthread.in.h: Likewise.
12355         * lib/pty.in.h: Likewise.
12356         * lib/sched.in.h: Likewise.
12357         * lib/se-selinux.in.h: Likewise.
12358         * lib/search.in.h: Likewise.
12359         * lib/signal.in.h: Likewise.
12360         * lib/spawn.in.h: Likewise.
12361         * lib/stdarg.in.h: Likewise.
12362         * lib/stddef.in.h: Likewise.
12363         * lib/stdint.in.h: Likewise.
12364         * lib/stdio.in.h: Likewise.
12365         * lib/stdlib.in.h: Likewise.
12366         * lib/string.in.h: Likewise.
12367         * lib/strings.in.h: Likewise.
12368         * lib/sys_file.in.h: Likewise.
12369         * lib/sys_ioctl.in.h: Likewise.
12370         * lib/sys_select.in.h: Likewise.
12371         * lib/sys_socket.in.h: Likewise.
12372         * lib/sys_stat.in.h: Likewise.
12373         * lib/sys_time.in.h: Likewise.
12374         * lib/sys_times.in.h: Likewise.
12375         * lib/sys_utsname.in.h: Likewise.
12376         * lib/sys_wait.in.h: Likewise.
12377         * lib/sysexits.in.h: Likewise.
12378         * lib/termios.in.h: Likewise.
12379         * lib/time.in.h: Likewise.
12380         * lib/unistd.in.h: Likewise.
12381         * lib/wchar.in.h: Likewise.
12382         * lib/wctype.in.h: Likewise.
12383         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12384         * modules/ctype (Makefile.am): Likewise.
12385         * modules/dirent (Makefile.am): Likewise.
12386         * modules/errno (Makefile.am): Likewise.
12387         * modules/fcntl-h (Makefile.am): Likewise.
12388         * modules/float (Makefile.am): Likewise.
12389         * modules/getopt-posix (Makefile.am): Likewise.
12390         * modules/iconv-h (Makefile.am): Likewise.
12391         * modules/inttypes (Makefile.am): Likewise.
12392         * modules/langinfo (Makefile.am): Likewise.
12393         * modules/locale (Makefile.am): Likewise.
12394         * modules/math (Makefile.am): Likewise.
12395         * modules/netdb (Makefile.am): Likewise.
12396         * modules/netinet_in (Makefile.am): Likewise.
12397         * modules/poll-h (Makefile.am): Likewise.
12398         * modules/pthread (Makefile.am): Likewise.
12399         * modules/pty (Makefile.am): Likewise.
12400         * modules/sched (Makefile.am): Likewise.
12401         * modules/search (Makefile.am): Likewise.
12402         * modules/selinux-h (Makefile.am): Likewise.
12403         * modules/signal (Makefile.am): Likewise.
12404         * modules/spawn (Makefile.am): Likewise.
12405         * modules/stdarg (Makefile.am): Likewise.
12406         * modules/stddef (Makefile.am): Likewise.
12407         * modules/stdint (Makefile.am): Likewise.
12408         * modules/stdio (Makefile.am): Likewise.
12409         * modules/stdlib (Makefile.am): Likewise.
12410         * modules/string (Makefile.am): Likewise.
12411         * modules/strings (Makefile.am): Likewise.
12412         * modules/sys_file (Makefile.am): Likewise.
12413         * modules/sys_ioctl (Makefile.am): Likewise.
12414         * modules/sys_select (Makefile.am): Likewise.
12415         * modules/sys_socket (Makefile.am): Likewise.
12416         * modules/sys_stat (Makefile.am): Likewise.
12417         * modules/sys_time (Makefile.am): Likewise.
12418         * modules/sys_times (Makefile.am): Likewise.
12419         * modules/sys_utsname (Makefile.am): Likewise.
12420         * modules/sys_wait (Makefile.am): Likewise.
12421         * modules/sysexits (Makefile.am): Likewise.
12422         * modules/termios (Makefile.am): Likewise.
12423         * modules/time (Makefile.am): Likewise.
12424         * modules/unistd (Makefile.am): Likewise.
12425         * modules/wchar (Makefile.am): Likewise.
12426         * modules/wctype (Makefile.am): Likewise.
12427
12428 2010-10-04  Bruno Haible  <bruno@clisp.org>
12429
12430         read-file tests: Avoid a test failure on NonStop Kernel.
12431         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12432         a regular file.
12433         Reported by Joachim Schmitz <schmitz@hp.com>.
12434
12435 2010-10-03  Bruno Haible  <bruno@clisp.org>
12436
12437         gnulib-tool: Fixes for --create-testdir with --libtool.
12438         * gnulib-tool (func_get_automake_snippet): Don't augment
12439         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12440         an executable.
12441         (func_create_testdir): Handle module 'alloca' like func_import.
12442         Reported by Bruce Korb <bruce.korb@gmail.com>.
12443
12444 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12445
12446         Avoid some lines longer than 80 characters.
12447         * lib/stdint.in.h: Break long comment lines.
12448         * lib/math.in.h: Likewise.
12449         (_GL_NUM_UINT_WORDS): New macro, for readability.
12450         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12451         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12452         * lib/stdlib.in.h: Likewise.
12453         * lib/spawn.in.h: Likewise.
12454         * lib/sys_socket.in.h: Update an URL.
12455         * lib/sys_stat.in.h: Break long line.
12456
12457 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12458
12459         Improve pmccabe2html.
12460         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12461         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12462         when the sources change. Remove the line in the HTML about "Used
12463         ranges" (which implied that there might be other unused ranges),
12464         rename "Resume" to "Summary" (easier to understand for more users).
12465         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12466         styles, and some unnecessary blank lines.
12467
12468 2010-10-03  Bruno Haible  <bruno@clisp.org>
12469             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12470
12471         acl: Add support for ACLs on NonStop Kernel.
12472         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12473         Check whether the function aclsort() exists.
12474         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12475         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12476         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12477         (acl_nontrivial [HAVE_ACLSORT]: New function.
12478         (file_has_acl): Implement for NonStop Kernel.
12479         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12480         (qset_acl): Implement for NonStop Kernel.
12481         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12482         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12483         (main): Implement for NonStop Kernel.
12484         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12485         Kernel. Handle this flavor.
12486         * tests/test-set-mode-acl.sh: Likewise.
12487         * tests/test-copy-acl.sh: Likewise.
12488         * tests/test-copy-file.sh: Likewise.
12489
12490 2010-10-03  Bruno Haible  <bruno@clisp.org>
12491
12492         Info about ACLs on NonStop Kernel.
12493         * doc/acl-resources.txt: Add info about NonStop Kernel.
12494         References by Joachim Schmitz <schmitz@hp.com>.
12495
12496 2010-10-02  Bruno Haible  <bruno@clisp.org>
12497
12498         Define missing EDQUOT on NonStop Kernel.
12499         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12500         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12501         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12502         missing.
12503         * doc/posix-headers/errno.texi: Mention the NSK bug.
12504         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12505         Reported by Joachim Schmitz <schmitz@hp.com>.
12506
12507 2010-10-02  Bruno Haible  <bruno@clisp.org>
12508
12509         Update doc for POSIX:2008.
12510         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12511         Update URL of POSIX specification.
12512
12513 2010-10-02  Bruno Haible  <bruno@clisp.org>
12514
12515         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12516         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12517         from gnulib, not from Automake.
12518
12519 2010-10-02  Bruno Haible  <bruno@clisp.org>
12520
12521         New module 'system-posix'.
12522         * modules/system-posix: New file.
12523         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12524         module is present.
12525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12526         GNULIB_SYSTEM_POSIX.
12527         * modules/stdlib (Depends-on): Remove sys_wait.
12528         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12529         * doc/posix-functions/system.texi: Mention the new module.
12530         * doc/posix-headers/stdlib.texi: Likewise.
12531         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12532         define test_sys_wait_macros to a no-op.
12533         Reported by Sam Steingold <sds@gnu.org>.
12534
12535 2010-09-30  Bruno Haible  <bruno@clisp.org>
12536
12537         More renaming from 'getdate' to 'get_date'.
12538         * doc/get_date.texi: Renamed from doc/getdate.texi.
12539         * modules/get_date (Files): Update.
12540         * MODULES.html.sh (Date and time <time.h>): Update.
12541         * DEPENDENCIES: Update.
12542         * gnulib-tool: Update comment.
12543         * m4/bison.m4 (gl_BISON): Likewise.
12544         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12545
12546 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12547
12548         bootstrap: support ACLOCAL_FLAGS during aclocal
12549         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12550         can add additional -I dir for third-party .m4 files.
12551
12552 2010-09-30  Eric Blake  <eblake@redhat.com>
12553
12554         bootstrap: use glibtoolize on MacOS
12555         * build-aux/bootstrap (check_versions): Convert libtool into
12556         libtoolize.
12557         (tool search): Move libtool check earlier, and look for
12558         glibtoolize for MacOS.
12559         (gnulib_tool_options): Auto-add --libtool when appropriate.
12560         Reported by Justin Clift.
12561
12562         poll: fix typo that broke test on MacOS
12563         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12564         Reported by Justin Clift.
12565
12566         getdate: rename to get_date
12567         Note: getdate.h is not renamed, to minimize client impact.
12568         * modules/getdate: Mark obsolete.  Move old contents...
12569         * modules/get_date: ...to new module name.
12570         * modules/getdate-tests: Move...
12571         * modules/get_date-tests: ...here.
12572         * m4/getdate.m4: Move...
12573         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12574         * lib/getdate.y: Move...
12575         * lib/get_date.y: ...here.
12576         * tests/test-getdate.c: Move...
12577         * tests/test-get_date.c: ...here.
12578         * doc/posix-functions/getdate.texi (getdate): Update name.
12579         * NEWS: Mention the change.
12580
12581 2010-09-29  Bruno Haible  <bruno@clisp.org>
12582
12583         Separate the module 'waitpid' from the module 'sys_wait'.
12584         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12585         present.
12586         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12587         gl_MODULE_INDICATOR_FOR_TESTS.
12588         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12589         * modules/sys_wait (Depends-on): Remove waitpid.
12590         (Makefile.am): Substitute GNULIB_WAITPID.
12591         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12592         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12593         signature only if the 'waitpid' module is present.
12594         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12595         * NEWS: Mention the change.
12596         * modules/grantpt (Depends-on): Add waitpid.
12597         * modules/wait-process (Depends-on): Likewise.
12598
12599 2010-09-29  Bruno Haible  <bruno@clisp.org>
12600
12601         More tests for module 'sys_wait'.
12602         * modules/sys_wait-c++-tests: New file.
12603         * tests/test-sys_wait-c++.cc: New file.
12604         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12605         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12606
12607 2010-09-29  Bruno Haible  <bruno@clisp.org>
12608
12609         New module 'waitpid'.
12610         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12611         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12612         Don't include <process.h>.
12613         (waitpid): Declare only, using modern idiom.
12614         * m4/waitpid.m4: New file.
12615         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12616         * modules/waitpid: New file.
12617         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12618         (Makefile.am): Update.
12619         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12620
12621 2010-09-28  Bruno Haible  <bruno@clisp.org>
12622
12623         poll: Assume ANSI C.
12624         * lib/poll.c (poll): Use an ANSI C declaration.
12625
12626 2010-09-28  Bruno Haible  <bruno@clisp.org>
12627
12628         poll-h: Create poll.h on all platforms.
12629         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12630         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12631         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12632         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12633         (gl_REPLACE_POLL_H): Don't set POLL_H.
12634         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12635         * modules/poll-h (Depends-on): Add include_next.
12636         (Makefile.am): Create poll.h unconditionally. Substitute also
12637         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12638
12639 2010-09-28  Bruno Haible  <bruno@clisp.org>
12640
12641         Tests for module 'poll-h'.
12642         * modules/poll-h-c++-tests: New file.
12643         * tests/test-poll-h-c++.cc: New file.
12644
12645         Tests for module 'poll-h'.
12646         * modules/poll-h-tests: New file.
12647         * tests/test-poll-h.c: New file.
12648
12649 2010-09-28  Bruno Haible  <bruno@clisp.org>
12650
12651         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12652         * modules/poll-h (Depends-on): Add 'extensions'.
12653
12654 2010-09-28  Bruno Haible  <bruno@clisp.org>
12655
12656         New module 'poll-h'.
12657         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12658         (poll): Use modern idiom.
12659         * modules/poll-h: New file.
12660         * modules/poll (Files): Remove lib/poll.in.h.
12661         (Depends-on): Add poll-h.
12662         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12663         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12664         * m4/poll_h.m4: New file.
12665         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12666         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12667         and invoke gl_REPLACE_POLL_H.
12668         * lib/poll.c: Use common idiom.
12669         * tests/test-poll.c: Likewise.
12670         * doc/posix-headers/poll.texi: Mention the poll-h module.
12671         Suggested by Eric Blake.
12672
12673 2010-09-26  Bruno Haible  <bruno@clisp.org>
12674
12675         sys_wait: Implement WSTOPSIG.
12676         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12677         Reported by Simon Josefsson.
12678
12679 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12680
12681         stdlib, sys_wait: Avoid compilation error on mingw.
12682         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12683
12684 2010-09-26  Bruno Haible  <bruno@clisp.org>
12685
12686         stdlib tests: Avoid code duplication.
12687         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12688         * modules/sys_wait-tests (Files): Likewise.
12689         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12690         * tests/test-stdlib.c: Include test-sys_wait.h.
12691         (main): Invoke test_sys_wait_macros.
12692         * tests/test-sys_wait.c: Include test-sys_wait.h.
12693         (main): Invoke test_sys_wait_macros.
12694
12695 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12696
12697         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12698         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12699         sure Windows sockets are working before calling getaddrinfo.
12700         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12701         * doc/gnulib.texi (Windows sockets): Fix typo.
12702
12703 2010-09-25  Bruno Haible  <bruno@clisp.org>
12704
12705         Tests for module 'regex-quote'.
12706         * modules/regex-quote-tests: New file.
12707         * tests/test-regex-quote.c: New file.
12708
12709         New module 'regex-quote'.
12710         * lib/regex-quote.h: New file.
12711         * lib/regex-quote.c: New file.
12712         * modules/regex-quote: New file.
12713         Suggested by Reuben Thomas <rrt@sc3d.org>.
12714
12715 2010-09-24  Bruno Haible  <bruno@clisp.org>
12716
12717         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12718         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12719
12720 2010-09-23  Bruno Haible  <bruno@clisp.org>
12721
12722         setenv: Relax license.
12723         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12724         Blake.
12725         Requested by Eric Blake.
12726
12727 2010-09-22  Bruno Haible  <bruno@clisp.org>
12728
12729         termios: Relax license.
12730         * modules/termios (License): Change to LGPLv2+.
12731         Requested by Eric Blake.
12732
12733 2010-09-22  Bruno Haible  <bruno@clisp.org>
12734
12735         threadlib: Allow the package to change the default to 'no'.
12736         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12737         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12738         Reported by Paul Eggert.
12739
12740 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12741             Bruno Haible  <bruno@clisp.org>
12742
12743         Fix endless loop in mbmemcasecoll.
12744         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12745         byte.
12746         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12747
12748 2010-09-22  Bruno Haible  <bruno@clisp.org>
12749
12750         Tests for module 'memcoll'.
12751         * modules/memcoll-tests: New file.
12752         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12753
12754         memcoll, xmemcoll: Clarify size vs. length.
12755         * modules/memcoll.c (memcoll0): Clarify specification.
12756         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12757         passed to collate_error.
12758
12759 2010-09-22  Bruno Haible  <bruno@clisp.org>
12760
12761         Tests for module 'memcasecmp'.
12762         * modules/memcasecmp-tests: New file.
12763         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12764
12765 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12766
12767         * lib/pthread.in.h: Add split double-inclusion guard, and include
12768         system <pthread.h> if there is one.  Use @@-style as in other
12769         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12770         pthread.h doesn't.
12771         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12772         (pthread_mutexattr_settype, pthread_mutex_trylock):
12773         New static inline functions, if there's no system <pthread.h>.
12774         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12775         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12776         Approximate with mutexes if the system lacks spinlocks, as in
12777         MacOS.
12778         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12779         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12780         @@-style.  Check for spinlocks separately.
12781         (gl_PTHREAD_DEFAULTS): New macro.
12782         * modules/pthread: Redo to use a more typical style for in.h files.
12783
12784 2010-09-21  Eric Blake  <eblake@redhat.com>
12785
12786         net_if: enhance tests
12787         * tests/test-net_if.c (main): Move signature checks earlier.
12788         Print failures to stderr.
12789         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12790         Document the bug that we do not yet fix.
12791
12792 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12793
12794         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12795         about gnulib, not GSS.
12796
12797 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12798
12799         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12800         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12801         for Emacs.
12802         * build-aux/pmccabe2html: Make Makefile.am example code more
12803         cut-and-paste friendly.
12804
12805 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12806
12807         * tests/test-net_if.c: New file.
12808         * modules/net_if-tests: New file.
12809
12810 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12811
12812         pthread: add pthread_spin_destroy
12813         * lib/pthread.in.h (pthread_spin_destroy): New function.
12814
12815 2010-09-19  Bruno Haible  <bruno@clisp.org>
12816
12817         gnulib-tool: Fix --help output.
12818         * gnulib-tool (func_usage): Fix help message.
12819         Reported by Reuben Thomas <rrt@sc3d.org>.
12820
12821 2010-09-18  Jim Meyering  <meyering@redhat.com>
12822
12823         maint.mk: avoid unexpanded \n in two diagnostics
12824         * top/maint.mk (sc_prohibit_always_true_header_tests):
12825         Don't use a literal \n in a halt=... assignment.  It would not be
12826         expanded, and the two \n bytes would appear in the diagnostic output
12827         rather than the desired newline.  Use halt=$$(printf ... instead.
12828         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12829
12830 2010-09-18  Bruno Haible  <bruno@clisp.org>
12831
12832         netinet_in: Doc tweak.
12833         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12834         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12835
12836 2010-09-18  Jim Meyering  <meyering@redhat.com>
12837
12838         init.sh: correct an outdated comment
12839         * tests/init.sh (create_exe_shims_):  s/function/alias/
12840
12841         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12842         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12843         a file named "*.exe" is removed between the glob expansion and the
12844         processing of that oddly named file.
12845
12846 2010-09-17  Eric Blake  <eblake@redhat.com>
12847
12848         mirbsd: add some more support
12849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12850         in BSD family.
12851         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12852         devices as OpenBSD.
12853         * m4/host-os.m4 (mirbsd): Add MirBSD.
12854
12855         tests: fix unportable assumption on sys/wait.h
12856         * tests/test-sys_wait.c (main): Relax test.
12857         * tests/test-stdlib.c (main): Likewise.
12858
12859         init.sh: accomodate directory with no .exes
12860         * tests/init.sh: Accomodate directory containing only scripts.
12861
12862         tests: avoid compiler warning
12863         * tests/test-stdlib.c (main): Use the variable.
12864
12865         fdutimens, fdutimensat: update signature, again
12866         * lib/utimens.h (gl_futimens): Delete, and move signature...
12867         (fdutimens): ...here.
12868         (fdutimensat): Rearrange signature.
12869         (lutimensat): Rename variable for clarity.
12870         * lib/fdutimensat.c (fdutimensat): Update signature.
12871         * lib/utimens.c (fdutimens): Likewise.
12872         (gl_futimens): Delete.
12873         (utimens, lutimens): Update callers.
12874         * lib/futimens.c (futimens): Likewise.
12875         * tests/test-fdutimensat.c: Likewise.
12876         * tests/test-utimens.c: Likewise.
12877         * tests/test-futimens.h: Update comment.
12878         * NEWS: Mention this.
12879         Suggested by Paul Eggert.
12880
12881 2010-09-17  Bruno Haible  <bruno@clisp.org>
12882
12883         Take over the maintenance of some older macros from Autoconf.
12884         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12885         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12886         GNU Autoconf.
12887         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12888         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12889
12890 2010-09-17  Eric Blake  <eblake@redhat.com>
12891
12892         fdutimensat: drop atflag validation
12893         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12894         with valid fd, to close a race scenario where futimens is
12895         unsupported and FILE was replaced by a symlink.
12896         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12897         accordingly.
12898         Suggested by Paul Eggert.
12899
12900 2010-09-16  Bruno Haible  <bruno@clisp.org>
12901
12902         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12903         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12904
12905 2010-09-16  Bruno Haible  <bruno@clisp.org>
12906
12907         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12908         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12909         login_tty exists.
12910         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12911
12912 2010-09-16  Bruno Haible  <bruno@clisp.org>
12913
12914         login_tty: Make the replacement code work on BSD systems.
12915         * lib/login_tty.c: Include <sys/ioctl.h>.
12916         (login_tty): Use ioctl TIOCSCTTY when available.
12917         * modules/login_tty (Depends-on): Add sys_ioctl.
12918         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12919
12920 2010-09-16  Bruno Haible  <bruno@clisp.org>
12921
12922         login_tty: Stricter unit test.
12923         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12924         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12925         and tcgetsid() after login_tty.
12926         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12927
12928 2010-09-16  Bruno Haible  <bruno@clisp.org>
12929
12930         New module 'tcgetsid'.
12931         * lib/tcgetsid.c: New file.
12932         * m4/tcgetsid.m4: New file.
12933         * modules/tcgetsid: New file.
12934         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12935         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12936         GNULIB_TCGETSID, HAVE_TCGETSID.
12937         * lib/termios.in.h: Include <sys/types.h>.
12938         (tcgetsid): New declaration.
12939         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12940         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12941         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12942         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12943
12944 2010-09-16  Bruno Haible  <bruno@clisp.org>
12945
12946         Tests for module 'termios'.
12947         * modules/termios-c++-tests: New file.
12948         * modules/termios-tests: New file.
12949         * tests/test-termios-c++.cc: New file.
12950         * tests/test-termios.c: New file.
12951
12952         New module 'termios'.
12953         * modules/termios: New file.
12954         * lib/termios.in.h: New file.
12955         * m4/termios_h.m4: New file.
12956         * doc/posix-headers/termios.texi: Mention the new module.
12957
12958 2010-09-16  Eric Blake  <eblake@redhat.com>
12959
12960         fdutimensat: add an atflag parameter
12961         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12962         * lib/utimens.h (fdutimensat): Update prototype.
12963         * tests/test-fdutimensat.c: Adjust test to match.
12964         * NEWS: Document the change.
12965         Suggested by Paul Eggert.
12966
12967 2010-09-16  Bruno Haible  <bruno@clisp.org>
12968
12969         Fix typos in comments.
12970         * lib/striconveh.h: Fix typo in comment.
12971         * lib/login_tty.c (login_tty): Likewise.
12972
12973 2010-09-15  Bruno Haible  <bruno@clisp.org>
12974
12975         stdlib: clarify MirBSD WEXITSTATUS bug
12976         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12977         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12978
12979 2010-09-15  Eric Blake  <eblake@redhat.com>
12980
12981         stdlib: work around MirBSD WEXITSTATUS bug
12982         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12983         * modules/stdlib (Depends-on): Add sys_wait.
12984         * tests/test-sys_wait.c (main): Enhance test.
12985         * tests/test-stdlib.c (main): Likewise.
12986         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12987
12988         docs: mention MacOS issue with WEXITSTATUS(constant)
12989         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12990         issue.
12991         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12992
12993         strnlen: add tests
12994         * modules/strnlen-tests: New file.
12995         * tests/test-strnlen.c: Likewise.
12996
12997 2010-09-14  Bruno Haible  <bruno@clisp.org>
12998
12999         unistr/base: Avoid link errors when module 'libunistring' is also used.
13000         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
13001         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
13002         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
13003         Declare also when HAVE_LIBUNISTRING is set.
13004         Reported by Pádraig Brady <P@draigbrady.com>.
13005
13006 2010-09-14  Eric Blake  <eblake@redhat.com>
13007
13008         test-rawmemchr: make more robust
13009         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
13010         (Depends-on, configure.ac): Add needed prerequisites to use it.
13011         * modules/memchr-tests (Files, Depends-on, configure.ac):
13012         Likewise, to avoid implicit reliance on memchr module prereqs.
13013         * tests/test-memchr.c (main): Ensure proper masking.
13014         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
13015         reads.
13016
13017         memchr: detect glibc Alpha bug
13018         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
13019         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
13020         Alpha.
13021         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
13022         * tests/test-memchr.c (main): Enhance test.
13023         Reported by Nelson H. F. Beebe.
13024
13025 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13026
13027         fts, getcwd, glob: audit for dirfd returning -1
13028         * lib/fts.c (opendir): Remove #define; no longer used.
13029         (opendirat): New arg PDIR_FD.  All callers changed.
13030         (fts_build, _opendir2): Use new opendirat to avoid the need for
13031         dirfd, or for checking whether dirfd returns a negative value.
13032         Don't use opendir; always use openat followed by fdopendir.
13033         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
13034         it.
13035         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
13036         returns -1 here.
13037         * modules/fts (Depends-on): Remove dirfd.
13038         * modules/getcwd (Depends-on): Likewise.
13039
13040 2010-09-13  Eric Blake  <eblake@redhat.com>
13041
13042         float: fix broken MirBSD header
13043         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
13044         * doc/posix-headers/float.texi (float.h): Document it.
13045
13046 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13047
13048         fts: use O_NOFOLLOW to avoid race condition when opening a directory
13049         * lib/fts.c (opendirat): New arg extra_flags.
13050         (__opendir2): Use it to avoid following symlinks when opening
13051         a directory, if symlinks are not supposed to be followed.  See
13052         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
13053
13054         fdopendir: preserve argument fd before returning
13055         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
13056         (fdopendir_with_dup, fd_clone_opendir): New static functions.
13057         (fdopendir): Use them, arranging for FD to be open to the same
13058         directory that it was when it started.  (It might be temporarily
13059         closed while fdopendir is running, so this not thread- or
13060         signal-safe.)  Be careful to do the right thing even when file
13061         descriptors are scarce and dup fails with errno == EMFILE.  See
13062         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
13063
13064 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
13065
13066         regex: Pass the system regex if its only problem is 32-bit regoff_t.
13067         * NEWS: Document change.
13068         * m4/regex.m4: Disable test for regoff_t size.
13069
13070 2010-09-13  Jim Meyering  <meyering@redhat.com>
13071
13072         fts: don't operate on an invalid file descriptor after failed dup
13073         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
13074         negative file descriptor.
13075
13076 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13077
13078         savedir: add streamsavedir, deprecate fdsavedir
13079         * NEWS: Mention deprecation of fdsavedir.
13080         * lib/savedir.c (streamsavedir): New extern function, whose name
13081         ends in "savedir" to be consistent with the others.  This differs
13082         from savedirstream in that it doesn't close its argument.  The
13083         next version of GNU tar will use this instead of fdsavedir, to
13084         avoid some race conditions and conserve file descriptors.
13085         (savedirstream): Reimplement as a wrapper around streamsavedir.
13086         (fdsavedir): Add a comment deprecating this function.  As far as
13087         I know, only GNU tar used it, and GNU tar doesn't need it any more.
13088         * lib/savedir.h (streamsavedir): New decl.
13089         (fdsavedir): Add a comment deprecating this.
13090
13091 2010-09-10  Bruno Haible  <bruno@clisp.org>
13092
13093         langinfo: Fix last commit.
13094         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
13095         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
13096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13097
13098 2010-09-10  Bruno Haible  <bruno@clisp.org>
13099
13100         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
13101         * lib/progreloc.c (O_EXEC): Define fallback.
13102
13103 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13104
13105         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
13106         * NEWS: Document recent changes to fcntl-h.
13107         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
13108         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
13109         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
13110         Similarly for O_SEARCH; this last was already true, but not documented.
13111         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
13112         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
13113         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
13114         Likewise.
13115         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
13116         is zero, not whether it is defined.
13117         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
13118         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
13119         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
13120
13121 2010-09-10  Bruno Haible  <bruno@clisp.org>
13122
13123         langinfo, nl_langinfo: Fix for IRIX 5.3.
13124         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
13125         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
13126         HAVE_LANGINFO_YESEXPR.
13127         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
13128         HAVE_LANGINFO_YESEXPR.
13129         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
13130         HAVE_LANGINFO_T_FMT_AMPM is 0.
13131         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
13132         HAVE_LANGINFO_YESEXPR is 0.
13133         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
13134         NOEXPR.
13135         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
13136         * doc/posix-functions/nl_langinfo.texi: Likewise.
13137         Reported by Eric Blake.
13138
13139 2010-09-10  Bruno Haible  <bruno@clisp.org>
13140
13141         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
13142         * doc/glibc-functions/login_tty.texi: Mention the include file problem
13143         on FreeBSD 8.0 and OpenBSD 4.6.
13144         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
13145         * m4/pty_h.m4 (gl_PTY_H): Likewise.
13146         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
13147         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
13148         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
13149         ac_includes_default.
13150         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13151
13152 2010-09-09  Eric Blake  <eblake@redhat.com>
13153
13154         strsignal: work around NetBSD bug
13155         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
13156         * lib/string.in.h (includes): Likewise.
13157         * doc/posix-functions/strsignal.texi (strsignal): Document the
13158         bug.
13159         Reported by Nelson H. F. Beebe.
13160
13161         gnulib-tool: work with NetBSD /bin/sh
13162         * gnulib-tool (func_cache_var, func_cache_lookup_module)
13163         (func_get_description, func_get_comment, func_get_status)
13164         (func_get_notice, func_get_applicability, func_get_filelist)
13165         (func_get_dependencies, func_get_autoconf_early_snippet)
13166         (func_get_autoconf_snippet, func_get_automake_snippet)
13167         (func_get_include_directive, func_get_link_directive)
13168         (func_get_license, func_get_maintainer, func_import): Avoid
13169         shell syntax errors from parsing syntax extensions.
13170
13171 2010-09-09  Bruno Haible  <bruno@clisp.org>
13172
13173         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13174         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
13175         a reliable way to determine whether the 'alias' command works.
13176
13177 2010-09-08  Jim Meyering  <meyering@redhat.com>
13178
13179         init.sh: penalize a set-x-impaired shell; don't disqualify it
13180         * tests/init.sh: Too many shells corrupt application stderr when
13181         you set -x, so we can't afford to disqualify them, since at least
13182         on Irix-6.5, that would disqualify all bourne shells.
13183         Instead, use a two-pass approach.
13184         On the first pass, try to find a shell that meets the stricter
13185         condition that set -x does not corrupt stderr.
13186         If no shell meets the stricter condition, retest each candidate
13187         shell, but without that extra condition.  Finally, when
13188         VERBOSE=yes is requested and set -x might cause trouble, simply
13189         issue a warning and refrain from enabling debug output.
13190
13191 2010-09-08  Eric Blake  <eblake@redhat.com>
13192
13193         unsetenv: fix OpenBSD bug
13194         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
13195         * doc/posix-functions/unsetenv.texi (unsetenv): Update
13196         documentation.
13197         Reported by Jim Meyering.
13198
13199         strtod: work around IRIX 6.5 bug
13200         * lib/strtod.c (strtod): Reparse number on shorter string if
13201         exponent parse was invalid.
13202         * tests/test-strtod.c (main): Add check for "0x1p 2".
13203         Reported by Tom G. Christensen.
13204
13205         getopt: optimize previous patch
13206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
13207         empty variable.  Speed up awk script.
13208         Reported by Paolo Bonzini.
13209
13210 2010-09-08  Jim Meyering  <meyering@redhat.com>
13211
13212         test.sh: disqualify shells for which set -x corrupts stderr
13213         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
13214         and OpenBSD 4.7.  They make it so with "set -x", environment settings
13215         appear in stderr output.  For example, this command:
13216             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
13217         prints "P=1" on those two systems:
13218
13219 2010-09-08  Bruno Haible  <bruno@clisp.org>
13220
13221         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13222         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
13223         commands, because some shells ignore redirections when there is an
13224         error in the command lookup.
13225         Reported by Eric Blake.
13226
13227 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
13228
13229         * lib/regex.h: Fix a mention of `regex_compile' (should be
13230         `re_compile_pattern').
13231         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
13232         (re_set_registers): Correct name of parameter in comment.
13233
13234         * doc/regex.texi: Add documentation for missing syntax flags.
13235         Remove commented-out documentation of defunct syntax option
13236         RE_NO_EMPTY_ALTS.
13237         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
13238         Add documentation of re_set_registers.
13239         Document trick to re-use a pattern buffer by setting fastmap manually.
13240         Update documentation of struct re_pattern_buffer per public members.
13241         Uncomment documentation of equivalence class operators and
13242         collating symbol operators, since they are now implemented,
13243         Explain leftmost-longest matching in relation to alternatives.
13244         Tidy documentation of substring matching.
13245         Remove POSIX documentation, which is done better in
13246         glibc, and refer the reader there. Keep BSD API documentation, as
13247         that is not readily available elsewhere.
13248
13249 2010-09-07  Eric Blake  <eblake@redhat.com>
13250
13251         getopt: handle POSIXLY_CORRECT set but not exported
13252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
13253         export state of POSIXLY_CORRECT, due to bash set -o posix.
13254         Reported by Dustin J. Mitchell.
13255
13256 2010-09-05  Bruno Haible  <bruno@clisp.org>
13257
13258         gnulib-tool: Highlight the changed options.
13259         * gnulib-tool (func_usage): Display the --import, --add-import,
13260         --remove-import explanations in bold font.
13261
13262 2010-09-06  Karl Berry  <karl@gnu.org>
13263
13264         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
13265
13266 2010-09-05  Bruno Haible  <bruno@clisp.org>
13267
13268         uniwidth/width: Update comment.
13269         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
13270         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
13271
13272 2010-09-05  Bruno Haible  <bruno@clisp.org>
13273
13274         isinf, isnan: Relax license.
13275         * modules/isinf (License): Change from GPL to LGPL, with consent from
13276         Ben Pfaff.
13277         * modules/isnan (License): Likewise.
13278         Requested by Ludovic Courtès.
13279
13280 2010-09-04  Bruno Haible  <bruno@clisp.org>
13281
13282         gnulib-tool: Help migration from --import to --add-import or --update.
13283         * gnulib-tool: Emit a verbose error message when --import is used
13284         without any module name.
13285
13286 2010-09-04  Bruno Haible  <bruno@clisp.org>
13287
13288         Update doc about gnulib-tool.
13289         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
13290         'gnulib-tool --update' in more detail.
13291         Reported by Eric Blake.
13292
13293 2010-09-04  Bruno Haible  <bruno@clisp.org>
13294
13295         gnulib-tool: Change --import. New options --add/remove-import.
13296         * gnulib-tool: New options --add-import, --remove-import.
13297         (func_usage): Document them.
13298         (have_associative): Define always.
13299         (func_import): In import mode, don't merge the specified settings with
13300         the cached settings. Implement remove-import mode.
13301         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
13302         Explain when to use them versus --import.
13303         (Simple update): Use --add-import instead of --import.
13304         * NEWS: Mention the change.
13305
13306 2010-09-04  Bruno Haible  <bruno@clisp.org>
13307
13308         * doc/gnulib-tool.texi (Initial import): Update paragraph about
13309         separate gnulib.mk.
13310
13311 2010-09-04  Bruno Haible  <bruno@clisp.org>
13312
13313         gnulib-tool: Don't talk about CVS any more.
13314         * gnulib-tool (func_usage, func_import): Write "version control"
13315         instead of CVS.
13316
13317 2010-09-04  Jim Meyering  <meyering@redhat.com>
13318
13319         maint.mk: avoid obscure sc_copyright_check failure in coreutils
13320         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
13321         false positives (whose names may be ill-chosen) when searching
13322         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
13323         would cause a false-positive.
13324
13325         avoid coreutils "make distcheck" failure
13326         Coreutils tests with an absolute build directory name that contains
13327         a space.  Not quoting this directory name caused a failure.
13328         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13329         * tests/test-vc-list-files-cvs.sh: Likewise.
13330
13331 2010-09-04  Bruno Haible  <bruno@clisp.org>
13332
13333         gnulib-tool: Avoid error when run in a package without Makefile.am.
13334         * gnulib-tool: When collecting the m4dirs in a package that does not
13335         have a Makefile.am, eliminate those directories that contain no
13336         gnulib-cache.m4. Fix expression that counts these directories.
13337
13338 2010-09-04  Bruno Haible  <bruno@clisp.org>
13339
13340         update-copyright test: Improve output when perl is missing or too old.
13341         * tests/test-update-copyright.sh: Move test of Perl version down after
13342         the test whether Perl exists. Provide an explanation relating Perl's
13343         error message to Automake's SKIP: message.
13344
13345 2010-09-04  Bruno Haible  <bruno@clisp.org>
13346
13347         Don't augment PATH in TESTS_ENVIRONMENT.
13348         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13349         set abs_aux_dir instead of augmenting PATH.
13350         * modules/vc-list-files-tests (Makefile.am): Likewise.
13351         * tests/test-update-copyright.sh: Augment PATH here.
13352         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13353         path_prepend_.
13354         * tests/test-vc-list-files-git.sh: Likewise.
13355
13356 2010-09-04  Jim Meyering  <meyering@redhat.com>
13357
13358         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13359         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13360
13361 2010-09-04  Bruno Haible  <bruno@clisp.org>
13362
13363         strdup: Fix compilation error in C++ mode.
13364         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13365         the macro.
13366
13367 2010-09-04  Bruno Haible  <bruno@clisp.org>
13368
13369         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13370         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13371         macro into a function.
13372         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13373
13374 2010-09-04  Bruno Haible  <bruno@clisp.org>
13375
13376         Set PATH_SEPARATOR the same way autoconf does.
13377         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13378         the value of PATH_SEPARATOR the same way autoconf-generated configure
13379         scripts do.
13380         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13381         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13382
13383 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13384
13385         Set PATH_SEPARATOR the same way autoconf does.
13386         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13387         the same way autoconf-generated configure scripts do.
13388         * posix-modules: Likewise.
13389
13390 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13391
13392         hash: fix safe_hasher const typo
13393         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13394         const; otherwise, there is a type error later.
13395
13396 2010-09-02  Jim Meyering  <meyering@redhat.com>
13397
13398         test-update-copyright.sh: require perl 5.8.0
13399         * tests/test-update-copyright.sh: Require 5.8.0,
13400         which Tom G. Christensen has confirmed is adequate,
13401         while 5.6.1 is not.
13402
13403 2010-09-02  Eric Blake  <eblake@redhat.com>
13404
13405         tests: init.sh improvements for re-exec'ing with zsh
13406         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13407         -vx through shell re-exec.
13408         Reported by Tom G. Christensen.
13409
13410         wctype: fix typo in previous commit
13411         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13412         Reported by Ludovic Courtès.
13413
13414 2010-09-02  Jim Meyering  <meyering@redhat.com>
13415
13416         test-update-copyright.sh: skip test if Perl is too old
13417         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13418         Reported by Tom G. Christensen.
13419
13420 2010-09-02  Bruno Haible  <bruno@clisp.org>
13421
13422         wctype: Avoid compilation error on IRIX 6.5.30.
13423         * lib/wctype.in.h (iswblank): Declare with a replacement if
13424         REPLACE_ISWBLANK is set.
13425         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13426         declared. Set REPLACE_ISWBLANK.
13427         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13428         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13429         * doc/posix-headers/wctype.texi: Likewise.
13430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13431
13432 2010-09-01  Bruno Haible  <bruno@clisp.org>
13433
13434         New module 'socketlib'.
13435         * modules/socketlib: New file.
13436         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13437         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13438         * modules/sockets (Depends-on): Add socketlib.
13439         Suggested by Sam Steingold <sds@gnu.org>.
13440
13441 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13442
13443         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13444
13445         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13446         when one needs search access to a directory but not read access.
13447         On systems where it is available, it works in some cases where
13448         O_RDONLY does not, namely on directories that are searchable but
13449         not readable, and which need only to be searchable.  If O_SEARCH
13450         is not available, fall back to the traditional method of using
13451         O_RDONLY.
13452
13453         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13454         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13455         when opening a directory that needs only to be searchable.
13456         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13457         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13458         * lib/openat-proc.c (openat_proc_name): Likewise.
13459         * lib/openat.c (openat_needs_fchdir): Likewise.
13460         * lib/save-cwd.c (save_cwd): Likewise.
13461         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13462
13463 2010-08-28  Bruno Haible  <bruno@clisp.org>
13464
13465         New module 'host-cpu-c-abi'.
13466         * modules/host-cpu-c-abi: New file.
13467         * m4/host-cpu-c-abi.m4: New file, based on part of
13468         clisp/src/m4/general.m4.
13469         Requested by Sam Steingold <sds@gnu.org>.
13470
13471 2010-08-31  Eric Blake  <eblake@redhat.com>
13472         and Jim Meyering  <meyering@redhat.com>
13473
13474         hash: factor, and guard against misbehaving hasher function
13475         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13476         of table->hasher's return value.  Also protect against a hash value
13477         so large that adding it to table->bucket results in a NULL pointer.
13478         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13479         Use it in place of open-coded check-and-abort.
13480
13481 2010-08-30  Bruno Haible  <bruno@clisp.org>
13482
13483         hash: silence spurious clang warning
13484         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13485         Reported by Eric Blake.
13486
13487 2010-08-30  Eric Blake  <eblake@redhat.com>
13488
13489         strstr, memmem, strcasestr: avoid leaked shell message
13490         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13491         FreeBSD.
13492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13494
13495         tests: silence clang warning
13496         * tests/test-malloca.c (do_allocation): Avoid dead store.
13497
13498 2010-08-29  Bruno Haible  <bruno@clisp.org>
13499
13500         gettext: Fix recent mistake.
13501         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13502
13503 2010-08-29  Bruno Haible  <bruno@clisp.org>
13504
13505         selinux-h: Offer a --without-selinux option.
13506         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13507         --without-selinux was specified, skip all tests and define
13508         HAVE_SELINUX_SELINUX_H to 0.
13509         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13510         set LIB_SELINUX to empty.
13511         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13512         gl_LIBSELINUX. If --without-selinux was specified, replace
13513         selinux/context.h.
13514         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13515
13516 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13517             Bruno Haible  <bruno@clisp.org>
13518
13519         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13520         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13521         of HAVE_REALLOC.
13522         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13523         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13524         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13525         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13526
13527 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13528             Bruno Haible  <bruno@clisp.org>
13529
13530         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13531         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13532         HAVE_CALLOC.
13533         * lib/xmalloc.c: Update accordingly.
13534         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13535         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13536         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13537
13538 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13539             Bruno Haible  <bruno@clisp.org>
13540
13541         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13542         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13543         HAVE_MALLOC.
13544         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13545         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13546         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13547
13548 2010-08-29  Bruno Haible  <bruno@clisp.org>
13549
13550         Update modules list.
13551         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13552         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13553         (String handling <string.h>): Add astrxfrm.
13554         (File system functions): Add readlinkat.
13555
13556 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13557
13558         Tests for module 'realloc-gnu'.
13559         * modules/realloc-gnu-tests: New file.
13560         * tests/test-realloc-gnu.c: New file.
13561
13562         Tests for module 'calloc-gnu'.
13563         * modules/calloc-gnu-tests: New file.
13564         * tests/test-calloc-gnu.c: New file.
13565
13566         Tests for module 'malloc-gnu'.
13567         * modules/malloc-gnu-tests: New file.
13568         * tests/test-malloc-gnu.c: New file.
13569
13570 2010-08-28  Bruno Haible  <bruno@clisp.org>
13571
13572         Rename module 'realloc' -> 'realloc-gnu'.
13573         * modules/realloc-gnu: New file, copied from modules/realloc.
13574         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13575         obsolete.
13576         * modules/mgetgroups (Depends-on): Update.
13577         * doc/posix-functions/realloc.texi: Update.
13578         * NEWS: Mention the change.
13579
13580         Rename module 'calloc' -> 'calloc-gnu'.
13581         * modules/calloc-gnu: New file, copied from modules/calloc.
13582         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13583         obsolete.
13584         * doc/posix-functions/calloc.texi: Update.
13585         * NEWS: Mention the change.
13586
13587         Rename module 'malloc' -> 'malloc-gnu'.
13588         * modules/malloc-gnu: New file, copied from modules/malloc.
13589         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13590         obsolete.
13591         * modules/argp (Depends-on): Update.
13592         * modules/regex (Depends-on): Update.
13593         * doc/posix-functions/malloc.texi: Update.
13594         * NEWS: Mention the change.
13595
13596 2010-08-28  Eric Blake  <eblake@redhat.com>
13597
13598         pread, pwrite: add missing dependency
13599         * modules/pread (Depends-on): Add extensions.
13600         * modules/pwrite (Depends-on): Likewise.
13601
13602 2010-08-28  Bruno Haible  <bruno@clisp.org>
13603
13604         unistr/u*-strchr: Fix tests dependencies.
13605         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13606         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13607         Reported by Ian Beckwith <ianb@erislabs.net>.
13608
13609 2010-08-28  Bruno Haible  <bruno@clisp.org>
13610
13611         read-file: Don't occupy too much unused memory.
13612         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13613
13614 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13615             Eric Blake  <eblake@redhat.com>
13616             Bruno Haible  <bruno@clisp.org>
13617
13618         read-file: Avoid memory reallocations with regular files.
13619         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13620         (fread_file): With regular files, use the remaining length as the
13621         initial buffer size.  Check against overflow.
13622         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13623         sys_stat.
13624
13625 2010-08-28  Bruno Haible  <bruno@clisp.org>
13626
13627         ftello: Relax license.
13628         * modules/ftello (License): Relax to LGPLv2+.
13629         Reported by Eric Blake.
13630
13631 2010-08-28  Bruno Haible  <bruno@clisp.org>
13632
13633         Avoid relocwrapper link errors due to gnulib replacement functions.
13634         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13635         function.
13636         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13637
13638 2010-08-28  Bruno Haible  <bruno@clisp.org>
13639
13640         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13641         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13642         defined.
13643         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13644         Suggested by Eric Blake.
13645
13646 2010-08-28  Bruno Haible  <bruno@clisp.org>
13647
13648         sys_socket, netdb: Ensure socklen_t gets defined.
13649         * modules/sys_socket (Depends-on): Add socklen.
13650         * modules/netdb (Depends-on): Likewise.
13651         * modules/getaddrinfo (Depends-on): Remove socklen.
13652         * modules/getsockopt (Depends-on): Likewise.
13653         * modules/setsockopt (Depends-on): Likewise.
13654         * tests/test-sys_socket.c: Check that socklen_t is defined.
13655         * tests/test-netdb.c: Likewise.
13656         * m4/socklen.m4: Update comments.
13657         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13658
13659 2010-08-27  Eric Blake  <eblake@redhat.com>
13660
13661         login_tty: add missing dependency
13662         * modules/login_tty (Depends-on): Add pty.
13663
13664 2010-08-26  Eric Blake  <eblake@redhat.com>
13665
13666         lib-symbol-versions: fix m4 quoting
13667         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13668         format for AC_LINK_IFELSE.
13669
13670         glob: fix compile test
13671         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13672
13673         btowc: fix missing file
13674         * modules/btowc (Files): Also ship locale-fr.m4.
13675
13676         lseek: fix link test
13677         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13678         AC_LINK_IFELSE.
13679
13680         include_next: silence autoconf 2.68 warning
13681         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13682         AC_COMPILE_IFELSE as special.
13683         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13684         autoconf < 2.68.
13685
13686         acl: fix compilation test
13687         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13688         AC_COMPILE_IFELSE.
13689
13690 2010-08-26  Bruno Haible  <bruno@clisp.org>
13691
13692         Modernize AC_TRY_RUN invocations.
13693         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13694         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13695         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13696         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13697         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13698         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13699         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13700         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13701         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13702         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13703         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13704         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13705         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13706         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13707         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13708         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13709         gl_MBRLEN_NUL_RETVAL): Likewise.
13710         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13711         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13712         Likewise.
13713         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13714         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13715         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13716         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13717         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13718         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13719         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13720         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13721         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13722         Likewise.
13723         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13724         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13725         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13726         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13727         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13728         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13729         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13730         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13731         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13733
13734 2010-08-26  Bruno Haible  <bruno@clisp.org>
13735
13736         Modernize AC_TRY_LINK invocations.
13737         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13738         AC_TRY_LINK.
13739         * m4/argp.m4 (gl_ARGP): Likewise.
13740         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13741         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13742         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13743         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13744         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13745         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13746         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13747         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13748         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13749         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13750         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13751         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13752         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13753         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13754         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13755         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13756         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13757         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13758         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13759         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13760         Likewise.
13761         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13762         Likewise.
13763         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13764         Likewise.
13765         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13766         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13767         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13768         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13769         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13770         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13771         * m4/servent.m4 (gl_SERVENT): Likewise.
13772         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13773         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13774         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13775         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13776         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13777         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13778         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13779         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13780         * modules/tsearch-tests (configure.ac): Likewise.
13781
13782 2010-08-26  Bruno Haible  <bruno@clisp.org>
13783
13784         Modernize AC_TRY_COMPILE invocations.
13785         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13786         AC_TRY_COMPILE.
13787         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13788         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13789         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13790         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13791         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13792         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13793         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13794         * m4/lock.m4 (gl_LOCK): Likewise.
13795         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13796         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13797         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13798         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13799         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13800         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13801         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13802         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13803         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13804         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13805         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13806         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13807         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13808         extraneous semicolon.
13809
13810 2010-08-26  Jim Meyering  <meyering@redhat.com>
13811
13812         stat-time: relax license LGPL
13813         * modules/stat-time (License): Change from GPL to LGPL,
13814         with consent from all contributors, for use in libguile.
13815         Requested by Ludovic Courtès.
13816
13817 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13818
13819         poll: return immediately on POLLHUP.
13820         * lib/poll.c (poll): Always set timeout before wait_timeout is
13821         computed.
13822
13823 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13824
13825         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13826         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13827         rmdir ("dir/.//"), unlinkat.
13828
13829 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13830
13831         stdbool: avoid spurious failure with modern xlc
13832         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13833
13834 2010-08-24  Bruno Haible  <bruno@clisp.org>
13835
13836         getloadavg: simplify code
13837         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13838         gl_have_func. Update comments.
13839
13840 2010-08-24  Eric Blake  <eblake@redhat.com>
13841
13842         getloadavg: don't define SVR4 on cygwin
13843         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13844         only define SVR4 when -lkvm is required.
13845         Reported by Yaakov Selkowitz.
13846
13847 2010-08-24  Bruno Haible  <bruno@clisp.org>
13848
13849         priv-set: fix comment
13850         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13851
13852 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13853
13854         priv-set: fix comments
13855         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13856         to match code, as suggested by David Bartley in:
13857         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13858
13859 2010-08-23  Eric Blake  <eblake@redhat.com>
13860
13861         stdbool: avoid rejecting clang
13862         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13863         * tests/test-stdbool.c: Enable more tests if using the system
13864         <stdbool.h> instead of the gnulib replacement.
13865         (main): Move xlc bug test to a runtime test for all compilers.
13866         Reported by Anders Kaseorg.
13867
13868         argz: fix shell quoting issue
13869         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13870         Reported by Charles Wilson.
13871
13872 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13873             Erik Faye-Lund <kusmabite@gmail.com>
13874
13875         poll, select: handle ERROR_BROKEN_PIPE.
13876         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13877         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13878         * lib/select.c (win32_compute_revents): Do not mark a pipe
13879         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13880
13881 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13882
13883         fts: allow compilation with C++
13884         * lib/fts_.h: Specify extern "C" linkage with C++.
13885
13886 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13887
13888         Fix gnulib-tool sed script de-commentation for AIX sed.
13889         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13890         sed.
13891
13892 2010-08-17  Eric Blake  <eblake@redhat.com>
13893
13894         test-stddef: test for (some) offsetof bugs
13895         * tests/test-stddef.c: Enhance test to ensure correct type of
13896         offsetof.
13897         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13898         that we are not fixing at this time.
13899
13900 2010-08-15  Bruno Haible  <bruno@clisp.org>
13901
13902         stpncpy: Allow stpncpy to be defined as a macro.
13903         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13904         if it's already correctly declared.
13905         * lib/string.in.h (stpncpy): Undefine before redefining.
13906         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13907
13908 2010-08-14  Bruno Haible  <bruno@clisp.org>
13909
13910         Rename module 'memxfrm' to 'amemxfrm'.
13911         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13912         (amemxfrm): Renamed from memxfrm.
13913         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13914         (amemxfrm): Renamed from memxfrm.
13915         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13916         * NEWS: Mention the change.
13917         * MODULES.html.sh (String handling <string.h>): Update.
13918         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13919         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13920         * lib/unicase/u16-casexfrm.c: Likewise.
13921         * lib/unicase/u32-casexfrm.c: Likewise.
13922         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13923         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13924         * lib/uninorm/u16-normxfrm.c: Likewise.
13925         * lib/uninorm/u32-normxfrm.c: Likewise.
13926         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13927         memxfrm.
13928         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13929         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13930         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13931         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13932         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13933         Suggested by Paul Eggert.
13934
13935 2010-08-14  Bruno Haible  <bruno@clisp.org>
13936
13937         Tests for module 'astrxfrm'.
13938         * modules/astrxfrm-tests: New file.
13939         * tests/test-astrxfrm.c: New file.
13940
13941         New module 'astrxfrm'.
13942         * lib/astrxfrm.h: New file.
13943         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13944         * modules/astrxfrm: New file.
13945
13946 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13947
13948         regex: Tweak doc.
13949         * doc/regex.texi (Overview): Don't mention regex.c.
13950         (GNU Regular Expression Compiling): Likewise.
13951         (Match-end-of-line Operator): Mention 'not_eol'.
13952
13953 2010-08-14  Brian Gough  <bjg@gnu.org>
13954             Bruno Haible  <bruno@clisp.org>
13955
13956         git-merge-changelog: add doc relating to use with bzr and hg.
13957         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13958
13959 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13960
13961         pthread: fix pthread.h creation for srcdir != builddir
13962         * modules/pthread (Makefile.am): Fix the rule to work also in a
13963         non-srcdir build.
13964
13965 2010-08-13  Karl Berry  <karl@gnu.org>
13966
13967         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13968         * doc/posix-*/*: force line break before @url of POSIX
13969         specifications.
13970         Suggested by Werner Lemberg.
13971
13972 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13973
13974         strtod: fix const diagnostic
13975         * lib/strtod.c (strtod): Don't assign const char * to char *,
13976         as this elicits a warning from GCC when warnings are enabled.
13977
13978 2010-08-10  Pádraig Brady <P@draigbrady.com>
13979         and Eric Blake  <eblake@redhat.com>
13980
13981         copy-acl: ignore ENOTSUP on HP-UX
13982         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13983         so that it is available for HP-UX.
13984         * lib/copy-acl.c (qcopy_acl): Use it.
13985         Reported by Patrick M. Callahan.
13986
13987 2010-08-10  Eric Blake  <eblake@redhat.com>
13988
13989         open, chown: relax license
13990         * modules/open (License): Change to LGPLv2+, with consent by all
13991         authors, for use in augeas.
13992         * modules/chown (License): Likewise.
13993         * modules/lchown (Likewise): Likewise.
13994         Requested by Adam Stokes.
13995
13996 2010-08-09  Karl Berry  <karl@gnu.org>
13997
13998         * build-aux/ar-lib: new file, import from Automake.
13999         * config/srclist.txt: autocheck for updates.
14000
14001 2010-08-09  Eric Blake  <eblake@redhat.com>
14002
14003         readlinkat: adjust client modules
14004         * modules/areadlinkat (Depends-on): Use readlinkat, not
14005         symlinkat.
14006         * modules/areadlinkat-with-size (Depends-on): Likewise.
14007
14008         mknod: be more vocal about danger of running tests as root
14009         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
14010         root, since that is just asking for problems.
14011         Suggested by Bruno Haible, based on a report by Rainer Tammer.
14012
14013         readlinkat: split into its own module
14014         * modules/symlinkat: Split readlinkat...
14015         * modules/readlinkat: ...into separate module.
14016         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
14017         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
14018         * lib/symlinkat.c (readlinkat): Move...
14019         * lib/readlinkat.c: ...into new file.
14020         * modules/symlinkat-tests: Split readlinkat test...
14021         * modules/readlinkat-tests: ...into separate module.
14022         * tests/test-symlinkat.c: Split...
14023         * tests/test-readlinkat.c: ...into new file.
14024         * NEWS: Document the split.
14025         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14026         * lib/unistd.in.h (readlinkat): Likewise.
14027         Suggested by Bruno Haible.
14028
14029 2010-08-08  Bruno Haible  <bruno@clisp.org>
14030
14031         memxfrm: Speed up.
14032         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
14033         that usually only one call to strxfrm is necessary for each string
14034         part.
14035         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14036
14037 2010-08-07  Karl Berry  <karl@gnu.org>
14038
14039         * doc/posix-headers/limits.texi,
14040         * doc/posix-functions/malloc.texi,
14041         * doc/posix-functions/strsignal.texi: missing @item.
14042         * doc/ld-version-script.texi: spurious leading i.
14043         * doc/regex.texi (Interval Operators): no commas inside @var.
14044
14045 2010-08-01  Bruno Haible  <bruno@clisp.org>
14046
14047         Integrate the regex documentation.
14048         * doc/gnulib.texi: Define 'cn' index.
14049         (Regular expressions): New a chapter that includes regex.texi and
14050         regexprops-generic.texi.
14051         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
14052         syntax.
14053
14054         Whitespace cleanup.
14055         * doc/regex.texi: Remove trailing spaces.
14056
14057         Add regex documentation.
14058         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
14059         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
14060         Written by Kathy A. Hargreaves and Karl Berry.
14061
14062 2010-08-01  Bruno Haible  <bruno@clisp.org>
14063
14064         link: Update documentation.
14065         * doc/posix-functions/link.texi: Update regarding Solaris.
14066
14067 2010-07-31  Bruno Haible  <bruno@clisp.org>
14068
14069         Update modules list.
14070         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
14071         (String handling <string.h>): Add memcmp2, memxfrm.
14072         (Container data structures): Add xlist, xsublist, xoset.
14073         (Core language properties): Add alignof, unused-parameter.
14074         (Process control, Numeric conversion functions <stdlib.h>): Renamed
14075         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
14076         (Unibyte characters <ctype.h>): New section.
14077         (String handling <string.h>): New section.
14078         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
14079         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
14080         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
14081         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
14082         tan, tanh, tanl, y0, y1, yn.
14083         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
14084         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
14085         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
14086         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
14087         unlockpt, vdprintf, vdprintf-posix.
14088         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
14089         (File system functions): Add concat-filename, sys_file, sys_ioctl,
14090         xconcat-filename.
14091         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
14092         getdtablesize, pipe2, pipe2-safer.
14093         (Security): New section.
14094         (Networking functions): Add accept4.
14095         (Signal handling): Add sigpipe.
14096         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
14097         mbmemcasecoll.
14098         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
14099         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
14100         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
14101         pipe-filter-ii.
14102         (Misc): Add argp-version-etc, login_tty, parse-duration.
14103
14104 2010-07-31  Bruno Haible  <bruno@clisp.org>
14105
14106         Improve doc in MODULES.html.
14107         * modules/linkat (Description): Add the word "function".
14108         * modules/mkfifo (Description): Likewise.
14109         * modules/mknod (Description): Likewise.
14110         * modules/remove (Description): Likewise.
14111         * modules/renameat (Description): Likewise.
14112         * modules/stat (Description): Likewise.
14113         * modules/symlink (Description): Likewise.
14114         * modules/unlink (Description): Likewise.
14115
14116 2010-07-31  Bruno Haible  <bruno@clisp.org>
14117
14118         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
14119         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
14120         option --enable/disable-c++ instead of --enable/disable-cxx.
14121         * NEWS: Mention the change.
14122
14123 2010-07-31  Bruno Haible  <bruno@clisp.org>
14124
14125         readlink, areadlink: Relax test a bit.
14126         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
14127         alternative to ENOTDIR.
14128         * tests/test-areadlink.h (test_areadlink): Likewise.
14129         Reported by Rainer Tammer.
14130
14131 2010-07-31  Bruno Haible  <bruno@clisp.org>
14132
14133         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
14134         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
14135         character, perform the search using U_STRCHR.
14136         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
14137         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
14138         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
14139         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
14140         Suggested by Paolo Bonzini.
14141
14142 2010-07-31  Bruno Haible  <bruno@clisp.org>
14143
14144         unistr/u*-strstr: Fix dependencies.
14145         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
14146         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
14147         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
14148
14149 2010-07-31  Bruno Haible  <bruno@clisp.org>
14150
14151         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
14152         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
14153         the beginning of the loop.
14154         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
14155         cases in 'switch' statement.
14156
14157         unistr/u8-strchr: Fix several bugs.
14158         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
14159         the string. When not found, return NULL, not a pointer near the end.
14160
14161         More tests for unistr/u8-strchr.
14162         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
14163         that the function does not read past the first occurrence of the byte
14164         being searched.
14165         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
14166         * tests/unistr/test-u16-strchr.c (main): New function.
14167         * tests/unistr/test-u32-strchr.c (main): New function.
14168
14169 2010-07-31  Bruno Haible  <bruno@clisp.org>
14170
14171         posix-modules: Ignore backup files of documentation files.
14172         * posix-modules: grep only through files named *.texi.
14173
14174 2010-07-31  Bruno Haible  <bruno@clisp.org>
14175
14176         symlinkat: Fix documentation.
14177         * doc/posix-functions/readlinkat.texi: Fix module name.
14178
14179 2010-07-31  Bruno Haible  <bruno@clisp.org>
14180
14181         fchownat: Replace also when chown has the trailing slash bug.
14182         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
14183         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
14184         introduced on 2010-04-10.
14185         Reported by Rainer Tammer.
14186
14187 2010-07-31  Bruno Haible  <bruno@clisp.org>
14188
14189         linkat: Work around AIX 7.1 bug.
14190         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
14191         whether linkat handles trailing slash correctly. If not, replace linkat
14192         and define LINKAT_TRAILING_SLASH_BUG.
14193         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
14194         check whether (fd1,file1) points to a directory if file1 or file2 ends
14195         in a slash. Code taken from lib/link.c.
14196         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
14197         Reported by Rainer Tammer.
14198
14199 2010-07-31  Bruno Haible  <bruno@clisp.org>
14200
14201         Correctly determine whether pow is available in libc on AIX 7 with xlc.
14202         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
14203         This disables an xlc optimization that was causing wrong test results.
14204         Reported by Rainer Tammer.
14205
14206 2010-07-31  Bruno Haible  <bruno@clisp.org>
14207
14208         iconv: Work around AIX 6.1..7.1 bug.
14209         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
14210         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
14211         cross-compiling, guess no on all versions of AIX.
14212         Reported by Rainer Tammer.
14213
14214 2010-07-31  Bruno Haible  <bruno@clisp.org>
14215
14216         readlink: Relax test a bit.
14217         * tests/test-readlink.h (test_readlink): Allow different errno value
14218         when readlink is called with a file name that ends in / and refers to
14219         a file.
14220         Suggested by Eric Blake.
14221         Reported by Rainer Tammer.
14222
14223 2010-07-31  Bruno Haible  <bruno@clisp.org>
14224
14225         copysign: Does not require -lm on glibc systems.
14226         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
14227         gl_COMMON_DOUBLE_MATHFUNC.
14228         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
14229
14230 2010-07-31  Bruno Haible  <bruno@clisp.org>
14231
14232         duplocale: Work around AIX 7.1 bug.
14233         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
14234         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
14235         * lib/duplocale.c (rpl_duplocale): Update comment.
14236         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
14237         Reported by Rainer Tammer.
14238
14239 2010-07-30  Bruno Haible  <bruno@clisp.org>
14240
14241         dirfd: Avoid link error on AIX 7.1.
14242         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
14243         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
14244         exist, set REPLACE_DIRFD.
14245         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
14246         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
14247         * doc/posix-functions/dirfd.texi: Update.
14248         Reported by Rainer Tammer.
14249
14250 2010-07-30  Eric Blake  <eblake@redhat.com>
14251
14252         strtod: next round of AIX fixes
14253         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
14254         exponent.
14255         * tests/test-strtod.c (main): Enhance tests.
14256         * doc/posix-functions/strtod.texi (strtod): Document next bug.
14257         Reported by Rainer Tammer.
14258
14259         futimens: fix configure check
14260         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
14261         Reported by Bruno Haible.
14262
14263 2010-07-30  Bruno Haible  <bruno@clisp.org>
14264
14265         getline: Update regarding AIX.
14266         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
14267         Reported by Rainer Tammer.
14268
14269 2010-07-30  Bruno Haible  <bruno@clisp.org>
14270
14271         wcwidth: Drop replacement on AIX 7.
14272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
14273         AIX 7.
14274         Reported by Rainer Tammer.
14275
14276 2010-07-30  Bruno Haible  <bruno@clisp.org>
14277
14278         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
14279         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
14280         a 'char *'.
14281         Reported by Rainer Tammer.
14282
14283 2010-07-30  Bruno Haible  <bruno@clisp.org>
14284
14285         unlink: Update regarding AIX.
14286         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
14287         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
14288         Reported by Rainer Tammer.
14289
14290 2010-07-30  Bruno Haible  <bruno@clisp.org>
14291
14292         symlink: Update regarding AIX.
14293         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
14294         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
14295         Reported by Rainer Tammer.
14296
14297 2010-07-30  Bruno Haible  <bruno@clisp.org>
14298
14299         strndup: Update regarding AIX.
14300         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
14301         AIX 7.
14302         Reported by Rainer Tammer.
14303
14304 2010-07-30  Bruno Haible  <bruno@clisp.org>
14305
14306         stat: Update regarding AIX.
14307         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
14308         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
14309         Reported by Rainer Tammer.
14310
14311 2010-07-30  Bruno Haible  <bruno@clisp.org>
14312
14313         truncl: Fix autoconf test.
14314         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
14315         whether truncl works.
14316         Reported by Rainer Tammer.
14317
14318 2010-07-30  Bruno Haible  <bruno@clisp.org>
14319
14320         round: Update regarding AIX.
14321         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
14322         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
14323         Reported by Rainer Tammer.
14324
14325 2010-07-30  Bruno Haible  <bruno@clisp.org>
14326
14327         rename: Update regarding AIX.
14328         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14329         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14330         Reported by Rainer Tammer.
14331
14332 2010-07-30  Bruno Haible  <bruno@clisp.org>
14333
14334         printf.m4: Update regarding AIX.
14335         * m4/printf.m4: Update comments regarding AIX.
14336         Reported by Rainer Tammer.
14337
14338 2010-07-30  Bruno Haible  <bruno@clisp.org>
14339
14340         iconv: Update regarding AIX.
14341         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14342         AIX 7.
14343         Reported by Rainer Tammer.
14344
14345 2010-07-30  Bruno Haible  <bruno@clisp.org>
14346
14347         getopt: Update regarding AIX.
14348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14349         no on AIX.
14350         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14351         Reported by Rainer Tammer.
14352
14353 2010-07-30  Bruno Haible  <bruno@clisp.org>
14354
14355         ldexpl; Update regarding AIX.
14356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14357         on AIX 7.
14358         Reported by Rainer Tammer.
14359
14360 2010-07-30  Bruno Haible  <bruno@clisp.org>
14361
14362         frexpl: Update regarding AIX.
14363         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14364         on AIX 7.
14365         Reported by Rainer Tammer.
14366
14367 2010-07-30  Bruno Haible  <bruno@clisp.org>
14368
14369         open, fopen: Update regarding AIX.
14370         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14371         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14372         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14373         * doc/posix-functions/fopen.texi: Likewise.
14374         Reported by Rainer Tammer.
14375
14376 2010-07-30  Bruno Haible  <bruno@clisp.org>
14377
14378         chown: Update doc regarding AIX.
14379         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14380         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14381         Reported by Rainer Tammer.
14382
14383 2010-07-30  Eric Blake  <eblake@redhat.com>
14384
14385         strtod: fix bug in replacement function on AIX
14386         * lib/strtod.c (strtod): Special case broken "0x" parse in
14387         underlying strtod.
14388         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14389         * doc/posix-functions/strtod.texi (strtod): Likewise.
14390         Reported by Rainer Tammer.
14391
14392 2010-07-30  Bruno Haible  <bruno@clisp.org>
14393
14394         mbrlen: Fix cross-compilation guess for AIX.
14395         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14396         guess. Leftover from 2008-12-22.
14397
14398 2010-07-30  Bruno Haible  <bruno@clisp.org>
14399
14400         mbrtowc: Fix cross-compilation guess for AIX.
14401         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14402         guess. Leftover from 2008-12-21.
14403
14404 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14405
14406         init.sh: work around trap limitation of some shells
14407         * tests/init.sh (setup_): Move exit trap outside of shell function.
14408
14409 2010-07-29  Eric Blake  <eblake@redhat.com>
14410
14411         strtod: aid debugging
14412         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14413         understanding why strtod is rejected.
14414
14415 2010-07-28  Bruno Haible  <bruno@clisp.org>
14416
14417         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14418         * lib/unistr/u8-chr.c: Include <string.h>.
14419         * tests/unistr/test-u8-chr.c: Likewise.
14420         * tests/unistr/test-u16-chr.c: Likewise.
14421         * tests/unistr/test-u32-chr.c: Likewise.
14422         * tests/unistr/test-u8-strchr.c: Likewise.
14423         * tests/unistr/test-u16-strchr.c: Likewise.
14424         * tests/unistr/test-u32-strchr.c: Likewise.
14425         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14426         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14427         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14428         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14429
14430 2010-07-28  Bruno Haible  <bruno@clisp.org>
14431
14432         Use spaces for indentation, not tabs.
14433         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14434
14435 2010-07-27  Bruno Haible  <bruno@clisp.org>
14436
14437         mbspcasecmp: Fix function specification.
14438         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14439         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14440         Reported by Eric Blake <eblake@redhat.com>.
14441
14442 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14443
14444         timespec: use cast and not conditional, as truncation isn't possible
14445         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14446         instead of a conditional.  Comment about the situation in more detail.
14447         This undoes most of the 2009-10-29 patch.
14448
14449 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14450
14451         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14452         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14453         * lib/unistr/u8-strchr.c: Likewise.
14454         * modules/unistr/u8-chr: Depend on memchr.
14455
14456         unistr/u*-strchr: add tests
14457         * modules/unistr/u8-strchr-tests: New file.
14458         * modules/unistr/u16-strchr-tests: New file.
14459         * modules/unistr/u32-strchr-tests: New file.
14460         * tests/unistr/test-strchr.h: New file.
14461         * tests/unistr/test-u8-strchr.c: New file.
14462         * tests/unistr/test-u16-strchr.c: New file.
14463         * tests/unistr/test-u32-strchr.c: New file.
14464
14465         unistr/u*-chr: test multibyte sequences more
14466         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14467         test vector.
14468         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14469         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14470         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14471
14472         unistr/u*-chr: test multibyte sequences
14473         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14474
14475         unistr/u*-chr: prepare for multibyte tests
14476         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14477         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14478         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14479         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14480         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14481         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14482
14483 2010-07-18  Bruno Haible  <bruno@clisp.org>
14484
14485         unistr/u8-strchr: Optimize non-ASCII argument case.
14486         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14487         because the first byte often matches anyway.
14488         Reported by Pádraig Brady <P@draigbrady.com>.
14489
14490 2010-07-15  Karl Berry  <karl@gnu.org>
14491
14492         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14493
14494 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14495
14496         getcwd: on Solaris, work better if ancestors are inaccessible
14497         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14498         buffer and size, try again with a large buffer.  This works better
14499         on Solaris, since its getcwd succeeds even if the path to the root
14500         is inaccessible, and this is helpful in common cases such as .zfs
14501         hidden directories.  Problem reported by J Chapman Flack in
14502         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14503         Use system getcwd if it's declared, not merely if it's partly
14504         working; use the partly-working test only to avoid needless effort
14505         if the system getcwd fails.
14506         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14507         comment that was already obsolete and is now even more obsolete.
14508         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14509         now might call strdup.
14510
14511 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14512
14513         pthread: Add enough so that coreutils/src/sort.c compiles.
14514         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14515         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14516         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14517         Include <sys/types.h>, in case it defines pthread_t.
14518         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14519         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14520         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14521         (pthread_rwlockattr_t, pthread_spinlock_t):
14522         New typedefs, if HAVE_PTHREAD_T is not defined.
14523         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14524         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14525         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14526         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14527         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14528         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14529         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14530         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14531         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14532         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14533         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14534         New macros.
14535         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14536         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14537         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14538         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14539         (pthread_spin_unlock): New dummy functions.
14540         (pthread_create): Return EAGAIN; don't set errno.
14541         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14542         require AC_C_INLINE.
14543         * modules/pthread (Depends-on): Add sched, time.
14544         (pthread.h): Use AM_V_GEN.
14545
14546 2010-07-13  Bruno Haible  <bruno@clisp.org>
14547
14548         striconveh: Don't malloc memory if the result buffer is sufficient.
14549         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14550         buffer if its size is sufficient.
14551         Reported by Ludovic Courtès <ludo@gnu.org>.
14552
14553 2010-07-13  Bruno Haible  <bruno@clisp.org>
14554
14555         strtod: Add safety check.
14556         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14557
14558 2010-07-12  Bruno Haible  <bruno@clisp.org>
14559
14560         Unify tests that set gl_cv_func_ldexpl_no_libm.
14561         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14562         gl_FUNC_LDEXPL.
14563         (gl_FUNC_LDEXPL): Invoke it.
14564         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14565
14566 2010-07-12  Bruno Haible  <bruno@clisp.org>
14567
14568         Unify tests that set gl_cv_func_ldexp_no_libm.
14569         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14570         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14571         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14572         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14573         * modules/strtod (Files): Add m4/ldexp.m4.
14574
14575 2010-07-12  Bruno Haible  <bruno@clisp.org>
14576
14577         Unify tests that set gl_cv_func_frexpl_no_libm.
14578         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14579         gl_FUNC_FREXPL_NO_LIBM.
14580         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14581         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14582
14583 2010-07-12  Bruno Haible  <bruno@clisp.org>
14584
14585         Unify tests that set gl_cv_func_frexp_no_libm.
14586         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14587         gl_FUNC_FREXP_NO_LIBM.
14588         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14589         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14590
14591 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14592
14593         memcoll: clarify sizes versus lengths, document better, and tweak perf
14594         * lib/memcoll.c (strcoll_loop, memcoll0):
14595         Improve quality of descriptive comments.  Name variables
14596         consistently as to whether they are lengths (which do not include
14597         terminating null) versus sizes (which do).
14598         * lib/xmemcoll.c (xmemcoll0): Likewise.
14599         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14600         returned when s1size == 0; this is easier to compile and saves
14601         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14602
14603 2010-07-12  Bruno Haible  <bruno@clisp.org>
14604
14605         Tests for module '_Exit'.
14606         * modules/_Exit-tests: New file.
14607         * tests/test-_Exit.sh: New file.
14608         * tests/test-_Exit.c: New file.
14609
14610         New module '_Exit'.
14611         * lib/stdlib.in.h (__attribute__): New macro.
14612         (_Exit): New declaration.
14613         * lib/_Exit.c: New file.
14614         * m4/_Exit.m4: New file.
14615         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14616         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14617         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14618         * modules/_Exit: New file.
14619         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14620         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14621
14622 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14623
14624         strtod: make it more-accurate typically, and don't require libm
14625         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14626         Include limits.h.  Don't include string.h.
14627         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14628         (locale_isspace): New function, so that no casts are needed to
14629         check whether *s is a space.
14630         (ldexp): Provide an unused dummy if not available.
14631         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14632         (strtod): Use them.  This implementation prefers to use the
14633         underlying strtod if available, falling back on our own code
14634         only to fix known bugs.  This is more likely to produce an
14635         accurate result.  Also, it avoids the use of libm functions.
14636         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14637         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14638         was absent, but it caused a test failure with coreutils.
14639         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14640         with libm.
14641         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14642         * modules/strtod-tests (Makefile.am): Likewise.
14643
14644 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14645             Bruno Haible  <bruno@clisp.org>
14646
14647         unistr/u8-strchr: Optimize ASCII argument case.
14648         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14649
14650 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14651
14652         (x)memcoll: minor tweaks
14653         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14654         is after the type that it qualifies.
14655         (memcoll0): Likewise.
14656         * lib/memcoll.h (memcoll0): Likewise.
14657         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14658         * lib/xmemcoll.h (xmemcoll0): Likewise.
14659         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14660         differs from memcoll in that the NUL byte is part of the argument.
14661         Omit the abort-checks, as performance is a real issue here.  Plus,
14662         the checks were wrong anyway (an off-by-one error).  Omit local
14663         variable 'diff', as it's a bit clearer that way.
14664         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14665         no longer needed.
14666
14667 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14668
14669         (x)memcoll: speedup when input is known to be NUL delimited
14670         * lib/memcoll.c: Include stdlib.
14671         (memcoll0): New function.
14672         (strcoll_loop): New function, refactored for use in both memcoll
14673         and memcoll0.
14674         * lib/memcoll.h (memcoll0): Add prototype.
14675         * lib/xmemcoll.c (xmemcoll0): New function.
14676         (collate_error): New function, refactored for use in both xmemcoll
14677         and xmemcoll0.
14678         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14679         * m4/memcoll.m4: add inline invocation.
14680
14681 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14682
14683         * build-aux/bootstrap: Remove any local translations
14684         from the translation project synchronization directory,
14685         so that local only translations are not distributed.
14686
14687 2010-07-04  Bruno Haible  <bruno@clisp.org>
14688
14689         fsusage: Clarify which code applies to which platforms.
14690         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14691         platform.
14692         * lib/fsusage.c (get_fs_usage): Likewise.
14693
14694 2010-07-04  Bruno Haible  <bruno@clisp.org>
14695
14696         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14697         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14698         Reported by Martin Lambers <marlam@marlam.de>.
14699
14700 2010-07-04  Jim Meyering  <meyering@redhat.com>
14701
14702         hash: once again explicitly disallow insertion of NULL
14703         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14704         inserting a NULL pointer cannot work with these functions.
14705         Add a comment with details.
14706         This reverts part of the 2010-07-01 commit, 5bef1a35
14707         "hash: extend module to deal with non-pointer keys".
14708
14709 2010-07-01  Bruno Haible  <bruno@clisp.org>
14710
14711         stdbool: Update doc.
14712         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14713         Info from Christian Weisgerber <naddy@mips.inka.de>.
14714
14715 2010-07-01  Jim Meyering  <meyering@redhat.com>
14716
14717         hash: extend module to deal with non-pointer keys
14718         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14719         but that allows insertion of non-pointer entries.
14720         Do not disallow an ENTRY value of NULL.
14721         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14722         * lib/hash.h (hash_insert0): Declare.
14723
14724 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14725
14726         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14727         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14728         not present (i.e. with autoconf 2.59 and when using gettextize, not
14729         gnulib), require AC_GNU_SOURCE instead.
14730
14731 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14732
14733         idpriv-drop: Fix tests.
14734         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14735         not to the test-idpriv-droptemp program.
14736
14737 2010-06-29  Bruno Haible  <bruno@clisp.org>
14738
14739         string: Fix syntax error with g++ 2.96.
14740         * lib/string.in.h (__pure__): Remove definition.
14741         (_GL_ATTRIBUTE_PURE): New macro.
14742         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14743         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14744         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14745
14746 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14747
14748         unitypes: Fix bug introduced on 2010-05-18.
14749         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14750
14751 2010-06-22  Eric Blake  <eblake@redhat.com>
14752
14753         memmem: slight optimization
14754         * lib/str-two-way.h (critical_factorization): Update comments.
14755         Reduce work during factorization phase.
14756         Reported by Carlos Bueno <carlos@bueno.org>.
14757
14758 2010-06-21  Bruno Haible  <bruno@clisp.org>
14759
14760         Fix HAVE_CALLOC_POSIX misnomer.
14761         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14762         !HAVE_CALLOC_POSIX.
14763         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14764         HAVE_CALLOC_POSIX.
14765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14766         instead of HAVE_CALLOC_POSIX.
14767         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14768         HAVE_CALLOC_POSIX.
14769
14770         Use modern idiom for calloc() replacement.
14771         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14772         AC_FUNC_CALLOC.
14773         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14774         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14775         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14776         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14777         (gl_REPLACE_CALLOC): New macro.
14778
14779 2010-06-21  Bruno Haible  <bruno@clisp.org>
14780
14781         Fix HAVE_REALLOC_POSIX misnomer.
14782         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14783         !HAVE_REALLOC_POSIX.
14784         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14785         HAVE_REALLOC_POSIX.
14786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14787         instead of HAVE_REALLOC_POSIX.
14788         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14789         HAVE_REALLOC_POSIX.
14790
14791         Use modern idiom for realloc() replacement.
14792         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14793         AC_FUNC_REALLOC.
14794         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14795         Autoconf's AC_FUNC_REALLOC.
14796         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14797         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14798         (gl_REPLACE_REALLOC): New macro.
14799         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14800
14801 2010-06-21  Bruno Haible  <bruno@clisp.org>
14802
14803         Fix HAVE_MALLOC_POSIX misnomer.
14804         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14805         !HAVE_MALLOC_POSIX.
14806         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14807         HAVE_MALLOC_POSIX.
14808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14809         instead of HAVE_MALLOC_POSIX.
14810         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14811         HAVE_MALLOC_POSIX.
14812
14813         Use modern idiom for malloc() replacement.
14814         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14815         AC_FUNC_MALLOC.
14816         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14817         Autoconf's AC_FUNC_MALLOC.
14818         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14819         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14820         (gl_REPLACE_MALLOC): New macro.
14821         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14822
14823 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14824
14825         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14826         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14827         This macro takes 3 arguments, not 4.
14828
14829 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14830
14831         ipv6: fix detection under mingw
14832         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14833         in6_addr.
14834
14835 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14836
14837         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14838         that strtod() works when cross-compiling to a glibc version known
14839         to work.
14840
14841 2010-06-15  Bruno Haible  <bruno@clisp.org>
14842
14843         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14844
14845 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14846
14847         select: Correct timeout.
14848         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14849
14850 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14851
14852         git-version-gen: init shell var to avoid env var influence
14853         * build-aux/git-version-gen (v): Init shell var to empty.
14854
14855 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14856
14857         priv-set: Don't assume that priv.h exists merely because getppriv does.
14858         See Jan Andersen's bug report about AIX 5L in
14859         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14860         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14861         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14862         * lib/priv-set.h: Likewise.
14863         * tests/test-priv-set.c: Likewise.
14864
14865 2010-06-13  Bruno Haible  <bruno@clisp.org>
14866
14867         relocatable: Make it easier to test whether to install wrappers.
14868         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14869         RELOCATABLE_VIA_WRAPPER.
14870
14871 2010-06-13  Bruno Haible  <bruno@clisp.org>
14872
14873         gnulib-tool: Display specified modules and dependencies differently.
14874         * gnulib-tool (func_show_module_list): New function.
14875         (func_import, func_create_testdir): Invoke it.
14876         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14877
14878 2010-06-13  Bruno Haible  <bruno@clisp.org>
14879
14880         gnulib-tool: Align code of func_import and func_create_testdir.
14881         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14882         specified_modules.
14883
14884 2010-06-12  Jim Meyering  <meyering@redhat.com>
14885
14886         test-inttostr: avoid spurious failure on Solaris 9
14887         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14888         to accept "%ju".  Reported by Bruno Haible.
14889
14890 2010-06-11  Jim Meyering  <meyering@redhat.com>
14891
14892         test-sys_socket: mark variables as used more readably
14893         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14894         as "used" explicitly via (void) statement casts.  This is more
14895         readable than using them in an artificial return expression.
14896         Suggestion from Bruno Haible.
14897
14898 2010-06-11  Bruno Haible  <bruno@clisp.org>
14899
14900         Avoid some more warnings from "gcc -Wwrite-strings".
14901         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14902         to 'const char *'.
14903         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14904         * tests/test-c-strcasestr.c (main): Likewise.
14905         * tests/test-mbscasestr1.c (main): Likewise.
14906         * tests/test-mbscasestr2.c (main): Likewise.
14907         * tests/test-memmem.c (main): Likewise.
14908         * tests/test-strstr.c (main): Likewise.
14909         * tests/test-strcasestr.c (main): Likewise.
14910
14911 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14912
14913         init.sh: change framework_failure_ to fail with status 99, not 1
14914         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14915         automake's parallel-tests rule that this is an unexpected failure,
14916         even if the test is listed in XFAIL_TESTS.
14917
14918 2010-06-11  Jim Meyering  <meyering@redhat.com>
14919
14920         test-inttostr: avoid warnings about 4-6KB literal strings
14921         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14922         Include "macros.h", for its definition of ASSERT.
14923         (CK): s/assert/ASSERT/
14924         * modules/inttostr-tests (Files): Add macros.h.
14925
14926         init.sh: don't use $ME_ or skip_ before they are defined
14927         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14928         their first uses.  Also hoist their companions: warn_, fail_,
14929         framework_failure_, $stderr_fileno.  Prompted by a patch from
14930         Stefano Lattarini.
14931
14932         test-sys_socket: avoid set-but-not-used warnings from gcc
14933         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14934         avoid warning about set-but-not-used variables.
14935
14936         test-xvasprintf: avoid 'const' discard warnings
14937         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14938         "const" when assigning from literal strings.
14939         (test_xasprintf): Add "void" in function argument list to placate
14940         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14941
14942         tests: avoid compilation warnings in argmatch and exclude tests...
14943         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14944         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14945         Since it always exits, declare with the "noreturn" attribute.
14946         * tests/test-argmatch.c: Likewise.
14947
14948         tests: avoid 'const' discard warnings in mbsstr tests
14949         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14950         * tests/test-mbsstr2.c (main): Likewise.
14951
14952         test-verify: avoid warning from gcc's -Wmissing-declarations
14953         * tests/test-verify.c (function): Declare to be static.
14954
14955         test-inttostr.c: include <string.h> for use of strcmp
14956         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14957
14958         test-linkat: avoid failed assertion on "other" architectures
14959         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14960         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14961         sparc: https://bugs.launchpad.net/bugs/591968
14962
14963 2010-06-11  Jim Meyering  <meyering@redhat.com>
14964
14965         printf.m4: avoid autoconf's "Expanded Before Required" warning
14966         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14967         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14968         autoconf warning.
14969
14970 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14971
14972         Replacement header templates are now named with ".in", not "_".
14973         * doc/gnulib-intro.texi: Correct.
14974
14975 2010-06-10  Jim Meyering  <meyering@redhat.com>
14976
14977         inttostr-tests: depend on snprintf, not snprintf-posix
14978         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14979         snprintf-posix, to avoid this aclocal failure:
14980           missing file gnulib-tests/vasnprintf.c
14981           configure.ac:45: error: expected source file, required through \
14982           AC_LIBSOURCES, not found
14983
14984 2010-06-10  Jim Meyering  <meyering@redhat.com>
14985
14986         inttostr: add a new function, inttostr, and tests
14987         The namesake function was not available.  The existence of the
14988         template file, inttostr.c makes its addition nontrivial.
14989         * lib/anytostr.c: Rename from inttostr.c.
14990         (anytostr): Rename from inttostr.
14991         * lib/inttostr.c: New file.
14992         * modules/inttostr (Files): Add anytostr.c.
14993         (Makefile.am): Set lib_SOURCES instead of ...
14994         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14995         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14996         * lib/offtostr.c: Likewise.
14997         * lib/uinttostr.c: Likewise.
14998         * lib/umaxtostr.c: Likewise.
14999         * modules/inttostr-tests: New file.
15000         * tests/test-inttostr.c: New file.  Test these functions.
15001
15002 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
15003             Bruno Haible  <bruno@clisp.org>
15004
15005         Add "Extending Gnulib" chapter to manual.
15006         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
15007         chapter.
15008         (Extending Gnulib): New chapter.
15009         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
15010         chapter.
15011
15012 2010-06-09  Bruno Haible  <bruno@clisp.org>
15013
15014         Avoid relocwrapper link errors due to gnulib replacement functions.
15015         * lib/areadlink.c: Use the system's malloc, realloc functions.
15016         (areadlink): Set errno to ENOMEM explicitly.
15017         * modules/areadlink (Depends-on): Remove malloc-posix.
15018         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15019
15020 2010-06-09  Bruno Haible  <bruno@clisp.org>
15021
15022         Avoid relocwrapper link errors due to gnulib replacement functions.
15023         * lib/canonicalize-lgpl.c: Use the system's malloc function.
15024         * lib/malloca.c: Likewise.
15025         * lib/relocatable.c: Likewise.
15026         * lib/progreloc.c: Use the system's malloc, sprintf functions.
15027         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
15028         * lib/setenv.c: Use the system's malloc, realloc functions.
15029         * lib/strerror.c: Use the system's sprintf function.
15030         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15031
15032 2010-06-04  Bruno Haible  <bruno@clisp.org>
15033
15034         Prefer documented low-level autoconf macro names.
15035         * m4/lib-link.m4: Use m4_translit instead of translit.
15036         * m4/environ.m4: Likewise.
15037         * m4/mathfunc.m4: Likewise.
15038         * m4/onceonly.m4: Likewise.
15039         * m4/stdint.m4: Likewise.
15040         Suggested by Eric Blake.
15041
15042 2010-06-04  Martin Lambers  <marlam@marlam.de>
15043             Bruno Haible  <bruno@clisp.org>
15044
15045         havelib: Allow library names with '+' characters.
15046         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15047         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
15048
15049 2010-06-09  Bruno Haible  <bruno@clisp.org>
15050
15051         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
15052         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
15053         realloc failed.
15054
15055 2010-06-08  Peter Simons  <simons@cryp.to>
15056
15057         maint.mk: make the news-check rule more configurable
15058         * top/maint.mk (news-check-lines-spec): New variable.
15059         (news-check): Use "sed -n 1,10p" in place of "head".
15060
15061 2010-06-07  Jim Meyering  <meyering@redhat.com>
15062
15063         do-release-commit-and-tag: fix typo in --help
15064         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
15065
15066         regex: avoid new dead-code warning with gcc-4.6.0
15067         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
15068         if-block containing a while-loop.  It's been unused for at least
15069         5 years.
15070
15071 2010-06-05  Bruno Haible  <bruno@clisp.org>
15072
15073         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
15074         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
15075
15076 2010-06-04  Bruno Haible  <bruno@clisp.org>
15077
15078         Update to GNU gettext 0.18.1.
15079         * modules/gettext (configure.ac): Require gettext infrastructure from
15080         version 0.18.1.
15081
15082 2010-06-03  Bruno Haible  <bruno@clisp.org>
15083
15084         Don't use AC_LIBOBJ with file names in subdirectories.
15085         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
15086         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
15087         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
15088         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
15089         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
15090         gl_LIBUNISTRING_LIBSOURCE.
15091         (Makefile.am): Augment lib_SOURCES here, conditionally.
15092         * NEWS: Drop requirement for Automake option 'subdir-objects'.
15093
15094 2010-06-03  Bruno Haible  <bruno@clisp.org>
15095
15096         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
15097         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
15098         expansion does not end with a newline.
15099         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
15100         unnecessary newline.
15101
15102 2010-06-03  Bruno Haible  <bruno@clisp.org>
15103
15104         Reduce dependencies.
15105         * tests/test-quotearg.h: New file, extracted from
15106         tests/test-quotearg.c.
15107         * tests/test-quotearg-simple.c: New file, extracted from
15108         tests/test-quotearg.c.
15109         * tests/test-quotearg.c: Don't include <ctype.h>.
15110         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
15111         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
15112         use_quote_double_quotes, use_quotearg_colon): Moved to
15113         tests/test-quotearg.h.
15114         (results_g, flag_results, custom_quotes, custom_results): Moved
15115         to tests/test-quotearg-simple.c.
15116         (main): Moved the part that does not depend on gettext to
15117         tests/test-quotearg-simple.c. Return 77 if the test cannot be
15118         performed.
15119         * modules/quotearg-simple: New file.
15120         * modules/quotearg-simple-tests: New file.
15121         * modules/quotearg (Depends-on): Add quotearg-simple.
15122         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
15123         (Files): Add tests/test-quotearg.h.
15124         Reported by Paolo Bonzini.
15125
15126 2010-06-03  Bruno Haible  <bruno@clisp.org>
15127
15128         Reduce dependencies.
15129         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
15130
15131 2010-06-03  Bruno Haible  <bruno@clisp.org>
15132
15133         time: Undefine more broken macros.
15134         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
15135         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
15136         Reported by Eric Blake.
15137
15138 2010-06-03  Bruno Haible  <bruno@clisp.org>
15139
15140         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
15141         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
15142         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
15143         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
15144         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
15145         Reported by Ludovic Courtès <ludo@gnu.org>.
15146
15147 2010-06-02  Eric Blake  <eblake@redhat.com>
15148
15149         time: work with mingw + pthreads-win32 library
15150         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
15151         if timespec is defined only in pthread.h.
15152         * modules/time (Makefile.am): Substitute it.
15153         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
15154         <pthread.h>, when needed.
15155         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
15156         from the library.
15157
15158 2010-05-31  Bruno Haible  <bruno@clisp.org>
15159
15160         Avoid expanding two macros in the wrong order.
15161         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
15162         gl_LIBUNISTRING if it is defined.
15163         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
15164         autoconf >= 2.64.
15165         Reported by Ludovic Courtès <ludo@gnu.org>.
15166
15167 2010-05-27  Jim Meyering  <meyering@redhat.com>
15168
15169         maint.mk: also prohibit "#undef" of always-defined symbols
15170         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
15171         Allow more than one space before the symbol name.
15172         (sc_prohibit_always-defined_macros): Use grep's -E, now that
15173         the regexp uses alternation.
15174
15175 2010-05-26  Eric Blake  <eblake@redhat.com>
15176
15177         maint.mk: avoid echo -e
15178         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
15179         Convert all uses of echo -* to printf.
15180         Reported by Matthias Bolte.
15181
15182 2010-05-25  Bruno Haible  <bruno@clisp.org>
15183
15184         Update to GNU gettext 0.18, part 2.
15185         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
15186         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
15187
15188 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15189
15190         Add missing include in test-pwrite.c.
15191         * tests/test-pwrite.c: Include string.h, for strcmp.
15192
15193 2010-05-24  Bruno Haible  <bruno@clisp.org>
15194
15195         * NEWS: Mention requirement for Automake option 'subdir-objects'.
15196
15197 2010-05-24  Bruno Haible  <bruno@clisp.org>
15198
15199         Don't use conversion with transliteration in u{8,16,32}_strcoll.
15200         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
15201         iconveh_error argument.
15202         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
15203         U_STRCONV_TO_LOCALE.
15204         * lib/unistr/u16-strcoll.c: Likewise.
15205         * lib/unistr/u32-strcoll.c: Likewise.
15206         * modules/unistr/u8-strcoll (Depends-on): Add
15207         uniconv/u8-strconv-to-enc, localcharset. Remove
15208         uniconv/u8-strconv-to-locale.
15209         (configure.ac): Bump version number.
15210         * modules/unistr/u16-strcoll (Depends-on): Add
15211         uniconv/u16-strconv-to-enc, localcharset. Remove
15212         uniconv/u16-strconv-to-locale.
15213         (configure.ac): Bump version number.
15214         * modules/unistr/u32-strcoll (Depends-on): Add
15215         uniconv/u32-strconv-to-enc, localcharset. Remove
15216         uniconv/u32-strconv-to-locale.
15217         (configure.ac): Bump version number.
15218
15219 2010-05-24  Bruno Haible  <bruno@clisp.org>
15220
15221         Avoid a test failure on NetBSD 5.0.
15222         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
15223         an iconv() bug.
15224
15225 2010-05-24  Bruno Haible  <bruno@clisp.org>
15226
15227         Adjust #include directive style.
15228         * modules/regex (Includes): Recommend to write <regex.h>.
15229
15230 2010-05-24  Bruno Haible  <bruno@clisp.org>
15231
15232         regex: Don't require alloca.
15233         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
15234         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
15235         only inside if (0).
15236
15237 2010-05-23  Jim Meyering  <meyering@redhat.com>
15238
15239         test-renameat.c: include <sys/stat.h>
15240         * tests/test-renameat.c: Include <sys/stat.h>; required for
15241         definition of S_IS* macros.
15242
15243 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
15244
15245         Update maintainer documentation for 'relocatable-prog' module.
15246         * doc/relocatable-maint.texi: Update.
15247         Comments by Bruno Haible.
15248
15249 2010-05-23  Bruno Haible  <bruno@clisp.org>
15250
15251         git-merge-changelog: Enable --split-merged-entry by default.
15252         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
15253         (usage): Don't mention this option any more.
15254         Reported by Ralf Wildenhues.
15255
15256 2010-05-23  Jim Meyering  <meyering@redhat.com>
15257
15258         test-pwrite: do not leave behind a test file named "out"
15259         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
15260         The trivial-looking use of init.sh is really necessary.
15261         It ensures that the temporary file, "out", is created in
15262         a temporary directory, and removed upon termination.
15263         * tests/test-pwrite.sh: Re-add file.
15264         * modules/pwrite-tests: Reference it.
15265
15266 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15267
15268         Fix output redirection buglet in init.sh.
15269         * tests/init.sh: Fix redirection of stderr.
15270
15271 2010-05-20  Simon Josefsson  <simon@josefsson.org>
15272
15273         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
15274
15275 2010-05-17  Simon Josefsson  <simon@josefsson.org>
15276
15277         * modules/valgrind-tests: New file.
15278         * m4/valgrind-tests.m4: New file.
15279         * doc/valgrind-tests.texi: New file.
15280         * doc/gnulib.texi (Running self-tests under valgrind): New
15281         section.
15282
15283 2010-05-19  Bruno Haible  <bruno@clisp.org>
15284
15285         Clean up dead code in recent commit.
15286         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
15287         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
15288         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
15289         Suggested by Paolo Bonzini.
15290
15291 2010-05-19  Bruno Haible  <bruno@clisp.org>
15292
15293         Avoid valgrind error reports from libunistring.
15294         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
15295         * modules/libunistring (Files): Add it.
15296         * modules/libunistring-optional (Files): Likewise.
15297
15298 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
15299             Bruno Haible  <bruno@clisp.org>
15300
15301         New module 'libunistring-optional'.
15302         * modules/libunistring-optional: New file.
15303         * m4/libunistring-base.m4: New file.
15304         * m4/libunistring-optional.m4: New file.
15305         * lib/unicase.in.h: Renamed from lib/unicase.h.
15306         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
15307         * lib/unictype.in.h: Renamed from lib/unictype.h.
15308         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
15309         * lib/uniname.in.h: Renamed from lib/uniname.h.
15310         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
15311         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
15312         * lib/unistr.in.h: Renamed from lib/unistr.h.
15313         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
15314         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
15315         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
15316         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
15317         gl_LIBUNISTRING. If the library was found, determine the installed
15318         version and set LIBUNISTRING_VERSION.
15319         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
15320         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
15321         handle a configuration option --with-included-libunistring.
15322         * modules/libunistring (Files): Add m4/absolute-header.m4.
15323         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
15324         Add m4/libunistring-base.m4.
15325         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15326         (Makefile.am): Build unicase.h from unicase.in.h.
15327         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
15328         Add m4/libunistring-base.m4.
15329         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15330         (Makefile.am): Build uniconv.h from uniconv.in.h.
15331         * modules/unictype/base (Files): Use unictype.in.h instead of
15332         unictype.h. Add m4/libunistring-base.m4.
15333         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15334         (Makefile.am): Build unictype.h from unictype.in.h.
15335         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15336         Add m4/libunistring-base.m4.
15337         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15338         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15339         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15340         Add m4/libunistring-base.m4.
15341         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15342         (Makefile.am): Build uniname.h from uniname.in.h.
15343         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15344         Add m4/libunistring-base.m4.
15345         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15346         (Makefile.am): Build uninorm.h from uninorm.in.h.
15347         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15348         unistdio.h. Add m4/libunistring-base.m4.
15349         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15350         (Makefile.am): Build unistdio.h from unistdio.in.h.
15351         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15352         Add m4/libunistring-base.m4.
15353         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15354         (Makefile.am): Build unistr.h from unistr.in.h.
15355         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15356         Add m4/libunistring-base.m4.
15357         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15358         (Makefile.am): Build unitypes.h from unitypes.in.h.
15359         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15360         Add m4/libunistring-base.m4.
15361         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15362         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15363         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15364         uniwidth.h. Add m4/libunistring-base.m4.
15365         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15366         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15367         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15368         instead of augmenting lib_SOURCES.
15369         * modules/unicase/empty-suffix-context: Likewise.
15370         * modules/unicase/locale-language: Likewise.
15371         * modules/unicase/tolower: Likewise.
15372         * modules/unicase/totitle: Likewise.
15373         * modules/unicase/toupper: Likewise.
15374         * modules/unicase/u8-casecmp: Likewise.
15375         * modules/unicase/u8-casecoll: Likewise.
15376         * modules/unicase/u8-casefold: Likewise.
15377         * modules/unicase/u8-casexfrm: Likewise.
15378         * modules/unicase/u8-ct-casefold: Likewise.
15379         * modules/unicase/u8-ct-tolower: Likewise.
15380         * modules/unicase/u8-ct-totitle: Likewise.
15381         * modules/unicase/u8-ct-toupper: Likewise.
15382         * modules/unicase/u8-is-cased: Likewise.
15383         * modules/unicase/u8-is-casefolded: Likewise.
15384         * modules/unicase/u8-is-lowercase: Likewise.
15385         * modules/unicase/u8-is-titlecase: Likewise.
15386         * modules/unicase/u8-is-uppercase: Likewise.
15387         * modules/unicase/u8-prefix-context: Likewise.
15388         * modules/unicase/u8-suffix-context: Likewise.
15389         * modules/unicase/u8-tolower: Likewise.
15390         * modules/unicase/u8-totitle: Likewise.
15391         * modules/unicase/u8-toupper: Likewise.
15392         * modules/unicase/u16-casecmp: Likewise.
15393         * modules/unicase/u16-casecoll: Likewise.
15394         * modules/unicase/u16-casefold: Likewise.
15395         * modules/unicase/u16-casexfrm: Likewise.
15396         * modules/unicase/u16-ct-casefold: Likewise.
15397         * modules/unicase/u16-ct-tolower: Likewise.
15398         * modules/unicase/u16-ct-totitle: Likewise.
15399         * modules/unicase/u16-ct-toupper: Likewise.
15400         * modules/unicase/u16-is-cased: Likewise.
15401         * modules/unicase/u16-is-casefolded: Likewise.
15402         * modules/unicase/u16-is-lowercase: Likewise.
15403         * modules/unicase/u16-is-titlecase: Likewise.
15404         * modules/unicase/u16-is-uppercase: Likewise.
15405         * modules/unicase/u16-prefix-context: Likewise.
15406         * modules/unicase/u16-suffix-context: Likewise.
15407         * modules/unicase/u16-tolower: Likewise.
15408         * modules/unicase/u16-totitle: Likewise.
15409         * modules/unicase/u16-toupper: Likewise.
15410         * modules/unicase/u32-casecmp: Likewise.
15411         * modules/unicase/u32-casecoll: Likewise.
15412         * modules/unicase/u32-casefold: Likewise.
15413         * modules/unicase/u32-casexfrm: Likewise.
15414         * modules/unicase/u32-ct-casefold: Likewise.
15415         * modules/unicase/u32-ct-tolower: Likewise.
15416         * modules/unicase/u32-ct-totitle: Likewise.
15417         * modules/unicase/u32-ct-toupper: Likewise.
15418         * modules/unicase/u32-is-cased: Likewise.
15419         * modules/unicase/u32-is-casefolded: Likewise.
15420         * modules/unicase/u32-is-lowercase: Likewise.
15421         * modules/unicase/u32-is-titlecase: Likewise.
15422         * modules/unicase/u32-is-uppercase: Likewise.
15423         * modules/unicase/u32-prefix-context: Likewise.
15424         * modules/unicase/u32-suffix-context: Likewise.
15425         * modules/unicase/u32-tolower: Likewise.
15426         * modules/unicase/u32-totitle: Likewise.
15427         * modules/unicase/u32-toupper: Likewise.
15428         * modules/unicase/ulc-casecmp: Likewise.
15429         * modules/unicase/ulc-casecoll: Likewise.
15430         * modules/unicase/ulc-casexfrm: Likewise.
15431         * modules/uniconv/u8-conv-from-enc: Likewise.
15432         * modules/uniconv/u8-conv-to-enc: Likewise.
15433         * modules/uniconv/u8-strconv-from-enc: Likewise.
15434         * modules/uniconv/u8-strconv-from-locale: Likewise.
15435         * modules/uniconv/u8-strconv-to-enc: Likewise.
15436         * modules/uniconv/u8-strconv-to-locale: Likewise.
15437         * modules/uniconv/u16-conv-from-enc: Likewise.
15438         * modules/uniconv/u16-conv-to-enc: Likewise.
15439         * modules/uniconv/u16-strconv-from-enc: Likewise.
15440         * modules/uniconv/u16-strconv-from-locale: Likewise.
15441         * modules/uniconv/u16-strconv-to-enc: Likewise.
15442         * modules/uniconv/u16-strconv-to-locale: Likewise.
15443         * modules/uniconv/u32-conv-from-enc: Likewise.
15444         * modules/uniconv/u32-conv-to-enc: Likewise.
15445         * modules/uniconv/u32-strconv-from-enc: Likewise.
15446         * modules/uniconv/u32-strconv-from-locale: Likewise.
15447         * modules/uniconv/u32-strconv-to-enc: Likewise.
15448         * modules/uniconv/u32-strconv-to-locale: Likewise.
15449         * modules/unictype/bidicategory-byname: Likewise.
15450         * modules/unictype/bidicategory-name: Likewise.
15451         * modules/unictype/bidicategory-of: Likewise.
15452         * modules/unictype/bidicategory-test: Likewise.
15453         * modules/unictype/block-list: Likewise.
15454         * modules/unictype/block-test: Likewise.
15455         * modules/unictype/category-C: Likewise.
15456         * modules/unictype/category-Cc: Likewise.
15457         * modules/unictype/category-Cf: Likewise.
15458         * modules/unictype/category-Cn: Likewise.
15459         * modules/unictype/category-Co: Likewise.
15460         * modules/unictype/category-Cs: Likewise.
15461         * modules/unictype/category-L: Likewise.
15462         * modules/unictype/category-Ll: Likewise.
15463         * modules/unictype/category-Lm: Likewise.
15464         * modules/unictype/category-Lo: Likewise.
15465         * modules/unictype/category-Lt: Likewise.
15466         * modules/unictype/category-Lu: Likewise.
15467         * modules/unictype/category-M: Likewise.
15468         * modules/unictype/category-Mc: Likewise.
15469         * modules/unictype/category-Me: Likewise.
15470         * modules/unictype/category-Mn: Likewise.
15471         * modules/unictype/category-N: Likewise.
15472         * modules/unictype/category-Nd: Likewise.
15473         * modules/unictype/category-Nl: Likewise.
15474         * modules/unictype/category-No: Likewise.
15475         * modules/unictype/category-P: Likewise.
15476         * modules/unictype/category-Pc: Likewise.
15477         * modules/unictype/category-Pd: Likewise.
15478         * modules/unictype/category-Pe: Likewise.
15479         * modules/unictype/category-Pf: Likewise.
15480         * modules/unictype/category-Pi: Likewise.
15481         * modules/unictype/category-Po: Likewise.
15482         * modules/unictype/category-Ps: Likewise.
15483         * modules/unictype/category-S: Likewise.
15484         * modules/unictype/category-Sc: Likewise.
15485         * modules/unictype/category-Sk: Likewise.
15486         * modules/unictype/category-Sm: Likewise.
15487         * modules/unictype/category-So: Likewise.
15488         * modules/unictype/category-Z: Likewise.
15489         * modules/unictype/category-Zl: Likewise.
15490         * modules/unictype/category-Zp: Likewise.
15491         * modules/unictype/category-Zs: Likewise.
15492         * modules/unictype/category-and: Likewise.
15493         * modules/unictype/category-and-not: Likewise.
15494         * modules/unictype/category-byname: Likewise.
15495         * modules/unictype/category-name: Likewise.
15496         * modules/unictype/category-none: Likewise.
15497         * modules/unictype/category-of: Likewise.
15498         * modules/unictype/category-or: Likewise.
15499         * modules/unictype/category-test: Likewise.
15500         * modules/unictype/combining-class: Likewise.
15501         * modules/unictype/ctype-alnum: Likewise.
15502         * modules/unictype/ctype-alpha: Likewise.
15503         * modules/unictype/ctype-blank: Likewise.
15504         * modules/unictype/ctype-cntrl: Likewise.
15505         * modules/unictype/ctype-digit: Likewise.
15506         * modules/unictype/ctype-graph: Likewise.
15507         * modules/unictype/ctype-lower: Likewise.
15508         * modules/unictype/ctype-print: Likewise.
15509         * modules/unictype/ctype-punct: Likewise.
15510         * modules/unictype/ctype-space: Likewise.
15511         * modules/unictype/ctype-upper: Likewise.
15512         * modules/unictype/ctype-xdigit: Likewise.
15513         * modules/unictype/decimal-digit: Likewise.
15514         * modules/unictype/digit: Likewise.
15515         * modules/unictype/mirror: Likewise.
15516         * modules/unictype/numeric: Likewise.
15517         * modules/unictype/property-alphabetic: Likewise.
15518         * modules/unictype/property-ascii-hex-digit: Likewise.
15519         * modules/unictype/property-bidi-arabic-digit: Likewise.
15520         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15521         * modules/unictype/property-bidi-block-separator: Likewise.
15522         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15523         * modules/unictype/property-bidi-common-separator: Likewise.
15524         * modules/unictype/property-bidi-control: Likewise.
15525         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15526         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15527         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15528         * modules/unictype/property-bidi-european-digit: Likewise.
15529         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15530         * modules/unictype/property-bidi-left-to-right: Likewise.
15531         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15532         * modules/unictype/property-bidi-other-neutral: Likewise.
15533         * modules/unictype/property-bidi-pdf: Likewise.
15534         * modules/unictype/property-bidi-segment-separator: Likewise.
15535         * modules/unictype/property-bidi-whitespace: Likewise.
15536         * modules/unictype/property-byname: Likewise.
15537         * modules/unictype/property-combining: Likewise.
15538         * modules/unictype/property-composite: Likewise.
15539         * modules/unictype/property-currency-symbol: Likewise.
15540         * modules/unictype/property-dash: Likewise.
15541         * modules/unictype/property-decimal-digit: Likewise.
15542         * modules/unictype/property-default-ignorable-code-point: Likewise.
15543         * modules/unictype/property-deprecated: Likewise.
15544         * modules/unictype/property-diacritic: Likewise.
15545         * modules/unictype/property-extender: Likewise.
15546         * modules/unictype/property-format-control: Likewise.
15547         * modules/unictype/property-grapheme-base: Likewise.
15548         * modules/unictype/property-grapheme-extend: Likewise.
15549         * modules/unictype/property-grapheme-link: Likewise.
15550         * modules/unictype/property-hex-digit: Likewise.
15551         * modules/unictype/property-hyphen: Likewise.
15552         * modules/unictype/property-id-continue: Likewise.
15553         * modules/unictype/property-id-start: Likewise.
15554         * modules/unictype/property-ideographic: Likewise.
15555         * modules/unictype/property-ids-binary-operator: Likewise.
15556         * modules/unictype/property-ids-trinary-operator: Likewise.
15557         * modules/unictype/property-ignorable-control: Likewise.
15558         * modules/unictype/property-iso-control: Likewise.
15559         * modules/unictype/property-join-control: Likewise.
15560         * modules/unictype/property-left-of-pair: Likewise.
15561         * modules/unictype/property-line-separator: Likewise.
15562         * modules/unictype/property-logical-order-exception: Likewise.
15563         * modules/unictype/property-lowercase: Likewise.
15564         * modules/unictype/property-math: Likewise.
15565         * modules/unictype/property-non-break: Likewise.
15566         * modules/unictype/property-not-a-character: Likewise.
15567         * modules/unictype/property-numeric: Likewise.
15568         * modules/unictype/property-other-alphabetic: Likewise.
15569         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15570         * modules/unictype/property-other-grapheme-extend: Likewise.
15571         * modules/unictype/property-other-id-continue: Likewise.
15572         * modules/unictype/property-other-id-start: Likewise.
15573         * modules/unictype/property-other-lowercase: Likewise.
15574         * modules/unictype/property-other-math: Likewise.
15575         * modules/unictype/property-other-uppercase: Likewise.
15576         * modules/unictype/property-paired-punctuation: Likewise.
15577         * modules/unictype/property-paragraph-separator: Likewise.
15578         * modules/unictype/property-pattern-syntax: Likewise.
15579         * modules/unictype/property-pattern-white-space: Likewise.
15580         * modules/unictype/property-private-use: Likewise.
15581         * modules/unictype/property-punctuation: Likewise.
15582         * modules/unictype/property-quotation-mark: Likewise.
15583         * modules/unictype/property-radical: Likewise.
15584         * modules/unictype/property-sentence-terminal: Likewise.
15585         * modules/unictype/property-soft-dotted: Likewise.
15586         * modules/unictype/property-space: Likewise.
15587         * modules/unictype/property-terminal-punctuation: Likewise.
15588         * modules/unictype/property-test: Likewise.
15589         * modules/unictype/property-titlecase: Likewise.
15590         * modules/unictype/property-unassigned-code-value: Likewise.
15591         * modules/unictype/property-unified-ideograph: Likewise.
15592         * modules/unictype/property-uppercase: Likewise.
15593         * modules/unictype/property-variation-selector: Likewise.
15594         * modules/unictype/property-white-space: Likewise.
15595         * modules/unictype/property-xid-continue: Likewise.
15596         * modules/unictype/property-xid-start: Likewise.
15597         * modules/unictype/property-zero-width: Likewise.
15598         * modules/unictype/scripts: Likewise.
15599         * modules/unictype/syntax-c-ident: Likewise.
15600         * modules/unictype/syntax-c-whitespace: Likewise.
15601         * modules/unictype/syntax-java-ident: Likewise.
15602         * modules/unictype/syntax-java-whitespace: Likewise.
15603         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15604         * modules/unilbrk/u8-width-linebreaks: Likewise.
15605         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15606         * modules/unilbrk/u16-width-linebreaks: Likewise.
15607         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15608         * modules/unilbrk/u32-width-linebreaks: Likewise.
15609         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15610         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15611         * modules/uniname/uniname: Likewise.
15612         * modules/uninorm/canonical-decomposition: Likewise.
15613         * modules/uninorm/composition: Likewise.
15614         * modules/uninorm/decomposing-form: Likewise.
15615         * modules/uninorm/decomposition: Likewise.
15616         * modules/uninorm/filter: Likewise.
15617         * modules/uninorm/nfc: Likewise.
15618         * modules/uninorm/nfd: Likewise.
15619         * modules/uninorm/nfkc: Likewise.
15620         * modules/uninorm/nfkd: Likewise.
15621         * modules/uninorm/u8-normalize: Likewise.
15622         * modules/uninorm/u8-normcmp: Likewise.
15623         * modules/uninorm/u8-normcoll: Likewise.
15624         * modules/uninorm/u8-normxfrm: Likewise.
15625         * modules/uninorm/u16-normalize: Likewise.
15626         * modules/uninorm/u16-normcmp: Likewise.
15627         * modules/uninorm/u16-normcoll: Likewise.
15628         * modules/uninorm/u16-normxfrm: Likewise.
15629         * modules/uninorm/u32-normalize: Likewise.
15630         * modules/uninorm/u32-normcmp: Likewise.
15631         * modules/uninorm/u32-normcoll: Likewise.
15632         * modules/uninorm/u32-normxfrm: Likewise.
15633         * modules/unistdio/u8-asnprintf: Likewise.
15634         * modules/unistdio/u8-asprintf: Likewise.
15635         * modules/unistdio/u8-snprintf: Likewise.
15636         * modules/unistdio/u8-sprintf: Likewise.
15637         * modules/unistdio/u8-u8-asnprintf: Likewise.
15638         * modules/unistdio/u8-u8-asprintf: Likewise.
15639         * modules/unistdio/u8-u8-snprintf: Likewise.
15640         * modules/unistdio/u8-u8-sprintf: Likewise.
15641         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15642         * modules/unistdio/u8-u8-vasprintf: Likewise.
15643         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15644         * modules/unistdio/u8-u8-vsprintf: Likewise.
15645         * modules/unistdio/u8-vasnprintf: Likewise.
15646         * modules/unistdio/u8-vasprintf: Likewise.
15647         * modules/unistdio/u8-vsnprintf: Likewise.
15648         * modules/unistdio/u8-vsprintf: Likewise.
15649         * modules/unistdio/u16-asnprintf: Likewise.
15650         * modules/unistdio/u16-asprintf: Likewise.
15651         * modules/unistdio/u16-snprintf: Likewise.
15652         * modules/unistdio/u16-sprintf: Likewise.
15653         * modules/unistdio/u16-u16-asnprintf: Likewise.
15654         * modules/unistdio/u16-u16-asprintf: Likewise.
15655         * modules/unistdio/u16-u16-snprintf: Likewise.
15656         * modules/unistdio/u16-u16-sprintf: Likewise.
15657         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15658         * modules/unistdio/u16-u16-vasprintf: Likewise.
15659         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15660         * modules/unistdio/u16-u16-vsprintf: Likewise.
15661         * modules/unistdio/u16-vasnprintf: Likewise.
15662         * modules/unistdio/u16-vasprintf: Likewise.
15663         * modules/unistdio/u16-vsnprintf: Likewise.
15664         * modules/unistdio/u16-vsprintf: Likewise.
15665         * modules/unistdio/u32-asnprintf: Likewise.
15666         * modules/unistdio/u32-asprintf: Likewise.
15667         * modules/unistdio/u32-snprintf: Likewise.
15668         * modules/unistdio/u32-sprintf: Likewise.
15669         * modules/unistdio/u32-u32-asnprintf: Likewise.
15670         * modules/unistdio/u32-u32-asprintf: Likewise.
15671         * modules/unistdio/u32-u32-snprintf: Likewise.
15672         * modules/unistdio/u32-u32-sprintf: Likewise.
15673         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15674         * modules/unistdio/u32-u32-vasprintf: Likewise.
15675         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15676         * modules/unistdio/u32-u32-vsprintf: Likewise.
15677         * modules/unistdio/u32-vasnprintf: Likewise.
15678         * modules/unistdio/u32-vasprintf: Likewise.
15679         * modules/unistdio/u32-vsnprintf: Likewise.
15680         * modules/unistdio/u32-vsprintf: Likewise.
15681         * modules/unistdio/ulc-asnprintf: Likewise.
15682         * modules/unistdio/ulc-asprintf: Likewise.
15683         * modules/unistdio/ulc-fprintf: Likewise.
15684         * modules/unistdio/ulc-snprintf: Likewise.
15685         * modules/unistdio/ulc-sprintf: Likewise.
15686         * modules/unistdio/ulc-vasnprintf: Likewise.
15687         * modules/unistdio/ulc-vasprintf: Likewise.
15688         * modules/unistdio/ulc-vfprintf: Likewise.
15689         * modules/unistdio/ulc-vsnprintf: Likewise.
15690         * modules/unistdio/ulc-vsprintf: Likewise.
15691         * modules/unistr/u8-check: Likewise.
15692         * modules/unistr/u8-chr: Likewise.
15693         * modules/unistr/u8-cmp: Likewise.
15694         * modules/unistr/u8-cmp2: Likewise.
15695         * modules/unistr/u8-cpy: Likewise.
15696         * modules/unistr/u8-cpy-alloc: Likewise.
15697         * modules/unistr/u8-endswith: Likewise.
15698         * modules/unistr/u8-mblen: Likewise.
15699         * modules/unistr/u8-mbsnlen: Likewise.
15700         * modules/unistr/u8-mbtouc: Likewise.
15701         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15702         * modules/unistr/u8-mbtoucr: Likewise.
15703         * modules/unistr/u8-move: Likewise.
15704         * modules/unistr/u8-next: Likewise.
15705         * modules/unistr/u8-prev: Likewise.
15706         * modules/unistr/u8-set: Likewise.
15707         * modules/unistr/u8-startswith: Likewise.
15708         * modules/unistr/u8-stpcpy: Likewise.
15709         * modules/unistr/u8-stpncpy: Likewise.
15710         * modules/unistr/u8-strcat: Likewise.
15711         * modules/unistr/u8-strchr: Likewise.
15712         * modules/unistr/u8-strcmp: Likewise.
15713         * modules/unistr/u8-strcoll: Likewise.
15714         * modules/unistr/u8-strcpy: Likewise.
15715         * modules/unistr/u8-strcspn: Likewise.
15716         * modules/unistr/u8-strdup: Likewise.
15717         * modules/unistr/u8-strlen: Likewise.
15718         * modules/unistr/u8-strmblen: Likewise.
15719         * modules/unistr/u8-strmbtouc: Likewise.
15720         * modules/unistr/u8-strncat: Likewise.
15721         * modules/unistr/u8-strncmp: Likewise.
15722         * modules/unistr/u8-strncpy: Likewise.
15723         * modules/unistr/u8-strnlen: Likewise.
15724         * modules/unistr/u8-strpbrk: Likewise.
15725         * modules/unistr/u8-strrchr: Likewise.
15726         * modules/unistr/u8-strspn: Likewise.
15727         * modules/unistr/u8-strstr: Likewise.
15728         * modules/unistr/u8-strtok: Likewise.
15729         * modules/unistr/u8-to-u16: Likewise.
15730         * modules/unistr/u8-to-u32: Likewise.
15731         * modules/unistr/u8-uctomb: Likewise.
15732         * modules/unistr/u16-check: Likewise.
15733         * modules/unistr/u16-chr: Likewise.
15734         * modules/unistr/u16-cmp: Likewise.
15735         * modules/unistr/u16-cmp2: Likewise.
15736         * modules/unistr/u16-cpy: Likewise.
15737         * modules/unistr/u16-cpy-alloc: Likewise.
15738         * modules/unistr/u16-endswith: Likewise.
15739         * modules/unistr/u16-mblen: Likewise.
15740         * modules/unistr/u16-mbsnlen: Likewise.
15741         * modules/unistr/u16-mbtouc: Likewise.
15742         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15743         * modules/unistr/u16-mbtoucr: Likewise.
15744         * modules/unistr/u16-move: Likewise.
15745         * modules/unistr/u16-next: Likewise.
15746         * modules/unistr/u16-prev: Likewise.
15747         * modules/unistr/u16-set: Likewise.
15748         * modules/unistr/u16-startswith: Likewise.
15749         * modules/unistr/u16-stpcpy: Likewise.
15750         * modules/unistr/u16-stpncpy: Likewise.
15751         * modules/unistr/u16-strcat: Likewise.
15752         * modules/unistr/u16-strchr: Likewise.
15753         * modules/unistr/u16-strcmp: Likewise.
15754         * modules/unistr/u16-strcoll: Likewise.
15755         * modules/unistr/u16-strcpy: Likewise.
15756         * modules/unistr/u16-strcspn: Likewise.
15757         * modules/unistr/u16-strdup: Likewise.
15758         * modules/unistr/u16-strlen: Likewise.
15759         * modules/unistr/u16-strmblen: Likewise.
15760         * modules/unistr/u16-strmbtouc: Likewise.
15761         * modules/unistr/u16-strncat: Likewise.
15762         * modules/unistr/u16-strncmp: Likewise.
15763         * modules/unistr/u16-strncpy: Likewise.
15764         * modules/unistr/u16-strnlen: Likewise.
15765         * modules/unistr/u16-strpbrk: Likewise.
15766         * modules/unistr/u16-strrchr: Likewise.
15767         * modules/unistr/u16-strspn: Likewise.
15768         * modules/unistr/u16-strstr: Likewise.
15769         * modules/unistr/u16-strtok: Likewise.
15770         * modules/unistr/u16-to-u32: Likewise.
15771         * modules/unistr/u16-to-u8: Likewise.
15772         * modules/unistr/u16-uctomb: Likewise.
15773         * modules/unistr/u32-check: Likewise.
15774         * modules/unistr/u32-chr: Likewise.
15775         * modules/unistr/u32-cmp: Likewise.
15776         * modules/unistr/u32-cmp2: Likewise.
15777         * modules/unistr/u32-cpy: Likewise.
15778         * modules/unistr/u32-cpy-alloc: Likewise.
15779         * modules/unistr/u32-endswith: Likewise.
15780         * modules/unistr/u32-mblen: Likewise.
15781         * modules/unistr/u32-mbsnlen: Likewise.
15782         * modules/unistr/u32-mbtouc: Likewise.
15783         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15784         * modules/unistr/u32-mbtoucr: Likewise.
15785         * modules/unistr/u32-move: Likewise.
15786         * modules/unistr/u32-next: Likewise.
15787         * modules/unistr/u32-prev: Likewise.
15788         * modules/unistr/u32-set: Likewise.
15789         * modules/unistr/u32-startswith: Likewise.
15790         * modules/unistr/u32-stpcpy: Likewise.
15791         * modules/unistr/u32-stpncpy: Likewise.
15792         * modules/unistr/u32-strcat: Likewise.
15793         * modules/unistr/u32-strchr: Likewise.
15794         * modules/unistr/u32-strcmp: Likewise.
15795         * modules/unistr/u32-strcoll: Likewise.
15796         * modules/unistr/u32-strcpy: Likewise.
15797         * modules/unistr/u32-strcspn: Likewise.
15798         * modules/unistr/u32-strdup: Likewise.
15799         * modules/unistr/u32-strlen: Likewise.
15800         * modules/unistr/u32-strmblen: Likewise.
15801         * modules/unistr/u32-strmbtouc: Likewise.
15802         * modules/unistr/u32-strncat: Likewise.
15803         * modules/unistr/u32-strncmp: Likewise.
15804         * modules/unistr/u32-strncpy: Likewise.
15805         * modules/unistr/u32-strnlen: Likewise.
15806         * modules/unistr/u32-strpbrk: Likewise.
15807         * modules/unistr/u32-strrchr: Likewise.
15808         * modules/unistr/u32-strspn: Likewise.
15809         * modules/unistr/u32-strstr: Likewise.
15810         * modules/unistr/u32-strtok: Likewise.
15811         * modules/unistr/u32-to-u16: Likewise.
15812         * modules/unistr/u32-to-u8: Likewise.
15813         * modules/unistr/u32-uctomb: Likewise.
15814         * modules/uniwbrk/u8-wordbreaks: Likewise.
15815         * modules/uniwbrk/u16-wordbreaks: Likewise.
15816         * modules/uniwbrk/u32-wordbreaks: Likewise.
15817         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15818         * modules/uniwbrk/wordbreak-property: Likewise.
15819         * modules/uniwidth/u8-strwidth: Likewise.
15820         * modules/uniwidth/u8-width: Likewise.
15821         * modules/uniwidth/u16-strwidth: Likewise.
15822         * modules/uniwidth/u16-width: Likewise.
15823         * modules/uniwidth/u32-strwidth: Likewise.
15824         * modules/uniwidth/u32-width: Likewise.
15825         * modules/uniwidth/width: Likewise.
15826         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15827         with $(LIBUNISTRING).
15828         * modules/unicase/ignorable-tests: Likewise.
15829         * modules/unicase/locale-language-tests: Likewise.
15830         * modules/unicase/tolower-tests: Likewise.
15831         * modules/unicase/totitle-tests: Likewise.
15832         * modules/unicase/toupper-tests: Likewise.
15833         * modules/unicase/u8-casecmp-tests: Likewise.
15834         * modules/unicase/u8-casecoll-tests: Likewise.
15835         * modules/unicase/u8-casefold-tests: Likewise.
15836         * modules/unicase/u8-is-cased-tests: Likewise.
15837         * modules/unicase/u8-is-casefolded-tests: Likewise.
15838         * modules/unicase/u8-is-lowercase-tests: Likewise.
15839         * modules/unicase/u8-is-titlecase-tests: Likewise.
15840         * modules/unicase/u8-is-uppercase-tests: Likewise.
15841         * modules/unicase/u8-tolower-tests: Likewise.
15842         * modules/unicase/u8-totitle-tests: Likewise.
15843         * modules/unicase/u8-toupper-tests: Likewise.
15844         * modules/unicase/u16-casecmp-tests: Likewise.
15845         * modules/unicase/u16-casecoll-tests: Likewise.
15846         * modules/unicase/u16-casefold-tests: Likewise.
15847         * modules/unicase/u16-is-cased-tests: Likewise.
15848         * modules/unicase/u16-is-casefolded-tests: Likewise.
15849         * modules/unicase/u16-is-lowercase-tests: Likewise.
15850         * modules/unicase/u16-is-titlecase-tests: Likewise.
15851         * modules/unicase/u16-is-uppercase-tests: Likewise.
15852         * modules/unicase/u16-tolower-tests: Likewise.
15853         * modules/unicase/u16-totitle-tests: Likewise.
15854         * modules/unicase/u16-toupper-tests: Likewise.
15855         * modules/unicase/u32-casecmp-tests: Likewise.
15856         * modules/unicase/u32-casecoll-tests: Likewise.
15857         * modules/unicase/u32-casefold-tests: Likewise.
15858         * modules/unicase/u32-is-cased-tests: Likewise.
15859         * modules/unicase/u32-is-casefolded-tests: Likewise.
15860         * modules/unicase/u32-is-lowercase-tests: Likewise.
15861         * modules/unicase/u32-is-titlecase-tests: Likewise.
15862         * modules/unicase/u32-is-uppercase-tests: Likewise.
15863         * modules/unicase/u32-tolower-tests: Likewise.
15864         * modules/unicase/u32-totitle-tests: Likewise.
15865         * modules/unicase/u32-toupper-tests: Likewise.
15866         * modules/unicase/ulc-casecmp-tests: Likewise.
15867         * modules/unicase/ulc-casecoll-tests: Likewise.
15868         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15869         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15870         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15871         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15872         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15873         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15874         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15875         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15876         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15877         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15878         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15879         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15880         * modules/unictype/bidicategory-byname-tests: Likewise.
15881         * modules/unictype/bidicategory-name-tests: Likewise.
15882         * modules/unictype/bidicategory-of-tests: Likewise.
15883         * modules/unictype/bidicategory-test-tests: Likewise.
15884         * modules/unictype/block-list-tests: Likewise.
15885         * modules/unictype/block-of-tests: Likewise.
15886         * modules/unictype/block-test-tests: Likewise.
15887         * modules/unictype/category-C-tests: Likewise.
15888         * modules/unictype/category-Cc-tests: Likewise.
15889         * modules/unictype/category-Cf-tests: Likewise.
15890         * modules/unictype/category-Cn-tests: Likewise.
15891         * modules/unictype/category-Co-tests: Likewise.
15892         * modules/unictype/category-Cs-tests: Likewise.
15893         * modules/unictype/category-L-tests: Likewise.
15894         * modules/unictype/category-Ll-tests: Likewise.
15895         * modules/unictype/category-Lm-tests: Likewise.
15896         * modules/unictype/category-Lo-tests: Likewise.
15897         * modules/unictype/category-Lt-tests: Likewise.
15898         * modules/unictype/category-Lu-tests: Likewise.
15899         * modules/unictype/category-M-tests: Likewise.
15900         * modules/unictype/category-Mc-tests: Likewise.
15901         * modules/unictype/category-Me-tests: Likewise.
15902         * modules/unictype/category-Mn-tests: Likewise.
15903         * modules/unictype/category-N-tests: Likewise.
15904         * modules/unictype/category-Nd-tests: Likewise.
15905         * modules/unictype/category-Nl-tests: Likewise.
15906         * modules/unictype/category-No-tests: Likewise.
15907         * modules/unictype/category-P-tests: Likewise.
15908         * modules/unictype/category-Pc-tests: Likewise.
15909         * modules/unictype/category-Pd-tests: Likewise.
15910         * modules/unictype/category-Pe-tests: Likewise.
15911         * modules/unictype/category-Pf-tests: Likewise.
15912         * modules/unictype/category-Pi-tests: Likewise.
15913         * modules/unictype/category-Po-tests: Likewise.
15914         * modules/unictype/category-Ps-tests: Likewise.
15915         * modules/unictype/category-S-tests: Likewise.
15916         * modules/unictype/category-Sc-tests: Likewise.
15917         * modules/unictype/category-Sk-tests: Likewise.
15918         * modules/unictype/category-Sm-tests: Likewise.
15919         * modules/unictype/category-So-tests: Likewise.
15920         * modules/unictype/category-Z-tests: Likewise.
15921         * modules/unictype/category-Zl-tests: Likewise.
15922         * modules/unictype/category-Zp-tests: Likewise.
15923         * modules/unictype/category-Zs-tests: Likewise.
15924         * modules/unictype/category-and-not-tests: Likewise.
15925         * modules/unictype/category-and-tests: Likewise.
15926         * modules/unictype/category-byname-tests: Likewise.
15927         * modules/unictype/category-name-tests: Likewise.
15928         * modules/unictype/category-none-tests: Likewise.
15929         * modules/unictype/category-of-tests: Likewise.
15930         * modules/unictype/category-or-tests: Likewise.
15931         * modules/unictype/category-test-withtable-tests: Likewise.
15932         * modules/unictype/combining-class-tests: Likewise.
15933         * modules/unictype/ctype-alnum-tests: Likewise.
15934         * modules/unictype/ctype-alpha-tests: Likewise.
15935         * modules/unictype/ctype-blank-tests: Likewise.
15936         * modules/unictype/ctype-cntrl-tests: Likewise.
15937         * modules/unictype/ctype-digit-tests: Likewise.
15938         * modules/unictype/ctype-graph-tests: Likewise.
15939         * modules/unictype/ctype-lower-tests: Likewise.
15940         * modules/unictype/ctype-print-tests: Likewise.
15941         * modules/unictype/ctype-punct-tests: Likewise.
15942         * modules/unictype/ctype-space-tests: Likewise.
15943         * modules/unictype/ctype-upper-tests: Likewise.
15944         * modules/unictype/ctype-xdigit-tests: Likewise.
15945         * modules/unictype/decimal-digit-tests: Likewise.
15946         * modules/unictype/digit-tests: Likewise.
15947         * modules/unictype/mirror-tests: Likewise.
15948         * modules/unictype/numeric-tests: Likewise.
15949         * modules/unictype/property-alphabetic-tests: Likewise.
15950         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15951         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15952         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15953         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15954         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15955         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15956         * modules/unictype/property-bidi-control-tests: Likewise.
15957         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15958         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15959         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15960         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15961         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15962         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15963         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15964         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15965         * modules/unictype/property-bidi-pdf-tests: Likewise.
15966         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15967         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15968         * modules/unictype/property-byname-tests: Likewise.
15969         * modules/unictype/property-combining-tests: Likewise.
15970         * modules/unictype/property-composite-tests: Likewise.
15971         * modules/unictype/property-currency-symbol-tests: Likewise.
15972         * modules/unictype/property-dash-tests: Likewise.
15973         * modules/unictype/property-decimal-digit-tests: Likewise.
15974         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15975         * modules/unictype/property-deprecated-tests: Likewise.
15976         * modules/unictype/property-diacritic-tests: Likewise.
15977         * modules/unictype/property-extender-tests: Likewise.
15978         * modules/unictype/property-format-control-tests: Likewise.
15979         * modules/unictype/property-grapheme-base-tests: Likewise.
15980         * modules/unictype/property-grapheme-extend-tests: Likewise.
15981         * modules/unictype/property-grapheme-link-tests: Likewise.
15982         * modules/unictype/property-hex-digit-tests: Likewise.
15983         * modules/unictype/property-hyphen-tests: Likewise.
15984         * modules/unictype/property-id-continue-tests: Likewise.
15985         * modules/unictype/property-id-start-tests: Likewise.
15986         * modules/unictype/property-ideographic-tests: Likewise.
15987         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15988         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15989         * modules/unictype/property-ignorable-control-tests: Likewise.
15990         * modules/unictype/property-iso-control-tests: Likewise.
15991         * modules/unictype/property-join-control-tests: Likewise.
15992         * modules/unictype/property-left-of-pair-tests: Likewise.
15993         * modules/unictype/property-line-separator-tests: Likewise.
15994         * modules/unictype/property-logical-order-exception-tests: Likewise.
15995         * modules/unictype/property-lowercase-tests: Likewise.
15996         * modules/unictype/property-math-tests: Likewise.
15997         * modules/unictype/property-non-break-tests: Likewise.
15998         * modules/unictype/property-not-a-character-tests: Likewise.
15999         * modules/unictype/property-numeric-tests: Likewise.
16000         * modules/unictype/property-other-alphabetic-tests: Likewise.
16001         * modules/unictype/property-other-default-ignorable-code-point-tests:
16002         Likewise.
16003         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
16004         * modules/unictype/property-other-id-continue-tests: Likewise.
16005         * modules/unictype/property-other-id-start-tests: Likewise.
16006         * modules/unictype/property-other-lowercase-tests: Likewise.
16007         * modules/unictype/property-other-math-tests: Likewise.
16008         * modules/unictype/property-other-uppercase-tests: Likewise.
16009         * modules/unictype/property-paired-punctuation-tests: Likewise.
16010         * modules/unictype/property-paragraph-separator-tests: Likewise.
16011         * modules/unictype/property-pattern-syntax-tests: Likewise.
16012         * modules/unictype/property-pattern-white-space-tests: Likewise.
16013         * modules/unictype/property-private-use-tests: Likewise.
16014         * modules/unictype/property-punctuation-tests: Likewise.
16015         * modules/unictype/property-quotation-mark-tests: Likewise.
16016         * modules/unictype/property-radical-tests: Likewise.
16017         * modules/unictype/property-sentence-terminal-tests: Likewise.
16018         * modules/unictype/property-soft-dotted-tests: Likewise.
16019         * modules/unictype/property-space-tests: Likewise.
16020         * modules/unictype/property-terminal-punctuation-tests: Likewise.
16021         * modules/unictype/property-test-tests: Likewise.
16022         * modules/unictype/property-titlecase-tests: Likewise.
16023         * modules/unictype/property-unassigned-code-value-tests: Likewise.
16024         * modules/unictype/property-unified-ideograph-tests: Likewise.
16025         * modules/unictype/property-uppercase-tests: Likewise.
16026         * modules/unictype/property-variation-selector-tests: Likewise.
16027         * modules/unictype/property-white-space-tests: Likewise.
16028         * modules/unictype/property-xid-continue-tests: Likewise.
16029         * modules/unictype/property-xid-start-tests: Likewise.
16030         * modules/unictype/property-zero-width-tests: Likewise.
16031         * modules/unictype/scripts-tests: Likewise.
16032         * modules/unictype/syntax-c-ident-tests: Likewise.
16033         * modules/unictype/syntax-c-whitespace-tests: Likewise.
16034         * modules/unictype/syntax-java-ident-tests: Likewise.
16035         * modules/unictype/syntax-java-whitespace-tests: Likewise.
16036         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
16037         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
16038         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
16039         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
16040         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
16041         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
16042         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
16043         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
16044         * modules/uniname/uniname-tests: Likewise.
16045         * modules/uninorm/canonical-decomposition-tests: Likewise.
16046         * modules/uninorm/compat-decomposition-tests: Likewise.
16047         * modules/uninorm/composition-tests: Likewise.
16048         * modules/uninorm/decomposing-form-tests: Likewise.
16049         * modules/uninorm/decomposition-tests: Likewise.
16050         * modules/uninorm/filter-tests: Likewise.
16051         * modules/uninorm/nfc-tests: Likewise.
16052         * modules/uninorm/nfd-tests: Likewise.
16053         * modules/uninorm/nfkc-tests: Likewise.
16054         * modules/uninorm/nfkd-tests: Likewise.
16055         * modules/uninorm/u8-normcmp-tests: Likewise.
16056         * modules/uninorm/u8-normcoll-tests: Likewise.
16057         * modules/uninorm/u16-normcmp-tests: Likewise.
16058         * modules/uninorm/u16-normcoll-tests: Likewise.
16059         * modules/uninorm/u32-normcmp-tests: Likewise.
16060         * modules/uninorm/u32-normcoll-tests: Likewise.
16061         * modules/unistdio/u8-asnprintf-tests: Likewise.
16062         * modules/unistdio/u8-vasnprintf-tests: Likewise.
16063         * modules/unistdio/u8-vasprintf-tests: Likewise.
16064         * modules/unistdio/u8-vsnprintf-tests: Likewise.
16065         * modules/unistdio/u8-vsprintf-tests: Likewise.
16066         * modules/unistdio/u16-asnprintf-tests: Likewise.
16067         * modules/unistdio/u16-vasnprintf-tests: Likewise.
16068         * modules/unistdio/u16-vasprintf-tests: Likewise.
16069         * modules/unistdio/u16-vsnprintf-tests: Likewise.
16070         * modules/unistdio/u16-vsprintf-tests: Likewise.
16071         * modules/unistdio/u32-asnprintf-tests: Likewise.
16072         * modules/unistdio/u32-vasnprintf-tests: Likewise.
16073         * modules/unistdio/u32-vasprintf-tests: Likewise.
16074         * modules/unistdio/u32-vsnprintf-tests: Likewise.
16075         * modules/unistdio/u32-vsprintf-tests: Likewise.
16076         * modules/unistdio/ulc-asnprintf-tests: Likewise.
16077         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
16078         * modules/unistdio/ulc-vasprintf-tests: Likewise.
16079         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
16080         * modules/unistdio/ulc-vsprintf-tests: Likewise.
16081         * modules/unistr/u8-check-tests: Likewise.
16082         * modules/unistr/u8-chr-tests: Likewise.
16083         * modules/unistr/u8-cmp-tests: Likewise.
16084         * modules/unistr/u8-cmp2-tests: Likewise.
16085         * modules/unistr/u8-cpy-alloc-tests: Likewise.
16086         * modules/unistr/u8-cpy-tests: Likewise.
16087         * modules/unistr/u8-mblen-tests: Likewise.
16088         * modules/unistr/u8-mbsnlen-tests: Likewise.
16089         * modules/unistr/u8-mbtouc-tests: Likewise.
16090         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
16091         * modules/unistr/u8-mbtoucr-tests: Likewise.
16092         * modules/unistr/u8-move-tests: Likewise.
16093         * modules/unistr/u8-next-tests: Likewise.
16094         * modules/unistr/u8-prev-tests: Likewise.
16095         * modules/unistr/u8-set-tests: Likewise.
16096         * modules/unistr/u8-stpcpy-tests: Likewise.
16097         * modules/unistr/u8-stpncpy-tests: Likewise.
16098         * modules/unistr/u8-strcat-tests: Likewise.
16099         * modules/unistr/u8-strcmp-tests: Likewise.
16100         * modules/unistr/u8-strcoll-tests: Likewise.
16101         * modules/unistr/u8-strcpy-tests: Likewise.
16102         * modules/unistr/u8-strdup-tests: Likewise.
16103         * modules/unistr/u8-strlen-tests: Likewise.
16104         * modules/unistr/u8-strmblen-tests: Likewise.
16105         * modules/unistr/u8-strmbtouc-tests: Likewise.
16106         * modules/unistr/u8-strncat-tests: Likewise.
16107         * modules/unistr/u8-strncmp-tests: Likewise.
16108         * modules/unistr/u8-strncpy-tests: Likewise.
16109         * modules/unistr/u8-strnlen-tests: Likewise.
16110         * modules/unistr/u8-to-u16-tests: Likewise.
16111         * modules/unistr/u8-to-u32-tests: Likewise.
16112         * modules/unistr/u8-uctomb-tests: Likewise.
16113         * modules/unistr/u16-check-tests: Likewise.
16114         * modules/unistr/u16-chr-tests: Likewise.
16115         * modules/unistr/u16-cmp-tests: Likewise.
16116         * modules/unistr/u16-cmp2-tests: Likewise.
16117         * modules/unistr/u16-cpy-alloc-tests: Likewise.
16118         * modules/unistr/u16-cpy-tests: Likewise.
16119         * modules/unistr/u16-mblen-tests: Likewise.
16120         * modules/unistr/u16-mbsnlen-tests: Likewise.
16121         * modules/unistr/u16-mbtouc-tests: Likewise.
16122         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
16123         * modules/unistr/u16-mbtoucr-tests: Likewise.
16124         * modules/unistr/u16-move-tests: Likewise.
16125         * modules/unistr/u16-next-tests: Likewise.
16126         * modules/unistr/u16-prev-tests: Likewise.
16127         * modules/unistr/u16-set-tests: Likewise.
16128         * modules/unistr/u16-stpcpy-tests: Likewise.
16129         * modules/unistr/u16-stpncpy-tests: Likewise.
16130         * modules/unistr/u16-strcat-tests: Likewise.
16131         * modules/unistr/u16-strcmp-tests: Likewise.
16132         * modules/unistr/u16-strcoll-tests: Likewise.
16133         * modules/unistr/u16-strcpy-tests: Likewise.
16134         * modules/unistr/u16-strdup-tests: Likewise.
16135         * modules/unistr/u16-strlen-tests: Likewise.
16136         * modules/unistr/u16-strmblen-tests: Likewise.
16137         * modules/unistr/u16-strmbtouc-tests: Likewise.
16138         * modules/unistr/u16-strncat-tests: Likewise.
16139         * modules/unistr/u16-strncmp-tests: Likewise.
16140         * modules/unistr/u16-strncpy-tests: Likewise.
16141         * modules/unistr/u16-strnlen-tests: Likewise.
16142         * modules/unistr/u16-to-u32-tests: Likewise.
16143         * modules/unistr/u16-to-u8-tests: Likewise.
16144         * modules/unistr/u16-uctomb-tests: Likewise.
16145         * modules/unistr/u32-check-tests: Likewise.
16146         * modules/unistr/u32-chr-tests: Likewise.
16147         * modules/unistr/u32-cmp-tests: Likewise.
16148         * modules/unistr/u32-cmp2-tests: Likewise.
16149         * modules/unistr/u32-cpy-alloc-tests: Likewise.
16150         * modules/unistr/u32-cpy-tests: Likewise.
16151         * modules/unistr/u32-mblen-tests: Likewise.
16152         * modules/unistr/u32-mbsnlen-tests: Likewise.
16153         * modules/unistr/u32-mbtouc-tests: Likewise.
16154         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
16155         * modules/unistr/u32-mbtoucr-tests: Likewise.
16156         * modules/unistr/u32-move-tests: Likewise.
16157         * modules/unistr/u32-next-tests: Likewise.
16158         * modules/unistr/u32-prev-tests: Likewise.
16159         * modules/unistr/u32-set-tests: Likewise.
16160         * modules/unistr/u32-stpcpy-tests: Likewise.
16161         * modules/unistr/u32-stpncpy-tests: Likewise.
16162         * modules/unistr/u32-strcat-tests: Likewise.
16163         * modules/unistr/u32-strcmp-tests: Likewise.
16164         * modules/unistr/u32-strcoll-tests: Likewise.
16165         * modules/unistr/u32-strcpy-tests: Likewise.
16166         * modules/unistr/u32-strdup-tests: Likewise.
16167         * modules/unistr/u32-strlen-tests: Likewise.
16168         * modules/unistr/u32-strmblen-tests: Likewise.
16169         * modules/unistr/u32-strmbtouc-tests: Likewise.
16170         * modules/unistr/u32-strncat-tests: Likewise.
16171         * modules/unistr/u32-strncmp-tests: Likewise.
16172         * modules/unistr/u32-strncpy-tests: Likewise.
16173         * modules/unistr/u32-strnlen-tests: Likewise.
16174         * modules/unistr/u32-to-u16-tests: Likewise.
16175         * modules/unistr/u32-to-u8-tests: Likewise.
16176         * modules/unistr/u32-uctomb-tests: Likewise.
16177         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
16178         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
16179         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
16180         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
16181         * modules/uniwidth/u8-strwidth-tests: Likewise.
16182         * modules/uniwidth/u8-width-tests: Likewise.
16183         * modules/uniwidth/u16-strwidth-tests: Likewise.
16184         * modules/uniwidth/u16-width-tests: Likewise.
16185         * modules/uniwidth/u32-strwidth-tests: Likewise.
16186         * modules/uniwidth/u32-width-tests: Likewise.
16187         * modules/uniwidth/width-tests: Likewise.
16188
16189 2010-05-18  Richard Jones  <rjones@redhat.com>
16190
16191         doc: users.txt: list hivex
16192         * users.txt: Add hivex.
16193
16194 2010-05-18  Richard Jones  <rjones@redhat.com>
16195
16196         doc: users.txt: list febootstrap
16197         * users.txt: Add febootstrap.
16198
16199 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
16200
16201         bootstrap: fix an error when gnulib is not used as a git submodule
16202         * build-aux/bootstrap (gnulib_path): If its length is zero then
16203         assign "gnulib" to it.
16204         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
16205
16206 2010-05-16  Bruno Haible  <bruno@clisp.org>
16207
16208         Avoid autoconf warnings about AM_ICONV.
16209         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
16210         2.64.
16211
16212 2010-05-16  Bruno Haible  <bruno@clisp.org>
16213
16214         absolute-header: Make the macro usable in more situations.
16215         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
16216         from gl_ABSOLUTE_HEADER.
16217         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
16218
16219 2010-05-16  James Youngman  <jay@gnu.org>
16220
16221         doc: update users.txt
16222         * users.txt: Add CSSC.
16223
16224 2010-05-16  Jim Meyering  <meyering@redhat.com>
16225
16226         init.sh: fix an error in the previous change; add more comments
16227         * tests/init.sh: Compare exit code in loop against 9, not 2.
16228         Patch by Bruno Haible.
16229         Make the two tests more similar by adding an empty "then" clause.
16230         Add comments.
16231
16232         init.sh: avoid unnecessary shell re-exec
16233         * tests/init.sh: Improve the re-exec-required check to first test the
16234         current shell.  If it passes the test, do not search for a shell that
16235         does pass, and do not re-exec.  This test is particularly contorted to
16236         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
16237         of $(...) evokes a syntax error and causes immediate shell exit with
16238         status 2.  Bruno Haible reported that the re-exec made it impossible
16239         to single-step through any init.sh-using script.
16240
16241 2010-05-16  Bruno Haible  <bruno@clisp.org>
16242
16243         Fix collision between gnulib's and libintl's printf replacements.
16244         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
16245         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
16246         (printf): When using GNU C, map the __printf__ function to rpl_printf
16247         via __asm__. When not using GNU C, define rpl_printf instead of
16248         __printf__.
16249         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
16250         commit.
16251         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
16252         commit.
16253         * m4/asm-underscore.m4: New file.
16254         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
16255         * modules/stdio (Files): Add m4/asm-underscore.m4.
16256         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
16257         Reported by Ben Pfaff.
16258
16259 2010-05-16  Bruno Haible  <bruno@clisp.org>
16260
16261         verify: Avoid skipping the test on openSUSE 11.0.
16262         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
16263
16264 2010-05-13  Bruno Haible  <bruno@clisp.org>
16265
16266         Avoid useless warnings from G++.
16267         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
16268         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
16269         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16270
16271 2010-05-11  Jim Meyering  <meyering@redhat.com>
16272
16273         maint.mk: tweak preceding change
16274         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
16275         regexps tighter by anchoring at EOL, and make the new group "shy"
16276         for slightly decreased overhead.
16277
16278 2010-05-11  Eric Blake  <eblake@redhat.com>
16279
16280         maint.mk: gnulib doesn't guarantee NSIG
16281         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
16282
16283 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16284
16285         test-pwrite.c: Remove unused variable declaration.
16286         * tests/test-pwrite.c (main): Remove read_buf declaration.
16287
16288         Remove useless test-pwrite.sh file.
16289         * tests/test-pwrite.sh: Delete file.
16290         * modules/pwrite-tests: Remove references.
16291         Reported by Bruno Haible.
16292
16293 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16294
16295         init.sh: fix a typo
16296         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
16297
16298 2010-05-10  Jim Meyering  <meyering@redhat.com>
16299
16300         maint.mk: avoid using a temporary file in the always-defined-macros check
16301         * top/maint.mk (.re-defmac): Remove rule.
16302         (gl_trap_): Remove definition.
16303         (sc_prohibit_always-defined_macros): Rewrite not to create and
16304         depend on a temporary file.  Instead, depend on GNU grep's ability
16305         to read a list of regular expressions from stdin when given "-f -".
16306
16307 2010-05-09  Bruno Haible  <bruno@clisp.org>
16308
16309         Update to GNU gettext 0.18, part 1.
16310         * m4/gettext.m4: Update to GNU gettext 0.18.
16311         * m4/intl.m4: Likewise.
16312         * m4/po.m4: Likewise.
16313         * modules/gettext (Files): Add m4/fcntl-o.m4.
16314         (configure.ac): Require gettext infrastructure from version 0.18.
16315
16316 2010-05-09  Jim Meyering  <meyering@redhat.com>
16317
16318         init.sh: enable MALLOC_PERTURB_
16319         * tests/init.sh: Enable glibc's malloc-perturbing option.
16320
16321         maint.mk: improve sc_cross_check_PATH_usage_in_tests
16322         With my recent change in init.sh from the two-line form:
16323             -#   : ${srcdir=.}
16324             -#   . "$srcdir/init.sh"; path_prepend_ .
16325             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
16326         I noticed that using the one-line form would cause this test
16327         to fail with a false-positive, or to stop working altogether,
16328         depending on whether help-version changed or all the tests did.
16329         * top/maint.mk (_hv_regex): Remove this definition.
16330         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16331         (_hv_regex_strong): Use a stronger regex to check for conformance.
16332         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16333         Give a separate diagnostic for lack of conforming use.
16334
16335         maint.mk: prohibit definition of symbols defined by gnulib
16336         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16337         definition of symbols defined by gnulib.
16338
16339 2010-05-09  Bruno Haible  <bruno@clisp.org>
16340
16341         acl: Avoid test failure on Cygwin-hosted mingw.
16342         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16343
16344 2010-05-09  Bruno Haible  <bruno@clisp.org>
16345
16346         error: Use system's fcntl function.
16347         * lib/error.c (fcntl): Undefine.
16348
16349 2010-05-09  Jim Meyering  <meyering@redhat.com>
16350
16351         verify: adjust formatting to be more consistent
16352         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16353         argument-list '('s, and after one comma.
16354
16355 2010-05-09  Bruno Haible  <bruno@clisp.org>
16356
16357         error: More reliable output on mingw.
16358         * lib/error.c: Include <windows.h>.
16359         (is_open): New function.
16360         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16361         defined.
16362
16363 2010-05-09  Bruno Haible  <bruno@clisp.org>
16364
16365         vasnprintf: Fix syntax errors in libintl build on mingw.
16366         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16367         pad_ourselves and prec_ourselves after use.
16368
16369 2010-05-08  Bruno Haible  <bruno@clisp.org>
16370
16371         * lib/config.charset: Update comments for Cygwin 1.7.
16372         * lib/localcharset.c: Likewise.
16373
16374 2010-05-07  Jim Meyering  <meyering@redhat.com>
16375
16376         init.sh: improve comments
16377         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16378         . "${srcdir=.}/init.sh"; path_prepend_ .
16379         Add a note about path_prepend_ and the alternative of using
16380         TESTS_ENVIRONMENT.
16381
16382 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16383
16384         exclude: Unescape hashed patterns in wildcard mode.
16385         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16386         to the hash list.
16387         * tests/test-exclude8.sh: New test case.
16388         * modules/exclude-tests: Add new test.
16389
16390 2010-05-05  Eric Blake  <eblake@redhat.com>
16391
16392         verify: automate tests
16393         * modules/verify-tests: New module.
16394         * tests/test-verify.sh: New file.
16395         * tests/test-verify.c: Guard each negative test with a unique id.
16396         Also avoid warning about unused left hand of comma expressions.
16397
16398 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16399
16400         Further improvements to verify.h, suggested by Eric Blake.
16401         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16402         the GL_* versions, to avoid collision with OpenGL.
16403         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16404         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16405         than testing merely whether it's defined.
16406
16407         Modify verify.h to pacify gcc -Wredundant_decls.
16408         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16409         These use the prefix "GL_" since they're likely to be useful elsewhere.
16410         We may need to break them out into a different .h file.
16411         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16412         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16413         of verify_function__.
16414
16415 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16416
16417         Tests for module pwrite.
16418         * modules/pwrite-tests: New file.
16419         * tests/test-pwrite.sh: New file.
16420         * tests/test-pwrite.c: New file.
16421
16422         New module pwrite.
16423         * lib/unistd.in.h (pwrite): New declaration.
16424         * lib/pwrite.c: New file, from glibc with modifications.
16425         * m4/pwrite.m4: New file.
16426         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16427         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16428         REPLACE_PWRITE.
16429         * modules/pwrite: New file.
16430         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16431         REPLACE_PWRITE.
16432         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16433         * doc/posix-functions/pwrite.texi: Mention the new module.
16434
16435 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16436
16437         pread: Update documentation.
16438         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16439
16440 2010-05-04  Eric Blake  <eblake@redhat.com>
16441
16442         docs: update cygwin progress
16443         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16444         this bug.
16445         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16446         Added in cygwin 1.7.2.
16447         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16448         Likewise.
16449         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16450         Likewise.
16451         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16452         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16453         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16454         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16455         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16456         Mention nproc module.
16457         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16458         bug in cygwin 1.7.5 addition.
16459         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16460         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16461         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16462         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16463         1.7.5.
16464         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16465         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16466         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16467         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16468         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16469         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16470         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16471         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16472         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16473         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16474         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16475         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16476         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16477         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16478         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16479         Likewise.
16480         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16481         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16482         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16483         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16484         Likewise.
16485         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16486         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16487         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16488         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16489         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16490         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16491         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16492         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16493         Likewise.
16494         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16495         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16496         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16497         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16498         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16499         Likewise.
16500         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16501         Likewise.
16502         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16503         Likewise.
16504         * doc/glibc-functions/xdrrec_endofrecord.texi
16505         (xdrrec_endofrecord): Likewise.
16506         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16507         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16508         Likewise.
16509         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16510         Likewise.
16511
16512 2010-05-04  Jim Meyering  <meyering@redhat.com>
16513
16514         gendocs.sh: make its "-s FILE" option more useful
16515         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16516         $PACKAGE to reflect the probably-different basename of "FILE".
16517
16518 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16519
16520         bootstrap: don't ignore download_po_files failure
16521         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16522         failure.
16523
16524 2010-05-03  Jim Meyering  <meyering@redhat.com>
16525
16526         maint.mk: allow to pass options to gendocs.sh
16527         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16528         (gendocs_options_): New overridable variable.
16529
16530         gnu-web-doc-update: don't ignore configure or build failure
16531         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16532
16533         announce-gen: backslash-escape '@'s in --help output
16534         * build-aux/announce-gen: Fix syntax errors.
16535
16536         maint.mk, announce-gen: allow project-specific announcement mail headers
16537         * top/maint.mk (translation_project_): Define default.
16538         (announcement_Cc_, announcement_mail_headers_): Likewise.
16539         (announcement): Invoke announce-gen with new --mail-headers option.
16540         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16541
16542         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16543         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16544         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16545         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16546         line in the "err2" output file when running "make check" in verbose
16547         mode (i.e., with set -x enabled).
16548
16549 2010-05-03  Bruno Haible  <bruno@clisp.org>
16550
16551         wctob: Fix for weird platforms.
16552         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16553         argument value.
16554
16555 2010-05-03  Jim Meyering  <meyering@redhat.com>
16556
16557         maint.mk: prohibit unwarranted use of <strings.h>
16558         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16559         strings.h in a file that does not also use strcasecmp, strncasecmp,
16560         ffs or ffsll.
16561
16562         maint.mk: remove obsolete comments
16563         * top/maint.mk: Remove stale, commented-out rules.
16564
16565 2010-05-02  Bruno Haible  <bruno@clisp.org>
16566
16567         wcwidth: Declare also when it's aliased.
16568         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16569         macro.
16570
16571 2010-05-02  Bruno Haible  <bruno@clisp.org>
16572
16573         Fix regression from 2010-04-25.
16574         * gnulib-tool (func_modules_transitive_closure): Check the status of
16575         all modules, not only of the tests that are of the form foo-tests where
16576         foo is a module.
16577
16578 2010-05-02  Bruno Haible  <bruno@clisp.org>
16579
16580         wctob: Work around nasty Cygwin 1.7.2 bug.
16581         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16582         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16583
16584 2010-05-01  Bruno Haible  <bruno@clisp.org>
16585
16586         fpurge: Sharper test.
16587         * tests/test-fpurge.c (main): Add one more ftell check.
16588         * modules/fpurge-tests (Depends-on): Add ftell.
16589         Suggested by Eric Blake.
16590
16591 2010-05-01  Bruno Haible  <bruno@clisp.org>
16592
16593         ftello: Another test.
16594         * tests/test-ftello3.c: New file.
16595         * modules/ftello-tests (Files): Add it.
16596         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16597         MOSTLYCLEANFILES.
16598
16599         ftell: Another test.
16600         * tests/test-ftell3.c: New file.
16601         * modules/ftell-tests (Files): Add it.
16602         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16603         MOSTLYCLEANFILES.
16604
16605 2010-05-01  Bruno Haible  <bruno@clisp.org>
16606
16607         ftell, ftello: Work around Solaris bug.
16608         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16609         * lib/ftello.c: Include stdio-impl.h.
16610         (ftello): On Solaris, when _IOWRT is set, compute the result without
16611         looking at _IOREAD.
16612         * modules/ftello (Files): Add lib/stdio-impl.h.
16613         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16614         * doc/posix-functions/ftello.texi: Likewise.
16615         Reported by Eric Blake.
16616
16617 2010-05-01  Bruno Haible  <bruno@clisp.org>
16618
16619         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16620         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16621         the _IOWRT flag is also set.
16622
16623 2010-05-01  Bruno Haible  <bruno@clisp.org>
16624
16625         Fix doc about a HP-UX stdio bug.
16626         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16627         * doc/posix-functions/ftello.texi: Likewise.
16628
16629 2010-05-01  Bruno Haible  <bruno@clisp.org>
16630
16631         lseek test: Fix failure on Solaris.
16632         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16633         output.
16634
16635 2010-04-30  Jim Meyering  <meyering@redhat.com>
16636
16637         bootstrap: don't ignore failure to generate po*/Makevars
16638         * build-aux/bootstrap (with_gettext): Don't ignore failure
16639         to create po/Makevars or runtime-po/Makevars.
16640
16641 2010-04-29  Eric Blake  <eblake@redhat.com>
16642
16643         headers: relax license to LGPLv2+
16644         * modules/fcntl-h (License): Relax license.
16645         * modules/getopt-posix (License): Likewise.
16646         * modules/locale (License): Likewise.
16647         * modules/math (License): Likewise.
16648         * modules/pty (License): Likewise.
16649         * modules/sched (License): Likewise.
16650         * modules/search (License): Likewise.
16651         * modules/spawn (License): Likewise.
16652         * modules/stdarg (License): Likewise.
16653         * modules/sysexits (License): Likewise.
16654
16655 2010-04-29  Jim Meyering  <meyering@redhat.com>
16656
16657         inttypes: relax license to LGPLv2+
16658         * modules/inttypes (License): Relax license.
16659
16660 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16661
16662         * top/maint.mk (indent): Run twice to produce idempotent results.
16663
16664 2010-04-28  Bruno Haible  <bruno@clisp.org>
16665
16666         getdate: Generate getdate.c in the source directory.
16667         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16668         MOSTLYCLEANFILES.
16669         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16670
16671 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16672
16673         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16674         is not declared as a const *; avoid warnings in that case.
16675
16676 2010-04-28  Eric Blake  <eblake@redhat.com>
16677
16678         canonicalize-lgpl: avoid compiler warning
16679         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16680         declaration' / 'extraneous semicolon' warning with some compilers.
16681         Reported by Andreas Gruenbacher.
16682
16683 2010-04-28  Jim Meyering  <meyering@redhat.com>
16684
16685         init.sh: ensure a more reliable exit status when exiting via trap
16686         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16687         Inspired by patches from Dmitry V. Levin.
16688         Also trap on signal 3 (SIGQUIT).
16689
16690 2010-04-27  Bruno Haible  <bruno@clisp.org>
16691
16692         Update doc about utimes().
16693         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16694         'utimens' module.
16695         Reported by Andreas Gruenbacher <agruen@suse.de>.
16696
16697 2010-04-27  Eric Blake  <eblake@redhat.com>
16698
16699         full-read, full-write: relax license
16700         * modules/full-read (License): Drop to LGPLv2+.
16701         * modules/full-write (License): Likewise.
16702         * modules/safe-read (License): Likewise.
16703         * modules/safe-write (License): Likewise.
16704
16705         pthread: mention library for linking
16706         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16707
16708 2010-04-27  Jim Meyering  <meyering@redhat.com>
16709
16710         maint.mk: fix a bug introduced in last change
16711         * top/maint.mk (gl_assured_headers_): Now that all names are on
16712         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16713         is not anchored to end of word, it should be adequate.
16714
16715         maint.mk: avoid side-effect in latest syntax-check
16716         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16717         to run commands via $(shell...), and hence to incur cost only when
16718         the new rule is actually run.
16719
16720         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16721         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16722         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16723         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16724         (gl_assured_headers_, az_, AZ_): Define.
16725         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16726
16727 2010-04-26  Jim Meyering  <jim@meyering.net>
16728             Bruno Haible  <bruno@clisp.org>
16729
16730         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16731         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16732         Prompted by an exchange with Gilles Espinasse.
16733
16734 2010-04-26  Jim Meyering  <meyering@redhat.com>
16735
16736         git-version-gen: aesthetic tweak
16737         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16738         so that the command remains on a single line.
16739
16740 2010-04-26  Eric Blake  <eblake@redhat.com>
16741
16742         git-version-gen: allow use on EBCDIC hosts
16743         * build-aux/git-version-gen (dirty): Use literal rather than tying
16744         ourselves to ascii.
16745         Reported by Steve Goetze.
16746
16747 2010-04-25  Bruno Haible  <bruno@clisp.org>
16748
16749         netdb: Add support for GNULIB_POSIXCHECK.
16750         * lib/netdb.in.h: Include warn-on-use.h.
16751         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16752         functions are used when GNULIB_POSIXCHECK is defined and the
16753         getaddrinfo module is not in use.
16754         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16755         freeaddrinfo, gai_strerror, getnameinfo are declared.
16756         * modules/netdb (Depends-on): Add warn-on-use.
16757         (Makefile.am): Include warn-on-use.h in netdb.h.
16758
16759 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16760
16761         build: avoid "make check" failure without .git/ directory
16762         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16763         there is no .git/ directory.
16764
16765 2010-04-25  Bruno Haible  <bruno@clisp.org>
16766
16767         ptsname: Fix misuse of ttyname_r.
16768         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16769         of errno.
16770
16771 2010-04-25  Bruno Haible  <bruno@clisp.org>
16772
16773         ttyname_r: Make it work on Solaris 10.
16774         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16775         if the system function has the POSIX declaration. Test whether the
16776         function fails if the buffer is less than 128 bytes large.
16777         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16778         system's ttyname_r function. Provide a reasonably large buffer.
16779         * modules/ttyname_r (Depends-on): Add extensions.
16780         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16781
16782 2010-04-25  Bruno Haible  <bruno@clisp.org>
16783
16784         Use the 'extensions' module for some more functions on Solaris.
16785         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16786         module.
16787         * doc/posix-functions/ctime_r.texi: Likewise.
16788         * doc/posix-functions/getgrgid_r.texi: Likewise.
16789         * doc/posix-functions/getgrnam_r.texi: Likewise.
16790         * doc/posix-functions/getpwnam_r.texi: Likewise.
16791         * doc/posix-functions/getpwuid_r.texi: Likewise.
16792         * doc/posix-functions/readdir_r.texi: Likewise.
16793         * doc/posix-functions/sigwait.texi: Likewise.
16794         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16795         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16796
16797 2010-04-25  Bruno Haible  <bruno@clisp.org>
16798
16799         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16800         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16801         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16802         * lib/ttyname_r.c: Include <limits.h>.
16803         (ttyname_r): Define using the system's ttyname_r function, if it exists
16804         and not on Solaris.
16805         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16806         set.
16807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16808         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16809         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16810         Reported by Simon Josefsson.
16811
16812 2010-04-25  Bruno Haible  <bruno@clisp.org>
16813
16814         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16815         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16816         * doc/posix-functions/ctime_r.texi: Likewise.
16817         * doc/posix-functions/getgrgid_r.texi: Likewise.
16818         * doc/posix-functions/getgrnam_r.texi: Likewise.
16819         * doc/posix-functions/getlogin_r.texi: Likewise.
16820         * doc/posix-functions/getpwnam_r.texi: Likewise.
16821         * doc/posix-functions/getpwuid_r.texi: Likewise.
16822         * doc/posix-functions/readdir_r.texi: Likewise.
16823         * doc/posix-functions/sigwait.texi: Likewise.
16824         * doc/posix-functions/ttyname_r.texi: Likewise.
16825         Reported by Simon Josefsson.
16826
16827 2010-04-25  Bruno Haible  <bruno@clisp.org>
16828
16829         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16830         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16831         also to --create-testdir.
16832         (func_acceptable): Don't consider the status of *-tests modules here.
16833         (func_modules_transitive_closure): Consider it here, before including a
16834         test module.
16835         (func_import, func_create_testdir): Set inc_all_direct_tests,
16836         inc_all_indirect_tests.
16837         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16838         --create-testdir and --create-megatestdir.
16839
16840 2010-04-25  Bruno Haible  <bruno@clisp.org>
16841
16842         gnulib-tool: Add --without-*-tests options.
16843         * gnulib-tool (func_usage): Document the --without-*-tests options.
16844         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16845         excl_unportable_tests): New variables.
16846         Fail if they are specified with --import or --update.
16847         (func_acceptable): Respect the excl_*_tests variables.
16848         (func_import): Set the excl_*_tests variables to empty.
16849
16850 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16851             Bruno Haible  <bruno@clisp.org>
16852
16853         Work around a MacOS X 10.4 bug with openpty.
16854         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16855         * tests/test-openpty.c (main): Close the master side explicitly.
16856
16857 2010-04-25  Bruno Haible  <bruno@clisp.org>
16858
16859         strnlen: Fix a C++ test error on MacOS X and Solaris.
16860         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16861         the function is not declared.
16862         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16863         Simon Josefsson.
16864
16865 2010-04-24  Bruno Haible  <bruno@clisp.org>
16866
16867         Avoid a gcc warning.
16868         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16869         of correct type for %08lx directive.
16870         Reported by Eric Blake.
16871
16872 2010-04-24  Bruno Haible  <bruno@clisp.org>
16873
16874         vasnprintf: Correct errno value in case of out-of-memory.
16875         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16876         or sprintf. Use the errno value from SNPRINTF or sprintf.
16877         Reported by Ian Beckwith <ianb@erislabs.net>.
16878
16879 2010-04-24  Bruno Haible  <bruno@clisp.org>
16880
16881         ansi-c++-opt: Find correct compiler when cross-compiling.
16882         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16883         AC_CHECK_PROGS.
16884         Reported by Simon Josefsson.
16885
16886 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16887
16888         vc-list-files: Add support for subversion
16889         * build-aux/vc-list-files: Use "svn list" to generate the list of
16890         files controlled by subversion.
16891
16892 2010-04-23  Jim Meyering  <meyering@redhat.com>
16893
16894         vc-list-files tests: convert to use init.sh
16895         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16896         path_prepend_.
16897         Use Exit, not exit.
16898         Use skip_ rather than open coding it.
16899         Remove trap set-up and compare definitions.
16900         * tests/test-vc-list-files-git.sh: Likewise.
16901         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16902
16903 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16904
16905         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16906         backup files.
16907
16908 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16909
16910         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16911
16912 2010-04-20  Eric Blake  <eblake@redhat.com>
16913
16914         tests: be robust to ignored SIGPIPE
16915         * tests/test-select-in.sh: Consume all output.
16916         * tests/test-lseek.sh: Check correct exit status, while avoiding
16917         EPIPE.
16918
16919 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16920             Bruno Haible  <bruno@clisp.org>
16921
16922         visibility: Don't use -fvisibility if it leads to a warning.
16923         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16924         yes, don't pretend that visibility works if it leads to a warning.
16925         Reported by Mike Gran <spk121@yahoo.com>.
16926
16927 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16928
16929         * build-aux/bootstrap: Use "git -h" for testing for supported options
16930         instead of "git --help".  The short-form option only shows a summary,
16931         and doesn't layout the full man page.  Grep for the full option name
16932         in the summary, too.
16933
16934 2010-04-19  Bruno Haible  <bruno@clisp.org>
16935
16936         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16937         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16938         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16939         mention of RELOCATABLE_STRIP.
16940         Reported by Sylvain Beucler <beuc@beuc.net>.
16941
16942 2010-04-19  Bruno Haible  <bruno@clisp.org>
16943
16944         * lib/diffseq.h: Fix typo in comment.
16945         Reported by Eric Blake.
16946
16947 2010-04-19  Bruno Haible  <bruno@clisp.org>
16948
16949         ioctl: Move autoconf macro to a .m4 file.
16950         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16951         * modules/ioctl (Files): Add it.
16952         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16953         Reported by Ian Beckwith <ianb@erislabs.net>.
16954
16955 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16956             Bruno Haible  <bruno@clisp.org>
16957
16958         diffseq: Accommodate use-case with abstract arrays.
16959         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16960         is not defined.
16961         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16962         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16963
16964 2010-04-18  Bruno Haible  <bruno@clisp.org>
16965
16966         * doc/posix-headers/stdbool.texi: More precise wording.
16967
16968 2010-04-17  Jim Meyering  <meyering@redhat.com>
16969
16970         maint.mk: use gnu-style indentation in an embedded perl script
16971         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16972         Rename variable: s/two/last_two_bytes/
16973
16974 2010-04-16  Eric Blake  <eblake@redhat.com>
16975
16976         test-stdbool: skip test that fails with Solaris CC
16977         * tests/test-stdbool.c (f): Skip test that causes compilation
16978         error under buggy C++ compiler.
16979         * lib/stdbool.in.h: Document the limitation.
16980         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16981
16982         setenv: allow compilation with C++
16983         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16984         register keyword.
16985
16986         stdint: allow test to pass with C++
16987         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16988
16989         getopt: allow compilation with C++
16990         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16991         struct.
16992         * lib/getopt.c (_getopt_internal_r): Use correct type.
16993         Reported by Dagobert Michelson, via Joel E. Denny.
16994
16995 2010-04-16  Bruno Haible  <bruno@clisp.org>
16996
16997         Override netdb.h always.
16998         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16999         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
17000         Reported by Ludovic Courtès <ludo@gnu.org>.
17001
17002 2010-04-15  Bruno Haible  <bruno@clisp.org>
17003
17004         openpty: Fix mistake from 2010-03-21.
17005         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
17006         Reported by Simon Josefsson.
17007
17008 2010-04-15  Eric Blake  <eblake@redhat.com>
17009
17010         test-forkpty: fix expected signature
17011         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
17012         Reported by Simon Josefsson.
17013
17014 2010-04-15  Jim Meyering  <meyering@redhat.com>
17015
17016         maint.mk: texinfo_suffix_re_: correct the default regexp
17017         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
17018
17019         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
17020         make it configurable via texinfo_suffix_re_.
17021
17022 2010-04-14  Eric Blake  <eblake@redhat.com>
17023
17024         strtok_r: relax license to LGPLv2+
17025         * modules/strtok_r (License): Relax license.
17026         Reported by Matthias Bolte.
17027
17028 2010-04-14  Simon Josefsson  <simon@josefsson.org>
17029
17030         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
17031         version 1.4.4 by default instead of requiring the libgcrypt
17032         version used during build.  This makes it possible to use the
17033         application with older but still binary compatible libgcrypt
17034         versions.
17035
17036 2010-04-13  Eric Blake  <eblake@redhat.com>
17037
17038         getopt-gnu: match recent glibc fixes and posix ruling
17039         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
17040         '+' handling, when requesting extensions.
17041         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
17042         'W;' handling.
17043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
17044         * doc/posix-functions/getopt.texi (getopt): Document this.
17045         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17046         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17047         Likewise.
17048
17049         getopt: merge bug fixes from glibc
17050         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
17051         diagnostics.  Honor '+:' correctly.  Reject ';'.
17052
17053         getopt-posix: detect MacOS bug
17054         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
17055         optind when missing a required argument.
17056         * doc/posix-functions/getopt.texi (getopt): Document the bug.
17057         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17058         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17059         Likewise.
17060
17061         getopt-posix: avoid spurious failure on Solaris
17062         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
17063         an indicator that setting optind=1 is sufficient for reset.
17064
17065         getopt-posix: avoid spurious failure on FreeBSD
17066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17067         in POSIX mode, since the m4 test uses it.
17068
17069         gnulib-tool: silence warning on BSD sh
17070         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
17071
17072 2010-04-13  Jim Meyering  <meyering@redhat.com>
17073
17074         doc: users.txt: GNU patch now uses gnulib
17075         * users.txt: Add patch.
17076
17077 2010-04-12  Jim Meyering  <meyering@redhat.com>
17078
17079         maint.mk: generate more concise timing data for syntax-check rules
17080         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
17081         " done" from each line that reports a syntax-check test duration.
17082
17083 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
17084
17085         git-version-gen: use "git update-index..." rather than "git status"
17086         * build-aux/git-version-gen: Use git update-index --refresh, not
17087         "git status".  With some versions of git, "git status" would fail
17088         to update the index and result in an unwarranted "-dirty" suffix.
17089
17090 2010-04-11  Jim Meyering  <meyering@redhat.com>
17091
17092         openat: correct formatting (no semantic change)
17093         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
17094         Suggested by Bruno Haible.
17095
17096 2010-04-11  Bruno Haible  <bruno@clisp.org>
17097
17098         Stricter declaration checking in testdirs.
17099         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17100         If for_tests is true, augment AM_CPPFLAGS to define
17101         GNULIB_STRICT_CHECKING.
17102         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
17103         GNULIB_STRICT_CHECKING is defined, verify that the function is
17104         declared.
17105
17106 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
17107             Bruno Haible  <bruno@clisp.org>
17108
17109         libunistring: Improve configure output.
17110         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
17111         Don't say "consider installing GNU libunistring" when checking again
17112         with libiconv.
17113
17114 2010-04-11  Bruno Haible  <bruno@clisp.org>
17115
17116         libunistring: Correct value of $LTLIBUNISTRING.
17117         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
17118         correct the value of $LTLIBUNISTRING.
17119
17120 2010-04-11  Bruno Haible  <bruno@clisp.org>
17121
17122         havelib: Add static libraries to LIBS in the right order.
17123         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
17124         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
17125
17126 2010-04-11  Bruno Haible  <bruno@clisp.org>
17127
17128         libunistring: Detect libunistring also when it depends on libiconv.
17129         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
17130         the second AC_LIB_HAVE_LINKFLAGS invocation.
17131
17132 2010-04-11  James Youngman  <jay@gnu.org>
17133
17134         close-stream: declare local scalars to be "const"
17135         * lib/close-stream.c (close_stream): Make boolean variables const
17136         to document the fact that we set but do not change them.
17137
17138 2010-04-11  Bruno Haible  <bruno@clisp.org>
17139
17140         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
17141
17142 2010-04-11  Jim Meyering  <meyering@redhat.com>
17143
17144         maint.mk: don't include dist-check.mk
17145         * top/maint.mk: Remove bogus include directive.
17146
17147         maint.mk: improve empty-line-at-EOF check
17148         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
17149         solution, rather than tail+Perl-based one.  The latter would read
17150         a few kilobytes from the end of each file, and did not handle empty
17151         files properly.
17152
17153         maint.mk: print the elapsed time for each syntax-check rule
17154         * top/maint.mk (sc_m_rules_): Save start time in a file.
17155         (sc_z_rules_): New rules: remove temp file and print elapsed time.
17156         (local-check): Interpose the .z rules
17157
17158 2010-04-11  Jim Meyering  <meyering@redhat.com>
17159
17160         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
17161         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
17162         empty file with one that ends in an empty line.
17163
17164 2010-04-10  Bruno Haible  <bruno@clisp.org>
17165
17166         mkdir: Make it work on mingw64.
17167         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
17168         * lib/mkdir.c: Update comment.
17169         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
17170
17171 2010-04-10  Bruno Haible  <bruno@clisp.org>
17172
17173         Don't override improved macro from newer autoconf.
17174         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
17175         autoconf >= 2.62.
17176         Reported by Joel E. Denny <jdenny@clemson.edu>.
17177
17178 2010-04-10  Jim Meyering  <meyering@redhat.com>
17179
17180         maint.mk: new syntax-check rule: prohibit empty lines at end of file
17181         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
17182
17183         maint.mk: correct a diagnostic
17184         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
17185         in diagnostic; now use $prohibit.
17186
17187 2010-04-10  Bruno Haible  <address@hidden>
17188
17189         fchownat: Fix a C++ test error on Solaris 8.
17190         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
17191         the function does not exist.
17192
17193 2010-04-10  Bruno Haible  <bruno@clisp.org>
17194
17195         vasnprintf: Add more tests.
17196         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17197         (test_function): Test converting an invalid wide string.
17198
17199         vasnprintf: Correct handling of unconvertible wide string arguments.
17200         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
17201         VASNPRINTF.
17202         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
17203         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
17204         smaller than the expected maximum need for the directive. Set errno to
17205         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
17206         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
17207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
17208         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
17209         * modules/vasnprintf (Files): Add m4/printf.m4.
17210         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17211
17212 2010-04-10  Bruno Haible  <bruno@clisp.org>
17213
17214         vasnprintf: Fix crash in %ls directive.
17215         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
17216         string is passed as argument to %ls, with no precision and no width.
17217         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17218
17219 2010-04-10  Bruno Haible  <bruno@clisp.org>
17220
17221         vasnprintf: Fix multiple test failures on mingw.
17222         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
17223         _snprintf, or snwprintf, not _snwprintf.
17224
17225 2010-04-10  Bruno Haible  <bruno@clisp.org>
17226
17227         write: Fix a C++ test error on mingw.
17228         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
17229
17230 2010-04-10  Bruno Haible  <bruno@clisp.org>
17231
17232         vasnprintf test: Reduce code duplication.
17233         * tests/test-vasnprintf.c (test_function): New function, extracted from
17234         test_vasnprintf.
17235         (test_vasnprintf, test_asnprintf): Invoke it.
17236
17237 2010-04-10  Bruno Haible  <bruno@clisp.org>
17238
17239         strnlen: Fix warning in C++ mode on MacOS X.
17240         * lib/string.in.h (strnlen): Use the modern idiom.
17241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
17242         defining strnlen as a macro already in <config.h>.
17243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17244         REPLACE_STRNLEN.
17245         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
17246         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17247
17248 2010-04-08  James Youngman  <jay@gnu.org>
17249
17250         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
17251         the example.
17252
17253 2010-04-09  Jim Meyering  <meyering@redhat.com>
17254
17255         maint.mk: print better diagnostic when there is no $(_hv_file)
17256         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
17257         announce that when $(_hv_file) (aka help-version) does not exist.
17258
17259         init.sh: run tr in the "C" locale to avoid multibyte interpretation
17260         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
17261         not try to interpret its random input bytes.  Jarno Rajahalme reported
17262         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
17263         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
17264         (mktempd_): Likewise, just in case.
17265
17266         ftruncate: add two years to projected module removal date: 2012
17267         * m4/ftruncate.m4: Adjust comments.
17268
17269         ftruncate: mark module as obsolete; even MinGW provides it, now
17270         * modules/ftruncate (Status): Obsolete.
17271         (Notice): Say that.
17272         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
17273         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
17274
17275 2010-04-08  Bruno Haible  <bruno@clisp.org>
17276
17277         Fix side effects from tests-related modules.
17278         * modules/dprintf-posix (Comment): New section.
17279         * modules/fprintf-posix (Comment): Likewise.
17280         * modules/obstack-printf-posix (Comment): Likewise.
17281         * modules/printf-posix (Comment): Likewise.
17282         * modules/snprintf-posix (Comment): Likewise.
17283         * modules/sprintf-posix (Comment): Likewise.
17284         * modules/vasnprintf-posix (Comment): Likewise.
17285         * modules/vasprintf-posix (Comment): Likewise.
17286         * modules/vdprintf-posix (Comment): Likewise.
17287         * modules/vfprintf-posix (Comment): Likewise.
17288         * modules/vprintf-posix (Comment): Likewise.
17289         * modules/vsnprintf-posix (Comment): Likewise.
17290         * modules/vsprintf-posix (Comment): Likewise.
17291         * modules/xprintf-posix (Comment): Likewise.
17292         * modules/xvasprintf-posix (Comment): Likewise.
17293         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
17294         * modules/floorf-tests (Depends-on): Likewise.
17295         * modules/round-tests (Depends-on): Likewise.
17296         * modules/roundf-tests (Depends-on): Likewise.
17297         * modules/trunc-tests (Depends-on): Likewise.
17298         * modules/truncf-tests (Depends-on): Likewise.
17299         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
17300         'fprintf-posix' module is not present.
17301         * tests/test-floorf2.c (check): Likewise.
17302         * tests/test-trunc2.c (check): Likewise.
17303         * tests/test-truncf2.c (check): Likewise.
17304         * tests/test-round2.c (equal): Likewise.
17305         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17306
17307 2010-04-07  Karl Berry  <karl@gnu.org>
17308
17309         * config/srclist.txt,
17310         * config/srclistvars.sh,
17311         * config/srclist-update: doc fixes.
17312
17313 2010-04-07  Jim Meyering  <meyering@redhat.com>
17314
17315         maint.mk: add a PATH crosschecking syntax-check rule
17316         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
17317         Useful if you use a test like the one in help-version (coreutils,
17318         diffutils, grep, gzip) that ensures $(VERSION) matches what is
17319         printed by prog --version.
17320
17321 2010-04-06  Bruno Haible  <bruno@clisp.org>
17322
17323         Fix link error on mingw.
17324         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
17325         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
17326
17327 2010-04-06  Bruno Haible  <bruno@clisp.org>
17328
17329         Assume rmdir exists.
17330         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17331
17332 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17333
17334         doc: update users.txt
17335         * users.txt: Add gcal.
17336
17337 2010-04-06  Jim Meyering  <meyering@redhat.com>
17338
17339         init.sh: simply unset TMPDIR rather than risking env -i
17340         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17341         although it probably works fine on all Unix-based systems, some
17342         systems (Cygwin?) cannot tolerate a totally cleared environment.
17343         Suggestion from Eric Blake.
17344
17345 2010-04-06  Jim Meyering  <meyering@redhat.com>
17346
17347         init.sh: portability fix: use env's POSIX-specified -i option not -u
17348         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17349         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17350
17351 2010-04-05  Bruno Haible  <bruno@clisp.org>
17352
17353         btowc: Work around Cygwin 1.7.2 bug.
17354         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17355         does not map NUL to 0.
17356         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17357
17358 2010-04-05  Bruno Haible  <bruno@clisp.org>
17359
17360         Make the multithread modules work on Cygwin 1.7.2.
17361         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17362         imported symbols can be declared weak, so that it returns "no" on
17363         Cygwin 1.7.2.
17364
17365 2010-04-05  Bruno Haible  <bruno@clisp.org>
17366
17367         Use the module 'strncat'.
17368         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17369
17370         Tests for module 'strncat'.
17371         * modules/strncat-tests: New file.
17372         * tests/test-strncat.c: New file.
17373
17374         New module 'strncat'.
17375         * lib/string.in.h (strncat): New declaration.
17376         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17377         * m4/strncat.m4: New file, based on m4/memchr.m4.
17378         * modules/strncat: New file.
17379         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17380         is declared.
17381         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17382         REPLACE_STRNCAT.
17383         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17384         REPLACE_STRNCAT.
17385         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17386         module.
17387         * tests/test-string-c++.cc: Check signature of strncat.
17388
17389 2010-04-05  Jim Meyering  <meyering@redhat.com>
17390
17391         xstrtoumax-tests: convert to use init.sh
17392         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17393         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17394         Use Exit, not exit.
17395         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17396
17397         xstrtoimax-tests: convert to use init.sh
17398         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17399         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17400         Use Exit, not exit.
17401         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17402
17403 2010-04-05  Bruno Haible  <bruno@clisp.org>
17404
17405         sys_socket: Avoid #define replacements in C++ mode.
17406         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17407         warning to the function if possible, rather than #defining the symbol
17408         to a dysfunctional alias.
17409
17410 2010-04-05  Bruno Haible  <bruno@clisp.org>
17411
17412         fseeko: Fix C++ test error on mingw.
17413         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17414         gl_FUNC_FSEEKO.
17415         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17416         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17417         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17418         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17419
17420 2010-04-05  Bruno Haible  <bruno@clisp.org>
17421
17422         duplocale: Improve test output.
17423         * tests/test-duplocale.c (main): Print reason for skipped test.
17424
17425 2010-04-05  Bruno Haible  <bruno@clisp.org>
17426
17427         Assume rmdir exists.
17428         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17429         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17430
17431 2010-04-05  Bruno Haible  <bruno@clisp.org>
17432
17433         Fix link error on Solaris 8 with cc.
17434         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17435
17436 2010-04-05  Bruno Haible  <bruno@clisp.org>
17437
17438         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17439         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17440
17441 2010-04-05  Bruno Haible  <bruno@clisp.org>
17442
17443         vasprintf: Update documentation.
17444         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17445
17446 2010-04-05  Bruno Haible  <bruno@clisp.org>
17447
17448         ptsname: Improve test.
17449         * tests/test-ptsname.c (main): Also try the various master names of BSD
17450         systems.
17451
17452 2010-04-05  Bruno Haible  <bruno@clisp.org>
17453
17454         memchr: Avoid a possible C++ test error.
17455         * lib/string.in.h (memchr): Provide declaration if function is missing.
17456         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17457         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17459         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17460
17461 2010-04-05  Bruno Haible  <bruno@clisp.org>
17462
17463         strtok_r: Improve idiom.
17464         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17465         AC_LIBOBJ is used.
17466
17467 2010-04-05  Bruno Haible  <bruno@clisp.org>
17468
17469         strdup: Improve idiom.
17470         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17471         AC_LIBOBJ is used.
17472         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17473         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17474         when AC_LIBOBJ is used.
17475
17476 2010-04-05  Bruno Haible  <bruno@clisp.org>
17477
17478         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17479         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17480         don't set REPLACE_MBSINIT to 1.
17481         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17482         don't set REPLACE_MBRTOWC to 1.
17483         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17484         exist, don't set REPLACE_MBSRTOWCS to 1.
17485         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17486         exist, don't set REPLACE_MBSNRTOWCS to 1.
17487         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17488         don't set REPLACE_WCRTOMB to 1.
17489         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17490         exist, don't set REPLACE_WCSRTOMBS to 1.
17491         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17492         exist, don't set REPLACE_WCSNRTOMBS to 1.
17493
17494 2010-04-05  Bruno Haible  <bruno@clisp.org>
17495
17496         ldexpl: Improve idiom.
17497         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17498         make sure to set HAVE_DECL_LDEXPL to 0.
17499
17500 2010-04-05  Jim Meyering  <meyering@redhat.com>
17501
17502         xstrtol-tests: convert to use init.sh
17503         * modules/xstrtol-tests (Files): Add tests/init.sh.
17504         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17505         Use Exit, not exit.
17506         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17507
17508         atexit-tests: convert to use init.sh
17509         * modules/atexit-tests (Files): Add tests/init.sh.
17510         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17511         Use Exit, not exit.
17512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17513
17514         init.sh: fix typo
17515         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17516
17517         init.sh: make it easier for a test script to write to the tty, ...
17518         when using automake's parallel-tests mode.
17519         * tests/init.sh (stderr_fileno_): Define overridable variable.
17520         (warn_): New function, to use it.
17521         (fail_, skip_, framework_failure_): Use warn_.
17522
17523 2010-04-04  Bruno Haible  <bruno@clisp.org>
17524
17525         btowc: Avoid warning.
17526         * lib/btowc.c: Include <stdlib.h>.
17527         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17528
17529 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17530             Bruno Haible  <bruno@clisp.org>
17531
17532         wchar: Port to NetBSD 1.5.
17533         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17534         * lib/wctype.in.h (WEOF): Likewise.
17535
17536 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17537             Bruno Haible  <bruno@clisp.org>
17538
17539         Port extended stdio to NetBSD 1.5.
17540         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17541         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17542         older.
17543
17544 2010-04-04  Bruno Haible  <bruno@clisp.org>
17545
17546         string: Remove unused substitution.
17547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17548         HAVE_DECL_STRERROR.
17549         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17550
17551 2010-04-04  Bruno Haible  <bruno@clisp.org>
17552
17553         strtod: Avoid a possible C++ test error.
17554         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17555         set REPLACE_STRTOD.
17556
17557 2010-04-04  Bruno Haible  <bruno@clisp.org>
17558
17559         strerror: Update documentation.
17560         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17561
17562 2010-04-04  Bruno Haible  <bruno@clisp.org>
17563
17564         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17565         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17566         _GL_CXXALIAS_SYS_CAST.
17567
17568 2010-04-04  Bruno Haible  <bruno@clisp.org>
17569
17570         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17571         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17572         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17573         REPLACE_FREXPL to 1.
17574         * doc/posix-functions/frexpl.texi: Update documentation.
17575
17576 2010-04-04  Bruno Haible  <bruno@clisp.org>
17577
17578         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17579         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17580
17581 2010-04-04  Bruno Haible  <bruno@clisp.org>
17582
17583         Implement nanosleep for native Windows.
17584         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17585
17586 2010-04-04  Bruno Haible  <bruno@clisp.org>
17587
17588         math: Fix some C++ test errors on Solaris 8.
17589         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17590
17591 2010-04-04  Bruno Haible  <bruno@clisp.org>
17592
17593         math: Fix some C++ test errors on Cygwin.
17594         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17595         truncl): Provide declaration if the system does not have it.
17596         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17597         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17598         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17599         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17600         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17601         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17602         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17603         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17604         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17605         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17606         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17607         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17608         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17609         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17610         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17611         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17613         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17614         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17615         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17616         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17617         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17618
17619 2010-04-04  Bruno Haible  <bruno@clisp.org>
17620
17621         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17622         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17623         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17624         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17625         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17626         * m4/isinf.m4 (gl_ISINF): Likewise.
17627         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17628
17629 2010-04-04  Bruno Haible  <bruno@clisp.org>
17630
17631         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17632         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17633
17634 2010-04-04  Bruno Haible  <bruno@clisp.org>
17635
17636         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17637         * modules/tmpfile (configure.ac): Update.
17638
17639         tmpfile: Fix C++ test error on mingw.
17640         * lib/stdio.in.h (tmpfile): New declaration.
17641         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17642         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17643         * modules/tmpfile (Depends-on): Add stdio.
17644         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17645         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17646         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17647         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17648         REPLACE_TMPFILE.
17649         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17650
17651 2010-04-04  Bruno Haible  <bruno@clisp.org>
17652
17653         ioctl: Fix C++ test error on mingw.
17654         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17655         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17656         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17657
17658 2010-04-03  Bruno Haible  <bruno@clisp.org>
17659
17660         wcwidth: Fix C++ test error on mingw.
17661         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17663         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17664
17665 2010-04-03  Bruno Haible  <bruno@clisp.org>
17666
17667         nanosleep: Fix C++ test error on mingw.
17668         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17669         * lib/time.in.h (nanosleep): Use modern idiom.
17670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17671         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17672         REPLACE_NANOSLEEP to 1.
17673         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17674         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17675
17676 2010-04-03  Bruno Haible  <bruno@clisp.org>
17677
17678         strptime: Fix C++ test error on mingw.
17679         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17680         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17681         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17682         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17683         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17684         not REPLACE_STRPTIME.
17685         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17686         REPLACE_STRPTIME.
17687
17688 2010-04-03  Bruno Haible  <bruno@clisp.org>
17689
17690         timegm: Fix C++ test error on mingw.
17691         * lib/time.in.h (timegm): Use modern idiom.
17692         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17693         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17694         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17695         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17696
17697 2010-04-03  Bruno Haible  <bruno@clisp.org>
17698
17699         timegm: Assume declaration if function exists.
17700         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17701         if it exists. Don't clobber ac_cv_func_timegm.
17702
17703 2010-04-03  Bruno Haible  <bruno@clisp.org>
17704
17705         time_r: Fix C++ test error on mingw.
17706         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17707         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17708         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17709         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17710         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17711
17712 2010-04-03  Bruno Haible  <bruno@clisp.org>
17713
17714         time_r: Minor updates.
17715         * modules/time_r (Description): Mention the provided functions.
17716         * lib/time_r.c: Don't include <string.h>.
17717         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17718         * doc/posix-functions/localtime_r.texi: Likewise.
17719
17720 2010-04-03  Bruno Haible  <bruno@clisp.org>
17721
17722         time: Fix regression introduced on 2010-03-08.
17723         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17724         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17725
17726 2010-04-03  Jim Meyering  <meyering@redhat.com>
17727
17728         maint.mk: don't silently disable project-specific syntax-check rules
17729         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17730         that they need to convert their project-specific syntax-check rules
17731         to use the new _sc_search_regexp.
17732
17733 2010-04-03  Bruno Haible  <bruno@clisp.org>
17734
17735         fchdir: Fix regression introduced on 2010-03-08.
17736         * lib/unistd.in.h (fchdir): Fix declaration.
17737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17739         REPLACE_FCHDIR.
17740         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17741         REPLACE_FCHDIR.
17742
17743 2010-04-03  Bruno Haible  <bruno@clisp.org>
17744
17745         getpagesize: Fix C++ test error on mingw.
17746         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17747         system does not declare the function.
17748         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17749         declared.
17750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17751         HAVE_DECL_GETPAGESIZE.
17752         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17753
17754 2010-04-03  Bruno Haible  <bruno@clisp.org>
17755
17756         stdio: Make C++ tests work on mingw.
17757         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17758         does not declare the function.
17759
17760 2010-04-03  Bruno Haible  <bruno@clisp.org>
17761
17762         ftello: Fix C++ test error on mingw.
17763         * lib/stdio.in.h (ftello): Use modern idiom.
17764         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17765         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17766         is missing and that it needs to be replaced.
17767         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17769         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17770
17771 2010-04-03  Bruno Haible  <bruno@clisp.org>
17772
17773         fseeko: Fix C++ test error on mingw.
17774         * lib/stdio.in.h (fseeko): Use modern idiom.
17775         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17776         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17777         is missing and that it needs to be replaced.
17778         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17780         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17781
17782 2010-04-03  Bruno Haible  <bruno@clisp.org>
17783
17784         mkstemp: Fix C++ test error on mingw.
17785         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17786         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17787         function is missing and that it needs to be replaced.
17788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17789         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17790
17791 2010-04-03  Bruno Haible  <bruno@clisp.org>
17792
17793         stpncpy: Fix C++ test error on mingw.
17794         * lib/string.in.h (stpncpy): Use modern idiom.
17795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17796         function is missing and that it needs to be replaced.
17797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17798         REPLACE_STPNCPY.
17799         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17800
17801 2010-04-03  Bruno Haible  <bruno@clisp.org>
17802
17803         sys_stat: Fix C++ test error on mingw.
17804         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17805         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17806
17807 2010-04-03  Bruno Haible  <bruno@clisp.org>
17808
17809         pty: Update doc.
17810         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17811
17812 2010-04-03  Bruno Haible  <bruno@clisp.org>
17813
17814         unistd: Fix C++ test error on mingw.
17815         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17816
17817 2010-04-03  Bruno Haible  <bruno@clisp.org>
17818
17819         Update doc regarding mingw.
17820         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17821         * doc/glibc-functions/login_tty.texi: Likewise.
17822         * doc/glibc-functions/forkpty.texi: Likewise.
17823
17824 2010-04-03  Bruno Haible  <bruno@clisp.org>
17825
17826         stdlib: Avoid compilation failure of c-strtold on mingw.
17827         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17828
17829 2010-04-03  Bruno Haible  <bruno@clisp.org>
17830
17831         locale: Make C++ tests work on Cygwin and mingw.
17832         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17833         cannot provide the function.
17834         Reported by Simon Josefsson.
17835
17836 2010-04-03  Bruno Haible  <bruno@clisp.org>
17837
17838         localename: Port to MacOS X 10.6.
17839         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17840         memory layout of the locales in MacOS X 10.6 as well.
17841         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17842
17843 2010-04-02  Bruno Haible  <bruno@clisp.org>
17844
17845         gnulib-tool: Ensure that long-running tests are executed last.
17846         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17847         running tests after the one for the other tests.
17848
17849 2010-04-02  Bruno Haible  <bruno@clisp.org>
17850
17851         gnulib-tool: Ensure the tests in the main directory are executed first.
17852         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17853         start with the current directory.
17854
17855 2010-04-02  Bruno Haible  <bruno@clisp.org>
17856
17857         Tests for module 'havelib', moved here from GNU gettext.
17858         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17859         modifications.
17860         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17861         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17862         with modifications.
17863         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17864         modifications.
17865         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17866         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17867         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17868         with modifications.
17869         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17870         with modifications.
17871         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17872         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17873         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17874         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17875         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17876         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17877         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17878         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17879         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17880         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17881         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17882         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17883         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17884         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17885         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17886         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17887         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17888         with modifications.
17889         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17890         with modifications.
17891         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17892         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17893         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17894         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17895         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17896         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17897         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17898         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17899         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17900         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17901         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17902         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17903         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17904         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17905         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17906         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17907         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17908         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17909         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17910         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17911         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17912         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17913         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17914         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17915         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17916         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17917         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17918         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17919         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17920         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17921         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17922         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17923         * tests/havelib/rpathx/rpathx.c: New file, from
17924         gettext/autoconf-lib-link.
17925         * tests/havelib/rpathx/Makefile.am: New file, from
17926         gettext/autoconf-lib-link.
17927         * tests/havelib/rpathx/configure.ac: New file, from
17928         gettext/autoconf-lib-link with modifications.
17929         * tests/havelib/rpathy/rpathy.c: New file, from
17930         gettext/autoconf-lib-link.
17931         * tests/havelib/rpathy/Makefile.am: New file, from
17932         gettext/autoconf-lib-link.
17933         * tests/havelib/rpathy/configure.ac: New file, from
17934         gettext/autoconf-lib-link with modifications.
17935         * tests/havelib/rpathz/rpathz.c: New file, from
17936         gettext/autoconf-lib-link.
17937         * tests/havelib/rpathz/Makefile.am: New file, from
17938         gettext/autoconf-lib-link.
17939         * tests/havelib/rpathz/configure.ac: New file, from
17940         gettext/autoconf-lib-link with modifications.
17941         * tests/havelib/rpathlx/usex.c: New file, from
17942         gettext/autoconf-lib-link.
17943         * tests/havelib/rpathlx/Makefile.am: New file, from
17944         gettext/autoconf-lib-link.
17945         * tests/havelib/rpathlx/configure.ac: New file, from
17946         gettext/autoconf-lib-link with modifications.
17947         * tests/havelib/rpathly/usey.c: New file, from
17948         gettext/autoconf-lib-link.
17949         * tests/havelib/rpathly/Makefile.am: New file, from
17950         gettext/autoconf-lib-link.
17951         * tests/havelib/rpathly/configure.ac: New file, from
17952         gettext/autoconf-lib-link with modifications.
17953         * tests/havelib/rpathlz/usez.c: New file, from
17954         gettext/autoconf-lib-link.
17955         * tests/havelib/rpathlz/Makefile.am: New file, from
17956         gettext/autoconf-lib-link.
17957         * tests/havelib/rpathlz/configure.ac: New file, from
17958         gettext/autoconf-lib-link with modifications.
17959         * tests/havelib/rpathlyx/usey.c: New file, from
17960         gettext/autoconf-lib-link.
17961         * tests/havelib/rpathlyx/Makefile.am: New file, from
17962         gettext/autoconf-lib-link.
17963         * tests/havelib/rpathlyx/configure.ac: New file, from
17964         gettext/autoconf-lib-link with modifications.
17965         * tests/havelib/rpathlzyx/usez.c: New file, from
17966         gettext/autoconf-lib-link.
17967         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17968         gettext/autoconf-lib-link.
17969         * tests/havelib/rpathlzyx/configure.ac: New file, from
17970         gettext/autoconf-lib-link with modifications.
17971         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17972         with modifications.
17973
17974 2010-04-02  Bruno Haible  <bruno@clisp.org>
17975
17976         gnulib-tool: Create distributed built sources also for the tests.
17977         * gnulib-tool (func_create_testdir): Also generate distributed built
17978         sources in the tests directory.
17979
17980 2010-04-02  Bruno Haible  <bruno@clisp.org>
17981
17982         gnulib-tool: Obey user's environment variables.
17983         * gnulib-tool (func_create_testdir): When creating built sources,
17984         respect the environment variables for autoconf, automake, etc. given by
17985         the user.
17986
17987 2010-04-02  Bruno Haible  <bruno@clisp.org>
17988
17989         gnulib-tool: Provide the value of --m4-base to modules.
17990         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17991         of gl_m4_base.
17992
17993 2010-04-02  Eric Blake  <eblake@redhat.com>
17994
17995         maint.mk: fix some fallout
17996         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17997         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17998
17999 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18000
18001         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
18002         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
18003         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
18004         (sc_cast_of_x_alloc_return_value): Likewise.
18005         (sc_cast_of_alloca_return_value): Likewise.
18006         (sc_space_tab): Likewise.
18007         (sc_prohibit_atoi_atof): Likewise.
18008         (sc_prohibit_magic_number_exit): Likewise.
18009         (sc_error_exit_success): Likewise.
18010         (sc_file_system): Likewise.
18011         (sc_prohibit_have_config_h): Likewise.
18012         (sc_require_config_h): Likewise.
18013         (sc_prohibit_HAVE_MBRTOWC): Likewise.
18014         (sc_obsolete_symbols): Likewise.
18015         (sc_changelog): Likewise.
18016         (sc_program_name): Likewise.
18017         (sc_the_the): Likewise.
18018         (sc_trailing_blank): Likewise.
18019         (sc_two_space_separator_in_usage): Likewise.
18020         (sc_useless_cpp_parens): Likewise.
18021         (sc_GPL_version): Likewise.
18022         (sc_GFDL_version): Likewise.
18023         (sc_texinfo_acronym): Likewise.
18024         (sc_prohibit_cvs_keyword): Likewise.
18025         (sc_prohibit_stat_st_blocks): Likewise.
18026         (sc_prohibit_S_IS_definition): Likewise.
18027         (sc_redundant_const): Likewise.
18028         (sc_makefile_TAB_only_indentation): Likewise.
18029         (sc_m4_quote_check): Likewise.
18030         (sc_makefile_path_separator_check): Likewise.
18031         (sc_copyright_check): Likewise.
18032         (sc_Wundef_boolean): Likewise.
18033         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18034
18035         maint.mk: match 0 or more whitespace-before-function-call '('
18036         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
18037         that have zero or two-and-more spaces between the function name
18038         and the open parenthesis.
18039         (sc_error_message_warn_fatal): Likewise.
18040         (sc_error_message_uppercase): Likewise.
18041         (sc_error_message_period): Likewise.
18042
18043 2010-03-31  Eric Blake  <eblake@redhat.com>
18044
18045         maint.mk: check for [ as well as test
18046         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
18047         Based on a libvirt report by Matthias Bolte.
18048
18049         gnumakefile: don't squelch _version output
18050         * top/GNUmakefile (_version): Create one-shot dependency rather
18051         than using $(shell) when version must be regenerated.
18052         (_autoreconf): Run verbosely, by default.
18053
18054         sys_time: avoid compiler warnings
18055         * lib/sys_time.in.h (includes): Ensure gcc pragma is
18056         unconditional, fixing regression from 2010-03-29.
18057         Reported by Simon Josefsson.
18058
18059 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18060
18061         maint.mk: s/_header_without_use/_sc_header_without_use/
18062         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
18063         (sc_prohibit_assert_without_use): Use the new name.
18064         (sc_prohibit_close_stream_without_use): Likewise.
18065         (sc_prohibit_getopt_without_use): Likewise.
18066         (sc_prohibit_quotearg_without_use): Likewise.
18067         (sc_prohibit_quote_without_use): Likewise.
18068         (sc_prohibit_long_options_without_use): Likewise.
18069         (sc_prohibit_inttostr_without_use): Likewise.
18070         (sc_prohibit_ignore_value_without_use): Likewise.
18071         (sc_prohibit_error_without_use): Likewise.
18072         (sc_prohibit_xalloc_without_use): Likewise.
18073         (sc_prohibit_hash_without_use): Likewise.
18074         (sc_prohibit_hash_pjw_without_use): Likewise.
18075         (sc_prohibit_safe_read_without_use): Likewise.
18076         (sc_prohibit_argmatch_without_use): Likewise.
18077         (sc_prohibit_canonicalize_without_use): Likewise.
18078         (sc_prohibit_root_dev_ino_without_use): Likewise.
18079         (sc_prohibit_openat_without_use): Likewise.
18080         (sc_prohibit_c_ctype_without_use): Likewise.
18081         (sc_prohibit_signal_without_use): Likewise.
18082         (sc_prohibit_intprops_without_use): Likewise.
18083
18084 2010-03-30  Eric Blake  <eblake@redhat.com>
18085
18086         maint: improve module indicators
18087         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
18088         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
18089         columns, and avoid extra macro expansion.
18090
18091         fdopendir: work around FreeBSD bug
18092         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18093         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
18094         * modules/dirent (Makefile.am): Substitute it.
18095         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
18096         declaration.
18097         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
18098         fix.
18099         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18100
18101 2010-03-29  Bruno Haible  <bruno@clisp.org>
18102
18103         Emit #pragma system_header after the inclusion guard, not before.
18104         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
18105         guard that spans the entire file, not before. This enables an
18106         optimization in GCC's preprocessor.
18107         * lib/ctype.in.h: Likewise.
18108         * lib/dirent.in.h: Likewise.
18109         * lib/errno.in.h: Likewise.
18110         * lib/float.in.h: Likewise.
18111         * lib/getopt.in.h: Likewise.
18112         * lib/iconv.in.h: Likewise.
18113         * lib/langinfo.in.h: Likewise.
18114         * lib/locale.in.h: Likewise.
18115         * lib/math.in.h: Likewise.
18116         * lib/netdb.in.h: Likewise.
18117         * lib/netinet_in.in.h: Likewise.
18118         * lib/pty.in.h: Likewise.
18119         * lib/sched.in.h: Likewise.
18120         * lib/se-selinux.in.h: Likewise.
18121         * lib/search.in.h: Likewise.
18122         * lib/spawn.in.h: Likewise.
18123         * lib/stdarg.in.h: Likewise.
18124         * lib/stdint.in.h: Likewise.
18125         * lib/string.in.h: Likewise.
18126         * lib/strings.in.h: Likewise.
18127         * lib/sys_file.in.h: Likewise.
18128         * lib/sys_ioctl.in.h: Likewise.
18129         * lib/sys_time.in.h: Likewise.
18130         * lib/sys_times.in.h: Likewise.
18131         * lib/sys_utsname.in.h: Likewise.
18132         * lib/sys_wait.in.h: Likewise.
18133         * lib/sysexits.in.h: Likewise.
18134         * lib/wctype.in.h: Likewise.
18135
18136 2010-03-28  James Youngman  <jay@gnu.org>
18137
18138         save-cwd: don't leak a file descriptor when the caller execs.
18139         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
18140         saved file descriptor.
18141         * modules/save-cwd (Depends-on): Depend on cloexec.
18142
18143 2010-03-29  Bruno Haible  <bruno@clisp.org>
18144
18145         Remove vestiges of fts-lgpl module.
18146         * lib/fts_.h: Assume GNULIB_FTS is 1.
18147         * lib/fts.c: Likewise.
18148         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18149
18150 2010-03-28  Bruno Haible  <bruno@clisp.org>
18151
18152         Fix definition of tests witness macro.
18153         * gnulib-tool (func_import): Fix definition of witness macro.
18154
18155 2010-03-28  Bruno Haible  <bruno@clisp.org>
18156
18157         Fix ioctl's protoype on glibc systems.
18158         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
18159         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18160         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
18161         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
18162         signature. If not, arrange to replace the ioctl function.
18163         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18164         REPLACE_IOCTL.
18165         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
18166         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
18167         Reported by Ludovic Courtès <ludo@gnu.org>.
18168
18169 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
18170
18171         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18172         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
18173         made it so grep -r --include=GLOB* ... did not work.
18174
18175 2010-03-26  Jim Meyering  <meyering@redhat.com>
18176             Eric Blake  <eblake@redhat.com>
18177
18178         maint.mk: prohibit use of test's -o and -a operators
18179         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
18180
18181 2010-03-28  Bruno Haible  <bruno@clisp.org>
18182
18183         Remove unused GNULIB_XYZ macro definitions.
18184         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
18185         invocation.
18186
18187 2010-03-28  Bruno Haible  <bruno@clisp.org>
18188
18189         Mark privileged tests modules.
18190         * modules/idpriv-drop-tests (Status): New section.
18191         * modules/idpriv-droptemp-tests (Status): New section.
18192
18193 2010-03-28  Bruno Haible  <bruno@clisp.org>
18194
18195         Split C++ tests into separate tests modules.
18196         * modules/dirent-c++-tests: New file, extracted from
18197         modules/dirent-tests.
18198         * modules/dirent-tests: Depend on it.
18199         * modules/fcntl-h-c++-tests: New file, extracted from
18200         modules/fcntl-h-tests.
18201         * modules/fcntl-h-tests: Depend on it.
18202         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
18203         * modules/glob-tests: Depend on it.
18204         * modules/iconv-h-c++-tests: New file, extracted from
18205         modules/iconv-h-tests.
18206         * modules/iconv-h-tests: Depend on it.
18207         * modules/langinfo-c++-tests: New file, extracted from
18208         modules/langinfo-tests.
18209         * modules/langinfo-tests: Depend on it.
18210         * modules/locale-c++-tests: New file, extracted from
18211         modules/locale-tests.
18212         * modules/locale-tests: Depend on it.
18213         * modules/math-c++-tests: New file, extracted from modules/math-tests.
18214         * modules/math-tests: Depend on it.
18215         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
18216         * modules/pty-tests: Depend on it.
18217         * modules/search-c++-tests: New file, extracted from
18218         modules/search-tests.
18219         * modules/search-tests: Depend on it.
18220         * modules/signal-c++-tests: New file, extracted from
18221         modules/signal-tests.
18222         * modules/signal-tests: Depend on it.
18223         * modules/spawn-c++-tests: New file, extracted from
18224         modules/spawn-tests.
18225         * modules/spawn-tests: Depend on it.
18226         * modules/stdio-c++-tests: New file, extracted from
18227         modules/stdio-tests.
18228         * modules/stdio-tests: Depend on it.
18229         * modules/stdlib-c++-tests: New file, extracted from
18230         modules/stdlib-tests.
18231         * modules/stdlib-tests: Depend on it.
18232         * modules/string-c++-tests: New file, extracted from
18233         modules/string-tests.
18234         * modules/string-tests: Depend on it.
18235         * modules/sys_ioctl-c++-tests: New file, extracted from
18236         modules/sys_ioctl-tests.
18237         * modules/sys_ioctl-tests: Depend on it.
18238         * modules/sys_select-c++-tests: New file, extracted from
18239         modules/sys_select-tests.
18240         * modules/sys_select-tests: Depend on it.
18241         * modules/sys_socket-c++-tests: New file, extracted from
18242         modules/sys_socket-tests.
18243         * modules/sys_socket-tests: Depend on it.
18244         * modules/sys_stat-c++-tests: New file, extracted from
18245         modules/sys_stat-tests.
18246         * modules/sys_stat-tests: Depend on it.
18247         * modules/sys_time-c++-tests: New file, extracted from
18248         modules/sys_time-tests.
18249         * modules/sys_time-tests: Depend on it.
18250         * modules/time-c++-tests: New file, extracted from modules/time-tests.
18251         * modules/time-tests: Depend on it.
18252         * modules/unistd-c++-tests: New file, extracted from
18253         modules/unistd-tests.
18254         * modules/unistd-tests: Depend on it.
18255         * modules/wchar-c++-tests: New file, extracted from
18256         modules/wchar-tests.
18257         * modules/wchar-tests: Depend on it.
18258         * modules/wctype-c++-tests: New file, extracted from
18259         modules/wctype-tests.
18260         * modules/wctype-tests: Depend on it.
18261         Reported by Simon Josefsson.
18262
18263 2010-03-28  Bruno Haible  <bruno@clisp.org>
18264
18265         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
18266         * gnulib-tool (func_exists_module): New function, extracted from
18267         func_verify_module.
18268         (func_verify_module): Use it.
18269         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
18270         'foo' only if 'foo' exists.
18271         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
18272         module.
18273
18274 2010-03-28  Bruno Haible  <bruno@clisp.org>
18275
18276         gnulib-tool: Add support for special categories of tests.
18277         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
18278         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
18279         (func_usage): Document them.
18280         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
18281         inc_unportable_tests, inc_all_tests): New variables.
18282         (func_acceptable): Consider these variables.
18283         (func_modules_transitive_closure): Make it work when the 'Status' field
18284         consists of multiple words.
18285         (func_import): Store and restore the values of inc_cxx_tests,
18286         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
18287         inc_all_tests in gnulib-comp.m4.
18288         (func_create_testdir): Set inc_all_tests to true.
18289         * doc/gnulib.texi (Extra tests modules): New section.
18290         Suggested by Jim Meyering.
18291
18292 2010-03-28  Bruno Haible  <bruno@clisp.org>
18293
18294         ansi-c++-opt: Allow turning off the C++ build by default.
18295         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
18296         gl_CXX_CHOICE_DEFAULT_NO is defined.
18297         Requested by Eric Blake.
18298
18299 2010-03-28  Bruno Haible  <bruno@clisp.org>
18300
18301         unistd: Avoid #define replacements in C++ mode.
18302         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
18303         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
18304         setsockopt, shutdown, select): In C++, attach a warning to the function
18305         if possible, rather than #defining the symbol to a dysfunctional alias.
18306         Reported by John W. Eaton <jwe@gnu.org>.
18307
18308 2010-03-28  Bruno Haible  <bruno@clisp.org>
18309
18310         Fix link errors on mingw.
18311         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
18312         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
18313         $(LIBSOCKET).
18314         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
18315         $(LIBSOCKET).
18316
18317 2010-03-28  Bruno Haible  <bruno@clisp.org>
18318             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18319
18320         lib-ignore: Determine different options for different compilers.
18321         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
18322         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
18323         Add comments.
18324         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
18325         * NEWS: Mention the change.
18326
18327 2010-03-27  Bruno Haible  <bruno@clisp.org>
18328
18329         Remove unused GNULIB_XYZ macro definitions.
18330         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18331         * modules/fseek (configure.ac): Likewise.
18332         * modules/ioctl (configure.ac): Likewise.
18333         * modules/open (configure.ac): Likewise.
18334         * modules/stdlib-safer (configure.ac): Likewise.
18335
18336 2010-03-27  Bruno Haible  <bruno@clisp.org>
18337
18338         Add a remark about certain modules.
18339         * modules/malloc (Comment): New section.
18340         * modules/realloc (Comment): Likewise.
18341         * modules/sigpipe (Comment): Likewise.
18342
18343 2010-03-27  Bruno Haible  <bruno@clisp.org>
18344
18345         Resolve conflict between the two kinds of module indicators.
18346         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18347         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18348         * modules/canonicalize (configure.ac): Invoke
18349         gl_MODULE_INDICATOR_FOR_TESTS.
18350         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18351         GNULIB_XYZ.
18352         * tests/test-dirent-c++.cc: Likewise.
18353         * tests/test-dirent-safer.c: Likewise.
18354         * tests/test-dup2.c: Likewise.
18355         * tests/test-fchdir.c: Likewise.
18356         * tests/test-fcntl-h-c++.cc: Likewise.
18357         * tests/test-getopt.c: Likewise.
18358         * tests/test-getopt.h: Likewise.
18359         * tests/test-langinfo-c++.cc: Likewise.
18360         * tests/test-locale-c++.cc: Likewise.
18361         * tests/test-math-c++.cc: Likewise.
18362         * tests/test-pty-c++.cc: Likewise.
18363         * tests/test-search-c++.cc: Likewise.
18364         * tests/test-signal-c++.cc: Likewise.
18365         * tests/test-spawn-c++.cc: Likewise.
18366         * tests/test-stdio-c++.cc: Likewise.
18367         * tests/test-stdlib-c++.cc: Likewise.
18368         * tests/test-string-c++.cc: Likewise.
18369         * tests/test-sys_ioctl-c++.cc: Likewise.
18370         * tests/test-sys_select-c++.cc: Likewise.
18371         * tests/test-sys_socket-c++.cc: Likewise.
18372         * tests/test-sys_stat-c++.cc: Likewise.
18373         * tests/test-sys_time-c++.cc: Likewise.
18374         * tests/test-time-c++.cc: Likewise.
18375         * tests/test-unistd-c++.cc: Likewise.
18376         * tests/test-wchar-c++.cc: Likewise.
18377         * tests/uninorm/test-u8-nfc.c: Likewise.
18378         * tests/uninorm/test-u8-nfd.c: Likewise.
18379         * tests/uninorm/test-u8-nfkc.c: Likewise.
18380         * tests/uninorm/test-u8-nfkd.c: Likewise.
18381         * tests/uninorm/test-u16-nfc.c: Likewise.
18382         * tests/uninorm/test-u16-nfd.c: Likewise.
18383         * tests/uninorm/test-u16-nfkc.c: Likewise.
18384         * tests/uninorm/test-u16-nfkd.c: Likewise.
18385         * tests/uninorm/test-u32-nfc.c: Likewise.
18386         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18387         * tests/uninorm/test-u32-nfd.c: Likewise.
18388         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18389         * tests/uninorm/test-u32-nfkc.c: Likewise.
18390         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18391         * tests/uninorm/test-u32-nfkd.c: Likewise.
18392         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18393         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18394
18395 2010-03-27  Bruno Haible  <bruno@clisp.org>
18396
18397         Distinguish two kinds of module indicators.
18398         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18399         gl_MODULE_INDICATOR.
18400         (gl_MODULE_INDICATOR): New macro.
18401         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18402         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18403         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18404         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18405         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18406         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18407         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18408         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18409         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18410         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18411         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18412         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18413         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18414         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18415         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18416         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18417         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18418         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18419         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18420         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18421         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18422         * modules/cloexec (configure.ac): Likewise.
18423         * modules/getopt-gnu (configure.ac): Likewise.
18424         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18425         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18426         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18427         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18428
18429 2010-03-27  Bruno Haible  <bruno@clisp.org>
18430
18431         New module description field 'Comment'.
18432         * gnulib-tool: New option --extract-comment.
18433         (func_usage): Document it.
18434         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18435         (func_get_comment): New function.
18436         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18437
18438 2010-03-27  Bruno Haible  <bruno@clisp.org>
18439
18440         Addendum to 2010-02-07 commit.
18441         * gnulib-tool (func_usage): Document --extract-applicability option.
18442
18443 2010-03-27  Bruno Haible  <bruno@clisp.org>
18444
18445         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18446         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18447         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18448         rather than link errors.
18449
18450 2010-03-27  Bruno Haible  <bruno@clisp.org>
18451
18452         Avoid side effects from tests-related modules on the compilation of lib.
18453         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18454         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18455         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18456         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18457         macro.
18458         (func_import): Define a witness macro. Assign it a value that depends
18459         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18460         tests-related modules.
18461         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18462         Reported by Jim Meyering.
18463
18464 2010-03-27  Bruno Haible  <bruno@clisp.org>
18465
18466         Factorize common .m4 code.
18467         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18468         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18469         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18470         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18471         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18472         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18473         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18474         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18475         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18476         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18477         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18478         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18479         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18480         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18481         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18482         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18483         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18484         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18486         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18487         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18488         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18489         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18490         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18491         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18492         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18493         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18494         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18495         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18496         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18497         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18498         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18499
18500 2010-03-27  Bruno Haible  <bruno@clisp.org>
18501
18502         Fix a compilation error on Cygwin with g++ >= 4.3.
18503         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18504         if it is undefined or if we alias it to chmod.
18505         (lstat): Don't warn about the use of this function if it is undefined
18506         or if we alias it to stat.
18507         Reported by Simon Josefsson.
18508
18509 2010-03-27  Bruno Haible  <bruno@clisp.org>
18510
18511         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18512         * modules/getlogin (configure.ac): Update.
18513
18514         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18515         * modules/getlogin_r (configure.ac): Update.
18516
18517         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18519         * modules/inet_ntop (configure.ac): Update.
18520
18521         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18522         * modules/inet_pton (configure.ac): Update.
18523
18524         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18525         * modules/mbslen (configure.ac): Update.
18526
18527         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18528         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18529         * modules/forkpty (configure.ac): Update.
18530         * modules/openpty (configure.ac): Update.
18531
18532 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18533
18534         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18535         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18536
18537 2010-03-25  Eric Blake  <eblake@redhat.com>
18538
18539         maint: use pragma consistently across replacement headers
18540         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18541         * lib/dirent.in.h (system_header): Likewise.
18542         * lib/errno.in.h (system_header): Likewise.
18543         * lib/float.in.h (system_header): Likewise.
18544         * lib/getopt.in.h (system_header): Likewise.
18545         * lib/iconv.in.h (system_header): Likewise.
18546         * lib/inttypes.in.h (system_header): Likewise.
18547         * lib/langinfo.in.h (system_header): Likewise.
18548         * lib/locale.in.h (system_header): Likewise.
18549         * lib/math.in.h (system_header): Likewise.
18550         * lib/netdb.in.h (system_header): Likewise.
18551         * lib/netinet_in.in.h (system_header): Likewise.
18552         * lib/pty.in.h (system_header): Likewise.
18553         * lib/sched.in.h (system_header): Likewise.
18554         * lib/se-selinux.in.h (system_header): Likewise.
18555         * lib/search.in.h (system_header): Likewise.
18556         * lib/spawn.in.h (system_header): Likewise.
18557         * lib/stdarg.in.h (system_header): Likewise.
18558         * lib/stdint.in.h (system_header): Likewise.
18559         * lib/string.in.h (system_header): Likewise.
18560         * lib/strings.in.h (system_header): Likewise.
18561         * lib/sys_file.in.h (system_header): Likewise.
18562         * lib/sys_ioctl.in.h (system_header): Likewise.
18563         * lib/sys_socket.in.h (system_header): Likewise.
18564         * lib/sys_times.in.h (system_header): Likewise.
18565         * lib/sys_utsname.in.h (system_header): Likewise.
18566         * lib/sys_wait.in.h (system_header): Likewise.
18567         * lib/sysexits.in.h (system_header): Likewise.
18568         * lib/unistd.in.h (system_header): Likewise.
18569         * lib/wctype.in.h (system_header): Likewise.
18570
18571         arpa/inet: fix mingw compilation warning
18572         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18573         Reported by Matthew Bolte.
18574
18575 2010-03-25  Bruno Haible  <bruno@clisp.org>
18576
18577         Avoid collision between gnulib wrapper and libintl wrapper.
18578         * lib/printf.c (printf): Don't define if a printf wrapper is already
18579         defined in intl/printf.c.
18580         Reported by Michel Boaventura <michel@michelboaventura.com>.
18581
18582 2010-03-25  Bruno Haible  <bruno@clisp.org>
18583
18584         Use ANSI C.
18585         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18586
18587 2010-03-25  Bruno Haible  <bruno@clisp.org>
18588
18589         Minor formatting changes.
18590         * lib/acosl.c: Insert space before function argument list.
18591         * lib/argz.c: Likewise.
18592         * lib/asinl.c: Likewise.
18593         * lib/expl.c: Likewise.
18594         * lib/gen-uni-tables.c: Likewise.
18595         * lib/gettext.h: Likewise.
18596         * lib/glthread/lock.h: Likewise.
18597         * lib/tanl.c: Likewise.
18598         * lib/uniname/uniname.c: Likewise.
18599         * tests/test-idpriv-drop.c: Likewise.
18600         * tests/test-idpriv-droptemp.c: Likewise.
18601         * tests/test-lock.c: Likewise.
18602         * tests/test-tls.c: Likewise.
18603         * lib/argp-help.c: Insert space before function-like macro argument
18604         list.
18605         * lib/memcmp.c: Likewise.
18606         * tests/test-base64.c: Likewise.
18607         * lib/localename.c: Insert space before sizeof's argument list.
18608         * lib/safe-alloc.h: Likewise.
18609         * lib/file-set.h: Insert space before macro argument list.
18610         * tests/test-argp.c: Likewise.
18611         * lib/argp-namefrob.h: Insert space before function parameter list.
18612         * lib/getaddrinfo.c: Likewise.
18613         * lib/netdb.in.h: Likewise.
18614         * lib/parse-duration.h: Likewise.
18615         * lib/parse-duration.c: Likewise.
18616         * lib/poll.c: Likewise.
18617         * lib/select.c: Likewise.
18618         * lib/trim.h: Likewise.
18619         * tests/test-usleep.c: Likewise.
18620         * lib/ldexpl.c: Insert space before function parameter list and before
18621         function argument list.
18622         * lib/logl.c: Likewise.
18623         * lib/sqrtl.c: Likewise.
18624         * lib/trim.c: Likewise.
18625         * lib/cosl.c: Use GNU style indentation. Insert space before function
18626         argument list.
18627         * lib/sinl.c: Likewise.
18628         * lib/tsearch.c: Insert space after 'for'.
18629         Reported by Jim Meyering.
18630
18631 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18632
18633         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18634         config header before grepping, as it's not present before
18635         autoreconf/configure are run.  Reported by Simon Josefsson.
18636
18637 2010-03-23  Bruno Haible  <bruno@clisp.org>
18638
18639         pt_chown: Make it work with automake < 1.11.
18640         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18641         Reported by Simon Josefsson.
18642
18643 2010-03-23  Bruno Haible  <bruno@clisp.org>
18644
18645         pt_chown: Don't depend on GPLed modules.
18646         * lib/pt_chown.c: Don't include idpriv.h.
18647         (main): Don't drop privileges.
18648         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18649         Reported by Simon Josefsson.
18650
18651 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18652
18653         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18654         suggestions from karl@freefriends.org (Karl Berry).
18655
18656 2010-03-22  Eric Blake  <eblake@redhat.com>
18657
18658         gethostname: further tweaks
18659         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18660         are overriding gethostname.
18661         Suggested by Bruno Haible.
18662
18663 2010-03-21  Bruno Haible  <bruno@clisp.org>
18664
18665         Fix comments.
18666         * lib/forkpty.c (rpl_forkpty): Fix comment.
18667         * lib/openpty.c (rpl_openpty): Likewise.
18668         Reported by Eric Blake.
18669
18670 2010-03-22  Eric Blake  <eblake@redhat.com>
18671
18672         gethostname: fix build on mingw
18673         * lib/unistd.in.h (includes): Work around fact that mingw
18674         <winsock2.h> re-includes <unistd.h>, by avoiding any
18675         redeclarations if we are being included by <winsock2.h>.
18676         Reported by Matthias Bolte.
18677
18678 2010-03-21  Bruno Haible  <bruno@clisp.org>
18679
18680         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18681         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18682         modifications.
18683         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18684         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18685         provide the replacement.
18686         * modules/forkpty (Depends-on): Add openpty, login_tty.
18687         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18688         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18689         * doc/glibc-functions/forkpty.texi: More supported platforms.
18690         * config/srclist.txt: Add forkpty.c (commented).
18691
18692 2010-03-21  Bruno Haible  <bruno@clisp.org>
18693
18694         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18695         (Makefile.am): Verify that PTY_LIB is defined.
18696
18697         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18698
18699 2010-03-21  Bruno Haible  <bruno@clisp.org>
18700
18701         Tests for module 'login_tty'.
18702         * modules/login_tty-tests: New file.
18703         * tests/test-login_tty.c: New file.
18704
18705         New module 'login_tty'.
18706         * lib/login_tty.c: New file.
18707         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18708         * modules/login_tty: New file.
18709         * doc/glibc-functions/login_tty.texi: Mention the new module.
18710
18711 2010-03-21  Bruno Haible  <bruno@clisp.org>
18712
18713         login_tty: Documentation.
18714         * doc/glibc-functions/login_tty.texi: New file.
18715         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18716
18717 2010-03-21  Bruno Haible  <bruno@clisp.org>
18718
18719         pty: Consistent macro naming.
18720         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18721         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18722         * modules/pty (configure.ac): Update.
18723
18724 2010-03-21  Bruno Haible  <bruno@clisp.org>
18725
18726         Tests for openpty: Make stricter.
18727         * tests/test-openpty.c (main): Add test of canonical processing and
18728         erase.
18729         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18730
18731         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18732         * lib/openpty.c (openpty): New replacement function.
18733         * lib/pty.in.h: Include <termios.h>.
18734         (openpty): Update declaration. Add comments.
18735         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18736         is not declared, arrange to provide the replacement. Check for _getpty
18737         and posix_openpt.
18738         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18739         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18740         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18741         * modules/pty-tests (test_pty_c___LDADD): New variable.
18742         * doc/glibc-functions/openpty.texi: More supported platforms.
18743
18744 2010-03-21  Bruno Haible  <bruno@clisp.org>
18745
18746         setenv: Tweaks.
18747         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18748         the test program.
18749         * doc/posix-functions/setenv.texi: Update platforms list.
18750
18751 2010-03-21  Bruno Haible  <bruno@clisp.org>
18752
18753         New module 'unlockpt'.
18754         * lib/unlockpt.c: New file, from glibc with modifications.
18755         * m4/unlockpt.m4: New file.
18756         * modules/unlockpt: New file.
18757         * lib/stdlib.in.h (unlockpt): New declaration.
18758         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18759         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18760         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18761         HAVE_UNLOCKPT.
18762         * doc/posix-functions/unlockpt.texi: Mention the new module.
18763         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18764         * config/srclist.txt: Add unlockpt.c (commented).
18765
18766 2010-03-21  Jim Meyering  <meyering@redhat.com>
18767
18768         maint.mk: prohibit inclusion of "intprops.h" without use
18769         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18770
18771 2010-03-21  Bruno Haible  <bruno@clisp.org>
18772
18773         New module 'grantpt'.
18774         * lib/grantpt.c: New file, from glibc with modifications.
18775         * m4/grantpt.m4: New file.
18776         * modules/grantpt: New file.
18777         * lib/stdlib.in.h (grantpt): New declaration.
18778         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18779         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18780         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18781         HAVE_GRANTPT.
18782         * doc/posix-functions/grantpt.texi: Mention the new module.
18783         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18784         * config/srclist.txt: Add grantpt.c (commented).
18785
18786 2010-03-21  Bruno Haible  <bruno@clisp.org>
18787
18788         New module 'pt_chown'.
18789         * lib/pt_chown.c: New file, from glibc with modifications.
18790         * lib/pty-private.h: New file, from glibc with modifications.
18791         * modules/pt_chown: New file.
18792         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18793
18794 2010-03-21  Bruno Haible  <bruno@clisp.org>
18795
18796         Tests for module 'ptsname'.
18797         * modules/ptsname-tests: New file.
18798         * tests/test-ptsname.c: New file.
18799
18800         New module 'ptsname'.
18801         * lib/ptsname.c: New file, from glibc with modifications.
18802         * m4/ptsname.m4: New file.
18803         * modules/ptsname: New file.
18804         * lib/stdlib.in.h (ptsname): New declaration.
18805         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18806         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18807         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18808         HAVE_PTSNAME.
18809         * doc/posix-functions/ptsname.texi: Mention the new module.
18810         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18811         * config/srclist.txt: Add ptsname.c (commented).
18812
18813 2010-03-21  Bruno Haible  <bruno@clisp.org>
18814
18815         Tests for module 'ttyname_r'.
18816         * modules/ttyname_r-tests: New file.
18817         * tests/test-ttyname_r.c: New file.
18818
18819         New module 'ttyname_r'.
18820         * lib/ttyname_r.c: New file.
18821         * m4/ttyname_r.m4: New file.
18822         * modules/ttyname_r: New file.
18823         * lib/unistd.in.h (ttyname_r): New declaration.
18824         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18825         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18826         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18827         HAVE_TTYNAME_R.
18828         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18829         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18830
18831 2010-03-20  Bruno Haible  <bruno@clisp.org>
18832
18833         signal: Undefine macro definitions in C++ mode.
18834         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18835         sigfillset): Undefine macro definitions from the system header in C++
18836         mode.
18837         Reported by John W. Eaton <jwe@gnu.org>.
18838
18839 2010-03-20  Bruno Haible  <bruno@clisp.org>
18840
18841         Ensure no #include statements inside extern "C" { ... }.
18842         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18843         contain #include statements.
18844         * lib/time.in.h: Likewise.
18845
18846 2010-03-20  Bruno Haible  <bruno@clisp.org>
18847
18848         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18849         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18850         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18851         Reported by John W. Eaton <jwe@gnu.org>.
18852
18853 2010-03-20  Bruno Haible  <bruno@clisp.org>
18854
18855         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18856         Reported by Jim Meyering.
18857
18858 2010-03-20  Bruno Haible  <bruno@clisp.org>
18859
18860         pipe: Set errno upon failure.
18861         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18862         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18863         errno value in error message.
18864
18865 2010-03-20  Bruno Haible  <bruno@clisp.org>
18866             Jim Meyering  <meyering@redhat.com>
18867
18868         lchown: Avoid "unused variable" warning.
18869         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18870
18871 2010-03-20  Bruno Haible  <bruno@clisp.org>
18872
18873         Work around unlink() bug on MacOS X 10.5.6.
18874         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18875         attempting to unlink a parent directory.
18876         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18877         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18878         activate for the replacement function.
18879         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18880
18881 2010-03-20  Bruno Haible  <bruno@clisp.org>
18882
18883         Fix link errors on Solaris 8.
18884         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18885         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18886
18887 2010-03-19  Jim Meyering  <meyering@redhat.com>
18888
18889         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18890         The _LIBC implementation of build_range_exp correctly honors the
18891         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18892         However, the non-_LIBC implementation would ignore that syntax-bit
18893         flag and return REG_ERANGE unconditionally.
18894         This change makes it honor that flag.
18895         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18896         Make two pointer parameters "const".
18897         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18898         (parse_bracket_exp): Update caller.
18899
18900         regex.m4: correct the reversed range endpoint ([b-a]) test
18901         * m4/regex.m4: When requiring that [b-a] evoke failure,
18902         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18903         test pass once again for x86-based systems.
18904
18905 2010-03-19  Bruno Haible  <bruno@clisp.org>
18906
18907         scandir: Fix link error on Solaris 8.
18908         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18909         macros.
18910
18911 2010-03-19  Bruno Haible  <bruno@clisp.org>
18912
18913         getusershell: Fix documentation.
18914         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18915         module.
18916         * doc/glibc-functions/setusershell.texi: Likewise.
18917
18918         getusershell: Provide declaration, missing on Solaris 9.
18919         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18920         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18921         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18922         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18924         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18925         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18926         HAVE_GETUSERSHELL.
18927         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18928
18929 2010-03-19  Bruno Haible  <bruno@clisp.org>
18930
18931         wctype: Provide iswblank function.
18932         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18933         exists and is fine.
18934         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18935         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18936         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18937         * doc/posix-functions/iswblank.texi: Update.
18938
18939 2010-03-19  Bruno Haible  <bruno@clisp.org>
18940
18941         Tests of module 'pty' in C++ mode.
18942         * modules/pty-tests: New file.
18943         * tests/test-pty-c++.cc: New file.
18944         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18945
18946 2010-03-19  Eric Blake  <eblake@redhat.com>
18947
18948         logb: fix documentation
18949         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18950         1.5 declaration bug.
18951
18952         forkpty, openpty: prefer glibc's const-safe prototype
18953         * lib/forkpty.c (rpl_forkpty): New file.
18954         * lib/openpty.c (rpl_openpty): Likewise.
18955         * modules/forkpty (Files): Distribute it.
18956         * modules/openpty (Files): Likewise.
18957         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18958         check...
18959         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18960         replacement for for non-const BSD signature.
18961         * modules/pty (Makefile.am): Substitute witnesses.
18962         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18963         * tests/test-forkpty.c: Update signature check.
18964         * tests/test-openpty.c: Likewise.
18965         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18966         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18967
18968         forkpty, openpty: split functions into new modules
18969         * modules/pty (Makefile.am): Substitute new witnesses.
18970         (Libraries): Move library detection...
18971         * modules/forkpty: ...into new module.
18972         * modules/openpty: Another new module.
18973         * modules/pty-tests: Rename and split...
18974         * modules/forkpty-tests: ...to this...
18975         * modules/openpty-tests: ...and this.
18976         * tests/test-pty.c: Rename and split...
18977         * tests/test-forkpty.c: ...to this...
18978         * tests/test-openpty.c: ...and this.
18979         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18980         (gl_PTY): Split library searching...
18981         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18982         (gl_FORKPTY, gl_OPENPTY): New macros.
18983         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18984         * NEWS: Mention the split.
18985         * MODULES.html.sh (Misc): Document the modules.
18986         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18987         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18988
18989         pty: improve replacement header
18990         * lib/pty.in.h: New file.
18991         * modules/pty (Files): Ship it.
18992         (Makefile.am): Always build replacement.
18993         * m4/pty.m4: Rename...
18994         * m4/pty_h.m4: ...to this.
18995         (gl_PTY): Modernize setting of witness macros; update check of
18996         forkpty to take proper advantage of cache.
18997         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18998
18999         getopt: avoid compiler warning
19000         * lib/getopt.c (attribute_hidden): Remove unused macro.
19001
19002 2010-03-18  Bruno Haible  <bruno@clisp.org>
19003
19004         Fix link errors on Solaris 8.
19005         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
19006         * modules/search-tests (test_search_c___LDADD): Likewise.
19007         * modules/signal-tests (test_signal_c___LDADD): Likewise.
19008         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
19009         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
19010         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
19011         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
19012         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
19013         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
19014
19015 2010-03-18  Bruno Haible  <bruno@clisp.org>
19016
19017         Fix bug introduced on 2010-03-14.
19018         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
19019         (gl_SPAWN_H): Require it.
19020         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
19021         Reported by Simon Josefsson.
19022
19023 2010-03-18  Bruno Haible  <bruno@clisp.org>
19024
19025         Fix typo introduced on 2009-12-31.
19026         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
19027         posix_spawn_file_actions_adddup2.
19028
19029 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
19030         and Eric Blake  <eblake@redhat.com>
19031
19032         test-vc-list-files-git: make more robust
19033         * tests/test-vc-list-files-git.sh: Unset problematic environment
19034         variables.  Chain commands together.
19035
19036 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
19037
19038         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
19039         `AC_CHECK_DECL' invocation.
19040
19041 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
19042
19043         * lib/inttostr.c (inttostr): Make sure the invocation of verify
19044         appears before executable statements. Suggested by Petr Sumbera
19045         <Petr.Sumbera@Sun.COM>.
19046
19047 2010-03-14  Bruno Haible  <bruno@clisp.org>
19048
19049         * tests/test-flock.c (test_exclusive): Comment out a test that causes
19050         portability problems. Instead use a simpler test.
19051         (main): Check that invalid arguments are rejected only on Linux.
19052
19053 2010-03-14  Bruno Haible  <bruno@clisp.org>
19054
19055         Fix bug introduced on 2009-12-31.
19056         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19057         gl_PREREQ_SYS_H_WINSOCK2 always.
19058         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
19059         SYS_SOCKET_H variable.
19060         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
19061         Update comments.
19062         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
19063         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19064         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19065         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19066         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
19067
19068 2010-03-14  Bruno Haible  <bruno@clisp.org>
19069
19070         Fix values returned by sinl, cosl.
19071         * lib/trigl.h: Add specification comments.
19072         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
19073         that combines the values from the precomputed table with the values of
19074         the Chebyshev polynomials.
19075
19076 2010-03-14  Bruno Haible  <bruno@clisp.org>
19077
19078         Fix compilation error when modules 'posix_spawn[p]' are not used.
19079         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
19080         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
19081
19082 2010-03-14  Bruno Haible  <bruno@clisp.org>
19083
19084         Fix compilation error on mingw when module 'time_r' is not used.
19085         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
19086         is 1.
19087         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
19088         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19089         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
19090         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
19091
19092 2010-03-14  Bruno Haible  <bruno@clisp.org>
19093
19094         Fix compilation error with Sun C.
19095         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
19096         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
19097         instead of GCC specific ULONG_LONG_MAX.
19098         * lib/xstrtoll.c: Likewise.
19099         * lib/xstrtoull.c: Likewise.
19100
19101 2010-03-13  Bruno Haible  <bruno@clisp.org>
19102
19103         Allow the user to disable C++ code and tests.
19104         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
19105         (gl_PROG_ANSI_CXX): Require it.
19106
19107 2010-03-13  Bruno Haible  <bruno@clisp.org>
19108
19109         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
19110         cases.
19111
19112 2010-03-13  Bruno Haible  <bruno@clisp.org>
19113
19114         Test that gnulib does not break the standard C++ headers.
19115         * tests/test-locale-c++2.cc: New file.
19116         * modules/locale-tests (Files): Add it.
19117         (Makefile.am): Compile it for test-locale-c++.
19118         * tests/test-math-c++2.cc: New file.
19119         * modules/math-tests (Files): Add it.
19120         (Makefile.am): Compile it for test-math-c++.
19121         * tests/test-signal-c++2.cc: New file.
19122         * modules/signal-tests (Files): Add it.
19123         (Makefile.am): Compile it for test-signal-c++.
19124         * tests/test-stdio-c++2.cc: New file.
19125         * modules/stdio-tests (Files): Add it.
19126         (Makefile.am): Compile it for test-stdio-c++.
19127         * tests/test-stdlib-c++2.cc: New file.
19128         * modules/stdlib-tests (Files): Add it.
19129         (Makefile.am): Compile it for test-stdlib-c++.
19130         * tests/test-string-c++2.cc: New file.
19131         * modules/string-tests (Files): Add it.
19132         (Makefile.am): Compile it for test-string-c++.
19133         * tests/test-time-c++2.cc: New file.
19134         * modules/time-tests (Files): Add it.
19135         (Makefile.am): Compile it for test-time-c++.
19136         Reported by John W. Eaton <jwe@gnu.org>.
19137
19138 2010-03-13  Bruno Haible  <bruno@clisp.org>
19139
19140         * gnulib-tool (func_usage): Clarify which options are available for
19141         --create-testdir and --create-megatestdir.
19142
19143 2010-03-13  Bruno Haible  <bruno@clisp.org>
19144
19145         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
19146         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
19147         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
19148         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19149         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
19150         when appropriate.
19151         Reported by Jim Meyering.
19152
19153 2010-03-12  Simon Josefsson  <simon@josefsson.org>
19154
19155         * gnulib-tool (func_import): Explain origin of code.
19156
19157 2010-03-12  Bruno Haible  <bruno@clisp.org>
19158
19159         Fix problem with automake's definition of CXXLINK.
19160         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
19161         Reported by Simon Josefsson and Ludovic Courtès.
19162
19163 2010-03-12  Bruno Haible  <bruno@clisp.org>
19164
19165         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
19166         stable releases.
19167
19168 2010-03-11  Bruno Haible  <bruno@clisp.org>
19169
19170         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
19171         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
19172         whether the system provides one variant or multiple variants of the
19173         function.
19174         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
19175         C++ compilers.
19176         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
19177         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
19178         Reported by Jim Meyering.
19179
19180 2010-03-09  Simon Josefsson  <simon@josefsson.org>
19181
19182         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
19183
19184 2010-03-08  Bruno Haible  <bruno@clisp.org>
19185
19186         gnulib-tool: Add support for --libtool in --create-testdir.
19187         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
19188         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
19189
19190 2010-03-08  Eric Blake  <eblake@redhat.com>
19191
19192         gnulib-tool.texi: mention possibility of git submodule
19193         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
19194         submodules.
19195         * doc/.gitignore: Ignore another generated file.
19196
19197 2010-03-08  Karl Berry  <karl@gnu.org>
19198
19199         * doc/gnulib-tool.texi (VCS Issues): Mention third option
19200         of committing gnulib files while skipping others.
19201
19202 2010-03-07  Bruno Haible  <bruno@clisp.org>
19203
19204         Tests of module 'wctype' in C++ mode.
19205         * tests/test-wctype-c++.cc: New file.
19206         * modules/wctype-tests (Files): Add it and tests/signature.h.
19207         (Depends-on): Add ansi-c++-opt.
19208         (Makefile.am): Arrange to compile and run test-wctype-c++.
19209
19210         Tests of module 'wchar' in C++ mode.
19211         * tests/test-wchar-c++.cc: New file.
19212         * modules/wchar-tests (Files): Add it and tests/signature.h.
19213         (Depends-on): Add ansi-c++-opt.
19214         (Makefile.am): Arrange to compile and run test-wchar-c++.
19215         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
19216         gl_MODULE_INDICATOR.
19217
19218         Tests of module 'unistd' in C++ mode.
19219         * tests/test-unistd-c++.cc: New file.
19220         * modules/unistd-tests (Files): Add it and tests/signature.h.
19221         (Depends-on): Add ansi-c++-opt.
19222         (Makefile.am): Arrange to compile and run test-unistd-c++.
19223         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
19224         gl_MODULE_INDICATOR.
19225
19226         Tests of module 'time' in C++ mode.
19227         * tests/test-time-c++.cc: New file.
19228         * modules/time-tests (Files): Add it and tests/signature.h.
19229         (Depends-on): Add ansi-c++-opt.
19230         (Makefile.am): Arrange to compile and run test-time-c++.
19231         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19232
19233         Tests of module 'sys_time' in C++ mode.
19234         * tests/test-sys_time-c++.cc: New file.
19235         * modules/sys_time-tests (Files): Add it and tests/signature.h.
19236         (Depends-on): Add ansi-c++-opt.
19237         (Makefile.am): Arrange to compile and run test-sys_time-c++.
19238         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
19239         gl_MODULE_INDICATOR.
19240
19241         Tests of module 'sys_stat' in C++ mode.
19242         * tests/test-sys_stat-c++.cc: New file.
19243         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
19244         (Depends-on): Add ansi-c++-opt.
19245         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
19246         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
19247         gl_MODULE_INDICATOR.
19248
19249         Tests of module 'sys_socket' in C++ mode.
19250         * tests/test-sys_socket-c++.cc: New file.
19251         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
19252         (Depends-on): Add ansi-c++-opt.
19253         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
19254         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
19255         gl_MODULE_INDICATOR.
19256
19257         Tests of module 'sys_select' in C++ mode.
19258         * tests/test-sys_select-c++.cc: New file.
19259         * modules/sys_select-tests (Files): Add it and tests/signature.h.
19260         (Depends-on): Add ansi-c++-opt.
19261         (Makefile.am): Arrange to compile and run test-sys_select-c++.
19262         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
19263         gl_MODULE_INDICATOR.
19264
19265         Tests of module 'sys_ioctl' in C++ mode.
19266         * tests/test-sys_ioctl-c++.cc: New file.
19267         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
19268         (Depends-on): Add ansi-c++-opt.
19269         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
19270         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
19271         gl_MODULE_INDICATOR.
19272
19273         Tests of module 'string' in C++ mode.
19274         * tests/test-string-c++.cc: New file.
19275         * modules/string-tests (Files): Add it and tests/signature.h.
19276         (Depends-on): Add ansi-c++-opt.
19277         (Makefile.am): Arrange to compile and run test-string-c++.
19278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
19279         gl_MODULE_INDICATOR.
19280
19281         Tests of module 'stdlib' in C++ mode.
19282         * tests/test-stdlib-c++.cc: New file.
19283         * modules/stdlib-tests (Files): Add it and tests/signature.h.
19284         (Depends-on): Add ansi-c++-opt.
19285         (Makefile.am): Arrange to compile and run test-stdlib-c++.
19286         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
19287         gl_MODULE_INDICATOR.
19288
19289         Tests of module 'stdio' in C++ mode.
19290         * tests/test-stdio-c++.cc: New file.
19291         * modules/stdio-tests (Files): Add it and tests/signature.h.
19292         (Depends-on): Add ansi-c++-opt.
19293         (Makefile.am): Arrange to compile and run test-stdio-c++.
19294         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
19295         gl_MODULE_INDICATOR.
19296
19297         Tests of module 'spawn' in C++ mode.
19298         * tests/test-spawn-c++.cc: New file.
19299         * modules/spawn-tests (Files): Add it and tests/signature.h.
19300         (Depends-on): Add ansi-c++-opt.
19301         (Makefile.am): Arrange to compile and run test-spawn-c++.
19302         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
19303         gl_MODULE_INDICATOR.
19304
19305         Tests of module 'signal' in C++ mode.
19306         * tests/test-signal-c++.cc: New file.
19307         * modules/signal-tests (Files): Add it and tests/signature.h.
19308         (Depends-on): Add ansi-c++-opt.
19309         (Makefile.am): Arrange to compile and run test-signal-c++.
19310         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
19311         gl_MODULE_INDICATOR.
19312
19313         Tests of module 'search' in C++ mode.
19314         * tests/test-search-c++.cc: New file.
19315         * modules/search-tests (Files): Add it and tests/signature.h.
19316         (Depends-on): Add ansi-c++-opt.
19317         (Makefile.am): Arrange to compile and run test-search-c++.
19318         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
19319         gl_MODULE_INDICATOR.
19320
19321         Tests of module 'math' in C++ mode.
19322         * tests/test-math-c++.cc: New file.
19323         * modules/math-tests (Files): Add it and tests/signature.h.
19324         (Depends-on): Add ansi-c++-opt.
19325         (Makefile.am): Arrange to compile and run test-math-c++.
19326         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19327
19328         Tests of module 'locale' in C++ mode.
19329         * tests/test-locale-c++.cc: New file.
19330         * modules/locale-tests (Files): Add it and tests/signature.h.
19331         (Depends-on): Add ansi-c++-opt.
19332         (Makefile.am): Arrange to compile and run test-locale-c++.
19333         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19334         gl_MODULE_INDICATOR.
19335
19336         Tests of module 'langinfo' in C++ mode.
19337         * tests/test-langinfo-c++.cc: New file.
19338         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19339         (Depends-on): Add ansi-c++-opt.
19340         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19341         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19342         gl_MODULE_INDICATOR.
19343
19344         Tests of module 'iconv-h' in C++ mode.
19345         * tests/test-iconv-h-c++.cc: New file.
19346         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19347         (Depends-on): Add ansi-c++-opt.
19348         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19349
19350         Tests of module 'glob' in C++ mode.
19351         * tests/test-glob-c++.cc: New file.
19352         * modules/glob-tests (Files): Add it.
19353         (Depends-on): Add ansi-c++-opt.
19354         (Makefile.am): Arrange to compile and run test-glob-c++.
19355
19356         Tests of module 'fcntl-h' in C++ mode.
19357         * tests/test-fcntl-h-c++.cc: New file.
19358         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19359         (Depends-on): Add ansi-c++-opt.
19360         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19361         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19362         gl_MODULE_INDICATOR.
19363
19364         Tests of module 'dirent' in C++ mode.
19365         * tests/test-dirent-c++.cc: New file.
19366         * modules/dirent-tests (Files): Add it and tests/signature.h.
19367         (Depends-on): Add ansi-c++-opt.
19368         (Makefile.am): Arrange to compile and run test-dirent-c++.
19369         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19370         gl_MODULE_INDICATOR.
19371
19372         New module 'ansi-c++-opt'.
19373         * modules/ansi-c++-opt: New file.
19374         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19375
19376         Document C++ namespace mode.
19377         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19378
19379         wctype: Avoid #define replacements in C++ mode.
19380         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19381         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19382         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19383         In C++, define a namespaced alias symbol.
19384         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19385         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19386         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19387         rule.
19388
19389         wchar: Avoid #define replacements in C++ mode.
19390         * lib/wchar.in.h: Include c++defs.h.
19391         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19392         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19393         symbol.
19394         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19395         * modules/wchar (Depends-on): Add c++defs.
19396         (Makefile.am): Update wchar.h rule.
19397
19398         unistd: Avoid #define replacements in C++ mode.
19399         * lib/unistd.in.h: Include c++defs.h.
19400         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19401         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19402         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19403         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19404         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19405         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19406         symbol.
19407         (environ): Update.
19408         * modules/unistd (Depends-on): Add c++defs.
19409         (Makefile.am): Update unistd.h rule.
19410
19411         time: Avoid #define replacements in C++ mode.
19412         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19413         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19414         define a namespaced alias symbol.
19415         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19416         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19417         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19418         * modules/time (Depends-on): Add c++defs, warn-on-use.
19419         (Makefile.am): Update time.h rule.
19420         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19421         * modules/nanosleep (configure.ac): Likewise.
19422         * modules/strptime (configure.ac): Likewise.
19423         * modules/timegm (configure.ac): Likewise.
19424
19425         sys_time: Avoid #define replacements in C++ mode.
19426         * lib/sys_time.in.h: Include c++defs.h.
19427         (gettimeofday): In C++, define a namespaced alias symbol.
19428         * modules/sys_time (Depends-on): Add c++defs.
19429         (Makefile.am): Update sys/time.h rule.
19430
19431         sys_stat: Avoid #define replacements in C++ mode.
19432         * lib/sys_stat.in.h: Include c++defs.h.
19433         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19434         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19435         namespaced alias symbol.
19436         In C++, define a namespaced alias symbol.
19437         * modules/sys_stat (Depends-on): Add c++defs.
19438         (Makefile.am): Update sys/stat.h rule.
19439
19440         sys_socket: Avoid #define replacements in C++ mode.
19441         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19442         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19443         definitions also when the system has a <sys/socket.h>.
19444         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19445         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19446         In C++, define a namespaced alias symbol.
19447         * modules/sys_socket (Depends-on): Add c++defs.
19448         (Makefile.am): Update sys/socket.h rule.
19449
19450         sys_select: Avoid #define replacements in C++ mode.
19451         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19452         definitions also when the system has a <sys/select.h>.
19453         (select): In C++, define a namespaced alias symbol.
19454         * modules/sys_select (Depends-on): Add c++defs.
19455         (Makefile.am): Update sys/select.h rule.
19456
19457         sys_ioctl: Avoid #define replacements in C++ mode.
19458         * lib/sys_ioctl.in.h: Include c++defs.h.
19459         (ioctl): In C++, define a namespaced alias symbol.
19460         * modules/sys_ioctl (Depends-on): Add c++defs.
19461         (Makefile.am): Update sys/ioctl.h rule.
19462
19463         string: Avoid #define replacements in C++ mode.
19464         * lib/string.in.h: Include c++defs.h.
19465         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19466         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19467         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19468         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19469         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19470         * modules/string (Depends-on): Add c++defs.
19471         (Makefile.am): Update string.h rule.
19472
19473         stdlib: Avoid #define replacements in C++ mode.
19474         * lib/stdlib.in.h: Include c++defs.h.
19475         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19476         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19477         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19478         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19479         symbol.
19480         * modules/stdlib (Depends-on): Add c++defs.
19481         (Makefile.am): Update stdlib.h rule.
19482
19483         stdio: Avoid #define replacements in C++ mode.
19484         * lib/stdio.in.h: Include c++defs.h.
19485         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19486         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19487         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19488         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19489         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19490         namespaced alias symbol.
19491         * modules/stdio (Depends-on): Add c++defs.
19492         (Makefile.am): Update stdio.h rule.
19493
19494         spawn: Avoid #define replacements in C++ mode.
19495         * lib/spawn.in.h: Include c++defs.h.
19496         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19497         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19498         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19499         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19500         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19501         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19502         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19503         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19504         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19505         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19506         In C++, define a namespaced alias symbol.
19507         * modules/spawn (Depends-on): Add c++defs.
19508         (Makefile.am): Update spawn.h rule.
19509
19510         signal: Avoid #define replacements in C++ mode.
19511         * lib/signal.in.h: Include c++defs.h.
19512         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19513         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19514         namespaced alias symbol.
19515         * modules/signal (Depends-on): Add c++defs.
19516         (Makefile.am): Update signal.h rule.
19517
19518         search: Avoid #define replacements in C++ mode.
19519         * lib/search.in.h: Include c++defs.h.
19520         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19521         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19522         symbol.
19523         * modules/search (Depends-on): Add c++defs.
19524         (Makefile.am): Update search.h rule.
19525
19526         math: Avoid #define replacements in C++ mode.
19527         * lib/math.in.h: Include c++defs.h.
19528         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19529         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19530         trunc, truncl): In C++, define a namespaced alias symbol.
19531         * modules/math (Depends-on): Add c++defs.
19532         (Makefile.am): Update math.h rule.
19533
19534         locale: Avoid #define replacements in C++ mode.
19535         * lib/locale.in.h: Include c++defs.h.
19536         (duplocale): In C++, define a namespaced alias symbol.
19537         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19538         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19539         * modules/locale (Depends-on): Add c++defs.
19540         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19541
19542         langinfo: Avoid #define replacements in C++ mode.
19543         * lib/langinfo.in.h: Include c++defs.h.
19544         (nl_langinfo): In C++, define a namespaced alias symbol.
19545         * modules/langinfo (Depends-on): Add c++defs.
19546         (Makefile.am): Update langinfo.h rule.
19547
19548         iconv-h: Avoid #define replacements in C++ mode.
19549         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19550         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19551         symbol.
19552         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19553         whenever iconv is present.
19554         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19555         (Makefile.am): Update iconv.h rule.
19556
19557         glob: Avoid #define replacements in C++ mode.
19558         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19559         (_gl_glob_errfunc_fn): New type.
19560         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19561         symbol.
19562         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19563         (Makefile.am): Update glob.h rule.
19564
19565         fcntl-h: Avoid #define replacements in C++ mode.
19566         * lib/fcntl.in.h: Include c++defs.h.
19567         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19568         * modules/fcntl-h (Depends-on): Add c++defs.
19569         (Makefile.am): Update fcntl.h rule.
19570
19571         dirent: Avoid #define replacements in C++ mode.
19572         * lib/dirent.in.h: Include c++defs.h.
19573         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19574         namespaced alias symbol.
19575         (dirfd): Update declaration.
19576         * modules/dirent (Depends-on): Add c++defs.
19577         (Makefile.am): Update dirent.h rule.
19578
19579         ctype: Make it usable in C++ code.
19580         * lib/ctype.in.h: Include c++defs.h.
19581         (isblank): Declare as extern "C".
19582         * modules/ctype (Depends-on): Add c++defs.
19583         (Makefile.am): Update ctype.h rule.
19584
19585         New module 'c++defs'.
19586         * modules/c++defs: New file.
19587         * build-aux/c++defs.h: New file.
19588         Reported by John W. Eaton <jwe@gnu.org>.
19589
19590 2010-03-07  Bruno Haible  <bruno@clisp.org>
19591
19592         logb: Provide missing declaration for Cygwin.
19593         * lib/math.in.h (logb): New declaration.
19594         * m4/logb.m4: New file.
19595         * modules/logb (Files): Add m4/logb.m4.
19596         (Depends-on): Add math.
19597         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19598         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19600         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19601         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19602
19603 2010-03-07  Bruno Haible  <bruno@clisp.org>
19604
19605         Fix test-cond link error.
19606         * tests/test-cond.c: Include <stdio.h>.
19607
19608 2010-03-07  Bruno Haible  <bruno@clisp.org>
19609
19610         Fix test-dirent-safer link error.
19611         * modules/dirent-safer-tests (Makefile.am): Define
19612         test_dirent_safer_LDADD.
19613
19614 2010-03-07  Bruno Haible  <bruno@clisp.org>
19615
19616         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19617         among default module list.
19618
19619 2010-03-07  Bruno Haible  <bruno@clisp.org>
19620
19621         Fix link error on platforms with GNU libiconv.
19622         * modules/unistr/u8-strcoll-tests (Makefile): Define
19623         test_u8_strcoll_LDADD.
19624         * modules/unistr/u16-strcoll-tests (Makefile): Define
19625         test_u16_strcoll_LDADD.
19626         * modules/unistr/u32-strcoll-tests (Makefile): Define
19627         test_u32_strcoll_LDADD.
19628
19629 2010-03-07  Bruno Haible  <bruno@clisp.org>
19630
19631         Use POSIX declarations for socket functions.
19632         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19633         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19634         rpl_sendto): Change declaration to match POSIX.
19635         * lib/connect.c (rpl_connect): Likewise.
19636         * lib/accept.c (rpl_accept): Likewise.
19637         * lib/bind.c (rpl_bind): Likewise.
19638         * lib/getpeername.c (rpl_getpeername): Likewise.
19639         * lib/getsockname.c (rpl_getsockname): Likewise.
19640         * lib/recv.c (rpl_recv): Likewise.
19641         * lib/send.c (rpl_send): Likewise.
19642         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19643         * lib/sendto.c (rpl_sendto): Likewise.
19644
19645 2010-03-06  Bruno Haible  <bruno@clisp.org>
19646
19647         Clarify access, euidaccess, faccessat.
19648         * doc/posix-functions/faccessat.texi: Mention security problem under
19649         "Other problems", not "Portability problems".
19650         * doc/posix-functions/access.texi: Likewise. Mention a related security
19651         problem.
19652         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19653         * lib/euidaccess.c: Add comments about platforms.
19654         * lib/unistd.in.h (access, euidaccess): Add warnings.
19655
19656 2010-03-07  Bruno Haible  <bruno@clisp.org>
19657
19658         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19659         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19660         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19661         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19662         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19663         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19664         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19665         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19666         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19667         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19668         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19669         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19670         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19671         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19672         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19673         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19674         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19675         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19676         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19677         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19678         Likewise.
19679         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19680         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19681         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19682         Likewise.
19683         * tests/test-spawn.c (main): Make it work when
19684         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19685
19686 2010-03-07  Bruno Haible  <bruno@clisp.org>
19687
19688         Fix incorrect Makefile.am generation in German locale.
19689         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19690         Execute sed command with character range in C locale.
19691
19692 2010-03-06  Bruno Haible  <bruno@clisp.org>
19693
19694         Tests for module 'iconv-h'.
19695         * modules/iconv-h-tests: New file.
19696         * tests/test-iconv-h.c: New file.
19697
19698         New module 'iconv-h'.
19699         * modules/iconv-h: New file.
19700         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19701         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19702         (configure.ac): Remove gl_ICONV_H.
19703         (Makefile.am): Remove rule for iconv.h.
19704
19705 2010-03-06  Bruno Haible  <bruno@clisp.org>
19706
19707         More consistent naming of *.m4 files.
19708         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19709         * modules/wctype (Files): Update.
19710
19711         More consistent naming of *.m4 files.
19712         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19713         * modules/wchar (Files): Update.
19714
19715 2010-03-06  Jim Meyering  <meyering@redhat.com>
19716
19717         euidaccess: relax license to LGPLv2+
19718         * modules/euidaccess (License): Relax to LGPLv2+.
19719
19720 2010-03-06  Bruno Haible  <bruno@clisp.org>
19721
19722         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19723         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19724         (Makefile.am): Augment lib_SOURCES instead.
19725
19726 2010-03-04  Jim Meyering  <meyering@redhat.com>
19727
19728         utime: remove obsolete module
19729         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19730         unnecessary for years, and has been marked as obsolete for 10 months.
19731         * modules/utime: Remove file.
19732         * lib/utime.c: Remove file.
19733         * m4/utime.m4: Remove file.
19734         * m4/utimes-null.m4: Remove file.
19735         * doc/posix-functions/utime.texi (utime): Remove reference to
19736         the module.  Move the sole "fixed by gnulib" item into the
19737         "problems not fixed by Gnulib" list.
19738         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19739
19740 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19741
19742         * modules/exit (License): Relax license to LGPLv2+.
19743         (Status): Mark as obsolete.
19744         * NEWS: Mention deprecated 'exit' module.
19745         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19746         of now obsolete 'exit'.
19747
19748 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19749
19750         fts-lgpl: remove unused module
19751         * modules/fts-lgpl: Remove.
19752         * MODULES.html.sh (func_all_modules): Adjust.
19753         * check-module (find_included_lib_files): Adjust.
19754         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19755
19756 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19757
19758         copy-acl: enhance Solaris ACL error handling
19759         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19760         * lib/set-mode-acl.c (qset_acl): Likewise.
19761
19762 2010-03-02  Bruno Haible  <bruno@clisp.org>
19763
19764         spawn: Don't override the system defined values on FreeBSD 8.
19765         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19766         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19767         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19768         if HAVE_POSIX_SPAWN is 1.
19769         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19770
19771 2010-03-01  Bruno Haible  <bruno@clisp.org>
19772
19773         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19774         regarding Automake.
19775
19776 2010-02-25  Bruno Haible  <bruno@clisp.org>
19777
19778         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19779         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19780         setting, not afterwards.
19781         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19782
19783 2010-02-24  Eric Blake  <eblake@redhat.com>
19784
19785         bootstrap, git-version-gen: use timestamp
19786         * build-aux/git-version-gen (scriptversion): Force UTC.
19787         * build-aux/bootstrap (scriptversion): New variable.
19788
19789         bootstrap: allow older git
19790         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19791         older than 1.6.4.  Requested by the libvirt project.
19792
19793 2010-02-23  Eric Blake  <eblake@redhat.com>
19794
19795         warn-on-use: work with old autoconf
19796         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19797         AS_VAR semantics of autoconf 2.60.
19798         Reported by Bruno Haible.
19799
19800         bootstrap: improve some comments
19801         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19802         clarification comments.
19803
19804         gettimeofday: provide correct function
19805         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19806         when replacement is declared, otherwise provide gettimeofday.
19807         Reported by Michael Goffioul.
19808
19809 2010-02-23  Jim Meyering  <meyering@redhat.com>
19810
19811         lib-ignore: relax license to "unlimited", not LGPLv2+
19812         * modules/lib-ignore (License): Relax to "unlimited".
19813
19814 2010-02-23  Jim Meyering  <meyering@redhat.com>
19815
19816         lib-ignore: relax license to LGPLv2+
19817         * modules/lib-ignore (License): Relax to LGPLv2+.
19818
19819 2010-02-22  Eric Blake  <eblake@redhat.com>
19820
19821         lseek: avoid bash 3.2 broken pipe bug
19822         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19823         warning from bash 3.2.
19824         Reported by Ben Pfaff, with analysis from Bruno Haible.
19825
19826         bootstrap: support non-FSF copyright holder
19827         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19828         bootstrap.conf override of COPYRIGHT_HOLDER.
19829         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19830
19831         bootstrap: interoperate with gettext 0.14.1
19832         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19833
19834         bootstrap: allow for alternate submodule location
19835         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19836         hardcoding submodule location.
19837         (gnulib_mk): Allow direct use of Makefile.am.
19838
19839         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19840         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19841         rather than reconfiguring where the submodule points.
19842
19843         gettimeofday: restore support for platforms that lack function
19844         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19845         replacement if function is missing.
19846         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19847         * modules/sys_time (Makefile.am): Substitute it.
19848         * lib/sys_time.in.h (gettimeofday): Check it.
19849         Reported by Michael Goffioul.
19850
19851 2010-02-21  Bruno Haible  <bruno@clisp.org>
19852
19853         * lib/stdio.in.h (obstack_printf): Fix typo.
19854
19855 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19856
19857         vc-list-files: use bzr ls's -R option
19858         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19859         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19860
19861 2010-02-21  Jim Meyering  <meyering@redhat.com>
19862
19863         init.sh: fix EXEEXT shims to work also for names like test-prog
19864         * tests/init.sh: Re-exec a better shell, when needed.
19865         If the current shell lacks support for posix $(...), an init.sh-using
19866         test will now try to find a shell that supports that.  If EXEEXT is
19867         nonempty, we also require support for hyphen-in-alias-name and shell
19868         substitutions like ${var#glob}.  Failure to find such a shell results
19869         in a skipped test.
19870
19871 2010-02-21  Bruno Haible  <bruno@clisp.org>
19872
19873         Really work around around "broken pipe" error message from bash 3.2.
19874         * gnulib-tool (func_reset_sigpipe): Remove function.
19875         (echo): In bash 3.2, define to a function that uses printf.
19876         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19877
19878 2010-02-20  Bruno Haible  <bruno@clisp.org>
19879
19880         Restore support for automake 1.9.6 with autoconf 2.61.
19881         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19882         Reported by James Youngman <jay@gnu.org>.
19883
19884 2010-02-20  Bruno Haible  <bruno@clisp.org>
19885
19886         Improve *printf warning condition.
19887         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19888         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19889         and the function is overridden due to SIGPIPE emulation.
19890
19891 2010-02-20  Bruno Haible  <bruno@clisp.org>
19892
19893         * lib/stdio.in.h: Tweak comments.
19894
19895 2010-02-19  Bruno Haible  <bruno@clisp.org>
19896
19897         Make it easier to find modules. New gnulib-tool option '--find'.
19898         * gnulib-tool: New option --find.
19899         (func_usage): Document it.
19900         (func_sanitize_modulelist): New function, extracted from
19901         func_all_modules.
19902         (func_all_modules): Invoke it.
19903         * doc/gnulib-tool.texi (Which modules?): New node.
19904
19905 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19906
19907         * lib/sys_select.in.h: Provide select replacement even if
19908         sys/select.h exists on a system, for Interix.
19909
19910 2010-02-18  Jim Meyering  <meyering@redhat.com>
19911
19912         init.sh: don't use $(...) just yet
19913         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19914         to accommodate e.g., Solaris' /bin/sh.
19915
19916 2010-02-17  Bruno Haible  <bruno@clisp.org>
19917
19918         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19919         Reported by Ludovic Courtès <ludo@gnu.org>.
19920
19921 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19922
19923         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19924         linking with -lintl.
19925
19926 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19927
19928         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19929         if not provided by the system's netdb.h.  Reported by
19930         ludo@gnu.org (Ludovic Courtès).
19931
19932 2010-02-15  Jim Meyering  <meyering@redhat.com>
19933
19934         init.sh: improve portability and efficiency
19935         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19936         "dummy" in a for loop.
19937         Use '!', not '^' to select the complement of a character set used
19938         in a "case" statement.
19939         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19940         Suggestions from Eric Blake.
19941
19942         init.sh: automatically accommodate programs with the .exe suffix
19943         Automatically arrange for an invocation of "prog" to execute the
19944         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19945         may use the simpler "prog", yet still work when built on a system
19946         that requires specifying the added suffix.
19947         Do this by constructing a function named "prog" that invokes
19948         "prog.exe" for each .exe file in selected directories.
19949         * tests/init.sh (find_exe_basenames_): New function.
19950         (create_exe_shim_functions_): New function.
19951         (path_prepend_): Use it.
19952
19953         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19954         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19955         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19956
19957 2010-02-14  Jim Meyering  <meyering@redhat.com>
19958
19959         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19960         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19961         (sc_prohibit_hash_pjw_without_use): New rule.
19962
19963         maint.mk: allow the default upload destination dir to be overridden
19964         * top/maint.mk (upload_dest_dir_): Define with a default that
19965         preserves the status quo.
19966         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19967         Reported by Peter Simons.
19968
19969         maint.mk: prohibit inclusion of "hash.h" without_use
19970         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19971
19972 2010-02-10  Jim Meyering  <meyering@redhat.com>
19973
19974         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19975         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19976
19977 2010-02-09  Eric Blake  <ebb9@byu.net>
19978         and Bruno Haible  <bruno@clisp.org>
19979
19980         obstack-printf-posix: ensure declaration
19981         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19982         extracted from gl_FUNC_OBSTACK_PRINTF.
19983         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19984         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19985         Likewise.
19986         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19987         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19988         0.
19989
19990 2010-02-08  Bruno Haible  <bruno@clisp.org>
19991
19992         gnulib-tool: Fix typo in 2010-02-07 commit.
19993         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19994         Reported by Eric Blake.
19995
19996 2010-02-07  Bruno Haible  <bruno@clisp.org>
19997
19998         gnulib-tool: Fix up caching patches.
19999         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
20000         option --no-cache. Use associative arrays when supported by the shell.
20001         (sed_comments): New variable.
20002         (modcache): Renamed from do_cache.
20003         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
20004         abbreviate unnecessarily.
20005         (have_associative): New variable.
20006         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
20007         way also for ksh and zsh.
20008         (func_init_sed_convert_to_cache_statements): New function, extracted
20009         from func_cache_lookup_module. Add support for associative arrays.
20010         Don't set the c_MODULE_cached variable here. Ignore all lines before
20011         the first field header. Remove only the final newline, not all trailing
20012         newlines. Support empty fields correctly. Limit the use of 'eval' to
20013         assignments.
20014         (func_get_description, func_get_status, func_get_notice,
20015         func_get_applicability, func_get_filelist, func_get_dependencies,
20016         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
20017         func_get_automake_snippet, func_get_include_directive,
20018         func_get_link_directive, func_get_license, func_get_maintainer):
20019         Update documentation. List the unoptimized code first. Add support for
20020         associative arrays. Limit the use of 'eval' to assignments.
20021         (func_get_applicability): Undo stylistic pessimisations.
20022         (func_get_automake_snippet, func_get_include_directive): Reduce code
20023         duplication.
20024         (func_modules_transitive_closure, func_modules_add_dummy,
20025         func_modules_notice, func_modules_to_filelist, func_add_file,
20026         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
20027         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
20028         func_create_testdir, func_create_megatestdir): Update documentation.
20029
20030 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20031
20032         * gnulib-tool (func_cache_lookup_module): Store the module name
20033         belonging to the cache variable; error out if two different
20034         module names map to the same cache variable name.
20035
20036 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20037
20038         gnulib-tool: Make caching optional.
20039         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
20040         Update matching short versions of --no-changelog.
20041         (func_usage): Update.
20042         (sed_extract_cache_prog): Renamed from ...
20043         (sed_extract_prog): ... this; revert to old extraction script.
20044         (func_get_description, func_get_status)
20045         (func_get_notice, func_get_applicability, func_get_filelist)
20046         (func_get_dependencies, func_get_autoconf_early_snippet)
20047         (func_get_autoconf_snippet, func_get_automake_snippet)
20048         (func_get_include_directive, func_get_link_directive)
20049         (func_get_license, func_get_maintainer): If $do_cache is false,
20050         use old, non-caching extraction scripts.
20051         Suggestion by Bruno Haible.
20052
20053 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20054
20055         gnulib-tool: cache module metainformation.
20056         * gnulib-tool (sed_extract_prog): Match newline before each
20057         header, and rewrite header to a shell variable suffix.
20058         (func_cache_var, func_cache_lookup_module): New functions,
20059         to turn a module name into a cache variable prefix, and to
20060         look up and cache module metainformation.
20061         (func_get_description, func_get_status)
20062         (func_get_notice, func_get_applicability, func_get_filelist)
20063         (func_get_dependencies, func_get_autoconf_early_snippet)
20064         (func_get_autoconf_snippet, func_get_automake_snippet)
20065         (func_get_include_directive, func_get_link_directive)
20066         (func_get_license, func_get_maintainer): Use
20067         func_cache_lookup_module.
20068
20069 2010-02-07  Bruno Haible  <bruno@clisp.org>
20070
20071         fnctl: Fix missing dependency.
20072         * modules/fcntl (Depends-on): Add getdtablesize.
20073         Reported by John W. Eaton <jwe@gnu.org>.
20074
20075 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20076
20077         Argp: fix recognition of short alias options.
20078
20079         * lib/argp-parse.c (convert_options): Fix improper use of
20080         `|' between character values.
20081         * tests/test-argp.c (group1_option): New alias option
20082         --read (-r).
20083         (group1_parser): Special handling for 'r'.
20084         (test15): New test case.
20085         (test_fun): Add test15.
20086         * tests/test-argp-2.sh: Update expected --help and --usage
20087         outputs.
20088
20089 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20090
20091         * tests/test-argp.c: Fix indentation.
20092
20093 2010-02-04  Eric Blake  <ebb9@byu.net>
20094
20095         gettimeofday: expose type of second argument
20096         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
20097         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
20098         * tests/test-gettimeofday.c: Use it to silence warning.
20099         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
20100         the issue.
20101
20102 2010-02-03  Jim Meyering  <meyering@redhat.com>
20103
20104         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
20105         * lib/regcomp.c (TYPE_SIGNED): Define.
20106         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
20107
20108         regcomp.c: avoid a new -Wshadow warning
20109         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
20110
20111 2010-02-01  Jim Meyering  <meyering@redhat.com>
20112
20113         removing useless parentheses in cpp #define directives
20114         For motivation, see commit c0221df4, "define STREQ(a,b)
20115         consistently, removing useless parentheses"
20116         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
20117         * lib/mountlist.c (MNT_IGNORE): Likewise.
20118         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
20119
20120 2010-02-01  Eric Blake  <ebb9@byu.net>
20121
20122         sys_time: use link-warning
20123         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
20124         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
20125         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
20126         * modules/sys_time (Depends-on): Add warn-on-use.
20127         (Makefile.am): Always build replacement.
20128         (configure.ac): Update substitutions.
20129         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
20130         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
20131         bother with SYS_TIME_H.
20132         * modules/gettimeofday (configure.ac): Declare indicator.
20133         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
20134         in use.
20135
20136         closein-tests: silence compiler warning
20137         * tests/test-closein.c (main): Ignore fread result.
20138         * modules/closein-tests (Depends-on): Add ignore-value.
20139
20140         tests: silence warning about system return
20141         * tests/test-areadlink-with-size.c (main): Ignore system result.
20142         * tests/test-areadlink.c (main): Likewise.
20143         * tests/test-areadlinkat-with-size.c (main): Likewise.
20144         * tests/test-areadlinkat.c (main): Likewise.
20145         * tests/test-canonicalize-lgpl.c (main): Likewise.
20146         * tests/test-canonicalize.c (main): Likewise.
20147         * tests/test-chown.c (main): Likewise.
20148         * tests/test-fchownat.c (main): Likewise.
20149         * tests/test-fdutimensat.c (main): Likewise.
20150         * tests/test-fstatat.c (main): Likewise.
20151         * tests/test-futimens.c (main): Likewise.
20152         * tests/test-lchown.c (main): Likewise.
20153         * tests/test-link.c (main): Likewise.
20154         * tests/test-linkat.c (main): Likewise.
20155         * tests/test-lstat.c (main): Likewise.
20156         * tests/test-mkdir.c (main): Likewise.
20157         * tests/test-mkdirat.c (main): Likewise.
20158         * tests/test-mkfifo.c (main): Likewise.
20159         * tests/test-mkfifoat.c (main): Likewise.
20160         * tests/test-mknod.c (main): Likewise.
20161         * tests/test-readlink.c (main): Likewise.
20162         * tests/test-remove.c (main): Likewise.
20163         * tests/test-rename.c (main): Likewise.
20164         * tests/test-renameat.c (main): Likewise.
20165         * tests/test-rmdir.c (main): Likewise.
20166         * tests/test-symlink.c (main): Likewise.
20167         * tests/test-symlinkat.c (main): Likewise.
20168         * tests/test-unlink.c (main): Likewise.
20169         * tests/test-unlinkat.c (main): Likewise.
20170         * tests/test-utimens.c (main): Likewise.
20171         * tests/test-utimensat.c (main): Likewise.
20172         * modules/areadlink-tests (Depends-on): Add ignore-value.
20173         * modules/areadlink-with-size-tests (Depends-on): Likewise.
20174         * modules/areadlinkat-tests (Depends-on): Likewise.
20175         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
20176         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20177         * modules/canonicalize-tests (Depends-on): Likewise.
20178         * modules/chown-tests (Depends-on): Likewise.
20179         * modules/fdutimensat-tests (Depends-on): Likewise.
20180         * modules/futimens-tests (Depends-on): Likewise.
20181         * modules/lchown-tests (Depends-on): Likewise.
20182         * modules/link-tests (Depends-on): Likewise.
20183         * modules/linkat-tests (Depends-on): Likewise.
20184         * modules/lstat-tests (Depends-on): Likewise.
20185         * modules/mkdir-tests (Depends-on): Likewise.
20186         * modules/mkfifo-tests (Depends-on): Likewise.
20187         * modules/mkfifoat-tests (Depends-on): Likewise.
20188         * modules/mknod-tests (Depends-on): Likewise.
20189         * modules/openat-tests (Depends-on): Likewise.
20190         * modules/readlink-tests (Depends-on): Likewise.
20191         * modules/remove-tests (Depends-on): Likewise.
20192         * modules/rename-tests (Depends-on): Likewise.
20193         * modules/renameat-tests (Depends-on): Likewise.
20194         * modules/rmdir-tests (Depends-on): Likewise.
20195         * modules/symlink-tests (Depends-on): Likewise.
20196         * modules/symlinkat-tests (Depends-on): Likewise.
20197         * modules/unlink-tests (Depends-on): Likewise.
20198         * modules/utimens-tests (Depends-on): Likewise.
20199         * modules/utimensat-tests (Depends-on): Likewise.
20200
20201 2010-01-31  Bruno Haible  <bruno@clisp.org>
20202
20203         Perform the same test for many <math.h> functions.
20204         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
20205         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
20206         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
20207         of gl_MATHFUNC.
20208         * modules/acos (configure.ac): Likewise.
20209         * modules/asin (configure.ac): Likewise.
20210         * modules/atan (configure.ac): Likewise.
20211         * modules/atan2 (configure.ac): Likewise.
20212         * modules/cbrt (configure.ac): Likewise.
20213         * modules/copysign (configure.ac): Likewise.
20214         * modules/cos (configure.ac): Likewise.
20215         * modules/cosh (configure.ac): Likewise.
20216         * modules/erf (configure.ac): Likewise.
20217         * modules/erfc (configure.ac): Likewise.
20218         * modules/exp (configure.ac): Likewise.
20219         * modules/fmod (configure.ac): Likewise.
20220         * modules/hypot (configure.ac): Likewise.
20221         * modules/j0 (configure.ac): Likewise.
20222         * modules/j1 (configure.ac): Likewise.
20223         * modules/jn (configure.ac): Likewise.
20224         * modules/lgamma (configure.ac): Likewise.
20225         * modules/log (configure.ac): Likewise.
20226         * modules/log10 (configure.ac): Likewise.
20227         * modules/log1p (configure.ac): Likewise.
20228         * modules/pow (configure.ac): Likewise.
20229         * modules/remainder (configure.ac): Likewise.
20230         * modules/sin (configure.ac): Likewise.
20231         * modules/sinh (configure.ac): Likewise.
20232         * modules/tan (configure.ac): Likewise.
20233         * modules/tanh (configure.ac): Likewise.
20234         * modules/y0 (configure.ac): Likewise.
20235         * modules/y1 (configure.ac): Likewise.
20236         * modules/yn (configure.ac): Likewise.
20237         Suggested by Paolo Bonzini.
20238
20239 2010-01-31  Bruno Haible  <bruno@clisp.org>
20240
20241         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
20242
20243 2010-01-31  Bruno Haible  <bruno@clisp.org>
20244
20245         Work around getdelim() bug on FreeBSD 8.0.
20246         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
20247         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
20248         not work.
20249         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
20250         is 1.
20251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
20252         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
20253         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
20254         a non-zero size.
20255         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
20256
20257 2010-01-31  Bruno Haible  <bruno@clisp.org>
20258
20259         Work around getline() bug on FreeBSD 8.0.
20260         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
20261         and a non-zero size.
20262         * tests/test-getline.c (main): Likewise.
20263         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
20264         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
20265
20266 2010-01-28  Eric Blake  <ebb9@byu.net>
20267
20268         regex: fix build failure
20269         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
20270         platforms.
20271
20272 2010-01-28  Jim Meyering  <meyering@redhat.com>
20273
20274         regex: do not ignore memory allocation failure
20275         * lib/regex_internal.c (create_cd_newstate): Detect
20276         re_node_set_init_copy failure.   Extracted from glibc commit
20277         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20278
20279         regex: sync more white-space changes from libc
20280         * lib/regex_internal.c: White-space only changes.
20281         * lib/regexec.c: Likewise.
20282
20283         regex: add many uses of __attribute_warn_unused_result__
20284         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
20285         * lib/regexec.c: Likewise.
20286         Extracted from a messy glibc commit.
20287
20288         regcomp.c: spelling and merge-artifact from glibc
20289         * lib/regcomp.c: Merge remainder of glibc's
20290         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20291
20292         regcomp.c: sync white-space changes from glibc
20293         * lib/regcomp.c: Merge to accommodate white space
20294         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20295
20296         regcomp.c: do not ignore internal return values
20297         * lib/regcomp.c: Do not ignore internal return values.
20298         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
20299         but without its white-space changes and spelling fixes.
20300
20301         regex_internal.h: define __attribute_warn_unused_result__
20302         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
20303
20304         maint: add a syntax-check rule to check for vulnerable Makefile.in
20305         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
20306
20307 2010-01-27  Jim Meyering  <meyering@redhat.com>
20308
20309         ncftpput-ftp: clean up spaces
20310         * build-aux/ncftpput-ftp: Make Copyright line consistent.
20311         Remove trailing blanks.
20312
20313 2010-01-27  Simon Josefsson  <simon@josefsson.org>
20314
20315         * build-aux/git-version-gen: Fix copyright statement.
20316         * build-aux/gnupload: Likewise.
20317         * tests/test-arcfour.c: Likewise.
20318         * tests/test-arctwo.c: Likewise.
20319         * tests/test-count-one-bits.c: Likewise.
20320         * tests/test-crc.c: Likewise.
20321         * tests/test-des.c: Likewise.
20322         * tests/test-gc-arcfour.c: Likewise.
20323         * tests/test-gc-arctwo.c: Likewise.
20324         * tests/test-gc-des.c: Likewise.
20325         * tests/test-gc-hmac-md5.c: Likewise.
20326         * tests/test-gc-hmac-sha1.c: Likewise.
20327         * tests/test-gc-md2.c: Likewise.
20328         * tests/test-gc-md4.c: Likewise.
20329         * tests/test-gc-md5.c: Likewise.
20330         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20331         * tests/test-gc-rijndael.c: Likewise.
20332         * tests/test-gc-sha1.c: Likewise.
20333         * tests/test-gc.c: Likewise.
20334         * tests/test-gethostname.c: Likewise.
20335         * tests/test-gettimeofday.c: Likewise.
20336         * tests/test-hash.c: Likewise.
20337         * tests/test-hmac-md5.c: Likewise.
20338         * tests/test-hmac-sha1.c: Likewise.
20339         * tests/test-md2.c: Likewise.
20340         * tests/test-md4.c: Likewise.
20341         * tests/test-md5.c: Likewise.
20342         * tests/test-memchr.c: Likewise.
20343         * tests/test-memchr2.c: Likewise.
20344         * tests/test-memcmp.c: Likewise.
20345         * tests/test-memmem.c: Likewise.
20346         * tests/test-memrchr.c: Likewise.
20347         * tests/test-rawmemchr.c: Likewise.
20348         * tests/test-read-file.c: Likewise.
20349         * tests/test-rijndael.c: Likewise.
20350         * tests/test-sockets.c: Likewise.
20351         * tests/test-strchrnul.c: Likewise.
20352         * tests/test-strstr.c: Likewise.
20353         * tests/test-strtod.c: Likewise.
20354         * build-aux/ncftpput-ftp: Likewise.
20355
20356 2010-01-26  Eric Blake  <ebb9@byu.net>
20357
20358         ignore-value: update recommended header name
20359         * modules/ignore-value (Include): Only use <> for headers that
20360         exist in glibc.
20361
20362 2010-01-26  Jim Meyering  <meyering@redhat.com>
20363
20364         test-userspec.c: avoid compiler warnings
20365         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20366         and "initialization discards qualifiers..." warnings.
20367         Put the first "uid" in its own scope, and make char* members "const".
20368
20369 2010-01-25  Bruno Haible  <bruno@clisp.org>
20370
20371         gnulib-tool: Make warning diagnostics consistent.
20372         * gnulib-tool (func_warning): New function.
20373         Use it everywhere where gnulib-tool produces output to stderr and it is
20374         not a fatal error.
20375
20376 2010-01-25  Bruno Haible  <bruno@clisp.org>
20377
20378         Fix test dependencies.
20379         * modules/xstrtol-tests (Depends-on): Add inttypes.
20380         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20381
20382 2010-01-25 Pádraig Brady <P@draigBrady.com>
20383
20384         syntax-check: detect incorrect boolean macro values in config.h
20385         * modules/maintainer-makefile (configure.ac): Parameterize the location
20386         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20387         The logic is from Eric Blake and the location indicated by Jim Meyering.
20388         Note the more natural CONFIG_HEADER name is prohibited by automake
20389         for backwards compatibility reasons.
20390         * top/maint.mk (sc_Wundef_boolean): New rule.
20391
20392 2010-01-25  Jim Meyering  <meyering@redhat.com>
20393
20394         bootstrap: detect MacOS 10.6's shasum, too
20395         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20396         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20397
20398 2010-01-23  Jim Meyering  <meyering@redhat.com>
20399
20400         xstrtoll: new module
20401         * modules/xstrtoll: New file.
20402         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20403         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20404         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20405         ./configure fails if you use this module and lack "long long".
20406         * modules/xstrtoll-tests: New module.
20407         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20408         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20409         new init.sh-based test framework.
20410
20411 2010-01-24  Bruno Haible  <bruno@clisp.org>
20412
20413         Tests for module 'yn'.
20414         * modules/yn-tests: New file.
20415         * tests/test-yn.c: New file.
20416
20417         Tests for module 'y1'.
20418         * modules/y1-tests: New file.
20419         * tests/test-y1.c: New file.
20420
20421         Tests for module 'y0'.
20422         * modules/y0-tests: New file.
20423         * tests/test-y0.c: New file.
20424
20425         Tests for module 'tanh'.
20426         * modules/tanh-tests: New file.
20427         * tests/test-tanh.c: New file.
20428
20429         Tests for module 'tan'.
20430         * modules/tan-tests: New file.
20431         * tests/test-tan.c: New file.
20432
20433         Tests for module 'sqrt'.
20434         * modules/sqrt-tests: New file.
20435         * tests/test-sqrt.c: New file.
20436
20437         Tests for module 'sinh'.
20438         * modules/sinh-tests: New file.
20439         * tests/test-sinh.c: New file.
20440
20441         Tests for module 'sin'.
20442         * modules/sin-tests: New file.
20443         * tests/test-sin.c: New file.
20444
20445         Tests for module 'rint'.
20446         * modules/rint-tests: New file.
20447         * tests/test-rint.c: New file.
20448
20449         Tests for module 'remainder'.
20450         * modules/remainder-tests: New file.
20451         * tests/test-remainder.c: New file.
20452
20453         Tests for module 'pow'.
20454         * modules/pow-tests: New file.
20455         * tests/test-pow.c: New file.
20456
20457         Tests for module 'nextafter'.
20458         * modules/nextafter-tests: New file.
20459         * tests/test-nextafter.c: New file.
20460
20461         Tests for module 'modf'.
20462         * modules/modf-tests: New file.
20463         * tests/test-modf.c: New file.
20464
20465         Tests for module 'logb'.
20466         * modules/logb-tests: New file.
20467         * tests/test-logb.c: New file.
20468
20469         Tests for module 'log1p'.
20470         * modules/log1p-tests: New file.
20471         * tests/test-log1p.c: New file.
20472
20473         Tests for module 'log10'.
20474         * modules/log10-tests: New file.
20475         * tests/test-log10.c: New file.
20476
20477         Tests for module 'log'.
20478         * modules/log-tests: New file.
20479         * tests/test-log.c: New file.
20480
20481         Tests for module 'lgamma'.
20482         * modules/lgamma-tests: New file.
20483         * tests/test-lgamma.c: New file.
20484
20485         Tests for module 'ldexp'.
20486         * modules/ldexp-tests: New file.
20487         * tests/test-ldexp.c: New file.
20488
20489         Tests for module 'jn'.
20490         * modules/jn-tests: New file.
20491         * tests/test-jn.c: New file.
20492
20493         Tests for module 'j1'.
20494         * modules/j1-tests: New file.
20495         * tests/test-j1.c: New file.
20496
20497         Tests for module 'j0'.
20498         * modules/j0-tests: New file.
20499         * tests/test-j0.c: New file.
20500
20501         Tests for module 'hypot'.
20502         * modules/hypot-tests: New file.
20503         * tests/test-hypot.c: New file.
20504
20505         Tests for module 'fmod'.
20506         * modules/fmod-tests: New file.
20507         * tests/test-fmod.c: New file.
20508
20509         Tests for module 'fabs'.
20510         * modules/fabs-tests: New file.
20511         * tests/test-fabs.c: New file.
20512
20513         Tests for module 'exp'.
20514         * modules/exp-tests: New file.
20515         * tests/test-exp.c: New file.
20516
20517         Tests for module 'erfc'.
20518         * modules/erfc-tests: New file.
20519         * tests/test-erfc.c: New file.
20520
20521         Tests for module 'erf'.
20522         * modules/erf-tests: New file.
20523         * tests/test-erf.c: New file.
20524
20525         Tests for module 'cosh'.
20526         * modules/cosh-tests: New file.
20527         * tests/test-cosh.c: New file.
20528
20529         Tests for module 'cos'.
20530         * modules/cos-tests: New file.
20531         * tests/test-cos.c: New file.
20532
20533         Tests for module 'copysign'.
20534         * modules/copysign-tests: New file.
20535         * tests/test-copysign.c: New file.
20536
20537         Tests for module 'cbrt'.
20538         * modules/cbrt-tests: New file.
20539         * tests/test-cbrt.c: New file.
20540
20541         Tests for module 'atan2'.
20542         * modules/atan2-tests: New file.
20543         * tests/test-atan2.c: New file.
20544
20545         Tests for module 'atan'.
20546         * modules/atan-tests: New file.
20547         * tests/test-atan.c: New file.
20548
20549         Tests for module 'asin'.
20550         * modules/asin-tests: New file.
20551         * tests/test-asin.c: New file.
20552
20553         Tests for module 'acos'.
20554         * modules/acos-tests: New file.
20555         * tests/test-acos.c: New file.
20556
20557 2010-01-24  Bruno Haible  <bruno@clisp.org>
20558
20559         Fix tests for common <math.h> functions.
20560         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20561         code snippet that references the function pointer, rather than merely
20562         calling the function. Substitute the FUNC_LIBM variable.
20563         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20564         * modules/acos (configure.ac): Likewise.
20565         * modules/asin (configure.ac): Likewise.
20566         * modules/atan (configure.ac): Likewise.
20567         * modules/atan2 (configure.ac): Likewise.
20568         * modules/cbrt (configure.ac): Likewise.
20569         * modules/copysign (configure.ac): Likewise.
20570         * modules/cos (configure.ac): Likewise.
20571         * modules/cosh (configure.ac): Likewise.
20572         * modules/erf (configure.ac): Likewise.
20573         * modules/erfc (configure.ac): Likewise.
20574         * modules/exp (configure.ac): Likewise.
20575         * modules/fabs (configure.ac): Likewise.
20576         * modules/fmod (configure.ac): Likewise.
20577         * modules/hypot (configure.ac): Likewise.
20578         * modules/j0 (configure.ac): Likewise.
20579         * modules/j1 (configure.ac): Likewise.
20580         * modules/jn (configure.ac): Likewise.
20581         * modules/ldexp (configure.ac): Likewise.
20582         * modules/lgamma (configure.ac): Likewise.
20583         * modules/log (configure.ac): Likewise.
20584         * modules/log10 (configure.ac): Likewise.
20585         * modules/log1p (configure.ac): Likewise.
20586         * modules/logb (configure.ac): Likewise.
20587         * modules/modf (configure.ac): Likewise.
20588         * modules/nextafter (configure.ac): Likewise.
20589         * modules/pow (configure.ac): Likewise.
20590         * modules/remainder (configure.ac): Likewise.
20591         * modules/rint (configure.ac): Likewise.
20592         * modules/sin (configure.ac): Likewise.
20593         * modules/sinh (configure.ac): Likewise.
20594         * modules/tan (configure.ac): Likewise.
20595         * modules/tanh (configure.ac): Likewise.
20596         * modules/y0 (configure.ac): Likewise.
20597         * modules/y1 (configure.ac): Likewise.
20598         * modules/yn (configure.ac): Likewise.
20599
20600 2010-01-24  Bruno Haible  <bruno@clisp.org>
20601
20602         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20603         * tests/test-acosl.c (x): New variable.
20604         (main): Store argument in x and fetch it from x.
20605         * tests/test-asinl.c (x): New variable.
20606         (main): Store argument in x and fetch it from x.
20607         * tests/test-atanl.c (x): New variable.
20608         (main): Store argument in x and fetch it from x.
20609         * tests/test-cosl.c (x): New variable.
20610         (main): Store argument in x and fetch it from x.
20611         * tests/test-expl.c (x): New variable.
20612         (main): Store argument in x and fetch it from x.
20613         * tests/test-logl.c (x): New variable.
20614         (main): Store argument in x and fetch it from x.
20615         * tests/test-sinl.c (x): New variable.
20616         (main): Store argument in x and fetch it from x.
20617         * tests/test-sqrtl.c (x): New variable.
20618         (main): Store argument in x and fetch it from x.
20619         * tests/test-tanl.c (x): New variable.
20620         (main): Store argument in x and fetch it from x.
20621
20622 2010-01-24  Bruno Haible  <bruno@clisp.org>
20623
20624         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20625         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20626         assignments to the initial TESTS_ENVIRONMENT.
20627         * doc/gnulib.texi (Unit test modules): Document it.
20628         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20629         TESTS_ENVIRONMENT.
20630         * modules/btowc-tests (Makefile.am): Likewise.
20631         * modules/c-stack-tests (Makefile.am): Likewise.
20632         * modules/c-strcase-tests (Makefile.am): Likewise.
20633         * modules/copy-file-tests (Makefile.am): Likewise.
20634         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20635         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20636         * modules/mbrtowc-tests (Makefile.am): Likewise.
20637         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20638         * modules/mbscasestr-tests (Makefile.am): Likewise.
20639         * modules/mbschr-tests (Makefile.am): Likewise.
20640         * modules/mbscspn-tests (Makefile.am): Likewise.
20641         * modules/mbsinit-tests (Makefile.am): Likewise.
20642         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20643         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20644         * modules/mbspbrk-tests (Makefile.am): Likewise.
20645         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20646         * modules/mbsrchr-tests (Makefile.am): Likewise.
20647         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20648         * modules/mbsspn-tests (Makefile.am): Likewise.
20649         * modules/mbsstr-tests (Makefile.am): Likewise.
20650         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20651         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20652         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20653         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20654         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20655         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20656         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20657         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20658         * modules/wcrtomb-tests (Makefile.am): Likewise.
20659         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20660         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20661         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20662         assignments from TESTS_ENVIRONMENT.
20663         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20664         augmentation.
20665         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20666         * modules/atexit-tests (Makefile.am): Likewise.
20667         * modules/binary-io-tests (Makefile.am): Likewise.
20668         * modules/closein-tests (Makefile.am): Likewise.
20669         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20670         * modules/exclude-tests (Makefile.am): Likewise.
20671         * modules/fflush-tests (Makefile.am): Likewise.
20672         * modules/fpending-tests (Makefile.am): Likewise.
20673         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20674         * modules/freadahead-tests (Makefile.am): Likewise.
20675         * modules/freadptr-tests (Makefile.am): Likewise.
20676         * modules/freadseek-tests (Makefile.am): Likewise.
20677         * modules/fseek-tests (Makefile.am): Likewise.
20678         * modules/fseeko-tests (Makefile.am): Likewise.
20679         * modules/ftell-tests (Makefile.am): Likewise.
20680         * modules/ftello-tests (Makefile.am): Likewise.
20681         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20682         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20683         * modules/lseek-tests (Makefile.am): Likewise.
20684         * modules/parse-duration-tests (Makefile.am): Likewise.
20685         * modules/perror-tests (Makefile.am): Likewise.
20686         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20687         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20688         * modules/pipe-tests (Makefile.am): Likewise.
20689         * modules/pread-tests (Makefile.am): Likewise.
20690         * modules/printf-posix-tests (Makefile.am): Likewise.
20691         * modules/select-tests (Makefile.am): Likewise.
20692         * modules/sigpipe-tests (Makefile.am): Likewise.
20693         * modules/tsearch-tests (Makefile.am): Likewise.
20694         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20695         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20696         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20697         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20698         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20699         * modules/version-etc-tests (Makefile.am): Likewise.
20700         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20701         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20702         * modules/xalloc-die-tests (Makefile.am): Likewise.
20703         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20704         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20705         * modules/xstrtol-tests (Makefile.am): Likewise.
20706         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20707         * modules/yesno-tests (Makefile.am): Likewise.
20708         Suggested by Jim Meyering.
20709
20710 2010-01-24  Bruno Haible  <bruno@clisp.org>
20711
20712         More documentation.
20713         * doc/gnulib.texi (Writing modules): New chapter.
20714         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20715         the new chapter.
20716
20717 2010-01-24  Jim Meyering  <meyering@redhat.com>
20718
20719         maint.mk: do not prepend "./" after filtering
20720         * top/maint.mk (_prepend_srcdir_prefix): New variable
20721         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20722         "./" when $(srcdir) is ".".
20723
20724         define STREQ(a,b) consistently, removing useless parentheses
20725         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20726         since the only risk is that "a" or "b" contains an unparenthesized
20727         comma, but if either did that, STREQ would have 3 or more arguments.
20728         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20729         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20730         * lib/hash-triple.c (STREQ): Likewise.
20731         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20732         * lib/getugroups.c (STREQ): Likewise.
20733
20734 2010-01-23  Jim Meyering  <meyering@redhat.com>
20735
20736         maint.mk: fix syntax-check in a non-srcdir build directory
20737         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20738         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20739
20740 2010-01-22  Jim Meyering  <meyering@redhat.com>
20741
20742         userspec: add unit tests
20743         * tests/test-userspec.c: New file.
20744         * modules/userspec-tests: Likewise.
20745
20746 2010-01-21  Jim Meyering  <meyering@redhat.com>
20747
20748         maint.mk: handle source file names containing "." robustly
20749         * top/maint.mk (_dot_escaped_srcdir): Define.
20750         (VC_LIST): Use it in LHS of sed substitution.
20751
20752 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20753
20754         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20755         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20756         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20757         from a non-srcdir build.
20758
20759 2010-01-20  Eric Blake  <ebb9@byu.net>
20760
20761         warn-on-use: use instead of link-warning
20762         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20763         * modules/unistd (Depends-on, Makefile.am): Likewise.
20764         * modules/arpa_inet (Depends-on): Replace link-warning with
20765         warn-on-use.
20766         (Makefile.am): Update rules accordingly.
20767         * modules/ctype (Depends-on, Makefile.am): Likewise.
20768         * modules/dirent (Depends-on, Makefile.am): Likewise.
20769         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20770         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20771         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20772         * modules/locale (Depends-on, Makefile.am): Likewise.
20773         * modules/math (Depends-on, Makefile.am): Likewise.
20774         * modules/search (Depends-on, Makefile.am): Likewise.
20775         * modules/signal (Depends-on, Makefile.am): Likewise.
20776         * modules/spawn (Depends-on, Makefile.am): Likewise.
20777         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20778         * modules/string (Depends-on, Makefile.am): Likewise.
20779         * modules/strings (Depends-on, Makefile.am): Likewise.
20780         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20781         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20782         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20783         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20784         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20785         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20786         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20787         * modules/wchar (Depends-on, Makefile.am): Likewise.
20788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20789         should be poisoned.
20790         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20791         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20792         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20793         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20794         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20795         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20796         * m4/math_h.m4 (gl_MATH_H): Likewise.
20797         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20798         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20799         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20800         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20801         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20802         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20803         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20804         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20805         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20806         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20807         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20809         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20810         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20811         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20812         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20813         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20814         GL_LINK_WARNING.
20815         * lib/ctype.in.h: Likewise.
20816         * lib/dirent.in.h: Likewise.
20817         * lib/fcntl.in.h: Likewise.
20818         * lib/inttypes.in.h: Likewise.
20819         * lib/langinfo.in.h: Likewise.
20820         * lib/locale.in.h: Likewise.
20821         * lib/math.in.h: Likewise.
20822         * lib/search.in.h: Likewise.
20823         * lib/signal.in.h: Likewise.
20824         * lib/spawn.in.h: Likewise.
20825         * lib/stdio.in.h: Likewise.
20826         * lib/stdlib.in.h: Likewise.
20827         * lib/string.in.h: Likewise.
20828         * lib/strings.in.h: Likewise.
20829         * lib/sys_file.in.h: Likewise.
20830         * lib/sys_ioctl.in.h: Likewise.
20831         * lib/sys_select.in.h: Likewise.
20832         * lib/sys_socket.in.h: Likewise.
20833         * lib/sys_stat.in.h: Likewise.
20834         * lib/sys_times.in.h: Likewise.
20835         * lib/sys_utsname.in.h: Likewise.
20836         * lib/unistd.in.h: Likewise.
20837         * lib/wchar.in.h: Likewise.
20838
20839 2010-01-20  Bruno Haible  <bruno@clisp.org>
20840
20841         Avoid duplicate -lm.
20842         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20843         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20844         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20845         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20846         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20847         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20848         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20849         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20850         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20851         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20852         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20853         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20854         Reported by Paolo Bonzini.
20855
20856 2010-01-19  Bruno Haible  <bruno@clisp.org>
20857
20858         langinfo, nl_langinfo: Relicense under LGPLv2+.
20859         * modules/langinfo (License): Change to LGPLv2+.
20860         * modules/nl_langinfo (License): Likewise.
20861         Patch by David Lutterkort <lutter@redhat.com>.
20862
20863 2010-01-19  Bruno Haible  <bruno@clisp.org>
20864
20865         Avoid compilation error with cc on OSF/1 5.1.
20866         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20867         statement, not before.
20868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20869
20870 2010-01-18  Bruno Haible  <bruno@clisp.org>
20871
20872         Avoid a link error due to the __printf__ symbol.
20873         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20874         and 2.6.x.
20875         (__format__, __printf__): Remove definitions.
20876         * lib/argp-fmtstream.h: Likewise.
20877         * lib/argp.h: Likewise.
20878         * lib/error.h: Likewise.
20879         * lib/vasnprintf.h: Likewise.
20880         * lib/xprintf.h: Likewise.
20881         * lib/xvasprintf.h: Likewise.
20882         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20883
20884 2010-01-18  Bruno Haible  <bruno@clisp.org>
20885
20886         Tests for module 'tanl'.
20887         * modules/tanl-tests: New file.
20888         * tests/test-tanl.c: New file.
20889
20890         Tests for module 'sqrtl'.
20891         * modules/sqrtl-tests: New file.
20892         * tests/test-sqrtl.c: New file.
20893
20894         Tests for module 'sinl'.
20895         * modules/sinl-tests: New file.
20896         * tests/test-sinl.c: New file.
20897
20898         Tests for module 'logl'.
20899         * modules/logl-tests: New file.
20900         * tests/test-logl.c: New file.
20901
20902         Tests for module 'expl'.
20903         * modules/expl-tests: New file.
20904         * tests/test-expl.c: New file.
20905
20906         Tests for module 'cosl'.
20907         * modules/cosl-tests: New file.
20908         * tests/test-cosl.c: New file.
20909
20910         Tests for module 'atanl'.
20911         * modules/atanl-tests: New file.
20912         * tests/test-atanl.c: New file.
20913
20914         Tests for module 'asinl'.
20915         * modules/asinl-tests: New file.
20916         * tests/test-asinl.c: New file.
20917
20918         Tests for module 'acosl'.
20919         * modules/acosl-tests: New file.
20920         * tests/test-acosl.c: New file.
20921
20922         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20923         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20924         tanl): Use the standard gnulib idiom.
20925         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20926         * lib/sinl.c: Likewise.
20927         * lib/tanl.c: Don't include trigl.c.
20928         (kernel_tanl): Make static.
20929         * lib/sincosl.c: Include trigl.h first.
20930         * lib/trigl.c: Likewise.
20931         * m4/acosl.m4: New file.
20932         * m4/asinl.m4: New file.
20933         * m4/atanl.m4: New file.
20934         * m4/cosl.m4: New file.
20935         * m4/expl.m4: New file.
20936         * m4/logl.m4: New file.
20937         * m4/sinl.m4: New file.
20938         * m4/sqrtl.m4: New file.
20939         * m4/tanl.m4: New file.
20940         * m4/mathl.m4: Remove file.
20941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20942         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20943         Don't initialize GNULIB_MATHL.
20944         * modules/acosl: New file.
20945         * modules/asinl: New file.
20946         * modules/atanl: New file.
20947         * modules/cosl: New file.
20948         * modules/expl: New file.
20949         * modules/logl: New file.
20950         * modules/sinl: New file.
20951         * modules/sqrtl: New file.
20952         * modules/tanl: New file.
20953         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20954         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20955         substitute GNULIB_MATHL.
20956         * modules/mathl: Rewritten.
20957         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20958         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20959         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20960         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20961         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20962         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20963         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20964         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20965         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20966
20967 2010-01-18  Bruno Haible  <bruno@clisp.org>
20968
20969         sqrt: Make gl_FUNC_SQRT requirable.
20970         * m4/sqrt.m4: New file.
20971         * modules/sqrt (Files): Add it.
20972         (configure.ac): Invoke gl_FUNC_SQRT.
20973
20974 2010-01-18  Bruno Haible  <bruno@clisp.org>
20975
20976         New modules for common <math.h> functions.
20977         * m4/mathfunc.m4: New file.
20978         * modules/acos: New file.
20979         * modules/asin: New file.
20980         * modules/atan: New file.
20981         * modules/atan2: New file.
20982         * modules/cbrt: New file.
20983         * modules/copysign: New file.
20984         * modules/cos: New file.
20985         * modules/cosh: New file.
20986         * modules/erf: New file.
20987         * modules/erfc: New file.
20988         * modules/exp: New file.
20989         * modules/fabs: New file.
20990         * modules/fmod: New file.
20991         * modules/hypot: New file.
20992         * modules/j0: New file.
20993         * modules/j1: New file.
20994         * modules/jn: New file.
20995         * modules/ldexp: New file.
20996         * modules/lgamma: New file.
20997         * modules/log: New file.
20998         * modules/log10: New file.
20999         * modules/log1p: New file.
21000         * modules/logb: New file.
21001         * modules/modf: New file.
21002         * modules/nextafter: New file.
21003         * modules/pow: New file.
21004         * modules/remainder: New file.
21005         * modules/rint: New file.
21006         * modules/sin: New file.
21007         * modules/sinh: New file.
21008         * modules/sqrt: New file.
21009         * modules/tan: New file.
21010         * modules/tanh: New file.
21011         * modules/y0: New file.
21012         * modules/y1: New file.
21013         * modules/yn: New file.
21014         * doc/posix-functions/acos.texi: Mention the 'acos' module.
21015         * doc/posix-functions/asin.texi: Mention the 'asin' module.
21016         * doc/posix-functions/atan.texi: Mention the 'atan' module.
21017         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
21018         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
21019         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
21020         * doc/posix-functions/cos.texi: Mention the 'cos' module.
21021         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
21022         * doc/posix-functions/erf.texi: Mention the 'erf' module.
21023         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
21024         * doc/posix-functions/exp.texi: Mention the 'exp' module.
21025         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
21026         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
21027         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
21028         * doc/posix-functions/j0.texi: Mention the 'j0' module.
21029         * doc/posix-functions/j1.texi: Mention the 'j1' module.
21030         * doc/posix-functions/jn.texi: Mention the 'jn' module.
21031         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
21032         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
21033         * doc/posix-functions/log.texi: Mention the 'log' module.
21034         * doc/posix-functions/log10.texi: Mention the 'log10' module.
21035         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
21036         * doc/posix-functions/logb.texi: Mention the 'logb' module.
21037         * doc/posix-functions/modf.texi: Mention the 'modf' module.
21038         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
21039         * doc/posix-functions/pow.texi: Mention the 'pow' module.
21040         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
21041         * doc/posix-functions/rint.texi: Mention the 'rint' module.
21042         * doc/posix-functions/sin.texi: Mention the 'sin' module.
21043         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
21044         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
21045         * doc/posix-functions/tan.texi: Mention the 'tan' module.
21046         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
21047         * doc/posix-functions/y0.texi: Mention the 'y0' module.
21048         * doc/posix-functions/y1.texi: Mention the 'y1' module.
21049         * doc/posix-functions/yn.texi: Mention the 'yn' module.
21050
21051 2010-01-18  Jim Meyering  <meyering@redhat.com>
21052
21053         ignore-value: relax license to LGPLv2+
21054         * modules/ignore-value (License): Relax to LGPLv2+.
21055
21056         getdate: don't leak when TZ contains two or more '"'s
21057         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
21058         double quote in TZ after the first one.
21059
21060         readtokens: do not leak internal token_lengths buffer
21061         * lib/readtokens.c (readtokens): Free the local, lengths,
21062         when the supplied "token_lengths" parameter is NULL.
21063
21064 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21065
21066         Fix a couple of missing LIBTHREAD link failures on AIX.
21067         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
21068         $(LIBTHREAD).
21069         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
21070
21071         Link test-poll against INET_PTON_LIB.
21072         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
21073         for inet_pton on Solaris 10.
21074
21075 2010-01-17  Bruno Haible  <bruno@clisp.org>
21076
21077         unistdio/*-sprintf: Fix typo in module description.
21078         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
21079         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
21080         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
21081         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
21082         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
21083         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
21084         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
21085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21086
21087 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21088
21089         gnulib-tool: fix filelist for AIX, HP-UX ksh.
21090         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
21091         variables in shell case patterns, for AIX and HP-UX ksh.
21092
21093         Split large sed scripts, for HP-UX sed.
21094         * modules/stdio: Split sed scripts around 50 sed commands,
21095         to avoid HP-UX limit of 99 commands, in the near future.
21096         * modules/string: Likewise.
21097         * modules/unistd: Likewise.
21098
21099         gnulib-tool: avoid writing in the current directory.
21100         * gnulib-tool (func_emit_lib_Makefile_am)
21101         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
21102         not in the current directory, so concurrent gnulib-tool
21103         instances do not interfere.
21104
21105 2010-01-16  Jim Meyering  <meyering@redhat.com>
21106
21107         doc: update users.txt
21108         * users.txt: Add grep.
21109         (diffutils, gzip): Update URLs.
21110
21111 2010-01-12  Bruno Haible  <bruno@clisp.org>
21112
21113         posix_spawn: Avoid test failure on Cygwin.
21114         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
21115         characters.
21116         Reported by Simon Josefsson.
21117
21118 2010-01-12  Bruno Haible  <bruno@clisp.org>
21119
21120         * tests/test-cond.c (main): When skipping the test, show the reason.
21121
21122 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21123
21124         * lib/striconv.c (str_cd_iconv): Avoid if before free.
21125
21126 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21127
21128         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
21129         VC_LIST_ALWAYS_EXCLUDE_REGEX.
21130
21131 2010-01-12  Eric Blake  <ebb9@byu.net>
21132
21133         build: guarantee AS_VAR_IF
21134         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
21135         (gl_AS_VAR_IF): Move...
21136         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
21137         Reported by Simon Josefsson.
21138
21139 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21140
21141         * lib/stdio.in.h: Fix typo.
21142
21143 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21144
21145         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21146         libgpg-error.
21147
21148 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21149
21150         * tests/test-xalloc-die.sh: Use $EXEEXT.
21151
21152 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21153             Bruno Haible  <bruno@clisp.org>
21154
21155         getlogin, getlogin_r: Avoid test failure.
21156         * tests/test-getlogin.c: Include <stdio.h>.
21157         (main): Skip the test when the function fails because stdin is not a
21158         tty.
21159         * tests/test-getlogin_r.c: Include <stdio.h>.
21160         (main): Skip the test when the function fails because stdin is not a
21161         tty.
21162
21163 2010-01-11  Eric Blake  <ebb9@byu.net>
21164
21165         tests: avoid more large file warnings
21166         * tests/test-fflush.c: Avoid warning about ftell use.
21167         * tests/test-fseek.c: Avoid warning about fseek use.
21168
21169 2010-01-10  Bruno Haible  <bruno@clisp.org>
21170
21171         nproc: Work better on Linux when /proc and /sys are not mounted.
21172         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
21173         as lower bound when, on glibc/Linux systems,
21174         sysconf (_SC_NPROCESSORS_CONF) returns 1.
21175         Suggested by Pádraig Brady <P@draigbrady.com>.
21176         Reported by Dmitry V. Levin <ldv@altlinux.org>.
21177
21178         nproc: Refactor.
21179         * lib/nproc.c (num_processors_via_affinity_mask): New function,
21180         extracted from num_processors.
21181         (num_processors): Call it.
21182
21183 2010-01-11  Jim Meyering  <meyering@redhat.com>
21184
21185         utimecmp: avoid new warning from upcoming gcc-4.5.0
21186         * lib/utimecmp.c (BILLION): Define using #define rather than an
21187         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
21188
21189 2010-01-11  Eric Blake  <ebb9@byu.net>
21190
21191         math: add portability warnings for classification macros
21192         * modules/math (Depends-on): Add warn-on-use.
21193         (Makefile.am): Provide new substitutions.
21194         * m4/math_h.m4 (gl_MATH_H): Require inline.
21195         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
21196         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
21197         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
21198         implement warnings.
21199
21200         unistd: warn on use of environ without module
21201         * modules/unistd (Depends-on): Add warn-on-use.
21202         (Makefile.am): Provide new substitutions.
21203         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
21204         * lib/unistd.in.h (environ): Wrap with a warning helper function.
21205
21206         stdio: warn on suspicious uses
21207         * modules/stdio (Depends-on): Add warn-on-use.
21208         (Makefile.am): Provide new substitutions.
21209         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
21210         fseeko.
21211         * lib/stdio.in.h (gets): Always warn on use.
21212         (fseek, ftell): Adjust when warnings are issued, and honor
21213         _GL_NO_LARGE_FILES as a way to silence the warning.
21214         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
21215         any warning about large file offsets.
21216         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
21217         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
21218         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
21219         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
21220         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
21221         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
21222         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
21223         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
21224
21225         warn-on-use: new module
21226         * modules/warn-on-use: New file.
21227         * build-aux/warn-on-use.h: Likewise.
21228         * m4/warn-on-use.m4: Likewise.
21229         * MODULES.html.sh (Support for building): Mention it.
21230
21231 2010-01-10  Bruno Haible  <bruno@clisp.org>
21232
21233         Tests for module 'unistr/u32-strdup'.
21234         * modules/unistr/u32-strdup-tests: New file.
21235         * tests/unistr/test-u32-strdup.c: New file.
21236
21237         Tests for module 'unistr/u16-strdup'.
21238         * modules/unistr/u16-strdup-tests: New file.
21239         * tests/unistr/test-u16-strdup.c: New file.
21240
21241         Tests for module 'unistr/u8-strdup'.
21242         * modules/unistr/u8-strdup-tests: New file.
21243         * tests/unistr/test-u8-strdup.c: New file.
21244         * tests/unistr/test-strdup.h: New file.
21245
21246         Tests for module 'unistr/u32-strncmp'.
21247         * modules/unistr/u32-strncmp-tests: New file.
21248         * tests/unistr/test-u32-strncmp.c: New file.
21249
21250         Tests for module 'unistr/u16-strncmp'.
21251         * modules/unistr/u16-strncmp-tests: New file.
21252         * tests/unistr/test-u16-strncmp.c: New file.
21253
21254         Tests for module 'unistr/u8-strncmp'.
21255         * modules/unistr/u8-strncmp-tests: New file.
21256         * tests/unistr/test-u8-strncmp.c: New file.
21257         * tests/unistr/test-strncmp.h: New file.
21258
21259         Tests for module 'unistr/u32-strcoll'.
21260         * modules/unistr/u32-strcoll-tests: New file.
21261         * tests/unistr/test-u32-strcoll.c: New file.
21262
21263         Tests for module 'unistr/u16-strcoll'.
21264         * modules/unistr/u16-strcoll-tests: New file.
21265         * tests/unistr/test-u16-strcoll.c: New file.
21266
21267         Tests for module 'unistr/u8-strcoll'.
21268         * modules/unistr/u8-strcoll-tests: New file.
21269         * tests/unistr/test-u8-strcoll.c: New file.
21270
21271         Tests for module 'unistr/u32-strcmp'.
21272         * modules/unistr/u32-strcmp-tests: New file.
21273         * tests/unistr/test-u32-strcmp.c: New file.
21274         * tests/unistr/test-u32-strcmp.h: New file.
21275
21276         Tests for module 'unistr/u16-strcmp'.
21277         * modules/unistr/u16-strcmp-tests: New file.
21278         * tests/unistr/test-u16-strcmp.c: New file.
21279         * tests/unistr/test-u16-strcmp.h: New file.
21280
21281         Tests for module 'unistr/u8-strcmp'.
21282         * modules/unistr/u8-strcmp-tests: New file.
21283         * tests/unistr/test-u8-strcmp.c: New file.
21284         * tests/unistr/test-u8-strcmp.h: New file.
21285         * tests/unistr/test-strcmp.h: New file.
21286
21287         Tests for module 'unistr/u32-strncat'.
21288         * modules/unistr/u32-strncat-tests: New file.
21289         * tests/unistr/test-u32-strncat.c: New file.
21290
21291         Tests for module 'unistr/u16-strncat'.
21292         * modules/unistr/u16-strncat-tests: New file.
21293         * tests/unistr/test-u16-strncat.c: New file.
21294
21295         Tests for module 'unistr/u8-strncat'.
21296         * modules/unistr/u8-strncat-tests: New file.
21297         * tests/unistr/test-u8-strncat.c: New file.
21298         * tests/unistr/test-strncat.h: New file.
21299
21300         Tests for module 'unistr/u32-strcat'.
21301         * modules/unistr/u32-strcat-tests: New file.
21302         * tests/unistr/test-u32-strcat.c: New file.
21303
21304         Tests for module 'unistr/u16-strcat'.
21305         * modules/unistr/u16-strcat-tests: New file.
21306         * tests/unistr/test-u16-strcat.c: New file.
21307
21308         Tests for module 'unistr/u8-strcat'.
21309         * modules/unistr/u8-strcat-tests: New file.
21310         * tests/unistr/test-u8-strcat.c: New file.
21311         * tests/unistr/test-strcat.h: New file.
21312
21313         Tests for module 'unistr/u32-stpncpy'.
21314         * modules/unistr/u32-stpncpy-tests: New file.
21315         * tests/unistr/test-u32-stpncpy.c: New file.
21316
21317         Tests for module 'unistr/u16-stpncpy'.
21318         * modules/unistr/u16-stpncpy-tests: New file.
21319         * tests/unistr/test-u16-stpncpy.c: New file.
21320
21321         Tests for module 'unistr/u8-stpncpy'.
21322         * modules/unistr/u8-stpncpy-tests: New file.
21323         * tests/unistr/test-u8-stpncpy.c: New file.
21324         * tests/unistr/test-stpncpy.h: New file.
21325
21326         Tests for module 'unistr/u32-strncpy'.
21327         * modules/unistr/u32-strncpy-tests: New file.
21328         * tests/unistr/test-u32-strncpy.c: New file.
21329
21330         Tests for module 'unistr/u16-strncpy'.
21331         * modules/unistr/u16-strncpy-tests: New file.
21332         * tests/unistr/test-u16-strncpy.c: New file.
21333
21334         Tests for module 'unistr/u8-strncpy'.
21335         * modules/unistr/u8-strncpy-tests: New file.
21336         * tests/unistr/test-u8-strncpy.c: New file.
21337         * tests/unistr/test-strncpy.h: New file.
21338
21339         Tests for module 'unistr/u32-stpcpy'.
21340         * modules/unistr/u32-stpcpy-tests: New file.
21341         * tests/unistr/test-u32-stpcpy.c: New file.
21342
21343         Tests for module 'unistr/u16-stpcpy'.
21344         * modules/unistr/u16-stpcpy-tests: New file.
21345         * tests/unistr/test-u16-stpcpy.c: New file.
21346
21347         Tests for module 'unistr/u8-stpcpy'.
21348         * modules/unistr/u8-stpcpy-tests: New file.
21349         * tests/unistr/test-u8-stpcpy.c: New file.
21350         * tests/unistr/test-stpcpy.h: New file.
21351
21352         Tests for module 'unistr/u32-strcpy'.
21353         * modules/unistr/u32-strcpy-tests: New file.
21354         * tests/unistr/test-u32-strcpy.c: New file.
21355
21356         Tests for module 'unistr/u16-strcpy'.
21357         * modules/unistr/u16-strcpy-tests: New file.
21358         * tests/unistr/test-u16-strcpy.c: New file.
21359
21360         Tests for module 'unistr/u8-strcpy'.
21361         * modules/unistr/u8-strcpy-tests: New file.
21362         * tests/unistr/test-u8-strcpy.c: New file.
21363         * tests/unistr/test-strcpy.h: New file.
21364
21365         Tests for module 'unistr/u32-strnlen'.
21366         * modules/unistr/u32-strnlen-tests: New file.
21367         * tests/unistr/test-u32-strnlen.c: New file.
21368
21369         Tests for module 'unistr/u16-strnlen'.
21370         * modules/unistr/u16-strnlen-tests: New file.
21371         * tests/unistr/test-u16-strnlen.c: New file.
21372
21373         Tests for module 'unistr/u8-strnlen'.
21374         * modules/unistr/u8-strnlen-tests: New file.
21375         * tests/unistr/test-u8-strnlen.c: New file.
21376         * tests/unistr/test-strnlen.h: New file.
21377
21378         Tests for module 'unistr/u32-strlen'.
21379         * modules/unistr/u32-strlen-tests: New file.
21380         * tests/unistr/test-u32-strlen.c: New file.
21381
21382         Tests for module 'unistr/u16-strlen'.
21383         * modules/unistr/u16-strlen-tests: New file.
21384         * tests/unistr/test-u16-strlen.c: New file.
21385
21386         Tests for module 'unistr/u8-strlen'.
21387         * modules/unistr/u8-strlen-tests: New file.
21388         * tests/unistr/test-u8-strlen.c: New file.
21389
21390         Tests for module 'unistr/u32-prev'.
21391         * modules/unistr/u32-prev-tests: New file.
21392         * tests/unistr/test-u32-prev.c: New file.
21393
21394         Tests for module 'unistr/u16-prev'.
21395         * modules/unistr/u16-prev-tests: New file.
21396         * tests/unistr/test-u16-prev.c: New file.
21397
21398         Tests for module 'unistr/u8-prev'.
21399         * modules/unistr/u8-prev-tests: New file.
21400         * tests/unistr/test-u8-prev.c: New file.
21401
21402         Tests for module 'unistr/u32-next'.
21403         * modules/unistr/u32-next-tests: New file.
21404         * tests/unistr/test-u32-next.c: New file.
21405
21406         Tests for module 'unistr/u16-next'.
21407         * modules/unistr/u16-next-tests: New file.
21408         * tests/unistr/test-u16-next.c: New file.
21409
21410         Tests for module 'unistr/u8-next'.
21411         * modules/unistr/u8-next-tests: New file.
21412         * tests/unistr/test-u8-next.c: New file.
21413
21414         Tests for module 'unistr/u32-strmbtouc'.
21415         * modules/unistr/u32-strmbtouc-tests: New file.
21416         * tests/unistr/test-u32-strmbtouc.c: New file.
21417
21418         Tests for module 'unistr/u16-strmbtouc'.
21419         * modules/unistr/u16-strmbtouc-tests: New file.
21420         * tests/unistr/test-u16-strmbtouc.c: New file.
21421
21422         Tests for module 'unistr/u8-strmbtouc'.
21423         * modules/unistr/u8-strmbtouc-tests: New file.
21424         * tests/unistr/test-u8-strmbtouc.c: New file.
21425
21426         Tests for module 'unistr/u32-strmblen'.
21427         * modules/unistr/u32-strmblen-tests: New file.
21428         * tests/unistr/test-u32-strmblen.c: New file.
21429
21430         Tests for module 'unistr/u16-strmblen'.
21431         * modules/unistr/u16-strmblen-tests: New file.
21432         * tests/unistr/test-u16-strmblen.c: New file.
21433
21434         Tests for module 'unistr/u8-strmblen'.
21435         * modules/unistr/u8-strmblen-tests: New file.
21436         * tests/unistr/test-u8-strmblen.c: New file.
21437
21438         Tests for module 'unistr/u32-cpy-alloc'.
21439         * modules/unistr/u32-cpy-alloc-tests: New file.
21440         * tests/unistr/test-u32-cpy-alloc.c: New file.
21441
21442         Tests for module 'unistr/u16-cpy-alloc'.
21443         * modules/unistr/u16-cpy-alloc-tests: New file.
21444         * tests/unistr/test-u16-cpy-alloc.c: New file.
21445
21446         Tests for module 'unistr/u8-cpy-alloc'.
21447         * modules/unistr/u8-cpy-alloc-tests: New file.
21448         * tests/unistr/test-u8-cpy-alloc.c: New file.
21449         * tests/unistr/test-cpy-alloc.h: New file.
21450
21451         Tests for module 'unistr/u32-mbsnlen'.
21452         * modules/unistr/u32-mbsnlen-tests: New file.
21453         * tests/unistr/test-u32-mbsnlen.c: New file.
21454
21455         Tests for module 'unistr/u16-mbsnlen'.
21456         * modules/unistr/u16-mbsnlen-tests: New file.
21457         * tests/unistr/test-u16-mbsnlen.c: New file.
21458
21459         Tests for module 'unistr/u8-mbsnlen'.
21460         * modules/unistr/u8-mbsnlen-tests: New file.
21461         * tests/unistr/test-u8-mbsnlen.c: New file.
21462
21463         Tests for module 'unistr/u32-chr'.
21464         * modules/unistr/u32-chr-tests: New file.
21465         * tests/unistr/test-u32-chr.c: New file.
21466
21467         Tests for module 'unistr/u16-chr'.
21468         * modules/unistr/u16-chr-tests: New file.
21469         * tests/unistr/test-u16-chr.c: New file.
21470
21471         Tests for module 'unistr/u8-chr'.
21472         * modules/unistr/u8-chr-tests: New file.
21473         * tests/unistr/test-u8-chr.c: New file.
21474         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21475
21476         Tests for module 'unistr/u32-cmp2'.
21477         * modules/unistr/u32-cmp2-tests: New file.
21478         * tests/unistr/test-u32-cmp2.c: New file.
21479
21480         Tests for module 'unistr/u16-cmp2'.
21481         * modules/unistr/u16-cmp2-tests: New file.
21482         * tests/unistr/test-u16-cmp2.c: New file.
21483
21484         Tests for module 'unistr/u8-cmp2'.
21485         * modules/unistr/u8-cmp2-tests: New file.
21486         * tests/unistr/test-u8-cmp2.c: New file.
21487         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21488
21489         Tests for module 'unistr/u32-cmp'.
21490         * modules/unistr/u32-cmp-tests: New file.
21491         * tests/unistr/test-u32-cmp.c: New file.
21492
21493         Tests for module 'unistr/u16-cmp'.
21494         * modules/unistr/u16-cmp-tests: New file.
21495         * tests/unistr/test-u16-cmp.c: New file.
21496
21497         Tests for module 'unistr/u8-cmp'.
21498         * modules/unistr/u8-cmp-tests: New file.
21499         * tests/unistr/test-u8-cmp.c: New file.
21500         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21501
21502         Tests for module 'unistr/u32-set'.
21503         * modules/unistr/u32-set-tests: New file.
21504         * tests/unistr/test-u32-set.c: New file.
21505
21506         Tests for module 'unistr/u16-set'.
21507         * modules/unistr/u16-set-tests: New file.
21508         * tests/unistr/test-u16-set.c: New file.
21509
21510         Tests for module 'unistr/u8-set'.
21511         * modules/unistr/u8-set-tests: New file.
21512         * tests/unistr/test-u8-set.c: New file.
21513         * tests/unistr/test-set.h: New file.
21514
21515         Tests for module 'unistr/u32-move'.
21516         * modules/unistr/u32-move-tests: New file.
21517         * tests/unistr/test-u32-move.c: New file.
21518
21519         Tests for module 'unistr/u16-move'.
21520         * modules/unistr/u16-move-tests: New file.
21521         * tests/unistr/test-u16-move.c: New file.
21522
21523         Tests for module 'unistr/u8-move'.
21524         * modules/unistr/u8-move-tests: New file.
21525         * tests/unistr/test-u8-move.c: New file.
21526         * tests/unistr/test-move.h: New file.
21527
21528         Tests for module 'unistr/u32-cpy'.
21529         * modules/unistr/u32-cpy-tests: New file.
21530         * tests/unistr/test-u32-cpy.c: New file.
21531
21532         Tests for module 'unistr/u16-cpy'.
21533         * modules/unistr/u16-cpy-tests: New file.
21534         * tests/unistr/test-u16-cpy.c: New file.
21535
21536         Tests for module 'unistr/u8-cpy'.
21537         * modules/unistr/u8-cpy-tests: New file.
21538         * tests/unistr/test-u8-cpy.c: New file.
21539         * tests/unistr/test-cpy.h: New file.
21540
21541 2010-01-09  Bruno Haible  <bruno@clisp.org>
21542
21543         Tests for module 'unistr/u32-uctomb'.
21544         * modules/unistr/u32-uctomb-tests: New file.
21545         * tests/unistr/test-u32-uctomb.c: New file.
21546
21547         Tests for module 'unistr/u16-uctomb'.
21548         * modules/unistr/u16-uctomb-tests: New file.
21549         * tests/unistr/test-u16-uctomb.c: New file.
21550
21551         Tests for module 'unistr/u8-uctomb'.
21552         * modules/unistr/u8-uctomb-tests: New file.
21553         * tests/unistr/test-u8-uctomb.c: New file.
21554
21555         Tests for module 'unistr/u32-mbtoucr'.
21556         * modules/unistr/u32-mbtoucr-tests: New file.
21557         * tests/unistr/test-u32-mbtoucr.c: New file.
21558
21559         Tests for module 'unistr/u16-mbtoucr'.
21560         * modules/unistr/u16-mbtoucr-tests: New file.
21561         * tests/unistr/test-u16-mbtoucr.c: New file.
21562
21563         Tests for module 'unistr/u8-mbtoucr'.
21564         * modules/unistr/u8-mbtoucr-tests: New file.
21565         * tests/unistr/test-u8-mbtoucr.c: New file.
21566
21567         Tests for module 'unistr/u32-mbtouc'.
21568         * modules/unistr/u32-mbtouc-tests: New file.
21569         * tests/unistr/test-u32-mbtouc.c: New file.
21570
21571         Tests for module 'unistr/u16-mbtouc'.
21572         * modules/unistr/u16-mbtouc-tests: New file.
21573         * tests/unistr/test-u16-mbtouc.c: New file.
21574
21575         Tests for module 'unistr/u8-mbtouc'.
21576         * modules/unistr/u8-mbtouc-tests: New file.
21577         * tests/unistr/test-u8-mbtouc.c: New file.
21578
21579         Tests for module 'unistr/u32-mbtouc-unsafe'.
21580         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21581         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21582         * tests/unistr/test-u32-mbtouc.h: New file.
21583
21584         Tests for module 'unistr/u16-mbtouc-unsafe'.
21585         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21586         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21587         * tests/unistr/test-u16-mbtouc.h: New file.
21588
21589         Tests for module 'unistr/u8-mbtouc-unsafe'.
21590         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21591         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21592         * tests/unistr/test-u8-mbtouc.h: New file.
21593
21594         Tests for module 'unistr/u32-mblen'.
21595         * modules/unistr/u32-mblen-tests: New file.
21596         * tests/unistr/test-u32-mblen.c: New file.
21597
21598         Tests for module 'unistr/u16-mblen'.
21599         * modules/unistr/u16-mblen-tests: New file.
21600         * tests/unistr/test-u16-mblen.c: New file.
21601
21602         Tests for module 'unistr/u8-mblen'.
21603         * modules/unistr/u8-mblen-tests: New file.
21604         * tests/unistr/test-u8-mblen.c: New file.
21605
21606         Tests for module 'unistr/u32-to-u16'.
21607         * modules/unistr/u32-to-u16-tests: New file.
21608         * tests/unistr/test-u32-to-u16.c: New file.
21609
21610         Tests for module 'unistr/u32-to-u8'.
21611         * modules/unistr/u32-to-u8-tests: New file.
21612         * tests/unistr/test-u32-to-u8.c: New file.
21613
21614         Tests for module 'unistr/u16-to-u32'.
21615         * modules/unistr/u16-to-u32-tests: New file.
21616         * tests/unistr/test-u16-to-u32.c: New file.
21617
21618         Tests for module 'unistr/u16-to-u8'.
21619         * modules/unistr/u16-to-u8-tests: New file.
21620         * tests/unistr/test-u16-to-u8.c: New file.
21621
21622         Tests for module 'unistr/u8-to-u32'.
21623         * modules/unistr/u8-to-u32-tests: New file.
21624         * tests/unistr/test-u8-to-u32.c: New file.
21625
21626         Tests for module 'unistr/u8-to-u16'.
21627         * modules/unistr/u8-to-u16-tests: New file.
21628         * tests/unistr/test-u8-to-u16.c: New file.
21629
21630         Tests for module 'unistr/u32-check'.
21631         * modules/unistr/u32-check-tests: New file.
21632         * tests/unistr/test-u32-check.c: New file.
21633
21634         Tests for module 'unistr/u16-check'.
21635         * modules/unistr/u16-check-tests: New file.
21636         * tests/unistr/test-u16-check.c: New file.
21637
21638         Tests for module 'unistr/u8-check'.
21639         * modules/unistr/u8-check-tests: New file.
21640         * tests/unistr/test-u8-check.c: New file.
21641
21642         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21643         (category_equals): New function.
21644         (main): Add more tests.
21645         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21646
21647         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21648
21649 2010-01-10  Bruno Haible  <bruno@clisp.org>
21650
21651         unistr/u*-strcoll: Try harder to distinguish different strings.
21652         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21653         compare s1 and s2 to see if they are different.
21654
21655 2010-01-10  Bruno Haible  <bruno@clisp.org>
21656
21657         unistr/u*-stpncpy: Fix the return value.
21658         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21659         description of the return value consistent with stpncpy in glibc.
21660         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21661         written non-NUL unit.
21662
21663 2010-01-10  Bruno Haible  <bruno@clisp.org>
21664
21665         unistr/u*-next: Add missing dependencies.
21666         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21667         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21668         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21669
21670 2010-01-10  Bruno Haible  <bruno@clisp.org>
21671
21672         unistr/u8-mbsnlen: Fix return value for incomplete character.
21673         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21674         u8_mblen.
21675         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21676         Remove unistr/u8-mblen.
21677         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21678         u16_mblen.
21679         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21680         Remove unistr/u16-mblen.
21681
21682 2010-01-10  Bruno Haible  <bruno@clisp.org>
21683
21684         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21685         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21686         Reported by Brian Gough <bjg@gnu.org> and
21687         Chris Clayton <chris2553@googlemail.com> via
21688         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21689
21690 2010-01-09  Bruno Haible  <bruno@clisp.org>
21691
21692         unistr/u16-to-u32: Reject invalid input.
21693         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21694         u16_mbtouc.
21695         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21696         Remove unistr/u16-mbtouc.
21697
21698         unistr/u16-to-u8: Reject invalid input.
21699         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21700         u16_mbtouc.
21701         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21702         Remove unistr/u16-mbtouc.
21703
21704         unistr/u8-to-u32: Reject invalid input.
21705         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21706         u8_mbtouc.
21707         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21708         Remove unistr/u8-mbtouc.
21709
21710         unistr/u8-to-u16: Reject invalid input.
21711         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21712         u8_mbtouc.
21713         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21714         Remove unistr/u8-mbtouc.
21715
21716 2010-01-09  Bruno Haible  <bruno@clisp.org>
21717
21718         Tests for module 'getlogin'.
21719         * modules/getlogin-tests: New file.
21720         * tests/test-getlogin.c: New file.
21721
21722         New module 'getlogin'.
21723         * lib/unistd.in.h (getlogin): New declaration.
21724         * lib/getlogin.c: New file.
21725         * m4/getlogin.m4: New file.
21726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21727         HAVE_GETLOGIN.
21728         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21729         HAVE_GETLOGIN.
21730         * modules/getlogin: New file.
21731         * doc/posix-functions/getlogin.texi: Mention the new module.
21732         Reported by John W. Eaton <jwe@gnu.org>.
21733
21734 2010-01-09  Bruno Haible  <bruno@clisp.org>
21735
21736         getlogin_r: Support for native Windows.
21737         * lib/getlogin_r.c: Include <windows.h>
21738         (getlogin_r): Implement for native Windows.
21739         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21740         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21741         via John W. Eaton <jwe@gnu.org>.
21742
21743 2010-01-09  Bruno Haible  <bruno@clisp.org>
21744
21745         getlogin_r: Small fixes.
21746         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21747         succeeds.
21748         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21749         before testing whether getlogin_r is declared. No need to set
21750         HAVE_DECL_GETLOGIN_R to 1.
21751         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21752
21753 2010-01-09  Bruno Haible  <bruno@clisp.org>
21754
21755         * lib/unistd.in.h (getlogin_r): Add comment.
21756
21757 2010-01-09  Bruno Haible  <bruno@clisp.org>
21758
21759         Tests for module 'getlogin_r'.
21760         * modules/getlogin_r-tests: New file.
21761         * tests/test-getlogin_r.c: New file.
21762
21763 2010-01-09  Jim Meyering  <meyering@redhat.com>
21764
21765         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21766         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21767         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21768
21769 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21770
21771         * lib/dup2.c (rpl_dup2): Improve comment.
21772
21773 2010-01-08  Eric Blake  <ebb9@byu.net>
21774
21775         maint.mk: allow packages to add makefile @@ exceptions
21776         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21777         (sc_makefile_check): Rename...
21778         (sc_makefile_at_at_check): ...to this, and use hook.
21779
21780         dup2: work around mingw bug
21781         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21782         Reported by Simon Josefsson.
21783
21784 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21785
21786         glob: Fix C++ compilation.
21787         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21788         C++.
21789
21790 2010-01-07  Bruno Haible  <bruno@clisp.org>
21791
21792         Fix indentation of wctype.in.h, broken since 2007-01-06.
21793         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21794
21795 2010-01-07  Bruno Haible  <bruno@clisp.org>
21796
21797         mbslen: Avoid collision with system function.
21798         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21799         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21800         * m4/mbslen.m4: New file.
21801         * modules/mbslen (Files): Add it.
21802         (configure.ac): Invoke gl_MBSLEN.
21803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21804         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21805         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21806         via Ian Beckwith <ianb@erislabs.net>.
21807
21808 2010-01-07  Bruno Haible  <bruno@clisp.org>
21809
21810         dirent: Document the last fix.
21811         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21812
21813 2010-01-07  Bruno Haible  <bruno@clisp.org>
21814
21815         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21816         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21817         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21818         va_list are defined.
21819         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21820         Reported by Eric Blake.
21821
21822 2010-01-07  Bruno Haible  <bruno@clisp.org>
21823
21824         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21825         * modules/xlist (Depends-on): Add 'list',
21826         * modules/xoset (Depends-on): Add 'oset'.
21827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21828
21829 2010-01-07  Bruno Haible  <bruno@clisp.org>
21830
21831         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21832         * doc/posix-functions/strncasecmp.texi: Likewise.
21833
21834 2010-01-07  Bruno Haible  <bruno@clisp.org>
21835
21836         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21837
21838 2010-01-07  John W. Eaton  <jwe@octave.org>
21839
21840         wctype: allow C++ use
21841         * lib/wctype.in.h: Add extern "C" block for C++.
21842
21843 2010-01-06  Eric Blake  <ebb9@byu.net>
21844
21845         maint.mk: detect incorrect GFDL usage
21846         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21847
21848 2010-01-06  Jim Meyering  <meyering@redhat.com>
21849         and Eric Blake  <ebb9@byu.net>
21850
21851         maint.mk: ignore multi-line copyright in NEWS
21852         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21853
21854 2010-01-06  Eric Blake  <ebb9@byu.net>
21855
21856         select: add missing dependency
21857         * modules/select-tests (Depends-on): Move sockets dependency...
21858         * modules/select (Depends-on): ...here.
21859         Reported by Ian Beckwith.
21860
21861         doc: regenerate INSTALL
21862         * doc/INSTALL: Reflect recent autoconf update.
21863         * doc/INSTALL.ISO: Likewise.
21864         * doc/INSTALL.UTF-8: Likewise.
21865
21866         pread: fix compilation on glibc
21867         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21868         Reported by Ralf Wildenhues.
21869
21870         dirent: fix test failure
21871         * lib/dirent.in.h (includes): Guarantee ino_t.
21872         Reported by Ralf Wildenhues.
21873
21874 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21875
21876         linkat, renameat: avoid bad free
21877         * lib/at-func2.c (at_func2): Fix typo.
21878         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21879
21880 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21881
21882         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21883         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21884         to avoid failure of symlink test later.
21885
21886 2010-01-06  Eric Blake  <ebb9@byu.net>
21887
21888         stdio, unistd: guarantee ssize_t
21889         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21890         2008 are exposed when needed.
21891         * lib/stdio.in.h (includes): Likewise.
21892         Reported by Ralf Wildenhues.
21893
21894 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21895
21896         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21897         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21898         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21899
21900 2010-01-06  Jim Meyering  <meyering@redhat.com>
21901
21902         readtokens: this module *does* require xalloc.h
21903         It uses only functions that were omitted by the old syntax-check rule.
21904         * lib/readtokens.c: Include "xalloc.h" once again.
21905         * modules/readtokens (Depends-on): Add xalloc.
21906         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21907
21908 2010-01-05  Eric Blake  <ebb9@byu.net>
21909
21910         maint: support 'make announcement' from a VPATH build
21911         * top/maint.mk (announcement): Look for correct NEWS file.
21912
21913 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21914
21915         utimens (fdutimens): ignore a negative FD, per contract
21916         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21917         when we have a valid file descriptor.  Otherwise, using a brand
21918         new glibc (with just-patched futimens that now fails with EBADF)
21919         would cause this function to fail with ENOSYS.
21920         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21921         See also http://bugzilla.redhat.com/552320.
21922
21923 2010-01-05  Eric Blake  <ebb9@byu.net>
21924
21925         strcase: document what it provides
21926         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21927         gnulib module.
21928         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21929         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21930
21931 2010-01-05  Jim Meyering  <meyering@redhat.com>
21932
21933         maint: remove useless inclusions of "xalloc.h"
21934         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21935         * lib/readtokens.c: Likewise.
21936         * lib/same.c: Likewise.
21937         * modules/getloadavg (Depends-on): Remove xalloc.
21938         * modules/readtokens: Likewise.
21939         * modules/same: Likewise.
21940
21941         maint.mk: include 4 more function names in alloca.h-checking regexp
21942         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21943         regexp.  Before, we would give a false-positive (saying alloca.h
21944         is included unnecessarily) when the only uses involved omitted symbols.
21945
21946         xalloc.h: use consistent formatting
21947         * lib/xalloc.h: Move declarations to start in the first column.
21948
21949 2010-01-05  Eric Blake  <ebb9@byu.net>
21950
21951         mkdir: avoid xalloc
21952         * lib/mkdir.c (includes): Drop unused header.
21953         Reported by John W. Eaton.
21954
21955 2010-01-04  Jim Meyering  <meyering@redhat.com>
21956
21957         nl_langinfo: avoid configure-time syntax error
21958         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21959         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21960         the empty string.  Don't let that provoke a shell syntax error.
21961
21962         regcomp, regexec, fnmatch: avoid array bounds read error
21963         * lib/regcomp.c (build_equiv_class): From glibc:
21964         Use only the low 24 bits of a findidx return value as an index
21965         into the weights array.  Patch by Ulrich Drepper:
21966         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21967         * lib/regexec.c (check_node_accept_bytes): Likewise.
21968         * lib/fnmatch_loop.c (FCT): Likewise.
21969
21970         regcomp: skip collseq lookup when there are no rules
21971         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21972         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21973
21974         regcomp: recognize ill-formed { } expressions
21975         * lib/regcomp.c (parse_dup_op): From glibc:
21976         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21977
21978         regcomp: fix typo in comment
21979         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21980         s/satisfy/satisfies/.
21981
21982         regcomp: sync from glibc: remove dead store
21983         * lib/regcomp.c (duplicate_node_closure): Remove useless
21984         search_duplicated_node call and dead store.
21985
21986         regcomp: sync from glibc; always use nl_langinfo
21987         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21988         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21989         * modules/regex (Depends-on): Add nl_langinfo.
21990
21991 2010-01-04  Eric Blake  <ebb9@byu.net>
21992
21993         fdopendir: fix configure test
21994         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21995
21996 2010-01-01  Bruno Haible  <bruno@clisp.org>
21997
21998         wchar: Remove unused configure check.
21999         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
22000
22001 2010-01-01  Eric Blake  <ebb9@byu.net>
22002
22003         headers: make check of system header explicit
22004         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
22005         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
22006         ourselves.
22007         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22008         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22009         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22010         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
22011         internals.
22012         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
22013         missing.
22014         Suggested by Bruno Haible.
22015
22016 2010-01-01  Jim Meyering  <meyering@redhat.com>
22017
22018         ChangeLog: tweak to eliminate unnecessary copyright line
22019         * ChangeLog: Remove a copyright line that was mistakenly updated
22020         by today's update-copyright run.  Reported by Eric Blake.
22021
22022         test-update-copyright: don't let envvar setting cause test failure
22023         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22024
22025 2010-01-01  Bruno Haible  <bruno@clisp.org>
22026
22027         localename: Avoid gcc warning.
22028         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
22029         function if it is not used.
22030
22031 2010-01-01  Jim Meyering  <meyering@redhat.com>
22032
22033         update nearly all FSF copyright year lists to include 2010
22034         Use the same procedure as for 2009, outlined in
22035         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
22036
22037         version-etc: set COPYRIGHT_YEAR to 2010
22038         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
22039
22040 2009-12-31  Eric Blake  <ebb9@byu.net>
22041
22042         doc: correct availability of cygwin 1.5.x getopt
22043         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
22044         variables.
22045         * doc/posix-functions/opterr.texi (opterr): Likewise.
22046         * doc/posix-functions/optind.texi (optind): Likewise.
22047         * doc/posix-functions/optopt.texi (optopt): Likewise.
22048         * doc/posix-functions/tzname.texi (tzname): Likewise.
22049
22050         openat: update maintainer
22051         * modules/openat (Maintainer): Add myself.
22052
22053         utimens: avoid shadowing warning
22054         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
22055         buffers into one, to avoid shadowing, as well as avoiding a
22056         redundant stat.
22057         Reported by Jim Meyering.
22058
22059         test-dup2: avoid compiler warning
22060         * tests/test-dup2.c (is_inheritable): Only define if used.
22061
22062 2010-01-01  Bruno Haible  <bruno@clisp.org>
22063
22064         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
22065         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
22066         defined, use wctomb instead of wcrtomb.
22067
22068 2010-01-01  Bruno Haible  <bruno@clisp.org>
22069
22070         iconv: Reject native Solaris iconv.
22071         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
22072         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
22073
22074 2009-12-31  Bruno Haible  <bruno@clisp.org>
22075
22076         * tests/test-signal.c (main): Remove test of 'SIG'.
22077
22078 2009-12-31  Bruno Haible  <bruno@clisp.org>
22079
22080         spawn: Fix incomplete fix.
22081         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22082         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22083         warnings for GNULIB_POSIXCHECK again.
22084         Reported by Eric Blake.
22085
22086 2009-12-31  Bruno Haible  <bruno@clisp.org>
22087
22088         Avoid namespace pollution on glibc systems.
22089         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
22090         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
22091         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
22092         glibc systems.
22093
22094 2009-12-31  Bruno Haible  <bruno@clisp.org>
22095
22096         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
22097         (gl_REPLACE_WCHAR_H): Turn into a no-op.
22098         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
22099         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22100         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22101         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22102         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22103
22104 2009-12-31  Bruno Haible  <bruno@clisp.org>
22105
22106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22107         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
22108         afterwards.
22109
22110 2009-12-31  Bruno Haible  <bruno@clisp.org>
22111
22112         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
22113         SYS_UTSNAME_H.
22114
22115 2009-12-31  Bruno Haible  <bruno@clisp.org>
22116
22117         spawn: Fix misapplied patch.
22118         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22119         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22120         warnings for GNULIB_POSIXCHECK.
22121
22122 2009-12-31  Bruno Haible  <bruno@clisp.org>
22123
22124         times: Update after sys_times changed.
22125         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
22126         * modules/times (Files): Add it.
22127         (configure.ac): Invoke gl_FUNC_TIMES.
22128
22129 2009-12-31  Bruno Haible  <bruno@clisp.org>
22130
22131         Use AC_C_INLINE where necessary.
22132         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
22133         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22134         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22135         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22136         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22137         * m4/mbiter.m4 (gl_MBITER): Likewise.
22138         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22139         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22140         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
22141         * modules/u64 (configure.ac): Likewise.
22142
22143 2009-12-31  Bruno Haible  <bruno@clisp.org>
22144
22145         Use AC_C_INLINE instead of module 'inline' where possible.
22146         * modules/inline (Description): Clarify purpose.
22147         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
22148         * modules/count-one-bits (Depends-on): Remove inline.
22149         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
22150         * modules/openat (Depends-on): Remove inline.
22151         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
22152         instead of depending on module 'inline'.
22153         * modules/filevercmp (Depends-on, configure.ac): Likewise.
22154         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
22155         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
22156         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
22157         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
22158         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
22159         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
22160         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
22161         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
22162         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
22163         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
22164         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
22165         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
22166         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
22167         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
22168         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
22169         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
22170         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
22171         Likewise.
22172         * modules/unictype/property-ascii-hex-digit (Depends-on,
22173         configure.ac): Likewise.
22174         * modules/unictype/property-bidi-arabic-digit (Depends-on,
22175         configure.ac): Likewise.
22176         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
22177         configure.ac): Likewise.
22178         * modules/unictype/property-bidi-block-separator (Depends-on,
22179         configure.ac): Likewise.
22180         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
22181         configure.ac): Likewise.
22182         * modules/unictype/property-bidi-common-separator (Depends-on,
22183         configure.ac): Likewise.
22184         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
22185         Likewise.
22186         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
22187         configure.ac): Likewise.
22188         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
22189         configure.ac): Likewise.
22190         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
22191         configure.ac): Likewise.
22192         * modules/unictype/property-bidi-european-digit (Depends-on,
22193         configure.ac): Likewise.
22194         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
22195         configure.ac): Likewise.
22196         * modules/unictype/property-bidi-left-to-right (Depends-on,
22197         configure.ac): Likewise.
22198         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
22199         configure.ac): Likewise.
22200         * modules/unictype/property-bidi-other-neutral (Depends-on,
22201         configure.ac): Likewise.
22202         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
22203         Likewise.
22204         * modules/unictype/property-bidi-segment-separator (Depends-on,
22205         configure.ac): Likewise.
22206         * modules/unictype/property-bidi-whitespace (Depends-on,
22207         configure.ac): Likewise.
22208         * modules/unictype/property-combining (Depends-on, configure.ac):
22209         Likewise.
22210         * modules/unictype/property-composite (Depends-on, configure.ac):
22211         Likewise.
22212         * modules/unictype/property-currency-symbol (Depends-on,
22213         configure.ac): Likewise.
22214         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
22215         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
22216         Likewise.
22217         * modules/unictype/property-default-ignorable-code-point (Depends-on,
22218         configure.ac): Likewise.
22219         * modules/unictype/property-deprecated (Depends-on, configure.ac):
22220         Likewise.
22221         * modules/unictype/property-diacritic (Depends-on, configure.ac):
22222         Likewise.
22223         * modules/unictype/property-extender (Depends-on, configure.ac):
22224         Likewise.
22225         * modules/unictype/property-format-control (Depends-on, configure.ac):
22226         Likewise.
22227         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
22228         Likewise.
22229         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
22230         Likewise.
22231         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
22232         Likewise.
22233         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
22234         Likewise.
22235         * modules/unictype/property-hyphen (Depends-on, configure.ac):
22236         Likewise.
22237         * modules/unictype/property-id-continue (Depends-on, configure.ac):
22238         Likewise.
22239         * modules/unictype/property-id-start (Depends-on, configure.ac):
22240         Likewise.
22241         * modules/unictype/property-ideographic (Depends-on, configure.ac):
22242         Likewise.
22243         * modules/unictype/property-ids-binary-operator (Depends-on,
22244         configure.ac): Likewise.
22245         * modules/unictype/property-ids-trinary-operator (Depends-on,
22246         configure.ac): Likewise.
22247         * modules/unictype/property-ignorable-control (Depends-on,
22248         configure.ac): Likewise.
22249         * modules/unictype/property-iso-control (Depends-on, configure.ac):
22250         Likewise.
22251         * modules/unictype/property-join-control (Depends-on, configure.ac):
22252         Likewise.
22253         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
22254         Likewise.
22255         * modules/unictype/property-line-separator (Depends-on, configure.ac):
22256         Likewise.
22257         * modules/unictype/property-logical-order-exception (Depends-on,
22258         configure.ac): Likewise.
22259         * modules/unictype/property-lowercase (Depends-on, configure.ac):
22260         Likewise.
22261         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
22262         * modules/unictype/property-non-break (Depends-on, configure.ac):
22263         Likewise.
22264         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
22265         Likewise.
22266         * modules/unictype/property-numeric (Depends-on, configure.ac):
22267         Likewise.
22268         * modules/unictype/property-other-alphabetic (Depends-on,
22269         configure.ac): Likewise.
22270         * modules/unictype/property-other-default-ignorable-code-point
22271         (Depends-on, configure.ac): Likewise.
22272         * modules/unictype/property-other-grapheme-extend (Depends-on,
22273         configure.ac): Likewise.
22274         * modules/unictype/property-other-id-continue (Depends-on,
22275         configure.ac): Likewise.
22276         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
22277         Likewise.
22278         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
22279         Likewise.
22280         * modules/unictype/property-other-math (Depends-on, configure.ac):
22281         Likewise.
22282         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
22283         Likewise.
22284         * modules/unictype/property-paired-punctuation (Depends-on,
22285         configure.ac): Likewise.
22286         * modules/unictype/property-paragraph-separator (Depends-on,
22287         configure.ac): Likewise.
22288         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
22289         Likewise.
22290         * modules/unictype/property-pattern-white-space (Depends-on,
22291         configure.ac): Likewise.
22292         * modules/unictype/property-private-use (Depends-on, configure.ac):
22293         Likewise.
22294         * modules/unictype/property-punctuation (Depends-on, configure.ac):
22295         Likewise.
22296         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
22297         Likewise.
22298         * modules/unictype/property-radical (Depends-on, configure.ac):
22299         Likewise.
22300         * modules/unictype/property-sentence-terminal (Depends-on,
22301         configure.ac): Likewise.
22302         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
22303         Likewise.
22304         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
22305         * modules/unictype/property-terminal-punctuation (Depends-on,
22306         configure.ac): Likewise.
22307         * modules/unictype/property-titlecase (Depends-on, configure.ac):
22308         Likewise.
22309         * modules/unictype/property-unassigned-code-value (Depends-on,
22310         configure.ac): Likewise.
22311         * modules/unictype/property-unified-ideograph (Depends-on,
22312         configure.ac): Likewise.
22313         * modules/unictype/property-uppercase (Depends-on, configure.ac):
22314         Likewise.
22315         * modules/unictype/property-variation-selector (Depends-on,
22316         configure.ac): Likewise.
22317         * modules/unictype/property-white-space (Depends-on, configure.ac):
22318         Likewise.
22319         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
22320         Likewise.
22321         * modules/unictype/property-xid-start (Depends-on, configure.ac):
22322         Likewise.
22323         * modules/unictype/property-zero-width (Depends-on, configure.ac):
22324         Likewise.
22325         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
22326         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
22327         Likewise.
22328
22329 2009-12-31  Bruno Haible  <bruno@clisp.org>
22330
22331         Remove unnecessary AC_C_INLINE invocation.
22332         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22333         since 2009-08-21.
22334
22335 2009-12-31  Jim Meyering  <meyering@redhat.com>
22336
22337         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22338         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22339         With this change, we can all remove the gpg_key_ID = ... definition
22340         from our respective cfg.mk files.
22341
22342         maint.mk: create announcement template in ~/, not in /tmp
22343         * top/maint.mk (emit_upload_commands): Adjust.
22344         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22345         Remove temporary file, .ci-msg.
22346
22347 2009-12-31  Eric Blake  <ebb9@byu.net>
22348
22349         link-warning: always build headers with link warnings
22350         * modules/arpa_inet (Makefile.am): Always build replacement
22351         header.
22352         * modules/ctype (Makefile.am): Likewise.
22353         * modules/dirent (Makefile.am): Likewise.
22354         * modules/inttypes (Makefile.am): Likewise.
22355         * modules/langinfo (Makefile.am): Likewise.
22356         * modules/locale (Makefile.am): Likewise.
22357         * modules/spawn (Makefile.am): Likewise.
22358         * modules/sys_file (Makefile.am): Likewise.
22359         * modules/sys_ioctl (Makefile.am): Likewise.
22360         * modules/sys_select (Makefile.am): Likewise.
22361         * modules/sys_socket (Makefile.am): Likewise.
22362         * modules/sys_times (Makefile.am): Likewise.
22363         * modules/sys_utsname (Makefile.am): Likewise.
22364         * modules/sys_wait (Makefile.am): Likewise.
22365         * modules/wchar (Makefile.am): Likewise.
22366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22367         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22368         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22369         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22370         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22371         Likewise.
22372         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22373         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22374         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22375         Likewise.
22376         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22377         Likewise.
22378         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22379         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22380         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22382         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22383         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22384         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22385         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22386         (gl_WCHAR_H_DEFAULTS): Likewise.
22387
22388 2009-12-31  Eric Blake  <ebb9@byu.net>
22389
22390         signal, spawn: use link warnings
22391         * lib/signal.in.h (sigset_t): Make unconditional.
22392         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22393         (sigpending, sigprocmask, sigaction): Add link warnings.
22394         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22395         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22396         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22397         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22398         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22399         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22400         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22401         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22402         (posix_spawn_file_actions_destroy)
22403         (posix_spawn_file_actions_addopen)
22404         (posix_spawn_file_actions_addclose)
22405         (posix_spawn_file_actions_adddup2): Likewise.
22406         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22407         * tests/test-signal.c (main): Enhance test.
22408
22409         spawn: improve wrapper support
22410         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22411         (gl_SPAWN_H_DEFAULTS): New defaults.
22412         * modules/spawn (Makefile.am): Substitute them.
22413         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22414         Only declare if missing or broken.
22415
22416         sys_times, sys_utsname: use include_next
22417         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22418         header.
22419         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22420         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22421         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22422         * modules/sys_times (Depends-on): Add include_next.
22423         (Makefile.am): Substitute additional values.
22424         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22425         * lib/sys_times.in.h (includes): Include native header, if
22426         available.
22427         * lib/sys_utsname.in.h (includes): Likewise.
22428         * tests/test-sys_times.c (main): Enhance test.
22429
22430         fdutimensat: revert prior patch
22431         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22432         utimens.h.
22433         Reported by Bruno Haible.
22434
22435 2009-12-30  Eric Blake  <ebb9@byu.net>
22436
22437         sys_wait: drop link-warning dependency
22438         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22439         link-warning efforts.
22440         * lib/sys_wait.in.h: Likewise.
22441
22442         fdutimensat: remove bogus dependency
22443         * modules/fdutimensat (Depends-on): Drop inline.
22444
22445         unistd: fix typo
22446         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22447
22448 2009-12-30  Bruno Haible  <bruno@clisp.org>
22449
22450         Fix compilation error with Solaris cc.
22451         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22452         * lib/unicase/u16-is-invariant.c: Likewise.
22453         * lib/unicase/u32-is-invariant.c: Likewise.
22454         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22455
22456 2009-12-30  Bruno Haible  <bruno@clisp.org>
22457
22458         Fix test crash.
22459         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22460         locales.
22461         Reported by Simon Josefsson <simon@josefsson.org>.
22462
22463 2009-12-30  Bruno Haible  <bruno@clisp.org>
22464
22465         Fix compilation error on most platforms.
22466         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22467         Reported by Simon Josefsson <simon@josefsson.org>
22468         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22469
22470 2009-12-30  Eric Blake  <ebb9@byu.net>
22471
22472         futimens, utimensat: work around ntfs-3g bug
22473         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22474         a ctime bug is present, and expand workaround to cover ntfs-3g.
22475         * lib/utimens.c (fdutimens, lutimens): Likewise.
22476         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22477         (validate_timespec): Adjust return value.
22478         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22479         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22480         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22481
22482 2009-12-29  Eric Blake  <ebb9@byu.net>
22483
22484         link-warning: make usage consistent
22485         * modules/ctype (Depends-on): Add link-warning.
22486         (Makefile.am): Update rules accordingly.
22487         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22488         * modules/locale (Depends-on, Makefile.am): Likewise.
22489         * modules/sys_file (Makefile.am): Likewise.
22490         * modules/getopt-posix (Makefile.am): Delete unused link warning
22491         efforts.
22492         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22493         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22494         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22495         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22496
22497         stdio: remove unused variables
22498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22499         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22500         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22501
22502         tests: test more substitute headers
22503         * modules/ctype-tests: New file.
22504         * modules/dirent-tests: Likewise.
22505         * modules/spawn-tests: Likewise.
22506         * modules/sys_file-tests: Likewise.
22507         * modules/sys_ioctl-tests: Likewise.
22508         * modules/sys_wait-tests: Likewise.
22509         * tests/test-ctype.c: Likewise.
22510         * tests/test-dirent.c: Likewise.
22511         * tests/test-spawn.c: Likewise.
22512         * tests/test-sys_file.c: Likewise.
22513         * tests/test-sys_ioctl.c: Likewise.
22514         * tests/test-sys_wait.c: Likewise.
22515         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22516         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22517         whether or not flock is in use.
22518
22519         tests: remove License section from module
22520         * modules/arpa_inet-tests: Remove unneeded section.
22521         * modules/byteswap-tests: Likewise.
22522         * modules/ceilf-tests: Likewise.
22523         * modules/ceill-tests: Likewise.
22524         * modules/crypto/des-tests: Likewise.
22525         * modules/crypto/gc-arcfour-tests: Likewise.
22526         * modules/crypto/gc-arctwo-tests: Likewise.
22527         * modules/crypto/gc-des-tests: Likewise.
22528         * modules/crypto/gc-hmac-md5-tests: Likewise.
22529         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22530         * modules/crypto/gc-md2-tests: Likewise.
22531         * modules/crypto/gc-md4-tests: Likewise.
22532         * modules/crypto/gc-md5-tests: Likewise.
22533         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22534         * modules/crypto/gc-rijndael-tests: Likewise.
22535         * modules/crypto/gc-sha1-tests: Likewise.
22536         * modules/crypto/gc-tests: Likewise.
22537         * modules/crypto/md2-tests: Likewise.
22538         * modules/crypto/md4-tests: Likewise.
22539         * modules/fcntl-h-tests: Likewise.
22540         * modules/floorf-tests: Likewise.
22541         * modules/floorl-tests: Likewise.
22542         * modules/frexp-nolibm-tests: Likewise.
22543         * modules/frexp-tests: Likewise.
22544         * modules/frexpl-nolibm-tests: Likewise.
22545         * modules/frexpl-tests: Likewise.
22546         * modules/getaddrinfo-tests: Likewise.
22547         * modules/inttypes-tests: Likewise.
22548         * modules/isfinite-tests: Likewise.
22549         * modules/isinf-tests: Likewise.
22550         * modules/ldexpl-tests: Likewise.
22551         * modules/locale-tests: Likewise.
22552         * modules/math-tests: Likewise.
22553         * modules/netdb-tests: Likewise.
22554         * modules/netinet_in-tests: Likewise.
22555         * modules/printf-frexp-tests: Likewise.
22556         * modules/printf-frexpl-tests: Likewise.
22557         * modules/priv-set-tests: Likewise.
22558         * modules/random_r-tests: Likewise.
22559         * modules/round-tests: Likewise.
22560         * modules/roundf-tests: Likewise.
22561         * modules/roundl-tests: Likewise.
22562         * modules/search-tests: Likewise.
22563         * modules/select-tests: Likewise.
22564         * modules/signal-tests: Likewise.
22565         * modules/stdbool-tests: Likewise.
22566         * modules/stddef-tests: Likewise.
22567         * modules/stdint-tests: Likewise.
22568         * modules/stdio-tests: Likewise.
22569         * modules/stdlib-tests: Likewise.
22570         * modules/string-tests: Likewise.
22571         * modules/strings-tests: Likewise.
22572         * modules/sys_select-tests: Likewise.
22573         * modules/sys_socket-tests: Likewise.
22574         * modules/sys_stat-tests: Likewise.
22575         * modules/sys_time-tests: Likewise.
22576         * modules/sys_utsname-tests: Likewise.
22577         * modules/sysexits-tests: Likewise.
22578         * modules/time-tests: Likewise.
22579         * modules/trunc-tests: Likewise.
22580         * modules/truncf-tests: Likewise.
22581         * modules/truncl-tests: Likewise.
22582         * modules/tsearch-tests: Likewise.
22583         * modules/unistd-tests: Likewise.
22584         * modules/wchar-tests: Likewise.
22585         * modules/wctype-tests: Likewise.
22586
22587         tests: fix license on several tests
22588         * tests/test-des.c: Update to GPLv3+.
22589         * tests/test-flock.c: Likewise.
22590         * tests/test-fsync.c: Likewise.
22591         * tests/test-futimens.h: Likewise.
22592         * tests/test-gc-arcfour.c: Likewise.
22593         * tests/test-gc-arctwo.c: Likewise.
22594         * tests/test-gc-des.c: Likewise.
22595         * tests/test-gc-hmac-md5.c: Likewise.
22596         * tests/test-gc-hmac-sha1.c: Likewise.
22597         * tests/test-gc-md2.c: Likewise.
22598         * tests/test-gc-md4.c: Likewise.
22599         * tests/test-gc-md5.c: Likewise.
22600         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22601         * tests/test-gc-rijndael.c: Likewise.
22602         * tests/test-gc-sha1.c: Likewise.
22603         * tests/test-gc.c: Likewise.
22604         * tests/test-getcwd.c: Likewise.
22605         * tests/test-link.c: Likewise.
22606         * tests/test-link.h: Likewise.
22607         * tests/test-lutimens.h: Likewise.
22608         * tests/test-md2.c: Likewise.
22609         * tests/test-md4.c: Likewise.
22610         * tests/test-mkdir.h: Likewise.
22611         * tests/test-rename.c: Likewise.
22612         * tests/test-rename.h: Likewise.
22613         * tests/test-safe-alloc.c: Likewise.
22614         * tests/test-utimens-common.h: Likewise.
22615         * tests/test-utimens.h: Likewise.
22616
22617         maint: sync license texts
22618         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22619         * doc/gpl-3.0.texi: Revert copyright year update.
22620         * doc/lgpl-3.0.texi: Likewise.
22621
22622 2009-12-29  Jim Meyering  <meyering@redhat.com>
22623
22624         update nearly all FSF copyright year lists to include 2009
22625         The files named by the following are exempted:
22626             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22627               test -f "$dst" && { echo "$dst"; continue; }
22628               test -d "$dst" || continue
22629               echo "$dst"/$(basename "$src")
22630             done > exempt
22631             git ls-files tests/unictype >> exempt
22632         In the remaining files, convert to all-interval notation if
22633         - there is already at least one year interval like 2000-2003
22634         - the file is maintained by me
22635         - the file is in lib/uni*/, where that style already prevails
22636         Otherwise, use update-copyright's default.
22637
22638 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22639         and Eric Blake  <ebb9@byu.net>
22640
22641         tests: don't require debug system() to pass
22642         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22643         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22644         * tests/test-unlink.h (test_unlink_func): Likewise.
22645         * tests/test-fstatat.c (main): ...into callers.
22646         * tests/test-lstat.c (main): Likewise.
22647         * tests/test-rmdir.c (main): Likewise.
22648         * tests/test-unlink.c (main): Likewise.
22649         * tests/test-unlinkat.c (main): Likewise.
22650         * tests/test-areadlink-with-size.c (main): Don't require a
22651         debug-only system call to pass, aiding cross-testing to mingw.
22652         * tests/test-areadlink.c (main): Likewise.
22653         * tests/test-areadlinkat-with-size.c (main): Likewise.
22654         * tests/test-areadlinkat.c (main): Likewise.
22655         * tests/test-canonicalize-lgpl.c (main): Likewise.
22656         * tests/test-canonicalize.c (main): Likewise.
22657         * tests/test-chown.c (main): Likewise.
22658         * tests/test-fchownat.c (main): Likewise.
22659         * tests/test-lchown.c (main): Likewise.
22660         * tests/test-fdutimensat.c (main): Likewise.
22661         * tests/test-futimens.c (main): Likewise.
22662         * tests/test-link.c (main): Likewise.
22663         * tests/test-linkat.c (main): Likewise.
22664         * tests/test-mkdir.c (main): Likewise.
22665         * tests/test-mkdirat.c (main): Likewise.
22666         * tests/test-mkfifo.c (main): Likewise.
22667         * tests/test-mkfifoat.c (main): Likewise.
22668         * tests/test-mknod.c (main): Likewise.
22669         * tests/test-readlink.c (main): Likewise.
22670         * tests/test-remove.c (main): Likewise.
22671         * tests/test-rename.c (main): Likewise.
22672         * tests/test-renameat.c (main): Likewise.
22673         * tests/test-symlink.c (main): Likewise.
22674         * tests/test-symlinkat.c (main): Likewise.
22675         * tests/test-utimens.c (main): Likewise.
22676         * tests/test-utimensat.c (main): Likewise.
22677
22678 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22679
22680         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22681         on $(UNUSED_PARAMETER_H) to avoid build failure.
22682
22683 2009-12-28  Jim Meyering  <meyering@redhat.com>
22684
22685         update-copyright: you may specify a max. line length other than 72
22686         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22687
22688         maint: use consistent FSF copyright line syntax
22689         * lib/posixtm.c: Add missing comma in FSF copyright line.
22690         * lib/posixtm.h: Likewise.
22691         * lib/getugroups.c: Add missing ", Inc.".
22692
22693         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22694         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22695         FSF copyright line.  Remove trailing blanks.
22696
22697 2009-12-28  Eric Blake  <ebb9@byu.net>
22698
22699         test-dup2: reduce dependencies
22700         * modules/cloexec (Configure.ac): Set witness.
22701         * modules/dup2-tests (Depends-on): Drop cloexec.
22702         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22703         not present.
22704         Suggested by Bruno Haible.
22705
22706 2009-12-26  Bruno Haible  <bruno@clisp.org>
22707
22708         Remove an unneeded dependency.
22709         * modules/fseterr (Depends-on): Remove dup2.
22710
22711 2009-12-26  Eric Blake  <ebb9@byu.net>
22712
22713         tests: use macros.h in more places
22714         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22715         (ASSERT_STREAM): Provide default of stderr.
22716         * tests/test-dirent-safer.c: Include macros.h, using alternate
22717         stream for assertions.
22718         * tests/test-dup-safer.c: Likewise.
22719         * tests/test-freopen-safer.c: Likewise.
22720         * tests/test-getopt.c: Likewise.
22721         * tests/test-openat-safer.c: Likewise.
22722         * tests/test-pipe.c: Likewise.
22723         * tests/test-popen-safer.c: Likewise.
22724         * modules/dirent-safer-tests (Files): Include macros.h.
22725         * modules/unistd-safer-tests (Files): Likewise.
22726         * modules/freopen-safer-tests (Files): Likewise.
22727         * modules/getopt-posix-tests (Files): Likewise.
22728         * modules/openat-safer-tests (Files): Likewise.
22729         * modules/pipe-tests (Files): Likewise.
22730
22731 2009-12-26  Bruno Haible  <bruno@clisp.org>
22732
22733         javacomp: Portability fix.
22734         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22735         that it also works on Solaris.
22736
22737 2009-12-26  Bruno Haible  <bruno@clisp.org>
22738
22739         localename: Fix storage allocation of gl_locale_name_thread's result.
22740         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22741         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22742         all platforms that have 'uselocale'.
22743         (gl_locale_name_thread_unsafe): New function, extracted from
22744         gl_locale_name_thread.
22745         (gl_locale_name_thread): Call struniq on all platforms that have
22746         'uselocale'.
22747         * tests/test-localename.c (test_locale_name_thread): Check that the
22748         resulting strings are permanently allocated.
22749         * modules/localename-tests (Depends-on): Add strdup.
22750
22751 2009-12-26  Bruno Haible  <bruno@clisp.org>
22752
22753         * tests/test-localename.c (categories): Fill in the strings.
22754
22755 2009-12-26  Jim Meyering  <meyering@redhat.com>
22756
22757         isdir: complete the removal of m4/isdir.m4
22758         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22759
22760         isdir: clean up, since at least grep still uses it
22761         * lib/isdir.c: Include "isdir.h".
22762         (S_ISDIR): Remove now-unneeded definition.
22763         * modules/isdir (Files): Add lib/isdir.h.
22764         * lib/isdir.h: New file, with declaration.
22765         * m4/isdir.m4: Remove file -- unneeded.
22766
22767 2009-12-25  Bruno Haible  <bruno@clisp.org>
22768
22769         selinux-h: Make generated .h files standalone.
22770         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22771         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22772         * lib/se-selinux.in.h: Likewise.
22773         * modules/selinux-h (Depends-on): Add unused-parameter.
22774         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22775         selinux/selinux.h and selinux/context.h.
22776         Suggested by Eric Blake.
22777
22778 2009-12-25  Bruno Haible  <bruno@clisp.org>
22779
22780         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22781         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22782         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22783         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22784         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22785
22786 2009-12-24  Bruno Haible  <bruno@clisp.org>
22787
22788         openat: Fix warning.
22789         * lib/openat-proc.c: Include <unistd.h>.
22790
22791 2009-12-24  Bruno Haible  <bruno@clisp.org>
22792
22793         New module 'unused-parameter'.
22794         * build-aux/unused-parameter.h: New file, extracted from earlier
22795         gnulib-common.m4.
22796         * modules/unused-parameter: New file.
22797         * lib/unistr.h: Include unused-parameter.h.
22798         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22799         _GL_UNUSED.
22800         * modules/unistr/base (Depends-on): Add unused-parameter.
22801
22802 2009-12-24  Bruno Haible  <bruno@clisp.org>
22803
22804         Add missing dependencies to 'extensions' module.
22805         * m4/extensions.m4: Add comment.
22806         * modules/accept4 (Depends-on): Add extensions.
22807         * modules/dup3 (Depends-on): Likewise.
22808         * modules/fcntl (Depends-on): Likewise.
22809         * modules/futimens (Depends-on): Likewise.
22810         * modules/mknod (Depends-on): Likewise.
22811         * modules/pipe2 (Depends-on): Likewise.
22812         * modules/stat-time (Depends-on): Likewise.
22813         * modules/strcasestr-simple (Depends-on): Likewise.
22814         * modules/strsignal (Depends-on): Likewise.
22815         * modules/utimensat (Depends-on): Likewise.
22816         * modules/localcharset (Depends-on): Likewise. Needed because of
22817         gl_FCNTL_O_FLAGS.
22818         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22819         AC_TYPE_MBSTATE_T.
22820         * modules/wcsnrtombs (Depends-on): Likewise.
22821         * modules/wcsrtombs (Depends-on): Likewise.
22822
22823 2009-12-24  Bruno Haible  <bruno@clisp.org>
22824
22825         binary-io: Avoid gcc warning due to SET_BINARY.
22826         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22827         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22828
22829 2009-12-24  Bruno Haible  <bruno@clisp.org>
22830
22831         Avoid future namespace pollution on glibc systems.
22832         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22833         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22834         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22835         glibc systems.
22836
22837 2009-12-24  Bruno Haible  <bruno@clisp.org>
22838
22839         Refactor common macros used in tests.
22840         * tests/macros.h: New file.
22841         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22842         and/or <stdlib.h>, if appropriate.
22843         (ASSERT, SIZEOF): Remove macros.
22844         * tests/test-areadlink-with-size.c: Likewise.
22845         * tests/test-areadlinkat.c: Likewise.
22846         * tests/test-areadlinkat-with-size.c: Likewise.
22847         * tests/test-argmatch.c: Likewise.
22848         * tests/test-argv-iter.c: Likewise.
22849         * tests/test-array-mergesort.c: Likewise.
22850         * tests/test-array_list.c: Likewise.
22851         * tests/test-array_oset.c: Likewise.
22852         * tests/test-avltree_list.c: Likewise.
22853         * tests/test-avltree_oset.c: Likewise.
22854         * tests/test-avltreehash_list.c: Likewise.
22855         * tests/test-base64.c: Likewise.
22856         * tests/test-binary-io.c: Likewise.
22857         * tests/test-bitrotate.c: Likewise.
22858         * tests/test-btowc.c: Likewise.
22859         * tests/test-byteswap.c: Likewise.
22860         * tests/test-c-ctype.c: Likewise.
22861         * tests/test-c-stack.c: Likewise.
22862         * tests/test-c-strcasecmp.c: Likewise.
22863         * tests/test-c-strcasestr.c: Likewise.
22864         * tests/test-c-strncasecmp.c: Likewise.
22865         * tests/test-c-strstr.c: Likewise.
22866         * tests/test-canonicalize-lgpl.c: Likewise.
22867         * tests/test-canonicalize.c: Likewise.
22868         * tests/test-carray_list.c: Likewise.
22869         * tests/test-ceilf1.c: Likewise.
22870         * tests/test-ceilf2.c: Likewise.
22871         * tests/test-ceill.c: Likewise.
22872         * tests/test-chown.c: Likewise.
22873         * tests/test-cloexec.c: Likewise.
22874         * tests/test-copy-acl.c: Likewise.
22875         * tests/test-copy-file.c: Likewise.
22876         * tests/test-count-one-bits.c: Likewise.
22877         * tests/test-dprintf-posix.c: Likewise.
22878         * tests/test-dup2.c: Likewise.
22879         * tests/test-dup3.c: Likewise.
22880         * tests/test-duplocale.c: Likewise.
22881         * tests/test-fbufmode.c: Likewise.
22882         * tests/test-fchdir.c: Likewise.
22883         * tests/test-fchownat.c: Likewise.
22884         * tests/test-fcntl-safer.c: Likewise.
22885         * tests/test-fcntl.c: Likewise.
22886         * tests/test-fdopendir.c: Likewise.
22887         * tests/test-fdutimensat.c: Likewise.
22888         * tests/test-fflush2.c: Likewise.
22889         * tests/test-file-has-acl.c: Likewise.
22890         * tests/test-filevercmp.c: Likewise.
22891         * tests/test-flock.c: Likewise.
22892         * tests/test-floorf1.c: Likewise.
22893         * tests/test-floorf2.c: Likewise.
22894         * tests/test-floorl.c: Likewise.
22895         * tests/test-fnmatch.c: Likewise.
22896         * tests/test-fopen.h: Likewise.
22897         * tests/test-fpending.c: Likewise.
22898         * tests/test-fprintf-posix.c: Likewise.
22899         * tests/test-fpurge.c: Likewise.
22900         * tests/test-freadable.c: Likewise.
22901         * tests/test-freadahead.c: Likewise.
22902         * tests/test-freading.c: Likewise.
22903         * tests/test-freadptr.c: Likewise.
22904         * tests/test-freadptr2.c: Likewise.
22905         * tests/test-freadseek.c: Likewise.
22906         * tests/test-freopen.c: Likewise.
22907         * tests/test-frexp.c: Likewise.
22908         * tests/test-frexpl.c: Likewise.
22909         * tests/test-fseek.c: Likewise.
22910         * tests/test-fseeko.c: Likewise.
22911         * tests/test-fstatat.c: Likewise.
22912         * tests/test-fstrcmp.c: Likewise.
22913         * tests/test-fsync.c: Likewise.
22914         * tests/test-ftell.c: Likewise.
22915         * tests/test-ftello.c: Likewise.
22916         * tests/test-func.c: Likewise.
22917         * tests/test-futimens.c: Likewise.
22918         * tests/test-fwritable.c: Likewise.
22919         * tests/test-fwriting.c: Likewise.
22920         * tests/test-getcwd.c: Likewise.
22921         * tests/test-getdate.c: Likewise.
22922         * tests/test-getdelim.c: Likewise.
22923         * tests/test-getdtablesize.c: Likewise.
22924         * tests/test-getgroups.c: Likewise.
22925         * tests/test-getline.c: Likewise.
22926         * tests/test-getndelim2.c: Likewise.
22927         * tests/test-glob.c: Likewise.
22928         * tests/test-hash.c: Likewise.
22929         * tests/test-i-ring.c: Likewise.
22930         * tests/test-iconv-utf.c: Likewise.
22931         * tests/test-iconv.c: Likewise.
22932         * tests/test-idpriv-drop.c: Likewise.
22933         * tests/test-idpriv-droptemp.c: Likewise.
22934         * tests/test-inet_ntop.c: Likewise.
22935         * tests/test-inet_pton.c: Likewise.
22936         * tests/test-isblank.c: Likewise.
22937         * tests/test-isfinite.c: Likewise.
22938         * tests/test-isinf.c: Likewise.
22939         * tests/test-isnan.c: Likewise.
22940         * tests/test-isnand.h: Likewise.
22941         * tests/test-isnanf.h: Likewise.
22942         * tests/test-isnanl.h: Likewise.
22943         * tests/test-lchown.c: Likewise.
22944         * tests/test-ldexpl.c: Likewise.
22945         * tests/test-link.c: Likewise.
22946         * tests/test-linkat.c: Likewise.
22947         * tests/test-linked_list.c: Likewise.
22948         * tests/test-linkedhash_list.c: Likewise.
22949         * tests/test-localename.c: Likewise.
22950         * tests/test-lseek.c: Likewise.
22951         * tests/test-lstat.c: Likewise.
22952         * tests/test-mbmemcasecmp.c: Likewise.
22953         * tests/test-mbmemcasecoll.c: Likewise.
22954         * tests/test-mbrtowc.c: Likewise.
22955         * tests/test-mbscasecmp.c: Likewise.
22956         * tests/test-mbscasestr1.c: Likewise.
22957         * tests/test-mbscasestr2.c: Likewise.
22958         * tests/test-mbscasestr3.c: Likewise.
22959         * tests/test-mbscasestr4.c: Likewise.
22960         * tests/test-mbschr.c: Likewise.
22961         * tests/test-mbscspn.c: Likewise.
22962         * tests/test-mbsinit.c: Likewise.
22963         * tests/test-mbsncasecmp.c: Likewise.
22964         * tests/test-mbsnrtowcs.c: Likewise.
22965         * tests/test-mbspbrk.c: Likewise.
22966         * tests/test-mbspcasecmp.c: Likewise.
22967         * tests/test-mbsrchr.c: Likewise.
22968         * tests/test-mbsrtowcs.c: Likewise.
22969         * tests/test-mbsspn.c: Likewise.
22970         * tests/test-mbsstr1.c: Likewise.
22971         * tests/test-mbsstr2.c: Likewise.
22972         * tests/test-mbsstr3.c: Likewise.
22973         * tests/test-memchr.c: Likewise.
22974         * tests/test-memchr2.c: Likewise.
22975         * tests/test-memcmp.c: Likewise.
22976         * tests/test-memmem.c: Likewise.
22977         * tests/test-memrchr.c: Likewise.
22978         * tests/test-mkdir.c: Likewise.
22979         * tests/test-mkdirat.c: Likewise.
22980         * tests/test-mkfifo.c: Likewise.
22981         * tests/test-mkfifoat.c: Likewise.
22982         * tests/test-mknod.c: Likewise.
22983         * tests/test-nanosleep.c: Likewise.
22984         * tests/test-nl_langinfo.c: Likewise.
22985         * tests/test-obstack-printf.c: Likewise.
22986         * tests/test-open.c: Likewise.
22987         * tests/test-openat.c: Likewise.
22988         * tests/test-pipe-filter-gi1.c: Likewise.
22989         * tests/test-pipe-filter-gi2-main.c: Likewise.
22990         * tests/test-pipe-filter-ii1.c: Likewise.
22991         * tests/test-pipe-filter-ii2-main.c: Likewise.
22992         * tests/test-pipe2.c: Likewise.
22993         * tests/test-popen.h: Likewise.
22994         * tests/test-posixtm.c: Likewise.
22995         * tests/test-pread.c: Likewise.
22996         * tests/test-printf-frexp.c: Likewise.
22997         * tests/test-printf-frexpl.c: Likewise.
22998         * tests/test-printf-posix.c: Likewise.
22999         * tests/test-priv-set.c: Likewise.
23000         * tests/test-quotearg.c: Likewise.
23001         * tests/test-random_r.c: Likewise.
23002         * tests/test-rawmemchr.c: Likewise.
23003         * tests/test-rbtree_list.c: Likewise.
23004         * tests/test-rbtree_oset.c: Likewise.
23005         * tests/test-rbtreehash_list.c: Likewise.
23006         * tests/test-readlink.c: Likewise.
23007         * tests/test-remove.c: Likewise.
23008         * tests/test-rename.c: Likewise.
23009         * tests/test-renameat.c: Likewise.
23010         * tests/test-rmdir.c: Likewise.
23011         * tests/test-round1.c: Likewise.
23012         * tests/test-roundf1.c: Likewise.
23013         * tests/test-roundl.c: Likewise.
23014         * tests/test-safe-alloc.c: Likewise.
23015         * tests/test-sameacls.c: Likewise.
23016         * tests/test-set-mode-acl.c: Likewise.
23017         * tests/test-setenv.c: Likewise.
23018         * tests/test-sigaction.c: Likewise.
23019         * tests/test-signbit.c: Likewise.
23020         * tests/test-sleep.c: Likewise.
23021         * tests/test-snprintf-posix.c: Likewise.
23022         * tests/test-snprintf.c: Likewise.
23023         * tests/test-sprintf-posix.c: Likewise.
23024         * tests/test-stat-time.c: Likewise.
23025         * tests/test-stat.c: Likewise.
23026         * tests/test-strcasestr.c: Likewise.
23027         * tests/test-strchrnul.c: Likewise.
23028         * tests/test-strerror.c: Likewise.
23029         * tests/test-striconv.c: Likewise.
23030         * tests/test-striconveh.c: Likewise.
23031         * tests/test-striconveha.c: Likewise.
23032         * tests/test-strsignal.c: Likewise.
23033         * tests/test-strstr.c: Likewise.
23034         * tests/test-strtod.c: Likewise.
23035         * tests/test-strverscmp.c: Likewise.
23036         * tests/test-symlink.c: Likewise.
23037         * tests/test-symlinkat.c: Likewise.
23038         * tests/test-trunc1.c: Likewise.
23039         * tests/test-trunc2.c: Likewise.
23040         * tests/test-truncf1.c: Likewise.
23041         * tests/test-truncf2.c: Likewise.
23042         * tests/test-truncl.c: Likewise.
23043         * tests/test-uname.c: Likewise.
23044         * tests/test-unlink.c: Likewise.
23045         * tests/test-unlinkat.c: Likewise.
23046         * tests/test-unsetenv.c: Likewise.
23047         * tests/test-usleep.c: Likewise.
23048         * tests/test-utimens.c: Likewise.
23049         * tests/test-utimensat.c: Likewise.
23050         * tests/test-vasnprintf-posix.c: Likewise.
23051         * tests/test-vasnprintf-posix2.c: Likewise.
23052         * tests/test-vasnprintf.c: Likewise.
23053         * tests/test-vasprintf-posix.c: Likewise.
23054         * tests/test-vasprintf.c: Likewise.
23055         * tests/test-vdprintf-posix.c: Likewise.
23056         * tests/test-vfprintf-posix.c: Likewise.
23057         * tests/test-vprintf-posix.c: Likewise.
23058         * tests/test-vsnprintf-posix.c: Likewise.
23059         * tests/test-vsnprintf.c: Likewise.
23060         * tests/test-vsprintf-posix.c: Likewise.
23061         * tests/test-wcrtomb.c: Likewise.
23062         * tests/test-wcsnrtombs.c: Likewise.
23063         * tests/test-wcsrtombs.c: Likewise.
23064         * tests/test-wctype.c: Likewise.
23065         * tests/test-wcwidth.c: Likewise.
23066         * tests/test-xfprintf-posix.c: Likewise.
23067         * tests/test-xmemdup0.c: Likewise.
23068         * tests/test-xprintf-posix.c: Likewise.
23069         * tests/test-xvasprintf.c: Likewise.
23070         * tests/unicase/test-locale-language.c: Likewise.
23071         * tests/unicase/test-mapping-part1.h: Likewise.
23072         * tests/unicase/test-predicate-part1.h: Likewise.
23073         * tests/unicase/test-u8-casecmp.c: Likewise.
23074         * tests/unicase/test-u8-casecoll.c: Likewise.
23075         * tests/unicase/test-u8-casefold.c: Likewise.
23076         * tests/unicase/test-u8-is-cased.c: Likewise.
23077         * tests/unicase/test-u8-is-casefolded.c: Likewise.
23078         * tests/unicase/test-u8-is-lowercase.c: Likewise.
23079         * tests/unicase/test-u8-is-titlecase.c: Likewise.
23080         * tests/unicase/test-u8-is-uppercase.c: Likewise.
23081         * tests/unicase/test-u8-tolower.c: Likewise.
23082         * tests/unicase/test-u8-totitle.c: Likewise.
23083         * tests/unicase/test-u8-toupper.c: Likewise.
23084         * tests/unicase/test-u16-casecmp.c: Likewise.
23085         * tests/unicase/test-u16-casecoll.c: Likewise.
23086         * tests/unicase/test-u16-casefold.c: Likewise.
23087         * tests/unicase/test-u16-is-cased.c: Likewise.
23088         * tests/unicase/test-u16-is-casefolded.c: Likewise.
23089         * tests/unicase/test-u16-is-lowercase.c: Likewise.
23090         * tests/unicase/test-u16-is-titlecase.c: Likewise.
23091         * tests/unicase/test-u16-is-uppercase.c: Likewise.
23092         * tests/unicase/test-u16-tolower.c: Likewise.
23093         * tests/unicase/test-u16-totitle.c: Likewise.
23094         * tests/unicase/test-u16-toupper.c: Likewise.
23095         * tests/unicase/test-u32-casecmp.c: Likewise.
23096         * tests/unicase/test-u32-casecoll.c: Likewise.
23097         * tests/unicase/test-u32-casefold.c: Likewise.
23098         * tests/unicase/test-u32-is-cased.c: Likewise.
23099         * tests/unicase/test-u32-is-casefolded.c: Likewise.
23100         * tests/unicase/test-u32-is-lowercase.c: Likewise.
23101         * tests/unicase/test-u32-is-titlecase.c: Likewise.
23102         * tests/unicase/test-u32-is-uppercase.c: Likewise.
23103         * tests/unicase/test-u32-tolower.c: Likewise.
23104         * tests/unicase/test-u32-totitle.c: Likewise.
23105         * tests/unicase/test-u32-toupper.c: Likewise.
23106         * tests/unicase/test-ulc-casecmp.c: Likewise.
23107         * tests/unicase/test-ulc-casecoll.c: Likewise.
23108         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23109         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23110         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23111         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23112         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23113         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23114         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23115         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23116         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23117         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23118         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23119         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23120         * tests/unictype/test-bidi_byname.c: Likewise.
23121         * tests/unictype/test-bidi_name.c: Likewise.
23122         * tests/unictype/test-bidi_of.c: Likewise.
23123         * tests/unictype/test-bidi_test.c: Likewise.
23124         * tests/unictype/test-block_list.c: Likewise.
23125         * tests/unictype/test-block_of.c: Likewise.
23126         * tests/unictype/test-block_test.c: Likewise.
23127         * tests/unictype/test-categ_and.c: Likewise.
23128         * tests/unictype/test-categ_and_not.c: Likewise.
23129         * tests/unictype/test-categ_byname.c: Likewise.
23130         * tests/unictype/test-categ_name.c: Likewise.
23131         * tests/unictype/test-categ_none.c: Likewise.
23132         * tests/unictype/test-categ_of.c: Likewise.
23133         * tests/unictype/test-categ_or.c: Likewise.
23134         * tests/unictype/test-categ_test_withtable.c: Likewise.
23135         * tests/unictype/test-combining.c: Likewise.
23136         * tests/unictype/test-decdigit.c: Likewise.
23137         * tests/unictype/test-digit.c: Likewise.
23138         * tests/unictype/test-mirror.c: Likewise.
23139         * tests/unictype/test-numeric.c: Likewise.
23140         * tests/unictype/test-pr_byname.c: Likewise.
23141         * tests/unictype/test-pr_test.c: Likewise.
23142         * tests/unictype/test-predicate-part1.h: Likewise.
23143         * tests/unictype/test-scripts.c: Likewise.
23144         * tests/unictype/test-sy_c_ident.c: Likewise.
23145         * tests/unictype/test-sy_java_ident.c: Likewise.
23146         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
23147         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
23148         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
23149         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
23150         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
23151         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
23152         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
23153         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
23154         * tests/uninorm/test-canonical-decomposition.c: Likewise.
23155         * tests/uninorm/test-compat-decomposition.c: Likewise.
23156         * tests/uninorm/test-composition.c: Likewise.
23157         * tests/uninorm/test-decomposing-form.c: Likewise.
23158         * tests/uninorm/test-decomposition.c: Likewise.
23159         * tests/uninorm/test-u8-nfc.c: Likewise.
23160         * tests/uninorm/test-u8-nfd.c: Likewise.
23161         * tests/uninorm/test-u8-nfkc.c: Likewise.
23162         * tests/uninorm/test-u8-nfkd.c: Likewise.
23163         * tests/uninorm/test-u8-normcmp.c: Likewise.
23164         * tests/uninorm/test-u8-normcoll.c: Likewise.
23165         * tests/uninorm/test-u16-nfc.c: Likewise.
23166         * tests/uninorm/test-u16-nfd.c: Likewise.
23167         * tests/uninorm/test-u16-nfkc.c: Likewise.
23168         * tests/uninorm/test-u16-nfkd.c: Likewise.
23169         * tests/uninorm/test-u16-normcmp.c: Likewise.
23170         * tests/uninorm/test-u16-normcoll.c: Likewise.
23171         * tests/uninorm/test-u32-nfc.c: Likewise.
23172         * tests/uninorm/test-u32-nfd.c: Likewise.
23173         * tests/uninorm/test-u32-nfkc.c: Likewise.
23174         * tests/uninorm/test-u32-nfkd.c: Likewise.
23175         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23176         * tests/uninorm/test-u32-normcmp.c: Likewise.
23177         * tests/uninorm/test-u32-normcoll.c: Likewise.
23178         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
23179         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
23180         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
23181         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
23182         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
23183         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
23184         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23185         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23186         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23187         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23188         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23189         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23190         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23191         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23192         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23193         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23194         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23195         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23196         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
23197         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
23198         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23199         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23200         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
23201         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
23202         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
23203         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
23204         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
23205         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23206         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23207         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
23208         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
23209         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
23210         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
23211         * tests/uniwidth/test-u8-strwidth.c: Likewise.
23212         * tests/uniwidth/test-u8-width.c: Likewise.
23213         * tests/uniwidth/test-u16-strwidth.c: Likewise.
23214         * tests/uniwidth/test-u16-width.c: Likewise.
23215         * tests/uniwidth/test-u32-strwidth.c: Likewise.
23216         * tests/uniwidth/test-u32-width.c: Likewise.
23217         * tests/uniwidth/test-uc_width.c: Likewise.
23218         * tests/uniwidth/test-uc_width2.c: Likewise.
23219         * modules/acl-tests (Files): Add tests/macros.h.
23220         * modules/areadlink-tests (Files): Likewise.
23221         * modules/areadlink-with-size-tests (Files): Likewise.
23222         * modules/areadlinkat-tests (Files): Likewise.
23223         * modules/areadlinkat-with-size-tests (Files): Likewise.
23224         * modules/argmatch-tests (Files): Likewise.
23225         * modules/argv-iter-tests (Files): Likewise.
23226         * modules/array-list-tests (Files): Likewise.
23227         * modules/array-mergesort-tests (Files): Likewise.
23228         * modules/array-oset-tests (Files): Likewise.
23229         * modules/avltree-list-tests (Files): Likewise.
23230         * modules/avltree-oset-tests (Files): Likewise.
23231         * modules/avltreehash-list-tests (Files): Likewise.
23232         * modules/base64-tests (Files): Likewise.
23233         * modules/binary-io-tests (Files): Likewise.
23234         * modules/bitrotate-tests (Files): Likewise.
23235         * modules/btowc-tests (Files): Likewise.
23236         * modules/byteswap-tests (Files): Likewise.
23237         * modules/c-ctype-tests (Files): Likewise.
23238         * modules/c-stack-tests (Files): Likewise.
23239         * modules/c-strcase-tests (Files): Likewise.
23240         * modules/c-strcasestr-tests (Files): Likewise.
23241         * modules/c-strstr-tests (Files): Likewise.
23242         * modules/canonicalize-lgpl-tests (Files): Likewise.
23243         * modules/canonicalize-tests (Files): Likewise.
23244         * modules/carray-list-tests (Files): Likewise.
23245         * modules/ceilf-tests (Files): Likewise.
23246         * modules/ceill-tests (Files): Likewise.
23247         * modules/chown-tests (Files): Likewise.
23248         * modules/cloexec-tests (Files): Likewise.
23249         * modules/copy-file-tests (Files): Likewise.
23250         * modules/count-one-bits-tests (Files): Likewise.
23251         * modules/dprintf-posix-tests (Files): Likewise.
23252         * modules/dup2-tests (Files): Likewise.
23253         * modules/dup3-tests (Files): Likewise.
23254         * modules/duplocale-tests (Files): Likewise.
23255         * modules/fbufmode-tests (Files): Likewise.
23256         * modules/fchdir-tests (Files): Likewise.
23257         * modules/fcntl-safer-tests (Files): Likewise.
23258         * modules/fcntl-tests (Files): Likewise.
23259         * modules/fdopendir-tests (Files): Likewise.
23260         * modules/fdutimensat-tests (Files): Likewise.
23261         * modules/fflush-tests (Files): Likewise.
23262         * modules/filevercmp-tests (Files): Likewise.
23263         * modules/flock-tests (Files): Likewise.
23264         * modules/floorf-tests (Files): Likewise.
23265         * modules/floorl-tests (Files): Likewise.
23266         * modules/fnmatch-tests (Files): Likewise.
23267         * modules/fopen-safer-tests (Files): Likewise.
23268         * modules/fopen-tests (Files): Likewise.
23269         * modules/fpending-tests (Files): Likewise.
23270         * modules/fprintf-posix-tests (Files): Likewise.
23271         * modules/fpurge-tests (Files): Likewise.
23272         * modules/freadable-tests (Files): Likewise.
23273         * modules/freadahead-tests (Files): Likewise.
23274         * modules/freading-tests (Files): Likewise.
23275         * modules/freadptr-tests (Files): Likewise.
23276         * modules/freadseek-tests (Files): Likewise.
23277         * modules/freopen-tests (Files): Likewise.
23278         * modules/frexp-nolibm-tests (Files): Likewise.
23279         * modules/frexp-tests (Files): Likewise.
23280         * modules/frexpl-nolibm-tests (Files): Likewise.
23281         * modules/frexpl-tests (Files): Likewise.
23282         * modules/fseek-tests (Files): Likewise.
23283         * modules/fseeko-tests (Files): Likewise.
23284         * modules/fstrcmp-tests (Files): Likewise.
23285         * modules/fsync-tests (Files): Likewise.
23286         * modules/ftell-tests (Files): Likewise.
23287         * modules/ftello-tests (Files): Likewise.
23288         * modules/func-tests (Files): Likewise.
23289         * modules/futimens-tests (Files): Likewise.
23290         * modules/fwritable-tests (Files): Likewise.
23291         * modules/fwriting-tests (Files): Likewise.
23292         * modules/getcwd-tests (Files): Likewise.
23293         * modules/getdate-tests (Files): Likewise.
23294         * modules/getdelim-tests (Files): Likewise.
23295         * modules/getdtablesize-tests (Files): Likewise.
23296         * modules/getgroups-tests (Files): Likewise.
23297         * modules/getline-tests (Files): Likewise.
23298         * modules/getndelim2-tests (Files): Likewise.
23299         * modules/glob-tests (Files): Likewise.
23300         * modules/hash-tests (Files): Likewise.
23301         * modules/i-ring-tests (Files): Likewise.
23302         * modules/iconv-tests (Files): Likewise.
23303         * modules/iconv_open-utf-tests (Files): Likewise.
23304         * modules/idpriv-drop-tests (Files): Likewise.
23305         * modules/idpriv-droptemp-tests (Files): Likewise.
23306         * modules/inet_ntop-tests (Files): Likewise.
23307         * modules/inet_pton-tests (Files): Likewise.
23308         * modules/isblank-tests (Files): Likewise.
23309         * modules/isfinite-tests (Files): Likewise.
23310         * modules/isinf-tests (Files): Likewise.
23311         * modules/isnan-tests (Files): Likewise.
23312         * modules/isnand-nolibm-tests (Files): Likewise.
23313         * modules/isnand-tests (Files): Likewise.
23314         * modules/isnanf-nolibm-tests (Files): Likewise.
23315         * modules/isnanf-tests (Files): Likewise.
23316         * modules/isnanl-nolibm-tests (Files): Likewise.
23317         * modules/isnanl-tests (Files): Likewise.
23318         * modules/lchown-tests (Files): Likewise.
23319         * modules/ldexpl-tests (Files): Likewise.
23320         * modules/link-tests (Files): Likewise.
23321         * modules/linkat-tests (Files): Likewise.
23322         * modules/linked-list-tests (Files): Likewise.
23323         * modules/linkedhash-list-tests (Files): Likewise.
23324         * modules/localename-tests (Files): Likewise.
23325         * modules/lseek-tests (Files): Likewise.
23326         * modules/lstat-tests (Files): Likewise.
23327         * modules/mbmemcasecmp-tests (Files): Likewise.
23328         * modules/mbmemcasecoll-tests (Files): Likewise.
23329         * modules/mbrtowc-tests (Files): Likewise.
23330         * modules/mbscasecmp-tests (Files): Likewise.
23331         * modules/mbscasestr-tests (Files): Likewise.
23332         * modules/mbschr-tests (Files): Likewise.
23333         * modules/mbscspn-tests (Files): Likewise.
23334         * modules/mbsinit-tests (Files): Likewise.
23335         * modules/mbsncasecmp-tests (Files): Likewise.
23336         * modules/mbsnrtowcs-tests (Files): Likewise.
23337         * modules/mbspbrk-tests (Files): Likewise.
23338         * modules/mbspcasecmp-tests (Files): Likewise.
23339         * modules/mbsrchr-tests (Files): Likewise.
23340         * modules/mbsrtowcs-tests (Files): Likewise.
23341         * modules/mbsspn-tests (Files): Likewise.
23342         * modules/mbsstr-tests (Files): Likewise.
23343         * modules/memchr-tests (Files): Likewise.
23344         * modules/memchr2-tests (Files): Likewise.
23345         * modules/memcmp-tests (Files): Likewise.
23346         * modules/memmem-tests (Files): Likewise.
23347         * modules/memrchr-tests (Files): Likewise.
23348         * modules/mkdir-tests (Files): Likewise.
23349         * modules/mkfifo-tests (Files): Likewise.
23350         * modules/mkfifoat-tests (Files): Likewise.
23351         * modules/mknod-tests (Files): Likewise.
23352         * modules/nanosleep-tests (Files): Likewise.
23353         * modules/nl_langinfo-tests (Files): Likewise.
23354         * modules/obstack-printf-tests (Files): Likewise.
23355         * modules/open-tests (Files): Likewise.
23356         * modules/openat-tests (Files): Likewise.
23357         * modules/pipe-filter-gi-tests (Files): Likewise.
23358         * modules/pipe-filter-ii-tests (Files): Likewise.
23359         * modules/pipe2-tests (Files): Likewise.
23360         * modules/popen-safer-tests (Files): Likewise.
23361         * modules/popen-tests (Files): Likewise.
23362         * modules/posixtm-tests (Files): Likewise.
23363         * modules/pread-tests (Files): Likewise.
23364         * modules/printf-frexp-tests (Files): Likewise.
23365         * modules/printf-frexpl-tests (Files): Likewise.
23366         * modules/printf-posix-tests (Files): Likewise.
23367         * modules/priv-set-tests (Files): Likewise.
23368         * modules/quotearg-tests (Files): Likewise.
23369         * modules/random_r-tests (Files): Likewise.
23370         * modules/rawmemchr-tests (Files): Likewise.
23371         * modules/rbtree-list-tests (Files): Likewise.
23372         * modules/rbtree-oset-tests (Files): Likewise.
23373         * modules/rbtreehash-list-tests (Files): Likewise.
23374         * modules/readlink-tests (Files): Likewise.
23375         * modules/remove-tests (Files): Likewise.
23376         * modules/rename-tests (Files): Likewise.
23377         * modules/renameat-tests (Files): Likewise.
23378         * modules/rmdir-tests (Files): Likewise.
23379         * modules/round-tests (Files): Likewise.
23380         * modules/roundf-tests (Files): Likewise.
23381         * modules/roundl-tests (Files): Likewise.
23382         * modules/safe-alloc-tests (Files): Likewise.
23383         * modules/setenv-tests (Files): Likewise.
23384         * modules/sigaction-tests (Files): Likewise.
23385         * modules/signbit-tests (Files): Likewise.
23386         * modules/sleep-tests (Files): Likewise.
23387         * modules/snprintf-posix-tests (Files): Likewise.
23388         * modules/snprintf-tests (Files): Likewise.
23389         * modules/sprintf-posix-tests (Files): Likewise.
23390         * modules/stat-tests (Files): Likewise.
23391         * modules/stat-time-tests (Files): Likewise.
23392         * modules/strcasestr-tests (Files): Likewise.
23393         * modules/strchrnul-tests (Files): Likewise.
23394         * modules/strerror-tests (Files): Likewise.
23395         * modules/striconv-tests (Files): Likewise.
23396         * modules/striconveh-tests (Files): Likewise.
23397         * modules/striconveha-tests (Files): Likewise.
23398         * modules/strsignal-tests (Files): Likewise.
23399         * modules/strstr-tests (Files): Likewise.
23400         * modules/strtod-tests (Files): Likewise.
23401         * modules/strverscmp-tests (Files): Likewise.
23402         * modules/symlink-tests (Files): Likewise.
23403         * modules/symlinkat-tests (Files): Likewise.
23404         * modules/trunc-tests (Files): Likewise.
23405         * modules/truncf-tests (Files): Likewise.
23406         * modules/truncl-tests (Files): Likewise.
23407         * modules/uname-tests (Files): Likewise.
23408         * modules/unicase/cased-tests (Files): Likewise.
23409         * modules/unicase/ignorable-tests (Files): Likewise.
23410         * modules/unicase/locale-language-tests (Files): Likewise.
23411         * modules/unicase/tolower-tests (Files): Likewise.
23412         * modules/unicase/totitle-tests (Files): Likewise.
23413         * modules/unicase/toupper-tests (Files): Likewise.
23414         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23415         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23416         * modules/unicase/u8-casefold-tests (Files): Likewise.
23417         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23418         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23419         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23420         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23421         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23422         * modules/unicase/u8-tolower-tests (Files): Likewise.
23423         * modules/unicase/u8-totitle-tests (Files): Likewise.
23424         * modules/unicase/u8-toupper-tests (Files): Likewise.
23425         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23426         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23427         * modules/unicase/u16-casefold-tests (Files): Likewise.
23428         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23429         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23430         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23431         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23432         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23433         * modules/unicase/u16-tolower-tests (Files): Likewise.
23434         * modules/unicase/u16-totitle-tests (Files): Likewise.
23435         * modules/unicase/u16-toupper-tests (Files): Likewise.
23436         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23437         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23438         * modules/unicase/u32-casefold-tests (Files): Likewise.
23439         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23440         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23441         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23442         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23443         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23444         * modules/unicase/u32-tolower-tests (Files): Likewise.
23445         * modules/unicase/u32-totitle-tests (Files): Likewise.
23446         * modules/unicase/u32-toupper-tests (Files): Likewise.
23447         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23448         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23449         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23450         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23451         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23452         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23453         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23454         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23455         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23456         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23457         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23458         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23459         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23460         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23461         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23462         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23463         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23464         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23465         * modules/unictype/block-list-tests (Files): Likewise.
23466         * modules/unictype/block-of-tests (Files): Likewise.
23467         * modules/unictype/block-test-tests (Files): Likewise.
23468         * modules/unictype/category-C-tests (Files): Likewise.
23469         * modules/unictype/category-Cc-tests (Files): Likewise.
23470         * modules/unictype/category-Cf-tests (Files): Likewise.
23471         * modules/unictype/category-Cn-tests (Files): Likewise.
23472         * modules/unictype/category-Co-tests (Files): Likewise.
23473         * modules/unictype/category-Cs-tests (Files): Likewise.
23474         * modules/unictype/category-L-tests (Files): Likewise.
23475         * modules/unictype/category-Ll-tests (Files): Likewise.
23476         * modules/unictype/category-Lm-tests (Files): Likewise.
23477         * modules/unictype/category-Lo-tests (Files): Likewise.
23478         * modules/unictype/category-Lt-tests (Files): Likewise.
23479         * modules/unictype/category-Lu-tests (Files): Likewise.
23480         * modules/unictype/category-M-tests (Files): Likewise.
23481         * modules/unictype/category-Mc-tests (Files): Likewise.
23482         * modules/unictype/category-Me-tests (Files): Likewise.
23483         * modules/unictype/category-Mn-tests (Files): Likewise.
23484         * modules/unictype/category-N-tests (Files): Likewise.
23485         * modules/unictype/category-Nd-tests (Files): Likewise.
23486         * modules/unictype/category-Nl-tests (Files): Likewise.
23487         * modules/unictype/category-No-tests (Files): Likewise.
23488         * modules/unictype/category-P-tests (Files): Likewise.
23489         * modules/unictype/category-Pc-tests (Files): Likewise.
23490         * modules/unictype/category-Pd-tests (Files): Likewise.
23491         * modules/unictype/category-Pe-tests (Files): Likewise.
23492         * modules/unictype/category-Pf-tests (Files): Likewise.
23493         * modules/unictype/category-Pi-tests (Files): Likewise.
23494         * modules/unictype/category-Po-tests (Files): Likewise.
23495         * modules/unictype/category-Ps-tests (Files): Likewise.
23496         * modules/unictype/category-S-tests (Files): Likewise.
23497         * modules/unictype/category-Sc-tests (Files): Likewise.
23498         * modules/unictype/category-Sk-tests (Files): Likewise.
23499         * modules/unictype/category-Sm-tests (Files): Likewise.
23500         * modules/unictype/category-So-tests (Files): Likewise.
23501         * modules/unictype/category-Z-tests (Files): Likewise.
23502         * modules/unictype/category-Zl-tests (Files): Likewise.
23503         * modules/unictype/category-Zp-tests (Files): Likewise.
23504         * modules/unictype/category-Zs-tests (Files): Likewise.
23505         * modules/unictype/category-and-not-tests (Files): Likewise.
23506         * modules/unictype/category-and-tests (Files): Likewise.
23507         * modules/unictype/category-byname-tests (Files): Likewise.
23508         * modules/unictype/category-name-tests (Files): Likewise.
23509         * modules/unictype/category-none-tests (Files): Likewise.
23510         * modules/unictype/category-of-tests (Files): Likewise.
23511         * modules/unictype/category-or-tests (Files): Likewise.
23512         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23513         * modules/unictype/combining-class-tests (Files): Likewise.
23514         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23515         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23516         * modules/unictype/ctype-blank-tests (Files): Likewise.
23517         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23518         * modules/unictype/ctype-digit-tests (Files): Likewise.
23519         * modules/unictype/ctype-graph-tests (Files): Likewise.
23520         * modules/unictype/ctype-lower-tests (Files): Likewise.
23521         * modules/unictype/ctype-print-tests (Files): Likewise.
23522         * modules/unictype/ctype-punct-tests (Files): Likewise.
23523         * modules/unictype/ctype-space-tests (Files): Likewise.
23524         * modules/unictype/ctype-upper-tests (Files): Likewise.
23525         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23526         * modules/unictype/decimal-digit-tests (Files): Likewise.
23527         * modules/unictype/digit-tests (Files): Likewise.
23528         * modules/unictype/mirror-tests (Files): Likewise.
23529         * modules/unictype/numeric-tests (Files): Likewise.
23530         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23531         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23532         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23533         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23534         Likewise.
23535         * modules/unictype/property-bidi-block-separator-tests (Files):
23536         Likewise.
23537         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23538         Likewise.
23539         * modules/unictype/property-bidi-common-separator-tests (Files):
23540         Likewise.
23541         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23542         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23543         Likewise.
23544         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23545         Likewise.
23546         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23547         Likewise.
23548         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23549         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23550         Likewise.
23551         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23552         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23553         Likewise.
23554         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23555         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23556         * modules/unictype/property-bidi-segment-separator-tests (Files):
23557         Likewise.
23558         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23559         * modules/unictype/property-byname-tests (Files): Likewise.
23560         * modules/unictype/property-combining-tests (Files): Likewise.
23561         * modules/unictype/property-composite-tests (Files): Likewise.
23562         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23563         * modules/unictype/property-dash-tests (Files): Likewise.
23564         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23565         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23566         Likewise.
23567         * modules/unictype/property-deprecated-tests (Files): Likewise.
23568         * modules/unictype/property-diacritic-tests (Files): Likewise.
23569         * modules/unictype/property-extender-tests (Files): Likewise.
23570         * modules/unictype/property-format-control-tests (Files): Likewise.
23571         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23572         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23573         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23574         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23575         * modules/unictype/property-hyphen-tests (Files): Likewise.
23576         * modules/unictype/property-id-continue-tests (Files): Likewise.
23577         * modules/unictype/property-id-start-tests (Files): Likewise.
23578         * modules/unictype/property-ideographic-tests (Files): Likewise.
23579         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23580         * modules/unictype/property-ids-trinary-operator-tests (Files):
23581         Likewise.
23582         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23583         * modules/unictype/property-iso-control-tests (Files): Likewise.
23584         * modules/unictype/property-join-control-tests (Files): Likewise.
23585         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23586         * modules/unictype/property-line-separator-tests (Files): Likewise.
23587         * modules/unictype/property-logical-order-exception-tests (Files):
23588         Likewise.
23589         * modules/unictype/property-lowercase-tests (Files): Likewise.
23590         * modules/unictype/property-math-tests (Files): Likewise.
23591         * modules/unictype/property-non-break-tests (Files): Likewise.
23592         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23593         * modules/unictype/property-numeric-tests (Files): Likewise.
23594         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23595         * modules/unictype/property-other-default-ignorable-code-point-tests
23596         (Files): Likewise.
23597         * modules/unictype/property-other-grapheme-extend-tests (Files):
23598         Likewise.
23599         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23600         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23601         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23602         * modules/unictype/property-other-math-tests (Files): Likewise.
23603         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23604         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23605         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23606         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23607         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23608         * modules/unictype/property-private-use-tests (Files): Likewise.
23609         * modules/unictype/property-punctuation-tests (Files): Likewise.
23610         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23611         * modules/unictype/property-radical-tests (Files): Likewise.
23612         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23613         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23614         * modules/unictype/property-space-tests (Files): Likewise.
23615         * modules/unictype/property-terminal-punctuation-tests (Files):
23616         Likewise.
23617         * modules/unictype/property-test-tests (Files): Likewise.
23618         * modules/unictype/property-titlecase-tests (Files): Likewise.
23619         * modules/unictype/property-unassigned-code-value-tests (Files):
23620         Likewise.
23621         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23622         * modules/unictype/property-uppercase-tests (Files): Likewise.
23623         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23624         * modules/unictype/property-white-space-tests (Files): Likewise.
23625         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23626         * modules/unictype/property-xid-start-tests (Files): Likewise.
23627         * modules/unictype/property-zero-width-tests (Files): Likewise.
23628         * modules/unictype/scripts-tests (Files): Likewise.
23629         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23630         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23631         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23632         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23633         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23634         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23635         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23636         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23637         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23638         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23639         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23640         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23641         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23642         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23643         * modules/uninorm/composition-tests (Files): Likewise.
23644         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23645         * modules/uninorm/decomposition-tests (Files): Likewise.
23646         * modules/uninorm/filter-tests (Files): Likewise.
23647         * modules/uninorm/nfc-tests (Files): Likewise.
23648         * modules/uninorm/nfd-tests (Files): Likewise.
23649         * modules/uninorm/nfkc-tests (Files): Likewise.
23650         * modules/uninorm/nfkd-tests (Files): Likewise.
23651         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23652         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23653         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23654         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23655         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23656         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23657         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23658         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23659         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23660         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23661         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23662         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23663         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23664         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23665         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23666         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23667         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23668         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23669         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23670         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23671         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23672         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23673         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23674         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23675         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23676         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23677         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23678         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23679         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23680         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23681         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23682         * modules/uniwidth/u8-width-tests (Files): Likewise.
23683         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23684         * modules/uniwidth/u16-width-tests (Files): Likewise.
23685         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23686         * modules/uniwidth/u32-width-tests (Files): Likewise.
23687         * modules/uniwidth/width-tests (Files): Likewise.
23688         * modules/unlink-tests (Files): Likewise.
23689         * modules/unsetenv-tests (Files): Likewise.
23690         * modules/usleep-tests (Files): Likewise.
23691         * modules/utimens-tests (Files): Likewise.
23692         * modules/utimensat-tests (Files): Likewise.
23693         * modules/vasnprintf-posix-tests (Files): Likewise.
23694         * modules/vasnprintf-tests (Files): Likewise.
23695         * modules/vasprintf-posix-tests (Files): Likewise.
23696         * modules/vasprintf-tests (Files): Likewise.
23697         * modules/vdprintf-posix-tests (Files): Likewise.
23698         * modules/vfprintf-posix-tests (Files): Likewise.
23699         * modules/vprintf-posix-tests (Files): Likewise.
23700         * modules/vsnprintf-posix-tests (Files): Likewise.
23701         * modules/vsnprintf-tests (Files): Likewise.
23702         * modules/vsprintf-posix-tests (Files): Likewise.
23703         * modules/wcrtomb-tests (Files): Likewise.
23704         * modules/wcsnrtombs-tests (Files): Likewise.
23705         * modules/wcsrtombs-tests (Files): Likewise.
23706         * modules/wctype-tests (Files): Likewise.
23707         * modules/wcwidth-tests (Files): Likewise.
23708         * modules/xmemdup0-tests (Files): Likewise.
23709         * modules/xprintf-posix-tests (Files): Likewise.
23710         * modules/xvasprintf-tests (Files): Likewise.
23711
23712 2009-12-24  Eric Blake  <ebb9@byu.net>
23713
23714         test-nanosleep: fix typo
23715         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23716         patch.
23717         Reported by Bruno Haible.
23718
23719 2009-12-24  Bruno Haible  <bruno@clisp.org>
23720
23721         Reduce namespace pollution on glibc systems.
23722         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23723         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23724         systems.
23725         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23726         <getopt.h> on glibc systems.
23727         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23728         systems.
23729         * lib/fcntl.c: Include <unistd.h> here instead.
23730
23731 2009-12-24  Bruno Haible  <bruno@clisp.org>
23732
23733         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23734
23735 2009-12-24  Eric Blake  <ebb9@byu.net>
23736
23737         tests: add signature checks
23738         * tests/signature.h (SIGNATURE_CHECK): New file.
23739         * modules/atexit-tests (Files): Use it.
23740         * modules/btowc-tests (Files): Likewise.
23741         * modules/canonicalize-lgpl-tests (Files): Likewise.
23742         * modules/ceilf-tests (Files): Likewise.
23743         * modules/ceill-tests (Files): Likewise.
23744         * modules/chown-tests (Files): Likewise.
23745         * modules/dprintf-posix-tests (Files): Likewise.
23746         * modules/dup2-tests (Files): Likewise.
23747         * modules/dup3-tests (Files): Likewise.
23748         * modules/duplocale-tests (Files): Likewise.
23749         * modules/fchdir-tests (Files): Likewise.
23750         * modules/fcntl-tests (Files): Likewise.
23751         * modules/fdopendir-tests (Files): Likewise.
23752         * modules/fflush-tests (Files): Likewise.
23753         * modules/flock-tests (Files): Likewise.
23754         * modules/floorf-tests (Files): Likewise.
23755         * modules/floorl-tests (Files): Likewise.
23756         * modules/fnmatch-tests (Files): Likewise.
23757         * modules/fopen-tests (Files): Likewise.
23758         * modules/fprintf-posix-tests (Files): Likewise.
23759         * modules/freopen-tests (Files): Likewise.
23760         * modules/frexp-nolibm-tests (Files): Likewise.
23761         * modules/frexp-tests (Files): Likewise.
23762         * modules/frexpl-nolibm-tests (Files): Likewise.
23763         * modules/frexpl-tests (Files): Likewise.
23764         * modules/fseek-tests (Files): Likewise.
23765         * modules/fseeko-tests (Files): Likewise.
23766         * modules/fsync-tests (Files): Likewise.
23767         * modules/ftell-tests (Files): Likewise.
23768         * modules/ftello-tests (Files): Likewise.
23769         * modules/futimens-tests (Files): Likewise.
23770         * modules/getaddrinfo-tests (Files): Likewise.
23771         * modules/getcwd-tests (Files): Likewise.
23772         * modules/getdelim-tests (Files): Likewise.
23773         * modules/getdtablesize-tests (Files): Likewise.
23774         * modules/getgroups-tests (Files): Likewise.
23775         * modules/gethostname-tests (Files): Likewise.
23776         * modules/getline-tests (Files): Likewise.
23777         * modules/getopt-posix-tests (Files): Likewise.
23778         * modules/gettimeofday-tests (Files): Likewise.
23779         * modules/glob-tests (Files): Likewise.
23780         * modules/iconv-tests (Files): Likewise.
23781         * modules/inet_ntop-tests (Files): Likewise.
23782         * modules/inet_pton-tests (Files): Likewise.
23783         * modules/isblank-tests (Files): Likewise.
23784         * modules/lchown-tests (Files): Likewise.
23785         * modules/ldexpl-tests (Files): Likewise.
23786         * modules/link-tests (Files): Likewise.
23787         * modules/linkat-tests (Files): Likewise.
23788         * modules/lseek-tests (Files): Likewise.
23789         * modules/lstat-tests (Files): Likewise.
23790         * modules/mbrtowc-tests (Files): Likewise.
23791         * modules/mbsinit-tests (Files): Likewise.
23792         * modules/mbsnrtowcs-tests (Files): Likewise.
23793         * modules/mbsrtowcs-tests (Files): Likewise.
23794         * modules/memchr-tests (Files): Likewise.
23795         * modules/memcmp-tests (Files): Likewise.
23796         * modules/memmem-tests (Files): Likewise.
23797         * modules/memrchr-tests (Files): Likewise.
23798         * modules/mkdir-tests (Files): Likewise.
23799         * modules/mkfifo-tests (Files): Likewise.
23800         * modules/mkfifoat-tests (Files): Likewise.
23801         * modules/mknod-tests (Files): Likewise.
23802         * modules/nanosleep-tests (Files): Likewise.
23803         * modules/nl_langinfo-tests (Files): Likewise.
23804         * modules/obstack-printf-tests (Files): Likewise.
23805         * modules/open-tests (Files): Likewise.
23806         * modules/openat-tests (Files): Likewise.
23807         * modules/perror-tests (Files): Likewise.
23808         * modules/pipe2-tests (Files): Likewise.
23809         * modules/poll-tests (Files): Likewise.
23810         * modules/popen-tests (Files): Likewise.
23811         * modules/posix_spawn-tests (Files): Likewise.
23812         * modules/posix_spawnp-tests (Files): Likewise.
23813         * modules/pread-tests (Files): Likewise.
23814         * modules/printf-posix-tests (Files): Likewise.
23815         * modules/pty-tests (Files): Likewise.
23816         * modules/random_r-tests (Files): Likewise.
23817         * modules/rawmemchr-tests (Files): Likewise.
23818         * modules/readlink-tests (Files): Likewise.
23819         * modules/remove-tests (Files): Likewise.
23820         * modules/rename-tests (Files): Likewise.
23821         * modules/renameat-tests (Files): Likewise.
23822         * modules/rmdir-tests (Files): Likewise.
23823         * modules/round-tests (Files): Likewise.
23824         * modules/roundf-tests (Files): Likewise.
23825         * modules/roundl-tests (Files): Likewise.
23826         * modules/select-tests (Files): Likewise.
23827         * modules/setenv-tests (Files): Likewise.
23828         * modules/sigaction-tests (Files): Likewise.
23829         * modules/sleep-tests (Files): Likewise.
23830         * modules/snprintf-posix-tests (Files): Likewise.
23831         * modules/snprintf-tests (Files): Likewise.
23832         * modules/sprintf-posix-tests (Files): Likewise.
23833         * modules/stat-tests (Files): Likewise.
23834         * modules/strcasestr-tests (Files): Likewise.
23835         * modules/strchrnul-tests (Files): Likewise.
23836         * modules/strerror-tests (Files): Likewise.
23837         * modules/strsignal-tests (Files): Likewise.
23838         * modules/strstr-tests (Files): Likewise.
23839         * modules/strtod-tests (Files): Likewise.
23840         * modules/strverscmp-tests (Files): Likewise.
23841         * modules/symlink-tests (Files): Likewise.
23842         * modules/symlinkat-tests (Files): Likewise.
23843         * modules/times-tests (Files): Likewise.
23844         * modules/trunc-tests (Files): Likewise.
23845         * modules/truncf-tests (Files): Likewise.
23846         * modules/truncl-tests (Files): Likewise.
23847         * modules/tsearch-tests (Files): Likewise.
23848         * modules/uname-tests (Files): Likewise.
23849         * modules/unlink-tests (Files): Likewise.
23850         * modules/unsetenv-tests (Files): Likewise.
23851         * modules/usleep-tests (Files): Likewise.
23852         * modules/utimensat-tests (Files): Likewise.
23853         * modules/vasprintf-tests (Files): Likewise.
23854         * modules/vdprintf-posix-tests (Files): Likewise.
23855         * modules/vfprintf-posix-tests (Files): Likewise.
23856         * modules/vprintf-posix-tests (Files): Likewise.
23857         * modules/vsnprintf-posix-tests (Files): Likewise.
23858         * modules/vsnprintf-tests (Files): Likewise.
23859         * modules/vsprintf-posix-tests (Files): Likewise.
23860         * modules/wcrtomb-tests (Files): Likewise.
23861         * modules/wcsnrtombs-tests (Files): Likewise.
23862         * modules/wcsrtombs-tests (Files): Likewise.
23863         * modules/wcwidth-tests (Files): Likewise.
23864         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23865         * tests/test-isinf.c (isinf): Likewise.
23866         * tests/test-isnan.c (isnan): Likewise.
23867         * tests/test-signbit.c (signbit): Likewise.
23868         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23869         declaration, either as macro or with correct signature.
23870         (select): Ensure function under test is declared with correct
23871         signature in correct header.
23872         * tests/test-atexit.c (atexit): Likewise.
23873         * tests/test-btowc.c (btowc): Likewise.
23874         * tests/test-canonicalize-lgpl.c (realpath)
23875         (canonicalize_file_name): Likewise.
23876         * tests/test-ceilf1.c (ceilf): Likewise.
23877         * tests/test-ceill.c (ceill): Likewise.
23878         * tests/test-chown.c (chown): Likewise.
23879         * tests/test-dprintf-posix.c (dprintf): Likewise.
23880         * tests/test-dup2.c (dup2): Likewise.
23881         * tests/test-dup3.c (dup3): Likewise.
23882         * tests/test-duplocale.c (duplocale): Likewise.
23883         * tests/test-fchdir.c (fchdir): Likewise.
23884         * tests/test-fchownat.c (fchownat): Likewise.
23885         * tests/test-fcntl.c (fcntl): Likewise.
23886         * tests/test-fdopendir.c (fdopendir): Likewise.
23887         * tests/test-fflush.c (fflush): Likewise.
23888         * tests/test-flock.c (flock): Likewise.
23889         * tests/test-floorf1.c (floorf): Likewise.
23890         * tests/test-floorl.c (floorl): Likewise.
23891         * tests/test-fnmatch.c (fnmatch): Likewise.
23892         * tests/test-fopen.c (fopen): Likewise.
23893         * tests/test-fprintf-posix.c (fprintf): Likewise.
23894         * tests/test-freopen.c (freopen): Likewise.
23895         * tests/test-frexp.c (frexp): Likewise.
23896         * tests/test-frexpl.c (frexpl): Likewise.
23897         * tests/test-fseek.c (fseek): Likewise.
23898         * tests/test-fseeko.c (fseeko): Likewise.
23899         * tests/test-fstatat.c (fstatat): Likewise.
23900         * tests/test-fsync.c (fsync): Likewise.
23901         * tests/test-ftell.c (ftell): Likewise.
23902         * tests/test-ftello.c (ftello): Likewise.
23903         * tests/test-futimens.c (futimens): Likewise.
23904         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23905         (gai_strerror): Likewise.
23906         * tests/test-getcwd.c (getcwd): Likewise.
23907         * tests/test-getdelim.c (getdelim): Likewise.
23908         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23909         * tests/test-getgroups.c (getgroups): Likewise.
23910         * tests/test-gethostname.c (gethostname): Likewise.
23911         * tests/test-getline.c (getline): Likewise.
23912         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23913         Likewise.
23914         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23915         * tests/test-glob.c (glob, globfree): Likewise.
23916         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23917         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23918         * tests/test-inet_pton.c (inet_pton): Likewise.
23919         * tests/test-isblank.c (isblank): Likewise.
23920         * tests/test-lchown.c (lchown): Likewise.
23921         * tests/test-ldexpl.c (ldexpl): Likewise.
23922         * tests/test-link.c (link): Likewise.
23923         * tests/test-linkat.c (linkat): Likewise.
23924         * tests/test-lseek.c (lseek): Likewise.
23925         * tests/test-lstat.c (lstat): Likewise.
23926         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23927         * tests/test-mbsinit.c (mbsinit): Likewise.
23928         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23929         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23930         * tests/test-memchr.c (memchr): Likewise.
23931         * tests/test-memcmp.c (memcmp): Likewise.
23932         * tests/test-memmem.c (memmem): Likewise.
23933         * tests/test-memrchr.c (memrchr): Likewise.
23934         * tests/test-mkdir.c (mkdir): Likewise.
23935         * tests/test-mkdirat.c (mkdirat): Likewise.
23936         * tests/test-mkfifo.c (mkfifo): Likewise.
23937         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23938         * tests/test-mknod.c (mknod): Likewise.
23939         * tests/test-nanosleep.c (nanosleep): Likewise.
23940         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23941         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23942         Likewise.
23943         * tests/test-open.c (open): Likewise.
23944         * tests/test-openat.c (openat): Likewise.
23945         * tests/test-perror.c (perror): Likewise.
23946         * tests/test-pipe2.c (pipe2): Likewise.
23947         * tests/test-poll.c (poll): Likewise.
23948         * tests/test-popen.c (popen, pclose): Likewise.
23949         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23950         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23951         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23952         (posix_spawn_file_actions_destroy)
23953         (posix_spawn_file_actions_addclose)
23954         (posix_spawn_file_actions_addopen)
23955         (posix_spawn_file_actions_adddup2): Likewise.
23956         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23957         * tests/test-pread.c (pread): Likewise.
23958         * tests/test-printf-posix.c (printf): Likewise.
23959         * tests/test-pty.c (openpty, forkpty): Likewise.
23960         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23961         (random_r): Likewise.
23962         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23963         * tests/test-readlink.c (readlink): Likewise.
23964         * tests/test-remove.c (remove): Likewise.
23965         * tests/test-rename.c (rename): Likewise.
23966         * tests/test-renameat.c (renameat): Likewise.
23967         * tests/test-rmdir.c (rmdir): Likewise.
23968         * tests/test-round1.c (round): Likewise.
23969         * tests/test-roundf1.c (roundf): Likewise.
23970         * tests/test-roundl.c (roundl): Likewise.
23971         * tests/test-setenv.c (setenv): Likewise.
23972         * tests/test-sigaction.c (sigaction): Likewise.
23973         * tests/test-sleep.c (sleep): Likewise.
23974         * tests/test-snprintf.c (snprintf): Likewise.
23975         * tests/test-sprintf-posix.c (sprintf): Likewise.
23976         * tests/test-stat.c (stat): Likewise.
23977         * tests/test-stpncpy.c (stpncpy): Likewise.
23978         * tests/test-strcasestr.c (strcasestr): Likewise.
23979         * tests/test-strchrnul.c (strchrnul): Likewise.
23980         * tests/test-strerror.c (strerror): Likewise.
23981         * tests/test-strsignal.c (strsignal): Likewise.
23982         * tests/test-strstr.c (strstr): Likewise.
23983         * tests/test-strtod.c (strtod): Likewise.
23984         * tests/test-strverscmp.c (strverscmp): Likewise.
23985         * tests/test-symlink.c (symlink): Likewise.
23986         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23987         * tests/test-times.c (times): Likewise.
23988         * tests/test-trunc1.c (trunc): Likewise.
23989         * tests/test-truncf1.c (truncf): Likewise.
23990         * tests/test-truncl.c (truncl): Likewise.
23991         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23992         Likewise.
23993         * tests/test-uname.c (uname): Likewise.
23994         * tests/test-unlink.c (unlink): Likewise.
23995         * tests/test-unlinkat.c (unlinkat): Likewise.
23996         * tests/test-unsetenv.c (unsetenv): Likewise.
23997         * tests/test-usleep.c (usleep): Likewise.
23998         * tests/test-utimensat.c (utimensat): Likewise.
23999         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
24000         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
24001         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
24002         * tests/test-vprintf-posix.c (vprintf): Likewise.
24003         * tests/test-vsnprintf.c (vsnprintf): Likewise.
24004         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
24005         * tests/test-wcrtomb.c (wcrtomb): Likewise.
24006         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
24007         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
24008         * tests/test-wcwidth.c (wcwidth): Likewise.
24009
24010         build: pull in conditional headers during GNULIB_POSIXCHECK
24011         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
24012         definitions from any conditionally-included headers.
24013         * lib/stdlib.in.h (includes): Likewise.
24014         * lib/unistd.in.h (includes): Likewise.
24015
24016 2009-12-24  Bruno Haible  <bruno@clisp.org>
24017
24018         * tests/test-argv-iter.c: Include header file being tested immediately
24019         after config.h.
24020         * tests/test-base64.c: Likewise.
24021         * tests/test-flock.c: Likewise.
24022         * tests/test-fsync.c: Likewise.
24023         * tests/test-getdate.c: Likewise.
24024         * tests/test-getndelim2.c: Likewise.
24025         * tests/test-isfinite.c: Likewise.
24026         * tests/test-isinf.c: Likewise.
24027         * tests/test-strerror.c: Likewise.
24028         * tests/test-strsignal.c: Likewise.
24029
24030 2009-12-23  Eric Blake  <ebb9@byu.net>
24031
24032         unistd: work around cygwin bug
24033         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
24034         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
24035         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24036
24037 2009-12-23  Bruno Haible  <bruno@clisp.org>
24038
24039         localename: More tests.
24040         * tests/test-localename.c (SIZEOF): New macro.
24041         (categories): New variable.
24042         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
24043         test_locale_name_default): Add test w.r.t. thread locale.
24044         (test_locale_name_thread): New function.
24045         (main): Invoke it.
24046
24047         localename: Make aware of thread locale.
24048         * lib/localename.h (gl_locale_name_thread): New declaration.
24049         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
24050         behaviour with respect to thread locale.
24051         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
24052         <langinfo.h>, glthread/lock.h.
24053         (SIZE_BITS): New macro.
24054         (string_hash): New function.
24055         (struct hash_node): New type.
24056         (HASH_TABLE_SIZE): New macro.
24057         (struniq_hash_table, struniq_lock): New variables.
24058         (struniq): New function.
24059         (gl_locale_name_thread): New function.
24060         (gl_locale_name): Invoke it.
24061         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
24062         * modules/localename (Depends-on): Add lock.
24063         Reported by Mike Gran <spk121@yahoo.com>.
24064
24065 2009-12-23  Eric Blake  <ebb9@byu.net>
24066
24067         va-args: new module
24068         * modules/va-args: New file.
24069         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
24070         * MODULES.html.sh (Core language properties): Mention it.
24071
24072         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
24073         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
24074         named alias for __attribute__((__unused__)).
24075         * lib/chown.c: Update client.
24076         * lib/fchmodat.c: Likewise.
24077         * lib/fts.c: Likewise.
24078         * lib/getdate.y: Likewise.
24079         * lib/getgroups.c: Likewise.
24080         * lib/getopt.c: Likewise.
24081         * lib/getugroups.c: Likewise.
24082         * lib/mkdir.c: Likewise.
24083         * lib/mkfifo.c: Likewise.
24084         * lib/mkfifoat.c: Likewise.
24085         * lib/mknod.c: Likewise.
24086         * lib/mknodat.c: Likewise.
24087         * lib/readlink.c: Likewise.
24088         * lib/se-context.in.h: Likewise.
24089         * lib/se-selinux.in.h: Likewise.
24090         * lib/sockets.c: Likewise.
24091         * lib/symlink.c: Likewise.
24092         * lib/symlinkat.c: Likewise.
24093         * lib/unicodeio.c: Likewise.
24094         * lib/unistr.h: Likewise.
24095         * tests/test-areadlink.c: Likewise.
24096         * tests/test-areadlinkat.c: Likewise.
24097         * tests/test-filenamecat.c: Likewise.
24098         * tests/test-fseeko.c: Likewise.
24099         * tests/test-ftello.c: Likewise.
24100         * tests/test-getdate.c: Likewise.
24101         * tests/test-getgroups.c: Likewise.
24102         * tests/test-gethostname.c: Likewise.
24103         * tests/test-quotearg.c: Likewise.
24104         * tests/test-version-etc.c: Likewise.
24105         * tests/test-xalloc-die.c: Likewise.
24106         * tests/test-xfprintf-posix.c: Likewise.
24107         * tests/test-xprintf-posix.c: Likewise.
24108         * tests/test-xvasprintf.c: Likewise.
24109
24110         tests: avoid compiler warnings
24111         * tests/test-fcntl.c (main): Delete unused parameters.
24112         * tests/test-freopen-safer.c (main): Likewise.
24113         * tests/test-xalloc-die.c (main): Mark unused parameters.
24114         * tests/test-fseeko.c (main): Likewise.
24115         * tests/test-ftello.c (main): Likewise.
24116         * tests/test-nanosleep.c (main): Avoid declaration warning.
24117         * tests/test-sleep.c (main): Likewise.
24118         * tests/test-unsetenv.c (main): Silence warning about string
24119         literal.
24120         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24121
24122 2009-12-23  Bruno Haible  <bruno@clisp.org>
24123
24124         * tests/test-localename.c (test_locale_name): New function, extracted
24125         from main. Also test mixed situations.
24126         (test_locale_name_posix, test_locale_name_environ,
24127         test_locale_name_default): New functions.
24128         (main): Invoke them all.
24129         * modules/localename-tests (configure.ac): Test for newlocale.
24130
24131 2009-12-23  Bruno Haible  <bruno@clisp.org>
24132
24133         unistd: Ensure getcwd gets declared before being overridden.
24134         * lib/unistd.in.h: Conditionally include <io.h>.
24135
24136 2009-12-22  Bruno Haible  <bruno@clisp.org>
24137
24138         wchar: Diagnose broken combination of glibc and gcc versions and flags.
24139         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
24140         (gl_WCHAR_H): Invoke it.
24141         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
24142         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
24143         Reported by Karl Berry <karl@freefriends.org>.
24144
24145 2009-12-22  Eric Blake  <ebb9@byu.net>
24146
24147         math, unistd: avoid redundant includes
24148         * lib/math.in.h (isnan): No need to re-include <math.h>.
24149         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
24150
24151         getsubopt: work around cygwin bug
24152         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
24153         avoid conflicting with system getsubopt.
24154         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
24155         bug.
24156
24157         getopt: synchronize from glibc
24158         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
24159         parameter order.  Adjust all callers.
24160         (_getopt_internal_r, main): Adjust quoting in error messages.
24161         Drop considerations for outdated POSIX 1003.2 error message.
24162         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
24163         callers.
24164         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
24165
24166         test-getopt: test stderr behavior
24167         * modules/getopt-posix-tests (Depends-on): Add dup2.
24168         * tests/test-getopt.c (ASSERT): Avoid stderr.
24169         (main): Move stderr to a temporary file.
24170         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
24171         Instead, add parameter to inform caller if output occurred.
24172         (test_getopt): Adjust all existing tests to expect silence, and
24173         add new tests of leading ":".
24174         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24175         glibc shortcomings with leading "-:" or "+:" in optstring.
24176         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24177         Likewise.
24178         * doc/posix-functions/getopt.texi (getopt): Likewise.
24179
24180         test-getopt: enhance test
24181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
24182         supports optind=0.
24183         * tests/test-getopt.c (OPTIND_MIN): Move...
24184         * tests/test-getopt.h (OPTIND_MIN): ...here.
24185         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
24186         Require that optind=0 works, since modern BSD supports it in
24187         addition to optreset, and since coreutils expects it.
24188         (test_getopt_long_only): New test.
24189         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24190         glibc shortcomings with 'W;', and enforcement of optind=0.
24191         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24192         Likewise.
24193
24194 2009-12-21  Bruno Haible  <bruno@clisp.org>
24195
24196         localename: Improvements for MacOS X and Cygwin.
24197         * lib/localename.h (gl_locale_name_environ): New declaration.
24198         * lib/localename.c (gl_locale_name_environ): New function, extracted from
24199         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
24200         (gl_locale_name_posix): Invoke it.
24201         (gl_locale_name_default): Add comments. Use Windows native API also on
24202         Cygwin.
24203
24204 2009-12-21  Bruno Haible  <bruno@clisp.org>
24205
24206         Update list of Win32 locale ids.
24207         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
24208         (LANG_SAMI): Renamed from LANG_SAAMI.
24209         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
24210         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
24211         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
24212         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
24213         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
24214         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
24215         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
24216         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
24217         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
24218         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
24219         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
24220         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
24221         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
24222         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
24223         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
24224         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
24225         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
24226         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
24227         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
24228         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
24229         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
24230         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
24231         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
24232         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
24233         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
24234         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
24235         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
24236         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
24237         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
24238         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
24239         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
24240         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
24241         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
24242         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
24243         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
24244         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
24245         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
24246         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
24247         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
24248         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
24249         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
24250         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
24251         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
24252         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
24253         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
24254         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
24255         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
24256         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
24257         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
24258         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
24259         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
24260         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
24261         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
24262         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
24263         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
24264         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
24265         Add more languages and countries for Sami, Sorbian. Add more countries
24266         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
24267         for Pashto. Change country for Syriac, Tswana.
24268
24269 2009-12-21  Eric Blake  <ebb9@byu.net>
24270
24271         test-utimens: avoid spurious failure
24272         * tests/test-chown.h (nap): Factor...
24273         * tests/nap.h: ...into new file.
24274         * tests/test-lchown.h (nap): Avoid duplication.
24275         * tests/test-utimens-common.h (nap): Use shared implementation,
24276         necessary on file systems with 1-second resolution.
24277         * modules/chown-tests (Files): Include new file.
24278         * modules/fdutimensat-tests (Files): Likewise.
24279         * modules/futimens-tests (Files): Likewise.
24280         * modules/lchown-tests (Files): Likewise.
24281         * modules/openat-tests (Files): Likewise.
24282         * modules/utimens-tests (Files): Likewise.
24283         * modules/utimensat-tests (Files): Likewise.
24284
24285 2009-12-19  Eric Blake  <ebb9@byu.net>
24286
24287         futimens, utimensat: work around Linux bug
24288         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
24289         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24290         * lib/utimensat.c (rpl_utimensat): Work around it.
24291         * lib/futimens.c (rpl_futimens): Adjust comment.
24292
24293         utimens: work around Linux ctime bug
24294         * lib/utimens.c (detect_ctime_bug): New helper function.
24295         (update_timespec): Differentiate between workaround needed for
24296         this bug vs. what is needed for systems that lack utimensat.
24297         (fdutimens, lutimens): Work around bug.
24298
24299         utimens: check for ctime update
24300         * tests/test-utimens-common.h (check_ctime): Define.
24301         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
24302         * tests/test-futimens.h (test_futimens): Likewise.
24303         * tests/test-lutimens.h (test_lutimens): Likewise.
24304         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24305         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24306
24307 2009-12-19  Bruno Haible  <bruno@clisp.org>
24308
24309         dprintf-posix: Check against memory leak fixed on 2009-12-15.
24310         * tests/test-dprintf-posix2.sh: New file.
24311         * tests/test-dprintf-posix2.c: New file.
24312         * modules/dprintf-posix-tests (Files): Add them.
24313         (configure.ac): Check for getrlimit and setrlimit.
24314         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24315
24316 2009-12-19  Bruno Haible  <bruno@clisp.org>
24317
24318         fprintf-posix: Check against memory leak fixed on 2009-12-15.
24319         * tests/test-fprintf-posix3.sh: New file.
24320         * tests/test-fprintf-posix3.c: New file.
24321         * modules/fprintf-posix-tests (Files): Add them.
24322         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24323
24324 2009-12-19  Eric Blake  <ebb9@byu.net>
24325
24326         dirfd: fix prototype
24327         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
24328         * lib/dirfd.c (dirfd): Likewise.
24329
24330         canonicalize: reduce memory usage
24331         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24332         allocation to size.
24333         Reported by Solar Designer <solar@openwall.com>.
24334
24335 2009-12-19  Bruno Haible  <bruno@clisp.org>
24336
24337         New module attribute 'Applicability'.
24338         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24339         * gnulib-tool: New option --extract-applicability.
24340         (func_usage): Document it.
24341         (sed_extract_prog): Recognize it.
24342         (func_get_applicability): New function.
24343         (func_import): Generalize handling of 'link-warning' module.
24344         * modules/link-warning (Applicability): New section.
24345         * modules/arg-nonnull (Applicability): New section.
24346         Repoted by Simon Josefsson <simon@josefsson.org>.
24347
24348 2009-12-19  Bruno Haible  <bruno@clisp.org>
24349
24350         fflush: tweak
24351         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24352         * lib/fseeko.c (rpl_fseeko): Likewise.
24353
24354 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24355
24356         * lib/gl_list.h: Fix typo in comment.
24357
24358 2009-12-16  Eric Blake  <ebb9@byu.net>
24359
24360         fcntl: use to simplify other modules
24361         * modules/cloexec (Depends-on): Add fcntl.
24362         * modules/fchdir (Depends-on): Likewise.
24363         * modules/fd-safer-flag (Depends-on): Likewise.
24364         * modules/unistd-safer (Depends-on): Likewise.
24365         * modules/dup3 (configure.ac): Set module indicator.
24366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24367         missing.
24368         * lib/fchdir.c (_gl_register_dup): Fix comment.
24369         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24370         * lib/dup-safer.c (dup_safer): Likewise.
24371         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24372         * lib/dup3.c (dup3): Likewise.
24373         * tests/test-fchdir.c (main): Enhance test.
24374         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24375
24376         fcntl: port portions of fcntl to mingw
24377         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24378         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24379         replacement for mingw.
24380         * modules/fcntl (Description): Update.
24381         (Depends-on): Add dup2.
24382         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24383         * modules/fcntl-h (Makefile.am): Substitute it.
24384         * lib/fcntl.in.h (fcntl): Update declaration.
24385         (F_DUPFD, F_GETFD): New macros, when needed.
24386         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24387         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24388         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24389         we now guarantee.
24390
24391         fcntl: work around cygwin bug in F_DUPFD
24392         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24393         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24394         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24395         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24396         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24397
24398         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24399         * modules/fcntl (Files): List new files.
24400         (configure.ac): Run a test.
24401         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24402         * lib/fcntl.c (rpl_fcntl): Likewise.
24403         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24404         (gl_FCNTL_H): Always replace fcntl.h.
24405         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24406         * lib/fcntl.in.h (fcntl): Declare replacement.
24407         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24408         needed, plus a witness.
24409         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24410         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24411         * tests/test-fcntl.c: New file.
24412         * modules/fcntl-tests: Likewise.
24413
24414         binary-io: avoid potential compilation warning
24415         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24416         directives.
24417
24418         fflush: avoid compilation error on NetBSD
24419         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24420         between off_t and fpos_t, since the latter is sometimes a struct.
24421         * lib/fseeko.c (rpl_fseeko): Likewise.
24422         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24423
24424 2009-12-15  Eric Blake  <ebb9@byu.net>
24425
24426         fcntl-h, stdio, sys_ioctl: fix declarations
24427         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24428         function must not take arguments.
24429         * lib/sys_ioctl.in.h (ioctl): Likewise.
24430         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24431         (open): Add a link warning.
24432
24433 2009-12-15  Jim Meyering  <meyering@redhat.com>
24434
24435         areadlink, areadlink-with-size: relax license to LGPLv2+
24436         * modules/areadlink (License): Relax to LGPLv2+.
24437         * modules/areadlink-with-size (License): Likewise.
24438
24439 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24440             Bruno Haible  <bruno@clisp.org>
24441
24442         *printf: Fix memory leak.
24443         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24444         * lib/vfprintf.c (vfprintf): Likewise.
24445         * lib/dprintf.c (dprintf): Likewise.
24446         * lib/vdprintf.c (vdprintf): Likewise.
24447
24448 2009-12-14  Eric Blake  <ebb9@byu.net>
24449
24450         accept4: adjust module dependencies
24451         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24452
24453         utimens: one more try at avoiding compiler warning
24454         * lib/utimens.c (lutimens): Lower scope of result.
24455
24456 2009-12-13  Bruno Haible  <bruno@clisp.org>
24457
24458         Move the malloc checking from module 'list' to new module 'xlist'.
24459         * modules/xlist: New file.
24460         * lib/gl_xlist.h: New file.
24461         * lib/gl_xlist.c: New file.
24462         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24463         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24464         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24465         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24466         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24467         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24468         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24469         gl_sortedlist_nx_add): New declarations.
24470         (struct gl_list_implementation): Rename and change methods accordingly.
24471         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24472         (gl_list_nx_create): Renamed from gl_list_create.
24473         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24474         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24475         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24476         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24477         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24478         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24479         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24480         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24481         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24482         gl_list_create_empty.
24483         (gl_list_nx_create): Renamed from gl_list_create.
24484         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24485         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24486         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24487         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24488         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24489         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24490         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24491         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24492         * lib/gl_array_list.c: Don't include xalloc.h.
24493         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24494         NULL upon out-of-memory.
24495         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24496         out-of-memory.
24497         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24498         Change return type to 'int'.
24499         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24500         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24501         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24502         upon out-of-memory.
24503         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24504         upon out-of-memory.
24505         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24506         upon out-of-memory.
24507         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24508         upon out-of-memory.
24509         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24510         out-of-memory.
24511         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24512         Update.
24513         (gl_array_list_implementation): Update.
24514         * lib/gl_carray_list.c: Don't include xalloc.h.
24515         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24516         Return NULL upon out-of-memory.
24517         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24518         out-of-memory.
24519         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24520         Change return type to 'int'.
24521         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24522         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24523         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24524         upon out-of-memory.
24525         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24526         upon out-of-memory.
24527         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24528         out-of-memory.
24529         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24530         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24531         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24532         Update.
24533         (gl_carray_list_implementation): Update.
24534         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24535         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24536         gl_linked_create_empty. Return NULL upon out-of-memory.
24537         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24538         out-of-memory.
24539         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24540         Change return type to 'int'. Return -1 upon out-of-memory.
24541         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24542         out-of-memory.
24543         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24544         upon out-of-memory.
24545         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24546         upon out-of-memory.
24547         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24548         NULL upon out-of-memory.
24549         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24550         upon out-of-memory.
24551         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24552         out-of-memory.
24553         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24554         Update.
24555         * lib/gl_linked_list.c: Don't include xalloc.h.
24556         (gl_linked_list_implementation): Update.
24557         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24558         (add_to_bucket): Change return type to 'int'.
24559         (gl_linkedhash_list_implementation): Update.
24560         * lib/gl_anytree_list1.h (free_subtree): New function.
24561         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24562         gl_tree_create_empty. Return NULL upon out-of-memory.
24563         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24564         Change return type to 'int'. Return -1 upon out-of-memory.
24565         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24566         out-of-memory.
24567         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24568         (gl_tree_remove_node): New function, moved here from
24569         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24570         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24571         Update.
24572         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24573         malloc, not xmalloc. Return NULL upon out-of-memory.
24574         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24575         out-of-memory.
24576         (gl_tree_remove_node_from_tree): New function, extracted from
24577         gl_tree_remove_node.
24578         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24579         upon out-of-memory.
24580         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24581         out-of-memory.
24582         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24583         upon out-of-memory.
24584         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24585         upon out-of-memory.
24586         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24587         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24588         not xmalloc. Return NULL upon out-of-memory.
24589         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24590         out-of-memory.
24591         (gl_tree_remove_node_from_tree): New function, extracted from
24592         gl_tree_remove_node.
24593         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24594         upon out-of-memory.
24595         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24596         out-of-memory.
24597         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24598         upon out-of-memory.
24599         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24600         upon out-of-memory.
24601         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24602         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24603         gl_anytree_list1.h before gl_anyavltree_list2.h.
24604         (gl_avltree_list_implementation): Update.
24605         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24606         gl_anytree_list1.h before gl_anyavltree_list2.h.
24607         (gl_rbtree_list_implementation): Update.
24608         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24609         Change return type to 'int'. Return -1 upon out-of-memory. Use
24610         __builtin_expect.
24611         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24612         (gl_avltreehash_list_implementation): Update.
24613         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24614         (gl_rbtreehash_list_implementation): Update.
24615         * modules/array-list (Depends-on): Remove xalloc.
24616         * modules/carray-list (Depends-on): Likewise.
24617         * modules/linked-list (Depends-on): Likewise.
24618         * modules/linkedhash-list (Depends-on): Likewise.
24619         * modules/avltree-list (Depends-on): Likewise.
24620         * modules/rbtree-list (Depends-on): Likewise.
24621         * modules/avltreehash-list (Depends-on): Likewise.
24622         * modules/rbtreehash-list (Depends-on): Likewise.
24623
24624         * modules/xsublist: New file.
24625         * lib/gl_xsublist.h: New file.
24626         * lib/gl_xsublist.c: New file.
24627         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24628         (gl_sublist_nx_create): New declaration.
24629         * lib/gl_sublist.c: Don't include xalloc.h.
24630         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24631         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24632         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24633         Change return type to 'int'. Return -1 upon out-of-memory.
24634         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24635         upon out-of-memory.
24636         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24637         NULL upon out-of-memory.
24638         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24639         upon out-of-memory.
24640         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24641         NULL upon out-of-memory.
24642         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24643         NULL upon out-of-memory.
24644         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24645         upon out-of-memory.
24646         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24647         (gl_sublist_list_implementation): Update.
24648         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24649         upon out-of-memory.
24650         * modules/sublist (Depends-on): Remove xalloc.
24651
24652         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24653         * tests/test-carray_list.c: Likewise.
24654         * tests/test-linked_list.c: Likewise.
24655         * tests/test-linkedhash_list.c: Likewise.
24656         * tests/test-avltree_list.c: Likewise.
24657         * tests/test-rbtree_list.c: Likewise.
24658         * tests/test-avltreehash_list.c: Likewise.
24659         * tests/test-rbtreehash_list.c: Likewise.
24660         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24661         * modules/carray-list-tests (Makefile.am): Likewise.
24662         * modules/linked-list-tests (Makefile.am): Likewise.
24663         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24664         * modules/avltree-list-tests (Makefile.am): Likewise.
24665         * modules/rbtree-list-tests (Makefile.am): Likewise.
24666         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24667         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24668
24669         * NEWS: Mention the changes.
24670
24671         * lib/clean-temp.c: Include gl_xlist.h.
24672         * modules/clean-temp (Depends-on): Add xlist.
24673
24674         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24675         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24676
24677         * tests/test-array_oset.c: Include gl_xlist.h.
24678         * modules/array-oset-tests (Depends-on): Add xlist.
24679
24680         Reported by José E. Marchesi <jemarch@gnu.org>.
24681
24682 2009-12-13  Bruno Haible  <bruno@clisp.org>
24683
24684         Move the malloc checking from module 'oset' to new module 'xoset'.
24685         * modules/xoset: New file.
24686         * lib/gl_xoset.h: New file.
24687         * lib/gl_xoset.c: New file.
24688         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24689         declarations.
24690         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24691         (struct gl_oset_implementation): Rename and change methods accordingly.
24692         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24693         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24694         'int'. Mark as __warn_unused_result__.
24695         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24696         gl_oset_create_empty.
24697         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24698         'int'.
24699         * lib/gl_array_oset.c: Don't include xalloc.h.
24700         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24701         malloc, not xmalloc.
24702         (grow): Change return type to 'int'. Don't call xalloc_die.
24703         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24704         to 'int'.
24705         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24706         'int'.
24707         (gl_array_oset_implementation): Update.
24708         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24709         gl_tree_create_empty.
24710         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24711         'int'.
24712         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24713         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24714         xmalloc.
24715         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24716         not xmalloc.
24717         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24718         xmalloc.
24719         (gl_avltree_oset_implementation): Update.
24720         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24721         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24722         xmalloc.
24723         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24724         not xmalloc.
24725         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24726         xmalloc.
24727         (gl_rbtree_oset_implementation): Update.
24728         * modules/array-oset (Depends-on): Remove xalloc.
24729         * modules/avltree-oset (Depends-on): Likewise.
24730         * modules/rbtree-oset (Depends-on): Likewise.
24731         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24732         * tests/test-avltree_oset.c: Likewise.
24733         * tests/test-rbtree_oset.c: Likewise.
24734         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24735         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24736         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24737         * NEWS: Mention the change.
24738
24739 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24740
24741         maint.mk: allow a project to override release-prep commands
24742         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24743         commands into a new rule.
24744         (release-prep): New rule.
24745         (release-prep-hook): New overridable variable.
24746
24747 2009-12-13  Bruno Haible  <bruno@clisp.org>
24748
24749         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24750
24751 2009-12-13  Jim Meyering  <meyering@redhat.com>
24752
24753         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24754         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24755
24756 2009-12-12  Bruno Haible  <bruno@clisp.org>
24757
24758         duplocale: Tweak.
24759         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24760
24761 2009-12-12  Karl Berry  <karl@gnu.org>
24762
24763         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24764
24765 2009-12-12  Bruno Haible  <bruno@clisp.org>
24766
24767         * m4/po.m4: Undo incorrect untabification.
24768
24769 2009-12-12  Bruno Haible  <bruno@clisp.org>
24770
24771         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24772         * modules/c-strtod (Depends-on): Add locale.
24773         * modules/c-strtold (Depends-on): Likewise.
24774
24775 2009-12-12  Bruno Haible  <bruno@clisp.org>
24776
24777         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24778
24779 2009-12-11  Eric Blake  <ebb9@byu.net>
24780
24781         setenv: relax requirement in light of POSIX ruling
24782         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24783         not NULL.
24784         * tests/test-setenv.c (main): Relax test.
24785         * tests/test-unsetenv.c (main): Likewise.
24786         * doc/posix-functions/setenv.texi (setenv): Document this.
24787         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24788
24789 2009-12-11  Bruno Haible  <bruno@clisp.org>
24790
24791         New module 'fd-safer-flag'.
24792         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24793         * lib/dup-safer.c (dup_safer_flag): Remove function.
24794         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24795         * lib/fd-safer.c (fd_safer_flag): Remove function.
24796         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24797         * modules/cloexec (configure.ac): Drop indicator macro.
24798         * modules/fd-safer-flag: New file.
24799         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24800         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24801         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24802
24803 2009-12-11  Bruno Haible  <bruno@clisp.org>
24804
24805         Tests for module 'nl_langinfo'.
24806         * modules/nl_langinfo-tests: New file.
24807         * tests/test-nl_langinfo.sh: New file.
24808         * tests/test-nl_langinfo.c: New file.
24809
24810         New module 'nl_langinfo'.
24811         * lib/nl_langinfo.c: New file.
24812         * m4/nl_langinfo.m4: New file.
24813         * modules/nl_langinfo: New file.
24814         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24815
24816 2009-12-11  Bruno Haible  <bruno@clisp.org>
24817
24818         Tests for module 'langinfo'.
24819         * modules/langinfo-tests: New file.
24820         * tests/test-langinfo.c: New file.
24821
24822         New module 'langinfo'.
24823         * lib/langinfo.in.h: New file.
24824         * m4/langinfo_h.m4: New file.
24825         * modules/langinfo: New file.
24826         * doc/posix-headers/langinfo.texi: Mention the new module.
24827
24828 2009-12-11  Bruno Haible  <bruno@clisp.org>
24829
24830         * lib/config.charset: Untabify.
24831
24832 2009-12-11  Bruno Haible  <bruno@clisp.org>
24833
24834         * modules/unistd-safer (configure.ac): Drop indicator macro.
24835
24836 2009-12-11  Bruno Haible  <bruno@clisp.org>
24837
24838         Move pipe2-safer code to its own file.
24839         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24840         * lib/pipe-safer.c (pipe2_safer): Remove function.
24841         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24842         (Makefile.am): Add it to lib_SOURCES.
24843
24844 2009-12-10  Bruno Haible  <bruno@clisp.org>
24845
24846         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24847
24848 2009-12-10  Bruno Haible  <bruno@clisp.org>
24849
24850         Declare which arguments expect non-NULL values, for GCC and clang.
24851         * build-aux/arg-nonnull.h: New file.
24852         * modules/arg-nonnull: New file.
24853         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24854         (inet_ntop, inet_pton): Use it.
24855         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24856         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24857         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24858         (open, openat): Use it.
24859         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24860         (fnmatch): Use it.
24861         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24862         (getopt, getopt_long, getopt_long_only): Use it.
24863         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24864         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24865         Use it.
24866         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24867         (iconv_open): Use it.
24868         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24869         (strtoimax, strtoumax): Use it.
24870         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24871         (duplocale): Use it.
24872         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24873         (frexp, frexpl): Use it.
24874         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24875         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24876         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24877         (tsearch, tfind, tdelete, twalk): Use it.
24878         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24879         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24880         sigpending): Use it.
24881         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24882         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24883         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24884         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24885         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24886         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24887         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24888         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24889         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24890         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24891         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24892         Use it.
24893         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24894         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24895         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24896         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24897         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24898         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24899         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24900         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24901         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24902         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24903         strtoull, unsetenv): Use it.
24904         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24905         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24906         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24907         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24908         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24909         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24910         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24911         (strcasecmp, strncasecmp): Use it.
24912         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24913         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24914         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24915         rpl_setsockopt): Use it.
24916         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24917         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24918         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24919         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24920         (gettimeofday): Use it.
24921         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24922         (times): Use it.
24923         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24924         (uname): Use it.
24925         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24926         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24927         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24928         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24929         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24930         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24931         unlinkat, write): Use it.
24932         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24933         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24934         * lib/argv-iter.h: Include arg-nonnull.h.
24935         (_ATTRIBUTE_NONNULL_): Remove macro.
24936         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24937         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24938         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24939         optimization.
24940         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24941         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24942         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24943         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24944         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24945         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24946         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24947         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24948         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24949         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24950         * modules/dirent (Depends-on): Add arg-nonnull.
24951         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24952         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24953         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24954         * modules/fnmatch (Depends-on): Add arg-nonnull.
24955         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24956         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24957         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24958         * modules/glob (Depends-on): Add arg-nonnull.
24959         (Makefile.am): Insert arg-nonnull.h into glob.h.
24960         * modules/iconv_open (Depends-on): Add arg-nonnull.
24961         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24962         * modules/inttypes (Depends-on): Add arg-nonnull.
24963         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24964         * modules/locale (Depends-on): Add arg-nonnull.
24965         (Makefile.am): Insert arg-nonnull.h into locale.h.
24966         * modules/math (Depends-on): Add arg-nonnull.
24967         (Makefile.am): Insert arg-nonnull.h into math.h.
24968         * modules/netdb (Depends-on): Add arg-nonnull.
24969         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24970         * modules/search (Depends-on): Add arg-nonnull.
24971         (Makefile.am): Insert arg-nonnull.h into search.h.
24972         * modules/signal (Depends-on): Add arg-nonnull.
24973         (Makefile.am): Insert arg-nonnull.h into signal.h.
24974         * modules/spawn (Depends-on): Add arg-nonnull.
24975         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24976         * modules/stdio (Depends-on): Add arg-nonnull.
24977         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24978         * modules/stdlib (Depends-on): Add arg-nonnull.
24979         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24980         * modules/string (Depends-on): Add arg-nonnull.
24981         (Makefile.am): Insert arg-nonnull.h into string.h.
24982         * modules/strings (Depends-on): Add arg-nonnull.
24983         (Makefile.am): Insert arg-nonnull.h into strings.h.
24984         * modules/sys_socket (Depends-on): Add arg-nonnull.
24985         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24986         * modules/sys_stat (Depends-on): Add arg-nonnull.
24987         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24988         * modules/sys_time (Depends-on): Add arg-nonnull.
24989         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24990         * modules/sys_times (Depends-on): Add arg-nonnull.
24991         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24992         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24993         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24994         * modules/time (Depends-on): Add arg-nonnull.
24995         (Makefile.am): Insert arg-nonnull.h into time.h.
24996         * modules/unistd (Depends-on): Add arg-nonnull.
24997         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24998         * modules/wchar (Depends-on): Add arg-nonnull.
24999         (Makefile.am): Insert arg-nonnull.h into wchar.h.
25000         * modules/argv-iter (Depends-on): Add arg-nonnull.
25001         * tests/test-canonicalize.c (null_ptr): New function.
25002         (main): Use it.
25003         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
25004         (main): Use it.
25005         * tests/test-memmem.c (null_ptr): New function.
25006         (main): Use it.
25007         Reported by Jim Meyering.
25008
25009 2009-12-10  Bruno Haible  <bruno@clisp.org>
25010
25011         Use spaces for indentation, not tabs.
25012         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25013         * m4/*.m4: Untabify.
25014         * build-aux/*.h: Untabify.
25015         * tests/**/*.[hc]: Untabify.
25016         * README: New section "Indent with spaces, not TABs", based on
25017         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
25018         * NEWS: Mention the change.
25019
25020 2009-12-10  Bruno Haible  <bruno@clisp.org>
25021
25022         pty test: Fix link error.
25023         * modules/pty-tests (Makefile.am): Add the default LDADD value to
25024         test_pty_LDADD.
25025
25026 2009-12-07  Simon Josefsson  <simon@josefsson.org>
25027
25028         * modules/pty: New file.
25029         * modules/pty-tests: New file.
25030         * m4/pty.m4: New file.
25031         * tests/test-pty.c: New file.
25032         * doc/glibc-headers/pty.texi: Modified.
25033         * doc/glibc-functions/forkpty.texi: Modified.
25034         * doc/glibc-functions/openpty.texi: Modified.
25035
25036 2009-12-10  Bruno Haible  <bruno@clisp.org>
25037
25038         Avoid syntax error in C++ mode.
25039         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
25040
25041 2009-12-10  Bruno Haible  <bruno@clisp.org>
25042
25043         Use sed with option -e.
25044         * gnulib-tool (func_version, func_emit_copyright_notice,
25045         func_emit_initmacro_end, func_import, func_create_testdir): Pass
25046         option -e to sed.
25047         * modules/link-warning (Makefile.am): Likewise.
25048
25049 2009-12-10  Jim Meyering  <meyering@redhat.com>
25050
25051         mgetgroups: do not write bytes beyond end of malloc'd buffer
25052         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
25053         username, we call getgroups with a one-element-shorter buffer,
25054         but still told it the length was original, max_n_groups.
25055
25056 2009-12-09  Eric Blake  <ebb9@byu.net>
25057
25058         cloexec: relax license
25059         * modules/cloexec (Maintainer): Add myself.
25060         (License): Use LGPL, not GPL.
25061
25062         link-warning: optimize generation
25063         * modules/link-warning (Makefile.am): Reduce process usage.
25064
25065 2009-12-09  Bruno Haible  <bruno@clisp.org>
25066
25067         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
25068         workaround was added on 2009-11-17.
25069
25070 2009-12-09  Jim Meyering  <meyering@redhat.com>
25071             Bruno Haible  <bruno@clisp.org>
25072
25073         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
25074         * modules/link-warning (Makefile.am): Make the comment-removing sed
25075         command more robust in the face of bootstrap-prepended comment lines.
25076
25077 2009-12-09  Bruno Haible  <bruno@clisp.org>
25078
25079         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
25080         most one group.
25081
25082 2009-12-09  Simon Josefsson <simon@josefsson.org>
25083             Bruno Haible  <bruno@clisp.org>
25084
25085         * build-aux/link-warning.h: Add copyright notice.
25086         * modules/link-warning (Makefile.am): Generate link-warning.h from
25087         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
25088         * NEWS: Mention change in link-warning module.
25089         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
25090         * modules/dirent (Makefile.am): Add dependency to dirent.h.
25091         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
25092         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
25093         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
25094         * modules/math (Makefile.am): Add dependency to math.h.
25095         * modules/search (Makefile.am): Add dependency to search.h.
25096         * modules/signal (Makefile.am): Add dependency to signal.h.
25097         * modules/spawn (Makefile.am): Add dependency to spawn.h.
25098         * modules/stdio (Makefile.am): Add dependency to stdio.h.
25099         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
25100         * modules/string (Makefile.am): Add dependency to string.h.
25101         * modules/strings (Makefile.am): Add dependency to strings.h.
25102         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
25103         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
25104         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
25105         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
25106         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
25107         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
25108         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
25109         * modules/unistd (Makefile.am): Add dependency to unistd.h.
25110         * modules/wchar (Makefile.am): Add dependency to wchar.h.
25111
25112 2009-12-09  Bruno Haible  <bruno@clisp.org>
25113
25114         fchdir: Optimize away rpl_fstat when possible.
25115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
25116         REPLACE_OPEN_DIRECTORY.
25117         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
25118
25119 2009-12-09  Bruno Haible  <bruno@clisp.org>
25120
25121         * lib/fchdir.c: Update comment.
25122
25123 2009-12-09  Bruno Haible  <bruno@clisp.org>
25124
25125         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
25126
25127 2009-12-08  Eric Blake  <ebb9@byu.net>
25128
25129         fchdir: avoid memory leak on re-registration.
25130         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
25131
25132 2009-12-08  Jim Meyering  <meyering@redhat.com>
25133
25134         init.sh: avoid Solaris 10 /bin/sh portability problem
25135         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
25136         sourced script:
25137           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
25138           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
25139           bar
25140         tests/init.sh relied on that, accepting a --set-path=DIR argument,
25141         and two tests used that idiom.
25142         * tests/init.sh: Update suggested usage comments.
25143         (path_prepend_): New function, to be used in place
25144         of the --src-path=DIR option.
25145         (setup_): Move PATH-prepending code into path_prepend_.
25146         * tests/test-pread.sh: Adapt to new usage.
25147         * tests/test-xalloc-die.sh: Likewise.
25148
25149 2009-12-08  Simon Josefsson  <simon@josefsson.org>
25150
25151         * doc/gnulib.texi (Glibc pty.h): Add.
25152         * doc/glibc-functions/forkpty.texi: Add.
25153         * doc/glibc-functions/openpty.texi: Add.
25154         Suggested by Bruno Haible.
25155
25156 2009-12-08  Eric Blake  <ebb9@byu.net>
25157
25158         fchdir: fix logic bugs
25159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
25160         * tests/test-fchdir.c (main): Enhance test.
25161         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
25162         is in use.
25163
25164         dup2: fix logic bugs
25165         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
25166         REPLACE_DUP2 to decide when rpl_dup2 is needed.
25167         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
25168         exists.
25169         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
25170
25171 2009-12-07  Eric Blake  <ebb9@byu.net>
25172
25173         unlink: fix m4 detection
25174         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
25175
25176         unistd-safer: add unit test
25177         * modules/unistd-safer-tests: New file.
25178         * tests/test-dup-safer.c: Likewise.
25179         * tests/test-cloexec.c (setmode): Avoid compiler warning.
25180         * tests/test-dup2.c (setmode): Likewise.
25181         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
25182
25183         cloexec: preserve text vs. binary across dup_cloexec
25184         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
25185         mode.
25186         * modules/dup2-tests (Depends-on): Add binary-io.
25187         * modules/cloexec-tests (Depends-on): Likewise.
25188         * tests/test-dup2.c (setmode, is_mode): New helpers.
25189         (main): Add tests that translation mode is preserved.
25190         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
25191         Reported by Bruno Haible.
25192
25193         mgetgroups: reduce duplicate listings
25194         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
25195         resulting array.
25196         * tests/test-chown.h (test_chown): Simplify client.
25197         * tests/test-lchown.h (test_lchown): Likewise.
25198
25199 2009-12-06  Bruno Haible  <bruno@clisp.org>
25200
25201         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
25202         value.
25203
25204 2009-12-06  Bruno Haible  <bruno@clisp.org>
25205
25206         * lib/progname.c: Include stdio.h, stdlib.h.
25207         (set_program_name): Reject a NULL argument.
25208
25209 2009-12-05  Eric Blake  <ebb9@byu.net>
25210
25211         pipe2-safer: new module
25212         * modules/pipe2-safer: New file.
25213         * lib/unistd-safer.h (pipe2_safer): New prototype.
25214         * lib/unistd--.h (pipe2): New wrapper.
25215         * lib/pipe-safer.c (pipe2_safer): New function.
25216         * modules/pipe (Depends-on): Add pipe2-safer.
25217         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
25218
25219         stdlib-safer: preserve cloexec flag for mkostemp[s]
25220         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
25221         fd_safer_flag.
25222
25223         unistd-safer: allow preservation of cloexec status via flag
25224         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
25225         prototypes.
25226         * lib/dup-safer.c (dup_safer_flag): New function.
25227         * lib/fd-safer.c (fd_safer_flag): Likewise.
25228         * modules/cloexec (configure.ac): Set witness.
25229
25230         test-dup2: enhance test
25231         * modules/dup2-tests (Depends-on): Add cloexec.
25232         * tests/test-dup2.c (main): Enhance test.
25233
25234         cloexec: add dup_cloexec
25235         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
25236         header and comments.
25237         * lib/cloexec.c (set_cloexec_flag): Add comments.
25238         (dup_cloexec): New function, with mingw implementation borrowed
25239         from...
25240         * lib/w32spawn.h (dup_noinherit): ...here.
25241         * modules/execute (Depends-on): Add cloexec.
25242         * modules/pipe (Depends-on): Likewise.
25243         * modules/cloexec (Depends-on): Add dup2.
25244         * modules/cloexec-tests (Files): New file.
25245         * tests/test-cloexec.c: Likewise.
25246
25247         test-xalloc-die: fix test for mingw
25248         * modules/xalloc-die-tests (Files): Add tests/init.sh.
25249         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
25250         directory and .exe suffix off argv[0] output.
25251
25252         test-fseeko: fix test for mingw
25253         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
25254         than undefining fseek, so test will pass on mingw.
25255
25256 2009-12-05  Bruno Haible  <bruno@clisp.org>
25257
25258         * lib/progname.h (set_program_name): Clarify specification.
25259         * lib/progname.c (set_program_name): Likewise.
25260         Reported by Jim Meyering.
25261
25262 2009-12-05  Jim Meyering  <meyering@redhat.com>
25263
25264         maint.mk: backslash-escape parens in default regexp
25265         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
25266         backslash-escape the literal parentheses.
25267
25268         maint.mk: news-date-check: use grep -E
25269         * top/maint.mk (today): Define a Make variable, not a...
25270         (news-date-check): ...shell variable.
25271         (news-date-regexp): Use the Make variable.
25272         Use grep's -E option.  Change the failing diagnostic to mention
25273         the variable, $(news-date-regexp).
25274
25275 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
25276
25277         maintainer-makefile: allow customization of NEWS entry format
25278         * top/maint.mk (news-date-regexp): New overridable variable.
25279         (news-date-check): Use it.
25280
25281 2009-12-04  Eric Blake  <ebb9@byu.net>
25282
25283         mgetgroups: add xgetgroups, and avoid ENOSYS failures
25284         * lib/mgetgroups.h (xgetgroups): New prototype.
25285         * lib/mgetgroups.c (xgetgroups): New wrapper.
25286         (mgetgroups): Handle ENOSYS.
25287         * modules/mgetgroups (Depends-on): Add realloc.
25288         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
25289
25290         mgetgroups: avoid argument promotion issues with -1
25291         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
25292         for invalid gid_t.
25293         * tests/test-chown.h (getegid, test_chown): Likewise.
25294         * tests/test-lchown.h (getegid, test_lchown): Likewise.
25295
25296 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
25297
25298         exclude: Fix header file problems.
25299         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
25300
25301 2009-12-01  Jim Meyering  <meyering@redhat.com>
25302
25303         fts: fts_open: do not let an empty string cause immediate failure
25304         This is required in support of GNU rm, for which the command
25305         "rm A '' B" must process and remove both A and B, in spite of
25306         the empty string argument.
25307         * lib/fts.c (fts_open): Do not let the presence of an empty string
25308         cause fts_open to fail immediately.  Most fts-using tools must be
25309         able to process all arguments, in order, and can be expected to
25310         diagnose such arguments themselves.
25311
25312 2009-11-30  Eric Blake  <ebb9@byu.net>
25313
25314         utimens: fix compilation error
25315         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
25316         Declare variable at right scope.
25317
25318 2009-11-29  Jim Meyering  <meyering@redhat.com>
25319
25320         bootstrap: handle perl-5.11's changed --version output
25321         * build-aux/bootstrap (get_version): Handle perl separately,
25322         since perl-5.11's --version output is different.
25323
25324 2009-11-28  Jim Meyering  <meyering@redhat.com>
25325
25326         userspec: depend on the inttostr module, too
25327         * modules/userspec (Depends-on): Add inttostr.
25328
25329         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25330         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25331         number of MAXUID when it evaluates to (uid_t) -1.
25332         Likewise for group ID.  Reported by Matt McCutchen in
25333         <http://savannah.gnu.org/bugs/?28113>
25334
25335         userspec: reformat to use spaces, not TABs
25336         * lib/userspec.c: Expand TABs to spaces.
25337         Add Emacs' "indent-tabs-mode: nil" hint.
25338
25339 2009-11-27  Eric Blake  <ebb9@byu.net>
25340
25341         getopt-gnu: flush out another BSD bug
25342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25343         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25344         flush out BSD bug.
25345         * tests/test-getopt.h (test_getopt): End lists with NULL.
25346         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25347         (test_getopt_long_posix): Enhance test.
25348         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25349         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25350         getopt-gnu.
25351         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25352         Likewise.
25353
25354 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25355
25356         * modules/idpriv-droptemp-tests (Notice): Fix text.
25357
25358 2009-11-27  Jim Meyering  <meyering@redhat.com>
25359
25360         test-xalloc-die: avoid spurious failure due to libtool argv difference
25361         In a libtool-enabled project, this test would fail due to a difference
25362         in the emitted program name, e.g.,
25363         -test-xalloc-die: memory exhausted
25364         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25365         Use program to avoid that.
25366         * modules/xalloc-die-tests (Depends-on): Add progname.
25367         * tests/test-xalloc-die.c: Include progname.h".
25368         (program_name): Remove decl.
25369         (main): Call set_program_name.
25370         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25371
25372 2009-11-26  Richard Jones  <rjones@redhat.com>
25373
25374         w32sock: leave win32 error in place.
25375         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25376
25377 2009-11-26  Eric Blake  <ebb9@byu.net>
25378
25379         init.sh: suggest to use skip_ and fail_ functions in comments
25380         * tests/init.sh: Add a sentence.
25381
25382 2009-11-25  Bruno Haible  <bruno@clisp.org>
25383
25384         init.sh: add documentation in comments
25385         * tests/init.sh: Add some developer and user documentation.
25386
25387 2009-11-26  Jim Meyering  <meyering@redhat.com>
25388
25389         init.sh: accommodate even those who specify bogus srcdir manually
25390         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25391         configure-time tests to be sanitized, so that there is no need to
25392         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25393         (with no double quotes) suffices.  However, since tests may be
25394         invoked manually, and since you may explicitly set srcdir to the
25395         name of a directory containing spaces, do quote its uses here.
25396         * tests/test-pread.sh: Likewise.
25397         Suggested by Bruno Haible.
25398
25399         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25400         * tests/test-pread.sh: Write no data into the pipe, because
25401         test-pread actually reads none.  This avoids a diagnostic,
25402         "bash: echo: write error: Broken pipe", that arises in the unusual
25403         event something is ignoring SIGPIPE, and might be interpreted
25404         as some sort of failure.  Reported by Bruno Haible.
25405
25406 2009-11-25  Jim Meyering  <meyering@redhat.com>
25407
25408         test-pread: cover failure with ESPIPE and EINVAL
25409         * tests/test-pread.c (main): Test for failure, too.
25410         * tests/test-pread.sh: Invoke with stdin on a pipe.
25411         Suggested by Eric Blake.
25412
25413         pread: improvement and fix
25414         * modules/pread (Depends-on): Depend on lseek, for portability to
25415         e.g., mingw.  Suggested by Eric Blake.
25416         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25417
25418         unistd.in.h: correct declaration of pread
25419         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25420         Reported by Richard W.M. Jones.
25421
25422         test-pread.sh: distribute the test script
25423         * modules/pread-tests (Files): Include test-pread.sh.
25424
25425         test-pread.sh: clean up
25426         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25427         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25428         That is unnecessary, since it's always ".".
25429         Suggestion from Eric Blake.
25430
25431         test-pread.sh: make executable
25432         * tests/test-pread.sh: Set executable bit.
25433         Reported by Eric Blake.
25434
25435         correct typo in test-pread.sh
25436         * tests/test-pread.sh: Add #! line.
25437
25438         test pread
25439         * tests/test-pread.c: New file.
25440         * tests/test-pread.sh: Likewise.
25441         * modules/pread-tests: Likewise.
25442
25443         pread: new module
25444         * modules/pread: New file.
25445         * lib/unistd.in.h (pread): Define/declare.
25446         * lib/pread.c (pread): New file.
25447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25448         * modules/unistd (Makefile.am): Substitute witnesses.
25449         * doc/posix-functions/pread.texi (pread): Update.
25450         * MODULES.html.sh: Add pread.
25451
25452 2009-11-25  Jim Meyering  <meyering@redhat.com>
25453
25454         tests/init.sh: new file to be used via most *.sh tests
25455         * tests/init.sh: New file.
25456
25457 2009-11-25  Eric Blake  <ebb9@byu.net>
25458
25459         utimens: work around older Linux failure with symlinks
25460         * lib/utimens.c (lutimensat_works_really): New variable.
25461         (fdutimens, lutimens): Use it to manage kernels that support
25462         nanosecond times on files, but not on symlinks.
25463         Reported by OndÅ™ej Vašík.
25464
25465         utimes: fix configure grammar
25466         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25467
25468 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25469
25470         regex: Fix fastmap for multibyte character ranges.
25471         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25472         characters when a multibyte character range is included.
25473
25474 2009-11-22  Andy Wingo  <wingo@pobox.com>
25475
25476         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25477         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25478
25479 2009-11-24  Bruno Haible  <bruno@clisp.org>
25480
25481         doc: Most *_l functions exist in MacOS X 10.5.
25482         * doc/posix-functions/duplocale.texi: Update platforms list.
25483         * doc/posix-functions/freelocale.texi: Likewise.
25484         * doc/posix-functions/newlocale.texi: Likewise.
25485         * doc/posix-functions/uselocale.texi: Likewise.
25486         * doc/posix-functions/isalnum_l.texi: Likewise.
25487         * doc/posix-functions/isalpha_l.texi: Likewise.
25488         * doc/posix-functions/isblank_l.texi: Likewise.
25489         * doc/posix-functions/iscntrl_l.texi: Likewise.
25490         * doc/posix-functions/isdigit_l.texi: Likewise.
25491         * doc/posix-functions/isgraph_l.texi: Likewise.
25492         * doc/posix-functions/islower_l.texi: Likewise.
25493         * doc/posix-functions/isprint_l.texi: Likewise.
25494         * doc/posix-functions/ispunct_l.texi: Likewise.
25495         * doc/posix-functions/isspace_l.texi: Likewise.
25496         * doc/posix-functions/isupper_l.texi: Likewise.
25497         * doc/posix-functions/iswalnum_l.texi: Likewise.
25498         * doc/posix-functions/iswalpha_l.texi: Likewise.
25499         * doc/posix-functions/iswblank_l.texi: Likewise.
25500         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25501         * doc/posix-functions/iswctype_l.texi: Likewise.
25502         * doc/posix-functions/iswdigit_l.texi: Likewise.
25503         * doc/posix-functions/iswgraph_l.texi: Likewise.
25504         * doc/posix-functions/iswlower_l.texi: Likewise.
25505         * doc/posix-functions/iswprint_l.texi: Likewise.
25506         * doc/posix-functions/iswpunct_l.texi: Likewise.
25507         * doc/posix-functions/iswspace_l.texi: Likewise.
25508         * doc/posix-functions/iswupper_l.texi: Likewise.
25509         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25510         * doc/posix-functions/isxdigit_l.texi: Likewise.
25511         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25512         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25513         * doc/posix-functions/strcoll_l.texi: Likewise.
25514         * doc/posix-functions/strfmon_l.texi: Likewise.
25515         * doc/posix-functions/strftime_l.texi: Likewise.
25516         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25517         * doc/posix-functions/strxfrm_l.texi: Likewise.
25518         * doc/posix-functions/tolower_l.texi: Likewise.
25519         * doc/posix-functions/toupper_l.texi: Likewise.
25520         * doc/posix-functions/towctrans_l.texi: Likewise.
25521         * doc/posix-functions/towlower_l.texi: Likewise.
25522         * doc/posix-functions/towupper_l.texi: Likewise.
25523         * doc/posix-functions/wcscoll_l.texi: Likewise.
25524         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25525         * doc/posix-functions/wctrans_l.texi: Likewise.
25526         * doc/posix-functions/wctype_l.texi: Likewise.
25527         * doc/glibc-functions/strptime_l.texi: Likewise.
25528         * doc/glibc-functions/strtod_l.texi: Likewise.
25529         * doc/glibc-functions/strtof_l.texi: Likewise.
25530         * doc/glibc-functions/strtol_l.texi: Likewise.
25531         * doc/glibc-functions/strtold_l.texi: Likewise.
25532         * doc/glibc-functions/strtoll_l.texi: Likewise.
25533         * doc/glibc-functions/strtoul_l.texi: Likewise.
25534         * doc/glibc-functions/strtoull_l.texi: Likewise.
25535         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25536         * doc/glibc-functions/wcstod_l.texi: Likewise.
25537         * doc/glibc-functions/wcstof_l.texi: Likewise.
25538         * doc/glibc-functions/wcstol_l.texi: Likewise.
25539         * doc/glibc-functions/wcstold_l.texi: Likewise.
25540         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25541         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25542         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25543
25544 2009-11-24  Bruno Haible  <bruno@clisp.org>
25545
25546         duplocale: Fix logic bug.
25547         * lib/duplocale.c: Don't include <langinfo.h>.
25548         (_NL_LOCALE_NAME): Remove macro.
25549         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25550         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25551
25552 2009-11-23  Jim Meyering  <meyering@redhat.com>
25553
25554         test-update-copyright: don't hard-code /usr/bin/perl
25555         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25556         perl to print the current year.  Gilles Espinasse reported that
25557         the replaced use of perl was hard-coded as /usr/bin/perl.
25558
25559 2009-11-23  Bruno Haible  <bruno@clisp.org>
25560
25561         duplocale: Add support for glibc 2.3.x.
25562         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25563
25564 2009-11-22  Bruno Haible  <bruno@clisp.org>
25565
25566         vasnprintf: Tiny optimization.
25567         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25568         MacOS X.
25569
25570 2009-11-22  Bruno Haible  <bruno@clisp.org>
25571
25572         Tests for module 'duplocale'.
25573         * modules/duplocale-tests: New file.
25574         * tests/test-duplocale.c: New file.
25575
25576         New module 'duplocale'.
25577         * m4/duplocale.m4: New file.
25578         * lib/locale.in.h (duplocale): New declaration.
25579         * lib/duplocale.c: New file.
25580         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25581         gl_LOCALE_H_DEFAULTS): New macros.
25582         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25583         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25584         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25585         REPLACE_DUPLOCALE.
25586         * modules/duplocale: New file.
25587         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25588
25589 2009-11-22  Bruno Haible  <bruno@clisp.org>
25590
25591         * modules/locale-tests (configure.ac): Test for newlocale function.
25592         * tests/test-locale.c: When the system has extended locale functions,
25593         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25594
25595         locale: Make locale_t available when possible.
25596         * lib/locale.in.h: Include <xlocale.h> when it exists.
25597         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25598         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25599         * modules/locale (Depends-on): Add extensions.
25600         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25601         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25602
25603 2009-11-22  Bruno Haible  <bruno@clisp.org>
25604
25605         Add comments.
25606         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25607         invocation.
25608         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25609         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25610         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25611
25612 2009-11-22  Bruno Haible  <bruno@clisp.org>
25613
25614         error: account for the possibility of freopen (stdout).
25615         * lib/error.c: Include <unistd.h>.
25616         (flush_stdout): New function, extracted from error and error_at_line.
25617         Determine stdout's fd dynamically.
25618         (error, error_at_line): Invoke flush_stdout.
25619         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25620         * modules/error (Depends-on): Add unistd.
25621
25622 2009-11-22  Bruno Haible  <bruno@clisp.org>
25623
25624         diffseq: Add comment.
25625         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25626
25627 2009-11-22  Jim Meyering  <meyering@redhat.com>
25628
25629         c-stack: avoid defining an unused static function
25630         * lib/c-stack.c (find_stack_direction): Do not define this function
25631         when it will not be used.
25632
25633         diffseq: avoid spurious gcc warnings
25634         * lib/diffseq.h (IF_LINT2): Define.
25635         (compareseq): Use it to initialize two members of "part".
25636         This avoids two used-uninitialized warnings.
25637
25638 2009-11-21  Jim Meyering  <meyering@redhat.com>
25639
25640         c-stack: avoid "ignoring return value of `write'" warning
25641         * lib/c-stack.c: Include "ignore-value.h".
25642         (die): Explicitly ignore each write return value.
25643         * modules/c-stack (Depends-on): Add ignore-value.
25644
25645 2009-11-21  Bruno Haible  <bruno@clisp.org>
25646
25647         diffseq: reduce scope of variable 'best'.
25648         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25649         variable, earlier used for two different purposes.
25650
25651 2009-11-21  Jim Meyering  <meyering@redhat.com>
25652
25653         diffseq: remove useless assignment to "best"
25654         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25655         assignment.  At that point "best" is already guaranteed to be zero.
25656
25657 2009-11-20  Eric Blake  <ebb9@byu.net>
25658
25659         build: mention ftp redirector in release announcements
25660         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25661         values that used to come from cfg.mk; mention FTP redirect URL.
25662         * build-aux/announce-gen: Mention the mirror list.
25663         Suggested by Karl Berry.
25664
25665         nanosleep: improve port to mingw
25666         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25668         LIB_NANOSLEEP, but only when needed.
25669         * modules/select (Link): Document LIBSOCKET.
25670         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25671         enough.
25672
25673         nanosleep: work around cygwin bug
25674         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25675         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25676         bug.
25677         (getnow): Delete, not needed.
25678         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25679         LIB_CLOCK_GETTIME.
25680         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25681         clock-time, gettime.
25682         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25683         bug.
25684         * modules/nanosleep-tests: New test.
25685         * tests/test-nanosleep.c: New file.
25686
25687         sleep: work around cygwin bug
25688         * lib/sleep.c (rpl_sleep): Work around the bug.
25689         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25690         (gl_PREREQ_SLEEP): Delete unused macro.
25691         * modules/sleep (Depends-on): Add verify.
25692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25693         * modules/unistd (Makefile.am): Substitute witness.
25694         * lib/unistd.in.h (sleep): Update prototype.
25695         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25696         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25697         * modules/sleep-tests (Depends-on): Check for alarm.
25698
25699 2009-11-20  Jim Meyering  <meyering@redhat.com>
25700
25701         maint.mk: improve sc_prohibit_magic_number_exit
25702         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25703         so it does not match uses like System.exit(1).
25704         Add comments showing how to correct all offenders.
25705
25706 2009-11-19  Eric Blake  <ebb9@byu.net>
25707
25708         xalloc-die-tests: add missing library
25709         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25710
25711         test-xvasprintf: silence compiler warnings
25712         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25713         empty string from gcc.
25714
25715 2009-11-19  Jim Meyering  <meyering@redhat.com>
25716
25717         xfreopen: new module, from coreutils
25718         * modules/xfreopen: New module.
25719         * lib/xfreopen.c: New file.
25720         * lib/xfreopen.h: New file.
25721         * MODULES.html.sh (File stream based Input/Output"): Add it.
25722
25723 2009-11-19  Eric Blake  <ebb9@byu.net>
25724
25725         manywarnings: depend on warnings
25726         * modules/manywarnings (Depends-on): Add warnings.
25727
25728         build: avoid compiler warnings
25729         * lib/select.c (rpl_select): Delete unused variable.
25730         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25731
25732 2009-11-18  Eric Blake  <ebb9@byu.net>
25733
25734         tests: avoid false negative with --with-packager
25735         * tests/test-version-etc.sh: Discard packager information.
25736         * tests/test-argp-version-etc-1.sh: Likewise.
25737         Reported by Mike Frysinger.
25738
25739         utimens: fix regression on Solaris
25740         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25741         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25742         can only change fd timestamps via futimesat.  Instead, use an
25743         additional witness macro to avoid BSD bug.
25744         Reported by Jim Meyering.
25745
25746 2009-11-17  Eric Blake  <ebb9@byu.net>
25747
25748         usleep: use it to simplify tests
25749         * modules/stat-time-tests (Depends-on): Add usleep.
25750         (configure.ac): Drop usleep check.
25751         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25752         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25753         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25754         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25755         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25756         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25757         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25758         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25759         Likewise.
25760         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25761         * tests/test-lchown.h (nap): Likewise.
25762         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25763         * tests/test-stat-time.c (nap): Likewise.
25764         * tests/test-utimens-common.h (nap): Update comments.
25765
25766         usleep: new module
25767         * modules/usleep: New file.
25768         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25769         * lib/usleep.c (usleep): Likewise.
25770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25771         * modules/unistd (Makefile.am): Substitute witnesses.
25772         * lib/unistd.in.h (usleep): Add declaration.
25773         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25774         * MODULES.html.sh (Date and time): Likewise.
25775         * modules/usleep-tests (Depends-on): New test.
25776         * tests/test-usleep.c: New file.
25777
25778         chown: work around OpenBSD bug
25779         * lib/chown.c (rpl_chown): Work around the bug.
25780         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25781         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25782         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25783         * modules/chown (Depends-on): Add stdbool.
25784         * modules/lchown (Depends-on): Likewise.
25785         * doc/posix-functions/chown.texi (chown): Document the bug.
25786         * doc/posix-functions/lchown.texi (lchown): Likewise.
25787         * tests/test-lchown.h (test_chown): Relax test.
25788
25789         mkstemp: avoid conflict with C++ keyword template
25790         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25791         * lib/mkostemp.c (mkostemp): Likewise.
25792         * lib/mkostemps.c (mkostemps): Likewise.
25793         * lib/mkstemp.c (mkstemp): Likewise.
25794         * lib/mkstemps.c (mkstemps): Likewise.
25795
25796         xalloc-die-tests: optimize
25797         * tests/test-xalloc-die.sh: Reduce number of processes.
25798
25799 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25800
25801         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25802         patch from ludo@gnu.org (Ludovic Courtès).
25803
25804 2009-11-17  Jim Meyering  <meyering@redhat.com>
25805
25806         version-etc: use proper license string
25807         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25808         * modules/version-etc-fsf: Likewise.
25809
25810 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25811
25812         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25813         printed to stdout.  Deal with EOL differences.
25814
25815 2009-11-17  Eric Blake  <ebb9@byu.net>
25816
25817         unsetenv: work around Solaris bug
25818         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25819         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25820         Reported by Jim Meyering.
25821
25822         vasnprintf: avoid compiler warnings
25823         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25824         variables.
25825         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25826
25827 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25828
25829         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25830         settings since xalloc-die is no longer the self test,
25831         xalloc-die.sh is.
25832
25833 2009-11-17  Jim Meyering  <meyering@redhat.com>
25834
25835         test-xalloc-die.sh: make the code agree with the commit log
25836         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25837         at the end, just in case you happen to have a test-xalloc-die
25838         program in some other PATH directory.
25839
25840         test-xalloc-die.sh: fix a portability bug
25841         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25842         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25843         Otherwise, argv[0] (as often seen in diagnostics) would be too
25844         system-dependent, sometimes with, and sometimes without the leading "./".
25845
25846         version-etc-fsf: relax license to LGPLv3+
25847         * modules/version-etc-fsf (License): Relax license.
25848
25849 2009-11-16  Eric Blake  <ebb9@byu.net>
25850
25851         xalloc-die-tests: avoid printing null pointer
25852         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25853         shell script.
25854         * tests/test-xalloc-die.c (program_name): Declare.
25855         * tests/test-xalloc-die.sh (tmpfiles): New file.
25856
25857         setenv, unsetenv: work around various bugs
25858         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25859         (setenv) [HAVE_SETENV]: Work around bugs.
25860         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25861         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25862         for bugs.
25863         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25864         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25866         * modules/stdlib (Makefile.am): Update substitutions.
25867         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25868         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25869         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25870         * modules/setenv-tests: New test.
25871         * modules/unsetenv-tests: Likewise.
25872         * tests/test-setenv.c: New file.
25873         * tests/test-unsetenv.c: Likewise.
25874
25875 2009-11-16  Jim Meyering  <meyering@redhat.com>
25876
25877         version-etc: relax license to LGPLv3+
25878         * modules/version-etc (License): Relax license.
25879
25880         better AC_REQUIRE expanded-before-required-warning avoidance
25881         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25882         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25883         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25884         which is no longer needed.
25885
25886 2009-11-16  Eric Blake  <ebb9@byu.net>
25887
25888         test-freading: clean up temporary file
25889         * tests/test-freading.c (main): Remove file on success, and use
25890         ASSERT more liberally.
25891         Reported by Jim Meyering.
25892
25893 2009-11-16  Jim Meyering  <meyering@redhat.com>
25894
25895         avoid new AC_REQUIRE expanded-before-required warnings
25896         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25897         merely using it.
25898         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25899         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25900
25901 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25902
25903         * tests/test-xalloc-die.c: New file.
25904         * modules/xalloc-die-tests: New file.
25905         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25906         XFAIL_TESTS so it can be appended by modules.
25907
25908 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25909
25910         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25911         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25912
25913 2009-11-14  Eric Blake  <ebb9@byu.net>
25914
25915         fnmatch: avoid compiler warning
25916         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25917         to silence compiler warning about mismatch signedness in ?:.
25918         Reported by Robert Millan.
25919
25920         intprops: add double-inclusion guard
25921         * lib/intprops.h: Allow idempotent includes.
25922         Suggested by Bruce Korb.
25923
25924         openat: detect Solaris fchownat bug
25925         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25926         penalizing glibc chownat when only lchownat is broken.
25927         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25928         trailing slash bugs.
25929         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25930         * modules/openat-tests (Files): Include more files.
25931         (Depends-on): Add mgetgroups, sleep, stat-time.
25932         (configure.ac): Add additional checks.
25933         (Makefile.am): Build new test.
25934         * tests/test-fchownat.c: New file.
25935
25936         lchown: detect Solaris and FreeBSD bug
25937         * lib/lchown.c (rpl_lchown): Work around bug.
25938         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25940         * modules/unistd (Makefile.am): Populate it.
25941         * lib/unistd.in.h (lchown): Update declaration.
25942         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25943         * modules/lchown-tests: New file.
25944         * tests/test-lchown.h (test_lchown): Likewise.
25945         * tests/test-lchown.c (main): Likewise.
25946
25947         chown: detect Solaris and FreeBSD bug
25948         * lib/chown.c (rpl_chown): Work around bug.
25949         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25950         (gl_PREREQ_CHOWN): Delete.
25951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25952         * modules/unistd (Makefile.am): Populate it.
25953         * lib/unistd.in.h (chown): Update declaration.
25954         * lib/lchown.c (chown): Update client.
25955         * modules/lchown (Depends-on): Add lstat.
25956         * doc/posix-functions/chown.texi (chown): Document the bug.
25957         * doc/posix-functions/getgroups.texi (getgroups): Document
25958         getgroups pitfall.
25959         * modules/chown-tests: New file.
25960         * tests/test-chown.h (test_chown): Likewise.
25961         * tests/test-chown.c (main): Likewise.
25962
25963 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25964
25965         gnulib-tool: correctly detect absence of m4 directories
25966         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25967
25968 2009-11-14  Jim Meyering  <meyering@redhat.com>
25969
25970         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25971         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25972
25973 2009-11-14  John W. Eaton  <jwe@gnu.org>
25974
25975         strftime.h: wrap funtion declaration in extern "C" block
25976         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25977
25978 2009-11-13  Eric Blake  <ebb9@byu.net>
25979
25980         getgroups: avoid compiler warning
25981         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25982
25983         getgroups: work around FreeBSD bug
25984         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25985         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25986         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25987         * tests/test-getgroups.c (main): Fix buffer overrun.
25988
25989         getgroups: avoid compilation failure
25990         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25991         * modules/getgroups (Depends-on): Add stdint.
25992
25993 2009-11-13  Jim Meyering  <meyering@redhat.com>
25994
25995         test-getgroups: avoid compilation failure
25996         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25997
25998 2009-11-13  Eric Blake  <ebb9@byu.net>
25999
26000         mgetgroups: new module, taken from coreutils
26001         * modules/mgetgroups: New file.
26002         * lib/mgetgroups.h: Likewise.
26003         * lib/mgetgroups.c (mgetgroups): Likewise.
26004         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
26005         * MODULES.html.sh (Users and groups): Mention it.
26006
26007         getgroups: don't expose GETGROUPS_T to user
26008         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
26009         an element at a time if GETGROUPS_T is wrong size.
26010         * lib/getugroups.h (getugroups): Change signature.
26011         * lib/unistd.in.h (getgroups): Likewise.
26012         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
26013         signature needs fixing.
26014         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
26015         AC_TYPE_GETGROUPS.
26016         * modules/group-member (Depends-on): Add getgroups.
26017         * lib/group-member.c (group_info, get_group_info): Use gid_t.
26018         (group_member): Rely on getgroups replacement.
26019         * lib/getugroups.c (getugroups): Use gid_t.
26020         * tests/test-getgroups.c (main): Likewise.
26021         * NEWS: Mention the signature change.
26022         * doc/posix-functions/getgroups.texi (getgroups): Mention the
26023         problem with signature.
26024         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
26025         GETGROUPS_T is still useful for setgroups.
26026
26027         getgroups, getugroups: provide stubs for mingw
26028         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
26029         * lib/getugroups.c (getugroups): Likewise.
26030         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
26031         function.  Modernize replacement scheme.
26032         (gl_PREREQ_GETGROUPS): Delete.
26033         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
26034         * modules/getgroups (configure.ac): Declare witness.
26035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26036         * modules/unistd (Depends-on): Substitute witness.
26037         * lib/unistd.in.h (getgroups): Declare replacement.
26038
26039         getgroups: avoid calling exit
26040         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
26041         drop xalloc.
26042         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
26043         dependencies.
26044         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
26045         exiting, in the rare case of malloc failure.
26046
26047         getgroups: fix logic error
26048         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
26049         has more than 20 groups.
26050         * modules/getgroups-tests: New test.
26051         * tests/test-getgroups.c: New file.
26052
26053 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26054
26055         * tests/test-base64.c: Improve.
26056
26057 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26058
26059         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
26060         Blake <ebb9@byu.net>.
26061
26062 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26063
26064         * tests/test-xvasprintf.c: Add %s%s related checks.
26065
26066 2009-11-12  Eric Blake  <ebb9@byu.net>
26067
26068         version-etc: match standards.texi style
26069         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
26070         and use <> only for URLs.
26071
26072 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
26073
26074         fts: do not fail on a submount during traversal
26075         * lib/fts.c (fts_build): Read the stat info again after opening
26076         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
26077         Original report at http://bugzilla.redhat.com/501848.
26078
26079 2009-11-12  Jim Meyering  <meyering@redhat.com>
26080
26081         bootstrap: sync from coreutils
26082         * build-aux/bootstrap (bootstrap_epilogue): New function.
26083         Use git_modules_config in one more place.  This make bootstrap's
26084         --gnulib-srcdir option more useful for testing.
26085
26086         bootstrap: generalize autoheader check
26087         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
26088         AC_CONFIG_HEADERS.
26089
26090 2009-11-11  Eric Blake  <ebb9@byu.net>
26091
26092         mkfifoat: use new modules for Solaris and BSD bugs
26093         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
26094         * lib/mkfifoat.c (mknodat): Split...
26095         * lib/mknodat.c (mknodat): ...into new file.
26096         * modules/mkfifoat (Files): Ship new file.
26097         (Depends-on): Add mkfifo, mknod.
26098         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
26099         (Depends-on): Add symlink.
26100         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
26101         redundant with test_mkfifo.h.
26102         (do_mkfifoat, do_mknodat): New helpers.
26103
26104         mknod: new module
26105         * modules/mknod: New file.
26106         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
26107         * lib/mknod.c (mknod): Likewise.
26108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26109         defaults.
26110         * modules/sys_stat (Makefile.am): Substitute them.
26111         * lib/sys_stat.in.h (mknod): Declare replacement.
26112         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26113         Document it.
26114         * doc/posix-functions/mknod.texi (mknod): Likewise.
26115         * modules/mknod-tests: New test.
26116         * tests/test-mknod.c: Likewise.
26117
26118         mkfifo: new module
26119         * modules/mkfifo: New file.
26120         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26121         * lib/mkfifo.c (mkfifo): Likewise.
26122         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26123         defaults.
26124         * modules/sys_stat (Makefile.am): Substitute them.
26125         * lib/sys_stat.in.h (mkfifo): Declare replacement.
26126         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26127         Document it.
26128         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
26129         * modules/mkfifo-tests: New test.
26130         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
26131         from test-mkfifoat.c.
26132         * tests/test-mkfifo.c: New file.
26133
26134         readlink: detect FreeBSD bug
26135         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
26136         slash on symlink.
26137         * doc/posix-functions/readlink.texi (readlink): Document the bug.
26138         * tests/test-readlink.h (test_readlink): Enhance test.
26139
26140         symlink: detect FreeBSD bug
26141         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
26142         slash on symlink.
26143         * doc/posix-functions/symlink.texi (symlink): Document the bug.
26144         * tests/test-symlink.h (test_symlink): Enhance test.
26145
26146 2009-11-10  Eric Blake  <ebb9@byu.net>
26147
26148         link: detect FreeBSD bug
26149         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
26150         symlink.
26151         * doc/posix-functions/link.texi (link): Document the bug.
26152         * tests/test-link.h (test_link): Enhance test.
26153         * tests/test-linkat.c (main): Update caller.
26154
26155         unlink, remove: detect FreeBSD bug
26156         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
26157         slash on symlink.
26158         * doc/posix-functions/unlink.texi (unlink): Document the bug.
26159         * doc/posix-functions/remove.texi (remove): Likewise.
26160         * tests/test-unlink.h (test_unlink): Enhance test.
26161         * tests/test-remove.c (main): Likewise.
26162
26163 2009-11-09  Eric Blake  <ebb9@byu.net>
26164
26165         rename: detect FreeBSD bug
26166         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
26167         slash on symlink.
26168         * modules/renameat-tests (Depends-on): Add filenamecat.
26169         * tests/test-rename.h (test_rename): Allow one more errno.
26170         * tests/test-renameat.c (main): Likewise.
26171         * doc/posix-functions/rename.texi (rename): Document the bug.
26172
26173         open: detect FreeBSD bug
26174         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
26175         symlink.
26176         * doc/posix-functions/open.texi (open): Document the bug.
26177         * doc/posix-functions/utimes.texi (utimes): Likewise.
26178         * tests/test-open.h (test_open): Add parameters, and test symlink
26179         handling.
26180         * tests/test-open.c (main): Adjust caller.
26181         * tests/test-fcntl-safer.c (main): Likewise.
26182         * modules/open-tests (Depends-on): Add stdbool, symlink.
26183         * modules/fcntl-safer-tests (Depends-on): Likewise.
26184         * tests/test-openat.c (main): Add test-open tests.
26185
26186         stat: detect FreeBSD bug
26187         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
26188         symlink.
26189         * doc/posix-functions/stat.texi (stat): Document the bug.
26190         * tests/test-stat.h (test_stat_func): Add argument.
26191         * tests/test-stat.c (main): Adjust caller.
26192         * tests/test-fstatat.c (main): Likewise.
26193         * modules/stat-tests (Depends-on): Add stdbool, symlink.
26194         Reported by Jim Meyering.
26195
26196 2009-11-09  James Youngman  <jay@gnu.org>
26197
26198         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
26199         * lib/strftime.c: Correct placement of #include "ignore-value.h".
26200
26201 2009-11-08  Jim Meyering  <meyering@redhat.com>
26202
26203         utimens: remove invalid futimesat call
26204         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
26205         It used the file descriptor of the target file as the DIR_FD
26206         parameter and NULL as the file name.  That caused failure with
26207         errno == EFAULT on FreeBSD-8.0-rc2
26208
26209 2009-11-07  Eric Blake  <ebb9@byu.net>
26210
26211         fflush, freadseek: use fseeko, not fseek
26212         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26213         (clear_ungetc_buffer): Avoid potential problems on large files.
26214         * lib/freadseek.c (freadseek): Likewise.
26215         * modules/freadseek (Depends-on): Add fseeko.
26216         * modules/fseek (configure.ac): Set a witness.
26217         * tests/test-fflush.c (main): Use fseeko.
26218         * tests/test-fpurge.c (fseek): Disable link warning.
26219         * tests/test-freadable.c (fseek): Likewise.
26220         * tests/test-freading.c (fseek): Likewise.
26221         * tests/test-fseeko.c (fseek): Likewise.
26222         * tests/test-ftell.c (fseek): Likewise.
26223         * tests/test-ftello.c (fseek): Likewise.
26224         * tests/test-fwritable.c (fseek): Likewise.
26225         * tests/test-fwriting.c (fseek): Likewise.
26226
26227 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26228
26229         * modules/memchr (Depends-on): Drop getpagesize dependency.
26230
26231 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26232
26233         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
26234         Reported by Ludovic Courtès.
26235         * build-aux/pmccabe2html: Improve example usage.
26236         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
26237
26238 2009-11-06  Jim Meyering  <meyering@redhat.com>
26239
26240         do-release-commit-and-tag: New module.
26241         Automate the release-commit and tag process.
26242         * build-aux/do-release-commit-and-tag: New script, from coreutils.
26243         * modules/do-release-commit-and-tag: New file.
26244         * MODULES.html.sh (Support for maintaining and releasing): Add it.
26245
26246 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26247
26248         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
26249         because test-select.c uses inet_pton.
26250
26251 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26252
26253         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
26254         GETADDRINFO_LIB.  Bump serial number.
26255         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
26256         Suggested by Eric Blake <ebb9@byu.net>.
26257
26258 2009-11-05  Eric Blake  <ebb9@byu.net>
26259
26260         strtod: detect darwin bug
26261         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
26262         Reported by Leo Davis.
26263
26264         freopen-safer: new module
26265         * modules/freopen-safer: New module.
26266         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
26267         * lib/freopen-safer.c (freopen_safer): New file.
26268         * lib/stdio-safer.h (freopen_safer): New declaration.
26269         * lib/stdio--.h (freopen): New override.
26270         * MODULES.html.sh (File stream based Input/Output): Mention it.
26271         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
26272         freopen-safer module.
26273         * doc/posix-functions/stderr.texi (stderr): Likewise.
26274         * doc/posix-functions/stdin.texi (stdin): Likewise.
26275         * doc/posix-functions/stdout.texi (stdout): Likewise.
26276         * modules/freopen-safer-tests: New test.
26277         * tests/test-reopen-safer.c: New file.
26278
26279 2009-11-05  Jim Meyering  <meyering@redhat.com>
26280
26281         maint.mk: Prohibit inclusion of "close-stream.h" without use.
26282         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26283
26284 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26285
26286         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
26287
26288 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26289
26290         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
26291
26292 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26293
26294         Fix link error.
26295         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26296         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26297
26298 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26299
26300         * tests/test-func.c: Also test value of __func__.
26301
26302 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26303
26304         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
26305         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
26306
26307 2009-11-05  Bruno Haible  <bruno@clisp.org>
26308
26309         Fix link error.
26310         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26311         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26312         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
26313
26314 2009-11-05  Bruno Haible  <bruno@clisp.org>
26315
26316         Tests for module 'inet_pton'.
26317         * modules/inet_pton-tests: New file.
26318         * tests/test-inet_pton.c: New file.
26319
26320 2009-11-05  Bruno Haible  <bruno@clisp.org>
26321
26322         Tests for module 'inet_ntop'.
26323         * modules/inet_ntop-tests: New file.
26324         * tests/test-inet_ntop.c: New file.
26325
26326 2009-11-04  Eric Blake  <ebb9@byu.net>
26327
26328         stdlib-safer: wrap all mkstemp variants
26329         * modules/mkostemp (configure.ac): Set witness.
26330         * modules/mkostemps (configure.ac): Likewise.
26331         * modules/mkstemps (configure.ac): Likewise.
26332         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26333         (mkstemps_safer): Wrap more functions.
26334         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26335         wrapping.
26336         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26337         (mkstemps_safer): Implement the wrappers.
26338
26339         mkstemps, mkostemps: new modules
26340         * modules/mkostemps: New module.
26341         * modules/mkstemps: Likewise.
26342         * lib/mkostemps.c (mkostemps): New file.
26343         * lib/mkstemps.c (mkstemps): Likewise.
26344         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26345         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26347         * modules/stdlib (Makefile.am): Substitute them.
26348         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26349         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26350         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26351         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26352         * MODULES.html.sh (File system functions): Mention them.
26353
26354         tempname: resync from glibc
26355         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26356         same values for __GT_FILE as glibc.  Abort even when assertions
26357         are disabled.
26358         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26359         match its value otherwise.  Allow idempotent inclusion.
26360         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26361         * lib/mkostemp.c (mkostemp): Likewise.
26362         * lib/mkstemp.c (mkstemp): Likewise.
26363         * lib/tmpfile.c (tmpfile): Likewise.
26364         * NEWS: Document this.
26365
26366         utimens: fix use of futimens on older Linux
26367         * lib/utimens.c (fdutimens): Use updated, rather than original,
26368         timespec to avoid bug in older Linux kernel.
26369         Reported by Simon Josefsson.
26370
26371 2009-11-04  Bruno Haible  <bruno@clisp.org>
26372
26373         Make num_processors more flexible and consistent.
26374         * lib/nproc.h (enum nproc_query): New type.
26375         (num_processors): Add a 'query' argument.
26376         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26377         (num_processors): Add a 'query' argument. Test the value of the
26378         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26379         mingw, count the number of CPUs available for the current process.
26380         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26381         Check for sched_getaffinity and sched_getaffinity_np.
26382         * modules/nproc (Depends-on): Add c-ctype, extensions.
26383         * NEWS: Mention the change.
26384
26385 2009-11-03  Bruno Haible  <bruno@clisp.org>
26386
26387         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26388
26389 2009-11-03  Jim Meyering  <meyering@redhat.com>
26390
26391         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26392         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26393         if it is defined.
26394
26395 2009-11-02  Eric Blake  <ebb9@byu.net>
26396
26397         mktime, timegm: share common declaration
26398         * lib/mktime-internal.h: New file.
26399         * lib/mktime.c: Use it rather than open-coding a declaration.
26400         * lib/timegm.c: Likewise.
26401         * modules/mktime (Files): Ship it.
26402         * modules/timegm (Files): Likewise.
26403         Suggested by Bruno Haible.
26404
26405         test-update-copyright: update test to match script changes
26406         * tests/test-update-copyright.sh: Avoid hard-coding perl
26407         location.  Don't update *.bak created by earlier runs.
26408
26409 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26410             Simon Josefsson  <simon@josefsson.org>
26411             Bruno Haible  <bruno@clisp.org>
26412
26413         Fix link error on Solaris 8.
26414         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26415         also in libnsl. Define also INET_PTON_LIB.
26416         * modules/inet_pton (Link): New section.
26417
26418 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26419             Bruno Haible  <bruno@clisp.org>
26420
26421         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26422         * modules/inet_ntop (Link): New section.
26423         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26424
26425 2009-11-02  Eric Blake  <ebb9@byu.net>
26426
26427         maint: avoid compiler warnings in m4 macros
26428         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26429         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26430
26431 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26432
26433         * m4/pmccabe2html.m4: Remove file.
26434         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26435         function.  Change maintainer.
26436         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26437         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26438         Courtès).
26439
26440 2009-10-31  Eric Blake  <ebb9@byu.net>
26441
26442         fseeko: fix m4 regression
26443         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26444         regression from 2009-10-27.
26445         Reported by Ralf Wildenhues.
26446
26447 2009-10-31  Jim Meyering  <meyering@redhat.com>
26448
26449         inttostr: aesthetics and improved (compile-time) safety
26450         Define inttype_is_signed rather than inttype_is_unsigned,
26451         since the sole use is via "#if inttype_is_signed".
26452         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26453         inttype_is_unsigned.
26454         * lib/offtostr.c (inttype_is_signed): Likewise.
26455         * lib/uinttostr.c (inttype_is_signed): Likewise.
26456         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26457         * lib/inttostr.c (inttostr): Use verify to cross-check the
26458         inttype_is_signed value and the signedness of the actual type.
26459         * modules/inttostr (Depends-on): Add verify.
26460
26461 2009-10-30  Eric Blake  <ebb9@byu.net>
26462
26463         build: avoid compiler warnings
26464         * lib/fchmodat.c (lchmod): Mark unused variables.
26465         * lib/getopt.c (_getopt_initialize): Likewise.
26466         * lib/mktime.c (__mktime_internal): Provide prototype.
26467         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26468         older gcc that do not understand #pragma GCC diagnostic.
26469         * lib/uinttostr.c (inttype_is_unsigned): Define.
26470         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26471
26472 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26473
26474         stat: fix compilation on AIX
26475         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26476         only see struct stat64.
26477
26478 2009-10-30  Eric Blake  <ebb9@byu.net>
26479
26480         exclude: make more robust
26481         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26482         rather than masking a coding bug.
26483         Suggested by Bruno Haible.
26484
26485 2009-10-30  Jim Meyering  <meyering@redhat.com>
26486
26487         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26488         Rather than putting #!/usr/bin/perl on the first line,
26489         start with a variant of what's recommended by "man perlrun" that
26490         invokes the first "perl" program from your shell's search path.
26491         * build-aux/gitlog-to-changelog: Replace #!... as above.
26492         Add a "Local Variables" perl mode setting.
26493         Prompted by a patch from Ludovic Courtès.
26494         Improved by Eric Blake.
26495         * build-aux/useless-if-before-free: Likewise.
26496         * build-aux/announce-gen: Likewise.
26497         * build-aux/update-copyright: Likewise.
26498
26499 2009-10-29  Eric Blake  <ebb9@byu.net>
26500
26501         filenamecat-lgpl: adjust clients
26502         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26503         filenamecat.
26504         * modules/renameat (Depends-on): Likewise.
26505
26506         filenamecat: split into filenamecat-lgpl
26507         * modules/filenamecat-lgpl: New module.
26508         * modules/filenamecat (Files): Move library-safe files into
26509         filenamecat-lgpl.
26510         (Depends-on): Add filenamecat-lgpl.
26511         (configure.ac): Declare witness.
26512         * lib/filenamecat.h (file_name_concat): Only declare when using
26513         GPL module.
26514         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26515         Move...
26516         * lib/filenamecat-lgpl.c: ...into new file.
26517         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26518         (gl_FILE_NAME_CONCAT): Use it.
26519         * MODULES.html.sh (File system functions): Mention new module.
26520
26521         argp: avoid memory leak
26522         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26523         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26524         base_name, since the latter malloc()s and can call exit().
26525         Leak introduced 2006-07-03.
26526
26527         dirname-lgpl: adjust clients that don't need full dirname
26528         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26529         * modules/filenamecat (Depends-on): Likewise.
26530         * modules/linkat (Depends-on): Likewise.
26531         * modules/mkancesdirs (Depends-on): Likewise.
26532         * modules/mkdir (Depends-on): Likewise.
26533         * modules/openat (Depends-on): Likewise.
26534         * modules/savewd (Depends-on): Likewise.
26535         * modules/rename (Depends-on): Likewise.
26536         (License): Relax license.
26537         * modules/mkdir-tests (Depends-on): Drop progname.
26538         (Makefile.am): Delete unneeded LDADD.
26539         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26540
26541         dirname: split into dirname-lgpl
26542         * modules/dirname-lgpl: New module.
26543         * modules/dirname (Files): Move library-safe files into
26544         dirname-lgpl.
26545         (Depends-on): Add dirname-lgpl.
26546         (configure.ac): Declare witness.
26547         * modules/double-slash-root (License): Relax license.
26548         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26549         module.
26550         * lib/dirname.c (dir_len, mdir_name): Move...
26551         * lib/dirname-lgpl.c: ...into new file.
26552         * lib/basename.c (last_component, base_len): Move...
26553         * lib/basename-lgpl.c: ...into new file.
26554         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26555         (gl_DIRNAME): Use it.
26556         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26557         Mention new module.
26558         * modules/dirname-tests (Depends-on): Add progname.
26559         * tests/test-dirname.c (program_name): Delete.
26560
26561         mkdir: make safe for libraries
26562         * modules/mkdir (Depends-on): Drop xalloc.
26563         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26564         exit.
26565
26566         tests: avoid some compiler warnings
26567         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26568         literals.
26569         * tests/test-memchr.c (main): Avoid type mismatch.
26570         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26571         * tests/test-base64.c (main): Likewise.
26572         * tests/test-getdelim.c (main): Likewise.
26573         * tests/test-gethostname.c (main): Likewise.
26574         * tests/test-getline.c (main): Likewise.
26575         * tests/test-netinet_in.c (main): Likewise.
26576         * tests/test-select.c (open_server_socket, main): Likewise.
26577         * tests/test-select-stdin.c (main): Likewise.
26578         * tests/test-sockets.c (main): Likewise.
26579         * tests/test-strsignal.c (main): Likewise.
26580         * tests/test-sys_select.c (main): Likewise.
26581         * tests/test-sys_socket.c (main): Likewise.
26582         * tests/test-u64.c (main): Likewise.
26583         * tests/test-xfprintf-posix.c (main): Likewise.
26584         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26585
26586         sockets: avoid compiler warning
26587         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26588
26589         maint: detect usage(1) and other suspicious exits
26590         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26591
26592 2009-10-29  Jim Meyering  <meyering@redhat.com>
26593
26594         timespec: long-to-int truncation could make timespec_cmp malfunction
26595         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26596         a multiple of 2^32 nanoseconds as no difference.
26597
26598 2009-10-28  Jim Meyering  <meyering@redhat.com>
26599
26600         fprintftime: wrap macro code argument in "do {...} while(0)"
26601         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26602         cpy macro must be a statement that can be followed by a semicolon.
26603         Now that the else clause contains a comment and is hence longer
26604         than one line, I require curly braces.  That in turn requires
26605         that we wrap this code block in the standard do...while(0).
26606
26607         fprintftime: remove stray semicolon from previous change
26608         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26609
26610         fprintftime: avoid a warning about ignored fwrite return value
26611         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26612         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26613         that is unsafe.
26614         * modules/fprintftime (Depends-on): Add ignore-value.
26615
26616         exclude: avoid an unwarranted warning
26617         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26618
26619 2009-10-27  Eric Blake  <ebb9@byu.net>
26620
26621         fseek: avoid compilation failure when fflush is replaced
26622         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26623         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26624         module is in use.
26625         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26626         module is not in use; since REPLACE_FSEEK worked otherwise.
26627         (GNULIB_FTELLO): Likewise for ftell.
26628         Reported by Ian Beckwith and others.
26629
26630 2009-10-27  Bruno Haible  <bruno@clisp.org>
26631
26632         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26633         Reported by Jim Meyering.
26634
26635 2009-10-27  Jim Meyering  <jim@meyering.net>
26636             Bruno Haible  <bruno@clisp.org>
26637
26638         Avoid warning despite dropping the return value of fwrite.
26639         * lib/unicodeio.c: Include ignore-value.h.
26640         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26641         * modules/unicodeio (Depends-on): Add ignore-value.
26642
26643 2009-10-26  Eric Blake  <ebb9@byu.net>
26644
26645         areadlinkat: fix fallback path
26646         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26647         pointer and zero.
26648
26649 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26650
26651         Use a better IO block size for modern systems
26652         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26653         * lib/md2.c: Likewise.
26654         * lib/md4.c: Likewise.
26655         * lib/md5.c: Likewise.
26656         * lib/sha1.c: Likewise.
26657         * lib/sha256.c: Likewise.
26658         * lib/sha512.c: Likewise.
26659
26660 2009-10-22  Eric Blake  <ebb9@byu.net>
26661
26662         tests: avoid several compiler warnings
26663         * tests/test-getcwd.c (main): Avoid buffer underflow.
26664         * tests/test-getdate.c (main): String literals are not safe with
26665         putenv, so use setenv.  Declare unused argument.
26666         * modules/getdate-tests (Depends-on): Add setenv.
26667         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26668         problems with string literals in char *.
26669         * tests/test-hash.c (main): Avoid shadowing declaration.
26670         (insert_new): Treat string literals as char const *.
26671         * tests/test-getopt.h (test_getopt): Likewise.
26672         (getopt_loop): Alter types to minimize casting elsewhere.
26673         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26674         (test_getopt_long_posix): Likewise.
26675         (do_getopt_long): Add wrapper to minimize casting.
26676         * tests/test-atexit.c (clear_temp_file): Use void.
26677         * tests/test-areadlink-with-size.c (main): Declare unused
26678         arguments.
26679         * tests/test-areadlink.c (main): Likewise.
26680         * tests/test-areadlinkat-with-size.c (main): Likewise.
26681         * tests/test-areadlinkat.c (main): Likewise.
26682         * tests/test-canonicalize-lgpl.c (main): Likewise.
26683         * tests/test-canonicalize.c (main): Likewise.
26684         * tests/test-dirent-safer.c (main): Likewise.
26685         * tests/test-dirname.c (main): Likewise.
26686         * tests/test-dup2.c (main): Likewise.
26687         * tests/test-fchdir.c (main): Likewise.
26688         * tests/test-fcntl-h.c (main): Likewise.
26689         * tests/test-fcntl-safer.c (main): Likewise.
26690         * tests/test-fdopendir.c (main): Likewise.
26691         * tests/test-fdutimensat.c (main): Likewise.
26692         * tests/test-fflush.c (main): Likewise.
26693         * tests/test-filenamecat.c (main): Likewise.
26694         * tests/test-filevercmp.c (main): Likewise.
26695         * tests/test-fopen-safer.c (main): Likewise.
26696         * tests/test-fopen.c (main): Likewise.
26697         * tests/test-fpending.c (main): Likewise.
26698         * tests/test-fpurge.c (main): Likewise.
26699         * tests/test-freading.c (main): Likewise.
26700         * tests/test-fstatat.c (main): Likewise.
26701         * tests/test-fsync.c (main): Likewise.
26702         * tests/test-futimens.c (main): Likewise.
26703         * tests/test-getndelim2.c (main): Likewise.
26704         * tests/test-gettimeofday.c (main): Likewise.
26705         * tests/test-getopt.c (main): Likewise.
26706         * tests/test-i-ring.c (main): Likewise.
26707         * tests/test-inttypes.c (main): Likewise.
26708         * tests/test-link.c (main): Likewise.
26709         * tests/test-lstat.c (main): Likewise.
26710         * tests/test-math.c (main): Likewise.
26711         * tests/test-md5.c (main): Likewise.
26712         * tests/test-memchr2.c (main): Likewise.
26713         * tests/test-memrchr.c (main): Likewise.
26714         * tests/test-mkdir.c (main): Likewise.
26715         * tests/test-mkdirat.c (main): Likewise.
26716         * tests/test-mkfifoat.c (main): Likewise.
26717         * tests/test-open.c (main): Likewise.
26718         * tests/test-openat-safer.c (main): Likewise.
26719         * tests/test-openat.c (main): Likewise.
26720         * tests/test-quotearg.c (main): Likewise.
26721         * tests/test-rawmemchr.c (main): Likewise.
26722         * tests/test-readlink.c (main): Likewise.
26723         * tests/test-remove.c (main): Likewise.
26724         * tests/test-rename.c (main): Likewise.
26725         * tests/test-renameat.c (main): Likewise.
26726         * tests/test-rmdir.c (main): Likewise.
26727         * tests/test-sha1.c (main): Likewise.
26728         * tests/test-signal.c (main): Likewise.
26729         * tests/test-sigaction.c (main): Likewise.
26730         * tests/test-stat.c (main): Likewise.
26731         * tests/test-stat-time.c (main): Likewise.
26732         * tests/test-stddef.c (main): Likewise.
26733         * tests/test-stdint.c (main): Likewise.
26734         * tests/test-stdio.c (main): Likewise.
26735         * tests/test-stdlib.c (main): Likewise.
26736         * tests/test-strchrnul.c (main): Likewise.
26737         * tests/test-strerror.c (main): Likewise.
26738         * tests/test-string.c (main): Likewise.
26739         * tests/test-strtod.c (main): Likewise.
26740         * tests/test-strverscmp.c (main): Likewise.
26741         * tests/test-symlink.c (main): Likewise.
26742         * tests/test-symlinkat.c (main): Likewise.
26743         * tests/test-sys_stat.c (main): Likewise.
26744         * tests/test-sys_time.c (main): Likewise.
26745         * tests/test-time.c (main): Likewise.
26746         * tests/test-unistd.c (main): Likewise.
26747         * tests/test-unlink.c (main): Likewise.
26748         * tests/test-unlinkat.c (main): Likewise.
26749         * tests/test-utimens.c (main): Likewise.
26750         * tests/test-utimensat.c (main): Likewise.
26751         * tests/test-version-etc.c (main): Likewise.
26752         * tests/test-wchar.c (main): Likewise.
26753         * tests/test-wctype.c (main): Likewise.
26754         * tests/test-xprintf-posix.c (main): Likewise.
26755         * tests/test-posixtm.c (main): Likewise.
26756         (STREQ): Delete unused macro.
26757         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26758         shadowed variables.
26759         * tests/test-memchr.c (main): Likewise.
26760
26761 2009-10-21  Eric Blake  <ebb9@byu.net>
26762
26763         areadlinkat: avoid failure on older glibc
26764         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26765         rather than mis-comparing 0 against FUNC_RESULT of char*.
26766
26767 2009-10-21  Bruno Haible  <bruno@clisp.org>
26768
26769         * modules/stpncpy (License): Relicense under LGPLv2+.
26770         Reported by David Lutterkort <lutter@redhat.com>.
26771
26772 2009-10-20  Eric Blake  <ebb9@byu.net>
26773
26774         utimensat: work around Solaris 9 bug
26775         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26776         has trailing slash bugs.
26777         * tests/test-lutimens.h (test_lutimens): Enhance test.
26778         * tests/test-utimens.h (test_utimens): Likewise.
26779         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26780         * doc/posix-functions/utimes.texi (utimes): Likewise.
26781         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26782         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26783         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26784         * doc/posix-functions/futimens.texi (futimens): Likewise.
26785
26786         fdutimensat: new module
26787         * modules/fdutimensat: New file.
26788         * lib/fdutimensat.c (fdutimensat): Likewise.
26789         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26790         * MODULES.html.sh (File system functions): Mention module.
26791         * modules/fdutimensat-tests: New test.
26792         * tests/test-fdutimensat.c: Likewise.
26793
26794         doc: regenerate INSTALL
26795         * doc/INSTALL: Reflect recent autoconf update.
26796         * doc/INSTALL.ISO: Likewise.
26797         * doc/INSTALL.UTF-8: Likewise.
26798
26799 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26800
26801         acl: warn if ACL support is not detected
26802         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26803
26804 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26805
26806         * lib/nproc.h: Add extern "C" block for C++.
26807
26808 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26809             Bruno Haible  <bruno@clisp.org>
26810
26811         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26812         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26813         * doc/posix-functions/isalpha.texi: Likewise.
26814         * doc/posix-functions/isblank.texi: Likewise.
26815         * doc/posix-functions/iscntrl.texi: Likewise.
26816         * doc/posix-functions/isdigit.texi: Likewise.
26817         * doc/posix-functions/isgraph.texi: Likewise.
26818         * doc/posix-functions/islower.texi: Likewise.
26819         * doc/posix-functions/isprint.texi: Likewise.
26820         * doc/posix-functions/ispunct.texi: Likewise.
26821         * doc/posix-functions/isspace.texi: Likewise.
26822         * doc/posix-functions/isupper.texi: Likewise.
26823         * doc/posix-functions/isxdigit.texi: Likewise.
26824
26825 2009-10-18  Bruno Haible  <bruno@clisp.org>
26826
26827         Tests for module 'isblank'.
26828         * modules/isblank-tests: New file.
26829         * tests/test-isblank.c: New file.
26830
26831         New module 'isblank'.
26832         * lib/isblank.c: New file.
26833         * m4/isblank.m4: New file.
26834         * modules/isblank: New file.
26835         * doc/posix-functions/isblank.texi: Mention the new module.
26836
26837 2009-10-18  Bruno Haible  <bruno@clisp.org>
26838
26839         New module 'ctype'.
26840         * lib/ctype.in.h: New file.
26841         * m4/ctype.m4: New file.
26842         * modules/ctype: New file.
26843         * doc/posix-headers/ctype.texi: Mention the new module.
26844
26845 2009-10-18  Jim Meyering  <meyering@redhat.com>
26846
26847         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26848         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26849         right after its initialization, rather than farther down.
26850         Keeping these in close proximity makes it easier to ensure
26851         that each such variable is initialized.  E.g.,
26852
26853             LIB_CLOCK_GETTIME=
26854             AC_SUBST([LIB_CLOCK_GETTIME])
26855
26856         This change also increments these serial numbers.
26857         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26858         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26860
26861 2009-10-18  Bruno Haible  <bruno@clisp.org>
26862
26863         Don't let environment variables perturb build.
26864         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26865         (gl_PREREQ_GETHRXTIME): ... not here.
26866
26867 2009-10-18  Bruno Haible  <bruno@clisp.org>
26868
26869         Avoid symlink attack in localcharset module.
26870         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26871         (O_NOFOLLOW): Define fallback.
26872         (get_charset_aliases): Don't open the file if it is a symbolic link.
26873         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26874         gl_FCNTL_H.
26875         (gl_FCNTL_H): Require it.
26876         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26877         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26878         Reported by Fergal Glynn <fglynn@veracode.com>.
26879
26880 2009-10-18  Bruno Haible  <bruno@clisp.org>
26881
26882         Implement nproc for mingw.
26883         * lib/nproc.c: Include <windows.h>
26884         (num_processors): On native Windows platforms, try GetSystemInfo.
26885
26886 2009-10-18  Bruno Haible  <bruno@clisp.org>
26887
26888         Implement nproc for IRIX.
26889         * lib/nproc.c: Include <sys/sysmp.h>.
26890         (num_processors): On IRIX systems, try sysmp.
26891         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26892
26893 2009-10-18  Bruno Haible  <bruno@clisp.org>
26894
26895         Implement nproc for HP-UX.
26896         * lib/nproc.c: Include <sys/pstat.h>
26897         (num_processors): On HP-UX systems, try pstat_getdynamic.
26898         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26899         pstat_getdynamic.
26900
26901 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26902             Bruno Haible  <bruno@clisp.org>
26903
26904         Implement nproc for NetBSD, OpenBSD.
26905         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26906         (ARRAY_SIZE): New macro.
26907         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26908         * m4/nproc.m4: New file.
26909         * modules/nproc (Files): Add m4/nproc.m4.
26910         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26911         (Makefile.am): Instead, augment lib_SOURCES.
26912
26913 2009-10-18  Bruno Haible  <bruno@clisp.org>
26914
26915         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26916         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26917         sys/param.h.
26918
26919 2009-10-16  Eric Blake  <ebb9@byu.net>
26920
26921         utimensat: new module
26922         * modules/utimensat: New file.
26923         * lib/utimensat.c (utimensat): Likewise.
26924         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26925         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26926         so we can work around Linux bugs.
26927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26928         * modules/sys_stat (Makefile.am): Substitute them.
26929         * lib/sys_stat.in.h (utimensat): Declare it.
26930         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26931         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26932         * modules/utimensat-tests: New test.
26933         * tests/test-utimensat.c: Likewise.
26934
26935         utimens: let lutimens work on non-symlinks
26936         * lib/utimens.c (lutimens): Fall back to utimens rather than
26937         failing with ENOSYS, when file is not a symlink.
26938         (utimens): Reduce redirection.
26939         * tests/test-lutimens.h (test_lutimens): Update test to cover
26940         non-symlinks.
26941         * tests/test-utimens.h (test_utimens): Update test to cover
26942         symlinks.
26943         * tests/test-utimens.c (main): Update caller.
26944
26945         utimens: cache whether utimensat syscall works
26946         * lib/utimens.c (utimensat_works_really): New cache variable.
26947         (fdutimens, lutimens): Use it to avoid failing syscall.
26948
26949         test-stat-time, test-utimens: improve portability
26950         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26951         ext4 on alpha, and for cygwin.
26952         * tests/test-utimens-common.h: New file.
26953         (nap): Factor delays into single function.
26954         * tests/test-lutimens.h (test_lutimens): Use new header.
26955         * tests/test-futimens.h (test_futimens): Likewise.
26956         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26957         timestamps to occur from same machine, as was done previously for
26958         test_utimens.
26959         * modules/utimens-tests (Files): Ship new file.
26960         * modules/futimens-tests (Files): Likewise.
26961         Reported in part by Jim Meyering.
26962
26963         sys_stat: sort replacement declarations
26964         * lib/sys_stat.in.h: Sort declarations.
26965         * lib/futimens.c (futimens): Fix typo.
26966
26967 2009-10-15  Jim Meyering  <meyering@redhat.com>
26968
26969         don't let environment settings perturb build
26970         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26971         could cause a configure-time and/or build-time malfunction.
26972         Typically, a configure-time function-in-library test is performed
26973         via code like this:
26974
26975           LIB_VAR=
26976           AC_SUBST([LIB_VAR])
26977           prefix_saved_LIBS=$LIBS
26978             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26979                        [test "$ac_cv_search_FUNC" = "none required" ||
26980                         LIB_VAR=$ac_cv_search_FUNC])
26981           LIBS=$prefix_saved_LIBS
26982
26983         However, in each of the files affected by this change, the LIB_VAR=
26984         initialization was omitted.  Thus, when set in the environment, its
26985         value would propagate into generated Makefiles when FUNC is not found
26986         in LIB_NAME.
26987         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26988         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26990
26991 2009-10-14  Eric Blake  <ebb9@byu.net>
26992
26993         fchdir: avoid infinite recursion in mingw
26994         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26995         recursing.
26996
26997         test-stat-time: port to mingw
26998         * tests/test-stat-time.c (force_unlink): Return a value.
26999         (test_ctime) [W32]: Fix compilation error.
27000         (nap): Don't call usleep with too large an argument.  Use
27001         force_unlink.
27002         * doc/pastposix-functions/usleep.texi (usleep): Document the
27003         portability issue.
27004
27005 2009-10-13  Jim Meyering  <meyering@redhat.com>
27006
27007         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
27008         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
27009         * modules/pipe-filter-ii: Likewise.
27010         * modules/sys_socket-tests: Likewise.
27011         * modules/tsearch-tests: Likewise.
27012         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
27013         (check): Depend on it.
27014
27015 2009-10-12  Eric Blake  <ebb9@byu.net>
27016
27017         utimens-tests: port to NFS file systems
27018         * tests/test-utimens.h (test_utimens): Refactor utimecmp
27019         comparisons to avoid spurious failures from timestamp drift
27020         between NFS machines.
27021
27022 2009-10-12  Eric Blake  <ebb9@byu.net>
27023
27024         stat-time-tests: minor cleanups
27025         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
27026         * tests/test-stat-time.c (nap): Separate assignment from call.
27027         Suggested by Paolo Bonzini and Bruno Haible.
27028
27029         sys_stat: guarantee struct timespec
27030         * lib/sys_stat.in.h (includes): Always include <time.h>
27031         * modules/sys_stat (Depends-on): Add time.
27032         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
27033         mode_t permission values.
27034         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
27035         get at subsecond timestamps.
27036
27037 2009-10-10  Eric Blake  <ebb9@byu.net>
27038
27039         futimens: new module
27040         * modules/futimens: New file.
27041         * lib/futimens.c (futimens): Likewise.
27042         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
27043         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
27044         we can work around Linux bugs.
27045         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27046         * modules/sys_stat (Makefile.am): Substitute them.
27047         * lib/sys_stat.in.h (futimens): Declare it.
27048         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27049         * doc/posix-functions/futimens.texi (futimens): Likewise.
27050         * modules/futimens-tests: New test.
27051         * tests/test-futimens.c: Likewise.
27052
27053         utimens: introduce fdutimens
27054         * lib/utimens.h (fdutimens): New prototype.
27055         * lib/utimens.c (gl_futimens): Move guts...
27056         (fdutimens): ...to new interface.
27057         * tests/test-utimens.c (do_fdutimens): Use it.
27058
27059         utimens: add UTIME_NOW and UTIME_OMIT support
27060         * lib/utimens.c (validate_timespec, update_timespec): New helper
27061         functions.
27062         (gl_futimens, lutimens): Use them.
27063         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
27064         stdbool, sys_stat.
27065         (Link): Mention resulting library dependency.
27066         * modules/utimecmp (Link): Likewise.
27067         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
27068         (Makefile.am): Pick up library dependency.
27069         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
27070         definition.
27071         * tests/test-sys_stat.c: Test the definitions.
27072         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
27073         * NEWS: Document library dependency.
27074
27075         utimecmp: support symlink timestamps
27076         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
27077         hashing when possible.  Use pathconf when available.
27078         (SYSCALL_RESOLUTION): Recognize tighter resolution.
27079         * modules/utimecmp (Depends-on): Add lstat.
27080
27081         utimens: add lutimens interface
27082         * lib/utimens.c (lutimens): New function.
27083         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
27084         * lib/utimens.h (lutimens): Declare new interface.
27085         * tests/test-utimens.c (main): Enhance test.
27086         * tests/test-lutimens.h (test_lutimens): New file.
27087         * modules/utimens-tests (Files): Distribute it.
27088         (Depends-on): Add symlink.
27089         (configure.ac): Check for usleep.
27090
27091         utimens: validate futimens usage
27092         * lib/utimens.c (gl_futimens): Require valid fd up front, using
27093         fewer syscalls on failure later on.  Avoid compiler warning on
27094         mingw.
27095         * modules/utimens (Depends-on): Add dup2.
27096
27097         utimens: add test
27098         * modules/utimens-tests: New test.
27099         * tests/test-utimens.h: New file.
27100         * tests/test-futimens.h: Likewise.
27101         * tests/test-utimens.c: Likewise.
27102
27103         doc: mention timestamp portability issues
27104         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
27105         instead.
27106         * doc/posix-functions/utime.texi (utime): Likewise.
27107         * doc/posix-functions/utimes.texi (utimes): Likewise.
27108         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
27109         instead.
27110         * doc/posix-functions/futimens.texi (futimens): Mention utimens
27111         module.
27112         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27113         Mention weakness with symlink timestamps.
27114         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
27115         to utimensat/futimens instead.
27116         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
27117
27118         test-dup2: enhance test
27119         * tests/test-dup2.c (main): Also check AT_FDCWD.
27120
27121         test-stat-time: avoid more spurious failures
27122         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
27123         xfs; and avoid race if the two timestamps cross quantization edge.
27124
27125         relocatable: prefer 'file system' over 'filesystem'
27126         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
27127         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
27128         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
27129         * doc/relocatable.texi (Enabling Relocatability): Likewise.
27130         * lib/relocatable.c (compute_curr_prefix): Likewise.
27131
27132 2009-10-10  Jim Meyering  <meyering@redhat.com>
27133
27134         stat-time-tests: check for the usleep function
27135         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
27136
27137 2009-10-10  Bruno Haible  <bruno@clisp.org>
27138
27139         * modules/xnanosleep: Put the Link section after the Include section.
27140
27141 2009-10-09  Eric Blake  <ebb9@byu.net>
27142
27143         dup2: work around FreeBSD 6.1 bug
27144         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
27145         * doc/posix-functions/dup2.texi (dup2): Document it.
27146         Reported by Nelson H. F. Beebe and Jim Meyering.
27147
27148         test-stat-time: port to buggy NFS clients
27149         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
27150         (test_ctime): Also skip test if mtime and ctime are skewed.
27151
27152         maint: prefer 'file system' over 'filesystem'
27153         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27154         * doc/posix-functions/lstat.texi (lstat): Likewise.
27155         * lib/file-has-acl.c (file_has_acl): Likewise.
27156         * lib/fwriteerror.c [TEST]: Likewise.
27157         * tests/test-areadlink.h (test_areadlink): Likewise.
27158         * tests/test-areadlinkat-with-size.c (main): Likewise.
27159         * tests/test-areadlinkat.c (main): Likewise.
27160         * tests/test-canonicalize-lgpl.c (main): Likewise.
27161         * tests/test-canonicalize.c (main): Likewise.
27162         * tests/test-fstatat.c (main): Likewise.
27163         * tests/test-linkat.c (main): Likewise.
27164         * tests/test-lstat.h (test_lstat_func): Likewise.
27165         * tests/test-mkdir.h (test_mkdir): Likewise.
27166         * tests/test-readlink.h (test_readlink): Likewise.
27167         * tests/test-remove.c (main): Likewise.
27168         * tests/test-rename.h (test_rename): Likewise.
27169         * tests/test-renameat.c (main): Likewise.
27170         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27171         * tests/test-symlink.h (test_symlink): Likewise.
27172         * tests/test-symlinkat.c (main): Likewise.
27173         * tests/test-unlink.h (test_unlink_func): Likewise.
27174         * tests/test-unlinkat.c (main): Likewise.
27175
27176         maint: make realtime library usage explicit
27177         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
27178         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
27179         * modules/settime (Link): Likewise.
27180         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
27181
27182         test-stat-time: speed up execution
27183         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
27184         warning on mingw.
27185         (nap): New helper function.
27186         (prepare_test): Use it to reduce sleep time.
27187         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
27188         execution.
27189         * modules/stat-time-tests (configure.ac): Check for usleep.
27190
27191 2009-10-09  Jim Meyering  <meyering@redhat.com>
27192
27193         selinux-h: always use getfilecon wrappers
27194         * lib/getfilecon.c: New file.
27195         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
27196         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
27197         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
27198         (fgetfilecon): Provide a stub.
27199         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
27200         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
27201         file unconditionally.
27202         When <selinux/selinux.h> is found, arrange to use wrappers.
27203         * modules/selinux-h (Files): Add getfilecon.c.
27204         (Makefile.am): Substitute include-next-related bits
27205         into the now-always-generated selinux/selinux.h file.
27206         * doc/glibc-functions/lgetfilecon.texi: New file.
27207         * doc/glibc-functions/fgetfilecon.texi: New file.
27208         * doc/glibc-functions/getfilecon.texi: New file.
27209         * doc/glibc-functions/getfilecon-desc.texi: New file.
27210         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
27211         which to pull in the new files.
27212         * MODULES.html.sh (Misc): Add selinux-h.
27213
27214 2009-10-08  Jim Meyering  <meyering@redhat.com>
27215
27216         unistd: fix comment typo
27217         * lib/unistd.in.h (euidaccess): Fix a comment typo.
27218
27219 2009-10-08  Eric Blake  <ebb9@byu.net>
27220
27221         areadlink: use SIZE_MAX consistently
27222         * modules/areadlink (Depends-on): Add stdint.
27223         * modules/areadlink-with-size (Depends-on): Likewise.
27224         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
27225         gives NULL; drop sys/types, since unistd gives size_t; and add
27226         stdint for SIZE_MAX.
27227         (SIZE_MAX): Rely on headers.
27228         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
27229         and add stdint.
27230         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
27231         (SIZE_MAX): Likewise.
27232         (INITIAL_BUF_SIZE): Turn into enum.
27233         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
27234
27235 2009-10-08  Jim Meyering  <meyering@redhat.com>
27236
27237         areadlinkat: avoid compilation failure
27238         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
27239         Fix typo in comment.
27240
27241 2009-10-07  Eric Blake  <ebb9@byu.net>
27242
27243         areadlinkat-with-size: new module
27244         * modules/areadlinkat-with-size: New module.
27245         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
27246         * lib/areadlink.h (areadlinkat): Declare it.
27247         * MODULES.html.sh (File system functions): Mention it.
27248         * modules/areadlinkat-with-size-tests: New test.
27249         * tests/test-areadlinkat-with-size.c: New file.
27250
27251         xreadlinkat: new module
27252         * modules/xreadlinkat: New module.
27253         * lib/xreadlinkat.c (xreadlinkat): New file.
27254         * lib/xreadlink.h (xreadlinkat): Declare it.
27255         * MODULES.html.sh (File system functions): Mention it.
27256
27257         areadlinkat: new module
27258         * lib/at-func.c (FUNC_FAIL): New define.
27259         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
27260         * modules/areadlinkat: New module.
27261         * lib/linkat.c (areadlinkat): Move...
27262         * lib/areadlinkat.c (areadlinkat): ...to new file.
27263         * lib/areadlink.h (areadlinkat): Declare it.
27264         * modules/linkat (Depends-on): Add areadlinkat.
27265         * MODULES.html.sh (File system functions): Mention it.
27266         * modules/areadlinkat-tests: New test.
27267         * tests/test-areadlinkat.c: New file.
27268
27269         areadlink, areadlink-with-size: add tests
27270         * modules/areadlink-tests: New test.
27271         * modules/areadlink-with-size-tests: Likewise.
27272         * tests/test-areadlink.h: New file.
27273         * tests/test-areadlink.c: Likewise.
27274         * tests/test-areadlink-with-size.c: Likewise.
27275
27276         maint: minor cleanups
27277         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
27278         _UNUSED_PARAMETER_ instead.
27279         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
27280         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
27281         * modules/linkat-tests (Files): Distribute test-link.h.
27282
27283         openat, utimens: whitespace cleanup
27284         * lib/openat.c: Prefer space throughout, rather than mix of 8
27285         spaces vs. tabs.
27286         * lib/at-func.c: Likewise.
27287         * lib/utimens.c: Likewise.
27288
27289         openat: avoid using wrong fd
27290         * lib/openat.c (openat_permissive): Reject user's fd if saving the
27291         working directory chooses same fd.
27292         * lib/at-func.c (AT_FUNC_NAME): Likewise.
27293
27294         mkdir, mkdirat: fix cygwin 1.5.x bug
27295         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
27296         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
27297         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
27298         bug.
27299         (gl_PREREQ_MKDIR): Delete unused macro.
27300         * modules/mkdir (Files): Track file rename.
27301         (configure.ac): Update macro name.
27302         * modules/openat (Depends-on): Add mkdir.
27303         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
27304
27305         mkdir, mkdirat: add tests
27306         * modules/mkdir-tests: New test.
27307         * tests/test-mkdir.h: New file.
27308         * tests/test-mkdir.c: Likewise.
27309         * tests/test-mkdirat.c: Likewise.
27310         * modules/openat-tests (Files): Add new files.
27311         (Makefile.am): Run new test.
27312
27313 2009-10-06  Eric Blake  <ebb9@byu.net>
27314
27315         doc: tweak *at function documentation
27316         * doc/posix-functions/faccessat.texi (faccessat): Mention
27317         known issue with replacement.
27318         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
27319         * doc/posix-functions/linkat.texi (linkat): Likewise.
27320         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27321         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27322         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27323         * doc/posix-functions/renameat.texi (renameat): Likewise.
27324         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27325
27326         openat: fix GNU/Hurd bug in unlinkat
27327         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
27328         broken.
27329         * doc/posix-functions/unlink.texi (unlink): Document this.
27330         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27331
27332         fdopendir: fix GNU/Hurd bug
27333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27334         allowing non-directory fds.
27335         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27336         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27337         * modules/dirent (Makefile.am): Substitute it.
27338         * lib/dirent.in.h (fdopendir): Declare replacement.
27339         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27340         * tests/test-fdopendir.c (main): Test something other than
27341         /dev/null, since on Hurd that behaves like a directory.
27342
27343         test-symlink: port to GNU/Hurd
27344         * tests/test-symlink.h (test_symlink): Relax expected errno.
27345
27346         doc: tweak more cygwin information
27347         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27348         now compatible with glibc.
27349         * doc/posix-functions/getopt.texi (getopt): Likewise.
27350
27351         getopt-gnu: add another test
27352         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27353         guarantee behavior relied on by m4.
27354         * tests/test-getopt.c (main): Use it.
27355         * modules/getopt-posix-tests (Depends-on): Add setenv.
27356         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27357
27358         getopt: fix compilation on darwin
27359         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27360         include.
27361         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27362         Reported by Ludovic Courtès.
27363
27364 2009-10-06  Bruno Haible  <bruno@clisp.org>
27365
27366         * modules/size_max (Description): Discourage its use.
27367         Reported by Simon Josefsson.
27368
27369 2009-10-06  Jim Meyering  <meyering@redhat.com>
27370
27371         linkat: avoid compilation failure
27372         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27373
27374 2009-10-05  Eric Blake  <ebb9@byu.net>
27375
27376         linkat: support Linux 2.6.17
27377         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27378         linkat on Linux, but allow cache variable override.
27379         * lib/linkat.c (rpl_linkat): Define override.
27380         * modules/linkat (Depends-on): Add symlinkat.
27381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27382         * modules/unistd (Makefile.am): Substitute it.
27383         * lib/unistd.in.h (linkat): Declare replacement.
27384         Reported by Pádraig Brady.
27385
27386         quotearg: port test to systems with C.UTF-8 locale
27387         * tests/test-quotearg.c (struct result_strings): Add another
27388         member, differentiating between C.ASCII and C.UTF-8 handling.
27389         (compare_strings): Add parameter.
27390         (main): Adjust all callers.
27391
27392         getopt: avoid clash with FreeBSD _getopt_internal
27393         * lib/getopt.in.h (_getopt_internal): Override the name.
27394         * lib/getopt_int.h (includes): Pick up any overrides.
27395         Reported by Reuben Thomas.
27396
27397         hash: allow C89 compilation
27398         * lib/hash.c (check_tuning): Move declaration before statement.
27399         Reported by Reuben Thomas.
27400
27401 2009-10-05  Karl Berry  <karl@gnu.org>
27402
27403         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27404
27405 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27406             Bruno Haible  <bruno@clisp.org>
27407
27408         * lib/uname.c (uname): Use a table-driven algorithm to compute
27409         Windows NT versions.
27410
27411 2009-10-04  Bruno Haible  <bruno@clisp.org>
27412
27413         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27414         program_invocation_short_name.
27415         * modules/progname (configure.ac): Test for presence of
27416         program_invocation_short_name.
27417         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27418
27419 2009-10-04  Bruno Haible  <bruno@clisp.org>
27420
27421         * lib/progname.c (set_program_name): Fix comment.
27422         Reported by Jim Meyering.
27423
27424 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27425             Bruno Haible  <bruno@clisp.org>
27426
27427         * lib/uname.c: Include <string.h>.
27428         (uname): Do only one call to GetVersionEx in the common case.
27429
27430 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27431             Bruno Haible  <bruno@clisp.org>
27432
27433         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27434         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27435         (uname): Add support for Windows CE and various non-x86 CPU types.
27436
27437 2009-10-03  Bruno Haible  <bruno@clisp.org>
27438
27439         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27440         invocation to tests/configure.ac.
27441         Reported by Ian Beckwith <ianb@erislabs.net>.
27442
27443 2009-10-02  Eric Blake  <ebb9@byu.net>
27444
27445         fchdir: avoid compiler warning
27446         * lib/fchdir.c (canonicalize_file_name)
27447         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27448
27449         test-open: support mingw errno values
27450         * tests/test-open.h (test_open): Relax test.
27451         * tests/test-fopen.h (test_fopen): Likewise.
27452         * tests/test-openat-safer.c (main): Likewise.
27453
27454         open: fix opening directory on mingw
27455         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27456
27457         test-open: on GNU/Hurd, /dev/null is a directory
27458         * tests/test-fopen.h (main): Rename...
27459         (test_fopen): ...to this.  Use a guaranteed non-directory when
27460         confirming open behavior on trailing slash.
27461         * tests/test-openat-safer.c (main): Likewise.
27462         * tests/test-open.h (main): Likewise....
27463         (test_open): ...to this.
27464         * tests/test-fopen.c (main): Adjust caller.
27465         * tests/test-fopen-safer.c (main): Likewise.
27466         * tests/test-open.c (main): Likewise.
27467         * tests/test-fcntl-safer.c (main): Likewise.
27468         Reported by Samuel Thibault.
27469
27470         rename, fchdir: don't ignore chdir failure
27471         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27472         * lib/rename.c (rpl_rename) [W32]: Likewise.
27473         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27474         an empty destination directory if source cannot be renamed,
27475         although there is still possibility for failure.
27476         * doc/posix-functions/rename.texi (rename): Document the race.
27477         Reported by Jim Meyering.
27478
27479         maint: cleanup whitespace in recent commits
27480         * lib/rename.c (rpl_rename): Remove tabs.
27481         * tests/test-link.h (test_link): Likewise.
27482         * lib/fchdir.c (get_name): Likewise.
27483         Reported by Jim Meyering.
27484
27485 2009-10-02  Ben Pfaff  <blp@gnu.org>
27486
27487         relocatable-prog-wrapper: Add missing dependency on
27488         double-slash-root.
27489         * modules/relocatable-prog-wrapper: Add dependency.
27490         Reported by Ian Beckwith <ianb@erislabs.net>.
27491
27492 2009-10-02  Eric Blake  <ebb9@byu.net>
27493
27494         renameat: fix Solaris bugs
27495         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27496         needed fixing.
27497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27498         * modules/stdio (Makefile.am): Substitute it.
27499         * lib/stdio.in.h (renameat): Declare replacement.
27500         * lib/renameat.c (rpl_renameat): Implement fix.
27501
27502         renameat: new module
27503         * modules/renameat: New file.
27504         * lib/renameat.c (renameat): Likewise.
27505         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27507         * modules/stdio (Makefile.am): Substitute them.
27508         * lib/stdio.in.h (renameat): Declare it.
27509         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27510         * doc/posix-functions/renameat.texi (renameat): Likewise.
27511         * modules/renameat-tests: New test.
27512         * tests/test-renameat.c: Likewise.
27513
27514         rename: fix mingw bugs
27515         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27516         directory overwrite bugs.
27517
27518         rename: fix another cygwin 1.5 bug
27519         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27520         checks.
27521         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27522         unnecessary cygwin workarounds.  Also work around bug with moving
27523         full directory onto an empty one.
27524         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27525
27526         rename-dest-slash: merge into rename module
27527         * modules/rename-dest-slash (Status): Mark obsolete.
27528         (Depends-on): Add rename.
27529         (Files): Let rename do it all.
27530         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27531         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27532         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27533         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27534         * lib/rename.c (rpl_rename): Update comments.
27535
27536         rename: fix cygwin 1.5.x bugs
27537         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27538         * lib/rename.c (rpl_rename): Work around them.
27539         * modules/rename (Depends-on): Add same-inode.
27540
27541         rename: fix Solaris 10 bug
27542         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27543         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27544         was the only bug.
27545
27546         rename: fix Solaris 9 bug
27547         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27548         on non-directory.  Avoid calling exit.
27549         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27550         strdup.
27551         * modules/rename-tests (Depends-on): Drop lstat.
27552         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27553         (gl_PREREQ_RENAME): Delete unused macro.
27554
27555         rename-dest-slash: fix NetBSD bug
27556         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27557         links.
27558         * modules/rename-dest-slash (Depends-on): Add same-inode.
27559
27560         rename-tests: new test, exposes several platform bugs
27561         * modules/rename-tests: New file.
27562         * tests/test-rename.h: Likewise.
27563         * tests/test-rename.c: Likewise.
27564         * doc/posix-functions/rename.texi (rename): Improve documentation,
27565         including bugs that will eventually be fixed in gnulib.
27566
27567 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27568
27569         * lib/uname.c: Include <stdlib.h>
27570         (uname): Assume version info is available.
27571
27572 2009-10-02  Jim Meyering  <meyering@redhat.com>
27573
27574         gnu-web-doc-update: correct --help output
27575         * build-aux/gnu-web-doc-update: Make --help output relevant.
27576
27577         gnu-web-doc-update: add standard options
27578         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27579
27580         gnu-web-doc-update: New module.
27581         Use this script to automatically update the on-line web documentation
27582         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27583         * modules/gnu-web-doc-update: New file, from coreutils.
27584         * build-aux/gnu-web-doc-update: New script.
27585
27586 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27587
27588         link: LoadLibrary is not needed.
27589         * lib/link.c: Use GetModuleHandle.
27590
27591 2009-10-01  Eric Blake  <ebb9@byu.net>
27592
27593         getopt: bump serial number
27594         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27595         change.
27596
27597         tests: tighten link, rmdir, and remove tests
27598         * tests/test-link.h (includes): No need to use <config.h> here.
27599         Clean up if directory hard link was created, otherwise test for
27600         trailing '.'.
27601         * tests/test-linkat.c (main): Simplify.
27602         * tests/test-remove.c (main): Enhance test for trailing '.'.
27603         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27604
27605 2009-10-01  Jim Meyering  <meyering@redhat.com>
27606
27607         maint.mk: requiring "make major" was annoying, for a "minor" release.
27608         What is intended is "stable", to contrast with alpha and beta,
27609         so require "make stable", not "make major".
27610         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27611         (get_tool_versions): Likewise.
27612         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27613
27614 2009-09-30  Ben Pfaff  <blp@gnu.org>
27615
27616         Fix broken build of replacement for Windows tmpfile().
27617         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27618         flags argument added along with the 'mkostemp' module.
27619
27620 2009-09-28  Bruno Haible  <bruno@clisp.org>
27621
27622         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27623         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27624         to 'remove_elt'.
27625         (gl_list_remove): Update.
27626         * lib/gl_list.c (gl_list_remove): Update.
27627         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27628         to 'remove_elt'.
27629         (gl_oset_remove): Update.
27630         * lib/gl_list.c (gl_oset_remove): Update.
27631         Reported by Eric Blake.
27632
27633 2009-09-28  Eric Blake  <ebb9@byu.net>
27634
27635         doc: mention yet more cygwin 1.7 status
27636         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27637         cygwin.
27638         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27639         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27640
27641         argp: fix test failure
27642         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27643         that are not upper-case.  Pass correct range to tolower.
27644
27645 2009-09-27  Jim Meyering  <meyering@redhat.com>
27646
27647         test-yesno: work around sparc-dash here-document infelicity
27648         Without this change, the literal \177 byte in a here document
27649         would make dash 0.5.5.1-3 access uninitialized memory.
27650         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27651         Instead, use a marker, "@", and filter through tr to create the desired
27652         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27653
27654 2009-09-27  Bruno Haible  <bruno@clisp.org>
27655
27656         Disable untested support for new flavours of ACLs on AIX.
27657         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27658         progress.
27659         * lib/set-mode-acl.c (qset_acl): Likewise.
27660
27661 2008-12-07  Bruno Haible  <bruno@clisp.org>
27662
27663         Add support for new flavours of ACLs on AIX. (Untested.)
27664         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27665         (file_has_acl): Add support for newer AIX.
27666         * lib/set-mode-acl.c (qset_acl): Likewise.
27667         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27668         Rainer Tammer <tammer@tammer.net>.
27669
27670 2009-09-26  Eric Blake  <ebb9@byu.net>
27671
27672         argp: fix compilation of getopt
27673         * lib/getopt.in.h (includes): Use different guard than glibc.
27674         Reported by Sergey Poznyakoff.
27675
27676         doc: mention more cygwin 1.7 status
27677         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27678         bug.
27679         * doc/posix-functions/execl.texi (execl): Likewise.
27680         * doc/posix-functions/execle.texi (execle): Likewise.
27681         * doc/posix-functions/execlp.texi (execlp): Likewise.
27682         * doc/posix-functions/execv.texi (execv): Likewise.
27683         * doc/posix-functions/execve.texi (execve): Likewise.
27684         * doc/posix-functions/execvp.texi (execvp): Likewise.
27685         * doc/glibc-functions/canonicalize_file_name.texi
27686         (canonicalize_file_name): Cygwin 1.7 now provides this.
27687         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27688         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27689         on AT_SYMLINK_NOFOLLOW.
27690
27691 2009-09-24  Eric Blake  <ebb9@byu.net>
27692
27693         test-linkat: make test more robust
27694         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27695
27696         getopt: fix inclusion guards for cygwin
27697         * modules/getopt-posix (Depends-on): Add include-next.
27698         (Makefile.am): Substitute more items in replacement header.
27699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27700         <getopt.h>.
27701         * lib/getopt.in.h (includes): Use split inclusion guard, and
27702         prefer <getopt.h> over include <unistd.h> when one is present.
27703         (option): Also override name of 'struct option'.
27704
27705         same-inode: revert prior change; it is not yet ready
27706         * NEWS: Undo mention of this change.
27707         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27708         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27709         * lib/cycle-check.c (cycle_check): Likewise.
27710         * lib/same.c (same_name): Likewise.
27711         * lib/at-func2.c (at_func2): Likewise.
27712
27713 2009-09-23  Eric Blake  <ebb9@byu.net>
27714
27715         linkat: new module
27716         * modules/linkat: New file.
27717         * lib/at-func2.c (at_func2): Likewise.
27718         * lib/linkat.c (linkat): Likewise.
27719         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27720         * lib/openat-priv.h (at_func2): Add declaration.
27721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27722         * modules/unistd (Makefile.am): Substitute them.
27723         * lib/unistd.in.h (linkat): Declare it.
27724         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27725         * doc/posix-functions/linkat.texi (linkat): Likewise.
27726         * doc/posix-functions/link.texi (link): Tweak wording.
27727         * tests/test-link.c (main): Move guts...
27728         * tests/test-link.h (test_link): ...into new file.
27729         * modules/linkat-tests: New test.
27730         * tests/test-linkat.c: Likewise.
27731         * modules/link-tests (Files): Ship new file.
27732         (Depends-on): Add stdbool.
27733
27734         dirname: add library-safe mdir_name
27735         * lib/dirname.h (mdir_name): New prototype.
27736         * lib/dirname.c (dir_name): Move guts...
27737         (mdir_name): ...to new function that avoids xalloc_die.
27738
27739         fchdir: another mingw fix
27740         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27741         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27742         on mingw (where it has not yet been ported), and make it optional
27743         elsewhere.
27744         (_gl_register_fd): Use it.
27745
27746         same-inode: make SAME_INODE tri-state, to port to mingw
27747         * NEWS: Mention this change.
27748         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27749         st_ino always being 0.
27750         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27751         * lib/cycle-check.c (cycle_check): Likewise.
27752         * lib/same.c (same_name): Likewise.
27753
27754         lstat: avoid mingw compilation error
27755         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27756         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27757         lstat ourselves.
27758         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27759         was adequate.
27760         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27761         the checks for lstat.
27762         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27763
27764         link: fix test failure on Solaris 9
27765         * lib/link.c (rpl_link): Don't assume link will catch bogus
27766         trailing slash on source.
27767
27768         test-symlinkat: enhance test
27769         * tests/test-readlink.c (main): Move guts...
27770         * tests/test-readlink.h (test_readlink): ...into new file.
27771         * tests/test-symlink.c (main): Move guts...
27772         * tests/test-symlink.h (test_symlink): ...into new file.
27773         * tests/test-symlinkat.c (main): Use new files for further
27774         coverage.
27775         (do_symlink, do_readlink): New helper functions.
27776         * modules/symlink-tests (Files): Ship new file.
27777         (Depends-on): Add stdbool.
27778         * modules/readlink-tests (Files): Ship new file.
27779         (Depends-on): Add stdbool.
27780         * modules/symlinkat-tests (Files): Use new files.
27781
27782 2009-09-23  Eric Blake  <ebb9@byu.net>
27783
27784         readlink: document portability issue with symlink length
27785         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27786         systems have bogus st_size on symlinks, and mention the
27787         areadlink-with-size module.
27788         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27789         * doc/posix-functions/readlink.texi (readlink): Mention the
27790         areadlink module, and ERANGE failure.
27791         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27792         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27793
27794         readlink: fix Solaris 9 bug with trailing slash
27795         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27796         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27797         * doc/posix-functions/readlink.texi (readlink): Document this.
27798         * modules/readlink-tests: New test.
27799         * tests/test-readlink.c: Likewise.
27800
27801         readlink: fix cygwin 1.5.x bug with return type
27802         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27803         * lib/unistd.in.h (readlink): Use ssize_t.
27804         * lib/readlink.c (readlink): Likewise.
27805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27806         * modules/unistd (Makefile.am): Substitute it.
27807         * lib/unistd.in.h (readlink): Declare replacement.
27808         * doc/posix-functions/readlink.texi (readlink): Document this.
27809
27810         symlink: use throughout gnulib
27811         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27812         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27813         symlink is not used.
27814         * modules/symlinkat (Depends-on): Add symlink.
27815         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27816         * modules/canonicalize-tests (Depends-on): Likewise.
27817         * modules/lstat-tests (Depends-on): Likewise.
27818         * modules/openat-tests (Depends-on): Likewise.
27819         * modules/remove-tests (Depends-on): Likewise.
27820         * modules/rmdir-tests (Depends-on): Likewise.
27821         * modules/unlink-tests (Depends-on): Likewise.
27822         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27823         * tests/test-canonicalize.c (symlink): Likewise.
27824         * tests/test-fstatat.c (symlink): Likewise.
27825         * tests/test-lstat.c (symlink): Likewise.
27826         * tests/test-remove.c (symlink): Likewise.
27827         * tests/test-rmdir.c (symlink): Likewise.
27828         * tests/test-unlink.c (symlink): Likewise.
27829         * tests/test-unlinkat.c (symlink): Likewise.
27830
27831         symlink: new module, for Solaris 9 bug
27832         * modules/symlink: New file.
27833         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27834         * lib/symlink.c: Likewise.
27835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27836         * modules/unistd (Makefile.am): Substitute them.
27837         * lib/unistd.in.h (symlink): Declare replacement.
27838         * MODULES.html.sh (File system functions): Mention it.
27839         * doc/posix-functions/symlink.texi (symlink): Likewise.
27840         * modules/symlink-tests: New test.
27841         * tests/test-symlink.c: Likewise.
27842
27843 2009-09-23  Bruno Haible  <bruno@clisp.org>
27844
27845         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27846         when needed.
27847         Test case: gnulib-tool --import --with-tests atexit inttypes.
27848         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27849
27850 2009-09-23  Bruno Haible  <bruno@clisp.org>
27851
27852         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27853         subcommand, not in a subshell.
27854
27855 2009-09-22  Eric Blake  <ebb9@byu.net>
27856
27857         unistd: sort replacement declarations
27858         * lib/unistd.in.h: Sort declarations.
27859
27860         open, openat: minor optimization
27861         * lib/open.c (open): If open succeeded, len is non-zero.
27862         * lib/openat.c (rpl_openat): Likewise.
27863
27864         link-follow: ensure correct result
27865         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27866         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27867         distinguish between possible failures.
27868
27869 2009-09-21  Eric Blake  <ebb9@byu.net>
27870
27871         fts: avoid compiler warning
27872         * lib/fts.c (dirent_inode_sort_may_be_useful)
27873         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27874
27875 2009-09-19  Bruno Haible  <bruno@clisp.org>
27876
27877         * lib/progreloc.c (canonicalize_file_name): New declaration.
27878
27879 2009-09-19  Eric Blake  <ebb9@byu.net>
27880
27881         link: fix quoting
27882         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27883
27884         openat: fix openat bugs on Solaris 9
27885         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27886         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27887         * modules/openat (Depends-on): Add open.
27888         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27889         * modules/fcntl-h (Makefile.am): Substitute it.
27890         * lib/fcntl.in.h (openat): Declare replacement.
27891         * doc/posix-functions/openat.texi (openat): Document this.
27892
27893         openat: move fstatat and unlinkat into correct files
27894         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27895         compiled.
27896         * lib/openat.c (fstatat, unlinkat): Move...
27897         * lib/fstatat.c (fstatat): ...into correct files.
27898         * lib/unlinkat.c (unlinkat): Likewise.
27899
27900         openat: fix unlinkat bugs on Solaris 9
27901         * lib/unlinkat.c (unlinkat): New file.
27902         * modules/openat (Depends-on): Add unlink.
27903         (Files): Distribute it.
27904         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27905         trailing slash behavior is broken.
27906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27907         * modules/unistd (Makefile.am): Substitute it.
27908         * lib/unistd.in.h (unlinkat): Declare replacement.
27909         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27910
27911         openat: fix fstatat bugs on Solaris 9
27912         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27913         stat.
27914         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27915
27916         test-unlinkat: enhance test, to expose Solaris 9 bug
27917         * tests/test-unlink.c (main): Factor guts...
27918         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27919         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27920         * tests/test-rmdir.c (main): Adjust caller.
27921         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27922         (unlinker): New helper function.
27923         (rmdirat): Enhance check.
27924         * modules/rmdir-tests (Depends-on): Add stdbool.
27925         * modules/unlink-tests (Depends-on): Likewise.
27926         (Files): Add test-unlink.h.
27927         * modules/openat-tests (Files): Likewise.
27928         (Depends-on): Add unlinkdir.
27929
27930         test-fstatat: new test, to expose Solaris 9 bugs
27931         * tests/test-stat.c (main): Factor guts...
27932         * tests/test-stat.h (test_stat_func): ...into new file.
27933         * tests/test-lstat.c (main): Factor guts...
27934         * tests/test-lstat.h (test_lstat_func): ...into new file.
27935         * tests/test-fstatat.c: New file.
27936         * modules/stat-tests (Files): Add test-stat.h.
27937         * modules/lstat-tests (Files): Add test-lstat.h.
27938         (Depends-on): Add stdbool.
27939         * modules/openat-tests (Depends-on): Add pathmax.
27940         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27941         (Makefile.am): Run new test.
27942
27943         remove: new module, for mingw and Solaris 9 bugs
27944         * modules/remove: New file.
27945         * lib/remove.c: Likewise.
27946         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27948         * modules/stdio (Makefile.am): Use them.
27949         * lib/stdio.in.h (remove): Declare replacement.
27950         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27951         * doc/posix-functions/remove.texi (remove): Likewise.
27952         * modules/remove-tests: New test.
27953         * tests/test-remove.c: Likewise.
27954
27955         unlink: new module, for Solaris 9 bug
27956         * modules/unlink: New file.
27957         * lib/unlink.c: Likewise.
27958         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27960         * modules/unistd (Makefile.am): Use them.
27961         * lib/unistd.in.h (stat): Declare replacement.
27962         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27963         * doc/posix-functions/unlink.texi (unlink): Likewise.
27964         * modules/unlink-tests: New test.
27965         * tests/test-unlink.c: Likewise.
27966
27967         lstat: fix Solaris 9 bug
27968         * lib/lstat.c (lstat): Also check for trailing slash on
27969         non-symlink, non-directories.  Use stat module to simplify logic.
27970         * doc/posix-functions/lstat.texi (lstat): Document it.
27971         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27972         (configure.ac): Check for symlink.
27973         * tests/test-lstat.c (main): Add more tests.
27974
27975         stat: add as dependency to other modules
27976         * modules/chown (Depends-on): Add stat.
27977         * modules/euidaccess (Depends-on): Likewise.
27978         * modules/fchdir (Depends-on): Likewise.
27979         * modules/isdir (Depends-on): Likewise.
27980         * modules/link (Depends-on): Likewise.
27981         * modules/lstat (Depends-on): Likewise.
27982         * modules/mkdir-p (Depends-on): Likewise.
27983         * modules/modechange (Depends-on): Likewise.
27984         * modules/open (Depends-on): Likewise.
27985         * modules/readlink (Depends-on): Likewise.
27986         * modules/same (Depends-on): Likewise.
27987
27988         stat: fix Solaris 9 bug
27989         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27990         slash.
27991         * lib/stat.c (rpl_stat): Work around it.
27992         * doc/posix-functions/stat.texi (stat): Update documentation.
27993
27994         stat: new module, for mingw bug
27995         * modules/stat: New file.
27996         * lib/stat.c: Likewise.
27997         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27999         * modules/sys_stat (Makefile.am): Use them.
28000         * lib/sys_stat.in.h (stat): Declare replacement.
28001         * lib/openat.c (fstatat): Deal with lstat and stat being function
28002         macros.
28003         * modules/openat (Depends-on): Add inline.
28004         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28005         * doc/posix-functions/stat.texi (stat): Likewise.
28006         * modules/stat-tests: New test.
28007         * tests/test-stat.c: Likewise.
28008
28009 2009-09-19  Jim Meyering  <meyering@redhat.com>
28010
28011         syntax-check: detect unnecessary inclusion of canonicalize.h
28012         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
28013
28014 2009-09-19  Eric Blake  <ebb9@byu.net>
28015
28016         canonicalize-lgpl: adjust clients to use correct header
28017         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28018         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
28019         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
28020         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
28021         * lib/progreloc.c (includes): Likewise.
28022
28023 2009-09-19  Jim Meyering  <meyering@redhat.com>
28024
28025         test-posixtm.c: correct a comment
28026         * tests/test-posixtm.c: Correct first-line comment.
28027         Spotted by Eric Blake.
28028
28029 2009-09-16  Jim Meyering  <meyering@redhat.com>
28030
28031         posixtm-tests: make T const-correct; add a test case
28032         * tests/test-posixtm.c (T): Declare const.
28033         Add a test for -(2^31+1).
28034         Remove useless can-succeed-only-in-2002 test.
28035
28036         posixtm-tests: adjust the sole failing test
28037         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
28038         expected output matches what mktime now produces.  Cross-checked via
28039         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
28040
28041         posixtm: move #ifdef'd tests into a new module
28042         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
28043         * tests/test-posixtm.c: ... this new file.
28044         * modules/posixtm-tests: New module.
28045
28046 2009-09-19  Eric Blake  <ebb9@byu.net>
28047
28048         openat: simplify use of at-func.c
28049         * lib/at-func.c (includes): Include prerequisites here, to
28050         simplify requirements on client files.
28051         * lib/openat-priv.h: Add double-inclusion guard.
28052         * lib/faccessat.c (includes): Simplify.
28053         * lib/fchmodat.c (includes): Likewise.
28054         * lib/fchownat.c (includes): Likewise.
28055         * lib/mkdirat.c (includes): Likewise.
28056         * lib/mkfifoat.c (includes): Likewise.
28057         * lib/symlinkat.c (includes): Likewise.
28058
28059         openat: allow return of fd 0
28060         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
28061         * modules/save-cwd (Depends-on): Replace fcntl-safer with
28062         unistd-safer.
28063         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
28064         <fcntl.h>; this module does not leak fds.
28065         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
28066         must be allowed to return 0, leaving openat_safer to add the
28067         safety.
28068         (openat_permissive): Avoid writing to just-opened fd 2 if
28069         restoring the current directory fails.
28070         * lib/openat-die.c (openat_restore_fail): Add comment.
28071         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
28072         (save_cwd): Guarantee safe fd, but without use of open_safer.
28073         * tests/test-openat.c: New test.
28074         * modules/openat-tests (Files, Makefile.am): Distribute and build
28075         new file.
28076
28077         relocatable-prog-wrapper: fix build
28078         * modules/relocatable-prog-wrapper (Files): Update name of
28079         canonicalize m4 file, broken on 2009-09-17.
28080         Reported by emad hajjar <aleppos@hotmail.com>.
28081
28082 2009-09-19  Bruno Haible  <bruno@clisp.org>
28083
28084         * lib/safe-alloc.h: Use the standard header with GPL copyright.
28085         * lib/safe-alloc.c: Likewise.
28086         Reported by Ian Beckwith <ianb@erislabs.net>.
28087
28088 2009-09-18  Bruno Haible  <bruno@clisp.org>
28089
28090         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
28091         Reported by <erobles@sensacd.com.mx>.
28092
28093 2009-09-17  Eric Blake  <ebb9@byu.net>
28094
28095         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
28096         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
28097         slashes when checking if last component is missing.
28098         * tests/test-canonicalize.c (main): Test this.
28099
28100         canonicalize, canonicalize-lgpl: honor // if distinct from /
28101         * modules/canonicalize (Files): Add double-slash-root.m4.
28102         * modules/canonicalize-lgpl (Files): Likewise.
28103         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28104         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
28105         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
28106         fallback definition.
28107         (canonicalize_filename_mode): Use it to protect //.
28108         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
28109         (__realpath): Likewise.
28110         * tests/test-canonicalize.c (main): Test this.
28111         * tests/test-canonicalize-lgpl.c (main): Likewise.
28112         * modules/canonicalize-tests (Depends-on): Add same-inode.
28113         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28114
28115         canonicalize-lgpl: fix glibc bug with trailing slash
28116         * m4/canonicalize-lgpl.m4: Move contents...
28117         * m4/canonicalize.m4: ...here.
28118         (gl_CANONICALIZE_LGPL): Factor realpath check...
28119         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28120         glibc 2.3.5 bug, fixed 2005-04-27.
28121         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
28122         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
28123         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
28124         * modules/canonicalize-lgpl (Files): Manage file rename.
28125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28126         * modules/stdlib (Makefile.am): Substitute witness.
28127         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
28128         is needed.
28129         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
28130         replacement is required.
28131         * lib/canonicalize.c (canonicalize_file_name): Likewise.
28132         * doc/glibc-functions/canonicalize_file_name.texi
28133         (canonicalize_file_name): Document this.
28134         * doc/posix-functions/realpath.texi (realpath): Likewise.
28135
28136         canonicalize-lgpl: reject non-directory with trailing slash
28137         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
28138         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
28139         catches failures in glibc 2.3.5.
28140         * tests/test-canonicalize.c (main): Likewise.
28141
28142         canonicalize-lgpl: use native realpath if it works
28143         * lib/canonicalize-lgpl.c (realpath): Guard with
28144         FUNC_REALPATH_WORKS.
28145         * lib/stdlib.in.h (realpath): Make declaration optional based on
28146         HAVE_REALPATH.
28147         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
28148         native realpath works.
28149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28150         * modules/stdlib (Makefile.am): Substitute witness.
28151
28152         canonicalize, canonicalize-lgpl: use <stdlib.h>
28153         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
28154         (Include): Mention <stdlib.h>.
28155         (configure.ac): Mention functions we provide.
28156         * modules/canonicalize (configure.ac): Likewise.
28157         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
28158         realpath if canonicalize_file_name is missing.
28159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
28160         * modules/stdlib (Makefile.am): Substitute witnesses.
28161         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
28162         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
28163         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
28164         * NEWS: Document this.
28165         * doc/glibc-functions/canonicalize_file_name.texi
28166         (canonicalize_file_name): Likewise.
28167         * doc/posix-functions/realpath.texi (realpath): Likewise.
28168         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
28169
28170         test-canonicalize: consolidate into single C program
28171         * tests/test-canonicalize.sh: Delete; move setup into...
28172         * tests/test-canonicalize.c (main): ...the program, making it
28173         easier to run in debugger.  Add some tests.
28174         * modules/canonicalize-tests (Files): Remove unused file.
28175         (Depends-on): Add progname.
28176         (configure.ac, Makefile.am): Simplify.
28177
28178         test-canonicalize-lgpl: consolidate into single C program
28179         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
28180         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
28181         easier to run in debugger.  Add some tests.
28182         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
28183         (configure.ac, Makefile.am): Simplify.
28184
28185         canonicalize: avoid resolvepath
28186         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
28187         unnecessary checks.
28188         * lib/canonicalize.c (includes): Simplify.
28189         (canonicalize_file_name): Drop resolvepath implementation.
28190         * modules/canonicalize (Depends-on): Drop filenamecat.
28191
28192         canonicalize: don't lose errno
28193         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
28194         over calls to free.
28195
28196         canonicalize: simplify errno handling
28197         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
28198         assignment.
28199
28200         canonicalize, canonicalize-lgpl: update module dependencies
28201         * modules/canonicalize (Depends-on): Add extensions, lstat,
28202         pathmax, stdlib.
28203         (Files): Drop pathmax.h.
28204         (configure.ac): Adjust macro name.
28205         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
28206         lstat, stdlib, sys_stat.
28207         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
28208         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
28209         extensions.
28210         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
28211         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
28212         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
28213         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
28214         declaration, if available.
28215         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
28216         we can rely on the readlink module.
28217         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
28218         (includes): Use <unistd.h> unconditionally.
28219
28220 2009-09-17  Eric Blake  <ebb9@byu.net>
28221
28222         maint: make Include sections of modules consistent
28223         * modules/alloca: Use only header name; no need to list #include.
28224         * modules/alloca-opt: Likewise.
28225         * modules/arpa_inet: Likewise.
28226         * modules/canon-host: Likewise.
28227         * modules/configmake: Likewise.
28228         * modules/dirent: Likewise.
28229         * modules/eealloc: Likewise.
28230         * modules/environ: Likewise.
28231         * modules/fchdir: Likewise.
28232         * modules/fcntl: Likewise.
28233         * modules/fcntl-h: Likewise.
28234         * modules/gethrxtime: Likewise.
28235         * modules/gettime: Likewise.
28236         * modules/ignore-value: Likewise.
28237         * modules/inet_ntop: Likewise.
28238         * modules/inet_pton: Likewise.
28239         * modules/inttypes: Likewise.
28240         * modules/isnand-nolibm: Likewise.
28241         * modules/isnanf-nolibm: Likewise.
28242         * modules/mbchar: Likewise.
28243         * modules/mbfile: Likewise.
28244         * modules/mbiter: Likewise.
28245         * modules/mbuiter: Likewise.
28246         * modules/netdb: Likewise.
28247         * modules/netinet_in: Likewise.
28248         * modules/nproc: Likewise.
28249         * modules/pagealign_alloc: Likewise.
28250         * modules/poll: Likewise.
28251         * modules/printf-frexp: Likewise.
28252         * modules/pthread: Likewise.
28253         * modules/putenv: Likewise.
28254         * modules/random_r: Likewise.
28255         * modules/relocatable-prog: Likewise.
28256         * modules/search: Likewise.
28257         * modules/select: Likewise.
28258         * modules/selinux-h: Likewise.
28259         * modules/settime: Likewise.
28260         * modules/signal: Likewise.
28261         * modules/size_max: Likewise.
28262         * modules/socklen: Likewise.
28263         * modules/ssize_t: Likewise.
28264         * modules/stdarg: Likewise.
28265         * modules/stdbool: Likewise.
28266         * modules/stddef: Likewise.
28267         * modules/stdint: Likewise.
28268         * modules/stdio: Likewise.
28269         * modules/stdlib: Likewise.
28270         * modules/string: Likewise.
28271         * modules/strings: Likewise.
28272         * modules/sys_file: Likewise.
28273         * modules/sys_ioctl: Likewise.
28274         * modules/sys_select: Likewise.
28275         * modules/sys_socket: Likewise.
28276         * modules/sys_stat: Likewise.
28277         * modules/sys_time: Likewise.
28278         * modules/sys_times: Likewise.
28279         * modules/sys_utsname: Likewise.
28280         * modules/sys_wait: Likewise.
28281         * modules/sysexits: Likewise.
28282         * modules/time: Likewise.
28283         * modules/times: Likewise.
28284         * modules/tmpfile: Likewise.
28285         * modules/trim: Likewise.
28286         * modules/unistd: Likewise.
28287         * modules/wchar: Likewise.
28288         * modules/wctype: Likewise.
28289
28290 2009-09-17  Bruno Haible  <bruno@clisp.org>
28291
28292         Make getdate.y compile on QNX and NetBSD 5 / i386.
28293         * m4/getdate.m4 (gl_GETDATE): Conditionally define
28294         TIME_T_FITS_IN_LONG_INT.
28295         * lib/getdate.y (long_time_t): New type.
28296         (relative_time): Change type of 'seconds' field to long_time_t.
28297         (get_date): Update types of local variables. Check against overflow
28298         during conversion from long_time_t to time_t.
28299         Reported by Matt Kraai <kraai@ftbfs.org>
28300         and Hasso Tepper <hasso@netbsd.org>.
28301
28302 2009-09-17  Bruno Haible  <bruno@clisp.org>
28303
28304         * modules/COPYING: Update copyright years.
28305         * modules/README: Likeiwse.
28306         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
28307         Reported by Ian Beckwith <ianb@erislabs.net>.
28308
28309 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28310
28311         * users.txt: Update references for gnuit package.
28312
28313 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28314
28315         * m4/getdelim.m4: Fix typo in copyright line.
28316
28317 2009-09-17  Bruno Haible  <bruno@clisp.org>
28318
28319         * lib/atoll.c: Use the standard header with GPL copyright.
28320         * lib/argz.in.h: Likewise.
28321         * lib/glob.c: Likewise.
28322         * lib/glob-libc.h: Likewise.
28323         * lib/random_r.c: Likewise.
28324         * lib/siglist.h: Likewise.
28325         * lib/strsignal.c: Likewise.
28326         Reported by Ian Beckwith <ianb@erislabs.net>.
28327
28328 2009-09-17  Eric Blake  <ebb9@byu.net>
28329
28330         rmdir: ensure correct dependency order
28331         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28332
28333 2009-09-17  Bruno Haible  <bruno@clisp.org>
28334
28335         Disable assertion that fails on NetBSD 5 / i386.
28336         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28337         Reported by Sam Steingold <sds@gnu.org>
28338         and Hasso Tepper <hasso@netbsd.org>.
28339
28340 2009-09-16  Eric Blake  <ebb9@byu.net>
28341
28342         unlinkdir: port to mingw
28343         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28344         on which no one can unlink a directory.
28345
28346         stdlib: sort witness names
28347         * modules/stdlib (Makefile.am): Sort replacements.
28348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28349         * lib/stdlib.in.h: Likewise.
28350
28351         parse-duration-tests: avoid link failure
28352         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28353         LIBINTL.
28354         Reported by Tom G. Christensen.
28355
28356         openat-tests: ensure unlinkat behaves like rmdir
28357         * tests/test-rmdir.c (main): Factor guts...
28358         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28359         * modules/rmdir-tests (Files): Ship new file.
28360         * modules/openat-tests: New test.
28361         * tests/test-unlinkat.c: Likewise.
28362
28363         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28364         * modules/rmdir-errno (Status, Notice): Now obsolete.
28365
28366         rmdir: work around cygwin 1.5.x and mingw bugs
28367         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28368         * lib/rmdir.c (rmdir): Work around it.
28369         * modules/rmdir (Status, Notice): No longer obsolete.
28370         (Files): Add dos.m4.
28371         (Depends-on): Add unistd.
28372         (configure.ac): Set witnesses.
28373         (License): Relax to LGPLv2+.
28374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28375         * modules/unistd (Makefile.am): Substitute witnesses.
28376         * lib/unistd.in.h (rmdir): Declare replacement.
28377         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28378         * modules/rmdir-tests: New tests.
28379         * tests/test-rmdir.c: Likewise.
28380
28381 2009-09-15  Eric Blake  <ebb9@byu.net>
28382
28383         fchdir: improve use of replacement functions
28384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28386         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28387         REPLACE_CLOSEDIR.
28388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28389         * modules/sys_stat (Makefile.am): Substitute correct witness.
28390         * modules/dirent (Makefile.am): Likewise.
28391         * modules/unistd (Makefile.am): Likewise.
28392         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28393         * lib/unistd.in.h (dup): Likewise.
28394         * lib/sys_stat.in.h (fstat): Likewise.
28395
28396         maint: ignore gnulib-tool temp files
28397         * .gitignore: Ignore files created during gnulib-tool --test.
28398
28399 2009-09-13  Jim Meyering  <meyering@redhat.com>
28400
28401         posixtm: don't reject a time that specify "60" as the number of seconds
28402         * lib/posixtm.c (posixtime): The code to reject invalid dates
28403         would also reject a time specified with the .60 suffix.
28404         But POSIX allows that, in order to accommodate leap seconds.
28405         So don't reject it.
28406         (main): Adjust tests accordingly.
28407         * modules/posixtm (Depends-on): Add stpcpy.
28408
28409 2009-09-11  Jim Meyering  <meyering@redhat.com>
28410
28411         announce-gen: include [$release_type] in emitted Subject:
28412         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28413         e.g., [stable] in the emitted Subject: line.
28414
28415 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28416
28417         Remove obsolete macros from several modules.
28418         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28419         obsolete Autoconf macros with their modern counterparts.
28420         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28421         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28423         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28424         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28425         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28427         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28428         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28429         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28430         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28431         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28432         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28433         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28434         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28435         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28436         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28437         * m4/time_r.m4 (gl_TIME_R): Likewise.
28438         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28439         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28440         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28441
28442         Fix copyright header in build-aux scripts.
28443         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28444         recommendation.
28445         * build-aux/ncftpput-ftp: Likewise.
28446         * build-aux/update-copyright: Likewise.
28447
28448 2009-09-09  Eric Blake  <ebb9@byu.net>
28449
28450         test-link: allow Linux choice of errno
28451         * tests/test-link.c (main): Relax test for alternate error.
28452
28453         strndup: fix improper m4 caching
28454         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28455         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28456         (gl_PREREQ_STRNDUP): Delete.
28457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28458         * modules/string (Makefile.am): Substitute it.
28459         * lib/string.in.h (strndup): Modernize prototype.
28460
28461         getcwd: port to mingw
28462         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28463         different from the POSIX assumptions made throughout the getcwd
28464         module; fortunately, the mingw getcwd does not need replacement.
28465         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28466         * modules/getcwd-tests: New test.
28467         * tests/test-getcwd.c: Likewise.
28468
28469         link: fix platform bugs
28470         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28471         * lib/link.c (link): Work around them.  Fix related mingw bug.
28472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28473         * modules/unistd (Makefile.am): Substitute it.
28474         * lib/unistd.in.h (link): Declare replacement.
28475         * doc/posix-functions/link.texi (link): Document this.
28476         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28477
28478         test-link: consolidate into single C program, test more cases
28479         * tests/test-link.sh: Delete.
28480         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28481         at least Cygwin and Solaris.
28482         * modules/link-tests (Files): Remove unused file.
28483         (Depends-on): Add errno, sys_stat.
28484         (Makefile.am): Simplify.
28485
28486 2009-09-08  Bruno Haible  <bruno@clisp.org>
28487
28488         Work around towlower, towupper bug on mingw.
28489         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28490         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28491         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28492         * doc/posix-functions/towupper.texi: Likewise.
28493         Reported by Eric Blake.
28494
28495 2009-09-08  Jim Meyering  <meyering@redhat.com>
28496
28497         build: don't try to run autoheader if we don't use it
28498         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28499         is not used in configure.ac.
28500
28501 2009-09-08  Eric Blake  <ebb9@byu.net>
28502
28503         euidaccess: fix compilation error
28504         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28505
28506         rawmemchr: relax license
28507         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28508         okay.
28509         Reported by Jim Meyering.
28510
28511         mkfifoat: new module
28512         * modules/mkfifoat: New file.
28513         * lib/mkfifoat.c: Likewise.
28514         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28515         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28516         * modules/sys_stat (Makefile.am): Use them.
28517         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28518         * MODULES.html.sh (File system functions): Mention module.
28519         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28520         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28521         * modules/mkfifoat-tests: New test.
28522         * tests/test-mkfifoat.c: Likewise.
28523
28524         strchrnul: relax license
28525         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28526         okay.
28527         Reported by Jim Meyering.
28528
28529 2009-09-08  Eric Blake  <ebb9@byu.net>
28530
28531         fstatat: fix compilation on Solaris
28532         * lib/fstatat.c (includes): Add fcntl.h.
28533         Reported by Pádraig Brady.
28534
28535 2009-09-07  Eric Blake  <ebb9@byu.net>
28536
28537         rename: modernize replacement
28538         * modules/rename (Depends-on): Add stdio.
28539         (configure.ac): Declare witness.
28540         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28541         stdio take care of replacement.
28542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28543         * modules/stdio (Makefile.am): Substitute them.
28544         * lib/stdio.in.h (rename): Declare replacement.
28545         * lib/rename.c (includes): Allow cross-compilation to non-windows
28546         machines.
28547         * doc/posix-functions/rename.texi (rename): Improve
28548         documentation.
28549
28550         stdio: sort witness names
28551         * modules/stdio (Makefile.am): Sort replacements.
28552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28553         * lib/stdio.in.h: Likewise.
28554
28555         getcwd: minor cleanups
28556         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28557         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28558
28559         openat: provide more convenience names
28560         * modules/faccessat (configure.ac): Add C witness.
28561         * lib/unistd.in.h (readlinkat): Fix typo.
28562         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28563         convenience wrappers.
28564         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28565         wrappers in syntax checks.
28566
28567 2009-09-06  Eric Blake  <ebb9@byu.net>
28568
28569         doc: fix comments in recent patches
28570         * lib/faccessat.c: Mention correct function.
28571         * lib/fchmodat.c: Likewise.
28572         * lib/fchownat.c: Likewise.
28573         * lib/symlinkat.c: Likewise.
28574         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28575         constants.
28576
28577         faccessat, symlinkat: continue cleanup of previous patch
28578         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28579         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28580         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28582         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28583         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28584         set.
28585
28586 2009-09-06  Bruno Haible  <bruno@clisp.org>
28587
28588         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28589         (fstatat): Declare if GNULIB_FSTATAT is set.
28590         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28591         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28592         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28593         * modules/fcntl-h (Files): Remove m4/openat.m4.
28594         * modules/sys_stat (Files): Remove m4/openat.m4.
28595         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28596         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28597         * modules/unistd (Files): Remove m4/openat.m4.
28598         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28599         GNULIB_OPENAT.
28600         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28601         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28603         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28604         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28605         gl_OPENAT_DEFAULTS.
28606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28607         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28608         Don't require gl_OPENAT_DEFAULTS.
28609         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28610         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28611         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28612         (gl_OPENAT_DEFAULTS): Remove macro.
28613
28614 2009-09-06  Bruno Haible  <bruno@clisp.org>
28615
28616         * modules/openat (configure.ac): Remove unneeded witness.
28617
28618 2009-09-06  Bruno Haible  <bruno@clisp.org>
28619
28620         Set errno to ENOSYS when a function is entirely unsupported.
28621         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28622         EOPNOTSUPP.
28623         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28624         * modules/chown (Depends-on): Remove errno.
28625
28626 2009-09-06  Bruno Haible  <bruno@clisp.org>
28627
28628         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28629
28630 2009-09-06  Bruno Haible  <bruno@clisp.org>
28631
28632         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28633
28634 2009-09-06  Ben Pfaff  <blp@gnu.org>
28635             Bruno Haible  <bruno@clisp.org>
28636
28637         Work around a glibc bug in strtok_r.
28638         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28639         Undefine if UNDEFINE_STRTOK_R is set.
28640         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28642         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28643         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28644         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28645         UNDEFINE_STRTOK_R.
28646         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28647
28648 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28649
28650         exclude: minor fix
28651         * lib/exclude.c: Include wctype.h
28652
28653 2009-09-06  Akim Demaille  <demaille@gostai.com>
28654
28655         bootstrap: improve error message
28656         * build-aux/bootstrap (find_tool): Upon failure, report the list
28657         of candidates.
28658         Honor the initial value of the envvar.
28659
28660 2009-09-05  Eric Blake  <ebb9@byu.net>
28661
28662         symlinkat: new module
28663         * modules/symlinkat: New file.
28664         * lib/symlinkat.c: Likewise.
28665         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28667         * modules/unistd (Makefile.am): Use them.
28668         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28669         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28670         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28671         * MODULES.html.sh (File system functions): Mention module.
28672         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28673         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28674         * modules/symlinkat-tests: New test.
28675         * tests/test-symlinkat.c: Likewise.
28676
28677         test-openat-safer: add more checks
28678         * tests/test-openat-safer.c (main): Check more code paths.
28679
28680 2009-09-05  Jim Meyering  <meyering@redhat.com>
28681
28682         syntax-check: detect unnecessary inclusion of openat.h
28683         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28684
28685 2009-09-05  Bruno Haible  <bruno@clisp.org>
28686
28687         Support towlower, towupper.
28688         * doc/posix-functions/towlower.texi: Mention module wctype.
28689         * doc/posix-functions/towupper.texi: Likewise.
28690         * lib/wctype.in.h (towlower, towupper): New functions.
28691         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28692         (ASSERT): New macro.
28693         (e): New variable.
28694         (main): Test also towlower, towupper. Test WEOF argument.
28695         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28696
28697 2009-09-05  Bruno Haible  <bruno@clisp.org>
28698
28699         Fix conversion behaviour when the input is invalid.
28700         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28701         mark occurring in first pass of indirect conversion.
28702         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28703         input.
28704         Found by clang's static analyzer.
28705
28706 2009-09-05  Bruno Haible  <bruno@clisp.org>
28707
28708         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28709         where direct conversion is possible.
28710
28711 2009-09-04  Eric Blake  <ebb9@byu.net>
28712
28713         openat: fail with ENOENT on empty name
28714         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28715         buffer.
28716
28717         link-follow: fix logic bug in prior patch
28718         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28719         reversed sense of yes and no in prior patch.  Avoid confusing
28720         compilation failure with desired semantics.
28721
28722         link-follow: accomodate mingw and cross-compilation
28723         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28724         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28725         cross-compilation results to -1, to make linkat easier to
28726         implement when cross-compiling.  Trivially support mingw.
28727         * modules/link-follow (configure.ac): Call new name.
28728         * NEWS: Mention this.
28729
28730 2009-09-03  Eric Blake  <ebb9@byu.net>
28731
28732         faccessat: compile replacement
28733         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28734         needed.
28735
28736         fts: fix compilation error
28737         * lib/fts.c (includes): Re-add "openat.h", for
28738         openat_needs_fchdir.
28739
28740         faccessat: new module
28741         * modules/faccessat: New file.
28742         * lib/faccessat.c: Likewise.
28743         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28745         * modules/unistd (Makefile.am): Use it.
28746         * lib/unistd.in.h (faccessat): Declare it.
28747         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28748         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28749         * MODULES.html.sh (File system functions): Mention it.
28750         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28751         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28752
28753         euidaccess: prefer POSIX over non-standard implementation
28754         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28755         * lib/euidaccess.c (euidaccess): Use it if available.
28756
28757         openat: make template easier to use
28758         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28759         AT_FUNC_F2 to be undefined.
28760         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28761         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28762         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28763         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28764         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28765         Likewise.
28766         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28767         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28768         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28769         Likewise.
28770
28771         openat: declare in POSIX headers
28772         * NEWS: Mention this.
28773         * modules/openat (configure.ac): Declare witnesses.
28774         (Depends-on): Add fcntl-h, sys_stat, unistd.
28775         (Include): Mention correct headers.
28776         * modules/fcntl-h (Depends-on): Add link-warning.
28777         (Files): Add openat.m4.
28778         (Makefile.am): Substitute witnesses.
28779         * modules/sys_stat (Files, Makefile.am): Likewise.
28780         * modules/unistd (Files, Makefile.am): Likewise.
28781         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28782         (gl_OPENAT_DEFAULTS): New macro.
28783         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28785         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28786         (SYS_STAT_H): Remove unused variable.
28787         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28788         * lib/fcntl--.h (includes): Remove unneeded header.
28789         * lib/openat-safer.c (includes): Likewise.
28790         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28791         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28792         appropriate headers.
28793         (__OPENAT_PREFIX): Delete.
28794         * lib/fcntl.in.h (openat): Provide declaration.
28795         (AT_FDCWD): Fix Solaris bug.
28796         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28797         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28798         * lib/fchmodat.c (includes):  Adjust to find declaration.
28799         * lib/fchownat.c (includes): Likewise.
28800         * lib/mkdirat.c (includes): Likewise.
28801         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28802         still visible.
28803
28804 2009-09-02  Eric Blake  <ebb9@byu.net>
28805
28806         errno: use consistently
28807         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28808         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28809         * lib/canonicalize.c (ELOOP): Likewise.
28810         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28811         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28812         * lib/lchown.c (EOPNOTSUPP): Likewise.
28813         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28814         * lib/savewd.c (ESTALE): Likewise.
28815         * lib/settime.c (ENOSYS): Likewise.
28816         * lib/utimens.c (ENOSYS): Likewise.
28817         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28818         * lib/chdir-safer.c (ELOOP): Likewise.
28819         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28820         * modules/c-stack (Depends-on): Add errno.
28821         * modules/canonicalize (Depends-on): Likewise.
28822         * modules/chdir-safer (Depends-on): Likewise.
28823         * modules/fdopendir (Depends-on): Likewise.
28824         * modules/inet_ntop (Depends-on): Likewise.
28825         * modules/inet_pton (Depends-on): Likewise.
28826         * modules/lchown (Depends-on): Likewise.
28827         * modules/openat (Depends-on): Likewise.
28828         * modules/savewd (Depends-on): Likewise.
28829         * modules/settime (Depends-on): Likewise.
28830         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28831
28832         fts: avoid leaking fds
28833         * modules/fts (Depends-on): Add cloexec.
28834         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28835         flag.
28836
28837         fts: make directory fds more robust
28838         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28839         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28840
28841         backupfile, chdir-long, fts, savedir: make safer
28842         * lib/backupfile.c (includes): Use "dirent--.h", since
28843         numbered_backup can write to stderr during readdir.
28844         * lib/savedir.c (includes): Likewise.
28845         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28846         emulation can write to stderr on failure.
28847         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28848         * lib/getcwd.c: Document why opendir_safer is unused.
28849         * lib/glob.c: Likewise.
28850         * lib/scandir.c: Likewise.
28851         * lib/openat-proc.c: Likewise, for open_safer.
28852         * modules/backupfile (Depends-on): Add dirent-safer.
28853         * modules/savedir (Depends-on): Likewise.
28854         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28855         * modules/chdir-long (Depends-on): Add openat-safer.
28856
28857         openat-safer: new module
28858         * modules/openat-safer: New file.
28859         * lib/openat-safer.c: Likewise.
28860         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28861         * lib/fcntl-safer.h (openat_safer): Declare.
28862         * lib/fcntl--.h (openat): Override.
28863         * MODULES.html.sh (File descriptor based I/O): Mention it.
28864         * lib/openat.h: Add double-inclusion guards.
28865         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28866         "fcntl--.h", so we can implement openat.
28867         * modules/openat-safer-tests: New test.
28868         * tests/test-openat-safer.c: New file.
28869
28870         dirent-safer: new module
28871         * modules/dirent-safer: New file.
28872         * lib/dirent--.h: Likewise.
28873         * lib/dirent-safer.h: Likewise.
28874         * lib/opendir-safer.c: Likewise.
28875         * m4/dirent-safer.m4: Likewise.
28876         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28877         * modules/dirent-safer-tests: New test.
28878         * tests/test-dirent-safer.c: New file.
28879         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28880
28881         fdopendir: optimize on mingw
28882         * lib/unistd.in.h (_gl_directory_name): New prototype.
28883         * lib/fchdir.c (_gl_directory_name): Implement it.
28884         (fchdir): Use it to simplify implementation.
28885         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28886         fchdir, when available, to avoid calling [f]chdir().
28887
28888         fdopendir: split into its own module
28889         * lib/openat.c (fdopendir): Move...
28890         * lib/fdopendir.c: ...into new file.
28891         * modules/fdopendir: New module.
28892         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28893         * modules/openat (Depends-on): Add fdopendir.
28894         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28895         fdopendir here.
28896         * modules/savedir (Depends-on): Only need fdopendir, not full
28897         openat.
28898         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28899         * lib/openat.h (fdopendir): Drop prototype.
28900         * lib/dirent.in.h (fdopendir): Provide prototype.
28901         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28902         * modules/dirent (Makefile.am): Substitute them.
28903         * MODULES.html.sh (File system functions): Mention it.
28904         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28905         * modules/fdopendir-tests: New file.
28906         * tests/test-fdopendir.c: Likewise.
28907
28908         fchdir: use more consistent macro convention
28909         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28910         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28911         REPLACE_FCHDIR, rather than relying on config.h macros.
28912         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28913         inside a single make-time REPLACE_FCHDIR block, rather than using
28914         the config.h FCHDIR_REPLACEMENT.
28915         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28916         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28917         Manage fstat replacement.
28918         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28919         REPLACE_FCHDIR.
28920         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28921         (Makefile.am): Substitute REPLACE_FCHDIR.
28922         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28923         FCHDIR_REPLACEMENT.
28924         * lib/dup-safer.c (dup_safer): Likewise.
28925         * lib/dup2.c (rpl_dup2): Likewise.
28926         * lib/dup3.c (rpl_dup3): Likewise.
28927         * lib/open.c (rpl_open): Likewise.
28928
28929         fchdir: simplify error handling, and support dup3
28930         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28931         stdbool, malloc-posix, realloc-posix.
28932         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28933         (ensure_dirs_slot): Return false on allocation failure.
28934         (rpl_dup2): Delete.
28935         (_gl_register_dup): New function.
28936         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28937         (_gl_register_fd): Close fd on allocation failure.
28938         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28939         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28940         prototype.
28941         (rpl_dup2_fchdir): Delete prototype.
28942         * lib/open.c (open): Update caller.
28943         * lib/dup2.c (dup2): Track fchdir metadata.
28944         * lib/dup3.c (dup3): Likewise.
28945         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28947
28948 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28949
28950         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28951         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28952         don't pass arguments to AC_OUTPUT.
28953
28954 2009-09-02  Bruno Haible  <bruno@clisp.org>
28955
28956         * modules/mkdtemp (License): Relicense under LGPLv2+.
28957         Reported by Paolo Bonzini.
28958
28959 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28960
28961         Replace uses of obsolete autoconf macros in Jim's modules.
28962         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28963         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28964         can evoke a warning from autoconf when run with -Wobsolete
28965         enabled.  They were declared obsolete for good reasons (see
28966         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28967         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28968         should not continue using the deprecated macros.
28969         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28970         obsolete Autoconf macros with modern counterparts.
28971         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28972         * m4/dos.m4 (gl_AC_DOS): Likewise.
28973         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28974         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28975         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28976         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28977         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28978         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28979         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28980         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28981         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28982         Likewise.
28983         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28984         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28985         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28986         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28987         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28988         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28989
28990 2009-09-01  Eric Blake  <ebb9@byu.net>
28991
28992         fchdir: fix off-by-one bug in previous patch
28993         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28994         (_gl_unregister_fd): Delete useless if.
28995
28996 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28997
28998         maint.mk: sort the list of syntax-check rules
28999         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
29000         easier to get a sense of progress when the rules are run sequentially
29001         and take a long time.
29002
29003 2009-09-01  Simon Josefsson  <simon@josefsson.org>
29004
29005         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
29006         * modules/netinet_in: Likewise.
29007         * modules/sys_file: Likewise.
29008         * modules/sys_ioctl: Likewise.
29009         * modules/sys_select: Likewise.
29010         * modules/sys_socket: Likewise.
29011         * modules/sys_stat: Likewise.
29012         * modules/sys_time: Likewise.
29013         * modules/sys_times: Likewise.
29014         * modules/sys_utsname: Likewise.
29015         * modules/sys_wait: Likewise.
29016
29017 2009-09-01  Jim Meyering  <meyering@redhat.com>
29018
29019         fts: help ensure that return values are not ignored
29020         * lib/fts_.h (__GNUC_PREREQ): Define.
29021         (__attribute_warn_unused_result__): Define.
29022         (fts_children, fts_close, fts_open, fts_read): Declare with
29023         __attribute_warn_unused_result__.
29024
29025         fts: fts_close now fails also when closing a dir file descriptor fails
29026         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
29027         and propagate to caller, along with errno.
29028
29029         announce-gen: correct formatting in --help output
29030         * build-aux/announce-gen (usage): Move the one-line description in
29031         --help output "up", to where it belongs, just after Usage:.
29032
29033 2009-08-31  Eric Blake  <ebb9@byu.net>
29034
29035         fchdir: port to mingw
29036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
29037         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
29038         opened, then use a substitute.
29039         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
29040         replacement.
29041         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
29042         (_gl_register_fd): No need to check stat if open already filters
29043         all directories.
29044         (fchdir): Fix error condition to match POSIX.
29045         * modules/fchdir (Depends-on): Add sys_stat.
29046         * doc/posix-functions/open.texi (open): Document the limitation.
29047         * modules/fchdir-tests: New file.
29048         * tests/test-fchdir.c: Likewise.
29049
29050         canonicalize: allow cross-testing from cygwin to mingw
29051         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
29052         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
29053         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
29054         Likewise.
29055         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
29056         target does not support symlinks.
29057         * tests/test-canonicalize-lgpl.sh: Likewise.
29058
29059         chown: avoid compilation warning on mingw
29060         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
29061         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
29062         mingw.
29063         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29064         * modules/chown (Depends-on): Add errno.
29065
29066 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29067
29068         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
29069         command.
29070
29071 2009-08-31  Jim Meyering  <meyering@redhat.com>
29072
29073         canonicalize: remove useless initialization
29074         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
29075         initialization of local, "end".
29076
29077 2009-08-30  Bruno Haible  <bruno@clisp.org>
29078
29079         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
29080         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
29081         ENOSYS.
29082
29083 2009-08-30  Bruno Haible  <bruno@clisp.org>
29084
29085         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
29086         /usr/xpg4/bin/tr when it exists.
29087         * tests/test-pipe-filter-gi1.sh: Likewise.
29088
29089 2009-08-30  Bruno Haible  <bruno@clisp.org>
29090
29091         Work around deficient /usr/bin/id program on Solaris.
29092         * tests/test-file-has-acl.sh (ID): New variable.
29093         * tests/test-set-mode-acl.sh (ID): Likewise.
29094         * tests/test-copy-acl.sh (ID): Likewise.
29095         * tests/test-copy-file.sh (ID): Likewise.
29096
29097 2009-08-30  Bruno Haible  <bruno@clisp.org>
29098
29099         New module 'xstriconveh'.
29100         * lib/xstriconveh.h: New file.
29101         * lib/xstriconveh.c: New file.
29102         * modules/xstriconveh: New file.
29103
29104 2009-08-30  Bruno Haible  <bruno@clisp.org>
29105
29106         Make it easier to use mem_cd_iconveh.
29107         * lib/striconveh.h (iconveh_t): New type.
29108         (iconveh_open, iconveh_close): New declarations.
29109         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29110         with a single 'const iconveh_t *' argument.
29111         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
29112         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29113         with a single 'const iconveh_t *' argument.
29114         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
29115         * tests/test-striconveh.c (main): Update.
29116         * NEWS: Mention the change.
29117
29118 2009-08-30  Bruno Haible  <bruno@clisp.org>
29119
29120         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
29121         problem.
29122
29123 2009-08-30  Bruno Haible  <bruno@clisp.org>
29124
29125         Work around iconv_open problem on Solaris.
29126         * lib/iconv_open-solaris.gperf: New file.
29127         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
29128         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
29129         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
29130         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
29131         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
29132         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
29133
29134 2009-08-29  Jim Meyering  <meyering@redhat.com>
29135
29136         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
29137         * top/maint.mk (cvs-check): Remove target; it was just an alias
29138         to the better-named vc-diff-check.
29139         (maintainer-distcheck): Remove rule.  It was used only from
29140         the (alpha/beta/major) target, and all of its commands but one
29141         were coreutils-specific.
29142         (vc-dist): Remove rule.
29143         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
29144         Run vc-diff-check, not vc-dist.
29145         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
29146
29147 2009-08-27  Bruno Haible  <bruno@clisp.org>
29148
29149         * tests/test-bitrotate.c (main): Remove test that uses a shift count
29150         of 0.
29151
29152 2009-08-27  Bruno Haible  <bruno@clisp.org>
29153
29154         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
29155         compilers.
29156         * doc/func.texi: Document the SunPRO C bug.
29157
29158 2009-08-27  Bruno Haible  <bruno@clisp.org>
29159
29160         Fix link error on Solaris.
29161         * tests/test-parse-duration.c (xstrdup): Remove function.
29162
29163 2009-08-26  Pádraig Brady  <P@draigbrady.com>
29164
29165         ignore-value: handle pointer types, too
29166         * lib/ignore-value.h (__attribute__): Remove definition.
29167         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
29168         of a more concise and more-often effective "(void) i" statement.
29169         (ignore_ptr): New function to suppress warnings from functions that
29170         return pointers, and to make it explicit that one function doesn't
29171         handle all cases.
29172
29173 2009-08-25  Bruno Haible  <bruno@clisp.org>
29174
29175         dup2: work around a Linux bug.
29176         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
29177         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
29178         * doc/posix-functions/dup2.texi: Mention the Linux bug.
29179         Reported by Simon Josefsson.
29180
29181 2009-08-25  Jim Meyering  <meyering@redhat.com>
29182
29183         libguestfs uses gnulib
29184         * users.txt: Add libguestfs.
29185
29186 2009-08-24  Eric Blake  <ebb9@byu.net>
29187
29188         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
29189         * lib/pipe2.c (includes): Add binary-io.h.
29190         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
29191
29192 2009-08-24  Bruno Haible  <bruno@clisp.org>
29193
29194         Tolerate declared but missing accept4 syscall.
29195         * lib/accept4.c (accept4): Invoke original accept4 function first, if
29196         available.
29197         * lib/sys_socket.in.h (accept4): If the function is already present,
29198         override it.
29199         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
29200         * modules/accept4 (Makefile.am): Compile accept4.c always.
29201         Reported by Paolo Bonzini and Eric Blake.
29202
29203 2009-08-23  Bruno Haible  <bruno@clisp.org>
29204
29205         New module 'accept4'.
29206         * lib/sys_socket.in.h (accept4): New declaration.
29207         * lib/accept4.c: New file.
29208         * m4/accept4.m4: New file.
29209         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29210         GNULIB_ACCEPT4, HAVE_ACCEPT4.
29211         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
29212         HAVE_ACCEPT4.
29213         * modules/accept4: New file.
29214         * doc/glibc-functions/accept4.texi: Mention the new module.
29215
29216 2009-08-24  Jim Meyering  <meyering@redhat.com>
29217
29218         progname: also set global program_invocation_name, when possible
29219         Before this change, a libtool-enabled program that calls glibc's
29220         error function would report the program name as
29221         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
29222         * modules/progname (configure.ac): Check for a declaration of
29223         program_invocation_name.
29224         * lib/progname.c:  Include <errno.h>.
29225         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
29226         Set program_invocation_name.
29227
29228 2009-08-23  Bruno Haible  <bruno@clisp.org>
29229
29230         * lib/dup3.c: Include <string.h>.
29231
29232 2009-08-23  Bruno Haible  <bruno@clisp.org>
29233
29234         * lib/dup3.c (dup3): Test only once whether the system actually exists.
29235         * lib/pipe2.c (pipe2): Likewise.
29236         Suggested by Eric Blake.
29237
29238 2009-08-23  Bruno Haible  <bruno@clisp.org>
29239
29240         Tolerate declared but missing dup3 syscall.
29241         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
29242         * lib/unistd.in.h (dup3): If the function is already present,
29243         override it.
29244         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
29245         * modules/dup3 (Makefile.am): Compile dup3.c always.
29246         Reported by Paolo Bonzini.
29247
29248 2009-08-23  Bruno Haible  <bruno@clisp.org>
29249
29250         Tolerate declared but missing pipe2 syscall.
29251         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
29252         available.
29253         * lib/unistd.in.h (pipe2): If the function is already present,
29254         override it.
29255         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
29256         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
29257         Reported by Paolo Bonzini.
29258
29259 2009-08-23  Bruno Haible  <bruno@clisp.org>
29260
29261         * lib/pipe2.c (pipe2): Move #ifs inside function.
29262
29263 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29264
29265         quotearg: document limitations of quote_these_too
29266         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
29267         those limitations are created.
29268         * lib/quotearg.h (set_char_quoting): Document that digits and
29269         letters that are special after backslash are not permitted.
29270         (quotearg_char): Cross-reference set_char_quoting documentation.
29271
29272 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
29273
29274         quotearg: implement custom_quoting_style
29275         * lib/quotearg.c: (struct quoting_options): Add left_quote and
29276         right_quote fields.
29277         (set_custom_quoting): New public function.
29278         (quotearg_buffer_restyled): Add left_quote and right_quote
29279         arguments, handle them very much like locale quoting, and update
29280         all uses.
29281         (quotearg_n_custom): New public function.
29282         (quotearg_n_custom_mem): New public function.
29283         (quotearg_custom): New public function.
29284         (quotearg_custom_mem): New public function.
29285         * lib/quotearg.h: Prototype and document new public functions.
29286         (enum quoting_style): For escape_quoting_style and
29287         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
29288         ignored even though they're otherwise like c_quoting_style.
29289         Add custom_quoting_style member and document with comparison to
29290         clocale_quoting_style.
29291         * tests/test-quotearg.c (custom_quotes): New array.
29292         (custom_results): New array.
29293         (main): Extend to test custom quoting.
29294
29295 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29296
29297         quotearg: fix right quote escaping when it's in quote_these_too
29298         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
29299         quote, be sure to prepend only one backslash.
29300         * tests/test-quotearg.c (use_quote_double_quotes): New function.
29301         (main): Test it.
29302
29303 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29304
29305         quotearg-tests: test escaping of embedded locale quotes
29306         * tests/test-quotearg.c (struct result_strings): Add member for
29307         new input.
29308         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
29309         (inputs): Add new input.
29310         (results_g): Add expected results.
29311         (flag_results): Likewise.
29312         (locale_results): Likewise.
29313         (compare_strings): Check those.
29314
29315 2009-08-23  Bruno Haible  <bruno@clisp.org>
29316
29317         Tests for module 'dup3'.
29318         * modules/dup3-tests: New file.
29319         * tests/test-dup3.c: New file.
29320
29321         New module 'dup3'.
29322         * lib/unistd.in.h (dup3): New declaration.
29323         * lib/dup3.c: New file.
29324         * m4/dup3.m4: New file.
29325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
29326         HAVE_DUP3.
29327         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
29328         * modules/dup3: New file.
29329         * doc/glibc-functions/dup3.texi: Mention the new module.
29330
29331 2009-08-23  Bruno Haible  <bruno@clisp.org>
29332
29333         Tweak the dup2 test.
29334         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29335         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29336         the test file is still empty. Fix argument order of lseek.
29337
29338 2009-08-23  Bruno Haible  <bruno@clisp.org>
29339
29340         Avoid test link errors when the modules getopt-gnu, gettext are used.
29341         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29343
29344 2009-08-23  Bruno Haible  <bruno@clisp.org>
29345
29346         Fix getdtablesize() on mingw.
29347         * lib/getdtablesize.c (getdtablesize): Implement differently.
29348         * lib/unistd.in.h (getdtablesize): Improve comment.
29349
29350 2009-08-23  Bruno Haible  <bruno@clisp.org>
29351
29352         New module 'mkostemp'.
29353         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29354         * lib/stdlib.in.h (mksotemp): New declaration.
29355         * lib/mkostemp.c: New file, from glibc with modifications.
29356         * lib/tempname.h (GT_FILE): Remove outdated comment.
29357         (gen_tempname): Add flags argument.
29358         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29359         (__GT_FILE): Map to 1.
29360         (small_open, large_open): Remove macros.
29361         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29362         * lib/mkstemp.c (mkstemp): Update.
29363         * lib/mkdtemp.c (mkdtemp): Likewise.
29364         * m4/mkostemp.m4: New file.
29365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29366         HAVE_MKOSTEMP.
29367         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29368         HAVE_MKOSTEMP.
29369         * modules/mkostemp: New file, based on modules/mkstemp.
29370         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29371         * NEWS: Mention the change.
29372
29373 2009-08-23  Bruno Haible  <bruno@clisp.org>
29374
29375         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29376         Reported by Eric Blake.
29377
29378 2009-08-23  Bruno Haible  <bruno@clisp.org>
29379
29380         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29381         Reported by Eric Blake.
29382
29383 2009-08-23  Bruno Haible  <bruno@clisp.org>
29384
29385         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29386         * modules/pipe2 (Depends-on): Likewise.
29387
29388 2009-08-23  Eric Blake  <ebb9@byu.net>
29389
29390         fcntl-h: add O_TTY_INIT support
29391         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29392         * tests/test-fcntl-h.c (o): Test it.
29393         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29394
29395         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29396         * modules/fcntl: Move <fcntl.h> header replacement...
29397         * modules/fcntl-h: ...to new name, so as not to collide with
29398         like-named function.
29399         * tests/test-fcntl.c: Rename...
29400         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29401         * modules/fcntl-tests: Rename...
29402         * modules/fcntl-h-tests: ...to this.  Update test file name.
29403         * modules/chdir-long (Depends-on): Update clients.
29404         * modules/chdir-safer (Depends-on): Likewise.
29405         * modules/fcntl-safer (Depends-on): Likewise.
29406         * modules/fts (Depends-on): Likewise.
29407         * modules/mkancesdirs (Depends-on): Likewise.
29408         * modules/mkdir-p (Depends-on): Likewise.
29409         * modules/open (Depends-on): Likewise.
29410         * modules/savewd (Depends-on): Likewise.
29411         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29412         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29413
29414 2009-08-22  Bruno Haible  <bruno@clisp.org>
29415
29416         * modules/binary-io (License): Relicense under LGPL.
29417         * modules/pipe2 (License): Likewise.
29418
29419 2009-08-22  Bruno Haible  <bruno@clisp.org>
29420
29421         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29422         return value.
29423         * lib/pipe-filter-gi.c (filter_init): Likewise.
29424         Reported by Eric Blake.
29425
29426 2009-08-22  Bruno Haible  <bruno@clisp.org>
29427
29428         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29429         * modules/pipe (Depends-on): Add pipe2.
29430
29431 2009-08-22  Bruno Haible  <bruno@clisp.org>
29432
29433         Tests for module 'pipe2'.
29434         * modules/pipe2-tests: New file.
29435         * tests/test-pipe2.c: New file.
29436
29437         New module 'pipe2'.
29438         * lib/unistd.in.h (pipe2): New declaration.
29439         * lib/pipe2.c: New file.
29440         * m4/pipe2.m4: New file.
29441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29442         HAVE_PIPE2.
29443         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29444         * modules/pipe2: New file.
29445         * doc/glibc-functions/pipe2.texi: Mention the new module.
29446
29447 2009-08-22  Bruno Haible  <bruno@clisp.org>
29448
29449         Reference some new glibc functions.
29450         * doc/glibc-functions/accept4.texi: New file.
29451         * doc/glibc-functions/dup3.texi: New file.
29452         * doc/glibc-functions/mkostemp.texi: New file.
29453         * doc/glibc-functions/pipe2.texi: New file.
29454         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29455         (Glibc sys/socket.h): Refer to accept4.
29456         (Glibc unistd.h): Refer to dup3, pipe2.
29457         Reported by Eric Blake.
29458
29459 2009-08-22  Jim Meyering  <meyering@redhat.com>
29460             Bruno Haible  <bruno@clisp.org>
29461
29462         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29463         This makes it so packages using automake-1.11's silent-rules option
29464         can print e.g., a single "GEN    configmake.h" line, rather than
29465         the 30+ statements that perform the job.  If you want to see the
29466         actual commands, you can still run "make V=1".
29467         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29468         so that make output is abbreviated when those variables are defined
29469         appropriately.
29470         * modules/argz: Likewise.
29471         * modules/arpa_inet: Likewise.
29472         * modules/byteswap: Likewise.
29473         * modules/configmake: Likewise.
29474         * modules/dirent: Likewise.
29475         * modules/errno: Likewise.
29476         * modules/fcntl: Likewise.
29477         * modules/float: Likewise.
29478         * modules/fnmatch: Likewise.
29479         * modules/getopt-posix: Likewise.
29480         * modules/glob: Likewise.
29481         * modules/iconv_open: Likewise.
29482         * modules/inttypes: Likewise.
29483         * modules/localcharset: Likewise.
29484         * modules/locale: Likewise.
29485         * modules/math: Likewise.
29486         * modules/netdb: Likewise.
29487         * modules/netinet_in: Likewise.
29488         * modules/poll: Likewise.
29489         * modules/posix_spawnp-tests: Likewise.
29490         * modules/sched: Likewise.
29491         * modules/search: Likewise.
29492         * modules/selinux-h: Likewise.
29493         * modules/signal: Likewise.
29494         * modules/spawn: Likewise.
29495         * modules/stdarg: Likewise.
29496         * modules/stdbool: Likewise.
29497         * modules/stddef: Likewise.
29498         * modules/stdint: Likewise.
29499         * modules/stdio: Likewise.
29500         * modules/stdlib: Likewise.
29501         * modules/string: Likewise.
29502         * modules/strings: Likewise.
29503         * modules/sys_file: Likewise.
29504         * modules/sys_ioctl: Likewise.
29505         * modules/sys_select: Likewise.
29506         * modules/sys_socket: Likewise.
29507         * modules/sys_stat: Likewise.
29508         * modules/sys_time: Likewise.
29509         * modules/sys_times: Likewise.
29510         * modules/sys_utsname: Likewise.
29511         * modules/sys_wait: Likewise.
29512         * modules/sysexits: Likewise.
29513         * modules/time: Likewise.
29514         * modules/unistd: Likewise.
29515         * modules/wchar: Likewise.
29516         * modules/wctype: Likewise.
29517
29518 2009-08-22  Jim Meyering  <meyering@redhat.com>
29519
29520         announce-gen: detect write failure
29521         * build-aux/announce-gen: Add Coda at end.
29522         Remove equivalent-but-more-verbose block at top.
29523
29524 2009-08-19  Akim Demaille  <demaille@gostai.com>
29525
29526         bootstrap: --help to stdout.
29527         * bootstrap (usage): Don't send --help to stderr.
29528         Use a here doc instead of a long string.
29529
29530 2009-08-21  Eric Blake  <ebb9@byu.net>
29531
29532         test-popen-safer: split from test-popen
29533         * tests/test-popen.c (main): Move...
29534         * tests/test-popen.h: ...into new file.
29535         * tests/test-popen-safer2.c: New file.
29536         * modules/popen-tests (Files): Add test-popen.h.
29537         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29538         Suggested by Bruno Haible.
29539
29540         test-fcntl-safer: split from test-open
29541         * tests/test-open.c (main): Move...
29542         * tests/test-open.h: ...into new file.
29543         * tests/test-fcntl-safer.c: New file.
29544         * modules/open-tests (Files): Add test-open.h.
29545         * modules/fcntl-safer-tests: New file.
29546         Suggested by Bruno Haible.
29547
29548         test-fopen-safer: split from test-fopen
29549         * tests/test-fopen.c (main): Move...
29550         * tests/test-fopen.h: ...into new file.
29551         * tests/test-fopen-safer.c: New file.
29552         * modules/fopen-tests (Files): Add test-fopen.h.
29553         * modules/fopen-safer-tests: New file.
29554         Suggested by Bruno Haible.
29555
29556 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29557
29558         popen-safer: test O_CLOEXEC at run-time.
29559         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29560
29561 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29562
29563         fcntl: move more flags to the header
29564         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29565         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29566         * lib/fcntl.in.h: Do both things here.
29567
29568 2009-08-21  Jim Meyering  <meyering@redhat.com>
29569
29570         consistently remove $@-t before redirecting to it
29571         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29572         * modules/alloca-opt: Likewise.
29573         * modules/byteswap: Likewise.
29574         * modules/fnmatch: Likewise.
29575         * modules/getopt-posix: Likewise.
29576         * modules/glob: Likewise.
29577         * modules/poll: Likewise.
29578         * modules/posix_spawnp-tests: Likewise.
29579         * modules/sys_socket: Likewise.
29580         * modules/sysexits: Likewise.
29581
29582 2009-08-21  Eric Blake  <ebb9@byu.net>
29583
29584         popen: simplify access to original popen
29585         * lib/popen.c (rpl_popen): No need to worry about popen being a
29586         macro.
29587         Reported by Bruno Haible.
29588
29589 2009-08-20  Eric Blake  <ebb9@byu.net>
29590
29591         build: avoid some compiler warnings
29592         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29593         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29594         type.
29595         (new_exclude_segment, excluded_file_pattern_p)
29596         (excluded_file_name_p): Reduce scope.
29597         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29598         old-style declaration.
29599
29600 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29601
29602         * tests/test-exclude1.sh: Handle Windows EOL.
29603         * tests/test-exclude2.sh: Likewise.
29604         * tests/test-exclude3.sh: Likewise.
29605         * tests/test-exclude4.sh: Likewise.
29606         * tests/test-exclude5.sh: Likewise.
29607         * tests/test-exclude6.sh: Likewise.
29608         * tests/test-exclude7.sh: Likewise.
29609
29610 2009-08-19  Akim Demaille  <demaille@gostai.com>
29611
29612         bootstrap: find sha1sum when named gsha1sum.
29613         * bootstrap (find_tool): New.
29614         ($SHA1SUM): New.
29615         Use it.
29616
29617 2009-08-20  Jim Meyering  <meyering@redhat.com>
29618
29619         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29620         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29621         expression that converts "." in a file name to "\." in the resulting
29622         regexp.  Start with a dummy statement, so that prior shell variable
29623         definitions are expanded portably.  Reported by Simon Josefsson.
29624
29625 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29626
29627         Fix polling for writeability of a screen buffer.
29628         * lib/poll.c: Distinguish input and screen buffers for the
29629         Win32 implementation.
29630         * lib/select.c: Likewise.
29631
29632 2009-08-19  Eric Blake  <ebb9@byu.net>
29633
29634         popen-safer: prevent popen from clobbering std descriptors
29635         * modules/popen-safer: New file.
29636         * lib/popen-safer.c: Likewise.
29637         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29638         * lib/stdio--.h (popen): Provide override.
29639         * lib/stdio-safer.h (popen_safer): Provide declaration.
29640         * tests/test-popen.c (includes): Partially test this.
29641         * modules/popen-safer-tests: New file, for more tests.
29642         * tests/test-popen-safer.c: Likewise.
29643         * MODULES.html.sh (file stream based Input/Output): Mention it.
29644
29645         tests: test some of the *-safer modules
29646         * modules/fopen-safer (Depends-on): Add fopen.
29647         * modules/fcntl-safer (Depends-on): Add fcntl.
29648         * modules/stdlib-safer (Depends-on): Add stdlib.
29649         (configure.ac): Set indicator.
29650         * modules/unistd-safer (configure.ac): Likewise.
29651         * modules/tmpfile-safer (configure.ac): Likewise.
29652         (Depends-on): Add tmpfile.
29653         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29654         active.
29655         * tests/test-fopen.c (includes): Test safer versions when they are
29656         in use.
29657         * tests/test-open.c (includes): Likewise.
29658
29659         popen: fix cygwin 1.5 bug when stdin closed
29660         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29661         * modules/popen: New file.
29662         * modules/popen-tests: Likewise.
29663         * tests/test-popen.c: Likewise.
29664         * m4/popen.m4: Likewise.
29665         * lib/popen.c: Likewise.
29666         * lib/stdio.in.h (popen): New declaration.
29667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29668         * modules/stdio (Makefile.am): Likewise.
29669         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29670
29671 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29672
29673         maint.mk: give full control over update-copyright exclusions
29674         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29675         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29676         (update-copyright): Don't force inclusion of top-level
29677         ChangeLog.  Don't force exclusion of all COPYING files, but make
29678         them the default exclusion instead.
29679
29680 2009-08-16  Bruno Haible  <bruno@clisp.org>
29681
29682         Fix test failures on Solaris 10.
29683         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29684         tests when Solaris iconv() is used.
29685         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29686         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29687         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29688         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29689         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29690
29691 2009-08-16  Bruno Haible  <bruno@clisp.org>
29692
29693         Fix test failures on Solaris 10.
29694         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29695         'tr' program and pass it as first argument.
29696         * tests/test-pipe-filter-gi1.sh: Likewise.
29697         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29698         program as first argument.
29699         * tests/test-pipe-filter-gi1.c (main): Likewise.
29700
29701 2009-08-16  Eric Blake  <ebb9@byu.net>
29702
29703         fpurge: fix previous commits
29704         * modules/fpurge (Makefile.am): Make replacement conditional,
29705         partially reverting 2007-04-29 change; missed in previous
29706         attempt.
29707         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29708         is missing.
29709
29710 2009-08-16  Bruno Haible  <bruno@clisp.org>
29711
29712         Clarify fpurge's effect on the file position.
29713         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29714         * tests/test-fpurge.c (main): Make a second pass for checking the file
29715         position.
29716
29717 2009-08-16  Bruno Haible  <bruno@clisp.org>
29718
29719         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29720         declaration of fpurge is missing.
29721         * tests/test-fpurge.c (main): Check that the file has not more contents
29722         than expected. Close the file before removing it.
29723
29724 2009-08-15  Eric Blake  <ebb9@byu.net>
29725
29726         fpurge: don't wrap working cygwin implementation
29727         * lib/fpurge.c (fpurge): Fix comment typo.
29728         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29729         1.7 to avoid replacement.
29730         * tests/test-fpurge.c (main): Enhance test.
29731
29732 2009-08-15  Eric Blake  <ebb9@byu.net>
29733         and Jim Meyering  <meyering@redhat.com>
29734
29735         test-update-copyright: skip if perl is insufficient
29736         * tests/test-update-copyright.sh: Failure to run maintainer tool
29737         should not cause testsuite failure on cygwin 1.5.
29738
29739 2009-08-14  Eric Blake  <ebb9@byu.net>
29740
29741         doc: mention more functions added in cygwin 1.7.0
29742         * doc/posix-headers/limits.texi (limits.h): Update for recent
29743         cygwin additions.
29744         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29745         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29746         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29747         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29748         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29749
29750 2009-08-14  Eric Blake  <ebb9@byu.net>
29751
29752         maint.mk: simplify update-copyright rule
29753         * top/maint.mk (update-copyright-local): Delete, and document how
29754         to do it in cfg.mk instead.
29755         (update-copyright-exclude-regexp): Delete, and document how to do
29756         it in .x-update-copyright instead.
29757         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29758         exclude ChangeLog.
29759
29760 2009-08-14  Bruno Haible  <bruno@clisp.org>
29761
29762         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29763
29764 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29765
29766         maint.mk: support update-copyright-env
29767         * top/maint.mk (update-copyright-env): Define place-holder.
29768         (update-copyright): Expand $(update-copyright-env) before
29769         invoking update-copyright.
29770
29771 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29772
29773         update-copyright: implement forced reformatting
29774         * build-aux/update-copyright: Implement and document
29775         UPDATE_COPYRIGHT_FORCE.
29776         * tests/test-update-copyright.sh: Test it.
29777
29778 2009-08-14  Eric Blake  <ebb9@byu.net>
29779         and Bruno Haible  <bruno@clisp.org>
29780
29781         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29782         * tests/test-locale.c: Revert previous patch related to NULL.
29783         * tests/test-stdio.c: Likewise.
29784         * tests/test-stdlib.c: Likewise.
29785         * tests/test-string.c: Likewise.
29786         * tests/test-unistd.c: Likewise.
29787         * modules/time-tests (Depends-on): Add verify.
29788         * modules/wchar-tests (Depends-on): Likewise.
29789         * tests/test-time.c: Test for NULL compliance.
29790         * tests/test-wchar.c: Likewise.
29791         * modules/locale (Depends-on): Add stddef.
29792         * modules/stdio (Depends-on): Likewise.
29793         * modules/stdlib (Depends-on): Likewise.
29794         * modules/string (Depends-on): Likewise.
29795         * modules/time (Depends-on): Likewise.
29796         * modules/unistd (Depends-on): Likewise.
29797         * modules/wchar (Depends-on): Likewise.
29798         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29799         * lib/stdlib.in.h (includes): Likewise.
29800         * lib/string.in.h (includes): Likewise.
29801         * lib/time.in.h (includes): Likewise.
29802         * lib/unistd.in.h (includes): Likewise.
29803         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29804         replaced.
29805         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29806         * m4/stddef_h.m4: New file.
29807         * modules/stddef: Likewise.
29808         * lib/stddef.in.h: Likewise.
29809         * modules/stddef-tests: Likewise.
29810         * tests/test-stddef.c: Likewise.
29811         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29812         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29813         * doc/posix-headers/locale.texi (locale.h): Likewise.
29814         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29815         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29816         * doc/posix-headers/string.texi (string.h): Likewise.
29817         * doc/posix-headers/time.texi (time.h): Likewise.
29818         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29819         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29820
29821 2009-08-14  Eric Blake  <ebb9@byu.net>
29822
29823         doc: improve git diff of texinfo files
29824         * .gitattributes: Add rule for *.texi files, with hint on how to
29825         use it.
29826         Copied from m4, and based on a report by Bruno Haible.
29827
29828 2009-08-14  Bruno Haible  <bruno@clisp.org>
29829
29830         Disable multithread support by default on Cygwin 1.5.x for real.
29831         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29832
29833 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29834
29835         update-copyright: much ado about intervals
29836         * build-aux/update-copyright: Implement and document
29837         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29838         of copyright year intervals.
29839         Also, document UPDATE_COPYRIGHT_YEAR.
29840         * tests/test-update-copyright.sh: Test it.
29841
29842         update-copyright: convert 2-digit to 4-digit years
29843         * build-aux/update-copyright: Implement and document.
29844         * tests/test-update-copyright.sh: Update.
29845
29846 2009-08-14  Jim Meyering  <meyering@redhat.com>
29847
29848         test-exclude: avoid coreutils "make check" failure
29849         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29850         just as in test-argmatch.c.
29851
29852 2009-08-13  Eric Blake  <ebb9@byu.net>
29853
29854         test-dup2: fix bad assumption
29855         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29856         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29857
29858         test-version-etc: fix CRLF portability issue
29859         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29860         recognize \r.
29861         * tests/test-argp-version-etc-1.sh: Likewise.
29862
29863         getopt: update client modules
29864         * modules/argp (Depends-on): Use getopt-gnu.
29865         * modules/git-merge-changelog (Depends-on): Likewise.
29866         * modules/long-options (Depends-on): Likewise.
29867         * modules/xstrtol (Depends-on): Likewise.
29868
29869 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29870
29871         * tests/test-version-etc.sh: Don't fail on different
29872         project/version.  Don't fail on CRLF differences.  Rewrite to use
29873         multiple -e instead of multiple sed forks, suggested by Eric Blake
29874         <ebb9@byu.net>.
29875         * tests/test-argp-version-etc-1.sh: Likewise.
29876
29877 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29878
29879         * tests/test-version-etc.sh: Don't fail on different
29880         project/version.
29881
29882 2009-08-12  Bruno Haible  <bruno@clisp.org>
29883
29884         Tests for modules 'getopt-posix', 'getopt-gnu'.
29885         * modules/getopt-posix-tests: New file.
29886         * tests/test-getopt.c: New file.
29887         * tests/test-getopt.h: New file.
29888         * tests/test-getopt_long.h: New file.
29889
29890         New modules 'getopt-posix', 'getopt-gnu'.
29891         * modules/getopt-gnu: New file, renamed from modules/getopt.
29892         * modules/getopt-posix: New file.
29893         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29894         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29895         (gl_GETOPT): Remove macro.
29896         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29897         Disable the test against BSD systems that declare optreset. Test
29898         against mingw bug. Test against lack of support of optional arguments
29899         on many platforms.
29900         * doc/glibc-headers/getopt.texi: Update module name and list of
29901         relevant platforms.
29902         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29903         'getopt-gnu' and more portability problems.
29904         * NEWS: Mention the changes.
29905
29906 2009-08-12  Bruno Haible  <bruno@clisp.org>
29907
29908         Ensure that optarg etc. get declared by <unistd.h>.
29909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29910         AC_USE_SYSTEM_EXTENSIONS.
29911         * modules/getopt (Depends-on): Add 'extensions'.
29912
29913 2009-08-12  Bruno Haible  <bruno@clisp.org>
29914
29915         Avoid test link errors.
29916         * modules/pipe-filter-ii-tests (Makefile.am): Define
29917         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29918         * modules/pipe-filter-gi-tests (Makefile.am): Define
29919         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29921
29922 2009-08-12  Bruno Haible  <bruno@clisp.org>
29923
29924         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29925         gl_GETOPT_SUBSTITUTE before.
29926         (gl_GETOPT): Use it.
29927         * m4/argp.m4 (gl_ARGP): Update.
29928         Reported by Sergey Poznyakoff.
29929
29930         * m4/getopt.m4: Reorder macros.
29931         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29932         (gl_GETOPT_SUBSTITUTE): Remove macro.
29933
29934 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29935
29936         Minor improvement in gitlog-to-changelog
29937
29938         * build-aux/gitlog-to-changelog: New option `--format' makes
29939         output format string configurable.
29940
29941 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29942
29943         Optimize exclude: use hash tables for non-wildcard patterns.
29944
29945         * lib/exclude.c: Include hash.h and mbuiter.h
29946         (struct exclude_pattern, exclude_segment): New data types.
29947         (struct exclude): Rewrite.
29948         (fnmatch_pattern_has_wildcards): New function.
29949         (new_exclude_segment, free_exclude_segment): New functions.
29950         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29951         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29952         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29953         * modules/exclude: Depend on hash and mbuiter.
29954
29955         * modules/exclude-tests: New file.
29956         * tests/test-exclude.c: New file.
29957         * tests/test-exclude1.sh: New file.
29958         * tests/test-exclude2.sh: New file.
29959         * tests/test-exclude3.sh: New file.
29960         * tests/test-exclude4.sh: New file.
29961         * tests/test-exclude5.sh: New file.
29962         * tests/test-exclude6.sh: New file.
29963         * tests/test-exclude7.sh: New file.
29964
29965 2009-08-12  Bruno Haible  <bruno@clisp.org>
29966
29967         Ensure that getopt() gets declared by <unistd.h>.
29968         * lib/unistd.in.h: Conditionally include getopt.h.
29969         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29970         Set GNULIB_UNISTD_H_GETOPT.
29971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29972         GNULIB_UNISTD_H_GETOPT.
29973         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29974
29975 2009-08-12  Bruno Haible  <bruno@clisp.org>
29976
29977         Clarify logic.
29978         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29979         gl_replace_getopt instead of GETOPT_H.
29980
29981 2009-08-12  Bruno Haible  <bruno@clisp.org>
29982
29983         * m4/getopt.m4: Add comments.
29984
29985 2009-08-12  Bruno Haible  <bruno@clisp.org>
29986
29987         Disable multithread support by default on Cygwin 1.5.x.
29988         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29989         set gl_use_threads=no if not specified otherwise.
29990
29991 2009-08-11  Bruno Haible  <bruno@clisp.org>
29992
29993         Avoid compilation error on NetBSD 5.0.
29994         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29995         * tests/test-stdio.c: Likewise.
29996         * tests/test-stdlib.c: Likewise.
29997         * tests/test-string.c: Likewise.
29998         * tests/test-unistd.c: Likewise.
29999         Reported by Greg Troxel <gdt@ir.bbn.com>
30000         at <https://savannah.gnu.org/support/?106973>.
30001
30002 2009-08-11  Bruno Haible  <bruno@clisp.org>
30003
30004         * modules/dup2-tests (Depends-on): Remove close.
30005
30006         Undo 2009-07-19 commit.
30007         * modules/acl-tests (Depends-on): Remove close.
30008         * modules/binary-io-tests (Depends-on): Likewise.
30009         * modules/closein-tests (Depends-on): Likewise.
30010         * modules/flock-tests (Depends-on): Likewise.
30011         * modules/fsync-tests (Depends-on): Likewise.
30012         * modules/lseek-tests (Depends-on): Likewise.
30013         * modules/pipe-tests (Depends-on): Likewise.
30014         * modules/posix_spawn-tests (Depends-on): Likewise.
30015         * modules/posix_spawnp-tests (Depends-on): Likewise.
30016         * modules/stat-time-tests (Depends-on): Likewise.
30017         * modules/yesno-tests (Depends-on): Likewise.
30018
30019 2009-08-10  Bruno Haible  <bruno@clisp.org>
30020
30021         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
30022
30023 2009-08-10  Bruno Haible  <bruno@clisp.org>
30024
30025         Fix a gcc warning.
30026         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
30027
30028 2009-08-10  Bruno Haible  <bruno@clisp.org>
30029
30030         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
30031         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
30032         not only the first time.
30033         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
30034         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
30035         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
30036         is 1, not only the the first time.
30037
30038 2009-08-10  Bruno Haible  <bruno@clisp.org>
30039
30040         Make it possible to use module 'gethostname' without module 'close'.
30041         * lib/unistd.in.h (close): Evoke a link error only if
30042         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30044         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30045         * modules/unistd (Makefile.am): Substitute
30046         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30047         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
30048         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30049         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30050         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30051         * modules/sys_ioctl (Makefile.am): Substitute
30052         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30053         * modules/socket (configure.ac): On native Windows, set
30054         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
30055         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30056         Reported by Sam Steingold <sds@gnu.org>.
30057
30058 2009-08-10  Bruno Haible  <bruno@clisp.org>
30059
30060         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
30061         * modules/ioctl (configure.ac): Likewise.
30062
30063 2009-08-10  Bruno Haible  <bruno@clisp.org>
30064
30065         Avoid collision between gnulib wrapper and libintl wrapper.
30066         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
30067         already defined in intl/printf.c.
30068         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
30069         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
30070
30071 2009-08-09  Bruno Haible  <bruno@clisp.org>
30072
30073         Make <sys/select.h> really self-contained, also on Solaris 10.
30074         * lib/sys_select.in.h: Include <string.h>.
30075         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
30076         Solaris 10 problem.
30077         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
30078         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
30079         Reported by Jim Meyering.
30080
30081 2009-08-09  Bruno Haible  <bruno@clisp.org>
30082
30083         Avoid warnings from 'aclocal' that are due to a use of macro name
30084         AM_XGETTEXT_OPTION that is not defined in automake.
30085         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
30086         automake.
30087         * modules/error (configure.ac): Likewise.
30088         * modules/propername (configure.ac): Likewise.
30089         * modules/vasprintf (configure.ac): Likewise.
30090         * modules/verror (configure.ac): Likewise.
30091         * modules/xprintf (configure.ac): Likewise.
30092         * modules/xvasprintf (configure.ac): Likewise.
30093
30094 2009-08-08  Bruno Haible  <bruno@clisp.org>
30095
30096         Avoid compilation error in C++ mode.
30097         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
30098         Reported by Sam Steingold <sds@gnu.org>.
30099
30100 2009-08-08  Bruno Haible  <bruno@clisp.org>
30101
30102         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
30103         for the various Unix platforms.
30104         * doc/posix-headers/limits.texi: Update platforms list regarding
30105         HOST_NAME_MAX.
30106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30107
30108 2009-08-07  Jim Meyering  <meyering@redhat.com>
30109
30110         selinux-at: fix typo in a comment
30111         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
30112         Spotted by Paolo Bonzini.
30113
30114         selinux-at: remove redundant m4 code, add documentation
30115         * modules/selinux-at (configure.ac): Remove redundant code.
30116         LIB_SELINUX is already set via the dependent module, selinux-h.
30117         (Include): Add quotes around selinux-at.h.
30118         * lib/selinux-at.h: Add documentation.
30119         Reported by Bruno Haible in
30120         http://marc.info/?l=gnulib-bug&m=124958988300749
30121
30122 2009-08-07  Bruno Haible  <bruno@clisp.org>
30123
30124         Avoid link error on MacOS X 10.3 and 10.4.
30125         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
30126         on non-ELF systems.
30127         * lib/argp-pv.c (argp_program_version): Likewise.
30128         Reported by Simon Josefsson.
30129
30130 2009-08-07  Simon Josefsson  <simon@josefsson.org>
30131
30132         * tests/test-version-etc.sh: Use $EXEEXT.
30133
30134 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
30135
30136         update-copyright: update documentation to point to maint.mk
30137         * build-aux/update-copyright: Here.
30138
30139 2009-08-06  Jim Meyering  <meyering@redhat.com>
30140
30141         maint.mk: support update-copyright-local
30142         * top/maint.mk (update-copyright-local): Define place-holder.
30143         (update-copyright): Depend on $(update-copyright-local).
30144
30145 2009-08-06  Jim Meyering  <meyering@redhat.com>
30146
30147         selinux-at: new module
30148         Initially written for coreutils, this module will soon be
30149         used by findutils, too.
30150         * MODULES.html.sh [Misc]: Add selinux-at.
30151         * lib/selinux-at.h: New file, from coreutils.
30152         * lib/selinux-at.c: Likewise.
30153         * modules/selinux-at: Likewise.
30154         (License): Change from LGPL to GPL, since it depends
30155         on the GPL'd openat module.
30156
30157         doc: update README
30158         * README: Remove references to cogito.
30159         Remove cvs-repo-updating instructions from 2007.
30160         Don't imply that CVS is better if you have limited disk space.
30161
30162 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30163
30164         update-copyright: support C-style comments
30165         * build-aux/update-copyright: Implement and document.
30166         * tests/test-update-copyright.sh: Test.
30167
30168 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30169
30170         update-copyright: support omitted "(C)"
30171         * build-aux/update-copyright: Implement and document.  Also,
30172         allow variable whitespace before "(C)".
30173         * tests/test-update-copyright.sh: Test.
30174
30175 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30176
30177         update-copyright: don't trip on non-FSF copyright statements
30178         * build-aux/update-copyright: Fix so that the first correctly
30179         formatted FSF copyright statement is recognized no matter what
30180         appears before it.  Update documentation.
30181         * tests/test-update-copyright.sh: Test that.
30182
30183 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30184
30185         update-copyright: clean up code a little
30186         * build-aux/update-copyright: Append "_re" to the name of any
30187         variable holding a regular expression.
30188         Replace "old" and "new" with "stmt" in variable names.
30189         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
30190         handled correctly.
30191         Format code more consistently.
30192
30193 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30194
30195         update-copyright-tests: improve portability
30196         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
30197         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
30198
30199 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30200
30201         update-copyright: support @copyright{} and &copy;
30202         * build-aux/update-copyright: Implement and document.
30203         * tests/test-update-copyright.sh: Test.
30204
30205 2009-08-04  Jim Meyering  <meyering@redhat.com>
30206
30207         update-copyright-tests: correctly test EOL=\r\n handling
30208         * tests/test-update-copyright.sh: Put \r at the end of some lines
30209         for the dos-eol tests.  Based on a patch by Joel E. Denny.
30210
30211         maint.mk: make update-copyright exclusion list more configurable
30212         * top/maint.mk (update-copyright): Default to excluding COPYING,
30213         but allow an override, in case someone does want to update that file.
30214
30215         maint.mk: don't update copyright date in COPYING
30216         * top/maint.mk (update-copyright): Exclude COPYING.
30217
30218         maint.mk: add a copyright-updating rule
30219         * top/maint.mk (update-copyright): New rule.
30220         Derived from coreutils/Makefile.am.
30221
30222         update-copyright: rename some variables
30223         * build-aux/update-copyright: Rename a few variables for clarity.
30224         Tweak syntax.  List Joel E. Denny as coauthor.
30225
30226 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30227
30228         update-copyright: fix bug for 2-digit last year and add tests
30229         * build-aux/update-copyright: Fix bug.
30230         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
30231         specified.
30232         * modules/update-copyright-tests: New
30233         * tests/test-update-copyright.sh: New.
30234
30235 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30236
30237         update-copyright: handle leading tabs in line prefix
30238         * build-aux/update-copyright: Count leading tabs as 8 spaces
30239         when computing margin.  This helps with the formatting of
30240         ChangeLogs, for example.
30241         Fix documentation a little.
30242
30243 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30244
30245         update-copyright: support EOL=\r\n
30246         * build-aux/update-copyright: Implement that.
30247
30248 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30249
30250         update-copyright: automatically format copyright statements
30251         * build-aux/update-copyright: Implement that.
30252         Also, be a little more predictable and safer by always failing
30253         when the full copyright format is not perfectly recognized as an
30254         unbroken whole.  Discussed at
30255         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
30256         Rewrite documentation.
30257
30258 2009-08-03  Bruno Haible  <bruno@clisp.org>
30259
30260         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
30261
30262 2009-08-02  Bruno Haible  <bruno@clisp.org>
30263
30264         Tests for module 'uname'.
30265         * modules/uname-tests: New file.
30266         * tests/test-uname.c: New file.
30267
30268         New module 'uname'.
30269         * lib/uname.c: New file.
30270         * m4/uname.m4: New file.
30271         * modules/uname: New file.
30272         * doc/posix-functions/uname.texi: Mention the new module.
30273
30274 2009-08-02  Bruno Haible  <bruno@clisp.org>
30275
30276         Tests for module 'sys_utsname'.
30277         * modules/sys_utsname-tests: New file.
30278         * tests/test-sys_utsname.c: New file.
30279
30280         New module 'sys_utsname'.
30281         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
30282         * m4/sys_utsname_h.m4: New file.
30283         * modules/sys_utsname: New file.
30284         * doc/posix-headers/sys_utsname.texi: Mention the new module.
30285
30286 2009-08-02  Bruno Haible  <bruno@clisp.org>
30287
30288         Implicitly initialize the sockets library.
30289         * lib/gethostname.c: Include sockets.h.
30290         (rpl_gethostname): Invoke gl_sockets_startup.
30291         * lib/socket.c: Include sockets.h.
30292         (rpl_socket): Invoke gl_sockets_startup.
30293         * modules/gethostname (Depends-on): Add sockets.
30294         * modules/socket (Depends-on): Likewise.
30295         * tests/test-poll.c: Don't include sockets.h.
30296         (main): Don't invoke gl_sockets_startup.
30297         * tests/test-select.c: Don't include sockets.h.
30298         (main): Don't invoke gl_sockets_startup.
30299
30300 2009-08-02  Bruno Haible  <bruno@clisp.org>
30301
30302         Allow multiple calls to gl_sockets_startup.
30303         * lib/sockets.c (initialized_sockets_version): New variable.
30304         (gl_sockets_startup): Do nothing if already called for this or a higher
30305         version.
30306         (gl_sockets_cleanup): Reset initialized_sockets_version.
30307
30308 2009-08-03  Simon Josefsson  <simon@josefsson.org>
30309
30310         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
30311         different project/version.
30312
30313 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
30314             Bruno Haible  <bruno@clisp.org>
30315
30316         Tests for module 'pipe-filter-gi'.
30317         * modules/pipe-filter-gi-tests: New file.
30318         * tests/test-pipe-filter-gi1.sh: New file.
30319         * tests/test-pipe-filter-gi1.c: New file.
30320         * tests/test-pipe-filter-gi2.sh: New file.
30321         * tests/test-pipe-filter-gi2-main.c: New file.
30322         * tests/test-pipe-filter-gi2-child.c: New file.
30323
30324         New module 'pipe-filter-gi'.
30325         * lib/pipe-filter-gi.c: New file.
30326         * modules/pipe-filter-gi: New file.
30327
30328 2009-08-02  Bruno Haible  <bruno@clisp.org>
30329             Paolo Bonzini  <bonzini@gnu.org>
30330
30331         Tests for module 'pipe-filter-ii'.
30332         * modules/pipe-filter-ii-tests: New file.
30333         * tests/test-pipe-filter-ii1.sh: New file.
30334         * tests/test-pipe-filter-ii1.c: New file.
30335         * tests/test-pipe-filter-ii2.sh: New file.
30336         * tests/test-pipe-filter-ii2-main.c: New file.
30337         * tests/test-pipe-filter-ii2-child.c: New file.
30338
30339         New module 'pipe-filter-ii'.
30340         * lib/pipe-filter.h: New file.
30341         * lib/pipe-filter-ii.c: New file.
30342         * lib/pipe-filter-aux.h: New file.
30343         * modules/pipe-filter-ii: New file.
30344
30345 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30346
30347         * lib/gc-libgcrypt.c: Change copyright to FSF.
30348         * lib/gc-gnulib.c: Likewise.
30349
30350 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30351
30352         * lib/gethostname.c: Include limits.h.
30353
30354 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30355             Bruno Haible  <bruno@clisp.org>
30356
30357         Ensure HOST_NAME_MAX as part of the gethostname module.
30358         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30359         define also HOST_NAME_MAX.
30360         * tests/test-gethostname.c: Include <limits.h>.
30361         (main): Check also HOST_NAME_MAX.
30362         * doc/posix-headers/limits.texi: Document the mingw problem.
30363
30364 2009-08-02  Bruno Haible  <bruno@clisp.org>
30365
30366         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30367         Add comments.
30368
30369 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30370
30371         * lib/gethostname.c: Add Windows wrapper.
30372         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30373         * modules/gethostname: Depend on sys_socket & errno, for also
30374         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30375         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30376
30377 2009-07-31  Jim Meyering  <meyering@redhat.com>
30378
30379         getloadavg: fix symbol name in comment
30380         * lib/getloadavg.c: Correct a typo I introduced when adding
30381         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30382         Matt Kraai spotted the problem.
30383
30384 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30385
30386         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30387         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30388         code also if ! defined N_NAME_POINTER.
30389         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30390         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30391         but the n_name member is a 12-byte array.
30392
30393 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30394
30395         update-copyright: generalize comment handling
30396         * build-aux/update-copyright: Handle copyright statements
30397         within more comment styles.
30398         Document usage.
30399         Report any file with an external copyright holder or parse failure.
30400
30401 2009-07-29  Jim Meyering  <meyering@redhat.com>
30402
30403         mktime: correct setting of REPLACE_MKTIME
30404         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30405
30406         update-copyright: new module
30407         * modules/update-copyright: New file.
30408         * build-aux/update-copyright: New file.
30409         * MODULES.html.sh (maint+release support): Add update-copyright.
30410
30411 2009-07-27  Bruno Haible  <bruno@clisp.org>
30412
30413         Fix compilation error when <ctime> is used and mktime is replaced.
30414         * lib/time.in.h (mktime): New declaration.
30415         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30416         REPLACE_MKTIME instead of defining mktime in config.h.
30417         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30418         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30419         Reported by Ross McFarland <rwmcfa1@neces.com>.
30420
30421 2009-07-27  Bruno Haible  <bruno@clisp.org>
30422
30423         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30424         Reported by Matt Kraai <mkraai@beckman.com>.
30425
30426 2009-07-25  Jim Meyering  <meyering@redhat.com>
30427
30428         maint.mk: avoid warnings about missing files
30429         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30430         diagnostic when .prev-version does not exist.
30431         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30432         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30433         nonexistent cfg.mk.
30434         Suggestions from Simon Josefsson.
30435
30436 2009-07-25  Bruno Haible  <bruno@clisp.org>
30437
30438         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30439         defined as macros. Needed on QNX 6.4.1.
30440         Reported by Matt Kraai <mkraai@beckman.com>.
30441
30442 2009-07-23  Jim Meyering  <meyering@redhat.com>
30443
30444         maint.mk: invoke "make dist" with a working value of XZ_OPT
30445         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30446
30447 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30448
30449         Make fseeko.c compile on QNX.
30450         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30451
30452 2009-07-22  Peter Simons  <simons@cryp.to>
30453
30454         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30455         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30456         * lib/md4.h: Likewise.
30457         * lib/md5.h: Likewise.
30458         * lib/sha1.h: Likewise.
30459         * lib/sha256.h: Likewise.
30460         * lib/sha512.h: Likewise.
30461
30462         tests-sha1: don't assign literal string to 'char *' variable
30463         * tests/test-sha1.c (main): Declare locals with "const" to match
30464         attributes of the right hand side.
30465
30466 2009-07-21  Eric Blake  <ebb9@byu.net>
30467
30468         dup2: fix more mingw problems
30469         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30470         fd to itself.
30471         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30472         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30473         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30474         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30475         care of mingw bugs.
30476
30477 2009-07-21  Jim Meyering  <meyering@redhat.com>
30478
30479         vc-list-files: avoid failure when /bin/sh is dash
30480         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30481         On some Debian based systems, /bin/sh is a symlink to dash, and running
30482         this command would omit the "/" following each 'tests' prefix:
30483           dash -x build-aux/vc-list-files -C . tests
30484         That is because bash and dash work differently:
30485           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30486           bash ok
30487           dash odd
30488
30489 2009-07-21  Eric Blake  <ebb9@byu.net>
30490
30491         dup2-tests: test previous patch
30492         * modules/dup2-tests: New file.
30493         * tests/test-dup2.c: Likewise.
30494         * tests/test-open.c (main): Avoid unspecified behavior.
30495         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30496         test.
30497
30498         dup2: work around mingw and cygwin 1.5 bug
30499         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30501         * modules/unistd (Makefile.am): Substitute it.
30502         * lib/unistd.in.h (dup2): Declare the replacement.
30503         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30504         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30505         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30506         * modules/execute (Depends-on): Add dup2.
30507         * modules/fseterr (Depends-on): Likewise.
30508         * modules/pipe (Depends-on): Likewise.
30509         * modules/posix_spawn-internal (Depends-on): Likewise.
30510
30511 2009-07-21  Bruno Haible  <bruno@clisp.org>
30512
30513         * modules/.gitattributes: New file.
30514
30515 2009-07-20  Bruno Haible  <bruno@clisp.org>
30516
30517         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30518         (main): Use it.
30519
30520 2009-07-20  Eric Blake  <ebb9@byu.net>
30521
30522         test-pipe: make a bit more robust.
30523         * tests/test-pipe.c (myerr): Allow error messages regardless of
30524         what we do to stderr.
30525         (test_pipe): Rearrange to avoid deadlock.
30526         (child_main): Try a larger read, to ensure we avoided deadlock.
30527         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30528         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30529         if misused.
30530
30531 2009-07-19  Jim Meyering  <meyering@redhat.com>
30532
30533         fts: avoid false-positive cycle-detection
30534         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30535         for each new command line argument.
30536
30537 2009-07-19  Bruno Haible  <bruno@clisp.org>
30538
30539         Fix build error on mingw with the modules sys_select and unistd.
30540         * modules/acl-tests (Depends-on): Add close.
30541         * modules/binary-io-tests (Depends-on): Likewise.
30542         * modules/closein-tests (Depends-on): Likewise.
30543         * modules/flock-tests (Depends-on): Likewise.
30544         * modules/fsync-tests (Depends-on): Likewise.
30545         * modules/lseek-tests (Depends-on): Likewise.
30546         * modules/pipe-tests (Depends-on): Likewise.
30547         * modules/posix_spawn-tests (Depends-on): Likewise.
30548         * modules/posix_spawnp-tests (Depends-on): Likewise.
30549         * modules/stat-time-tests (Depends-on): Likewise.
30550         * modules/yesno-tests (Depends-on): Likewise.
30551
30552 2009-07-19  Bruno Haible  <bruno@clisp.org>
30553
30554         Unify conditionals.
30555         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30556         macros, not at the compiler macros.
30557         * lib/pipe.c: Likewise.
30558         * lib/execute.c: Likewise.
30559         * lib/spawni.c: Likewise.
30560
30561 2009-07-19  Bruno Haible  <bruno@clisp.org>
30562
30563         Fix handling of closed stdin/stdout/stderr on mingw.
30564         * lib/w32spawn.h: Include unistd.h.
30565         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30566         file descriptor with O_NOINHERIT flag.
30567         (fd_safer_noinherit): New function, based on fd-safer.c.
30568         (dup_safer_noinherit): New function, based on dup-safer.c.
30569         (undup_safer_noinherit): New function.
30570         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30571         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30572         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30573         instead of fd_safer.
30574         * tests/test-pipe.c: Include <windows.h>.
30575         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30576         result.
30577
30578         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30579         from main.
30580         (test_pipe): Pass an extra argument for disambiguation.
30581         (main): Invoke parent_main or child_main.
30582
30583         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30584         consistently.
30585
30586 2009-07-18  Eric Blake  <ebb9@byu.net>
30587
30588         test-pipe: fix mingw build
30589         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30590
30591 2009-07-18  Bruno Haible  <bruno@clisp.org>
30592
30593         * modules/pipe-tests (Makefile.am): Fix typo.
30594
30595 2009-07-18  Eric Blake  <ebb9@byu.net>
30596
30597         error: fix mingw build
30598         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30599         Reported by Bruno Haible.
30600
30601         error: avoid undefined use of stdout
30602         * lib/error.c (error, error_at_line): Check that fd 1 is open
30603         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30604         is handling faults and the close_stdout module wants to report the
30605         detection of closed stdout as an error.
30606
30607 2009-07-17  Eric Blake  <ebb9@byu.net>
30608
30609         pipe: be robust in face of closed fds
30610         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30611         should cause child to misbehave.
30612         * modules/pipe-tests: New module.
30613         * tests/test-pipe.c: New file.
30614         * tests/test-pipe.sh: New file.
30615         Reported by Akim Demaille.
30616
30617 2009-07-14  Bruno Haible  <bruno@clisp.org>
30618
30619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30620         Reported by anonymous kc.
30621
30622 2009-07-07  Jim Meyering  <meyering@redhat.com>
30623
30624         maint.mk: don't look for translatable strings in *.m4 or *.mk
30625         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30626         when searching for translatable strings.
30627
30628 2009-07-05  Jim Meyering  <meyering@redhat.com>
30629
30630         remove superfluous parentheses in STREQ definition
30631         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30632         * lib/getugroups.c (STREQ): Likewise.
30633         * lib/fnmatch.c (STREQ): Likewise.
30634         Spotted by Bruno Haible.
30635
30636 2009-07-04  Jim Meyering  <meyering@redhat.com>
30637
30638         argv-iter: new module
30639         * MODULES.html.sh: Add argv-iter.
30640         * lib/argv-iter.c, lib/argv-iter.h: New files.
30641         * modules/argv-iter: New file.
30642         * modules/argv-iter-tests: New file.
30643         * tests/test-argv-iter.c: Test it.
30644
30645 2009-07-04  Bruno Haible  <bruno@clisp.org>
30646
30647         Fix assertion.
30648         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30649         contains more exact copies of a given entry than file2, leave the extra
30650         copies unpaired rather than aborting.
30651         Reported by Eric Blake.
30652
30653 2009-07-02  Bruno Haible  <bruno@clisp.org>
30654
30655         Speedup git-merge-changelog for git cherry-pick.
30656         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30657         (entries_mapping_get): New function, extracted from compute_mapping.
30658         (entries_mapping_reverse_get): New function.
30659         (compute_mapping): Add a 'full' argument. Return the result in a
30660         'struct entries_mapping'.
30661         (main): Update. Access the mappings through entries_mapping_get.
30662         Reported by Eric Blake.
30663
30664 2009-07-02  Bruno Haible  <bruno@clisp.org>
30665
30666         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30667         best_i.
30668
30669 2009-07-02  Bruno Haible  <bruno@clisp.org>
30670
30671         Speed up approximate search for matching ChangeLog entries.
30672         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30673         argument. Call fstrcmp_bounded instead of fstrcmp.
30674         (compute_mapping, try_split_merged_entry, main): Update callers.
30675
30676 2009-07-02  Bruno Haible  <bruno@clisp.org>
30677
30678         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30679
30680 2009-06-30  Bruno Haible  <bruno@clisp.org>
30681
30682         Reduce the number of uc_is_cased calls.
30683         * lib/unicase.h (casing_suffix_context_t): Add
30684         'first_char_except_ignorable' field.
30685         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30686         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30687         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30688         Update initializer.
30689         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30690         case-ignorable characters.
30691         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30692         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30693         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30694         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30695         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30696
30697 2009-06-30  Bruno Haible  <bruno@clisp.org>
30698
30699         Tests for module 'unicase/ignorable'.
30700         * modules/unicase/ignorable-tests: New file.
30701         * tests/unicase/test-ignorable.c: New file, generated by
30702         gen-uni-tables.
30703
30704         Tests for module 'unicase/cased'.
30705         * modules/unicase/cased-tests: New file.
30706         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30707         * tests/unicase/test-predicate-part1.h: New file, derived from
30708         tests/unictype/test-predicate-part1.h.
30709         * tests/unicase/test-predicate-part2.h: New file, same as
30710         tests/unictype/test-predicate-part2.h.
30711
30712         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30713         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30714         (output_casing_properties): New function.
30715         (main): Call it.
30716         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30717         * lib/unicase/cased.c: Include unictype/bitmap.h.
30718         (uc_is_cased): Define through a bitmap lookup.
30719         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30720         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30721         (uc_is_case_ignorable): Define through a bitmap lookup.
30722         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30723         lib/unictype/bitmap.h.
30724         (Depends-on): Add inline. Clean up.
30725         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30726         lib/unictype/bitmap.h.
30727         (Depends-on): Add inline. Clean up.
30728         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30729         recognition.
30730         * tests/unicase/test-u16-tolower.c (main): Likewise.
30731         * tests/unicase/test-u32-tolower.c (main): Likewise.
30732
30733 2009-06-30  Bruno Haible  <bruno@clisp.org>
30734
30735         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30736         * lib/unicase/u16-casemap.c: Likewise.
30737         * lib/unicase/u32-casemap.c: Likewise.
30738
30739 2009-06-29  Bruno Haible  <bruno@clisp.org>
30740
30741         Define u32_casefold as a wrapper around u32_ct_casefold.
30742         * lib/unicase/u32-casefold.c: Update.
30743         * modules/unicase/u32-casefold (Depends-on): Add
30744         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30745         unicase/empty-suffix-context. Clean up.
30746
30747         Define u16_casefold as a wrapper around u16_ct_casefold.
30748         * lib/unicase/u16-casefold.c: Update.
30749         * modules/unicase/u16-casefold (Depends-on): Add
30750         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30751         unicase/empty-suffix-context. Clean up.
30752
30753         Define u8_casefold as a wrapper around u8_ct_casefold.
30754         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30755         * lib/unicase/u8-casefold.c: Update.
30756         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30757         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30758
30759         Define u32_totitle as a wrapper around u32_ct_totitle.
30760         * lib/unicase/u32-totitle.c: Update.
30761         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30762         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30763
30764         Define u16_totitle as a wrapper around u16_ct_totitle.
30765         * lib/unicase/u16-totitle.c: Update.
30766         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30767         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30768
30769         Define u8_totitle as a wrapper around u8_ct_totitle.
30770         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30771         functions.
30772         (FUNC): Delegate to U_CT_TOTITLE.
30773         * lib/unicase/u8-totitle.c: Update.
30774         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30775         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30776
30777         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30778         invocation.
30779         * modules/unicase/u32-tolower (Depends-on): Add
30780         unicase/empty-prefix-context, unicase/empty-suffix-context.
30781
30782         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30783         invocation.
30784         * modules/unicase/u16-tolower (Depends-on): Add
30785         unicase/empty-prefix-context, unicase/empty-suffix-context.
30786
30787         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30788         * modules/unicase/u8-tolower (Depends-on): Add
30789         unicase/empty-prefix-context, unicase/empty-suffix-context.
30790
30791         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30792         invocation.
30793         * modules/unicase/u32-toupper (Depends-on): Add
30794         unicase/empty-prefix-context, unicase/empty-suffix-context.
30795
30796         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30797         invocation.
30798         * modules/unicase/u16-toupper (Depends-on): Add
30799         unicase/empty-prefix-context, unicase/empty-suffix-context.
30800
30801         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30802         * modules/unicase/u8-toupper (Depends-on): Add
30803         unicase/empty-prefix-context, unicase/empty-suffix-context.
30804
30805         New module 'unicase/u32-ct-casefold'.
30806         * lib/unicase/u32-ct-casefold.c: New file.
30807         * modules/unicase/u32-ct-casefold: New file.
30808
30809         New module 'unicase/u16-ct-casefold'.
30810         * lib/unicase/u16-ct-casefold.c: New file.
30811         * modules/unicase/u16-ct-casefold: New file.
30812
30813         New module 'unicase/u8-ct-casefold'.
30814         * lib/unicase/u8-ct-casefold.c: New file.
30815         * lib/unicase/u-ct-casefold.h: New file, derived from
30816         lib/unicase/u-casefold.h.
30817         * modules/unicase/u8-ct-casefold: New file.
30818
30819         New module 'unicase/u32-ct-totitle'.
30820         * lib/unicase/u32-ct-totitle.c: New file.
30821         * modules/unicase/u32-ct-totitle: New file.
30822
30823         New module 'unicase/u16-ct-totitle'.
30824         * lib/unicase/u16-ct-totitle.c: New file.
30825         * modules/unicase/u16-ct-totitle: New file.
30826
30827         New module 'unicase/u8-ct-totitle'.
30828         * lib/unicase/u8-ct-totitle.c: New file.
30829         * lib/unicase/u-ct-totitle.h: New file, derived from
30830         lib/unicase/u-totitle.h.
30831         * modules/unicase/u8-ct-totitle: New file.
30832
30833         New module 'unicase/u32-ct-tolower'.
30834         * lib/unicase/u32-ct-tolower.c: New file.
30835         * modules/unicase/u32-ct-tolower: New file.
30836
30837         New module 'unicase/u16-ct-tolower'.
30838         * lib/unicase/u16-ct-tolower.c: New file.
30839         * modules/unicase/u16-ct-tolower: New file.
30840
30841         New module 'unicase/u8-ct-tolower'.
30842         * lib/unicase/u8-ct-tolower.c: New file.
30843         * modules/unicase/u8-ct-tolower: New file.
30844
30845         New module 'unicase/u32-ct-toupper'.
30846         * lib/unicase/u32-ct-toupper.c: New file.
30847         * modules/unicase/u32-ct-toupper: New file.
30848
30849         New module 'unicase/u16-ct-toupper'.
30850         * lib/unicase/u16-ct-toupper.c: New file.
30851         * modules/unicase/u16-ct-toupper: New file.
30852
30853         New module 'unicase/u8-ct-toupper'.
30854         * lib/unicase/u8-ct-toupper.c: New file.
30855         * modules/unicase/u8-ct-toupper: New file.
30856
30857         Add context arguments to u*_casemap functions.
30858         * lib/unicase/unicasemap.h: Include unicase.h.
30859         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30860         suffix_context arguments.
30861         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30862         functions.
30863         (FUNC): Add prefix_context and suffix_context arguments. Use
30864         uc_is_cased and uc_is_case_ignorable.
30865         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30866         * lib/unicase/u16-casemap.c: Likewise.
30867         * lib/unicase/u32-casemap.c: Likewise.
30868         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30869         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30870         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30871         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30872         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30873         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30874
30875         New module 'unicase/u32-suffix-context'.
30876         * lib/unicase/u32-suffix-context.c: New file.
30877         * modules/unicase/u32-suffix-context: New file.
30878
30879         New module 'unicase/u16-suffix-context'.
30880         * lib/unicase/u16-suffix-context.c: New file.
30881         * modules/unicase/u16-suffix-context: New file.
30882
30883         New module 'unicase/u8-suffix-context'.
30884         * lib/unicase/u8-suffix-context.c: New file.
30885         * lib/unicase/u-suffix-context.h: New file.
30886         * modules/unicase/u8-suffix-context: New file.
30887
30888         New module 'unicase/empty-suffix-context'.
30889         * lib/unicase/empty-suffix-context.c: New file.
30890         * modules/unicase/empty-suffix-context: New file.
30891
30892         New module 'unicase/u32-prefix-context'.
30893         * lib/unicase/u32-prefix-context.c: New file.
30894         * modules/unicase/u32-prefix-context: New file.
30895
30896         New module 'unicase/u16-prefix-context'.
30897         * lib/unicase/u16-prefix-context.c: New file.
30898         * modules/unicase/u16-prefix-context: New file.
30899
30900         New module 'unicase/u8-prefix-context'.
30901         * lib/unicase/u8-prefix-context.c: New file.
30902         * lib/unicase/u-prefix-context.h: New file.
30903         * lib/unicase/context.h: New file.
30904         * modules/unicase/u8-prefix-context: New file.
30905
30906         New module 'unicase/empty-prefix-context'.
30907         * lib/unicase/empty-prefix-context.c: New file.
30908         * modules/unicase/empty-prefix-context: New file.
30909
30910         New module 'unicase/ignorable'.
30911         * lib/unicase/ignorable.c: New file.
30912         * modules/unicase/ignorable: New file.
30913
30914         New module 'unicase/cased'.
30915         * lib/unicase/caseprop.h: New file.
30916         * lib/unicase/cased.c: New file.
30917         * modules/unicase/cased: New file.
30918
30919         New functions for case mapping of substrings.
30920         * lib/unicase.h (casing_prefix_context_t): New type.
30921         (unicase_empty_prefix_context): New variable.
30922         (u8_casing_prefix_context, u16_casing_prefix_context,
30923         u32_casing_prefix_context, u8_casing_prefixes_context,
30924         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30925         declarations.
30926         (casing_suffix_context_t): New type.
30927         (unicase_empty_suffix_context): New variable.
30928         (u8_casing_suffix_context, u16_casing_suffix_context,
30929         u32_casing_suffix_context, u8_casing_suffixes_context,
30930         u16_casing_suffixes_context, u32_casing_suffixes_context,
30931         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30932         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30933         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30934         declarations.
30935
30936 2009-06-28  Jim Meyering  <meyering@redhat.com>
30937
30938         boostrap: indent only with spaces
30939         * build-aux/bootstrap: Indent only with spaces, never TABs.
30940
30941         bootstrap: split long lines
30942         * build-aux/bootstrap: Keep line length < 80.
30943
30944         bootstrap: sync from coreutils
30945         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30946         just as autoreconf does.  Verify a list of prerequisite
30947         package-name,version-number pairs if defined in bootstrap.conf.
30948         Refer to README-prereq, if prerequisites are not satisfied.
30949
30950 2009-06-27  Eric Blake  <ebb9@byu.net>
30951
30952         tests: add test for bogus NULL definition
30953         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30954         * tests/test-stdlib.c: Likewise.
30955         * tests/test-string.c: Likewise.
30956         * tests/test-locale.c: Likewise.
30957         * tests/test-unistd.c: Likewise.
30958         * modules/stdio-tests (Depends-on): Add verify.
30959         * modules/stdlib-tests (Depends-on): Likewise.
30960         * modules/string-tests (Depends-on): Likewise.
30961         * modules/locale-tests (Depends-on): Likewise.
30962         * modules/unistd-tests (Depends-on): Likewise.
30963
30964 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30965
30966         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30967         self-explaining comment.
30968         * m4/selinux-selinux-h: Update serial.
30969         (gl_LIBSELINUX): New macro, adding a warning for missing development
30970         packages to code extracted from...
30971         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30972         Add warning for missing development packages here, too.
30973
30974 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30975
30976         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30977
30978 2009-06-25  Eric Blake  <ebb9@byu.net>
30979
30980         version-etc: fix regression
30981         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30982         gcc.
30983         (version_etc): Use it, to catch bugs with trailing NULL.
30984         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30985         (version_etc_va): Fix logic bug.
30986         * modules/version-etc-tests: Add test.
30987         * tests/test-version-etc.c: New file.
30988         * tests/test-version-etc.sh: Likewise.
30989
30990 2009-06-25  Sam Steingold  <sds@gnu.org>
30991
30992         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30993         mbtowc declaration.
30994
30995 2009-06-25  Eric Blake  <ebb9@byu.net>
30996
30997         fpurge: migrate into <stdio.h>
30998         * lib/fpurge.h: Delete...
30999         * lib/stdio.in.h (fpurge): ...and declare here, instead.
31000         * lib/fpurge.c (fpurge): Change declaring header.
31001         * modules/fpurge (Files): Drop deleted file.
31002         (Depends-on): Add stdio.
31003         (configure.ac): Set witness.
31004         * modules/stdio (Makefile.am): Support fpurge macros.
31005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31006         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
31007         * lib/fflush.c: Update client.
31008         * tests/test-fpurge.c: Likewise.
31009         * NEWS: Mention the change.
31010
31011 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31012
31013         * lib/argp-version-etc.c (program_authors): Add const
31014         qualifier.
31015         * lib/version-etc.c: Fix typos in the comments.
31016         * modules/argp-version-etc: Depends on version-etc.
31017
31018 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31019
31020         argp-version-etc: new module.
31021
31022         * lib/argp-version-etc.c: New file.
31023         * lib/argp-version-etc.h: New file.
31024         * modules/argp-version-etc: New file.
31025         * modules/argp-version-etc-tests: New file.
31026         * tests/test-argp-version-etc.c: New test.
31027         * tests/test-argp-version-etc-1.sh: New test.
31028
31029 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31030
31031         Provide additional interfaces and documentation for version-etc
31032         module.
31033
31034         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
31035         interfaces.
31036         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
31037         prototypes.
31038
31039 2009-06-24  Bruno Haible  <bruno@clisp.org>
31040
31041         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
31042         HAVE_LIB${NAME} macro.
31043         Reported by Sam Steingold <sds@gnu.org>.
31044
31045 2009-06-23  Simon Josefsson  <simon@josefsson.org>
31046
31047         * modules/hash-tests (test_hash_LDADD): Link to libintl when
31048         needed.
31049
31050 2009-06-21  Bruno Haible  <bruno@clisp.org>
31051
31052         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
31053         work.
31054         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
31055         together with LIB${NAME}, LTLIB${NAME}.
31056         Reported by Sam Steingold <sds@gnu.org>.
31057
31058 2009-06-20  Jim Meyering  <meyering@redhat.com>
31059
31060         tests: make sc_require_test_exit_idiom more generic
31061         * top/maint.mk (Exit_witness_file): New overridable variable.
31062         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
31063         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
31064
31065 2009-06-19  Jim Meyering  <meyering@redhat.com>
31066
31067         hash: reverse order of src/dst parameters in an internal interface
31068         * lib/hash.c (transfer_entries): Reverse order of parameters to
31069         put DST before SRC.  Adjust callers.
31070
31071         tests: test-hash: avoid wholesale duplication
31072         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
31073         Instead, use a loop and add a single conditional.
31074
31075         tests: test-hash: allow seed selection via a command line argument
31076         * tests/test-hash.c (get_seed): New function.
31077         (main): Use it.
31078
31079 2009-06-19  Eric Blake  <ebb9@byu.net>
31080
31081         hash: avoid memory leak on allocation failure
31082         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
31083         failure.  Factor repeated algorithm...
31084         (transfer_entries): ...into new helper routine.
31085         (hash_delete): React to hash_rehash return value.
31086
31087         hash: reduce memory pressure in hash_rehash no-op case
31088         * lib/hash.c (next_prime): Avoid overflow.
31089         (hash_initialize): Factor bucket size computation...
31090         (compute_bucket_size): ...into new helper function.
31091         (hash_rehash): Use new function and open coding to reduce memory
31092         pressure, and avoid a memory leak in USE_OBSTACK code.
31093         Reported by Jim Meyering.
31094
31095 2009-06-18  Eric Blake  <ebb9@byu.net>
31096
31097         hash: make rotation more obvious
31098         * modules/hash (Depends-on): Add bitrotate and stdint.
31099         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
31100         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
31101         (SIZE_MAX): Rely on headers for definition.
31102         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
31103         (raw_hasher): Use rotr_sz.
31104         Suggested by Jim Meyering.
31105
31106         hash: fix memory leak in last patch
31107         * lib/hash.c (hash_rehash): Avoid memory leak.
31108
31109         hash: avoid no-op rehashing
31110         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
31111
31112         hash: provide default callback functions
31113         * lib/hash.c (raw_hasher, raw_comparator): New functions.
31114         (hash_initialize): Use them as defaults.
31115         * tests/test-hash.c (main): Test this.
31116
31117         hash: minor optimization
31118         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
31119         when possible.
31120         (hash_initialize): Document this promise.
31121         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
31122         * tests/test-hash.c (hash_compare_strings): Test this.
31123
31124 2009-06-18  Bruno Haible  <bruno@clisp.org>
31125
31126         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
31127         going to be replaced anyway.
31128
31129 2009-06-18  Bruno Haible  <bruno@clisp.org>
31130
31131         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
31132         in one place.
31133         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
31134         be replaced anyway.
31135
31136 2009-06-18  Eric Blake  <ebb9@byu.net>
31137
31138         hash: check for resize before insertion
31139         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
31140         threshold before insertion, so that a pathological hash_rehash
31141         that fills every bucket can still trigger another rehash.
31142
31143 2009-06-18  Jim Meyering  <meyering@redhat.com>
31144
31145         hash-tests: add a loop around the small tests
31146         * tests/test-hash.c (main): Repeat small tests with selected
31147         small initial table sizes.
31148
31149 2009-06-17  Eric Blake  <ebb9@byu.net>
31150
31151         hash: minor cleanups
31152         * lib/hash.h (hash_entry): Make opaque, by moving...
31153         * lib/hash.c (hash_entry): ...here.
31154         (hash_insert): Clarify restrictions on what can be inserted.
31155         (hash_get_next): Clarify when it is safe to remove an element
31156         during traversal.
31157         (check_tuning): Skip verification when tuning is known safe.
31158         (hash_initialize): Clarify restrictions on tuning.
31159
31160 2009-06-17  Jim Meyering  <jim@meyering.net>
31161         and Eric Blake  <ebb9@byu.net>
31162
31163         hash-tests: new module
31164         * modules/hash-tests: New file.
31165         * tests/test-hash.c: New file.
31166
31167 2009-06-17  Eric Blake  <ebb9@byu.net>
31168
31169         strstr-simple: document new module
31170         * MODULES.html.sh: Document new module.
31171
31172         strstr, strcasestr: replace on platforms with broken memchr
31173         * modules/strstr: Split into...
31174         * modules/strstr-simple: ...new module that does not care about
31175         performance, but does care about glibc bug.
31176         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
31177         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
31178         if platform memchr is broken, per Debian bug 521737.
31179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
31180         memchr.
31181         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
31182         * doc/posix-functions/strstr.texi (strstr): Document the fix.
31183         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31184         * modules/mountlist (Depends-on): Add strstr-simple.
31185         * modules/gen-uni-tables (Depends-on): Likewise.
31186         * modules/argz (Depends-on): Add strstr.
31187
31188 2009-06-17  Bruno Haible  <bruno@clisp.org>
31189
31190         * modules/posix_spawn-internal (Depends-on): Add errno.
31191
31192 2009-06-17  Bruno Haible  <bruno@clisp.org>
31193
31194         Define missing ESTALE on Interix 3.5.
31195         * lib/errno.in.h (ESTALE): Assign a value if missing.
31196         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
31197         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
31198         missing.
31199         * doc/posix-headers/errno.texi: Mention the Interix bug.
31200         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
31201
31202 2009-06-15  Eric Blake  <ebb9@byu.net>
31203
31204         memchr, memchr2: add valgrind exception
31205         * lib/memchr.valgrind: New file.
31206         * lib/memchr2.valgrind: New file.
31207         * modules/memchr (Files): Distribute valgrind file.
31208         * modules/memchr2 (Files): Likewise.
31209
31210         docs: memchr is no longer obsolete
31211         * MODULES.html.sh: Move memchr from obsolete to string.h section.
31212         * lib/string.in.h (memchr): Simplify logic.
31213
31214 2009-06-14  Jim Meyering  <meyering@redhat.com>
31215
31216         link-follow: fix the "checking..." message to not mention trailing slash
31217         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
31218         never considered trailing slashes.
31219
31220 2009-06-14  Bruno Haible  <bruno@clisp.org>
31221
31222         * m4/memchr.m4: Mention also the bug on IA-64.
31223         * doc/posix-functions/memchr.texi: Likewise.
31224
31225 2009-06-12  Eric Blake  <ebb9@byu.net>
31226
31227         memchr: detect broken x86_64 and alpha implementations
31228         * modules/memchr-tests (Depends-on): Move mmap detection...
31229         * modules/memchr (Depends-on): ...here.
31230         (configure.ac): Set indicator.
31231         * lib/string.in.h (memchr): Declare replacement.
31232         * modules/string (Makefile.am): Trigger replacement.
31233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31234         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
31235         bugs.
31236         * doc/posix-functions/memchr.texi (memchr): Document the bug.
31237         * modules/getpagesize (License): Relax license.
31238
31239 2009-06-11  Bruno Haible  <bruno@clisp.org>
31240
31241         * lib/idpriv.h: Add more references.
31242
31243 2009-06-08  Bruno Haible  <bruno@clisp.org>
31244
31245         Tests for module 'idpriv-droptemp'.
31246         * modules/idpriv-droptemp-tests: New file.
31247         * tests/test-idpriv-droptemp.sh: New file.
31248         * tests/test-idpriv-droptemp.su.sh: New file.
31249         * tests/test-idpriv-droptemp.c: New file.
31250
31251         New module 'idpriv-droptemp'.
31252         * lib/idpriv-droptemp.c: New file.
31253         * modules/idpriv-droptemp: New file.
31254
31255 2009-06-08  Bruno Haible  <bruno@clisp.org>
31256
31257         Tests for module 'idpriv-drop'.
31258         * modules/idpriv-drop-tests: New file.
31259         * tests/test-idpriv-drop.sh: New file.
31260         * tests/test-idpriv-drop.su.sh: New file.
31261         * tests/test-idpriv-drop.c: New file.
31262
31263         New module 'idpriv-drop'.
31264         * lib/idpriv.h: New file.
31265         * lib-idpriv-drop.c: New file.
31266         * m4/idpriv.m4: New file.
31267         * modules/idpriv-drop: New file.
31268
31269 2009-06-08  Bruno Haible  <bruno@clisp.org>
31270
31271         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
31272         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31273         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31274         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31275         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31276         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31277         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31278
31279 2009-06-08  Eric Blake  <ebb9@byu.net>
31280
31281         test-strstr: use memory fence, when possible
31282         * tests/test-strstr.c (main): Use memory fence, in order to be
31283         more likely to trigger Debian bug 521737.
31284         * modules/strstr-tests (Files): Pull in additional files.
31285
31286         memchr: no longer obsolete, for wider field testing
31287         * modules/memchr (Status, Notice): Delete, this module is no
31288         longer obsolete.
31289         * modules/vasnprintf (Depends-on): Add memchr.
31290
31291 2009-06-07  Jim Meyering  <meyering@redhat.com>
31292
31293         hash: declare some functions with the warn_unused_result attribute
31294         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
31295
31296 2009-06-07  Bruno Haible  <bruno@clisp.org>
31297
31298         * tests/test-alignof.c: Don't test int64_t if it does not exist.
31299         Reported by Eric Blake.
31300
31301 2009-06-06  Eric Blake  <ebb9@byu.net>
31302
31303         test-alignof: fix typo with long double
31304         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
31305         compiler error.
31306
31307 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
31308
31309         Escape non-texinfo { and }s.
31310         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
31311         markup error.
31312
31313 2009-06-04  Jim Meyering  <meyering@redhat.com>
31314
31315         gitlog-to-changelog: don't infloop on an empty commit log
31316         * build-aux/gitlog-to-changelog: Warn about an empty log message.
31317         Reported by Boris Petersen <transacid@centerim.org>.
31318
31319 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
31320
31321         version-etc: extend for packagers
31322         Add three new configure options, intended for packagers:
31323           --with-packager="packager name"
31324           --with-packager-version="packager-specific version"
31325           --with-packager-bug-reports="packager bug reporting"
31326         An example with coreutils:
31327           $ ./configure \
31328             --with-packager=Gentoo \
31329             --with-packager-bug-report=http://bugs.gentoo.org/ \
31330             --with-packager-version="patchset 1.6"
31331           $ ./src/ls --version | head -n2
31332           ls (GNU coreutils) 7.1-dirty
31333           Packaged by Gentoo (patchset 1.6)
31334         Note that the bug reporting info via --help doesn't show up because
31335         coreutils uses its own custom emit_bug_reporting_address() implementation
31336         in src/system.h.  If it didn't, it'd look like:
31337           $ ./src/ls --help | tail -n4
31338           Report bugs to <bug-coreutils@gnu.org>.
31339           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31340           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31341           General help using GNU software: <http://www.gnu.org/gethelp/>.
31342         * lib/version-etc.c: Print new information, if provided.
31343         * m4/version-etc.m4: New file.
31344         * modules/version-etc (Files): Add m4/version-etc.m4.
31345         (configure.ac): Add gl_VERSION_ETC.
31346
31347 2009-05-31  Bruno Haible  <bruno@clisp.org>
31348
31349         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31350         and 'int64_t'.
31351         * modules/alignof-tests (Dependencies): Add stdint.
31352         Reported by Eric Blake.
31353
31354 2009-05-31  Bruno Haible  <bruno@clisp.org>
31355
31356         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31357         restriction due to compiler bugs.
31358         Reported by Eric Blake.
31359
31360 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31361             Bruno Haible  <bruno@clisp.org>
31362
31363         Fix test-alignof failure.
31364         * lib/alignof.h (alignof_slot): New macro.
31365         (alignof_type): New macro, with the same semantics as the previous
31366         'alignof'.
31367         (alignof): Alias to alignof_slot.
31368         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31369         check that the results are usable as constant expressions.
31370
31371 2009-05-31  Bruno Haible  <bruno@clisp.org>
31372
31373         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31374         * tests/test-memchr.c (main): Check that memchr does not read past the
31375         first occurrence of the byte.
31376         * tests/test-strstr.c (main): Update comment.
31377         Suggested by Eric Blake.
31378
31379 2009-05-30  Bruno Haible  <bruno@clisp.org>
31380
31381         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31382         detail how to use dumpbin.
31383         Reported by David Byron <dbyron@dbyron.com>.
31384
31385 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31386
31387         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31388
31389 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31390
31391         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31392
31393 2009-05-28  Bruno Haible  <bruno@clisp.org>
31394
31395         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31396         build-aux/ files.
31397
31398 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31399
31400         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31401
31402 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31403
31404         * gnulib-tool (sed_transform_main_lib_file)
31405         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31406         regexps.
31407
31408 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31409
31410         * tests/test-strstr.c: Add another self-test.
31411         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31412         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31413
31414 2009-05-23  Bruno Haible  <bruno@clisp.org>
31415
31416         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31417         change.
31418
31419 2009-05-21  Bruno Haible  <bruno@clisp.org>
31420
31421         Simplify use of mode_t varargs.
31422         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31423         uses 'mode_t' or 'int'.
31424         * lib/openat.c (openat): Likewise.
31425         * lib/open-safer.c (open_safer): Likewise.
31426         * m4/mode_t.m4: New file.
31427         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31428         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31429         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31430         * modules/open (Files): Add m4/mode_t.m4.
31431         * modules/openat (Files): Likewise.
31432         * modules/fcntl-safer (Files): Likewise.
31433         Suggested by Eric Blake.
31434
31435 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31436
31437         * doc/glibc-functions/fallocate.texi: New file.
31438         * doc/gnulib.texi: Include it.
31439
31440 2009-05-21  Eric Blake  <ebb9@byu.net>
31441             Bruno Haible  <bruno@clisp.org>
31442
31443         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31444         invocations.
31445         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31446
31447 2009-05-21  Eric Blake  <ebb9@byu.net>
31448             Bruno Haible  <bruno@clisp.org>
31449
31450         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31451         include_next. Fix of 2008-11-20 commit.
31452         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31453         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31454         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31455         NEXT_MATH_H.
31456         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31457         instead of NEXT_MATH_H.
31458
31459 2009-05-21  Bruno Haible  <bruno@clisp.org>
31460
31461         Avoid redefinition warnings for SIZE_MAX.
31462         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31463         Reported by Simon Josefsson.
31464
31465 2009-05-21  Bruno Haible  <bruno@clisp.org>
31466
31467         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31468         AC_CACHE_VAL.
31469
31470 2009-05-20  Bruno Haible  <bruno@clisp.org>
31471
31472         Make zeroptr.h work on mingw.
31473         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31474         mprotect.
31475         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31476         * modules/memchr2-tests (configure.ac): Likewise.
31477         * modules/memcmp-tests (configure.ac): Likewise.
31478         * modules/memmem-tests (configure.ac): Likewise.
31479         * modules/memrchr-tests (configure.ac): Likewise.
31480         Reported by Simon Josefsson.
31481
31482 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31483
31484         * tests/test-glob.c: Include string.h for strcmp prototype.
31485
31486 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31487
31488         * modules/getdelim (Depends-on): Add explicit stdint, although it
31489         was implicitly already pulled in via realloc-posix.
31490         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31491
31492 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31493
31494         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31495         G. Christensen" <tgc@jupiterrise.com>.
31496         * m4/sys_socket_h.m4: Check for sa_family_t.
31497         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31498         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31499         * tests/test-sys_socket.c: Check that sa_family_t works.
31500
31501 2009-05-18  Eric Blake  <ebb9@byu.net>
31502
31503         maint.mk: allow gnulib_dir in VPATH build
31504         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31505
31506 2009-05-15  Jim Meyering  <meyering@redhat.com>
31507
31508         maint.mk: Give gnulib_dir a default definition.
31509         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31510         Thus, most packages no longer need to specify this variable in cfg.mk
31511
31512 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31513
31514         rename.m4: fix typos that would make non-mingw cross-configure fail
31515         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31516
31517 2009-05-13  Eric Blake  <ebb9@byu.net>
31518
31519         mmap-anon: avoid out-of-order autoconf expansion
31520         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31521         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31522         * modules/memchr-tests (Depends-on): Add extensions.
31523         * modules/memchr2-tests (Depends-on): Add extensions.
31524         * modules/memcmp-tests (Depends-on): Add extensions.
31525         * modules/memmem-tests (Depends-on): Add extensions.
31526         * modules/memrchr-tests (Depends-on): Add extensions.
31527
31528 2009-05-13  Bruno Haible  <bruno@clisp.org>
31529
31530         Make some tests ISO C 99 compliant.
31531         * tests/zerosize-ptr.h: New file.
31532         * tests/test-memchr.c: Include zerosize-ptr.h.
31533         (main): Use a zero-size object pointer instead of NULL.
31534         * tests/test-memchr2.c: Include zerosize-ptr.h.
31535         (main): Use a zero-size object pointer instead of NULL.
31536         * tests/test-memcmp.c: Include zerosize-ptr.h.
31537         (main): Use a zero-size object pointer instead of NULL.
31538         * tests/test-memmem.c: Include zerosize-ptr.h.
31539         (main): Use a zero-size object pointer instead of NULL.
31540         * tests/test-memrchr.c: Include zerosize-ptr.h.
31541         (main): Use a zero-size object pointer instead of NULL.
31542         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31543         m4/mmap-anon.m4.
31544         (Depends-on): Add getpagesize.
31545         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31546         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31547         m4/mmap-anon.m4.
31548         (Depends-on): Add getpagesize.
31549         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31550         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31551         m4/mmap-anon.m4.
31552         (Depends-on): Add getpagesize.
31553         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31554         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31555         m4/mmap-anon.m4.
31556         (Depends-on): Add getpagesize.
31557         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31558         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31559         m4/mmap-anon.m4.
31560         (Depends-on): Add getpagesize.
31561         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31562
31563 2009-05-12  Bruno Haible  <bruno@clisp.org>
31564
31565         Tests for module 'alignof'.
31566         * modules/alignof-tests: New file.
31567         * tests/test-alignof.c: New file.
31568
31569 2009-05-12  Bruno Haible  <bruno@clisp.org>
31570
31571         Fix alignof macro.
31572         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31573         vendor compilers that are always correct.
31574
31575 2009-05-12  Bruno Haible  <bruno@clisp.org>
31576
31577         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31578         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31579         not whether its fully works.
31580
31581 2009-05-12  Bruno Haible  <bruno@clisp.org>
31582
31583         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31584
31585 2009-05-12  Jim Meyering  <meyering@redhat.com>
31586
31587         * top/maint.mk: Adjust backslash alignment.
31588
31589 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31590
31591         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31592
31593 2009-05-11  Eric Blake  <ebb9@byu.net>
31594
31595         argp: avoid undefined behavior
31596         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31597         macros.
31598
31599 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31600
31601         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31602         user.name to prevent git commit from complaining.
31603
31604 2009-05-10  Bruno Haible  <bruno@clisp.org>
31605
31606         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31607         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31608         it rewrites every file name only once.
31609         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31610
31611 2009-05-08  Bruno Haible  <bruno@clisp.org>
31612
31613         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31614         instead of 'max'.
31615
31616 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31617
31618         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31619         sockaddr_storage test.
31620
31621 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31622
31623         * modules/sys_socket (Makefile.am): Substitute
31624         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31625         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31626         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31627         * tests/test-sys_socket.c: Check sockaddr_storage.
31628
31629 2009-05-08  Bruno Haible  <bruno@clisp.org>
31630
31631         New module 'alignof'.
31632         * lib/alignof.h: New file.
31633         * modules/alignof: New file.
31634
31635 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31636             Bruno Haible  <bruno@clisp.org>
31637
31638         Fix test-file-has-acl on FreeBSD.
31639         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31640         mask is implicitly added.
31641         * tests/test-file-has-acl.c: Include <signal.h>.
31642         (main): Terminate the test after 5 seconds.
31643         * modules/acl-tests (configure.ac): Check for alarm function.
31644
31645 2009-05-04  Bruno Haible  <bruno@clisp.org>
31646
31647         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31648         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31649         * modules/errno (configure.ac): Drop AC_REQUIRE.
31650         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31651         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31652
31653 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31654
31655         * modules/glob-tests: New module.
31656         * tests/test-glob.c: Add.
31657
31658 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31659
31660         * modules/fnmatch-tests: New module.
31661         * tests/test-fnmatch.c: Add.
31662
31663 2009-05-04  Eric Blake  <ebb9@byu.net>
31664
31665         maint: make the new no-submodule-changes rule VPATH-safe
31666         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31667
31668 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31669             Bruno Haible  <bruno@clisp.org>
31670
31671         acl: Fix infinite loop on FreeBSD.
31672         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31673         of return value from acl_get_entry.
31674         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31675         Likewise.
31676
31677 2009-05-03  Bruno Haible  <bruno@clisp.org>
31678
31679         * lib/acl-internal.h (acl_entries): Clarify return value.
31680         * lib/acl_entries.c (acl_entries): Likewise.
31681
31682 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31683
31684         Bug fix in acl module.
31685         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31686
31687 2009-05-03  Bruno Haible  <bruno@clisp.org>
31688
31689         Create gperf-generated file in the source dir, not in the build dir.
31690         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31691         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31692         * modules/unicase/locale-language (unicase/locale-languages.h):
31693         Likewise.
31694         * modules/unicase/special-casing (unicase/special-casing-table.h):
31695         Likewise.
31696         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31697         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31698         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31699         Reported by Ralf Wildenhues.
31700
31701 2009-05-03  Bruno Haible  <bruno@clisp.org>
31702
31703         * modules/fnmatch (Description, configure.ac): Taken from
31704         fnmatch-posix.
31705         * modules/fnmatch-posix: Turn into a symbolic reference to the
31706         'fnmatch' module, and deprecate.
31707         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31708
31709 2009-05-03  Bruno Haible  <bruno@clisp.org>
31710
31711         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31712         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31713         Reported by Ralf Wildenhues.
31714
31715 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31716
31717         * m4/fnmatch.m4: Fix fnmatch re-define.
31718
31719 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31720
31721         priv-set: new module and tests; adapt write-any-file
31722         * lib/priv-set.c: New file.
31723         * lib/priv-set.h: New file.
31724         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31725         * lib/write-any-file.c: Simplify by using priv-set module.
31726         * m4/priv-set.m4: New file.
31727         * modules/priv-set: New file.
31728         * modules/unlinkdir: Add dependency on priv-set module.
31729         * modules/write-any-file: Likewise.
31730
31731         Tests for module 'priv-set'.
31732         * modules/priv-set-tests: New file.
31733         * tests/test-priv-set.c: New file.
31734
31735 2009-05-03  Jim Meyering  <meyering@redhat.com>
31736             Bruno Haible  <bruno@clisp.org>
31737
31738         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31739         use the converted UTF-8 variant of the name instead.
31740
31741 2009-05-03  Jim Meyering  <meyering@redhat.com>
31742
31743         tests: tighten some getdate tests
31744         * tests/test-getdate.c (main): Tighten tests: require equality,
31745         not just greater than.  Set TZ envvar to UTC0.
31746
31747 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31748
31749         getdate: correctly interpret "next monday" when run on a Monday
31750         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31751         that e.g., "next tues" (when run on a tuesday) results in a date
31752         that is one week in the future, and not today's date.
31753         I.e., add a week when the wday is the same as the current one.
31754         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31755         and earlier by Martin Bernreuther and Jan Minář.
31756         * tests/test-getdate.c (main): Check that "next DAY" is always in
31757         the future and that "last DAY" is always in the past.
31758
31759 2009-05-02  Jim Meyering  <meyering@redhat.com>
31760
31761         build: ensure that a release build fails when a submodule is unclean
31762         * top/maint.mk (no-submodule-changes): New rule.
31763         (alpha beta major): Depend on it.
31764
31765 2009-05-02  Bruno Haible  <bruno@clisp.org>
31766
31767         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31768         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31769         shell variable gl_fnmatch_required to detect which variant is
31770         requested.
31771         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31772         gl_FUNC_FNMATCH_POSIX.
31773         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31774         exclude fnmatch-posix.
31775
31776 2009-05-02  Bruno Haible  <bruno@clisp.org>
31777
31778         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31779         * modules/mbsrtowcs (License): Change to LGPLv2+.
31780         * modules/strnlen1 (License): Likewise.
31781         Reported by Simon Josefsson.
31782
31783 2009-05-02  Bruno Haible  <bruno@clisp.org>
31784
31785         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31786         "cross".
31787         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31788         gnulib-tool was called with option --source-base=lib.
31789
31790 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31791
31792         Use automake *-local hooks without commands, for extensibility.
31793         * modules/localcharset (Makefile.am): Rename install-exec-local
31794         rule to install-exec-localcharset, and make it a prerequisite of
31795         install-exec-local.  Likewise, rename the uninstall-local rule to
31796         uninstall-localcharset, and make it a prerequisite of the former.
31797
31798 2009-05-01  Bruno Haible  <bruno@clisp.org>
31799
31800         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31801         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31802         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31804         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31805         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31806         m4/locale-zh.m4, m4/codeset.m4.
31807
31808         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31809         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31810         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31811         m4/locale-zh.m4.
31812
31813         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31814         REPLACE_WCRTOMB if mbstate_t must be replaced.
31815         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31816         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31817
31818 2009-05-01  Bruno Haible  <bruno@clisp.org>
31819
31820         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31821         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31822         dngettext, dcngettext, textdomain, bindtextdomain,
31823         bind_textdomain_codeset): Undefine before redefining.
31824
31825 2009-04-30  Bruno Haible  <bruno@clisp.org>
31826
31827         Fix bug introduced on 2009-04-25.
31828         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31829         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31830         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31831         is defined.
31832         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31833         is defined.
31834         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31835         is defined.
31836         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31837
31838 2009-04-28  Bruno Haible  <bruno@clisp.org>
31839
31840         Comment tweaks.
31841         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31842         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31843         * lib/unicase.h (u*_casexfrm): Likewise.
31844         Reported by Paolo Bonzini.
31845
31846 2009-04-28  Bruno Haible  <bruno@clisp.org>
31847
31848         Fix a compilation error.
31849         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31850         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31851         Reported by Jim Meyering.
31852
31853 2009-04-27  Bruno Haible  <bruno@clisp.org>
31854
31855         New module 'libunistring'.
31856         * modules/libunistring: New file.
31857         * m4/libunistring.m4: New file.
31858         * MODULES.html.sh (Unicode string functions): Add it.
31859
31860 2009-04-27  Eric Blake  <ebb9@byu.net>
31861
31862         maint.mk: allow package-specific header to provide <config.h>
31863         * top/maint.mk (sc_require_config_h): New variable.
31864         (sc_require_config_h, sc_require_config_h_first): Use it.
31865
31866 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31867
31868         * top/maint.mk (sc_avoid_if_before_free): Except
31869         useless-if-before-free script.
31870
31871 2009-04-27  Eric Blake  <ebb9@byu.net>
31872
31873         maintainer-makefile: depend on all required helper scripts
31874         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31875         useless-if-before-free.
31876         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31877         version, rather than assuming gnulib checkout is available.
31878         Reported by Simen Josefsson.
31879
31880 2009-04-26  Bruno Haible  <bruno@clisp.org>
31881
31882         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31883         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31884         "../" or "..".
31885
31886 2009-04-26  Bruno Haible  <bruno@clisp.org>
31887
31888         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31889         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31890         AC_LIB_HAVE_LINKFLAGS.
31891
31892 2009-04-26  Bruno Haible  <bruno@clisp.org>
31893
31894         Simplify calling convention of u*_conv_from_encoding.
31895         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31896         u32_conv_from_encoding): Expect a resultbuf argument and return the
31897         result directly as a pointer.
31898         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31899         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31900         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31901         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31902         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31903         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31904         Update.
31905         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31906         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31907         * lib/vasnprintf.c (VASNPRINTF): Update.
31908         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31909         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31910         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31911         * NEWS: Mention the change.
31912
31913 2009-04-26  Bruno Haible  <bruno@clisp.org>
31914
31915         Simplify calling convention of u*_conv_to_encoding.
31916         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31917         u32_conv_to_encoding): Expect a resultbuf argument and return the
31918         result directly as a pointer.
31919         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31920         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31921         freeing scaled_offsets if mem_iconveha failed.
31922         * lib/unicase/u-casexfrm.h (FUNC): Update.
31923         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31924         * lib/vasnprintf.c (VASNPRINTF): Update.
31925         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31926         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31927         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31928         * NEWS: Mention the change.
31929
31930 2009-04-26  Bruno Haible  <bruno@clisp.org>
31931
31932         Avoid test failures on AIX and OSF/1.
31933         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31934         malloc(0).
31935         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31936         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31937         Likewise.
31938         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31939         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31940         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31941         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31942         * doc/posix-functions/malloc.texi: Document the portability problem
31943         related to malloc(0).
31944
31945 2009-04-26  Bruno Haible  <bruno@clisp.org>
31946
31947         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31948         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31949         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31950
31951 2009-04-25  Bruno Haible  <bruno@clisp.org>
31952
31953         Avoid link error when creating a namespace clean library.
31954         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31955         as macro with arguments if already defined as an alias.
31956         * lib/signbitf.c (gl_signbitf): Don't undefine.
31957         * lib/signbitd.c (gl_signbitd): Don't undefine.
31958         * lib/signbitl.c (gl_signbitl): Don't undefine.
31959
31960 2009-04-25  Jim Meyering  <meyering@redhat.com>
31961
31962         vc-list-files: fix another quoting bug
31963         * build-aux/vc-list-files: Avoid sed backslash expansion
31964         of pathological directory names.
31965
31966 2009-04-25  Eric Blake  <ebb9@byu.net>
31967
31968         vc-list-files: fix shell quoting error
31969         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31970         timestamp.
31971
31972 2009-04-25  Jim Meyering  <meyering@redhat.com>
31973
31974         vc-list-files: restore lost functionality with subdir argument
31975         * build-aux/vc-list-files: When given a non-"." sub-directory
31976         argument, substitute the $dir/ prefix back onto each resulting name.
31977         Otherwise, coreutils' root_tests check would fail.
31978
31979 2009-04-24  Eric Blake  <ebb9@byu.net>
31980
31981         vc-list-files: ignore git symlinks
31982         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31983         than ls-files, to ignore git symlinks.
31984
31985         maint.mk: import improvements from m4
31986         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31987         (move_if_change): Delete unused macro.
31988         (news-date-check, vc-diff-check): Support VPATH builds.
31989         (announcement): Likewise.  Split --bootstrap-tools list...
31990         (boostrap-tools): ...into separate list, which can be overridden
31991         in cfg.mk.
31992         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31993         requiring dependency on useless-if-before-free module.
31994         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31995         Support VPATH builds.
31996
31997 2009-04-24  Jim Meyering  <meyering@redhat.com>
31998
31999         maint.mk: remove coreutils-specific rules and variables
32000         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
32001         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
32002         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
32003
32004         maint.mk: remove obsolete rule
32005         * top/maint.mk (rel-check): Remove rule.
32006         (WGET, WGETFLAGS): Remove now-unused variables.
32007
32008 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32009
32010         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
32011         consistency.
32012
32013         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
32014         '$(PATH_SEPARATOR)' instead of ':'.
32015
32016 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32017
32018         * lib/getopt1.c (main): Use 'const' for static array.
32019
32020 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32021
32022         * top/maint.mk: Sync with coreutils.
32023         * NEWS: Explain incompatibilities.
32024
32025 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32026             Bruno Haible  <bruno@clisp.org>
32027
32028         Fix cross-compilation results.
32029         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
32030         statement, as third argument of AC_TRY_RUN.
32031         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32032         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32033         Likewise.
32034         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32035         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
32036         Likewise.
32037         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32038         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
32039         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
32040
32041 2009-04-20  Bruno Haible  <bruno@clisp.org>
32042
32043         Avoid test failure on mingw.
32044         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
32045
32046 2009-04-20  Bruno Haible  <bruno@clisp.org>
32047
32048         Avoid compilation error on mingw.
32049         * modules/localename-tests (Depends-on): Add locale.
32050
32051 2009-04-19  Bruno Haible  <bruno@clisp.org>
32052
32053         Support for building a shared library on Windows platforms.
32054         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
32055         (main): Test the presence of UNINORM_NFC here.
32056         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
32057         (main): Test the presence of UNINORM_NFD here.
32058         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
32059         (main): Test the presence of UNINORM_NFKC here.
32060         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
32061         (main): Test the presence of UNINORM_NFKD here.
32062
32063 2009-04-19  Bruno Haible  <bruno@clisp.org>
32064
32065         Avoid a compiler warning.
32066         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
32067         Change type of variable 'sequence'.
32068
32069 2009-04-19  Bruno Haible  <bruno@clisp.org>
32070
32071         * modules/configmake (Makefile.am): When the contents of configmake.h
32072         does not change, arrange to preserve its modification time.
32073
32074 2009-04-17  Simon Josefsson  <simon@josefsson.org>
32075
32076         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
32077         gettext domain.
32078
32079 2009-04-16  Jim Meyering  <meyering@redhat.com>
32080
32081         useless-if-before-free: improve conversion code
32082         * build-aux/useless-if-before-free: Adjust code-in-comment to match
32083         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
32084
32085 2009-04-14  Bruno Haible  <bruno@clisp.org>
32086
32087         * modules/fcntl (Depends-on): Add extensions.
32088         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
32089
32090 2009-04-12  Ben Pfaff  <blp@gnu.org>
32091
32092         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
32093         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
32094
32095 2009-03-20  Ben Pfaff  <blp@gnu.org>
32096
32097         Make rename replace existing destinations on Windows.
32098         * m4/rename.m4: Add test for Mingw.
32099         * lib/rename.c: Add rename replacement that uses MoveFileEx with
32100         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
32101         * doc/posix-functions/rename.texi: Document.
32102
32103 2009-04-10  Bruno Haible  <bruno@clisp.org>
32104
32105         New include file "iconveh.h".
32106         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
32107         * lib/striconveh.h: Include it.
32108         (enum iconv_ilseq_handler): Remove definition.
32109         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
32110         striconveh.h.
32111         * lib/striconveha.c: Include striconveh.h.
32112         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
32113         * modules/striconveh (Files): Add lib/iconveh.h.
32114         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
32115         lib/striconveh.h.
32116
32117 2009-04-10  Bruno Haible  <bruno@clisp.org>
32118
32119         * lib/uniconv.h: Update comment.
32120
32121 2009-04-10  Bruno Haible  <bruno@clisp.org>
32122
32123         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
32124         always.
32125         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32126         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32127         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32128         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
32129         "unistring-notinline.h", so that the function gets defined always.
32130         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32131         * lib/unistr/u8-uctomb.c: Likewise.
32132         * lib/unistr/u16-mbtouc.c: Likewise.
32133         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32134         * lib/unistr/u16-uctomb.c: Likewise.
32135         * lib/unistr/u32-mbtouc.c: Likewise.
32136         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32137         * lib/unistr/u32-uctomb.c: Likewise.
32138
32139 2009-04-10  Bruno Haible  <bruno@clisp.org>
32140
32141         Mark 'utime' obsolete.
32142         * modules/utime (Status, Notice): New sections.
32143         Suggested by Jim Meyering.
32144
32145         Fix cross-compile guess for utime test.
32146         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
32147         autoconf.
32148         * doc/posix-functions/utime.texi: Give more precisions.
32149         Reported by Jan <ipif@ymail.com>.
32150
32151 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
32152
32153         filevercmp: correct today's change
32154         * lib/filevercmp.c: Also handle coreutils' test inputs.
32155         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
32156
32157         Fix regression in 'filevercmp' module. Thanks Sven Joachim
32158         for reporting it.
32159         * lib/filevercmp.c: Special handle for "", "." and "..".
32160         * tests/test-filevercmp.c: Enlarge the set suite.
32161
32162 2009-04-07  Jim Meyering  <meyering@redhat.com>
32163
32164         useless-if-before-free: show how to remove braced useless free, too
32165         * build-aux/useless-if-before-free: still only in a comment, though.
32166
32167 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
32168
32169         maint.mk: import changes to syntax-check macros from coreutils
32170         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
32171         Use them in the relevant macros.
32172
32173 2009-04-06  Bruno Haible  <bruno@clisp.org>
32174
32175         Fix unportable use of bit-fields.
32176         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
32177         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
32178         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
32179
32180 2009-04-06  Bruno Haible  <bruno@clisp.org>
32181
32182         Avoid test failures on AIX and OSF/1.
32183         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
32184         that malloc(0) = NULL.
32185         * tests/unicase/test-u8-tolower.c (check): Likewise.
32186         * tests/unicase/test-u8-totitle.c (check): Likewise.
32187         * tests/unicase/test-u8-toupper.c (check): Likewise.
32188         * tests/unicase/test-u16-casefold.c (check): Likewise.
32189         * tests/unicase/test-u16-tolower.c (check): Likewise.
32190         * tests/unicase/test-u16-totitle.c (check): Likewise.
32191         * tests/unicase/test-u16-toupper.c (check): Likewise.
32192         * tests/unicase/test-u32-casefold.c (check): Likewise.
32193         * tests/unicase/test-u32-tolower.c (check): Likewise.
32194         * tests/unicase/test-u32-totitle.c (check): Likewise.
32195         * tests/unicase/test-u32-toupper.c (check): Likewise.
32196         * tests/uninorm/test-u8-nfc.c (check): Likewise.
32197         * tests/uninorm/test-u8-nfd.c (check): Likewise.
32198         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
32199         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
32200         * tests/uninorm/test-u16-nfc.c (check): Likewise.
32201         * tests/uninorm/test-u16-nfd.c (check): Likewise.
32202         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
32203         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
32204         * tests/uninorm/test-u32-nfc.c (check): Likewise.
32205         * tests/uninorm/test-u32-nfd.c (check): Likewise.
32206         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
32207         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
32208
32209 2009-04-05  Bruno Haible  <bruno@clisp.org>
32210
32211         Work around an autoconf limitation.
32212         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
32213         comment line if it would be longer than 3 KB.
32214
32215 2009-04-05  Bruno Haible  <bruno@clisp.org>
32216
32217         Avoid test failure with libiconv-1.13.
32218         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
32219         of the expected test results.
32220
32221 2009-04-05  Bruno Haible  <bruno@clisp.org>
32222
32223         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
32224         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
32225         that it should be installed.
32226
32227 2009-04-05  Bruno Haible  <bruno@clisp.org>
32228
32229         * gnulib-tool: New option --copy-file.
32230         (func_usage): Document it.
32231         (func_dest_tmpfilename): Moved out of func_import.
32232         (func_add_file, func_update_file): New functions, extracted from
32233         func_import.
32234         (func_import): Update.
32235
32236 2009-04-05  Karl Berry  <karl@gnu.org>
32237
32238         * README: prominently mention gnulib-tool.
32239         Rearrange sections so getting the code is near the top.
32240
32241 2009-04-05  Bruno Haible  <bruno@clisp.org>
32242
32243         * lib/unicase.h: Mention u*_cmp2.
32244         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32245         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
32246         * lib/unicase/ulc-casecmp.c: Likewise.
32247         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
32248         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
32249         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
32250         unistr/u8-cmp.
32251         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
32252         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
32253         unistr/u16-cmp.
32254         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
32255         unistr/u32-cmp.
32256
32257         * lib/uninorm.h: Mention u*_cmp2.
32258         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32259         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
32260         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
32261         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
32262         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
32263         unistr/u8-cmp.
32264         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
32265         unistr/u16-cmp.
32266         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
32267         unistr/u32-cmp.
32268
32269         New module 'unistr/u32-cmp2'.
32270         * lib/unistr/u32-cmp2.c: New file.
32271         * modules/unistr/u32-cmp2: New file.
32272
32273         New module 'unistr/u16-cmp2'.
32274         * lib/unistr/u16-cmp2.c: New file.
32275         * modules/unistr/u16-cmp2: New file.
32276
32277         New module 'unistr/u8-cmp2'.
32278         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
32279         * lib/unistr/u8-cmp2.c: New file.
32280         * lib/unistr/u-cmp2.h: New file.
32281         * modules/unistr/u8-cmp2: New file.
32282
32283 2009-04-05  Bruno Haible  <bruno@clisp.org>
32284
32285         * lib/unictype.h (uc_property_is_valid): New macro.
32286         * tests/unictype/test-pr_byname.c (main): Use it.
32287
32288         * lib/unistr.h: Doc fixes.
32289         * lib/uniconv.h: Doc fixes.
32290         * lib/unictype.h: Doc fixes.
32291
32292 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
32293
32294         Port coreutils 7.2 to Solaris 8.
32295
32296         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
32297         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
32298         for Solaris 8.  This is a bit of a hack, as it means it's the
32299         caller's responsibility to add -lnsl if needed, but most likely it
32300         won't be needed since only getaddrinfo uses this and getaddrinfo
32301         isn't needed on Solaris 8.
32302
32303         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
32304         problem to Solaris 8 encountered with coreutils 7.2, which
32305         resulted in a message "fnmatch.c:292: warning: passing argument 4
32306         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
32307         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
32308
32309 2009-04-03  Simon Josefsson  <simon@josefsson.org>
32310
32311         * m4/ld-version-script.m4: Add FIXME comment.
32312
32313 2009-04-02  Simon Josefsson  <simon@josefsson.org>
32314
32315         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
32316         SOVERSION variable.
32317
32318 2009-04-02  Bruno Haible  <bruno@clisp.org>
32319
32320         * Makefile (info, html, dvi, pdf): Combine the rules.
32321         Suggested by Jim Meyering.
32322
32323 2009-04-01  Bruno Haible  <bruno@clisp.org>
32324
32325         * Makefile (info, html, dvi, pdf): New targets.
32326         Reported by Reuben Thomas <rrt@sc3d.org>.
32327
32328 2009-04-01  Bruno Haible  <bruno@clisp.org>
32329
32330         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32331         can be put into PATH.
32332         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32333
32334 2009-04-01  Bruno Haible  <bruno@clisp.org>
32335
32336         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32337
32338 2009-04-01  Bruno Haible  <bruno@clisp.org>
32339
32340         Rename module 'visibility'.
32341         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32342         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32343         * doc/gnulib.texi: Update.
32344         * MODULES.html.sh (Misc): Update.
32345         * NEWS: Mention the change.
32346
32347 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32348
32349         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32350         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32351         Eric Blake <ebb9@byu.net> for review.
32352         * MODULES.html.sh: Add lib-msvc-compat.
32353         * doc/gnulib.texi: Link to new section.
32354         * m4/ld-output-def.m4: New file.
32355         * doc/ld-output-def.texi: New file.
32356
32357 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32358
32359         Rename ld-version-script to lib-symbol-versions.  Suggested by
32360         Bruno Haible <bruno@clisp.org>.
32361         * modules/ld-version-script: Renamed to lib-symbol-versions.
32362         * doc/ld-version-script.texi: Fix module name.
32363         * MODULES.html.sh: Add lib-symbol-versions.
32364
32365 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32366
32367         * modules/u64-tests: New file.
32368         * tests/test-u64.c: New file.
32369
32370 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32371
32372         * MODULES.html.sh: Mention u64.
32373         * modules/u64: New module.
32374         * modules/crypto/sha512: Depend on u64 module instead of providing
32375         u64.h.
32376
32377 2009-03-27  Eric Blake  <ebb9@byu.net>
32378
32379         test-strerror: make debugging EAI_SYSTEM easier
32380         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32381         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32382         failure was EAI_SYSTEM.
32383
32384 2009-03-25  Bruno Haible  <bruno@clisp.org>
32385
32386         Fix a problem with --enable-relocatable on Solaris 7.
32387         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32388         since 2008-02-24.
32389
32390 2009-03-25  Eric Blake  <ebb9@byu.net>
32391
32392         test-sockets: avoid gcc warning
32393         * tests/test-sockets.c (main): Silence compiler warning.
32394
32395 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32396
32397         New modules nproc, pthread, contributed by Glen Lenker.
32398
32399         * MODULES.html.sh: Add pthread, nproc.
32400         * lib/nproc.c: New file.
32401         * lib/nproc.h: New file.
32402         * lib/pthread.in.h: New file.
32403         * m4/pthread.m4: New file.
32404         * modules/nproc: New file.
32405         * modules/pthread: New file.
32406
32407 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32408
32409         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32410         New variable.
32411
32412 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32413
32414         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32415         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32416         * tests/test-filevercmp.c: Add tests for backup suffixes.
32417
32418 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32419
32420         * modules/stdlib (Depends-on): Add stdint, needed when defining
32421         struct random_data on, for example, HP-UX 10.20.  Reported by
32422         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32423
32424 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32425
32426         * lib/readline.c (readline): Call fflush on stdout after printing
32427         prompt.
32428
32429 2009-03-20  Bruno Haible  <bruno@clisp.org>
32430
32431         Remove dependency from 'close' module to -lws2_32 on native Windows.
32432         * lib/close-hook.h: New file.
32433         * lib/close-hook.c: New file.
32434         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32435         w32sock.h.
32436         (_gl_close_fd_maybe_socket): Remove function.
32437         (rpl_close): Invoke execute_all_close_hooks instead of
32438         _gl_close_fd_maybe_socket.
32439         * lib/sockets.c: Include close-hook.h, w32sock.h.
32440         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32441         (close_sockets_hook): New variable.
32442         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32443         (gl_sockets_cleanup): Unregister it.
32444         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32445         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32446         * modules/close-hook: New file.
32447         * modules/close (Files): Remove lib/w32sock.h.
32448         (Depends-on): Add close-hook.
32449         (Link): Remove section.
32450         * modules/sockets (Files): Add lib/w32sock.h.
32451         (Depends-on): Add close-hook.
32452         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32453         invocation.
32454         * NEWS: Mention that LIB_CLOSE is gone.
32455
32456 2009-03-23  Eric Blake  <ebb9@byu.net>
32457
32458         signal-tests: test previous patch
32459         * tests/test-signal.c: New file.
32460         * modules/signal-tests: Likewise.
32461
32462         signal.h: always support 'volatile sig_atomic_t'
32463         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32464         (gl_SIGNAL_H_DEFAULTS): Add a default.
32465         * modules/signal (Makefile.am): Substitute if needed.
32466         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32467         users can blindly add volatile.
32468         * doc/posix-headers/signal.texi (signal.h): Document it.
32469         Reported by Matthew Woehlke.
32470
32471 2009-03-23  Jim Meyering  <meyering@redhat.com>
32472
32473         pathmax: PATH_MAX: use pathconf only when available
32474         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32475         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32476         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32477         This avoids a link failure in a PSP cross-compilation environment
32478         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32479
32480         * lib/vasnprintf.c (divide): Fix typo in comment.
32481
32482 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32483
32484         * gnulib-tool (func_filter_filelist): Fix comment.
32485
32486 2009-03-20  Bruno Haible  <bruno@clisp.org>
32487
32488         Make sockets.h self-contained.
32489         * lib/sockets.c: Include sockets.h first.
32490         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32491
32492 2009-03-19  Eric Blake  <ebb9@byu.net>
32493
32494         doc: mention more functions added in cygwin 1.7.0
32495         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32496         addition.
32497         * doc/posix-functions/log2f.texi: Likewise.
32498
32499 2009-03-19  Jim Meyering  <meyering@redhat.com>
32500
32501         fsusage: avoid syntax error due to statement-before-declaration
32502         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32503         after all declarations.  Reported by Matthew Woehlke in
32504         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32505
32506 2009-03-18  Eric Blake  <ebb9@byu.net>
32507
32508         build-aux/compile: sync from automake
32509         * build-aux/compile: New file, from automake.
32510         * config/srclist.txt: Mention build-aux/compile.
32511
32512 2009-03-17  Bruno Haible  <bruno@clisp.org>
32513
32514         * lib/git-merge-changelog.c: Fix typo in comment.
32515         Reported by Reuben Thomas <rrt@sc3d.org>.
32516
32517 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32518
32519         * m4/regex.m4: update and improve help for
32520         --without-included-regex.
32521
32522 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32523
32524         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32525         failure on missing include files.
32526
32527 2009-03-17  Eric Blake  <ebb9@byu.net>
32528
32529         doc: mention more functions added in cygwin 1.7.0
32530         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32531         addition.
32532         * doc/posix-functions/fwscanf.texi: Likewise.
32533         * doc/posix-functions/swprintf.texi: Likewise.
32534         * doc/posix-functions/swscanf.texi: Likewise.
32535         * doc/posix-functions/vfwprintf.texi: Likewise.
32536         * doc/posix-functions/vfwscanf.texi: Likewise.
32537         * doc/posix-functions/vswprintf.texi: Likewise.
32538         * doc/posix-functions/vswscanf.texi: Likewise.
32539         * doc/posix-functions/vwprintf.texi: Likewise.
32540         * doc/posix-functions/vwscanf.texi: Likewise.
32541         * doc/posix-functions/wcscasecmp.texi: Likewise.
32542         * doc/posix-functions/wcsdup.texi: Likewise.
32543         * doc/posix-functions/wcsftime.texi: Likewise.
32544         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32545         * doc/posix-functions/wprintf.texi: Likewise.
32546         * doc/posix-functions/wscanf.texi: Likewise.
32547         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32548
32549 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32550
32551         maint.mk: really add $(AM_MAKEFLAGS)
32552         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32553         was inadvertently omitted in the last commit.
32554         Spotted by Bruno Haible.
32555
32556         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32557         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32558         $(AM_MAKEFLAGS)' rather than plain `make'.
32559
32560         gnulib-tool: execute $MAKE not make
32561         * gnulib-tool: Default $MAKE to 'make'.
32562         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32563         than make.  Initialize $MAKE in the do-autobuild script.
32564
32565         gnulib-tool: use $MAKE not make in generated files
32566         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32567         make, in generated files.  Initialize $MAKE in the do-autobuild
32568         script.
32569
32570         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32571
32572         GNUmakefile: disable parallelism only for multiple, recursive targets
32573         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32574         additions in the Makefile.
32575         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32576         by Automake.
32577         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32578         are listed on the command line and at least one of them is
32579         listed in $(ALL_RECURSIVE_TARGETS).
32580
32581 2009-03-14  Bruno Haible  <bruno@clisp.org>
32582
32583         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32584         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32585         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32586         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32587         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32588         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32589         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32590         unistr/u8-uctomb.
32591         * modules/unistr/u8-strchr (Depends-on): Likewise.
32592         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32593         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32594         unistr/u16-uctomb.
32595         * modules/unistr/u16-strchr (Depends-on): Likewise.
32596         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32597
32598 2009-03-12  Bruno Haible  <bruno@clisp.org>
32599
32600         Work around select() bug on Interix 3.5.
32601         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32602         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32603         * m4/select.m4: New file.
32604         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32605         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32606         * modules/select (Files): Add m4/select.m4.
32607         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32608         * modules/nanosleep (Depends-on): Add select.
32609         * modules/poll (Depends-on): Likewise.
32610         * doc/posix-functions/select.texi: Mention the Interix bug.
32611         Reported by Markus Duft <mduft@gentoo.org>.
32612
32613         * lib/select.c: Renamed from lib/winsock-select.c.
32614         * modules/select (Files): Add lib/select.c, remove
32615         lib/winsock-select.c.
32616         (configure.ac): Update.
32617
32618 2009-03-12  Jim Meyering  <meyering@redhat.com>
32619
32620         avoid gcc warnings about unused macro definitions
32621         * lib/readtokens.c (STREQ): Remove unused definition.
32622         * lib/xmalloc.c (SIZE_MAX): Likewise.
32623         * lib/openat-die.c (N_): Likewise.
32624         * lib/mountlist.c (SIZE_MAX): Remove definition.
32625         Instead, include <stdint.h>.
32626         * lib/readutmp.c: Likewise.
32627         * modules/readutmp (Depends-on): Add stdint.
32628         * modules/mountlist (Depends-on): Add stdint.
32629         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32630
32631 2009-03-10  Bruno Haible  <bruno@clisp.org>
32632
32633         Tests for module 'mbmemcasecoll'.
32634         * modules/mbmemcasecoll-tests: New file.
32635         * tests/test-mbmemcasecoll1.sh: New file.
32636         * tests/test-mbmemcasecoll2.sh: New file.
32637         * tests/test-mbmemcasecoll3.sh: New file.
32638         * tests/test-mbmemcasecoll.c: New file.
32639
32640         New module 'mbmemcasecoll'.
32641         * lib/mbmemcasecoll.h: New file.
32642         * lib/mbmemcasecoll.c: New file.
32643         * modules/mbmemcasecoll: New file.
32644
32645         * tests/test-mbmemcasecmp.h: New file, extracted from
32646         tests/test-mbmemcasecmp.c.
32647         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32648         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32649         (main): Update.
32650         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32651
32652 2009-03-09  Bruno Haible  <bruno@clisp.org>
32653
32654         Tests for module 'mbmemcasecmp'.
32655         * modules/mbmemcasecmp-tests: New file.
32656         * tests/test-mbmemcasecmp1.sh: New file.
32657         * tests/test-mbmemcasecmp2.sh: New file.
32658         * tests/test-mbmemcasecmp3.sh: New file.
32659         * tests/test-mbmemcasecmp.c: New file.
32660
32661         New module 'mbmemcasecmp'.
32662         * lib/mbmemcasecmp.h: New file.
32663         * lib/mbmemcasecmp.c: New file.
32664         * modules/mbmemcasecmp: New file.
32665
32666 2009-03-09  Bruno Haible  <bruno@clisp.org>
32667
32668         Tests for module 'unicase/ulc-casecoll'.
32669         * modules/unicase/ulc-casecoll-tests: New file.
32670         * tests/unicase/test-ulc-casecoll1.sh: New file.
32671         * tests/unicase/test-ulc-casecoll2.sh: New file.
32672         * tests/unicase/test-ulc-casecoll.c: New file.
32673
32674         New module 'unicase/ulc-casecoll'.
32675         * lib/unicase.h (ulc_casecoll): New declaration.
32676         * lib/unicase/ulc-casecoll.c: New file.
32677         * modules/unicase/ulc-casecoll: New file.
32678
32679         New module 'unicase/ulc-casexfrm'.
32680         * lib/unicase.h (ulc_casexfrm): New declaration.
32681         * lib/unicase/ulc-casexfrm.c: New file.
32682         * modules/unicase/ulc-casexfrm: New file.
32683
32684 2009-03-09  Bruno Haible  <bruno@clisp.org>
32685
32686         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32687         invocations.
32688
32689         * m4/mbscasecmp.m4: Remove file.
32690         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32691         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32692
32693         * m4/mbscasestr.m4: Remove file.
32694         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32695         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32696
32697         * m4/mbschr.m4: Remove file.
32698         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32699         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32700
32701         * m4/mbscspn.m4: Remove file.
32702         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32703         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32704
32705         * m4/mbslen.m4: Remove file.
32706         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32707         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32708
32709         * m4/mbsncasecmp.m4: Remove file.
32710         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32711         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32712
32713         * m4/mbsnlen.m4: Remove file.
32714         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32715         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32716
32717         * m4/mbspbrk.m4: Remove file.
32718         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32719         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32720
32721         * m4/mbspcasecmp.m4: Remove file.
32722         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32723         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32724
32725         * m4/mbsrchr.m4: Remove file.
32726         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32727         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32728
32729         * m4/mbssep.m4: Remove file.
32730         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32731         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32732
32733         * m4/mbsspn.m4: Remove file.
32734         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32735         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32736
32737         * m4/mbsstr.m4: Remove file.
32738         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32739         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32740
32741         * m4/mbstok_r.m4: Remove file.
32742         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32743         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32744
32745         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32746
32747         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32748         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32749
32750         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32751
32752 2009-03-08  Bruno Haible  <bruno@clisp.org>
32753
32754         Tests for module 'unicase/ulc-casecmp'.
32755         * modules/unicase/ulc-casecmp-tests: New file.
32756         * tests/unicase/test-ulc-casecmp1.sh: New file.
32757         * tests/unicase/test-ulc-casecmp2.sh: New file.
32758         * tests/unicase/test-ulc-casecmp.c: New file.
32759
32760         New module 'unicase/ulc-casecmp'.
32761         * lib/unicase.h (ulc_casecmp): New declaration.
32762         * lib/unicase/ulc-casecmp.c: New file.
32763         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32764         'const SRC_UNIT *'.
32765         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32766         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32767         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32768         * modules/unicase/ulc-casecmp: New file.
32769
32770         Tests for module 'unicase/u32-is-cased'.
32771         * modules/unicase/u32-is-cased-tests: New file.
32772         * tests/unicase/test-u32-is-cased.c: New file.
32773
32774         Tests for module 'unicase/u16-is-cased'.
32775         * modules/unicase/u16-is-cased-tests: New file.
32776         * tests/unicase/test-u16-is-cased.c: New file.
32777
32778         Tests for module 'unicase/u8-is-cased'.
32779         * modules/unicase/u8-is-cased-tests: New file.
32780         * tests/unicase/test-u8-is-cased.c: New file.
32781         * tests/unicase/test-is-cased.h: New file.
32782
32783         New module 'unicase/u32-is-cased'.
32784         * lib/unicase/u32-is-cased.c: New file.
32785         * modules/unicase/u32-is-cased: New file.
32786
32787         New module 'unicase/u16-is-cased'.
32788         * lib/unicase/u16-is-cased.c: New file.
32789         * modules/unicase/u16-is-cased: New file.
32790
32791         New module 'unicase/u8-is-cased'.
32792         * lib/unicase/u8-is-cased.c: New file.
32793         * lib/unicase/u-is-cased.h: New file.
32794         * modules/unicase/u8-is-cased: New file.
32795
32796         Tests for module 'unicase/u32-is-casefolded'.
32797         * modules/unicase/u32-is-casefolded-tests: New file.
32798         * tests/unicase/test-u32-is-casefolded.c: New file.
32799
32800         Tests for module 'unicase/u16-is-casefolded'.
32801         * modules/unicase/u16-is-casefolded-tests: New file.
32802         * tests/unicase/test-u16-is-casefolded.c: New file.
32803
32804         Tests for module 'unicase/u8-is-casefolded'.
32805         * modules/unicase/u8-is-casefolded-tests: New file.
32806         * tests/unicase/test-u8-is-casefolded.c: New file.
32807         * tests/unicase/test-is-casefolded.h: New file.
32808
32809         New module 'unicase/u32-is-casefolded'.
32810         * lib/unicase/u32-is-casefolded.c: New file.
32811         * modules/unicase/u32-is-casefolded: New file.
32812
32813         New module 'unicase/u16-is-casefolded'.
32814         * lib/unicase/u16-is-casefolded.c: New file.
32815         * modules/unicase/u16-is-casefolded: New file.
32816
32817         New module 'unicase/u8-is-casefolded'.
32818         * lib/unicase/u8-is-casefolded.c: New file.
32819         * modules/unicase/u8-is-casefolded: New file.
32820
32821         Tests for module 'unicase/u32-is-titlecase'.
32822         * modules/unicase/u32-is-titlecase-tests: New file.
32823         * tests/unicase/test-u32-is-titlecase.c: New file.
32824
32825         Tests for module 'unicase/u16-is-titlecase'.
32826         * modules/unicase/u16-is-titlecase-tests: New file.
32827         * tests/unicase/test-u16-is-titlecase.c: New file.
32828
32829         Tests for module 'unicase/u8-is-titlecase'.
32830         * modules/unicase/u8-is-titlecase-tests: New file.
32831         * tests/unicase/test-u8-is-titlecase.c: New file.
32832         * tests/unicase/test-is-titlecase.h: New file.
32833
32834         New module 'unicase/u32-is-titlecase'.
32835         * lib/unicase/u32-is-titlecase.c: New file.
32836         * modules/unicase/u32-is-titlecase: New file.
32837
32838         New module 'unicase/u16-is-titlecase'.
32839         * lib/unicase/u16-is-titlecase.c: New file.
32840         * modules/unicase/u16-is-titlecase: New file.
32841
32842         New module 'unicase/u8-is-titlecase'.
32843         * lib/unicase/u8-is-titlecase.c: New file.
32844         * modules/unicase/u8-is-titlecase: New file.
32845
32846         Tests for module 'unicase/u32-is-lowercase'.
32847         * modules/unicase/u32-is-lowercase-tests: New file.
32848         * tests/unicase/test-u32-is-lowercase.c: New file.
32849
32850         Tests for module 'unicase/u16-is-lowercase'.
32851         * modules/unicase/u16-is-lowercase-tests: New file.
32852         * tests/unicase/test-u16-is-lowercase.c: New file.
32853
32854         Tests for module 'unicase/u8-is-lowercase'.
32855         * modules/unicase/u8-is-lowercase-tests: New file.
32856         * tests/unicase/test-u8-is-lowercase.c: New file.
32857         * tests/unicase/test-is-lowercase.h: New file.
32858
32859         New module 'unicase/u32-is-lowercase'.
32860         * lib/unicase/u32-is-lowercase.c: New file.
32861         * modules/unicase/u32-is-lowercase: New file.
32862
32863         New module 'unicase/u16-is-lowercase'.
32864         * lib/unicase/u16-is-lowercase.c: New file.
32865         * modules/unicase/u16-is-lowercase: New file.
32866
32867         New module 'unicase/u8-is-lowercase'.
32868         * lib/unicase/u8-is-lowercase.c: New file.
32869         * modules/unicase/u8-is-lowercase: New file.
32870
32871         Tests for module 'unicase/u32-is-uppercase'.
32872         * modules/unicase/u32-is-uppercase-tests: New file.
32873         * tests/unicase/test-u32-is-uppercase.c: New file.
32874
32875         Tests for module 'unicase/u16-is-uppercase'.
32876         * modules/unicase/u16-is-uppercase-tests: New file.
32877         * tests/unicase/test-u16-is-uppercase.c: New file.
32878
32879         Tests for module 'unicase/u8-is-uppercase'.
32880         * modules/unicase/u8-is-uppercase-tests: New file.
32881         * tests/unicase/test-u8-is-uppercase.c: New file.
32882         * tests/unicase/test-is-uppercase.h: New file.
32883
32884         New module 'unicase/u32-is-uppercase'.
32885         * lib/unicase/u32-is-uppercase.c: New file.
32886         * modules/unicase/u32-is-uppercase: New file.
32887
32888         New module 'unicase/u16-is-uppercase'.
32889         * lib/unicase/u16-is-uppercase.c: New file.
32890         * modules/unicase/u16-is-uppercase: New file.
32891
32892         New module 'unicase/u8-is-uppercase'.
32893         * lib/unicase/u8-is-uppercase.c: New file.
32894         * modules/unicase/u8-is-uppercase: New file.
32895
32896         New module 'unicase/u32-is-invariant'.
32897         * lib/unicase/u32-is-invariant.c: New file.
32898         * modules/unicase/u32-is-invariant: New file.
32899
32900         New module 'unicase/u16-is-invariant'.
32901         * lib/unicase/u16-is-invariant.c: New file.
32902         * modules/unicase/u16-is-invariant: New file.
32903
32904         New module 'unicase/u8-is-invariant'.
32905         * lib/unicase/u8-is-invariant.c: New file.
32906         * lib/unicase/invariant.h: New file.
32907         * lib/unicase/u-is-invariant.h: New file.
32908         * modules/unicase/u8-is-invariant: New file.
32909
32910         Tests for module 'unicase/u32-casecoll'.
32911         * modules/unicase/u32-casecoll-tests: New file.
32912         * tests/unicase/test-u32-casecoll.c: New file.
32913
32914         Tests for module 'unicase/u16-casecoll'.
32915         * modules/unicase/u16-casecoll-tests: New file.
32916         * tests/unicase/test-u16-casecoll.c: New file.
32917
32918         Tests for module 'unicase/u8-casecoll'.
32919         * modules/unicase/u8-casecoll-tests: New file.
32920         * tests/unicase/test-u8-casecoll.c: New file.
32921
32922         New module 'unicase/u32-casecoll'.
32923         * lib/unicase/u32-casecoll.c: New file.
32924         * modules/unicase/u32-casecoll: New file.
32925
32926         New module 'unicase/u16-casecoll'.
32927         * lib/unicase/u16-casecoll.c: New file.
32928         * modules/unicase/u16-casecoll: New file.
32929
32930         New module 'unicase/u8-casecoll'.
32931         * lib/unicase/u8-casecoll.c: New file.
32932         * lib/unicase/u-casecoll.h: New file.
32933         * modules/unicase/u8-casecoll: New file.
32934
32935         New module 'unicase/u32-casexfrm'.
32936         * lib/unicase/u32-casexfrm.c: New file.
32937         * modules/unicase/u32-casexfrm: New file.
32938
32939         New module 'unicase/u16-casexfrm'.
32940         * lib/unicase/u16-casexfrm.c: New file.
32941         * modules/unicase/u16-casexfrm: New file.
32942
32943         New module 'unicase/u8-casexfrm'.
32944         * lib/unicase/u8-casexfrm.c: New file.
32945         * lib/unicase/u-casexfrm.h: New file.
32946         * modules/unicase/u8-casexfrm: New file.
32947
32948         Tests for module 'unicase/u32-casecmp'.
32949         * modules/unicase/u32-casecmp-tests: New file.
32950         * tests/unicase/test-u32-casecmp.c: New file.
32951
32952         Tests for module 'unicase/u16-casecmp'.
32953         * modules/unicase/u16-casecmp-tests: New file.
32954         * tests/unicase/test-u16-casecmp.c: New file.
32955
32956         Tests for module 'unicase/u8-casecmp'.
32957         * modules/unicase/u8-casecmp-tests: New file.
32958         * tests/unicase/test-u8-casecmp.c: New file.
32959         * tests/unicase/test-casecmp.h: New file.
32960
32961         New module 'unicase/u32-casecmp'.
32962         * lib/unicase/u32-casecmp.c: New file.
32963         * modules/unicase/u32-casecmp: New file.
32964
32965         New module 'unicase/u16-casecmp'.
32966         * lib/unicase/u16-casecmp.c: New file.
32967         * modules/unicase/u16-casecmp: New file.
32968
32969         New module 'unicase/u8-casecmp'.
32970         * lib/unicase/u8-casecmp.c: New file.
32971         * lib/unicase/u-casecmp.h: New file.
32972         * modules/unicase/u8-casecmp: New file.
32973
32974         Tests for module 'unicase/u32-casefold'.
32975         * modules/unicase/u32-casefold-tests: New file.
32976         * tests/unicase/test-u32-casefold.c: New file.
32977
32978         Tests for module 'unicase/u16-casefold'.
32979         * modules/unicase/u16-casefold-tests: New file.
32980         * tests/unicase/test-u16-casefold.c: New file.
32981
32982         Tests for module 'unicase/u8-casefold'.
32983         * modules/unicase/u8-casefold-tests: New file.
32984         * tests/unicase/test-u8-casefold.c: New file.
32985
32986         New module 'unicase/u32-casefold'.
32987         * lib/unicase/u32-casefold.c: New file.
32988         * modules/unicase/u32-casefold: New file.
32989
32990         New module 'unicase/u16-casefold'.
32991         * lib/unicase/u16-casefold.c: New file.
32992         * modules/unicase/u16-casefold: New file.
32993
32994         New module 'unicase/u8-casefold'.
32995         * lib/unicase/u8-casefold.c: New file.
32996         * lib/unicase/u-casefold.h: New file.
32997         * modules/unicase/u8-casefold: New file.
32998
32999         New module 'unicase/tocasefold'.
33000         * lib/unicase/casefold.h: New file.
33001         * lib/unicase/tocasefold.c: New file.
33002         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
33003         * modules/unicase/tocasefold: New file.
33004
33005         Tests for module 'unicase/u32-totitle'.
33006         * modules/unicase/u32-totitle-tests: New file.
33007         * tests/unicase/test-u32-totitle.c: New file.
33008
33009         Tests for module 'unicase/u16-totitle'.
33010         * modules/unicase/u16-totitle-tests: New file.
33011         * tests/unicase/test-u16-totitle.c: New file.
33012
33013         Tests for module 'unicase/u8-totitle'.
33014         * modules/unicase/u8-totitle-tests: New file.
33015         * tests/unicase/test-u8-totitle.c: New file.
33016
33017         New module 'unicase/u32-totitle'.
33018         * lib/unicase/u32-totitle.c: New file.
33019         * modules/unicase/u32-totitle: New file.
33020
33021         New module 'unicase/u16-totitle'.
33022         * lib/unicase/u16-totitle.c: New file.
33023         * modules/unicase/u16-totitle: New file.
33024
33025         New module 'unicase/u8-totitle'.
33026         * lib/unicase/u8-totitle.c: New file.
33027         * lib/unicase/u-totitle.h: New file.
33028         * modules/unicase/u8-totitle: New file.
33029
33030         Tests for module 'unicase/u32-tolower'.
33031         * modules/unicase/u32-tolower-tests: New file.
33032         * tests/unicase/test-u32-tolower.c: New file.
33033
33034         Tests for module 'unicase/u16-tolower'.
33035         * modules/unicase/u16-tolower-tests: New file.
33036         * tests/unicase/test-u16-tolower.c: New file.
33037
33038         Tests for module 'unicase/u8-tolower'.
33039         * modules/unicase/u8-tolower-tests: New file.
33040         * tests/unicase/test-u8-tolower.c: New file.
33041
33042         New module 'unicase/u32-tolower'.
33043         * lib/unicase/u32-tolower.c: New file.
33044         * modules/unicase/u32-tolower: New file.
33045
33046         New module 'unicase/u16-tolower'.
33047         * lib/unicase/u16-tolower.c: New file.
33048         * modules/unicase/u16-tolower: New file.
33049
33050         New module 'unicase/u8-tolower'.
33051         * lib/unicase/u8-tolower.c: New file.
33052         * modules/unicase/u8-tolower: New file.
33053
33054         Tests for module 'unicase/u32-toupper'.
33055         * modules/unicase/u32-toupper-tests: New file.
33056         * tests/unicase/test-u32-toupper.c: New file.
33057
33058         Tests for module 'unicase/u16-toupper'.
33059         * modules/unicase/u16-toupper-tests: New file.
33060         * tests/unicase/test-u16-toupper.c: New file.
33061
33062         Tests for module 'unicase/u8-toupper'.
33063         * modules/unicase/u8-toupper-tests: New file.
33064         * tests/unicase/test-u8-toupper.c: New file.
33065
33066         New module 'unicase/u32-toupper'.
33067         * lib/unicase/u32-toupper.c: New file.
33068         * modules/unicase/u32-toupper: New file.
33069
33070         New module 'unicase/u16-toupper'.
33071         * lib/unicase/u16-toupper.c: New file.
33072         * modules/unicase/u16-toupper: New file.
33073
33074         New module 'unicase/u8-toupper'.
33075         * lib/unicase/u8-toupper.c: New file.
33076         * modules/unicase/u8-toupper: New file.
33077
33078         New module 'unicase/u32-casemap'.
33079         * lib/unicase/u32-casemap.c: New file.
33080         * modules/unicase/u32-casemap: New file.
33081
33082         New module 'unicase/u16-casemap'.
33083         * lib/unicase/u16-casemap.c: New file.
33084         * modules/unicase/u16-casemap: New file.
33085
33086         New module 'unicase/u8-casemap'.
33087         * lib/unicase/unicasemap.h: New file.
33088         * lib/unicase/u8-casemap.c: New file.
33089         * lib/unicase/u-casemap.h: New file.
33090         * modules/unicase/u8-casemap: New file.
33091
33092         New module 'unicase/special-casing'.
33093         * lib/unicase/special-casing.h: New file.
33094         * lib/unicase/special-casing.c: New file.
33095         * lib/unicase/special-casing-table.gperf: New file, generated by
33096         gen-uni-tables.c.
33097         * modules/unicase/special-casing: New file.
33098
33099         Tests for module 'unicase/locale-language'.
33100         * modules/unicase/locale-language-tests: New file.
33101         * tests/unicase/test-locale-language.sh: New file.
33102         * tests/unicase/test-locale-language.c: New file.
33103
33104         New module 'unicase/locale-language'.
33105         * lib/unicase/locale-language.c: New file.
33106         * lib/unicase/locale-languages.gperf: New file.
33107         * modules/unicase/locale-language: New file.
33108
33109         Generate more tables for case conversion and case folding.
33110         * lib/gen-uni-tables.c (SCC_*): New enum items.
33111         (struct special_casing_rule): New type.
33112         (casing_rules, num_casing_rules, allocated_casing_rules): New
33113         variables.
33114         (add_casing_rule, fill_casing_rules): New functions.
33115         (struct casefold_rule): New type.
33116         (casefolding_rules, num_casefolding_rules,
33117         allocated_casefolding_rules): New variables.
33118         (fill_casefolding_rules): New function.
33119         (unicode_casefold): New variable.
33120         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
33121         sort_casing_rules, output_casing_rules): New functions.
33122         (main): Accept to more arguments: SpecialCasing.txt and
33123         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
33124         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
33125         Output mapping for casefolding.
33126
33127         * lib/unicase.h: Include stdbool.h, uninorm.h.
33128         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
33129         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
33130         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
33131         arguments.
33132         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
33133         resultp arguments.
33134         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
33135         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
33136         resultp arguments.
33137         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
33138         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
33139         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
33140         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
33141         declarations.
33142         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
33143
33144 2009-03-08  Bruno Haible  <bruno@clisp.org>
33145
33146         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33147         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
33148         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
33149         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33150
33151 2009-03-07  Bruno Haible  <bruno@clisp.org>
33152
33153         Adjust u*_normcmp, u*_normcoll API.
33154         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33155         u16_normcoll, u32_normcoll): Change failure conventions.
33156         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
33157         errno and return -1.
33158         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33159
33160 2009-03-07  Bruno Haible  <bruno@clisp.org>
33161
33162         Tests for module 'uninorm/u32-normcoll'.
33163         * modules/uninorm/u32-normcoll-tests: New file.
33164         * tests/uninorm/test-u32-normcoll.c: New file.
33165
33166         Tests for module 'uninorm/u16-normcoll'.
33167         * modules/uninorm/u16-normcoll-tests: New file.
33168         * tests/uninorm/test-u16-normcoll.c: New file.
33169
33170         Tests for module 'uninorm/u8-normcoll'.
33171         * modules/uninorm/u8-normcoll-tests: New file.
33172         * tests/uninorm/test-u8-normcoll.c: New file.
33173
33174 2009-03-07  Bruno Haible  <bruno@clisp.org>
33175
33176         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
33177         tests/uninorm/test-u32-normcmp.c.
33178         * tests/uninorm/test-u32-normcmp.c: Include it.
33179         (test_nonascii): New function, extracted from main. Add some more
33180         tests.
33181         (main): Invoke test_ascii and test_nonascii.
33182         * modules/uninorm/u32-normcmp-tests (Files): Add
33183         tests/uninorm/test-u32-normcmp.h.
33184         (Depends-on): Remove uninorm/u32-normcmp.
33185
33186         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
33187         tests/uninorm/test-u16-normcmp.c.
33188         * tests/uninorm/test-u16-normcmp.c: Include it.
33189         (test_nonascii): New function, extracted from main. Add some more
33190         tests.
33191         (main): Invoke test_ascii and test_nonascii.
33192         * modules/uninorm/u16-normcmp-tests (Files): Add
33193         tests/uninorm/test-u16-normcmp.h.
33194         (Depends-on): Remove uninorm/u16-normcmp.
33195
33196         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
33197         tests/uninorm/test-u8-normcmp.c.
33198         * tests/uninorm/test-u8-normcmp.c: Include it.
33199         (test_nonascii): New function, extracted from main. Add some more
33200         tests.
33201         (main): Invoke test_ascii and test_nonascii.
33202         * modules/uninorm/u8-normcmp-tests (Files): Add
33203         tests/uninorm/test-u8-normcmp.h.
33204         (Depends-on): Remove uninorm/u8-normcmp.
33205
33206 2009-03-07  Bruno Haible  <bruno@clisp.org>
33207
33208         New module 'uninorm/u32-normcoll'.
33209         * lib/uninorm/u32-normcoll.c: New file.
33210         * modules/uninorm/u32-normcoll: New file.
33211
33212         New module 'uninorm/u16-normcoll'.
33213         * lib/uninorm/u16-normcoll.c: New file.
33214         * modules/uninorm/u16-normcoll: New file.
33215
33216         New module 'uninorm/u8-normcoll'.
33217         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
33218         declarations.
33219         * lib/uninorm/u8-normcoll.c: New file.
33220         * lib/uninorm/u-normcoll.h: New file.
33221         * modules/uninorm/u8-normcoll: New file.
33222
33223         New module 'uninorm/u32-normxfrm'.
33224         * lib/uninorm/u32-normxfrm.c: New file.
33225         * modules/uninorm/u32-normxfrm: New file.
33226
33227         New module 'uninorm/u16-normxfrm'.
33228         * lib/uninorm/u16-normxfrm.c: New file.
33229         * modules/uninorm/u16-normxfrm: New file.
33230
33231         New module 'uninorm/u8-normxfrm'.
33232         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
33233         declarations.
33234         * lib/uninorm/u8-normxfrm.c: New file.
33235         * lib/uninorm/u-normxfrm.h: New file.
33236         * modules/uninorm/u8-normxfrm: New file.
33237
33238 2009-03-07  Bruno Haible  <bruno@clisp.org>
33239
33240         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
33241         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
33242         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
33243
33244 2009-03-07  Bruno Haible  <bruno@clisp.org>
33245
33246         New module 'memxfrm'.
33247         * lib/memxfrm.h: New file.
33248         * lib/memxfrm.c: New file.
33249         * modules/memxfrm: New file.
33250
33251 2009-03-07  Bruno Haible  <bruno@clisp.org>
33252
33253         New module 'memcmp2'.
33254         * lib/memcmp2.h: New file.
33255         * lib/memcmp2.c: New file.
33256         * modules/memcmp2: New file.
33257
33258 2009-03-07  Bruno Haible  <bruno@clisp.org>
33259
33260         Tests for module 'uninorm/decomposing-form'.
33261         * modules/uninorm/decomposing-form-tests: New file.
33262         * tests/uninorm/test-decomposing-form.c: New file.
33263
33264         New module 'uninorm/decomposing-form'.
33265         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
33266         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
33267         Add 'decomposing_variant' field.
33268         * lib/uninorm/decomposing-form.c: New file.
33269         * lib/uninorm/nfc.c (uninorm_nfc): Update.
33270         * lib/uninorm/nfd.c (uninorm_nfd): Update.
33271         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
33272         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
33273         * modules/uninorm/decomposing-form: New file.
33274         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
33275         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
33276
33277 2009-03-07  Bruno Haible  <bruno@clisp.org>
33278
33279         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
33280         strings.
33281
33282 2009-03-06  Bruno Haible  <bruno@clisp.org>
33283
33284         Tests for module 'uninorm/u32-normcmp'.
33285         * tests/uninorm/test-u32-normcmp.c: New file.
33286         * modules/uninorm/u32-normcmp-tests: New file.
33287
33288         Tests for module 'uninorm/u16-normcmp'.
33289         * tests/uninorm/test-u16-normcmp.c: New file.
33290         * modules/uninorm/u16-normcmp-tests: New file.
33291
33292         Tests for module 'uninorm/u8-normcmp'.
33293         * tests/uninorm/test-u8-normcmp.c: New file.
33294         * modules/uninorm/u8-normcmp-tests: New file.
33295
33296         New module 'uninorm/u32-normcmp'.
33297         * lib/uninorm/u32-normcmp.c: New file.
33298         * modules/uninorm/u32-normcmp: New file.
33299
33300         New module 'uninorm/u16-normcmp'.
33301         * lib/uninorm/u16-normcmp.c: New file.
33302         * modules/uninorm/u16-normcmp: New file.
33303
33304         New module 'uninorm/u8-normcmp'.
33305         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
33306         declarations.
33307         * lib/uninorm/u8-normcmp.c: New file.
33308         * lib/uninorm/u-normcmp.h: New file.
33309         * modules/uninorm/u8-normcmp: New file.
33310
33311 2009-03-06  Bruno Haible  <bruno@clisp.org>
33312
33313         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
33314         Reported by Eric Blake.
33315
33316 2009-03-06  Eric Blake  <ebb9@byu.net>
33317             Bruno Haible  <bruno@clisp.org>
33318
33319         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
33320         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
33321         condition.
33322         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33323         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
33324         condition.
33325         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33326
33327 2009-03-06  Eric Blake  <ebb9@byu.net>
33328
33329         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33330         to avoid compiler warnings.
33331         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33332
33333 2009-03-05  Bruno Haible  <bruno@clisp.org>
33334
33335         * tests/test-ftell.c (main): Disable test beyond end of file on
33336         FreeMiNT.
33337         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33338
33339 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33340
33341         * lib/filevercmp.c: Move hidden files up in ordering.
33342         * tests/test-filevercmp.c: Add tests for hidden files.
33343
33344 2009-03-04  Bruno Haible  <bruno@clisp.org>
33345
33346         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33347         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33348         AM_CFLAGS.
33349         Reported by Simon Josefsson.
33350
33351 2009-03-03  Bruno Haible  <bruno@clisp.org>
33352
33353         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33354         Reported by Simon Josefsson.
33355
33356         * doc/ld-version-script.texi: Update node reference.
33357
33358 2009-03-03  Bruno Haible  <bruno@clisp.org>
33359
33360         * modules/visibility (License): Change to 'unlimited'.
33361         Suggested by Simon Josefsson.
33362
33363 2009-03-03  Jim Meyering  <meyering@redhat.com>
33364
33365         unlinkdir: cannot_unlink_dir may modify process state
33366         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33367         it's neither thread-safe nor appropriate for use in a library.
33368
33369 2009-03-03  Eric Blake  <ebb9@byu.net>
33370
33371         test-closein: silence test under Darwin
33372         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33373         care if it dies from EPIPE or EBADF.
33374
33375 2009-03-03  Bruno Haible  <bruno@clisp.org>
33376
33377         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33378         earlier.
33379         * doc/visibility.texi: Fix @node and @section.
33380
33381 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33382
33383         * doc/gnulib.texi: Link to sections for ld version script and
33384         visibility.
33385         * doc/visibility.texi: Add @node and @section.
33386         * modules/ld-version-script: New module.
33387         * m4/ld-version-script.m4: New file.
33388         * doc/ld-version-script.texi: New file.
33389
33390 2009-03-02  David Lutterkort  <lutter@redhat.com>
33391
33392         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33393         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33394
33395 2009-03-02  Bruno Haible  <bruno@clisp.org>
33396
33397         * doc/visibility.texi: Mention libtool's -export-symbols option.
33398
33399 2009-03-02  Jim Meyering  <meyering@redhat.com>
33400
33401         announce-gen: new option: --no-print-checksums
33402         * build-aux/announce-gen (usage): Describe it.
33403         (print_checksums): Print a newline here, not in the [*] footnote.
33404         (main): Honor it.
33405
33406 2009-03-01  Bruno Haible  <bruno@clisp.org>
33407
33408         Use socklen_t in the native Windows replacements prototypes.
33409         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33410         instead of 'int'.
33411         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33412         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33413         * modules/getsockopt (Depends-on): Add socklen.
33414         * modules/setsockopt (Depends-on): Add socklen.
33415
33416 2009-03-01  Bruno Haible  <bruno@clisp.org>
33417
33418         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33419         least 4.2.
33420
33421 2009-03-01  Eric Blake  <ebb9@byu.net>
33422             Bruno Haible  <bruno@clisp.org>
33423
33424         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33425         error messages.
33426         * lib/wait-process.c (wait_subprocess): Omit error message about
33427         deadly signal sent to the child of termsigp != NULL.
33428
33429 2009-03-01  Eric Blake  <ebb9@byu.net>
33430
33431         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33432
33433 2009-03-01  Bruno Haible  <bruno@clisp.org>
33434
33435         Avoid a gcc warning.
33436         * tests/test-sched.c (b): Make global.
33437         Reported by Eric Blake.
33438
33439 2009-01-19  Martin Lambers  <marlam@marlam.de>
33440
33441         Provide POSIX semantics for socket timeout options on W32.
33442         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33443         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33444         * modules/setsockopt: Depend on sys_time module for struct timeval.
33445         * modules/getsockopt: Depend on sys_time module for struct timeval.
33446
33447 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33448
33449         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33450         __USE_GNU, for consistency with netdb.in.h.
33451         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33452
33453 2009-03-01  Bruno Haible  <bruno@clisp.org>
33454
33455         More support for FreeMiNT.
33456         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33457         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33458
33459 2009-03-01  Bruno Haible  <bruno@clisp.org>
33460
33461         More support for FreeMiNT.
33462         * lib/fpurge.c (fpurge): Correct last commit.
33463         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33464
33465 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33466
33467         Fix unportable awk script in vc-list-files.
33468         * build-aux/vc-list-files: In the replacement awk script, use
33469         substr with a second argument of 1, not zero.
33470         Report by Simon Josefsson.
33471
33472 2009-02-28  Bruno Haible  <bruno@clisp.org>
33473
33474         More support for FreeMiNT.
33475         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33476         to FreeMiNT today.
33477         * lib/fwriting.c (fwriting): Likewise.
33478         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33479
33480 2009-02-28  Bruno Haible  <bruno@clisp.org>
33481
33482         * tests/test-freadseek.c (main): Disable test beyond end of file on
33483         FreeMiNT.
33484         * tests/test-ftello.c (main): Likewise.
33485         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33486
33487 2009-02-28  Bruno Haible  <bruno@clisp.org>
33488
33489         Add tentative support for FreeMiNT.
33490         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33491         * lib/fpurge.c (fpurge): Likewise.
33492         * lib/freadable.c (freadable): Likewise.
33493         * lib/freading.c (freading): Likewise.
33494         * lib/freadptr.c (freadptr): Likewise.
33495         * lib/freadseek.c (freadptrinc): Likewise.
33496         * lib/fseeko.c (rpl_fseeko): Likewise.
33497         * lib/fseterr.c (fseterr): Likewise.
33498         * lib/fwritable.c (fwritable): Likewise.
33499         * lib/fwriting.c (fwriting): Likewise.
33500         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33501         Hourihane.
33502         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33503
33504 2009-02-28  Bruno Haible  <bruno@clisp.org>
33505
33506         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33507         SIGCHLD.
33508         Reported by Jim Meyering.
33509
33510 2009-02-28  Bruno Haible  <bruno@clisp.org>
33511
33512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33513         Mention the results of these tests on various platforms.
33514         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33515         order.
33516         * doc/posix-functions/printf.texi: Likewise.
33517         * doc/posix-functions/snprintf.texi: Likewise.
33518         * doc/posix-functions/sprintf.texi: Likewise.
33519         * doc/posix-functions/vfprintf.texi: Likewise.
33520         * doc/posix-functions/vprintf.texi: Likewise.
33521         * doc/posix-functions/vsnprintf.texi: Likewise.
33522         * doc/posix-functions/vsprintf.texi: Likewise.
33523         * doc/glibc-functions/obstack_printf.texi: Likewise.
33524         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33525
33526 2009-02-28  Bruno Haible  <bruno@clisp.org>
33527
33528         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33529         Reported by Loïc Minier <lool@dooz.org>.
33530
33531 2009-02-27  Bruno Haible  <bruno@clisp.org>
33532
33533         * gnulib-tool (func_import): Make the sed expression used to create the
33534         sed script for updating the .gitignore file POSIX compliant.
33535         Reported by Eric Blake.
33536
33537 2009-02-27  Bruno Haible  <bruno@clisp.org>
33538
33539         * gnulib-tool (sed): Don't alias as "sed --posix".
33540         Reported by Eric Blake.
33541
33542 2009-02-27  Bruno Haible  <bruno@clisp.org>
33543
33544         Avoid test link errors.
33545         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33546         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33547         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33548         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33549         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33550
33551 2009-02-27  Bruno Haible  <bruno@clisp.org>
33552
33553         Avoid spurious "(cached)" in configure output.
33554         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33555         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33556         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33557         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33558         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33559         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33560         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33561         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33562         Reported by Eric Blake.
33563
33564 2009-02-27  Eric Blake  <ebb9@byu.net>
33565
33566         printf: fix regression in previous patch
33567         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33568
33569 2009-02-27  Bruno Haible  <bruno@clisp.org>
33570
33571         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33572         value.
33573         * lib/stdint.in.h: Likewise.
33574         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33575
33576 2009-02-27  Eric Blake  <ebb9@byu.net>
33577
33578         doc: mention more functions added in cygwin 1.7.0
33579         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33580         addition.
33581         * doc/posix-functions/open_wmemstream.texi: Likewise.
33582         * doc/posix-functions/wcsnlen.texi: Likewise.
33583         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33584         * doc/posix-functions/wcstod.texi: Likewise.
33585         * doc/posix-functions/wcstof.texi: Likewise.
33586         * doc/posix-functions/wcstoimax.texi: Likewise.
33587         * doc/posix-functions/wcstok.texi: Likewise.
33588         * doc/posix-functions/wcstoumax.texi: Likewise.
33589
33590         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33591         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33592         * doc/posix-functions/fprintf.texi: Update.
33593         * doc/posix-functions/printf.texi: Update.
33594         * doc/posix-functions/snprintf.texi: Update.
33595         * doc/posix-functions/sprintf.texi: Update.
33596         * doc/posix-functions/vfprintf.texi: Update.
33597         * doc/posix-functions/vprintf.texi: Update.
33598         * doc/posix-functions/vsnprintf.texi: Update.
33599         * doc/posix-functions/vsprintf.texi: Update.
33600         * doc/glibc-functions/obstack_printf.texi: Update.
33601         * doc/glibc-functions/obstack_vprintf.texi: Update.
33602
33603 2009-02-26  Eric Blake  <ebb9@byu.net>
33604
33605         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33606         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33607         compilation bug by using runtime conversion.
33608         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33609         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33610         * modules/ceill-tests (Files): Use nan.h.
33611         * modules/floorl-tests (Files): Likewise.
33612         * modules/frexpl-tests (Files): Likewise.
33613         * modules/isnanl-tests (Files): Likewise.
33614         * modules/ldexpl-tests (Files): Likewise.
33615         * modules/roundl-tests (Files): Likewise.
33616         * modules/truncl-tests (Files): Likewise.
33617         * tests/test-ceill.c (main): Use a working NaN.
33618         * tests/test-floorl.c (main): Likewise.
33619         * tests/test-frexpl.c (main): Likewise.
33620         * tests/test-isnan.c (test_long_double): Likewise.
33621         * tests/test-isnanl.h (main): Likewise.
33622         * tests/test-ldexpl.h (main): Likewise.
33623         * tests/test-roundl.h (main): Likewise.
33624         * tests/test-truncl.h (main): Likewise.
33625         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33626
33627 2009-02-26  Eric Blake  <ebb9@byu.net>
33628             Bruno Haible  <bruno@clisp.org>
33629
33630         Work around a *printf bug with %ls on Solaris.
33631         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33632         precision is specified, sprintf stops converting the wide string
33633         argument when the number of bytes that have been produced by this
33634         conversion equals or exceeds the precision.
33635         * doc/posix-functions/fprintf.texi: Update.
33636         * doc/posix-functions/printf.texi: Update.
33637         * doc/posix-functions/snprintf.texi: Update.
33638         * doc/posix-functions/sprintf.texi: Update.
33639         * doc/posix-functions/vfprintf.texi: Update.
33640         * doc/posix-functions/vprintf.texi: Update.
33641         * doc/posix-functions/vsnprintf.texi: Update.
33642         * doc/posix-functions/vsprintf.texi: Update.
33643         * doc/glibc-functions/obstack_printf.texi: Update.
33644         * doc/glibc-functions/obstack_vprintf.texi: Update.
33645
33646 2009-02-26  Eric Blake  <ebb9@byu.net>
33647
33648         stdlib: favor compiler check of random.h
33649         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33650         to avoid an ObjC random.h installed by Swarm.
33651
33652 2009-02-26  Bruno Haible  <bruno@clisp.org>
33653
33654         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33655         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33656         Reported by Gary V. Vaughan <gary@gnu.org>.
33657
33658 2009-02-26  Bruno Haible  <bruno@clisp.org>
33659
33660         Fix *printf behaviour regarding the %ls directive.
33661         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33662         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33663         NEED_PRINTF_DIRECTIVE_LS.
33664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33665         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33667         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33668         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33669         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33670         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33673         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33675         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33676         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33678         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33679         * doc/posix-functions/fprintf.texi: Update.
33680         * doc/posix-functions/printf.texi: Update.
33681         * doc/posix-functions/snprintf.texi: Update.
33682         * doc/posix-functions/sprintf.texi: Update.
33683         * doc/posix-functions/vfprintf.texi: Update.
33684         * doc/posix-functions/vprintf.texi: Update.
33685         * doc/posix-functions/vsnprintf.texi: Update.
33686         * doc/posix-functions/vsprintf.texi: Update.
33687         * doc/glibc-functions/obstack_printf.texi: Update.
33688         * doc/glibc-functions/obstack_vprintf.texi: Update.
33689         Reported by Eric Blake.
33690
33691 2009-02-25  Bruno Haible  <bruno@clisp.org>
33692
33693         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33694         with known value.
33695         Reported by Gary V. Vaughan <gary@gnu.org>.
33696
33697 2009-02-25  Bruno Haible  <bruno@clisp.org>
33698
33699         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33700         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33701         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33702         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33703         Reported by Gary V. Vaughan <gary@gnu.org>.
33704
33705 2009-02-25  Bruno Haible  <bruno@clisp.org>
33706
33707         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33708         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33709         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33710         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33711         Reported by Gary V. Vaughan <gary@gnu.org>.
33712
33713 2009-02-25  Eric Blake  <ebb9@byu.net>
33714
33715         tests: skip fseek/ftell tests if ungetc is broken
33716         * m4/ungetc.m4: New file.
33717         * modules/fseek-tests: Split test, so ungetc dependency is
33718         separate from rest of test.
33719         * modules/fseeko-tests: Likewise.
33720         * modules/ftell-tests: Likewise.
33721         * modules/ftello-tests: Likewise.
33722         * tests/test-fseek.c (main): Isolate ungetc dependency.
33723         * tests/test-fseeko.c (main): Likewise.
33724         * tests/test-ftell.c (main): Likewise.
33725         * tests/test-ftello.c (main): Likewise.
33726         * tests/test-fseek2.sh: New file.
33727         * tests/test-fseeko2.sh: Likewise.
33728         * tests/test-ftell2.sh: Likewise.
33729         * tests/test-ftello2.sh: Likewise.
33730
33731 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33732
33733         test-getaddrinfo: fix usage of skip return code 77
33734         * tests/test-gettaddrinfo.c: Return skip code 77 only
33735         for first occurance of skip (4x77 is not 77)
33736
33737 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33738
33739         strtod: avoid C99 decl-after-statement
33740         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33741
33742 2009-02-24  Eric Blake  <ebb9@byu.net>
33743
33744         strtod: detect HP-UX 11.31 bug
33745         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33746         Reported by Gary V. Vaughan.
33747
33748 2009-02-23  Bruno Haible  <bruno@clisp.org>
33749
33750         Fix invalid read past end of memory block.
33751         * lib/vasnprintf.c (DCHAR_SET): Define.
33752         (local_wcslen): Define only when needed.
33753         (local_strnlen, local_wcsnlen): New functions.
33754         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33755         directives that involve a conversion ourselves.
33756         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33757         wcsnlen, mbrtowc, wcrtomb.
33758         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33759         * tests/test-vasprintf-posix.c (test_function): Likewise.
33760         * tests/test-snprintf-posix.h (test_function): Likewise.
33761         * tests/test-sprintf-posix.h (test_function): Likewise.
33762         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33763
33764 2009-02-22  Bruno Haible  <bruno@clisp.org>
33765
33766         Implement new clarified decomposition of Hangul syllables.
33767         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33768         of type LTV, return only a pairwise decomposition.
33769         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33770         Likewise.
33771         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33772         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33773         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33774
33775 2009-02-22  Bruno Haible  <bruno@clisp.org>
33776
33777         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33778         zero-length results and shrink excess allocated memory.
33779         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33780         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33781         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33782         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33783         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33784         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33785         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33786         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33787         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33788         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33789         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33790         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33791
33792 2009-02-21  Bruno Haible  <bruno@clisp.org>
33793
33794         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33795         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33796         spaces after a period. Put a space between a macro name and its
33797         argument list. Trivial rewordings.
33798         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33799         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33800         (main): Return 0 explicitly.
33801
33802 2009-02-21  Bruno Haible  <bruno@clisp.org>
33803
33804         Tests for module 'uninorm/filter'.
33805         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33806         * modules/uninorm/filter-tests: New file.
33807
33808         New module 'uninorm/filter'.
33809         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33810         uninorm_filter_flush, uninorm_filter_free): New declarations.
33811         * lib/uninorm/uninorm-filter.c: New file.
33812         * modules/uninorm/filter: New file.
33813
33814 2009-02-21  Bruno Haible  <bruno@clisp.org>
33815
33816         Tests for module 'uninorm/nfkc'.
33817         * tests/uninorm/test-nfkc.c: New file.
33818         * tests/uninorm/test-u8-nfkc.c: New file.
33819         * tests/uninorm/test-u16-nfkc.c: New file.
33820         * tests/uninorm/test-u32-nfkc.c: New file.
33821         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33822         * tests/uninorm/test-u32-nfkc-big.c: New file.
33823         * modules/uninorm/nfkc-tests: New file.
33824
33825         New module 'uninorm/nfkc'.
33826         * lib/uninorm/nfkc.c: New file.
33827         * modules/uninorm/nfkc: New file.
33828
33829         Tests for module 'uninorm/nfkd'.
33830         * tests/uninorm/test-nfkd.c: New file.
33831         * tests/uninorm/test-u8-nfkd.c: New file.
33832         * tests/uninorm/test-u16-nfkd.c: New file.
33833         * tests/uninorm/test-u32-nfkd.c: New file.
33834         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33835         * tests/uninorm/test-u32-nfkd-big.c: New file.
33836         * modules/uninorm/nfkd-tests: New file.
33837
33838         New module 'uninorm/nfkd'.
33839         * lib/uninorm/nfkd.c: New file.
33840         * modules/uninorm/nfkd: New file.
33841
33842         Tests for module 'uninorm/nfc'.
33843         * tests/uninorm/test-nfc.c: New file.
33844         * tests/uninorm/test-u8-nfc.c: New file.
33845         * tests/uninorm/test-u16-nfc.c: New file.
33846         * tests/uninorm/test-u32-nfc.c: New file.
33847         * tests/uninorm/test-u32-nfc-big.sh: New file.
33848         * tests/uninorm/test-u32-nfc-big.c: New file.
33849         * modules/uninorm/nfc-tests: New file.
33850
33851         New module 'uninorm/nfc'.
33852         * lib/uninorm/nfc.c: New file.
33853         * modules/uninorm/nfc: New file.
33854
33855         Tests for module 'uninorm/nfd'.
33856         * tests/uninorm/test-nfd.c: New file.
33857         * tests/uninorm/test-u8-nfd.c: New file.
33858         * tests/uninorm/test-u16-nfd.c: New file.
33859         * tests/uninorm/test-u32-nfd.c: New file.
33860         * tests/uninorm/test-u32-nfd-big.sh: New file.
33861         * tests/uninorm/test-u32-nfd-big.c: New file.
33862         * tests/uninorm/test-u32-normalize-big.h: New file.
33863         * tests/uninorm/test-u32-normalize-big.c: New file.
33864         * tests/uninorm/NormalizationTest.txt: New file, created from
33865         Unicode 5.1.0 NormalizationTest.txt.
33866         * modules/uninorm/nfd-tests: New file.
33867
33868         New module 'uninorm/nfd'.
33869         * lib/uninorm/nfd.c: New file.
33870         * modules/uninorm/nfd: New file.
33871
33872         New module 'uninorm/u32-normalize'.
33873         * lib/uninorm/u32-normalize.c: New file.
33874         * modules/uninorm/u32-normalize: New file.
33875
33876         New module 'uninorm/u16-normalize'.
33877         * lib/uninorm/u16-normalize.c: New file.
33878         * modules/uninorm/u16-normalize: New file.
33879
33880         New module 'uninorm/u8-normalize'.
33881         * lib/uninorm/u8-normalize.c: New file.
33882         * lib/uninorm/normalize-internal.h: New file.
33883         * lib/uninorm/u-normalize-internal.h: New file.
33884         * modules/uninorm/u8-normalize: New file.
33885
33886         New module 'uninorm/decompose-internal'.
33887         * lib/uninorm/decompose-internal.c: New file.
33888         * modules/uninorm/decompose-internal: New file.
33889
33890         Tests for module 'uninorm/composition'.
33891         * tests/uninorm/test-composition.c: New file.
33892         * modules/uninorm/composition-tests: New file.
33893
33894         New module 'uninorm/composition'.
33895         * lib/uninorm/composition.c: New file.
33896         * lib/uninorm/composition-table.gperf: New file, generated by
33897         gen-uni-tables.
33898         * modules/uninorm/composition: New file.
33899
33900         Tests for module 'uninorm/compat-decomposition'.
33901         * tests/uninorm/test-compat-decomposition.c: New file.
33902         * modules/uninorm/compat-decomposition-tests: New file.
33903
33904         New module 'uninorm/compat-decomposition'.
33905         * lib/uninorm/decompose-internal.h: New file.
33906         * lib/uninorm/compat-decomposition.c: New file.
33907         * modules/uninorm/compat-decomposition: New file.
33908
33909         Tests for module 'uninorm/canonical-decomposition'.
33910         * tests/uninorm/test-canonical-decomposition.c: New file.
33911         * modules/uninorm/canonical-decomposition-tests: New file.
33912
33913         New module 'uninorm/canonical-decomposition'.
33914         * lib/uninorm/canonical-decomposition.c: New file.
33915         * modules/uninorm/canonical-decomposition: New file.
33916
33917         Tests for module 'uninorm/decomposition'.
33918         * tests/uninorm/test-decomposition.c: New file.
33919         * modules/uninorm/decomposition-tests: New file.
33920
33921         New module 'uninorm/decomposition'.
33922         * lib/uninorm/decomposition.c: New file.
33923         * modules/uninorm/decomposition: New file.
33924
33925         New module 'uninorm/decomposition-table'.
33926         * lib/uninorm/decomposition-table.h: New file.
33927         * lib/uninorm/decomposition-table.c: New file.
33928         * lib/uninorm/decomposition-table1.h: New file, generated by
33929         gen-uni-tables.
33930         * lib/uninorm/decomposition-table2.h: New file, generated by
33931         gen-uni-tables.
33932         * modules/uninorm/decomposition-table: New file.
33933
33934         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33935         (UC_DECOMP_*): New enumeration items.
33936         (get_decomposition): New function.
33937         (struct decomp_table): New type.
33938         (output_decomposition, output_decomposition_tables): New functions.
33939         (unicode_composition_exclusions): New variable.
33940         (fill_composition_exclusions, debug_output_composition_tables): New
33941         functions.
33942         (main): Accept one more argument. Invoke fill_composition_exclusions.
33943         Output decomposition and composition tables.
33944
33945         New module 'uninorm/base'.
33946         * lib/uninorm.h: New file.
33947         * lib/unictype.h: Update comment.
33948         * modules/uninorm/base: New file.
33949
33950 2009-02-21  David Lutterkort  <lutter@redhat.com>
33951
33952         Tests for module 'safe-alloc'.
33953         * tests/test-safe-alloc.c: New file.
33954         * modules/safe-alloc-tests: New file.
33955
33956         New module 'safe-alloc'.
33957         * lib/safe-alloc.h: New file.
33958         * lib/safe-alloc.c: New file.
33959         * m4/safe-alloc.m4: New file.
33960         * modules/safe-alloc: New file.
33961         * doc/safe-alloc.texi: New file.
33962         * doc/gnulib.texi: Include it.
33963         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33964         safe-alloc.
33965
33966 2009-02-18  Bruno Haible  <bruno@clisp.org>
33967
33968         Fix link error on non-glibc systems.
33969         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33970         variable.
33971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33972
33973 2009-02-18  Jim Meyering  <meyering@redhat.com>
33974
33975         fts: avoid used-uninitialized error due to recent change
33976         * lib/fts.c (fts_read): Guard uses of the new member,
33977         parent->fts_n_dirs_remaining, since it's not relevant for
33978         the parent of a directory specified on the command-line.
33979
33980 2009-02-17  James Youngman  <jay@gnu.org>
33981             Bruno Haible  <bruno@clisp.org>
33982
33983         * m4/include_next.m4: Reformulate comment.
33984
33985 2009-02-16  Jim Meyering  <meyering@redhat.com>
33986
33987         fts: add #if guards so that the fts_lgpl module still builds
33988         * lib/fts.c: Guard just-added hash-table-using parts with
33989         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33990         Reported by Simon Josefsson.
33991
33992 2009-02-15  Bruno Haible  <bruno@clisp.org>
33993
33994         * modules/array-mergesort-tests: New file.
33995         * tests/test-array-mergesort.c: New file.
33996
33997         New module 'array-mergesort'.
33998         * modules/array-mergesort: New file.
33999         * lib/array-mergesort.h: New file.
34000
34001 2009-02-15  Bruno Haible  <bruno@clisp.org>
34002
34003         Fix 2009-02-07 commit.
34004         * lib/gen-uni-tables.c (output_predicate, output_category,
34005         output_combclass, output_bidi_category, output_decimal_digit,
34006         output_digit, output_numeric, output_mirror, output_scripts,
34007         output_ident_category, output_simple_mapping): Fix format directives.
34008         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
34009
34010 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
34011
34012         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
34013         fixes are available from IBM.
34014
34015 2009-02-13  Jim Meyering  <meyering@redhat.com>
34016
34017         fts: arrange not to stat non-directories in more cases
34018         This makes GNU find (when it doesn't need to stat each file)
34019         *much* more efficient at traversing reiserfs file systems.
34020         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
34021         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
34022         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
34023         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
34024         (leaf_optimization_applies): New function.
34025         (LCO_hash, LCO_compare): New helper functions.
34026         (link_count_optimize_ok): New function.
34027         (fts_stat): Initialize new member (if dir).
34028         (fts_read): Decrement parent's fts_n_dirs_remaining count if
34029         we've just stat'ed a directory.  Skip the stat call when possible.
34030         ---
34031         Note this AFS-related exchange:
34032         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
34033         and note find's pioctl call in find/fstype.c.
34034         But that is necessary only if you want to enable the
34035         optimization for AFS, and for now, I don't.
34036
34037         fts: move a function definition "up" (no semantic change)
34038         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
34039         "up" to precede upcoming use of a related function.
34040
34041 2009-02-11  Jim Meyering  <meyering@redhat.com>
34042
34043         fts: correct internal computation of nlinks (optimization-related)
34044         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
34045         whether the current entry is a directory, so don't test it.
34046
34047 2009-02-10  Bruno Haible  <bruno@clisp.org>
34048
34049         Tests for module 'uniwbrk/ulc-wordbreaks'.
34050         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
34051         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
34052         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
34053
34054         Tests for module 'uniwbrk/u32-wordbreaks'.
34055         * modules/uniwbrk/u32-wordbreaks-tests: New file.
34056         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
34057
34058         Tests for module 'uniwbrk/u16-wordbreaks'.
34059         * modules/uniwbrk/u16-wordbreaks-tests: New file.
34060         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
34061
34062         Tests for module 'uniwbrk/u8-wordbreaks'.
34063         * modules/uniwbrk/u8-wordbreaks-tests: New file.
34064         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
34065
34066 2009-02-10  Bruno Haible  <bruno@clisp.org>
34067
34068         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
34069         property.
34070         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
34071         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
34072         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
34073
34074 2009-02-10  Simon Josefsson  <simon@josefsson.org>
34075
34076         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
34077         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
34078
34079 2009-02-10  Bruno Haible  <bruno@clisp.org>
34080
34081         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
34082         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
34083         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
34084         * lib/unilbrk/u8-possible-linebreaks.c: Update.
34085         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
34086         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
34087
34088 2009-02-09  Simon Josefsson  <simon@josefsson.org>
34089
34090         * lib/sockets.h (gl_fd_to_handle): New function.
34091
34092         * tests/test-sockets.c: Call gl_fd_to_handle.
34093
34094 2009-02-09  Bruno Haible  <bruno@clisp.org>
34095
34096         * doc/havelib.texi: Document the conventions on bi-arch systems.
34097
34098 2009-02-08  Bruno Haible  <bruno@clisp.org>
34099
34100         Document the AC_LIB_LINKFLAGS macro.
34101         * doc/havelib.texi: New file, mostly written on 2005-05-24.
34102         * doc/gnulib.texi: Include it.
34103
34104 2009-02-08  Bruno Haible  <bruno@clisp.org>
34105
34106         Fix wrong order of sections, compared to TOC.
34107         * doc/gnulib.texi: Include relocatable-maint.texi after the
34108         "Regular expressions" node, not before.
34109
34110 2009-02-08  Bruno Haible  <bruno@clisp.org>
34111
34112         Tests for module 'unicase/totitle'.
34113         * modules/unicase/totitle-tests: New file.
34114
34115         Tests for module 'unicase/tolower'.
34116         * modules/unicase/tolower-tests: New file.
34117
34118         Tests for module 'unicase/toupper'.
34119         * modules/unicase/toupper-tests: New file.
34120         * tests/unicase/test-mapping-part1.h: New file.
34121         * tests/unicase/test-mapping-part2.h: New file.
34122
34123         New module 'unicase/totitle'.
34124         * modules/unicase/totitle: New file.
34125         * lib/unicase/totitle.c: New file.
34126
34127         New module 'unicase/tolower'.
34128         * modules/unicase/tolower: New file.
34129         * lib/unicase/tolower.c: New file.
34130
34131         New module 'unicase/toupper'.
34132         * modules/unicase/toupper: New file.
34133         * lib/unicase/toupper.c: New file.
34134         * lib/unicase/simple-mapping.h: New file.
34135
34136         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
34137         (mapping_table): New structure.
34138         (output_simple_mapping): New function.
34139         (main): Invoke output_simple_mapping_test and output_simple_mapping.
34140         * modules/gen-uni-tables (Description): Update.
34141         * lib/unicase/toupper.h: New file, automatically generated by
34142         gen-uni-tables.
34143         * lib/unicase/tolower.h: New file, automatically generated by
34144         gen-uni-tables.
34145         * lib/unicase/totitle.h: New file, automatically generated by
34146         gen-uni-tables.
34147         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
34148         gen-uni-tables.
34149         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
34150         gen-uni-tables.
34151         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
34152         gen-uni-tables.
34153
34154         New module 'unicase/base'.
34155         * modules/unicase/base: New file.
34156         * lib/unicase.h: New file.
34157
34158 2009-02-08  Bruno Haible  <bruno@clisp.org>
34159
34160         New module 'uniwbrk/ulc-wordbreaks'.
34161         * modules/uniwbrk/ulc-wordbreaks: New file.
34162         * lib/uniwbrk/ulc-wordbreaks.c: New file.
34163
34164         New module 'uniwbrk/u32-wordbreaks'.
34165         * modules/uniwbrk/u32-wordbreaks: New file.
34166         * lib/uniwbrk/u32-wordbreaks.c: New file.
34167
34168         New module 'uniwbrk/u16-wordbreaks'.
34169         * modules/uniwbrk/u16-wordbreaks: New file.
34170         * lib/uniwbrk/u16-wordbreaks.c: New file.
34171
34172         New module 'uniwbrk/u8-wordbreaks'.
34173         * modules/uniwbrk/u8-wordbreaks: New file.
34174         * lib/uniwbrk/u8-wordbreaks.c: New file.
34175         * lib/uniwbrk/u-wordbreaks.h: New file.
34176
34177         New module 'uniwbrk/table'.
34178         * modules/uniwbrk/table: New file.
34179         * lib/uniwbrk/wbrktable.h: New file.
34180         * lib/uniwbrk/wbrktable.c: New file.
34181
34182         New module 'uniwbrk/wordbreak-property'.
34183         * modules/uniwbrk/wordbreak-property: New file.
34184         * lib/uniwbrk/wordbreak-property.c: New file.
34185
34186         * lib/gen-uni-tables.c (WBP_*): New enum items.
34187         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
34188         (unicode_org_wbp): New variable.
34189         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
34190         New functions.
34191         (wbp_table): New structure.
34192         (output_wbp, output_wbrk_tables): New functions.
34193         (main): Accept additional argument. Invoke fill_org_wbp,
34194         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
34195         output_wbrk_tables.
34196         * modules/gen-uni-tables (Description): Update.
34197         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
34198         gen-uni-tables.
34199
34200         New module 'uniwbrk/base'.
34201         * modules/uniwbrk/base: New file.
34202         * lib/uniwbrk.h: New file.
34203
34204 2009-02-08  Bruno Haible  <bruno@clisp.org>
34205
34206         Update to Unicode 5.1.0.
34207         * lib/gen-uni-tables.c (is_property_alphabetic): Include
34208         U+2185..U+2188.
34209         (is_property_default_ignorable_code_point): Don't include characters
34210         of category Cc or Cs and not-a-characters.
34211         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
34212         U+0D79, U+109E, U+109F, U+A60C.
34213         * lib/unictype/bidi_of.h: Regenerated.
34214         * lib/unictype/blocks.h: Regenerated.
34215         * lib/unictype/categ_C.h: Regenerated.
34216         * lib/unictype/categ_Cf.h: Regenerated.
34217         * lib/unictype/categ_Cn.h: Regenerated.
34218         * lib/unictype/categ_L.h: Regenerated.
34219         * lib/unictype/categ_Ll.h: Regenerated.
34220         * lib/unictype/categ_Lm.h: Regenerated.
34221         * lib/unictype/categ_Lo.h: Regenerated.
34222         * lib/unictype/categ_Lu.h: Regenerated.
34223         * lib/unictype/categ_M.h: Regenerated.
34224         * lib/unictype/categ_Mc.h: Regenerated.
34225         * lib/unictype/categ_Me.h: Regenerated.
34226         * lib/unictype/categ_Mn.h: Regenerated.
34227         * lib/unictype/categ_N.h: Regenerated.
34228         * lib/unictype/categ_Nd.h: Regenerated.
34229         * lib/unictype/categ_Nl.h: Regenerated.
34230         * lib/unictype/categ_No.h: Regenerated.
34231         * lib/unictype/categ_P.h: Regenerated.
34232         * lib/unictype/categ_Pd.h: Regenerated.
34233         * lib/unictype/categ_Pe.h: Regenerated.
34234         * lib/unictype/categ_Pf.h: Regenerated.
34235         * lib/unictype/categ_Pi.h: Regenerated.
34236         * lib/unictype/categ_Po.h: Regenerated.
34237         * lib/unictype/categ_Ps.h: Regenerated.
34238         * lib/unictype/categ_S.h: Regenerated.
34239         * lib/unictype/categ_Sk.h: Regenerated.
34240         * lib/unictype/categ_Sm.h: Regenerated.
34241         * lib/unictype/categ_So.h: Regenerated.
34242         * lib/unictype/categ_of.h: Regenerated.
34243         * lib/unictype/combining.h: Regenerated.
34244         * lib/unictype/ctype_alnum.h: Regenerated.
34245         * lib/unictype/ctype_alpha.h: Regenerated.
34246         * lib/unictype/ctype_graph.h: Regenerated.
34247         * lib/unictype/ctype_lower.h: Regenerated.
34248         * lib/unictype/ctype_print.h: Regenerated.
34249         * lib/unictype/ctype_punct.h: Regenerated.
34250         * lib/unictype/ctype_upper.h: Regenerated.
34251         * lib/unictype/decdigit.h: Regenerated.
34252         * lib/unictype/digit.h: Regenerated.
34253         * lib/unictype/mirror.h: Regenerated.
34254         * lib/unictype/numeric.h: Regenerated.
34255         * lib/unictype/pr_alphabetic.h: Regenerated.
34256         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
34257         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
34258         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
34259         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
34260         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
34261         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
34262         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
34263         * lib/unictype/pr_combining.h: Regenerated.
34264         * lib/unictype/pr_dash.h: Regenerated.
34265         * lib/unictype/pr_decimal_digit.h: Regenerated.
34266         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
34267         * lib/unictype/pr_deprecated.h: Regenerated.
34268         * lib/unictype/pr_diacritic.h: Regenerated.
34269         * lib/unictype/pr_extender.h: Regenerated.
34270         * lib/unictype/pr_format_control.h: Regenerated.
34271         * lib/unictype/pr_grapheme_base.h: Regenerated.
34272         * lib/unictype/pr_grapheme_extend.h: Regenerated.
34273         * lib/unictype/pr_grapheme_link.h: Regenerated.
34274         * lib/unictype/pr_id_continue.h: Regenerated.
34275         * lib/unictype/pr_id_start.h: Regenerated.
34276         * lib/unictype/pr_ideographic.h: Regenerated.
34277         * lib/unictype/pr_ignorable_control.h: Regenerated.
34278         * lib/unictype/pr_lowercase.h: Regenerated.
34279         * lib/unictype/pr_math.h: Regenerated.
34280         * lib/unictype/pr_numeric.h: Regenerated.
34281         * lib/unictype/pr_other_alphabetic.h: Regenerated.
34282         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
34283         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
34284         * lib/unictype/pr_other_id_continue.h: Regenerated.
34285         * lib/unictype/pr_other_lowercase.h: Regenerated.
34286         * lib/unictype/pr_other_math.h: Regenerated.
34287         * lib/unictype/pr_punctuation.h: Regenerated.
34288         * lib/unictype/pr_sentence_terminal.h: Regenerated.
34289         * lib/unictype/pr_soft_dotted.h: Regenerated.
34290         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
34291         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
34292         * lib/unictype/pr_unified_ideograph.h: Regenerated.
34293         * lib/unictype/pr_uppercase.h: Regenerated.
34294         * lib/unictype/pr_xid_continue.h: Regenerated.
34295         * lib/unictype/pr_xid_start.h: Regenerated.
34296         * lib/unictype/pr_zero_width.h: Regenerated.
34297         * lib/unictype/scripts.h: Regenerated.
34298         * lib/unictype/scripts_byname.gperf: Regenerated.
34299         * lib/unictype/sy_java_ident.h: Regenerated.
34300         * lib/unilbrk/lbrkprop1.h: Regenerated.
34301         * lib/unilbrk/lbrkprop2.h: Regenerated.
34302         * tests/unictype/test-categ_C.c: Regenerated.
34303         * tests/unictype/test-categ_Cf.c: Regenerated.
34304         * tests/unictype/test-categ_Cn.c: Regenerated.
34305         * tests/unictype/test-categ_L.c: Regenerated.
34306         * tests/unictype/test-categ_Ll.c: Regenerated.
34307         * tests/unictype/test-categ_Lm.c: Regenerated.
34308         * tests/unictype/test-categ_Lo.c: Regenerated.
34309         * tests/unictype/test-categ_Lu.c: Regenerated.
34310         * tests/unictype/test-categ_M.c: Regenerated.
34311         * tests/unictype/test-categ_Mc.c: Regenerated.
34312         * tests/unictype/test-categ_Me.c: Regenerated.
34313         * tests/unictype/test-categ_Mn.c: Regenerated.
34314         * tests/unictype/test-categ_N.c: Regenerated.
34315         * tests/unictype/test-categ_Nd.c: Regenerated.
34316         * tests/unictype/test-categ_Nl.c: Regenerated.
34317         * tests/unictype/test-categ_No.c: Regenerated.
34318         * tests/unictype/test-categ_P.c: Regenerated.
34319         * tests/unictype/test-categ_Pd.c: Regenerated.
34320         * tests/unictype/test-categ_Pe.c: Regenerated.
34321         * tests/unictype/test-categ_Pf.c: Regenerated.
34322         * tests/unictype/test-categ_Pi.c: Regenerated.
34323         * tests/unictype/test-categ_Po.c: Regenerated.
34324         * tests/unictype/test-categ_Ps.c: Regenerated.
34325         * tests/unictype/test-categ_S.c: Regenerated.
34326         * tests/unictype/test-categ_Sk.c: Regenerated.
34327         * tests/unictype/test-categ_Sm.c: Regenerated.
34328         * tests/unictype/test-categ_So.c: Regenerated.
34329         * tests/unictype/test-ctype_alnum.c: Regenerated.
34330         * tests/unictype/test-ctype_alpha.c: Regenerated.
34331         * tests/unictype/test-ctype_graph.c: Regenerated.
34332         * tests/unictype/test-ctype_lower.c: Regenerated.
34333         * tests/unictype/test-ctype_print.c: Regenerated.
34334         * tests/unictype/test-ctype_punct.c: Regenerated.
34335         * tests/unictype/test-ctype_upper.c: Regenerated.
34336         * tests/unictype/test-decdigit.h: Regenerated.
34337         * tests/unictype/test-digit.h: Regenerated.
34338         * tests/unictype/test-numeric.h: Regenerated.
34339         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34340         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34341         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34342         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34343         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34344         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34345         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34346         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34347         * tests/unictype/test-pr_combining.c: Regenerated.
34348         * tests/unictype/test-pr_dash.c: Regenerated.
34349         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34350         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34351         * tests/unictype/test-pr_deprecated.c: Regenerated.
34352         * tests/unictype/test-pr_diacritic.c: Regenerated.
34353         * tests/unictype/test-pr_extender.c: Regenerated.
34354         * tests/unictype/test-pr_format_control.c: Regenerated.
34355         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34356         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34357         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34358         * tests/unictype/test-pr_id_continue.c: Regenerated.
34359         * tests/unictype/test-pr_id_start.c: Regenerated.
34360         * tests/unictype/test-pr_ideographic.c: Regenerated.
34361         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34362         * tests/unictype/test-pr_lowercase.c: Regenerated.
34363         * tests/unictype/test-pr_math.c: Regenerated.
34364         * tests/unictype/test-pr_numeric.c: Regenerated.
34365         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34366         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34367         Regenerated.
34368         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34369         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34370         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34371         * tests/unictype/test-pr_other_math.c: Regenerated.
34372         * tests/unictype/test-pr_punctuation.c: Regenerated.
34373         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34374         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34375         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34376         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34377         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34378         * tests/unictype/test-pr_uppercase.c: Regenerated.
34379         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34380         * tests/unictype/test-pr_xid_start.c: Regenerated.
34381         * tests/unictype/test-pr_zero_width.c: Regenerated.
34382
34383         Update to Unicode 5.1.0.
34384         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34385         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34386         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34387         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34388         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34389         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34390         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34391         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34392         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34393         (nonspacing_table_ind): Update.
34394         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34395
34396         Update to Unicode 5.1.0.
34397         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34398         code transform.
34399         * lib/uniname/uniname.c (unicode_character_name,
34400         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34401         * lib/uniname/uninames.h: Regenerated.
34402         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34403
34404 2009-02-07  Bruno Haible  <bruno@clisp.org>
34405
34406         Merge gen-ctype and gen-lbrk into a single program.
34407         * lib/gen-uni-tables.c: New file, incorporating
34408         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34409         Add directory prefixes to the names of the generated files.
34410         * lib/unictype/gen-ctype.c: Remove file.
34411         * lib/unilbrk/gen-lbrk.c: Remove file.
34412         * modules/gen-uni-tables: New file.
34413         * modules/unictype/gen-ctype: Remove file.
34414         * modules/unilbrk/gen-lbrk: Remove file.
34415
34416 2009-02-07  Bruno Haible  <bruno@clisp.org>
34417
34418         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34419
34420         New module 'unistr/u32-strcoll'.
34421         * modules/unistr/u32-strcoll: New file.
34422         * lib/unistr/u32-strcoll.c: New file.
34423
34424         New module 'unistr/u16-strcoll'.
34425         * modules/unistr/u16-strcoll: New file.
34426         * lib/unistr/u16-strcoll.c: New file.
34427
34428         New module 'unistr/u8-strcoll'.
34429         * modules/unistr/u8-strcoll: New file.
34430         * lib/unistr/u8-strcoll.c: New file.
34431         * lib/unistr/u-strcoll.h: New file.
34432
34433 2009-02-07  Bruno Haible  <bruno@clisp.org>
34434
34435         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34436         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34437         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34438         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34439         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34440         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34441
34442 2009-02-07  Bruno Haible  <bruno@clisp.org>
34443
34444         Make 64-bit clean.
34445         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34446         output_combclass, output_bidi_category, output_decimal_digit,
34447         output_digit, output_numeric, output_mirror, output_scripts,
34448         output_ident_category): Use proper width specifier in format strings.
34449
34450 2009-02-07  Bruno Haible  <bruno@clisp.org>
34451
34452         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34453         failure behaviour.
34454
34455 2009-02-07  Jim Meyering  <meyering@redhat.com>
34456
34457         regex: avoid compilation failure with upcoming gcc-4.4
34458         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34459         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34460         "... error: integer overflow in preprocessor expression".
34461
34462 2009-02-05  Ben Pfaff  <blp@gnu.org>
34463
34464         Fix link errors on Windows when close module is used.
34465         * modules/close: Add $(LIB_CLOSE) to Link section.
34466         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34467         $(LIB_CLOSE) on Windows.
34468
34469 2009-02-05  Jim Meyering  <meyering@redhat.com>
34470
34471         still avoid unused-parameter warnings, but do it cleanly
34472         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34473         (get_fs_usage): Cast to void instead.
34474         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34475         (dev_from_mount_options, read_file_system_list): Cast to void.
34476         Prompted by Bruno Haible.
34477
34478 2009-02-04  Jim Meyering  <meyering@redhat.com>
34479
34480         fsusage.c: correct copyright year
34481         * lib/fsusage.c: Reflect year in which the change is pushed into
34482
34483         avoid misc. warnings
34484         * lib/fsusage.c (UNUSED_PARAM): Define.
34485         (get_fs_usage): Mark parameter "disk" as unused.
34486         * lib/getugroups.c (getgrent): Use "void" in prototype.
34487         * lib/mountlist.c: Mark unused parameters.
34488         (read_file_system_list): Declare a local with "const".
34489         * lib/nanosleep.c (getnow): Declare static.
34490         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34491
34492         dirfd: set errno upon failure
34493         * lib/dirfd.c: Include <errno.h>.
34494         Set errno to ENOTSUP when returning -1.
34495         * modules/dirfd (Depends-on): Add errno.
34496         Suggested by John Kodis <kodis@comcast.net>.
34497
34498 2009-02-01  Bruno Haible  <bruno@clisp.org>
34499
34500         Don't assume sizeof (long) >= sizeof (void *).
34501         * lib/memcmp.c: Include stdint.h.
34502         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34503         srcp2 to 'const byte *'.
34504         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34505         types to uintptr_t.
34506         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34507         * modules/memcmp (Depends-on): Add stdint.
34508         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34509
34510 2009-01-30  Eric Blake  <ebb9@byu.net>
34511
34512         fix more require-before-expand issues
34513         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34514         expand, AC_PROG_AWK.
34515         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34516
34517 2009-01-28  Eric Blake  <ebb9@byu.net>
34518
34519         version-etc: use consistent URL formatting
34520         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34521         Improve formatting.  Use fputs for string without %.
34522
34523 2009-01-28  Jim Meyering  <meyering@redhat.com>
34524
34525         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34526         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34527         "underquoted definition of NAME" from autoconf-2.59.
34528
34529 2009-01-28  Bruno Haible  <bruno@clisp.org>
34530
34531         * doc/gnulib.texi: Add "Obsolete modules" to index.
34532
34533 2009-01-28  Jim Meyering  <meyering@redhat.com>
34534
34535         useless-if-before-free: recognize more variants
34536         * build-aux/useless-if-before-free: Also recognize e.g.,
34537         if (NULL != p) free (p);
34538
34539 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34540
34541         test-getaddrinfo: skip (don't fail) this test when there's no network
34542         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34543         on the presumption that it means you lack network access.
34544
34545 2009-01-26  Jim Meyering  <meyering@redhat.com>
34546
34547         fflush: avoid warnings on modern systems
34548         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34549         pos and result, into scopes where they're used.
34550
34551 2009-01-26  Eric Blake  <ebb9@byu.net>
34552
34553         Silence warning reintroduced by recent extensions patch.
34554         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34555         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34556         autoconf.
34557
34558         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34559         * m4/00gnulib.m4: New file.
34560         * gnulib-tool (func_get_filelist): Always use it.
34561         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34562         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34563
34564 2009-01-25  Bruno Haible  <bruno@clisp.org>
34565
34566         Make test-quotearg work on MacOS X and AIX.
34567         * tests/test-quotearg.sh: New file.
34568         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34569         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34570         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34571         include <libintl.h>.
34572         (fake_locale): Remove variable.
34573         (gettext, dgettext, dcgettext): Remove functions.
34574         (main): Instead of setting a fake locale, set a real locale. Call
34575         textdomain and bindtextdomain.
34576         * modules/quotearg-tests (Files): Add the new files.
34577         (Depends-on): Add gettext, setenv, unsetenv.
34578         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34579         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34580         Augment TESTS_ENVIRONMENT.
34581
34582 2009-01-25  Bruno Haible  <bruno@clisp.org>
34583
34584         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34585         fr_FR.ISO8859-1 locale on MacOS X.
34586         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34587         ja_JP.eucJP locale on MacOS X.
34588         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34589         zh_CN.GB18030 locale on MacOS X.
34590
34591 2009-01-25  Bruno Haible  <bruno@clisp.org>
34592
34593         Avoid link errors on MacOS X 10.3.
34594         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34595         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34596
34597 2009-01-25  Bruno Haible  <bruno@clisp.org>
34598
34599         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34600         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34601         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34602         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34603         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34604         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34605         posix_spawnattr_init, posix_spawnattr_setsigmask,
34606         posix_spawnattr_setflags, posix_spawnattr_destroy.
34607
34608         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34609         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34610         * modules/execute (Files): Remove m4/posix_spawn.m4.
34611         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34612         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34613         posix_spawnattr_init, posix_spawnattr_setsigmask,
34614         posix_spawnattr_setflags, posix_spawnattr_destroy.
34615
34616 2009-01-25  Bruno Haible  <bruno@clisp.org>
34617
34618         * lib/glthread/threadlib.c: Include <stdlib.h>.
34619
34620 2009-01-25  Bruno Haible  <bruno@clisp.org>
34621
34622         * lib/glthread/threadlib.c (dummy): New declaration.
34623
34624 2009-01-25  Bruno Haible  <bruno@clisp.org>
34625
34626         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34627         multibyte characters also for the GB18030 encoding. Don't crash when
34628         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34629
34630 2009-01-25  Bruno Haible  <bruno@clisp.org>
34631
34632         Avoid redefining 'struct random_data' on OSF/1 5.1.
34633         * lib/stdlib.in.h: Include <random.h> if it exists.
34634         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34635         HAVE_RANDOM_H. Include <random.h> when testing whether
34636         'struct random_data' exists.
34637         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34638
34639 2009-01-25  Bruno Haible  <bruno@clisp.org>
34640
34641         Don't install charset.alias on MacOS X >= 10.3.
34642         * lib/localcharset.c (DARWIN7): New macro.
34643         (get_charset_aliases): Hardcode the result for Darwin7.
34644         * modules/localcharset (install-exec-local): Don't install
34645         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34646
34647 2009-01-25  Bruno Haible  <bruno@clisp.org>
34648
34649         Don't install charset.alias on mingw and Cygwin.
34650         * modules/localcharset (install-exec-local): Don't install
34651         charset.alias on mingw and Cygwin, if the file does not yet exist.
34652         The result for these platforms is hardcoded in localcharset.c.
34653
34654 2009-01-25  Bruno Haible  <bruno@clisp.org>
34655
34656         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34657         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34658         before requiring AC_USE_SYSTEM_EXTENSIONS.
34659
34660 2009-01-25  Jim Meyering  <meyering@redhat.com>
34661
34662         c-strtod: avoid warnings
34663         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34664         "assignment discards qualifiers from pointer target type" warnings.
34665
34666 2009-01-24  Bruno Haible  <bruno@clisp.org>
34667
34668         Add support for non-UTF-8 locales on MacOS X.
34669         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34670         canonical encodings. For Darwin 7 and newer, don't map traditional
34671         encodings to UTF-8.
34672         Reported by Vincent Lefevre <vincent@vinc17.org>
34673         at <http://savannah.gnu.org/bugs/?25235>.
34674
34675 2009-01-24  Bruno Haible  <bruno@clisp.org>
34676
34677         * doc/gnulib.texi (Obsolete modules): New section.
34678         Reported by Mike Frysinger <vapier@gentoo.org>.
34679
34680 2009-01-24  Bruno Haible  <bruno@clisp.org>
34681
34682         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34683         (%.dvi): New rule.
34684
34685 2009-01-24  Bruno Haible  <bruno@clisp.org>
34686
34687         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34688         Reported by Eric Blake.
34689
34690 2009-01-24  Bruno Haible  <bruno@clisp.org>
34691
34692         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34693         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34694         Reported by Gary V. Vaughan <gary@gnu.org>.
34695
34696 2009-01-24  Bruno Haible  <bruno@clisp.org>
34697
34698         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34699
34700 2009-01-23  Bruno Haible  <bruno@clisp.org>
34701
34702         Make c-strtod, c-strtold usable in libraries.
34703         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34704         (C_STRTOD): Call strdup instead of xstrdup.
34705         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34706         * modules/c-strtold (Depends-on): Likewise.
34707         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34708         * NEWS: Mention the change.
34709         Reported by Michael Gold <mgold@ncf.ca>.
34710
34711 2009-01-23  Jim Meyering  <meyering@redhat.com>
34712
34713         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34714         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34715         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34716
34717 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34718
34719         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34720         GNU CoreUtils.
34721         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34722         * modules/version-etc (Description): Update.
34723
34724 2009-01-22  Bruno Haible  <bruno@clisp.org>
34725
34726         Cache the C locale object.
34727         * lib/c-strtod.c (c_locale_cache): New variable.
34728         (c_locale): New function.
34729         (C_STRTOD): Use it, and don't call freelocale.
34730         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34731         Suggested by Paolo Bonzini.
34732
34733 2009-01-21  Bruno Haible  <bruno@clisp.org>
34734
34735         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34736         conditions other than overflow.
34737
34738 2009-01-21  Bruno Haible  <bruno@clisp.org>
34739
34740         * lib/c-strtod.c: Include errno.h.
34741         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34742         value from STRTOD_L and STRTOD.
34743
34744 2009-01-21  Bruno Haible  <bruno@clisp.org>
34745         and Jim Meyering  <meyering@redhat.com>
34746
34747         nanosleep: skip configure test (fail it) for apple universal builds
34748         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34749         universal builds, assume that nanosleep does not work.
34750         * modules/nanosleep (Depends-on): Add multiarch.
34751
34752         mktime: skip configure test (fail it) for apple universal builds
34753         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34754         universal builds, assume that mktime does not work.
34755         * modules/mktime (Depends-on): Add multiarch.
34756
34757 2009-01-21  Eric Blake  <ebb9@byu.net>
34758
34759         multiarch: avoid expand-before-require warning
34760         * modules/multiarch (configure.ac): Require, rather than expand,
34761         gl_MULTIARCH.
34762         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34763         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34764         enforce that all clients require it.  Partial reversion of
34765         2008-12-29 patch.
34766
34767         error: avoid expand-before-require warning
34768         * modules/errno (configure.ac): Require, rather than expand,
34769         gl_HEADER_ERRNO_H.
34770         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34771         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34772         enforce that all clients require it.
34773
34774         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34775         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34776         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34777         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34778
34779 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34780
34781         Revert:
34782         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34783
34784         regex: do not depend on obsolete modules.
34785         * modules/regex: Remove memcmp and memmove.
34786
34787 2009-01-20  Bruno Haible  <bruno@clisp.org>
34788
34789         Make the 'link' module link on Windows NT 4.
34790         * lib/link.c (_WIN32_WINNT): Don't define.
34791         (CreateHardLinkFuncType): New type.
34792         (CreateHardLinkFunc, initialized): New variables.
34793         (initialize): New function.
34794         (link): Invoke CreateHardLink indirectly through the function pointer.
34795
34796 2009-01-20  Bruno Haible  <bruno@clisp.org>
34797
34798         Fix compilation failure on mingw.
34799         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34800
34801 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34802
34803         * doc/c-strtod.texi: Mention a couple of restrictions.
34804
34805 2009-01-20  Jim Meyering  <meyering@redhat.com>
34806
34807         gettimeofday: move more declarations out of functions
34808         * lib/gettimeofday.c: Move extern declarations of tzset and
34809         gmtime out of containing functions.  Prompted by Bruno Haible.
34810
34811 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34812
34813         regex: do not depend on obsolete modules.
34814         * modules/regex: Remove memcmp and memmove.
34815
34816 2009-01-19  Bruno Haible  <bruno@clisp.org>
34817
34818         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34819         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34820         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34821         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34822         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34823
34824 2009-01-19  Bruno Haible  <bruno@clisp.org>
34825
34826         * tests/test-link.c: Include <errno.h>.
34827         (main): Exit with code 77 when a hard link cannot be created due to
34828         the file system.
34829         * tests/test-link.sh: Skip test when a hard link cannot be created due
34830         to the file system.
34831         Suggested by Eric Blake.
34832
34833 2009-01-19  Martin Lambers  <marlam@marlam.de>
34834
34835         * modules/link-tests: New file.
34836         * tests/test-link.sh: New file.
34837         * tests/test-link.c: New file.
34838
34839 2009-01-19  Eric Blake  <ebb9@byu.net>
34840
34841         doc: mention another function added in cygwin 1.7.0
34842         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34843         Another new function in cygwin 1.7.
34844
34845 2009-01-19  Bruno Haible  <bruno@clisp.org>
34846
34847         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34848         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34849         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34850         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34851         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34852         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34853         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34854         * m4/md4.m4 (gl_MD4): Likewise.
34855         * m4/md5.m4 (gl_MD5): Likewise.
34856         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34857         * m4/sha1.m4 (gl_SHA1): Likewise.
34858         * m4/sha256.m4 (gl_SHA256): Likewise.
34859         * m4/sha512.m4 (gl_SHA512): Likewise.
34860
34861 2009-01-19  Bruno Haible  <bruno@clisp.org>
34862
34863         * modules/uniname/uniname-tests (Depends-on): Add progname.
34864         * tests/uniname/test-uninames.c: Include progname.h.
34865         (main): Call set_program_name.
34866
34867         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34868         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34869         (main): Call set_program_name.
34870
34871         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34872         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34873         (main): Call set_program_name.
34874
34875         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34876         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34877         (main): Call set_program_name.
34878
34879         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34880         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34881         (main): Call set_program_name.
34882
34883         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34884         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34885         (main): Call set_program_name.
34886
34887         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34888         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34889         (main): Call set_program_name.
34890
34891         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34892         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34893         (main): Call set_program_name.
34894
34895         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34896         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34897         (main): Call set_program_name.
34898
34899 2009-01-19  Eric Blake  <ebb9@byu.net>
34900
34901         test-unistd: test previous patch
34902         * tests/test-unistd.c: Test *_FILENO macros.
34903
34904         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34905         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34906         Guarantee a definition.
34907         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34908         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34909         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34910         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34911         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34912         Likewise.
34913         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34914         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34915         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34916         Likewise.
34917         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34918         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34919         (STDERR_FILENO): Likewise.
34920         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34921         (STDERR_FILENO): Likewise.
34922         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34923         (STDERR_FILENO): Likewise.
34924         Reported by Elbert Pol.
34925
34926 2009-01-19  Eric Blake  <ebb9@byu.net>
34927
34928         doc: mention more functions added in cygwin 1.7.0
34929         * doc/posix-functions/abort.texi (abort): Update wording related
34930         to cygwin.
34931         * doc/posix-functions/daylight.texi (daylight): Likewise.
34932         * doc/posix-functions/optarg.texi (optarg): Likewise.
34933         * doc/posix-functions/optarg.texi (opterr): Likewise.
34934         * doc/posix-functions/optarg.texi (optind): Likewise.
34935         * doc/posix-functions/optarg.texi (optopt): Likewise.
34936         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34937         worked in 1.5.x, and was withdrawn in 1.7.
34938         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34939         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34940         cygwin versions.
34941         * doc/posix-functions/perror.texi (perror): Likewise.
34942         * doc/posix-functions/printf.texi (printf): Likewise.
34943         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34944         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34945         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34946         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34947         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34948         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34949         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34950         Likewise.
34951         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34952         Likewise.
34953         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34954         this function.
34955         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34956         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34957         Likewise.
34958         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34959         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34960         * doc/posix-functions/confstr.texi (confstr): Likewise.
34961         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34962         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34963         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34964         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34965         * doc/posix-functions/fputws.texi (fputws): Likewise.
34966         * doc/posix-functions/fwide.texi (fwide): Likewise.
34967         * doc/posix-functions/getwc.texi (getwc): Likewise.
34968         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34969         * doc/posix-functions/putwc.texi (putwc): Likewise.
34970         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34971         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34972         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34973         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34974         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34975         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34976         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34977         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34978         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34979         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34980         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34981
34982 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34983
34984         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34985         * lib/ioctl.c: Include <sys/ioctl.h>.
34986
34987 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34988
34989         * modules/getdate-tests (Depends-on): Add progname.
34990         * tests/test-getdate.c: Use progname module, to avoid link errors
34991         on non-glibc systems.
34992
34993 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34994
34995         * modules/filenamecat-tests (Depends-on): Add progname.
34996         * modules/fstrcmp-tests (Depends-on): Likewise.
34997
34998         * tests/test-filenamecat.c: Use progname module, to avoid link
34999         errors on non-glibc systems.
35000         * tests/test-fstrcmp.c: Likewise.
35001
35002 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35003
35004         gettimeofday: avoid warning: nested extern declaration of 'localtime'
35005         * lib/gettimeofday.c: Move extern declaration out of function.
35006
35007 2009-01-18  Bruno Haible  <bruno@clisp.org>
35008
35009         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
35010         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
35011         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
35012
35013 2009-01-18  Bruno Haible  <bruno@clisp.org>
35014
35015         * lib/strftime.c (MEMPCPY): Remove unused macro.
35016         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
35017
35018 2009-01-18  Martin Lambers  <marlam@marlam.de>
35019
35020         New module 'link'.
35021         * lib/unistd.in.h (link): New declaration.
35022         * lib/link.c: New file.
35023         * m4/link.m4: New file.
35024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
35025         HAVE_LINK.
35026         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
35027         * modules/link: New file.
35028         * doc/posix-functions/link.texi: Mention the new module.
35029
35030 2009-01-18  Bruno Haible  <bruno@clisp.org>
35031
35032         * tests/test-avltree_list.c (main): Call set_program_name.
35033         * tests/test-avltree_oset.c (main): Likewise.
35034         * tests/test-obstack-printf.c: Include progname.h.
35035         (main): Call set_program_name.
35036         * tests/test-quotearg.c: Include progname.h.
35037         (main): Call set_program_name.
35038         * tests/test-xmemdup0.c: Include progname.h.
35039         (main): Call set_program_name.
35040
35041 2009-01-18  Bruno Haible  <bruno@clisp.org>
35042
35043         New module 'alphasort'.
35044         * lib/dirent.in.h (alphasort): New declaration.
35045         * lib/alphasort.c: New file, from glibc with modifications.
35046         * m4/alphasort.m4: New file.
35047         * modules/alphasort: New file.
35048         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
35049         HAVE_ALPHASORT.
35050         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
35051         HAVE_ALPHASORT.
35052         * doc/posix-functions/alphasort.texi: Mention the new module and the
35053         portability problems.
35054
35055 2009-01-18  Bruno Haible  <bruno@clisp.org>
35056
35057         New module 'scandir'.
35058         * lib/dirent.in.h (scandir): New declaration.
35059         * lib/scandir.c: New file, from glibc with modifications.
35060         * m4/scandir.m4: New file.
35061         * modules/scandir: New file.
35062         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
35063         HAVE_SCANDIR.
35064         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
35065         HAVE_SCANDIR.
35066         * doc/posix-functions/scandir.texi: Mention the new module and the
35067         portability problems.
35068
35069 2009-01-17  Bruno Haible  <bruno@clisp.org>
35070
35071         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
35072         Update documentation.
35073         (func_remove_suffix): Escape all dots in the suffix. Update
35074         documentation.
35075         (func_filter_filelist): Update documentation.
35076         Reported by Ralf Wildenhues.
35077
35078 2009-01-17  Bruno Haible  <bruno@clisp.org>
35079
35080         * modules/dprintf-posix-tests: New file.
35081         * tests/test-dprintf-posix.sh: New file.
35082         * tests/test-dprintf-posix.c: New file.
35083
35084         New modules 'dprintf', 'dprintf-posix'.
35085         * lib/stdio.in.h (dprintf): New declaration.
35086         * lib/dprintf.c: New file.
35087         * m4/dprintf.m4: New file.
35088         * m4/dprintf-posix.m4: New file.
35089         * modules/dprintf: New file.
35090         * modules/dprintf-posix: New file.
35091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
35092         HAVE_DPRINTF, REPLACE_DPRINTF.
35093         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
35094         HAVE_DPRINTF, REPLACE_DPRINTF.
35095         * doc/posix-functions/dprintf.texi: Mention the new modules.
35096
35097 2009-01-17  Bruno Haible  <bruno@clisp.org>
35098
35099         * modules/vdprintf-posix-tests: New file.
35100         * tests/test-vdprintf-posix.sh: New file.
35101         * tests/test-vdprintf-posix.c: New file.
35102
35103         New modules 'vdprintf', 'vdprintf-posix'.
35104         * lib/stdio.in.h (vdprintf): New declaration.
35105         * lib/vdprintf.c: New file.
35106         * m4/vdprintf.m4: New file.
35107         * m4/vdprintf-posix.m4: New file.
35108         * modules/vdprintf: New file.
35109         * modules/vdprintf-posix: New file.
35110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
35111         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35112         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
35113         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35114         * doc/posix-functions/vdprintf.texi: Mention the new modules.
35115
35116 2009-01-17  Bruno Haible  <bruno@clisp.org>
35117
35118         Fix replacement of fopen on mingw.
35119         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
35120         mingw.
35121
35122 2009-01-17  Bruno Haible  <bruno@clisp.org>
35123
35124         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
35125         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
35126
35127 2009-01-17  Bruno Haible  <bruno@clisp.org>
35128
35129         Avoid test-fflush2.sh failure on mingw.
35130         * tests/test-fflush2.c: Include binary-io.h.
35131         (main): Put standard input into binary mode.
35132         * modules/fflush-tests (Depends-on): Add binary-io.
35133
35134 2009-01-17  Bruno Haible  <bruno@clisp.org>
35135
35136         * lib/wchar.in.h: In another particular situation, include only the
35137         system's <wchar.h> file.
35138         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
35139         Reported by Albert Chin-A-Young <china@thewrittenword.com>
35140         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
35141
35142 2009-01-17  Bruno Haible  <bruno@clisp.org>
35143
35144         Support for stripping executables in --enable-relocatable.
35145         * build-aux/install-reloc: Expect one more argument, or an environment
35146         variable RELOC_STRIP_PROG. If set, strip the destination program and
35147         its wrapper.
35148         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
35149         RELOC_STRIP_PROG.
35150         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
35151         to set RELOCATABLE_STRIP.
35152         * NEWS: Mention the new Makefile requirement.
35153
35154 2009-01-17  Bruno Haible  <bruno@clisp.org>
35155
35156         * build-aux/install-reloc: Remove debugging information left over by
35157         C compiler on MacOS X.
35158
35159 2009-01-17  Bruno Haible  <bruno@clisp.org>
35160
35161         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
35162         * lib/progreloc.c (find_executable): Fix type of pointer passed to
35163         _NSGetExecutablePath.
35164
35165 2009-01-16  Jim Meyering  <meyering@redhat.com>
35166
35167         strerror: avoid warnings about discarding "const"
35168         * lib/strerror.c (rpl_strerror): Instead of returning a const
35169         string from each and every "case", use a variable, and add a single
35170         cast after the switch.
35171
35172 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
35173
35174         * lib/arpa_inet.in.h: Add extern "C" block for C++.
35175
35176 2009-01-16  Bruno Haible  <bruno@clisp.org>
35177
35178         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
35179         array initializer syntax that also works in C++ mode.
35180         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35181
35182 2009-01-16  Jim Meyering  <meyering@redhat.com>
35183
35184         poll: suppress a warning
35185         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
35186         to ignore "...unsigned expression < 0 is always false" warnings.
35187
35188 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
35189
35190         poll: remove declarations of unused variables
35191         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
35192         sockbuf and optlen.
35193
35194 2009-01-15  Bruno Haible  <bruno@clisp.org>
35195
35196         Make fflush-after-ungetc POSIX compliant on BSD systems.
35197         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
35198         (clear_ungetc_buffer): Implement also for other systems.
35199         (rpl_fflush): On glibc systems, invoke
35200         clear_ungetc_buffer_preserving_position. Otherwise, invoke
35201         clear_ungetc_buffer after fetching the stream's position, not before.
35202
35203 2009-01-15  Bruno Haible  <bruno@clisp.org>
35204
35205         Make fflush-after-ungetc POSIX compliant on glibc systems.
35206         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
35207         after ungetc.
35208         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
35209         (rpl_fflush): On glibc systems, simply call the system's fflush
35210         function after clearing the ungetc buffer.
35211         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
35212         Instead, lseek only to the end of file, then use the system's fseeko
35213         for the rest. On glibc systems, reset the EOF indicator bit.
35214
35215 2009-01-15  Jim Meyering  <meyering@redhat.com>
35216
35217         openmp.m4: revert quote-adding change, for portability to older autoconf
35218         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
35219         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
35220         Simon Josefsson noticed the problem when using autoconf-2.61.
35221
35222 2009-01-15  Bruno Haible  <bruno@clisp.org>
35223
35224         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
35225         * tests/test-fflush2.c (ASSERT): Always fail.
35226         (main): Add two tests for fflush() after ungetc(), taking into account
35227         the Austin Group's clarification.
35228         Suggested by Eric Blake.
35229
35230 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
35231
35232         mktime.m4: remove K&R-style function prototypes
35233         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
35234         for the Sun C++ compiler.
35235
35236 2009-01-14  Bruno Haible  <bruno@clisp.org>
35237
35238         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
35239         while including <wchar.h>.
35240         * lib/wchar.in.h: In two particular situations on HP-UX, include only
35241         the system's <wchar.h> file.
35242         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35243
35244 2009-01-14  Bruno Haible  <bruno@clisp.org>
35245
35246         * m4/csharp.m4: Don't mention gettext on the serial number line.
35247         * m4/csharpexec.m4: Likewise.
35248         * m4/eaccess.m4: Likewise.
35249         * m4/javaexec.m4: Likewise.
35250         * m4/sig_atomic_t.m4: Likewise.
35251         * m4/tmpdir.m4: Likewise.
35252         * m4/intldir.m4: Bump gettext version.
35253         * m4/lib-ld.m4: Likewise.
35254
35255 2009-01-14  Bruno Haible  <bruno@clisp.org>
35256
35257         * lib/progname.c (set_program_name): Add more comments.
35258         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35259
35260 2009-01-14  Simon Josefsson  <simon@josefsson.org>
35261
35262         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
35263         were sys/stat.h does not define it.
35264
35265 2009-01-14  Jim Meyering  <meyering@redhat.com>
35266
35267         many *.m4 files: improve m4 quoting
35268         99% of this change was performed by running the following commands:
35269         git ls-files | grep '\.m4$' | xargs perl -pi \
35270           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
35271           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35272           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35273           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
35274         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
35275         The remainder were to add Copyright dates, increment serial numbers,
35276         undo some changes in comments, exclude m4/intl.m4, and add quotes
35277         around the "1" in ",1" where the unusual spacing prohibited the
35278         above regexps from doing the job.  For more details, see
35279         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
35280         * m4/acl.m4: Modified.
35281         * m4/afs.m4: Likewise.
35282         * m4/alloca.m4: Likewise.
35283         * m4/argp.m4: Likewise.
35284         * m4/argz.m4: Likewise.
35285         * m4/atexit.m4: Likewise.
35286         * m4/bison-i18n.m4: Likewise.
35287         * m4/bison.m4: Likewise.
35288         * m4/byteswap.m4: Likewise.
35289         * m4/c-stack.m4: Likewise.
35290         * m4/c-strtod.m4: Likewise.
35291         * m4/calloc.m4: Likewise.
35292         * m4/canonicalize-lgpl.m4: Likewise.
35293         * m4/chown.m4: Likewise.
35294         * m4/clock_time.m4: Likewise.
35295         * m4/codeset.m4: Likewise.
35296         * m4/copy-file.m4: Likewise.
35297         * m4/csharp.m4: Likewise.
35298         * m4/csharpcomp.m4: Likewise.
35299         * m4/csharpexec.m4: Likewise.
35300         * m4/d-ino.m4: Likewise.
35301         * m4/d-type.m4: Likewise.
35302         * m4/dirfd.m4: Likewise.
35303         * m4/double-slash-root.m4: Likewise.
35304         * m4/eaccess.m4: Likewise.
35305         * m4/eealloc.m4: Likewise.
35306         * m4/environ.m4: Likewise.
35307         * m4/errno_h.m4: Likewise.
35308         * m4/euidaccess.m4: Likewise.
35309         * m4/execute.m4: Likewise.
35310         * m4/fatal-signal.m4: Likewise.
35311         * m4/fchdir.m4: Likewise.
35312         * m4/fcntl_h.m4: Likewise.
35313         * m4/fileblocks.m4: Likewise.
35314         * m4/filenamecat.m4: Likewise.
35315         * m4/findprog.m4: Likewise.
35316         * m4/flexmember.m4: Likewise.
35317         * m4/fnmatch.m4: Likewise.
35318         * m4/fopen.m4: Likewise.
35319         * m4/fpending.m4: Likewise.
35320         * m4/fprintf-posix.m4: Likewise.
35321         * m4/free.m4: Likewise.
35322         * m4/frexp.m4: Likewise.
35323         * m4/frexpl.m4: Likewise.
35324         * m4/fsusage.m4: Likewise.
35325         * m4/ftruncate.m4: Likewise.
35326         * m4/gc-camellia.m4: Likewise.
35327         * m4/gc-random.m4: Likewise.
35328         * m4/gc.m4: Likewise.
35329         * m4/getaddrinfo.m4: Likewise.
35330         * m4/getcwd-abort-bug.m4: Likewise.
35331         * m4/getcwd-path-max.m4: Likewise.
35332         * m4/getdate.m4: Likewise.
35333         * m4/getdomainname.m4: Likewise.
35334         * m4/getgroups.m4: Likewise.
35335         * m4/gethostname.m4: Likewise.
35336         * m4/gethrxtime.m4: Likewise.
35337         * m4/getline.m4: Likewise.
35338         * m4/getloadavg.m4: Likewise.
35339         * m4/getndelim2.m4: Likewise.
35340         * m4/getpass.m4: Likewise.
35341         * m4/gettext.m4: Likewise.
35342         * m4/gettime.m4: Likewise.
35343         * m4/gettimeofday.m4: Likewise.
35344         * m4/gnulib-common.m4: Likewise.
35345         * m4/group-member.m4: Likewise.
35346         * m4/host-os.m4: Likewise.
35347         * m4/iconv.m4: Likewise.
35348         * m4/iconv_open.m4: Likewise.
35349         * m4/inet_ntop.m4: Likewise.
35350         * m4/inet_pton.m4: Likewise.
35351         * m4/inline.m4: Likewise.
35352         * m4/intldir.m4: Likewise.
35353         * m4/intlmacosx.m4: Likewise.
35354         * m4/intmax.m4: Likewise.
35355         * m4/intmax_t.m4: Likewise.
35356         * m4/inttypes.m4: Likewise.
35357         * m4/inttypes_h.m4: Likewise.
35358         * m4/inttypes-pri.m4: Likewise.
35359         * m4/isapipe.m4: Likewise.
35360         * m4/isnand.m4: Likewise.
35361         * m4/isnanf.m4: Likewise.
35362         * m4/isnanl.m4: Likewise.
35363         * m4/javacomp.m4: Likewise.
35364         * m4/javaexec.m4: Likewise.
35365         * m4/jm-winsz1.m4: Likewise.
35366         * m4/jm-winsz2.m4: Likewise.
35367         * m4/lchown.m4: Likewise.
35368         * m4/lcmessage.m4: Likewise.
35369         * m4/ldexpl.m4: Likewise.
35370         * m4/lib-ld.m4: Likewise.
35371         * m4/lib-link.m4: Likewise.
35372         * m4/libsigsegv.m4: Likewise.
35373         * m4/link-follow.m4: Likewise.
35374         * m4/localcharset.m4: Likewise.
35375         * m4/locale-fr.m4: Likewise.
35376         * m4/locale-ja.m4: Likewise.
35377         * m4/locale-tr.m4: Likewise.
35378         * m4/locale-zh.m4: Likewise.
35379         * m4/lock.m4: Likewise.
35380         * m4/longlong.m4: Likewise.
35381         * m4/ls-mntd-fs.m4: Likewise.
35382         * m4/lstat.m4: Likewise.
35383         * m4/malloc.m4: Likewise.
35384         * m4/mathl.m4: Likewise.
35385         * m4/mbrtowc.m4: Likewise.
35386         * m4/mbstate_t.m4: Likewise.
35387         * m4/mbswidth.m4: Likewise.
35388         * m4/memchr.m4: Likewise.
35389         * m4/memcmp.m4: Likewise.
35390         * m4/memcpy.m4: Likewise.
35391         * m4/memmem.m4: Likewise.
35392         * m4/memmove.m4: Likewise.
35393         * m4/mempcpy.m4: Likewise.
35394         * m4/memrchr.m4: Likewise.
35395         * m4/memset.m4: Likewise.
35396         * m4/minmax.m4: Likewise.
35397         * m4/mkdir-slash.m4: Likewise.
35398         * m4/mkdtemp.m4: Likewise.
35399         * m4/mktime.m4: Likewise.
35400         * m4/mmap-anon.m4: Likewise.
35401         * m4/mountlist.m4: Likewise.
35402         * m4/nanosleep.m4: Likewise.
35403         * m4/nls.m4: Likewise.
35404         * m4/nocrash.m4: Likewise.
35405         * m4/open.m4: Likewise.
35406         * m4/openat.m4: Likewise.
35407         * m4/openmp.m4: Likewise.
35408         * m4/pathmax.m4: Likewise.
35409         * m4/perl.m4: Likewise.
35410         * m4/physmem.m4: Likewise.
35411         * m4/pipe.m4: Likewise.
35412         * m4/po.m4: Likewise.
35413         * m4/poll.m4: Likewise.
35414         * m4/posixtm.m4: Likewise.
35415         * m4/posixver.m4: Likewise.
35416         * m4/printf-frexp.m4: Likewise.
35417         * m4/printf-frexpl.m4: Likewise.
35418         * m4/printf-posix.m4: Likewise.
35419         * m4/printf-posix-rpl.m4: Likewise.
35420         * m4/printf.m4: Likewise.
35421         * m4/progtest.m4: Likewise.
35422         * m4/putenv.m4: Likewise.
35423         * m4/readline.m4: Likewise.
35424         * m4/readlink.m4: Likewise.
35425         * m4/readutmp.m4: Likewise.
35426         * m4/realloc.m4: Likewise.
35427         * m4/regex.m4: Likewise.
35428         * m4/relocatable.m4: Likewise.
35429         * m4/relocatable-lib.m4: Likewise.
35430         * m4/rename-dest-slash.m4: Likewise.
35431         * m4/rename.m4: Likewise.
35432         * m4/rmdir-errno.m4: Likewise.
35433         * m4/rmdir.m4: Likewise.
35434         * m4/roundf.m4: Likewise.
35435         * m4/roundl.m4: Likewise.
35436         * m4/rpmatch.m4: Likewise.
35437         * m4/save-cwd.m4: Likewise.
35438         * m4/selinux-selinux-h.m4: Likewise.
35439         * m4/setenv.m4: Likewise.
35440         * m4/settime.m4: Likewise.
35441         * m4/sig2str.m4: Likewise.
35442         * m4/sig_atomic_t.m4: Likewise.
35443         * m4/signalblocking.m4: Likewise.
35444         * m4/signbit.m4: Likewise.
35445         * m4/sigpipe.m4: Likewise.
35446         * m4/sockets.m4: Likewise.
35447         * m4/sockpfaf.m4: Likewise.
35448         * m4/st_dm_mode.m4: Likewise.
35449         * m4/stat-time.m4: Likewise.
35450         * m4/stdbool.m4: Likewise.
35451         * m4/stdint.m4: Likewise.
35452         * m4/stdint_h.m4: Likewise.
35453         * m4/stpcpy.m4: Likewise.
35454         * m4/stpncpy.m4: Likewise.
35455         * m4/strcase.m4: Likewise.
35456         * m4/strchrnul.m4: Likewise.
35457         * m4/strcspn.m4: Likewise.
35458         * m4/strdup.m4: Likewise.
35459         * m4/strftime.m4: Likewise.
35460         * m4/strndup.m4: Likewise.
35461         * m4/strnlen.m4: Likewise.
35462         * m4/strpbrk.m4: Likewise.
35463         * m4/strptime.m4: Likewise.
35464         * m4/strsep.m4: Likewise.
35465         * m4/strtod.m4: Likewise.
35466         * m4/strtoimax.m4: Likewise.
35467         * m4/strtok_r.m4: Likewise.
35468         * m4/strtol.m4: Likewise.
35469         * m4/strtoll.m4: Likewise.
35470         * m4/strtoul.m4: Likewise.
35471         * m4/strtoull.m4: Likewise.
35472         * m4/strtoumax.m4: Likewise.
35473         * m4/strverscmp.m4: Likewise.
35474         * m4/threadlib.m4: Likewise.
35475         * m4/timegm.m4: Likewise.
35476         * m4/tm_gmtoff.m4: Likewise.
35477         * m4/tmpdir.m4: Likewise.
35478         * m4/tmpfile.m4: Likewise.
35479         * m4/tzset.m4: Likewise.
35480         * m4/uintmax_t.m4: Likewise.
35481         * m4/unlinkdir.m4: Likewise.
35482         * m4/unlocked-io.m4: Likewise.
35483         * m4/uptime.m4: Likewise.
35484         * m4/userspec.m4: Likewise.
35485         * m4/utimbuf.m4: Likewise.
35486         * m4/utime.m4: Likewise.
35487         * m4/utimes-null.m4: Likewise.
35488         * m4/utimes.m4: Likewise.
35489         * m4/vararrays.m4: Likewise.
35490         * m4/vasnprintf.m4: Likewise.
35491         * m4/vfprintf-posix.m4: Likewise.
35492         * m4/vprintf-posix.m4: Likewise.
35493         * m4/wait-process.m4: Likewise.
35494         * m4/wchar_t.m4: Likewise.
35495         * m4/wint_t.m4: Likewise.
35496         * m4/write-any-file.m4: Likewise.
35497         * m4/yield.m4: Likewise.
35498
35499 2009-01-13  Bruno Haible  <bruno@clisp.org>
35500
35501         Avoid test-copy-file.sh failures when ACL support insufficient.
35502         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35503         TESTS_ENVIRONMENT.
35504         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35505         Reported by Jim Meyering.
35506
35507 2009-01-13  Bruno Haible  <bruno@clisp.org>
35508
35509         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35510         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35511         * modules/unistdio/u8-printf-parse (Files): Likewise.
35512         * modules/unistdio/u32-printf-parse (Files): Likewise.
35513         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35514
35515 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35516
35517         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35518         and m4/inttypes_h.m4 too.
35519
35520 2009-01-12  Eric Blake  <ebb9@byu.net>
35521
35522         tests: IRIX 6.2 cc can't compile -0.0 into .data
35523         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35524         rather than at compile-time.
35525         * tests/test-floorl.c (minus_zero): Likewise.
35526         * tests/test-frexpl.c (minus_zero): Likewise.
35527         * tests/test-isnan.c (minus_zerol): Likewise.
35528         * tests/test-isnanl.h (minus_zero): Likewise.
35529         * tests/test-ldexpl.c (minus_zero): Likewise.
35530         * tests/test-roundl.c (minus_zero): Likewise.
35531         * tests/test-signbit.c (minus_zerol): Likewise.
35532         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35533         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35534         * tests/test-truncl.c (minus_zero): Likewise.
35535         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35536         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35537         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35538
35539 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35540
35541         regex: fix glibc bug 9697
35542         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35543         handling.
35544
35545 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35546
35547         regex: fix glibc bug 697
35548         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35549         being NULL also if there are no backreferences.
35550
35551 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35552
35553         regex: merge glibc changes
35554         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35555         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35556         re_string_skip_chars, re_string_reconstruct): Likewise.
35557         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35558
35559 2009-01-07  Jim Meyering  <meyering@redhat.com>
35560
35561         poll: filter through cppi
35562         * lib/poll.c: Indent cpp directives to reflect nesting.
35563
35564 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35565
35566         poll: don't return uninitialized
35567         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35568
35569 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35570
35571         avoid compile failure on AIX 6.1
35572         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35573         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35574
35575 2009-01-04  Jim Meyering  <meyering@redhat.com>
35576
35577         remove duplicate inclusion of <stdio.h>
35578         * tests/test-fprintf-posix.c: Likewise.
35579         * tests/test-printf-posix.c: Likewise.
35580         * tests/test-snprintf-posix.c: Likewise.
35581         * tests/test-sprintf-posix.c: Likewise.
35582         * tests/test-vasprintf-posix.c: Likewise.
35583         * tests/test-vfprintf-posix.c: Likewise.
35584         * tests/test-vprintf-posix.c: Likewise.
35585         * tests/test-vsnprintf-posix.c: Likewise.
35586         * tests/test-vsprintf-posix.c: Likewise.
35587
35588 2009-01-03  Jim Meyering  <meyering@redhat.com>
35589
35590         gnulib-tool: fix sed-based filtering
35591         * gnulib-tool (func_filter_filelist): Remove extra backslash
35592         in sed_fff_filter definition.
35593
35594 2009-01-02  Jim Meyering  <meyering@redhat.com>
35595
35596         strftime: avoid compilation failure on Solaris 2.6
35597         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35598         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35599         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35600         be available.  Reported by Tom G. Christensen.  Details in
35601         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35602
35603 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35604             Bruno Haible  <bruno@clisp.org>
35605
35606         Speed up gnulib-tool by doing more string processing through shell
35607         built-ins.
35608         * gnulib-tool (fast_func_append): New variable.
35609         (func_remove_prefix, func_remove_suffix): New functions.
35610         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35611         (func_filter_filelist): New function.
35612         (func_get_dependencies): Use func_remove_suffix instead of sed.
35613         (func_get_automake_snippet): Use func_filter_filelist instead of a
35614         subshell and sed invocation.
35615
35616 2009-01-01  Bruno Haible  <bruno@clisp.org>
35617
35618         Fix a security bug.
35619         * gnulib-tool (func_import, import, update): Don't allow the characters
35620         '"', '$', '`', '\' in macro arguments that become part of commands that
35621         are evaluated.
35622
35623 2009-01-01  Bruno Haible  <bruno@clisp.org>
35624
35625         * gnulib-tool (func_reset_sigpipe): Add more comments.
35626
35627 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35628
35629         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35630         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35631         already know the answer.
35632
35633 2009-01-01  Jim Meyering  <meyering@redhat.com>
35634
35635         * lib/version-etc.c (version_etc_va): Update copyright year.
35636
35637 2008-12-30  Bruno Haible  <bruno@clisp.org>
35638
35639         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35640         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35641         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35642
35643 2008-12-29  Eric Blake  <ebb9@byu.net>
35644
35645         multiarch: avoid autoconf AC_REQUIRE bug
35646         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35647         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35648         2.63 and older.
35649         Reported by Bruno Haible, and analyzed in
35650         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35651
35652 2008-12-29  Bruno Haible  <bruno@clisp.org>
35653
35654         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35655         files in subdirectories correctly.
35656         Reported by Ralf Wildenhues.
35657
35658 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35659
35660         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35661         rather than 'join FILE -', for Solaris join.
35662
35663 2008-12-29  Bruno Haible  <bruno@clisp.org>
35664
35665         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35666         quoting.
35667         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35668         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35669         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35670         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35671         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35672         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35673         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35674         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35675         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35676         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35677         * m4/nls.m4 (AM_NLS): Likewise.
35678         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35679         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35680         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35681         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35682         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35683         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35684         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35685         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35686         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35687         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35688         * m4/xsize.m4 (gl_XSIZE): Likewise.
35689         Suggested by Jim Meyering.
35690
35691 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35692
35693         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35694         * lib/parse-duration.c: use a switch instead of cascading if's.
35695
35696 2008-12-29  Eric Blake  <ebb9@byu.net>
35697
35698         wchar.h: supply WEOF on Irix 5.3
35699         * lib/wchar.in.h (wint_t): Also supply WEOF.
35700         * lib/wctype.in.h (wint_t): Likewise.
35701         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35702         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35703         Reported by Tom G. Christensen.
35704
35705 2008-12-26  Bruno Haible  <bruno@clisp.org>
35706
35707         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35708         i486, i586, i686.
35709
35710 2008-12-26  Bruno Haible  <bruno@clisp.org>
35711
35712         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35713
35714 2008-12-26  Bruno Haible  <bruno@clisp.org>
35715
35716         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35717         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35718         not __STDC_CONSTANT_MACROS.
35719         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35720
35721 2008-12-25  Bruno Haible  <bruno@clisp.org>
35722
35723         Add support for universal builds to vasnprintf.
35724         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35725         universal builds, guess no.
35726         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35727         * modules/vasprintf-posix (Depends-on): Likewise.
35728         * modules/fprintf-posix (Depends-on): Likewise.
35729         * modules/vfprintf-posix (Depends-on): Likewise.
35730         * modules/snprintf-posix (Depends-on): Likewise.
35731         * modules/vsnprintf-posix (Depends-on): Likewise.
35732         * modules/sprintf-posix (Depends-on): Likewise.
35733         * modules/vsprintf-posix (Depends-on): Likewise.
35734         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35735         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35736         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35737         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35738         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35739         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35740         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35741
35742         Add support for universal builds to <inttypes.h>.
35743         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35744         _SCNu64_PREFIX): In Apple
35745         universal builds, define directly, using _LP64.
35746         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35747         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35748         * modules/inttypes (Depends-on): Add multiarch.
35749         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35750
35751         Add support for universal builds to <stdint.h>.
35752         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35753         universal builds, define directly, using _LP64.
35754         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35755         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35756         and size_t.
35757         * modules/stdint (Depends-on): Add multiarch.
35758         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35759
35760         New module 'multiarch'.
35761         * modules/multiarch: New file.
35762         * m4/multiarch.m4: New file.
35763
35764 2008-12-25  Bruno Haible  <bruno@clisp.org>
35765
35766         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35767
35768 2008-12-25  Bruno Haible  <bruno@clisp.org>
35769
35770         * modules/btowc (License): Relicense under LGPLv2+.
35771         * modules/mbsinit (License): Likewise.
35772         * modules/mbrtowc (License): Likewise.
35773         * modules/wcrtomb (License): Likewise.
35774         * modules/streq (License): Likewise.
35775         Reported by David Lutterkort <lutter@redhat.com>.
35776
35777 2008-12-23  Bruno Haible  <bruno@clisp.org>
35778
35779         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35780
35781 2008-12-23  Bruno Haible  <bruno@clisp.org>
35782
35783         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35785         GETADDRINFO_LIB, not in LIBS.
35786         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35787         * modules/canon-host (Link): Likewise.
35788         * NEWS: Mention the change.
35789         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35790         GETADDRINFO_LIB.
35791
35792 2008-12-22  Bruno Haible  <bruno@clisp.org>
35793
35794         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35795         * doc/posix-functions/iswalpha_l.texi: Likewise.
35796         * doc/posix-functions/iswblank_l.texi: Likewise.
35797         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35798         * doc/posix-functions/iswctype_l.texi: Likewise.
35799         * doc/posix-functions/iswdigit_l.texi: Likewise.
35800         * doc/posix-functions/iswgraph_l.texi: Likewise.
35801         * doc/posix-functions/iswlower_l.texi: Likewise.
35802         * doc/posix-functions/iswprint_l.texi: Likewise.
35803         * doc/posix-functions/iswpunct_l.texi: Likewise.
35804         * doc/posix-functions/iswspace_l.texi: Likewise.
35805         * doc/posix-functions/iswupper_l.texi: Likewise.
35806         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35807         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35808         * doc/posix-functions/open_wmemstream.texi: Likewise.
35809         * doc/posix-functions/swscanf.texi: Likewise.
35810         * doc/posix-functions/towctrans_l.texi: Likewise.
35811         * doc/posix-functions/towlower.texi: Likewise.
35812         * doc/posix-functions/towlower_l.texi: Likewise.
35813         * doc/posix-functions/towupper.texi: Likewise.
35814         * doc/posix-functions/towupper_l.texi: Likewise.
35815         * doc/posix-functions/vfwprintf.texi: Likewise.
35816         * doc/posix-functions/vfwscanf.texi: Likewise.
35817         * doc/posix-functions/vswscanf.texi: Likewise.
35818         * doc/posix-functions/vwprintf.texi: Likewise.
35819         * doc/posix-functions/vwscanf.texi: Likewise.
35820         * doc/posix-functions/wcpcpy.texi: Likewise.
35821         * doc/posix-functions/wcpncpy.texi: Likewise.
35822         * doc/posix-functions/wcscasecmp.texi: Likewise.
35823         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35824         * doc/posix-functions/wcscoll_l.texi: Likewise.
35825         * doc/posix-functions/wcsdup.texi: Likewise.
35826         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35827         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35828         * doc/posix-functions/wcsnlen.texi: Likewise.
35829         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35830         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35831         * doc/posix-functions/wctrans_l.texi: Likewise.
35832         * doc/posix-functions/wctype_l.texi: Likewise.
35833         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35834         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35835         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35836         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35837         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35838         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35839         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35840         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35841         * doc/glibc-functions/wcschrnul.texi: Likewise.
35842         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35843         * doc/glibc-functions/wcstod_l.texi: Likewise.
35844         * doc/glibc-functions/wcstof_l.texi: Likewise.
35845         * doc/glibc-functions/wcstol_l.texi: Likewise.
35846         * doc/glibc-functions/wcstold_l.texi: Likewise.
35847         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35848         * doc/glibc-functions/wcstoq.texi: Likewise.
35849         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35850         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35851         * doc/glibc-functions/wcstouq.texi: Likewise.
35852         * doc/glibc-functions/wmempcpy.texi: Likewise.
35853
35854 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35855             Eric Blake  <ebb9@byu.net>
35856             Paolo Bonzini  <bonzini@gnu.org>
35857             Bruno Haible  <bruno@clisp.org>
35858
35859         Make c-stack work on Haiku.
35860         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35861         (c_stack_action): Use SA_ONSTACK flag.
35862
35863 2008-12-22  Bruno Haible  <bruno@clisp.org>
35864
35865         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35866
35867 2008-12-22  Bruno Haible  <bruno@clisp.org>
35868
35869         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35870         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35871         being overridden.
35872         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35873         New macros.
35874         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35875         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35876         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35877         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35878
35879 2008-12-22  Bruno Haible  <bruno@clisp.org>
35880
35881         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35882         from test code.
35883
35884 2008-12-22  Eric Blake  <ebb9@byu.net>
35885
35886         Avoid gcc warnings on cygwin.
35887         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35888         Avoid unused variable.
35889         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35890         Likewise.
35891
35892 2008-12-22  Bruno Haible  <bruno@clisp.org>
35893
35894         Remove HAVE_MBRTOWC conditionals.
35895         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35896         (mbscasecmp): Assume mbrtowc function.
35897         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35898         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35899         * lib/mbschr.c: Include mbuiter.h unconditionally.
35900         (mbschr): Assume mbrtowc function.
35901         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35902         (mbscspn): Assume mbrtowc function.
35903         * lib/mbslen.c: Include mbuiter.h unconditionally.
35904         (mbslen): Assume mbrtowc function.
35905         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35906         (mbsncasecmp): Assume mbrtowc function.
35907         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35908         (mbsnlen): Assume mbrtowc function.
35909         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35910         (mbspbrk): Assume mbrtowc function.
35911         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35912         (mbspcasecmp): Assume mbrtowc function.
35913         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35914         (mbsrchr): Assume mbrtowc function.
35915         * lib/mbssep.c: Include mbuiter.h unconditionally.
35916         (mbssep): Assume mbrtowc function.
35917         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35918         (mbsspn): Assume mbrtowc function.
35919         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35920         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35921         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35922         (mbstok_r): Assume mbrtowc function.
35923         * lib/propername.c: Include mbuiter.h unconditionally.
35924         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35925         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35926         (trim2): Assume mbrtowc function.
35927         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35928         (mbsnwidth): Assume mbrtowc function.
35929         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35930         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35931         fallback definitions.
35932         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35933
35934 2008-12-22  Bruno Haible  <bruno@clisp.org>
35935
35936         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35937
35938 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35939
35940         * modules/regex: Request emulations for the mb*/wc* functions we need.
35941         * m4/regex.m4: Don't look for those functions here.
35942         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35943
35944 2008-12-22  Bruno Haible  <bruno@clisp.org>
35945
35946         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35947
35948 2008-12-21  Bruno Haible  <bruno@clisp.org>
35949
35950         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35951         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35952         (Include): Remove conditionalization.
35953         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35954         (Include): Remove conditionalization.
35955         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35956         (Include): Remove conditionalization.
35957         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35958         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35959         * NEWS: Mention the change.
35960         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35961         via Sergey Poznyakoff <gray@gnu.org.ua>.
35962
35963 2008-12-21  Bruno Haible  <bruno@clisp.org>
35964
35965         * MODULES.html.sh (Extended multibyte and wide character utilities
35966         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35967         wcrtomb, wcsrtombs.
35968         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35969         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35970         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35971         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35972
35973 2008-12-21  Bruno Haible  <bruno@clisp.org>
35974
35975         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35976
35977 2008-12-21  Bruno Haible  <bruno@clisp.org>
35978
35979         * modules/wcsnrtombs-tests: New file.
35980         * tests/test-wcsnrtombs1.sh: New file.
35981         * tests/test-wcsnrtombs2.sh: New file.
35982         * tests/test-wcsnrtombs3.sh: New file.
35983         * tests/test-wcsnrtombs4.sh: New file.
35984         * tests/test-wcsnrtombs.c: New file.
35985
35986         New module 'wcsnrtombs'.
35987         * lib/wchar.in.h (wcsnrtombs): New declaration.
35988         * lib/wcsnrtombs.c: New file.
35989         * lib/wcsrtombs-state.c: New file.
35990         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35991         (internal_state): Remove variable.
35992         * m4/wcsnrtombs.m4: New file.
35993         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35994         compilation units.
35995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35996         HAVE_WCSNRTOMBS.
35997         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35998         HAVE_WCSNRTOMBS.
35999         * modules/wcsnrtombs: New file.
36000         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
36001         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
36002
36003 2008-12-21  Bruno Haible  <bruno@clisp.org>
36004
36005         * modules/wcsrtombs-tests: New file.
36006         * tests/test-wcsrtombs1.sh: New file.
36007         * tests/test-wcsrtombs2.sh: New file.
36008         * tests/test-wcsrtombs3.sh: New file.
36009         * tests/test-wcsrtombs4.sh: New file.
36010         * tests/test-wcsrtombs.c: New file.
36011
36012         New module 'wcsrtombs'.
36013         * lib/wchar.in.h (wcsrtombs): New declaration.
36014         * lib/wcsrtombs.c: New file.
36015         * m4/wcsrtombs.m4: New file.
36016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
36017         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36018         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
36019         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36020         * modules/wcsrtombs: New file.
36021         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
36022         bugs.
36023
36024 2008-12-21  Bruno Haible  <bruno@clisp.org>
36025
36026         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
36027         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
36028         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
36029         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
36030         if not correct.
36031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
36032         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
36033         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36034         m4/locale-zh.m4, m4/codeset.m4.
36035         * doc/posix-functions/wcrtomb.texi: Document the bug.
36036
36037 2008-12-21  Bruno Haible  <bruno@clisp.org>
36038
36039         Work around a btowc() bug on IRIX 6.5.
36040         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
36041         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
36042         REPLACE_WTOBC if not.
36043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
36044         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
36045         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
36046
36047 2008-12-21  Bruno Haible  <bruno@clisp.org>
36048
36049         * modules/wcrtomb-tests: New file.
36050         * tests/test-wcrtomb.sh: New file.
36051         * tests/test-wcrtomb.c: New file.
36052
36053         New module 'wcrtomb'.
36054         * lib/wchar.in.h (wcrtomb): New declaration.
36055         * lib/wcrtomb.c: New file.
36056         * m4/wcrtomb.m4: New file.
36057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
36058         HAVE_WCRTOMB.
36059         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
36060         HAVE_WCRTOMB.
36061         * modules/wcrtomb: New file.
36062         * doc/posix-functions/wcrtomb.texi: Mention the new module.
36063
36064 2008-12-21  Bruno Haible  <bruno@clisp.org>
36065
36066         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
36067         * modules/mbsrtowcs (Files): Likewise.
36068         * modules/wctob (Files): Likewise.
36069         * modules/c-strcase-tests (Files): Likewise.
36070         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36071         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36072         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36073         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36074         * modules/vasnprintf-posix-tests (Files): Likewise.
36075
36076 2008-12-21  William Pursell  <bill.pursell@gmail.com>
36077
36078         gitlog-to-changelog: pass all command-line arguments to git-log
36079         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
36080         it is sometimes convenient to filter the commits in various ways.
36081         gitlog-to-changelog only allows --since to specify a start date,
36082         but git-log itself supports many other filtering mechanisms.
36083         At the moment, I want to filter by branch name.  Rather than
36084         adding a --branch option to gitlog-to-changelog, it seems more
36085         flexible to simply pass all options directly to git-log and let
36086         git do the work.  Notice that this effectively makes --since a
36087         redundant option for gitlog-to-changelog, but removing it would
36088         require current usage to change since calls would then require
36089         an additional '--'.
36090
36091 2008-12-21  Bruno Haible  <bruno@clisp.org>
36092
36093         * modules/mbsnrtowcs-tests: New file.
36094         * tests/test-mbsnrtowcs1.sh: New file.
36095         * tests/test-mbsnrtowcs2.sh: New file.
36096         * tests/test-mbsnrtowcs3.sh: New file.
36097         * tests/test-mbsnrtowcs4.sh: New file.
36098         * tests/test-mbsnrtowcs.c: New file.
36099
36100         New module 'mbsnrtowcs'.
36101         * lib/wchar.in.h (mbsnrtowcs): New declaration.
36102         * lib/mbsnrtowcs.c: New file.
36103         * lib/mbsrtowcs-state.c: New file.
36104         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
36105         (internal_state): Remove variable.
36106         * m4/mbsnrtowcs.m4: New file.
36107         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
36108         compilation units.
36109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
36110         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36111         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
36112         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36113         * modules/mbsnrtowcs: New file.
36114         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
36115         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
36116         portability problem.
36117
36118 2008-12-21  Bruno Haible  <bruno@clisp.org>
36119
36120         Work around mbsrtowcs bug.
36121         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
36122         (gl_FUNC_MBSRTOWCS): Invoke it.
36123         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36124         m4/locale-zh.m4.
36125         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
36126
36127 2008-12-21  Bruno Haible  <bruno@clisp.org>
36128
36129         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
36130
36131 2008-12-21  Bruno Haible  <bruno@clisp.org>
36132
36133         Update doc for AIX.
36134         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
36135         16-bit wchar_t type.
36136         * doc/posix-functions/btowc.texi: Likewise.
36137         * doc/posix-functions/fgetwc.texi: Likewise.
36138         * doc/posix-functions/fgetws.texi: Likewise.
36139         * doc/posix-functions/fputwc.texi: Likewise.
36140         * doc/posix-functions/fputws.texi: Likewise.
36141         * doc/posix-functions/fwide.texi: Likewise.
36142         * doc/posix-functions/fwprintf.texi: Likewise.
36143         * doc/posix-functions/fwscanf.texi: Likewise.
36144         * doc/posix-functions/getwchar.texi: Likewise.
36145         * doc/posix-functions/getwc.texi: Likewise.
36146         * doc/posix-functions/iswalnum.texi: Likewise.
36147         * doc/posix-functions/iswalpha.texi: Likewise.
36148         * doc/posix-functions/iswblank.texi: Likewise.
36149         * doc/posix-functions/iswcntrl.texi: Likewise.
36150         * doc/posix-functions/iswctype.texi: Likewise.
36151         * doc/posix-functions/iswdigit.texi: Likewise.
36152         * doc/posix-functions/iswgraph.texi: Likewise.
36153         * doc/posix-functions/iswlower.texi: Likewise.
36154         * doc/posix-functions/iswprint.texi: Likewise.
36155         * doc/posix-functions/iswpunct.texi: Likewise.
36156         * doc/posix-functions/iswspace.texi: Likewise.
36157         * doc/posix-functions/iswupper.texi: Likewise.
36158         * doc/posix-functions/iswxdigit.texi: Likewise.
36159         * doc/posix-functions/mbrtowc.texi: Likewise.
36160         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36161         * doc/posix-functions/mbstowcs.texi: Likewise.
36162         * doc/posix-functions/mbtowc.texi: Likewise.
36163         * doc/posix-functions/putwchar.texi: Likewise.
36164         * doc/posix-functions/putwc.texi: Likewise.
36165         * doc/posix-functions/swprintf.texi: Likewise.
36166         * doc/posix-functions/tolower.texi: Likewise.
36167         * doc/posix-functions/toupper.texi: Likewise.
36168         * doc/posix-functions/towctrans.texi: Likewise.
36169         * doc/posix-functions/ungetwc.texi: Likewise.
36170         * doc/posix-functions/vswprintf.texi: Likewise.
36171         * doc/posix-functions/wcrtomb.texi: Likewise.
36172         * doc/posix-functions/wcscat.texi: Likewise.
36173         * doc/posix-functions/wcschr.texi: Likewise.
36174         * doc/posix-functions/wcscmp.texi: Likewise.
36175         * doc/posix-functions/wcscoll.texi: Likewise.
36176         * doc/posix-functions/wcscpy.texi: Likewise.
36177         * doc/posix-functions/wcscspn.texi: Likewise.
36178         * doc/posix-functions/wcsftime.texi: Likewise.
36179         * doc/posix-functions/wcslen.texi: Likewise.
36180         * doc/posix-functions/wcsncat.texi: Likewise.
36181         * doc/posix-functions/wcsncmp.texi: Likewise.
36182         * doc/posix-functions/wcsncpy.texi: Likewise.
36183         * doc/posix-functions/wcspbrk.texi: Likewise.
36184         * doc/posix-functions/wcsrchr.texi: Likewise.
36185         * doc/posix-functions/wcsrtombs.texi: Likewise.
36186         * doc/posix-functions/wcsspn.texi: Likewise.
36187         * doc/posix-functions/wcsstr.texi: Likewise.
36188         * doc/posix-functions/wcstod.texi: Likewise.
36189         * doc/posix-functions/wcstof.texi: Likewise.
36190         * doc/posix-functions/wcstoimax.texi: Likewise.
36191         * doc/posix-functions/wcstok.texi: Likewise.
36192         * doc/posix-functions/wcstold.texi: Likewise.
36193         * doc/posix-functions/wcstoll.texi: Likewise.
36194         * doc/posix-functions/wcstol.texi: Likewise.
36195         * doc/posix-functions/wcstombs.texi: Likewise.
36196         * doc/posix-functions/wcstoull.texi: Likewise.
36197         * doc/posix-functions/wcstoul.texi: Likewise.
36198         * doc/posix-functions/wcstoumax.texi: Likewise.
36199         * doc/posix-functions/wcswidth.texi: Likewise.
36200         * doc/posix-functions/wcsxfrm.texi: Likewise.
36201         * doc/posix-functions/wctob.texi: Likewise.
36202         * doc/posix-functions/wctomb.texi: Likewise.
36203         * doc/posix-functions/wctrans.texi: Likewise.
36204         * doc/posix-functions/wctype.texi: Likewise.
36205         * doc/posix-functions/wcwidth.texi: Likewise.
36206         * doc/posix-functions/wmemchr.texi: Likewise.
36207         * doc/posix-functions/wmemcmp.texi: Likewise.
36208         * doc/posix-functions/wmemcpy.texi: Likewise.
36209         * doc/posix-functions/wmemmove.texi: Likewise.
36210         * doc/posix-functions/wmemset.texi: Likewise.
36211         * doc/posix-functions/wprintf.texi: Likewise.
36212         * doc/posix-functions/wscanf.texi: Likewise.
36213
36214 2008-12-21  Bruno Haible  <bruno@clisp.org>
36215
36216         Update doc for HP-UX 11.11.
36217         * doc/posix-functions/btowc.texi: Clarify that the function is missing
36218         in HP-UX version 11.00, not in all versions of HP-UX 11.
36219         * doc/posix-functions/fwide.texi: Likewise.
36220         * doc/posix-functions/fwprintf.texi: Likewise.
36221         * doc/posix-functions/fwscanf.texi: Likewise.
36222         * doc/posix-functions/inet_ntop.texi: Likewise.
36223         * doc/posix-functions/inet_pton.texi: Likewise.
36224         * doc/posix-functions/mbrlen.texi: Likewise.
36225         * doc/posix-functions/mbrtowc.texi: Likewise.
36226         * doc/posix-functions/mbsinit.texi: Likewise.
36227         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36228         * doc/posix-functions/swprintf.texi: Likewise.
36229         * doc/posix-functions/swscanf.texi: Likewise.
36230         * doc/posix-functions/towctrans.texi: Likewise.
36231         * doc/posix-functions/vfwprintf.texi: Likewise.
36232         * doc/posix-functions/vswprintf.texi: Likewise.
36233         * doc/posix-functions/vwprintf.texi: Likewise.
36234         * doc/posix-functions/wcrtomb.texi: Likewise.
36235         * doc/posix-functions/wcsrtombs.texi: Likewise.
36236         * doc/posix-functions/wcsstr.texi: Likewise.
36237         * doc/posix-functions/wctob.texi: Likewise.
36238         * doc/posix-functions/wctrans.texi: Likewise.
36239         * doc/posix-functions/wmemchr.texi: Likewise.
36240         * doc/posix-functions/wmemcmp.texi: Likewise.
36241         * doc/posix-functions/wmemcpy.texi: Likewise.
36242         * doc/posix-functions/wmemmove.texi: Likewise.
36243         * doc/posix-functions/wmemset.texi: Likewise.
36244         * doc/posix-functions/wprintf.texi: Likewise.
36245         * doc/posix-functions/wscanf.texi: Likewise.
36246
36247 2008-12-21  Bruno Haible  <bruno@clisp.org>
36248
36249         Work around a portability problem.
36250         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
36251         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
36252
36253 2008-12-20  Bruno Haible  <bruno@clisp.org>
36254
36255         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
36256         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
36257         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
36258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
36259         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
36260
36261         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
36262         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
36263         set.
36264         (GNULIB_defined_mbstate_t): New macro.
36265         (mbsinit): Redefine if REPLACE_MBSINIT is set.
36266         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
36267         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
36268         reuses the system's mbrtowc function but works around the bugs.
36269         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
36270         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
36271         macros.
36272         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
36273         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
36274         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
36275         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
36276         REPLACE_MBSINIT if mbsinit needs to be overridden.
36277         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
36278         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36279         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
36280         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36281         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36282         m4/locale-zh.m4.
36283         (Depends): Add mbsinit.
36284         * modules/mbsinit (Depends): Add mbrtowc.
36285         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
36286
36287 2008-12-20  Bruno Haible  <bruno@clisp.org>
36288
36289         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
36290         so that there are no conversion errors on AIX.
36291         * tests/test-mbsrtowcs.c (main): LIkewise.
36292
36293 2008-12-20  Bruno Haible  <bruno@clisp.org>
36294
36295         Work around wctob bug on Solaris <= 9.
36296         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
36297         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
36298         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
36299         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
36300         * modules/wctob (Files): Add m4/locale-fr.m4.
36301         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
36302
36303 2008-12-20  Bruno Haible  <bruno@clisp.org>
36304
36305         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
36306         /dev/null.
36307         * tests/test-select-in.sh: Likewise.
36308         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36309
36310 2008-12-20  Bruno Haible  <bruno@clisp.org>
36311
36312         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
36313         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
36314         Cygwin 1.5.x.
36315
36316 2008-12-20  Bruno Haible  <bruno@clisp.org>
36317
36318         Ensure mbstate_t is defined on HP-UX 11.11.
36319         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
36320         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
36321         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
36322         AC_USE_SYSTEM_EXTENSIONS.
36323         * modules/fnmatch (Depends-on): Add extensions.
36324         * modules/mbrlen (Depends-on): Likewise.
36325         * modules/mbrtowc (Depends-on): Likewise.
36326         * modules/mbsinit (Depends-on): Likewise.
36327         * modules/mbsrtowcs (Depends-on): Likewise.
36328         * modules/mbswidth (Depends-on): Likewise.
36329         * modules/quotearg (Depends-on): Likewise.
36330         * modules/strftime (Depends-on): Likewise.
36331
36332 2008-12-20  Bruno Haible  <bruno@clisp.org>
36333
36334         Ensure wctob is declared on IRIX 6.5.
36335         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36336         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36337         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36339         of HAVE_WCTOB.
36340         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36341         HAVE_WCTOB.
36342         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36343
36344 2008-12-19  Bruno Haible  <bruno@clisp.org>
36345
36346         * modules/mbsrtowcs-tests: New file.
36347         * tests/test-mbsrtowcs1.sh: New file.
36348         * tests/test-mbsrtowcs2.sh: New file.
36349         * tests/test-mbsrtowcs3.sh: New file.
36350         * tests/test-mbsrtowcs4.sh: New file.
36351         * tests/test-mbsrtowcs.c: New file.
36352
36353         New module 'mbsrtowcs'.
36354         * lib/wchar.in.h (mbsrtowcs): New declaration.
36355         * lib/mbsrtowcs.c: New file.
36356         * m4/mbsrtowcs.m4: New file.
36357         * modules/mbsrtowcs: New file.
36358         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36359         HAVE_MBSRTOWCS.
36360         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36361         HAVE_MBSRTOWCS.
36362         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36363
36364 2008-12-19  Bruno Haible  <bruno@clisp.org>
36365
36366         New module 'mbrlen'.
36367         * lib/wchar.in.h (mbrlen): New declaration.
36368         * lib/mbrlen.c: New file.
36369         * m4/mbrlen.m4: New file.
36370         * modules/mbrlen: New file.
36371         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36372         HAVE_MBRLEN.
36373         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36374         HAVE_MBRLEN.
36375         * doc/posix-functions/mbrlen.texi: Document the new module.
36376
36377 2008-12-19  Bruno Haible  <bruno@clisp.org>
36378
36379         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36380         * modules/mbrtowc (Depends-on): Add verify.
36381         Suggested by Paul Eggert.
36382
36383 2008-12-18  Bruno Haible  <bruno@clisp.org>
36384
36385         * modules/mbsinit-tests: New file.
36386         * tests/test-mbsinit.sh: New file.
36387         * tests/test-mbsinit.c: New file.
36388
36389 2008-12-18  Bruno Haible  <bruno@clisp.org>
36390
36391         * modules/mbrtowc-tests: New file.
36392         * tests/test-mbrtowc1.sh: New file.
36393         * tests/test-mbrtowc2.sh: New file.
36394         * tests/test-mbrtowc3.sh: New file.
36395         * tests/test-mbrtowc4.sh: New file.
36396         * tests/test-mbrtowc.c: New file.
36397
36398         New module 'mbrtowc'.
36399         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36400         mbsinit and mbrtowc.
36401         (mbrtowc): New declaration.
36402         * lib/mbrtowc.c: New file.
36403         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36404         * modules/mbrtowc: New file.
36405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36406         HAVE_MBRTOWC.
36407         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36408         HAVE_MBRTOWC.
36409         * doc/posix-functions/mbrtowc.texi: Document the new module.
36410
36411 2008-12-18  Bruno Haible  <bruno@clisp.org>
36412
36413         New module 'wctob'.
36414         * lib/wchar.in.h (wctob): New declaration.
36415         * lib/wctob.c: New file.
36416         * m4/wctob.m4: New file.
36417         * modules/wctob: New file.
36418         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36419         HAVE_WCTOB.
36420         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36421         * doc/posix-functions/wctob.texi: Document the new module.
36422
36423 2008-12-18  Bruno Haible  <bruno@clisp.org>
36424
36425         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36426         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36427
36428 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36429
36430         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36431         G. Christensen" <tgc@jupiterrise.com>.
36432
36433         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36434         G. Christensen" <tgc@jupiterrise.com>.
36435
36436         * lib/flock.c: Need to include string.h.  Reported by "Tom
36437         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36438         <ebb9@byu.net>.
36439
36440 2008-12-18  Bruno Haible  <bruno@clisp.org>
36441
36442         * m4/locale-ja.m4: New file, from GNU gettext.
36443
36444 2008-12-17  Bruno Haible  <bruno@clisp.org>
36445
36446         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36447         Suggested by Eric Blake.
36448
36449 2008-12-17  Bruno Haible  <bruno@clisp.org>
36450
36451         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36452
36453 2008-12-17  Bruno Haible  <bruno@clisp.org>
36454
36455         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36456         * modules/mbsinit (Depends-on): Add verify.
36457         Suggested by Paul Eggert.
36458
36459 2008-12-17  Bruno Haible  <bruno@clisp.org>
36460
36461         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36462         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36463         gl_FUNC_MBRTOWC.
36464         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36465         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36466         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36467         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36468         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36469         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36470         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36471         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36472         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36473         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36474         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36475         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36476         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36477         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36478         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36479         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36480         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36481         * modules/trim (configure.ac): Likewise.
36482
36483 2008-12-17  Bruno Haible  <bruno@clisp.org>
36484
36485         * modules/btowc-tests: New file.
36486         * tests/test-btowc1.sh: New file.
36487         * tests/test-btowc2.sh: New file.
36488         * tests/test-btowc.c: New file.
36489
36490         New module 'btowc'.
36491         * lib/wchar.in.h (btowc): New declaration.
36492         * lib/btowc.c: New file.
36493         * m4/btowc.m4: New file.
36494         * modules/btowc: New file.
36495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36496         HAVE_BTOWC.
36497         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36498         * doc/posix-functions/btowc.texi: Document the new module.
36499
36500 2008-12-17  Bruno Haible  <bruno@clisp.org>
36501
36502         New module 'mbsinit'.
36503         * lib/wchar.in.h (mbsinit): New declaration.
36504         * lib/mbsinit.c: New file.
36505         * m4/mbsinit.m4: New file.
36506         * modules/mbsinit: New file.
36507         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36508         HAVE_MBSINIT.
36509         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36510         HAVE_MBSINIT.
36511         * doc/posix-functions/mbsinit.texi: Document the new module.
36512
36513 2008-12-16  Bruno Haible  <bruno@clisp.org>
36514
36515         * lib/unistd.in.h: Add comment.
36516         * tests/test-environ.c: Don't include <stdlib.h>.
36517
36518 2008-12-16  Bruno Haible  <bruno@clisp.org>
36519
36520         * lib/parse-duration.h (parse_duration): Document return value
36521         convention.
36522         * lib/parse-duration.c: Include specification header first. Add
36523         comments.
36524         (_): Remove macro.
36525         (parse_year_month_day, parse_hour_minute_second): Move side effects
36526         outside of strchr call.
36527         (parse_non_iso8601): Move side effects outside of isspace call.
36528         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36529         call.
36530
36531 2008-12-16  Bruno Haible  <bruno@clisp.org>
36532
36533         * tests/test-parse-duration.sh: Produce no output when the test
36534         succeeds.
36535
36536 2008-12-16  Bruno Haible  <bruno@clisp.org>
36537
36538         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36539         expressions.
36540
36541 2008-12-15  Bruno Haible  <bruno@clisp.org>
36542
36543         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36544         * doc/glibc-functions/flistxattr.texi: Likewise.
36545         * doc/glibc-functions/fopencookie.texi: Likewise.
36546         * doc/glibc-functions/fremovexattr.texi: Likewise.
36547         * doc/glibc-functions/fsetxattr.texi: Likewise.
36548         * doc/glibc-functions/getxattr.texi: Likewise.
36549         * doc/glibc-functions/lgetxattr.texi: Likewise.
36550         * doc/glibc-functions/listxattr.texi: Likewise.
36551         * doc/glibc-functions/llistxattr.texi: Likewise.
36552         * doc/glibc-functions/lremovexattr.texi: Likewise.
36553         * doc/glibc-functions/lsetxattr.texi: Likewise.
36554         * doc/glibc-functions/removexattr.texi: Likewise.
36555         * doc/glibc-functions/setxattr.texi: Likewise.
36556         * doc/posix-functions/open_memstream.texi: Likewise.
36557
36558 2008-12-15  Eric Blake  <ebb9@byu.net>
36559
36560         Update doc for cygwin 1.7.
36561         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36562         functions.
36563         * doc/posix-functions/fchmodat.texi: Likewise.
36564         * doc/posix-functions/fchownat.texi: Likewise.
36565         * doc/posix-functions/fdopendir.texi: Likewise.
36566         * doc/posix-functions/fmemopen.texi: Likewise.
36567         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36568         * doc/posix-functions/fstatat.texi: Likewise.
36569         * doc/posix-functions/futimens.texi: Likewise.
36570         * doc/posix-functions/gai_strerror.texi: Likewise.
36571         * doc/posix-functions/getaddrinfo.texi: Likewise.
36572         * doc/posix-functions/getnameinfo.texi: Likewise.
36573         * doc/posix-functions/if_freenameindex.texi: Likewise.
36574         * doc/posix-functions/if_indextoname.texi: Likewise.
36575         * doc/posix-functions/if_nameindex.texi: Likewise.
36576         * doc/posix-functions/if_nametoindex.texi: Likewise.
36577         * doc/posix-functions/insque.texi: Likewise.
36578         * doc/posix-functions/linkat.texi: Likewise.
36579         * doc/posix-functions/llrint.texi: Likewise.
36580         * doc/posix-functions/llrintf.texi: Likewise.
36581         * doc/posix-functions/llrintl.texi: Likewise.
36582         * doc/posix-functions/lockf.texi: Likewise.
36583         * doc/posix-functions/lrintl.texi: Likewise.
36584         * doc/posix-functions/mkdirat.texi: Likewise.
36585         * doc/posix-functions/mkfifoat.texi: Likewise.
36586         * doc/posix-functions/mknodat.texi: Likewise.
36587         * doc/posix-functions/mq_close.texi: Likewise.
36588         * doc/posix-functions/mq_getattr.texi: Likewise.
36589         * doc/posix-functions/mq_notify.texi: Likewise.
36590         * doc/posix-functions/mq_open.texi: Likewise.
36591         * doc/posix-functions/mq_receive.texi: Likewise.
36592         * doc/posix-functions/mq_send.texi: Likewise.
36593         * doc/posix-functions/mq_setattr.texi: Likewise.
36594         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36595         * doc/posix-functions/mq_timedsend.texi: Likewise.
36596         * doc/posix-functions/mq_unlink.texi: Likewise.
36597         * doc/posix-functions/open_memstream.texi: Likewise.
36598         * doc/posix-functions/openat.texi: Likewise.
36599         * doc/posix-functions/posix_fadvise.texi: Likewise.
36600         * doc/posix-functions/posix_fallocate.texi: Likewise.
36601         * doc/posix-functions/posix_madvise.texi: Likewise.
36602         * doc/posix-functions/posix_memalign.texi: Likewise.
36603         * doc/posix-functions/posix_openpt.texi: Likewise.
36604         * doc/posix-functions/readlinkat.texi: Likewise.
36605         * doc/posix-functions/remque.texi: Likewise.
36606         * doc/posix-functions/renameat.texi: Likewise.
36607         * doc/posix-functions/rintl.texi: Likewise.
36608         * doc/posix-functions/sem_unlink.texi: Likewise.
36609         * doc/posix-functions/shm_open.texi: Likewise.
36610         * doc/posix-functions/shm_unlink.texi: Likewise.
36611         * doc/posix-functions/signgam.texi: Likewise.
36612         * doc/posix-functions/sigset.texi: Likewise.
36613         * doc/posix-functions/stpcpy.texi: Likewise.
36614         * doc/posix-functions/stpncpy.texi: Likewise.
36615         * doc/posix-functions/strerror.texi: Likewise.
36616         * doc/posix-functions/strtod.texi: Likewise.
36617         * doc/posix-functions/symlinkat.texi: Likewise.
36618         * doc/posix-functions/unlinkat.texi: Likewise.
36619         * doc/posix-functions/utimensat.texi: Likewise.
36620         * doc/glibc-functions/bindresvport.texi: Likewise.
36621         * doc/glibc-functions/dn_expand.texi: Likewise.
36622         * doc/glibc-functions/exp10.texi: Likewise.
36623         * doc/glibc-functions/exp10f.texi: Likewise.
36624         * doc/glibc-functions/fgetxattr.texi: Likewise.
36625         * doc/glibc-functions/flistxattr.texi: Likewise.
36626         * doc/glibc-functions/fopencookie.texi: Likewise.
36627         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36628         * doc/glibc-functions/fremovexattr.texi: Likewise.
36629         * doc/glibc-functions/fsetxattr.texi: Likewise.
36630         * doc/glibc-functions/getifaddrs.texi: Likewise.
36631         * doc/glibc-functions/getxattr.texi: Likewise.
36632         * doc/glibc-functions/lgetxattr.texi: Likewise.
36633         * doc/glibc-functions/listxattr.texi: Likewise.
36634         * doc/glibc-functions/llistxattr.texi: Likewise.
36635         * doc/glibc-functions/lremovexattr.texi: Likewise.
36636         * doc/glibc-functions/lsetxattr.texi: Likewise.
36637         * doc/glibc-functions/pow10.texi: Likewise.
36638         * doc/glibc-functions/pow10f.texi: Likewise.
36639         * doc/glibc-functions/rcmd_af.texi: Likewise.
36640         * doc/glibc-functions/removexattr.texi: Likewise.
36641         * doc/glibc-functions/res_init.texi: Likewise.
36642         * doc/glibc-functions/res_mkquery.texi: Likewise.
36643         * doc/glibc-functions/res_query.texi: Likewise.
36644         * doc/glibc-functions/res_querydomain.texi: Likewise.
36645         * doc/glibc-functions/res_send.texi: Likewise.
36646         * doc/glibc-functions/rresvport_af.texi: Likewise.
36647         * doc/glibc-functions/setxattr.texi: Likewise.
36648         * doc/glibc-functions/strcasestr.texi: Likewise.
36649
36650 2008-12-15  Bruno Haible  <bruno@clisp.org>
36651
36652         Fix compilation error on OSF/1 4.0.
36653         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36654         <sys/time.h>, simply delegate to the system header.
36655         Reported by Daniel Richard G. <oss@teragram.com>.
36656
36657 2008-12-15  Bruno Haible  <bruno@clisp.org>
36658
36659         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36660         * doc/posix-functions/fchmodat.texi: Likewise.
36661         * doc/posix-functions/fchownat.texi: Likewise.
36662         * doc/posix-functions/fdopendir.texi: Likewise.
36663         * doc/posix-functions/fstatat.texi: Likewise.
36664         * doc/posix-functions/mkdirat.texi: Likewise.
36665         * doc/posix-functions/unlinkat.texi: Likewise.
36666
36667 2008-12-14  Bruno Haible  <bruno@clisp.org>
36668
36669         Update doc for POSIX:2008.
36670         * doc/posix-functions/faccessat.texi: New file.
36671         * doc/posix-functions/fchmodat.texi: New file.
36672         * doc/posix-functions/fchownat.texi: New file.
36673         * doc/posix-functions/fdopendir.texi: New file.
36674         * doc/posix-functions/fstatat.texi: New file.
36675         * doc/posix-functions/futimens.texi: New file.
36676         * doc/posix-functions/linkat.texi: New file.
36677         * doc/posix-functions/mkdirat.texi: New file.
36678         * doc/posix-functions/mkfifoat.texi: New file.
36679         * doc/posix-functions/mknodat.texi: New file.
36680         * doc/posix-functions/open_wmemstream.texi: New file.
36681         * doc/posix-functions/openat.texi: New file.
36682         * doc/posix-functions/psiginfo.texi: New file.
36683         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36684         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36685         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36686         * doc/posix-functions/readlinkat.texi: New file.
36687         * doc/posix-functions/renameat.texi: New file.
36688         * doc/posix-functions/strerror_l.texi: New file.
36689         * doc/posix-functions/symlinkat.texi: New file.
36690         * doc/posix-functions/unlinkat.texi: New file.
36691         * doc/posix-functions/utimensat.texi: New file.
36692         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36693
36694 2008-12-14  Bruno Haible  <bruno@clisp.org>
36695
36696         Update doc for POSIX:2008.
36697         * doc/posix-functions/alphasort.texi: Renamed from
36698         doc/glibc-functions/alphasort.texi.
36699         * doc/posix-functions/dirfd.texi: Renamed from
36700         doc/glibc-functions/dirfd.texi.
36701         * doc/posix-functions/dprintf.texi: Renamed from
36702         doc/glibc-functions/dprintf.texi.
36703         * doc/posix-functions/duplocale.texi: Renamed from
36704         doc/glibc-functions/duplocale.texi.
36705         * doc/posix-functions/fexecve.texi: Renamed from
36706         doc/glibc-functions/fexecve.texi.
36707         * doc/posix-functions/fmemopen.texi: Renamed from
36708         doc/glibc-functions/fmemopen.texi.
36709         * doc/posix-functions/freelocale.texi: Renamed from
36710         doc/glibc-functions/freelocale.texi.
36711         * doc/posix-functions/getdate_err.texi: Renamed from
36712         doc/glibc-functions/getdate_err.texi.
36713         * doc/posix-functions/isalnum_l.texi: Renamed from
36714         doc/glibc-functions/isalnum_l.texi.
36715         * doc/posix-functions/isalpha_l.texi: Renamed from
36716         doc/glibc-functions/isalpha_l.texi.
36717         * doc/posix-functions/isblank_l.texi: Renamed from
36718         doc/glibc-functions/isblank_l.texi.
36719         * doc/posix-functions/iscntrl_l.texi: Renamed from
36720         doc/glibc-functions/iscntrl_l.texi.
36721         * doc/posix-functions/isdigit_l.texi: Renamed from
36722         doc/glibc-functions/isdigit_l.texi.
36723         * doc/posix-functions/isgraph_l.texi: Renamed from
36724         doc/glibc-functions/isgraph_l.texi.
36725         * doc/posix-functions/islower_l.texi: Renamed from
36726         doc/glibc-functions/islower_l.texi.
36727         * doc/posix-functions/isprint_l.texi: Renamed from
36728         doc/glibc-functions/isprint_l.texi.
36729         * doc/posix-functions/ispunct_l.texi: Renamed from
36730         doc/glibc-functions/ispunct_l.texi.
36731         * doc/posix-functions/isspace_l.texi: Renamed from
36732         doc/glibc-functions/isspace_l.texi.
36733         * doc/posix-functions/isupper_l.texi: Renamed from
36734         doc/glibc-functions/isupper_l.texi.
36735         * doc/posix-functions/iswalnum_l.texi: Renamed from
36736         doc/glibc-functions/iswalnum_l.texi.
36737         * doc/posix-functions/iswalpha_l.texi: Renamed from
36738         doc/glibc-functions/iswalpha_l.texi.
36739         * doc/posix-functions/iswblank_l.texi: Renamed from
36740         doc/glibc-functions/iswblank_l.texi.
36741         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36742         doc/glibc-functions/iswcntrl_l.texi.
36743         * doc/posix-functions/iswctype_l.texi: Renamed from
36744         doc/glibc-functions/iswctype_l.texi.
36745         * doc/posix-functions/iswdigit_l.texi: Renamed from
36746         doc/glibc-functions/iswdigit_l.texi.
36747         * doc/posix-functions/iswgraph_l.texi: Renamed from
36748         doc/glibc-functions/iswgraph_l.texi.
36749         * doc/posix-functions/iswlower_l.texi: Renamed from
36750         doc/glibc-functions/iswlower_l.texi.
36751         * doc/posix-functions/iswprint_l.texi: Renamed from
36752         doc/glibc-functions/iswprint_l.texi.
36753         * doc/posix-functions/iswpunct_l.texi: Renamed from
36754         doc/glibc-functions/iswpunct_l.texi.
36755         * doc/posix-functions/iswspace_l.texi: Renamed from
36756         doc/glibc-functions/iswspace_l.texi.
36757         * doc/posix-functions/iswupper_l.texi: Renamed from
36758         doc/glibc-functions/iswupper_l.texi.
36759         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36760         doc/glibc-functions/iswxdigit_l.texi.
36761         * doc/posix-functions/isxdigit_l.texi: Renamed from
36762         doc/glibc-functions/isxdigit_l.texi.
36763         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36764         doc/glibc-functions/mbsnrtowcs.texi.
36765         * doc/posix-functions/mkdtemp.texi: Renamed from
36766         doc/glibc-functions/mkdtemp.texi.
36767         * doc/posix-functions/newlocale.texi: Renamed from
36768         doc/glibc-functions/newlocale.texi.
36769         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36770         doc/glibc-functions/nl_langinfo_l.texi.
36771         * doc/posix-functions/open_memstream.texi: Renamed from
36772         doc/glibc-functions/open_memstream.texi.
36773         * doc/posix-functions/opterr.texi: Renamed from
36774         doc/glibc-functions/opterr.texi.
36775         * doc/posix-functions/optind.texi: Renamed from
36776         doc/glibc-functions/optind.texi.
36777         * doc/posix-functions/optopt.texi: Renamed from
36778         doc/glibc-functions/optopt.texi.
36779         * doc/posix-functions/psignal.texi: Renamed from
36780         doc/glibc-functions/psignal.texi.
36781         * doc/posix-functions/scandir.texi: Renamed from
36782         doc/glibc-functions/scandir.texi.
36783         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36784         doc/glibc-functions/sched_get_priority_min.texi.
36785         * doc/posix-functions/signgam.texi: Renamed from
36786         doc/glibc-functions/signgam.texi.
36787         * doc/posix-functions/stpcpy.texi: Renamed from
36788         doc/glibc-functions/stpcpy.texi.
36789         * doc/posix-functions/stpncpy.texi: Renamed from
36790         doc/glibc-functions/stpncpy.texi.
36791         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36792         doc/glibc-functions/strcasecmp_l.texi.
36793         * doc/posix-functions/strcoll_l.texi: Renamed from
36794         doc/glibc-functions/strcoll_l.texi.
36795         * doc/posix-functions/strfmon_l.texi: Renamed from
36796         doc/glibc-functions/strfmon_l.texi.
36797         * doc/posix-functions/strftime_l.texi: Renamed from
36798         doc/glibc-functions/strftime_l.texi.
36799         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36800         doc/glibc-functions/strncasecmp_l.texi.
36801         * doc/posix-functions/strndup.texi: Renamed from
36802         doc/glibc-functions/strndup.texi.
36803         * doc/posix-functions/strnlen.texi: Renamed from
36804         doc/glibc-functions/strnlen.texi.
36805         * doc/posix-functions/strsignal.texi: Renamed from
36806         doc/glibc-functions/strsignal.texi.
36807         * doc/posix-functions/strxfrm_l.texi: Renamed from
36808         doc/glibc-functions/strxfrm_l.texi.
36809         * doc/posix-functions/timer_gettime.texi: Renamed from
36810         doc/glibc-functions/timer_gettime.texi.
36811         * doc/posix-functions/tolower_l.texi: Renamed from
36812         doc/glibc-functions/tolower_l.texi.
36813         * doc/posix-functions/toupper_l.texi: Renamed from
36814         doc/glibc-functions/toupper_l.texi.
36815         * doc/posix-functions/towctrans_l.texi: Renamed from
36816         doc/glibc-functions/towctrans_l.texi.
36817         * doc/posix-functions/towlower_l.texi: Renamed from
36818         doc/glibc-functions/towlower_l.texi.
36819         * doc/posix-functions/towupper_l.texi: Renamed from
36820         doc/glibc-functions/towupper_l.texi.
36821         * doc/posix-functions/uselocale.texi: Renamed from
36822         doc/glibc-functions/uselocale.texi.
36823         * doc/posix-functions/vdprintf.texi: Renamed from
36824         doc/glibc-functions/vdprintf.texi.
36825         * doc/posix-functions/wcpcpy.texi:
36826         Renamed from doc/glibc-functions/wcpcpy.texi.
36827         * doc/posix-functions/wcpncpy.texi: Renamed from
36828         doc/glibc-functions/wcpncpy.texi.
36829         * doc/posix-functions/wcscasecmp.texi: Renamed from
36830         doc/glibc-functions/wcscasecmp.texi.
36831         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36832         doc/glibc-functions/wcscasecmp_l.texi.
36833         * doc/posix-functions/wcscoll_l.texi: Renamed from
36834         doc/glibc-functions/wcscoll_l.texi.
36835         * doc/posix-functions/wcsdup.texi: Renamed from
36836         doc/glibc-functions/wcsdup.texi.
36837         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36838         doc/glibc-functions/wcsncasecmp.texi.
36839         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36840         doc/glibc-functions/wcsncasecmp_l.texi.
36841         * doc/posix-functions/wcsnlen.texi: Renamed from
36842         doc/glibc-functions/wcsnlen.texi.
36843         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36844         doc/glibc-functions/wcsnrtombs.texi.
36845         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36846         doc/glibc-functions/wcsxfrm_l.texi.
36847         * doc/posix-functions/wctrans_l.texi: Renamed from
36848         doc/glibc-functions/wctrans_l.texi.
36849         * doc/posix-functions/wctype_l.texi: Renamed from
36850         doc/glibc-functions/wctype_l.texi.
36851         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36852         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36853         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36854         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36855         these subsections.
36856         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36857         Remove sections.
36858
36859 2008-12-14  Bruno Haible  <bruno@clisp.org>
36860
36861         Update doc for POSIX:2008.
36862         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36863
36864 2008-12-14  Bruno Haible  <bruno@clisp.org>
36865
36866         Update doc for POSIX:2008.
36867         * doc/pastposix-functions/bcmp.texi: Renamed from
36868         doc/posix-functions/bcmp.texi.
36869         * doc/pastposix-functions/bcopy.texi: Renamed from
36870         doc/posix-functions/bcopy.texi.
36871         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36872         doc/posix-functions/bsd_signal.texi.
36873         * doc/pastposix-functions/bzero.texi: Renamed from
36874         doc/posix-functions/bzero.texi.
36875         * doc/pastposix-functions/ecvt.texi: Renamed from
36876         doc/posix-functions/ecvt.texi.
36877         * doc/pastposix-functions/fcvt.texi: Renamed from
36878         doc/posix-functions/fcvt.texi.
36879         * doc/pastposix-functions/ftime.texi: Renamed from
36880         doc/posix-functions/ftime.texi.
36881         * doc/pastposix-functions/gcvt.texi: Renamed from
36882         doc/posix-functions/gcvt.texi.
36883         * doc/pastposix-functions/getcontext.texi: Renamed from
36884         doc/posix-functions/getcontext.texi.
36885         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36886         doc/posix-functions/gethostbyaddr.texi.
36887         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36888         doc/posix-functions/gethostbyname.texi.
36889         * doc/pastposix-functions/getwd.texi: Renamed from
36890         doc/posix-functions/getwd.texi.
36891         * doc/pastposix-functions/h_errno.texi: Renamed from
36892         doc/posix-functions/h_errno.texi.
36893         * doc/pastposix-functions/index.texi: Renamed from
36894         doc/posix-functions/index.texi.
36895         * doc/pastposix-functions/makecontext.texi: Renamed from
36896         doc/posix-functions/makecontext.texi.
36897         * doc/pastposix-functions/mktemp.texi: Renamed from
36898         doc/posix-functions/mktemp.texi.
36899         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36900         doc/posix-functions/pthread_attr_getstackaddr.texi.
36901         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36902         doc/posix-functions/pthread_attr_setstackaddr.texi.
36903         * doc/pastposix-functions/rindex.texi: Renamed from
36904         doc/posix-functions/rindex.texi.
36905         * doc/pastposix-functions/scalb.texi: Renamed from
36906         doc/posix-functions/scalb.texi.
36907         * doc/pastposix-functions/setcontext.texi: Renamed from
36908         doc/posix-functions/setcontext.texi.
36909         * doc/pastposix-functions/swapcontext.texi: Renamed from
36910         doc/posix-functions/swapcontext.texi.
36911         * doc/pastposix-functions/ualarm.texi: Renamed from
36912         doc/posix-functions/ualarm.texi.
36913         * doc/pastposix-functions/usleep.texi: Renamed from
36914         doc/posix-functions/usleep.texi.
36915         * doc/pastposix-functions/vfork.texi: Renamed from
36916         doc/posix-functions/vfork.texi.
36917         * doc/pastposix-functions/wcswcs.texi: Renamed from
36918         doc/posix-functions/wcswcs.texi.
36919         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36920         (Function Substitutes): Update.
36921
36922 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36923
36924         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36925         m4/strerror.m4.
36926
36927 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36928             Bruno Haible  <bruno@clisp.org>
36929
36930         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36931
36932 2008-12-13  Bruno Haible  <bruno@clisp.org>
36933
36934         * modules/strtoull (Depends-on): Remove unistd.
36935
36936 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36937
36938         * modules/strtoull (Depends-on): Add stdlib.
36939
36940 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36941
36942         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36943
36944 2008-12-10  Jim Meyering  <meyering@redhat.com>
36945
36946         gl_ASSERT: don't say assertions are disabled when they're not
36947         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36948         "checking whether to enable assertions... no", when they are in
36949         fact enabled.  This is solely a bug in the output of configure.
36950         In spite of saying "no", NDEBUG was not defined in that case.
36951         Also, as noted by Eric Blake, leave assertions enabled upon
36952         --enable-assert=INVALID.
36953
36954 2008-12-10  Bruno Haible  <bruno@clisp.org>
36955
36956         Change MODULES.html to refer to POSIX:2008 where possible.
36957         * MODULES.html.sh (POSIX2008_URL): New variable.
36958         (posix_headers): Remove sys/timeb, ucontext.
36959         (posix2001_headers): New variable.
36960         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36961         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36962         index, makecontext, mktemp, pthread_attr_getstackaddr,
36963         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36964         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36965         (posix2001_functions): New variable.
36966         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36967         otherwise.
36968
36969 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36970
36971         add missing include to parse-duration.c
36972         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36973         * modules/parse-duration (Depends-on): Add xalloc.
36974
36975         fix sed script reading maint.mk
36976         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36977         (syntax-check-rules): Use it.
36978
36979 2008-12-09  Bruno Haible  <bruno@clisp.org>
36980
36981         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36982         MacOS X 10.4/PowerPC.
36983         Reported by Simon Josefsson.
36984
36985 2008-12-08  Jim Meyering  <meyering@redhat.com>
36986
36987         work around mingw's lack of some S_IF definitions
36988         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36989         Reported by Simon Josefsson.
36990
36991 2008-12-08  Bruno Haible  <bruno@clisp.org>
36992
36993         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36994         applied to variables. Needed on MacOS X 10.4/PowerPC.
36995         Reported by Simon Josefsson.
36996
36997 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36998         and Eric Blake  <ebb9@byu.net>
36999
37000         assert: honor --enable-assert
37001         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
37002         order to honor --enable-assert, rather than treating it as a
37003         synonym for --disable-assert.
37004
37005 2008-12-08  Jim Meyering  <meyering@redhat.com>
37006
37007         * lib/posixtm.c: Remove now-useless declaration of mktime.
37008
37009         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
37010
37011 2008-12-07  Bruno Haible  <bruno@clisp.org>
37012
37013         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
37014         test_once): Mark functions as static.
37015         * tests/test-tls.c (test_tls): Likewise.
37016
37017 2008-12-07  Bruno Haible  <bruno@clisp.org>
37018
37019         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
37020         iconv_register_autodetect.
37021
37022 2008-12-07  Jim Meyering  <meyering@redhat.com>
37023
37024         posixtm.c: avoid a warning
37025         * lib/posixtm.c (posixtime): Don't initialize tm0.
37026         It's no longer needed to placate gcc4's -Wuninitialized,
37027         and the attempt to placate would elicit a new warning.
37028
37029         unicodeio.c: mark unused parameters
37030         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37031         (fallback_failure_callback): Likewise.
37032
37033 2008-12-07  Bruno Haible  <bruno@clisp.org>
37034
37035         * gnulib-tool (func_create_testdir): When building the tests
37036         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
37037         Reported by Simon Josefsson.
37038
37039 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37040
37041         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
37042
37043 2008-12-06  Bruno Haible  <bruno@clisp.org>
37044
37045         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
37046         Suggested by Eric Blake.
37047
37048 2008-12-06  Bruno Haible  <bruno@clisp.org>
37049
37050         Fix a c-stack test failure on MacOS X.
37051         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
37052         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
37053         handler for SIGBUS as well.
37054         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
37055         install a signal handler for SIGBUS as well.
37056         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
37057
37058 2008-12-06  Bruno Haible  <bruno@clisp.org>
37059
37060         Advocacy documentation.
37061         * doc/gnulib-intro.texi (Benefits): New section.
37062         * doc/gnulib.texi: Update.
37063
37064 2008-12-06  Bruno Haible  <bruno@clisp.org>
37065
37066         Document the 'manywarnings' module.
37067         * doc/manywarnings.texi: New file.
37068         * doc/gnulib.texi: Include it.
37069
37070 2008-12-05  Eric Blake  <ebb9@byu.net>
37071
37072         tests: silence some gcc warnings
37073         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
37074         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
37075         type mismatches.
37076
37077 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37078             Bruno Haible  <bruno@clisp.org>
37079
37080         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
37081
37082 2008-11-29  Jim Meyering  <meyering@redhat.com>
37083
37084         unicodeio.c: mark unused parameters
37085         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37086         (fallback_failure_callback): Likewise.
37087
37088         fts: fix a thinko
37089         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
37090         (set_stat_type): Return S_IF*-valued "type" directly.
37091         Prompted by James Youngman's spotting a related bug.
37092         Confirmed by further testing through find.
37093
37094         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
37095         * lib/fts.c (D_TYPE): Define.
37096         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
37097         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
37098         (s_ifmt_shift_bits): New function.
37099         (set_stat_type): New function.
37100         (fts_build): When not calling fts_stat, call set_stat_type
37101         to propagate dirent.d_type info to fts_read caller.
37102         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
37103         fts_statp->st_mode type information may be valid.
37104
37105 2008-11-28  Simon Josefsson  <simon@josefsson.org>
37106
37107         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
37108         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
37109         <sds@gnu.org>.
37110
37111 2008-11-20  Bruno Haible  <bruno@clisp.org>
37112
37113         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
37114         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
37115         INCLUDE_NEXT.
37116         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
37117         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
37118         * modules/math (Makefile.am): Substitute
37119         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
37120         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37121
37122 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37123             Bruno Haible  <bruno@clisp.org>
37124
37125         * lib/stdint.in.h: Define all type macros so that their expansion is
37126         a single typedef'ed token. Fixes a compilation failure in Boost which
37127         does "using ::int8_t;".
37128
37129 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37130
37131         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
37132         gl_MANYWARN_ALL_GCC.
37133         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
37134         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
37135         * modules/manywarnings: New file.
37136         * MODULES.html.sh: Mention manywarnings module.
37137
37138 2008-11-18  Bruno Haible  <bruno@clisp.org>
37139
37140         * doc/gnulib-tool.texi (Unit tests): New section.
37141
37142 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37143
37144         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
37145         paths like 'lib/po/foo.po'.
37146
37147 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37148
37149         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
37150         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
37151
37152 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37153
37154         * m4/warnings.m4: Use CPPFLAGS to really check whether the
37155         parameter works.
37156
37157 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37158
37159         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
37160
37161 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37162
37163         * modules/parse-duration-tests: New file.
37164         * tests/test-parse-duration.sh: New file.
37165         * tests/test-parse-duration.c: New file.
37166
37167         New module 'parse-duration'.
37168         * lib/parse-duration.h: New file.
37169         * lib/parse-duration.c: New file.
37170         * modules/parse-duration: New file.
37171
37172 2008-11-17  Bruno Haible  <bruno@clisp.org>
37173
37174         * tests/test-select-out.sh: Comment out the first pipe test.
37175         Reported by Simon Josefsson.
37176
37177 2008-11-17  Bruno Haible  <bruno@clisp.org>
37178
37179         * modules/getaddrinfo (Depends-on): Add servent, hostent.
37180         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
37181         gl_HOSTENT.
37182
37183 2008-11-17  Bruno Haible  <bruno@clisp.org>
37184
37185         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
37186         -lnetwork and -lnet. Needed for Haiku and BeOS.
37187
37188 2008-11-16  Bruno Haible  <bruno@clisp.org>
37189
37190         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
37191
37192 2008-11-16  Bruno Haible  <bruno@clisp.org>
37193
37194         Avoid test failure on Haiku.
37195         * tests/test-fsync.c: Include <errno.h>.
37196         (main): Don't require that fsync (0) fails.
37197
37198 2008-11-15  Bruno Haible  <bruno@clisp.org>
37199
37200         New module 'hostent'.
37201         * modules/hostent: New file.
37202         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
37203
37204 2008-11-15  Bruno Haible  <bruno@clisp.org>
37205
37206         New module 'servent'.
37207         * modules/servent: New file.
37208         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
37209
37210 2008-11-15  Bruno Haible  <bruno@clisp.org>
37211
37212         Avoid generating same test program with two different rules.
37213         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
37214         test-frexp to test-frexp-nolibm.
37215         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
37216         test-frexpl to test-frexpl-nolibm.
37217
37218 2008-11-15  Bruno Haible  <bruno@clisp.org>
37219
37220         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
37221         $(FREXPL_LIBM).
37222
37223 2008-11-15  Bruno Haible  <bruno@clisp.org>
37224
37225         * lib/netdb.in.h: Activate the definitions also when the system's
37226         <netdb.h> has 'struct addrinfo'.
37227         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
37228         EAI_OVERFLOW or AI_NUMERICSERV.
37229         * doc/posix-headers/netdb.texi: Document the problem.
37230
37231 2008-11-15  Bruno Haible  <bruno@clisp.org>
37232
37233         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
37234
37235         Make the 'sched' module work on platforms where <sched.h> exists but
37236         is incomplete (such as Haiku).
37237         * lib/sched.in.h; Include the system's <sched.h> if it exists.
37238         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
37239         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
37240         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
37241         HAVE_STRUCT_SCHED_PARAM.
37242         * modules/sched (Depends-on): Add include_next.
37243         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
37244         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
37245         * doc/posix-headers/sched.texi: Document the issue.
37246
37247 2008-11-13  Jim Meyering  <meyering@redhat.com>
37248
37249         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
37250         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
37251         test would fail due to the difference in the Report bugs to ...
37252         line.  The expected address is empty, "<>", while the actual
37253         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
37254
37255 2008-11-12  Bruno Haible  <bruno@clisp.org>
37256
37257         lstat: don't compile lstat.c on systems lacking lstat
37258         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
37259         which don't have lstat; this is handled by lib/sys_stat.in.h already.
37260         Reported by Daniel P. Berrange via Jim Meyering.
37261
37262 2008-11-12  Jim Meyering  <meyering@redhat.com>
37263
37264         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
37265
37266 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37267
37268         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
37269         instead.
37270
37271 2008-11-12  Bruno Haible  <bruno@clisp.org>
37272
37273         * lib/unicodeio.c: Include unistr.h.
37274         (utf8_wctomb): Remove function.
37275         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
37276
37277 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37278
37279         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
37280         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
37281         <bruno@clisp.org>.
37282         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
37283
37284 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37285
37286         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
37287         * doc/gnulib.texi: Add section for warnings.
37288
37289 2008-11-11  Bruno Haible  <bruno@clisp.org>
37290
37291         * lib/sockets.h: Add a comment.
37292
37293 2008-11-11  Karl Berry  <karl@gnu.org>
37294
37295         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
37296
37297 2008-11-11  Eric Blake  <ebb9@byu.net>
37298
37299         fdl.texi: avoid git symlinks
37300         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
37301
37302 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37303
37304         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
37305
37306 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37307
37308         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
37309         (gl_WARN_ADD): Substitute $2 if literal.
37310
37311 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37312
37313         * m4/warning.m4: Remove.
37314
37315 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37316
37317         * m4/warnings.m4: Almost complete rewrite. :-)
37318
37319 2008-11-10  Simon Josefsson  <simon@josefsson.org>
37320
37321         * modules/warnings: New module.
37322         * m4/warnings.m4: New file.
37323         * MODULES.html.sh: Mention warnings module.
37324         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37325         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37326
37327 2008-11-10  Eric Blake  <ebb9@byu.net>
37328
37329         fdl.texi: make a symlink to the latest version
37330         * doc/standards.texi: Revert today's earlier change.
37331         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37332         * doc/fdl.texi: ...and replace this with a symlink to the newer
37333         fdl-1.3.texi.
37334
37335 2008-11-10  Bruno Haible  <bruno@clisp.org>
37336
37337         * tests/test-select-fd.c (main): Accept the result file name as fourth
37338         argument.
37339         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37340         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37341
37342 2008-11-10  Bruno Haible  <bruno@clisp.org>
37343
37344         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37345         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37346         as autoconf-substituted macros.
37347         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37348         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37349         gl_NETDB_H_DEFAULTS. Set these variables.
37350         * modules/netdb (Makefile.am): Substitute these variables.
37351
37352 2008-11-10  Eric Blake  <ebb9@byu.net>
37353
37354         standards.texi: include correct file for FDL 1.3
37355         * doc/standards.texi (GNU Free Documentation License): Change
37356         include file to pull in FDL 1.3, not 1.2.
37357
37358         fdl.texi: revert accidental change to license
37359         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37360
37361 2008-11-10  Bruno Haible  <bruno@clisp.org>
37362
37363         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37364         cross-compiling guesses also when the native compile gives no result.
37365
37366 2008-11-10  Bruno Haible  <bruno@clisp.org>
37367
37368         * lib/spawni.c (__spawni): Force variable into the stack.
37369
37370 2008-11-10  Bruno Haible  <bruno@clisp.org>
37371
37372         Add support for Haiku.
37373         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37374         glibc and BeOS, but also on Haiku.
37375         * lib/fpurge.c (fpurge): Likewise.
37376         * lib/freadable.c (freadable): Likewise.
37377         * lib/freadahead.c (freadahead): Likewise.
37378         * lib/freading.c (freading): Likewise.
37379         * lib/freadptr.c (freadptr): Likewise.
37380         * lib/freadseek.c (freadptrinc): Likewise.
37381         * lib/fseeko.c (rpl_fseeko): Likewise.
37382         * lib/fseterr.c (fseterr): Likewise.
37383         * lib/fwritable.c (fwritable): Likewise.
37384         * lib/fwriting.c (fwriting): Likewise.
37385         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37386
37387 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37388
37389         * lib/config.charset: Treat Haiku like BeOS.
37390
37391 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37392
37393         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37394         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37395
37396 2008-11-08  Bruno Haible  <bruno@clisp.org>
37397
37398         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37399         AC_CACHE_CHECK.
37400
37401 2008-11-08  Bruno Haible  <bruno@clisp.org>
37402
37403         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37404
37405 2008-11-08  Bruno Haible  <bruno@clisp.org>
37406
37407         * tests/test-select-fd.c: New file.
37408         * tests/test-select-in.sh: New file.
37409         * tests/test-select-out.sh: New file.
37410         * tests/test-select-stdin.c: New file.
37411         * modules/select-tests (Files): Add the new files.
37412         (Depends-on): Add gettimeofday.
37413         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37414         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37415         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37416
37417 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37418             Bruno Haible  <bruno@clisp.org>
37419
37420         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37421
37422 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37423
37424         * build-aux/pmccabe2html: Added support for C++ source files.
37425
37426 2008-11-05  Ben Pfaff  <blp@gnu.org>
37427
37428         Fix lib/close.c build on Windows.
37429         * modules/close (Files): Add lib/w32sock.h.
37430
37431 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37432
37433         Accept Bison's NEWS format.
37434         * build-aux/announce-gen (print_news_deltas): Tweak
37435         $re_prefix.
37436
37437 2008-11-04  Bruno Haible  <bruno@clisp.org>
37438
37439         * modules/random_r (Maintainer): Add glibc.
37440
37441 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37442
37443         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37444         by karl@freefriends.org (Karl Berry).
37445         * doc/alloca.texi: Likewise.
37446         * doc/c-ctype.texi: Likewise.
37447         * doc/c-strcase.texi: Likewise.
37448         * doc/c-strcaseeq.texi: Likewise.
37449         * doc/c-strcasestr.texi: Likewise.
37450         * doc/c-strstr.texi: Likewise.
37451         * doc/c-strtod.texi: Likewise.
37452         * doc/c-strtold.texi: Likewise.
37453         * doc/ctime.texi: Likewise.
37454         * doc/error.texi: Likewise.
37455         * doc/fdl.texi: Likewise.
37456         * doc/gcd.texi: Likewise.
37457         * doc/getdate.texi: Likewise.
37458         * doc/gnulib-intro.texi: Likewise.
37459         * doc/gnulib-tool.texi: Likewise.
37460         * doc/gnulib.texi: Likewise.
37461         * doc/inet_ntoa.texi: Likewise.
37462         * doc/maintain.texi: Likewise.
37463         * doc/make-stds.texi: Likewise.
37464         * doc/quote.texi: Likewise.
37465         * doc/regexprops-generic.texi: Likewise.
37466         * doc/standards.texi: Likewise.
37467         * doc/verify.texi: Likewise.
37468         * doc/visibility.texi: Likewise.
37469         * doc/gnulib.texi (GNU Free Documentation License): Include
37470         fdl-1.3.texi instead of fdl.texi.
37471
37472 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37473
37474         * doc/fdl-1.3.texi: New file, from
37475         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37476         * modules/fdl-1.3: Add.
37477         * MODULES.html.sh: Add fdl-1.3.
37478
37479 2008-11-03  Bruno Haible  <bruno@clisp.org>
37480
37481         Make determination of absolute name of header file work with AIX xlc.
37482         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37483         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37484         preprocessing.
37485         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37486         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37487
37488 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37489
37490         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37491         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37492         <ludo@gnu.org>.
37493
37494 2008-11-02  Bruno Haible  <bruno@clisp.org>
37495
37496         Mark 'strpbrk' obsolete.
37497         * modules/strpbrk (Status, Notice): New sections.
37498         * modules/strtok_r (Depends-on): Add strpbrk.
37499
37500 2008-11-02  Bruno Haible  <bruno@clisp.org>
37501
37502         Mark 'strdup' obsolete.
37503         * modules/strdup (Status, Notice): New sections.
37504         * modules/findprog (Depends-on): Add strdup.
37505         * modules/getaddrinfo (Depends-on): Likewise.
37506         * modules/localename (Depends-on): Likewise.
37507         * modules/relocatable-lib (Depends-on): Likewise.
37508         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37509         * modules/relocatable-prog (Depends-on): Likewise.
37510         * modules/trim (Depends-on): Likewise.
37511         * modules/unictype/gen-ctype (Depends-on): Likewise.
37512         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37513
37514 2008-11-02  Bruno Haible  <bruno@clisp.org>
37515
37516         Mark 'strcspn' obsolete.
37517         * modules/strcspn (Status, Notice): New sections.
37518
37519 2008-11-02  Bruno Haible  <bruno@clisp.org>
37520
37521         Mark 'rmdir' obsolete.
37522         * modules/rmdir (Status, Notice): New sections.
37523         * modules/clean-temp (Depends-on): Add rmdir.
37524         * modules/openat (Depends-on): Likewise.
37525
37526 2008-11-02  Bruno Haible  <bruno@clisp.org>
37527
37528         Mark 'raise' obsolete.
37529         * modules/raise (Status, Notice): New sections.
37530         (Include): Specify <signal.h>.
37531         * modules/stdio (Depends-on): Add raise.
37532         * modules/write (Depends-on): Likewise.
37533
37534 2008-11-02  Bruno Haible  <bruno@clisp.org>
37535
37536         Mark 'memset' obsolete.
37537         * modules/memset (Status, Notice): New sections.
37538
37539 2008-11-02  Bruno Haible  <bruno@clisp.org>
37540
37541         Mark 'memmove' obsolete.
37542         * modules/memmove (Status, Notice): New sections.
37543         * modules/argp (Depends-on): Add memmove.
37544         * modules/argz (Depends-on): Likewise.
37545         * modules/canonicalize (Depends-on): Likewise.
37546         * modules/canonicalize-lgpl (Depends-on): Likewise.
37547         * modules/fts (Depends-on): Likewise.
37548         * modules/getcwd (Depends-on): Likewise.
37549         * modules/human (Depends-on): Likewise.
37550         * modules/regex (Depends-on): Likewise.
37551         * modules/striconveh (Depends-on): Likewise.
37552         * modules/trim (Depends-on): Likewise.
37553         * modules/unistr/u8-move (Depends-on): Likewise.
37554         * modules/unistr/u16-move (Depends-on): Likewise.
37555         * modules/unistr/u32-move (Depends-on): Likewise.
37556
37557 2008-11-02  Bruno Haible  <bruno@clisp.org>
37558
37559         Mark 'memcpy' obsolete.
37560         * modules/memcpy (Status, Notice): New sections.
37561
37562 2008-11-02  Bruno Haible  <bruno@clisp.org>
37563
37564         Mark 'memcmp' obsolete.
37565         * modules/memcmp (Status, Notice): New sections.
37566         * modules/argmatch (Depends-on): Add memchr.
37567         * modules/backupfile (Depends-on): Likewise.
37568         * modules/c-strcasestr (Depends-on): Likewise.
37569         * modules/crypto/des (Depends-on): Likewise.
37570         * modules/csharpcomp (Depends-on): Likewise.
37571         * modules/fnmatch (Depends-on): Likewise.
37572         * modules/git-merge-changelog (Depends-on): Likewise.
37573         * modules/isnand (Depends-on): Likewise.
37574         * modules/isnand-nolibm (Depends-on): Likewise.
37575         * modules/isnanf (Depends-on): Likewise.
37576         * modules/isnanf-nolibm (Depends-on): Likewise.
37577         * modules/isnanl (Depends-on): Likewise.
37578         * modules/isnanl-nolibm (Depends-on): Likewise.
37579         * modules/mbchar (Depends-on): Likewise.
37580         * modules/memcoll (Depends-on): Likewise.
37581         * modules/quotearg (Depends-on): Likewise.
37582         * modules/regex (Depends-on): Likewise.
37583         * modules/relocatable-prog (Depends-on): Likewise.
37584         * modules/same (Depends-on): Likewise.
37585         * modules/signbit (Depends-on): Likewise.
37586         * modules/strcasestr-simple (Depends-on): Likewise.
37587         * modules/unictype/gen-ctype (Depends-on): Likewise.
37588         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37589         * modules/uniname/uniname (Depends-on): Likewise.
37590         * modules/unistr/u8-cmp (Depends-on): Likewise.
37591
37592 2008-11-02  Bruno Haible  <bruno@clisp.org>
37593
37594         Mark 'memchr' obsolete.
37595         * modules/memchr (Status, Notice): New sections.
37596         * modules/argp (Depends-on): Add memchr.
37597         * modules/base64 (Depends-on): Likewise.
37598         * modules/c-strcasestr (Depends-on): Likewise.
37599         * modules/chdir-long (Depends-on): Likewise.
37600         * modules/fnmatch (Depends-on): Likewise.
37601         * modules/getsubopt (Depends-on): Likewise.
37602         * modules/git-merge-changelog (Depends-on): Likewise.
37603         * modules/glob (Depends-on): Likewise.
37604         * modules/strcasestr-simple (Depends-on): Likewise.
37605         * modules/strnlen (Depends-on): Likewise.
37606
37607 2008-11-02  Bruno Haible  <bruno@clisp.org>
37608
37609         Mark 'atexit' obsolete.
37610         * modules/atexit (Status, Notice): New sections.
37611         * modules/chdir-long (Depends-on): Add atexit.
37612         * modules/wait-process (Depends-on): Likewise.
37613
37614 2008-11-02  Bruno Haible  <bruno@clisp.org>
37615
37616         * gnulib-tool: New option --with-obsolete.
37617         (func_usage): Document it.
37618         (func_modules_transitive_closure): Drop obsolete dependencies if
37619         incobsolete is not true.
37620         (func_import): Read and save the incobsolete variable to the cache.
37621
37622 2008-11-02  Bruno Haible  <bruno@clisp.org>
37623
37624         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37625         * gnulib-tool: New option --extract-status.
37626         (func_usage): Document it.
37627         (sed_extract_prog): Recognize it.
37628         (func_get_status): New function.
37629
37630 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37631
37632         * modules/sockets (License): Change from LGPL to LGPLv2+.
37633
37634 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37635
37636         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37637
37638 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37639
37640         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37641         Mention times and sys_times.
37642         * modules/sys_times, modules/sys_times-tests: New modules.
37643         * modules/times, modules/times-tests: Likewise
37644         * m4/sys_times_h.m4: New file.
37645         * lib/sys_times.in.h: Likewise
37646         * lib/times.c: Likewise.
37647         * tests/test-sys_times.c: Likewise.
37648         * tests/test-times.c: Likewise.
37649         * doc/posix-headers/sys_times.texi: Update.
37650         * doc/posix-functions/times.texi: Update.
37651
37652 2008-10-28  Jim Meyering  <meyering@redhat.com>
37653
37654         * modules/tempname (Depends-on): Add lstat.
37655
37656         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37657
37658 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37659
37660         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37661         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37662         using idiom used elsewhere in gnulib.
37663
37664 2008-10-27  Jim Meyering  <meyering@redhat.com>
37665
37666         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37667
37668 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37669
37670         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37671         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37672         programs.
37673         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37674
37675 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37676
37677         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37678
37679 2008-10-27  Bruno Haible  <bruno@clisp.org>
37680
37681         * tests/test-lstat.c: Include <stdio.h>.
37682
37683 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37684
37685         * modules/lstat-tests: New module.
37686         * tests/test-lstat.c: New file.
37687
37688 2008-10-26  Jim Meyering  <meyering@redhat.com>
37689
37690         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37691
37692 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37693             Bruno Haible  <bruno@clisp.org>
37694
37695         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37696         * modules/configmake (Include): Add a note that the include must come
37697         after all system headers.
37698         * lib/javaversion.c: Include configmake.h after all other includes.
37699
37700 2008-10-26  Bruno Haible  <bruno@clisp.org>
37701
37702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37703         HAVE_STRUCT_RANDOM_DATA to 1.
37704         (gl_STDLIB_H): Simplify.
37705
37706 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37707
37708         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37709         substitute HAVE_STRUCT_RANDOM_DATA.
37710         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37711         random_data.
37712         * modules/stdlib (Makefile.am): Substitute
37713         HAVE_STRUCT_RANDOM_DATA.
37714
37715 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37716
37717         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37718         * doc/gnulib-intro.texi (Copyright): Likewise.
37719
37720 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37721
37722         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37723         findings.
37724
37725 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37726             Bruno Haible  <bruno@clisp.org>
37727
37728         * lib/unistd.in.h: Include <winsock2.h>.
37729         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37730         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37731         Provide dummy declarations.
37732         (gethostname): Override.
37733         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37734         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37735         gl_PREREQ_SYS_H_WINSOCK2.
37736         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37737         * doc/posix-functions/gethostname.texi: More details.
37738
37739 2008-10-25  Bruno Haible  <bruno@clisp.org>
37740
37741         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37742         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37743         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37744
37745         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37746         here ...
37747         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37748         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37749         gl_UNISTD_H_DEFAULTS.
37750
37751 2008-10-25  Eric Blake  <ebb9@byu.net>
37752
37753         signbit: avoid spurious compiler failure
37754         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37755         declarations inside function.
37756
37757 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37758             Bruno Haible  <bruno@clisp.org>
37759
37760         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37761         * modules/random_r (Depends-on): Add stdint.
37762
37763 2008-10-24  Bruno Haible  <bruno@clisp.org>
37764
37765         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37766         Eggert.
37767         * modules/strerror (License): Likewise.
37768
37769 2008-10-24  Jim Meyering  <meyering@redhat.com>
37770
37771         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37772         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37773
37774 2008-10-24  Eric Blake  <ebb9@byu.net>
37775
37776         getgroups: fix compilation when getgroups is available
37777         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37778         but with <config.h> override of getgroups disabled.
37779
37780 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37781
37782         * doc/gnulib.texi (Header files): Add note about C++ problems.
37783         Explained by Bruno Haible <bruno@clisp.org>.
37784
37785 2008-10-23  Bruno Haible  <bruno@clisp.org>
37786
37787         Define a dummy SA_NODEFER macro on Interix.
37788         * lib/signal.in.h (SA_NODEFER): Define fallback.
37789         Reported by Aleksey Cheusov <cheusov@tut.by> via
37790         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37791
37792 2008-10-23  Bruno Haible  <bruno@clisp.org>
37793
37794         * modules/freadahead (License): Change to LGPLv2+.
37795         Suggested by Simon Josefsson.
37796
37797 2008-10-23  Jim Meyering  <meyering@redhat.com>
37798
37799         random_r: new module
37800         * modules/random_r: New file.
37801         * m4/random_r.m4: New file.
37802         * lib/random_r.c: New file, from glibc.
37803         * modules/random_r-tests: New file.
37804         * tests/test-random_r.c: New file.
37805         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37806          Declare.
37807         (RAND_MAX): Define.
37808         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37809         * modules/stdlib: Substitute them, too.
37810         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37811         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37812         * doc/glibc-functions/random_r.texi: Likewise.
37813         * doc/glibc-functions/setstate_r.texi: Likewise.
37814         * doc/glibc-functions/srandom_r.texi: Likewise.
37815         * config/srclist.txt: Mention it.
37816
37817 2008-10-23  David Lutterkort  <lutter@redhat.com>
37818
37819         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37820         link requirement
37821
37822 2008-10-23  Jim Meyering  <meyering@redhat.com>
37823
37824         selinux-h: mark parameters of stub functions as intentionally unused
37825         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37826         * lib/se-context.in.h: Likewise.
37827
37828 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37829
37830         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37831
37832 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37833
37834         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37835
37836 2008-10-22  Eric Blake  <ebb9@byu.net>
37837
37838         glthread/thread: avoid compiler warning
37839         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37840         Add unreachable abort to silence compiler.
37841
37842 2008-10-22  Eric Blake  <ebb9@byu.net>
37843
37844         netdb: also supply struct addrinfo for cygwin 1.5.x
37845         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37846         older cygwin.
37847         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37848         cygwin.
37849         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37850
37851 2008-10-22  Bruno Haible  <bruno@clisp.org>
37852
37853         * users.txt: Update entry about pspp.
37854
37855 2008-10-21  Bruno Haible  <bruno@clisp.org>
37856
37857         Simplification.
37858         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37859         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37860
37861         Simplification.
37862         * lib/ioctl.c (ioctl): Don't undefine.
37863         * lib/socket.c (socket): Don't undefine.
37864
37865         Remove unused module indicator macros.
37866         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37867         GNULIB_$1 as a C macro.
37868
37869         * doc/posix-functions/close.texi: Undo last change.
37870         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37871         Windows platforms.
37872
37873 2008-10-21  Bruno Haible  <bruno@clisp.org>
37874
37875         Add gethostname() declaration to <unistd.h>.
37876         * lib/unistd.in.h (gethostname): New declaration.
37877         * lib/gethostname.c: Include <unistd.h>.
37878         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37879         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37881         and HAVE_GETHOSTNAME.
37882         * modules/gethostname (Depends-on): Add unistd.
37883         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37884         (Include): Specify <unistd.h>.
37885         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37886         HAVE_GETHOSTNAME.
37887         * tests/test-gethostname.c: Include <unistd.h> first.
37888
37889 2008-10-21  Bruno Haible  <bruno@clisp.org>
37890
37891         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37892         * modules/select-tests (Depends-on): Likewise.
37893         Reported by Simon Josefsson.
37894
37895 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37896
37897         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37898         * lib/accept.c: New file, based on winsock.c.
37899         * lib/bind.c: New file, based on winsock.c.
37900         * lib/connect.c: New file, based on winsock.c.
37901         * lib/getpeername.c: New file, based on winsock.c.
37902         * lib/getsockname.c: New file, based on winsock.c.
37903         * lib/getsockopt.c: New file, based on winsock.c.
37904         * lib/ioctl.c: New file, based on winsock.c.
37905         * lib/listen.c: New file, based on winsock.c.
37906         * lib/recv.c: New file, based on winsock.c.
37907         * lib/recvfrom.c: New file, based on winsock.c.
37908         * lib/send.c: New file, based on winsock.c.
37909         * lib/sendto.c: New file, based on winsock.c.
37910         * lib/setsockopt.c: New file, based on winsock.c.
37911         * lib/shutdown.c: New file, based on winsock.c.
37912         * lib/socket.c: New file, based on winsock.c.
37913         * lib/w32sock.h: New file, based on winsock.c.
37914         * lib/winsock.c: Remove file.
37915         * modules/accept: Likewise.
37916         * modules/bind: Likewise.
37917         * modules/connect: Likewise.
37918         * modules/getpeername: Likewise.
37919         * modules/getsockname: Likewise.
37920         * modules/getsockopt: Likewise.
37921         * modules/ioctl: Likewise.
37922         * modules/listen: Likewise.
37923         * modules/recv: Likewise.
37924         * modules/recvfrom: Likewise.
37925         * modules/send: Likewise.
37926         * modules/sendto: Likewise.
37927         * modules/setsockopt: Likewise.
37928         * modules/shutdown: Likewise.
37929         * modules/socket: Use socket.c instead of winsock.c.
37930         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37931         * doc/posix-functions/accept.texi: Doc fix.
37932         * doc/posix-functions/bind.texi: Doc fix.
37933         * doc/posix-functions/close.texi: Doc fix.
37934         * doc/posix-functions/connect.texi: Doc fix.
37935         * doc/posix-functions/getpeername.texi: Doc fix.
37936         * doc/posix-functions/getsockname.texi: Doc fix.
37937         * doc/posix-functions/getsockopt.texi: Doc fix.
37938         * doc/posix-functions/ioctl.texi: Doc fix.
37939         * doc/posix-functions/listen.texi: Doc fix.
37940         * doc/posix-functions/recv.texi: Doc fix.
37941         * doc/posix-functions/recvfrom.texi: Doc fix.
37942         * doc/posix-functions/send.texi: Doc fix.
37943         * doc/posix-functions/sendto.texi: Doc fix.
37944         * doc/posix-functions/setsockopt.texi: Doc fix.
37945         * doc/posix-functions/shutdown.texi: Doc fix.
37946         * doc/posix-functions/socket.texi: Doc fix.
37947
37948 2008-10-20  Bruno Haible  <bruno@clisp.org>
37949
37950         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37951         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37952         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37953         as an alias for SIGABRT.
37954         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37955         (sigaction): Map it to SIGABRT.
37956         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37957
37958 2008-10-20  Bruno Haible  <bruno@clisp.org>
37959
37960         * lib/fts.c: Don't include lstat.h.
37961         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37962
37963         Move the lstat() declaration to <sys/stat.h>.
37964         * lib/lstat.h: Remove file.
37965         * lib/sys_stat.in.h: Add special invocation convention.
37966         (lstat): New declaration.
37967         * lib/lstat.c (orig_lstat): New function.
37968         (rpl_lstat): Use orig_lstat instead of lstat.
37969         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37970         AC_C_INLINE. Set REPLACE_LSTAT.
37971         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37972         and REPLACE_LSTAT.
37973         * modules/lstat (Files): Remove lib/lstat.h.
37974         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37975         (Include): Specify <sys/stat.h> instead of lstat.h.
37976         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37977         REPLACE_LSTAT.
37978         * NEWS: Mention the change.
37979
37980 2008-10-20  Bruno Haible  <bruno@clisp.org>
37981
37982         * modules/posix_spawn-tests: New file.
37983         * tests/test-posix_spawn3.c: New file.
37984
37985 2008-10-20  Bruno Haible  <bruno@clisp.org>
37986
37987         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37988         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37989         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37990         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37991         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37992
37993 2008-10-20  Bruno Haible  <bruno@clisp.org>
37994
37995         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37996         of posix_spawn on AIX 5.3.
37997
37998 2008-10-20  Bruno Haible  <bruno@clisp.org>
37999
38000         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
38001
38002 2008-10-20  Bruno Haible  <bruno@clisp.org>
38003
38004         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
38005         of AC_LANG_PROGRAM.
38006
38007 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38008
38009         * lib/netdb.in.h: Don't define GNU specific constants until they
38010         are supported or needed.  Reported by Bruno Haible
38011         <bruno@clisp.org>.
38012
38013 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38014
38015         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
38016
38017 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38018
38019         * lib/getaddrinfo.h: Remove file.
38020         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
38021         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
38022         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
38023         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
38024         * modules/netdb: Substitute GNULIB_GETADDRINFO.
38025         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
38026         * tests/test-getaddrinfo.c: Likewise.
38027         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
38028         * NEWS: Mention change.
38029
38030 2008-10-19  Bruno Haible  <bruno@clisp.org>
38031
38032         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
38033
38034 2008-10-19  Bruno Haible  <bruno@clisp.org>
38035
38036         * lib/wait-process.c: Include simply <sys/wait.h>.
38037         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
38038         WIFSTOPPED): Remove fallback definitions.
38039         * modules/wait-process (Depends-on): Add sys_wait.
38040
38041         New module 'sys_wait'.
38042         * modules/sys_wait: New file.
38043         * lib/sys_wait.in.h: New file, partially copied from
38044         lib/wait-process.c.
38045         * m4/sys_wait_h.m4: New file.
38046         * doc/posix-headers/sys_wait.texi: Mention the new module.
38047
38048 2008-10-19  Bruno Haible  <bruno@clisp.org>
38049
38050         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
38051
38052 2008-10-19  Bruno Haible  <bruno@clisp.org>
38053
38054         Assume that waitpid() fills an 'int' status, not a 'union wait'.
38055         * lib/wait-process.c (WAIT_T): Remove type.
38056         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
38057         (wait_subprocess): Update.
38058
38059 2008-10-19  Bruno Haible  <bruno@clisp.org>
38060
38061         New module 'atoll'.
38062         * modules/atoll: New file.
38063         * lib/stdlib.in.h (atoll): New declaration.
38064         * lib/atoll.c: New file, from glibc with modifications.
38065         * m4/atoll.m4: New file.
38066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
38067         HAVE_ATOLL.
38068         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
38069         * doc/posix-functions/atoll.texi: Mention the new module.
38070
38071 2008-10-19  Bruno Haible  <bruno@clisp.org>
38072
38073         Add strtoull() declaration to <stdlib.h>.
38074         * lib/stdlib.in.h (strtoull): New declaration.
38075         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38076         Set HAVE_STRTOULL.
38077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
38078         HAVE_STRTOULL.
38079         * modules/strtoull (Depends-on): Add stdlib.
38080         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38081         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
38082         HAVE_STRTOULL.
38083
38084 2008-10-19  Bruno Haible  <bruno@clisp.org>
38085
38086         Add strtoll() declaration to <stdlib.h>.
38087         * lib/stdlib.in.h (strtoll): New declaration.
38088         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38089         Set HAVE_STRTOLL.
38090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
38091         HAVE_STRTOLL.
38092         * modules/strtoll (Depends-on): Add stdlib.
38093         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38094         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
38095
38096 2008-10-19  Bruno Haible  <bruno@clisp.org>
38097
38098         * modules/bcopy (Depends-on): Add strings.
38099         (Include): Specify <strings.h>.
38100
38101 2008-10-19  Bruno Haible  <bruno@clisp.org>
38102
38103         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
38104
38105 2008-10-19  Bruno Haible  <bruno@clisp.org>
38106
38107         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
38108         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
38109         mingw.
38110
38111 2008-10-19  Bruno Haible  <bruno@clisp.org>
38112
38113         * lib/atanl.c: Don't include isnanl.h.
38114         * lib/cosl.c: Likewise.
38115         * lib/ldexpl.c: Likewise.
38116         * lib/logl.c: Likewise.
38117         * lib/sinl.c: Likewise.
38118         * lib/sqrtl.c: Likewise.
38119         * lib/tanl.c: Likewise.
38120
38121         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
38122         * lib/isnanf.h: Remove file.
38123         * lib/isnand.h: Remove file.
38124         * lib/isnanl.h: Remove file.
38125         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
38126         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
38127         macros.
38128         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
38129         HAVE_ISNANF, don't define it as a C macro.
38130         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
38131         HAVE_ISNAND, don't define it as a C macro.
38132         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
38133         HAVE_ISNANL, don't define it as a C macro.
38134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
38135         HAVE_ISNAN[FDL].
38136         * modules/isnanf (Files): Remove lib/isnanf.h.
38137         (Depends-on): Add math.
38138         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38139         (Include): Specify <math.h> instead of isnanf.h.
38140         * modules/isnand (Files): Remove lib/isnand.h.
38141         (Depends-on): Add math.
38142         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38143         (Include): Specify <math.h> instead of isnand.h.
38144         * modules/isnanl (Files): Remove lib/isnanl.h.
38145         (Depends-on): Add math.
38146         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38147         (Include): Specify <math.h> instead of isnanl.h.
38148         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
38149         HAVE_ISNAN[FDL].
38150         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
38151         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
38152         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
38153         * NEWS: Mention the change.
38154
38155 2008-10-18  Bruno Haible  <bruno@clisp.org>
38156
38157         Add getusershell(), setusershell(), endusershell() declarations to
38158         <unistd.h>.
38159         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
38160         declarations.
38161         * lib/getusershell.c: Include unistd.h.
38162         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
38163         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38164         HAVE_GETUSERSHELL.
38165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
38166         and HAVE_GETUSERSHELL.
38167         * modules/getusershell (Depends-on): Add unistd, extensions.
38168         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38169         (Include): Specify <unistd.h>.
38170         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
38171         HAVE_GETUSERSHELL.
38172
38173 2008-10-18  Bruno Haible  <bruno@clisp.org>
38174
38175         Add a getloadavg() declaration to <stdlib.h>.
38176         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
38177         getloadavg declaration.
38178         (getloadavg): New declaration.
38179         * lib/getloadavg.c: Include <stdlib.h> first.
38180         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
38181         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
38182         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
38183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
38184         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38185         * modules/getloadavg (Depends-on): Add stdlib, extensions.
38186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38187         (Include): Specify <stdlib.h>.
38188         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
38189         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38190
38191 2008-10-18  Bruno Haible  <bruno@clisp.org>
38192
38193         * lib/dirchownmod.c: Don't include lchmod.h.
38194
38195         Move the lchmod() declaration to <sys/stat.h>.
38196         * lib/lchmod.h: Remove file.
38197         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
38198         (lchmod): New declaration, moved here from lib/lchown.h.
38199         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
38200         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
38201         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
38202         and HAVE_LCHMOD.
38203         * modules/lchmod (Files): Remove lib/lchmod.h.
38204         (Depends-on): Add sys_stat, extensions.
38205         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38206         (Include): Specify <sys/stat.h> instead of lchmod.h.
38207         * modules/sys_stat (Depends-on): Add link-warning.
38208         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
38209         definition of GL_LINK_WARNING.
38210         * NEWS: Mention the change.
38211
38212 2008-10-18  Bruno Haible  <bruno@clisp.org>
38213
38214         * lib/fchdir.c: Don't include dirfd.h.
38215         * lib/fts.c: Likewise.
38216         * lib/getcwd.c: Likewise.
38217         * lib/glob.c: Likewise.
38218
38219         Move the dirfd() declaration to <dirent.h>.
38220         * lib/dirfd.h: Remove file.
38221         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
38222         (dirfd): New declaration.
38223         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
38224         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
38225         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
38226         HAVE_DECL_DIRFD.
38227         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
38228         HAVE_DECL_DIRFD.
38229         * modules/dirfd (Files): Remove lib/dirfd.h.
38230         (Depends-on): Add dirent, extensions.
38231         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
38232         (Include): Specify <dirent.h> instead of dirfd.h.
38233         * modules/dirent (Depends-on): Add link-warning.
38234         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
38235         definition of GL_LINK_WARNING.
38236         * NEWS: Mention the change.
38237
38238 2008-10-18  Bruno Haible  <bruno@clisp.org>
38239
38240         Move the euidaccess() declaration to <unistd.h>.
38241         * lib/euidaccess.h: Remove file.
38242         * lib/unistd.in.h (euidaccess): New declaration.
38243         * lib/euidaccess.c: Don't include euidaccess.h.
38244         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
38245         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
38246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
38247         and HAVE_EUIDACCESS.
38248         * modules/euidaccess (Files): Remove lib/euidaccess.h.
38249         (Depends-on): Add unistd.
38250         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38251         (Include): Specify <unistd.h> instead of euidaccess.h.
38252         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
38253         HAVE_EUIDACCESS.
38254         * NEWS: Mention the change.
38255
38256 2008-10-18  Bruno Haible  <bruno@clisp.org>
38257
38258         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
38259
38260         Move the getdomainname() declaration to <unistd.h>.
38261         * lib/getdomainname.h: Remove file.
38262         * lib/unistd.in.h (getdomainname): New declaration.
38263         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
38264         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38265         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38266         HAVE_GETDOMAINNAME.
38267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38268         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
38269         * modules/getdomainname (Files): Remove lib/getdomainname.h.
38270         (Depends-on): Add unistd, extensions.
38271         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38272         (Includes): Specify <unistd.h> instead of getdomainname.h.
38273         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
38274         HAVE_GETDOMAINNAME.
38275         * NEWS: Mention the change.
38276
38277 2008-10-18  Bruno Haible  <bruno@clisp.org>
38278
38279         * modules/dirent: New file.
38280         * m4/dirent_h.m4: New file.
38281         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
38282         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
38283         * modules/fchdir (Files): Remove lib/dirent.in.h.
38284         (Depends-on): Add dirent.
38285         (Makefile.am): Move rules to modules/dirent.
38286         * doc/posix-headers/dirent.texi: Mention the new module.
38287
38288 2008-10-18  Bruno Haible  <bruno@clisp.org>
38289
38290         Avoid -Wunused-parameter warnings in public gnulib header files.
38291         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
38292         macro.
38293         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
38294
38295 2008-10-18  Bruno Haible  <bruno@clisp.org>
38296
38297         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
38298         * doc/glibc-functions/error.texi: Mention the module 'error'.
38299         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
38300         * doc/glibc-functions/getdomainname.texi: Mention the module
38301         'getdomainname'.
38302         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
38303         * doc/glibc-functions/getpagesize.texi: Mention the module
38304         'getpagesize'.
38305         * doc/glibc-functions/getusershell.texi: Mention the module
38306         'getusershell'.
38307         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
38308         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
38309         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
38310         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
38311         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
38312         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
38313         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38314         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
38315         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
38316         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
38317         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
38318         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
38319         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
38320         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
38321
38322 2008-10-17  Bruno Haible  <bruno@clisp.org>
38323
38324         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
38325         HP-UX and IRIX, use -0.0L.
38326         * tests/test-ceill.c (minus_zero): Likewise.
38327         * tests/test-floorl.c (minus_zero): Likewise.
38328         * tests/test-frexpl.c (minus_zero): Likewise.
38329         * tests/test-isnan.c (minus_zerol): Likewise.
38330         * tests/test-isnanl.h (minus_zero): Likewise.
38331         * tests/test-ldexpl.c (minus_zero): Likewise.
38332         * tests/test-roundl.c (minus_zero): Likewise.
38333         * tests/test-signbit.c (minus_zerol): Likewise.
38334         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38335         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38336         * tests/test-truncl.c (minus_zero): Likewise.
38337         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38338         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38339         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38340         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38341
38342 2008-10-17  Bruno Haible  <bruno@clisp.org>
38343
38344         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38345         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38346         that it gets activated only for gcc >= 3.0.
38347         * lib/dirent.in.h: Likewise.
38348         * lib/errno.in.h: Likewise.
38349         * lib/fcntl.in.h: Likewise.
38350         * lib/float.in.h: Likewise.
38351         * lib/iconv.in.h: Likewise.
38352         * lib/inttypes.in.h: Likewise.
38353         * lib/locale.in.h: Likewise.
38354         * lib/math.in.h: Likewise.
38355         * lib/netdb.in.h: Likewise.
38356         * lib/netinet_in.in.h: Likewise.
38357         * lib/search.in.h: Likewise.
38358         * lib/signal.in.h: Likewise.
38359         * lib/spawn.in.h: Likewise.
38360         * lib/stdarg.in.h: Likewise.
38361         * lib/stdint.in.h: Likewise.
38362         * lib/stdio.in.h: Likewise.
38363         * lib/stdlib.in.h: Likewise.
38364         * lib/string.in.h: Likewise.
38365         * lib/strings.in.h: Likewise.
38366         * lib/sys_file.in.h: Likewise.
38367         * lib/sys_ioctl.in.h: Likewise.
38368         * lib/sys_select.in.h: Likewise.
38369         * lib/sys_socket.in.h: Likewise.
38370         * lib/sys_stat.in.h: Likewise.
38371         * lib/sys_time.in.h: Likewise.
38372         * lib/sysexits.in.h: Likewise.
38373         * lib/time.in.h: Likewise.
38374         * lib/unistd.in.h: Likewise.
38375         * lib/wchar.in.h: Likewise.
38376         * lib/wctype.in.h: Likewise.
38377         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38378
38379 2008-10-17  Jim Meyering  <meyering@redhat.com>
38380
38381         ignore-value: don't depend on inline module
38382         * modules/ignore-value (Depends-on): Remove 'inline'.
38383         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38384         Suggestion from Bruno Haible.
38385
38386 2008-10-17  Bruno Haible  <bruno@clisp.org>
38387
38388         New implementation of condition variables for Win32.
38389         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38390         (gl_linked_waitqueue_t): New type.
38391         (gl_cond_t): Use it.
38392         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38393         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38394         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38395         (glthread_cond_init_func, glthread_cond_wait_func,
38396         glthread_cond_timedwait_func, glthread_cond_signal_func,
38397         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38398         Reimplemented on the basis of gl_linked_waitqueue_t.
38399         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38400         gl_waitqueue_t.
38401         (gl_rwlock_t): Update.
38402         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38403
38404 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38405
38406         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38407         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38408
38409 2008-10-17  Jim Meyering  <meyering@redhat.com>
38410
38411         ignore-value: new module
38412         * modules/ignore-value: New file.
38413         * lib/ignore-value.h: New file.
38414         * MODULES.html.sh (Compiler warning management): New section,
38415         just for this module.  More to come.
38416
38417 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38418
38419         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38420         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38421         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38422
38423 2008-10-16  Jim Meyering  <meyering@redhat.com>
38424
38425         openat-die.c: avoid 'no previous prototype' warning
38426         * lib/openat-die.c: Include "openat.h".
38427         Reported by Reuben Thomas <rrt@sc3d.org>.
38428
38429 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38430
38431         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38432         * lib/netdb.in.h: Fix typo.
38433         Reported by Bruno Haible  <bruno@clisp.org>
38434
38435         * lib/netdb.in.h: Include sys/socket.h for platforms without
38436         netdb.h, to get structures like hostent on MinGW.
38437         * modules/netdb (Depends-on): Add sys_socket.
38438
38439 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38440
38441         * modules/netdb, modules/netdb-tests: New file.
38442         * m4/netdb_h.m4: New file.
38443         * lib/netdb.in.h: Add, currently just an empty file pending
38444         definitions.
38445         * tests/test-netdb.c: New file.
38446         * doc/posix-headers/netdb.texi: Mention that we replace it if
38447         needed.
38448         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38449         netdb.
38450
38451 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38452
38453         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38454         with code.
38455
38456 2008-10-13  Bruno Haible  <bruno@clisp.org>
38457
38458         * lib/glthread/cond.c (glthread_cond_wait_func,
38459         glthread_cond_timedwait_func): Add a comment.
38460
38461 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38462
38463         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38464         * tests/test-select.c: Likewise,
38465
38466 2008-10-13  Bruno Haible  <bruno@clisp.org>
38467
38468         * lib/glthread/cond.c (glthread_cond_wait_func,
38469         glthread_cond_timedwait_func): Fix variable name.
38470         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38471
38472 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38473
38474         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38475         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38476         struct sockaddr.sa_len.
38477         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38478
38479 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38480
38481         * build-aux/pmccabe2html: Add css and css_url parameters.
38482
38483 2008-10-12  Bruno Haible  <bruno@clisp.org>
38484
38485         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38486         calling aclx_get.
38487         Reported by Rainer Tammer <tammer@tammer.net>.
38488
38489 2008-10-12  Bruno Haible  <bruno@clisp.org>
38490
38491         Use msvcrt aware primitives for creation/termination of Win32 threads.
38492         * lib/glthread/thread.c: Include <process.h>.
38493         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38494         (wrapper_func): Update signature.
38495         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38496
38497 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38498             Bruno Haible  <bruno@clisp.org>
38499
38500         Provide a Win32 implementation of the 'cond' module.
38501         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38502         * lib/glthread/cond.c (glthread_cond_init_func,
38503         glthread_cond_wait_func, glthread_cond_timedwait_func,
38504         glthread_cond_signal_func, glthread_cond_broadcast_func,
38505         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38506         * modules/cond (Dependencies): Add gettimeofday.
38507
38508 2008-10-11  Bruno Haible  <bruno@clisp.org>
38509
38510         Make sleep work on older versions of mingw.
38511         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38512         only whether it exists.
38513         * doc/posix-functions/sleep.texi: Mention the problem with older
38514         versions of mingw.
38515
38516 2008-10-11  Bruno Haible  <bruno@clisp.org>
38517
38518         New module 'shutdown'.
38519         * modules/shutdown: New file.
38520         * lib/sys_socket.in.h (shutdown): New declaration.
38521         * lib/winsock.c (shutdown): New function.
38522         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38523         GNULIB_SHUTDOWN.
38524         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38525         * doc/posix-functions/shutdown.texi: Document the new module.
38526
38527 2008-10-11  Jim Meyering  <meyering@redhat.com>
38528
38529         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38530
38531 2008-10-11  Bruno Haible  <bruno@clisp.org>
38532
38533         New module 'fclose'.
38534         * modules/fclose: New file.
38535         * lib/stdio.in.h (fclose): New declaration.
38536         * lib/fclose.c: New file.
38537         * m4/fclose.m4: New file.
38538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38539         REPLACE_FCLOSE.
38540         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38541         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38542         REPLACE_FCLOSE.
38543         * modules/close (Depends-on): fclose.
38544         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38545
38546 2008-10-11  Bruno Haible  <bruno@clisp.org>
38547
38548         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38549         set errno and don't call _close.
38550
38551 2008-10-10  Bruno Haible  <bruno@clisp.org>
38552
38553         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38554         ACL, not afterwards. Fixes test failure on Cygwin.
38555
38556 2008-10-09  Ben Pfaff  <blp@gnu.org>
38557
38558         * build-aux/announce-gen: Fix gnulib version related part of usage
38559         message.  Die with a useful error message if no tarballs are
38560         found.
38561
38562 2008-10-10  Jim Meyering  <meyering@redhat.com>
38563
38564         bootstrap: use git's --depth=N option only if it's supported
38565         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38566         recognize the --depth option.  Reported by Pádraig Brady.
38567
38568 2008-10-09  Bruno Haible  <bruno@clisp.org>
38569
38570         New module 'ioctl'.
38571         * modules/ioctl: New file.
38572         * lib/sys_socket.in.h (ioctl): Remove declaration.
38573         * lib/winsock.c: Include <sys/ioctl.h>.
38574         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38575         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38576         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38577         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38578         * doc/posix-functions/ioctl.texi: Mention the new module.
38579
38580 2008-10-09  Bruno Haible  <bruno@clisp.org>
38581
38582         New module 'sys_ioctl'.
38583         * lib/sys_ioctl.in.h: New file.
38584         * m4/sys_ioctl_h.m4: New file.
38585         * modules/sys_ioctl: New file.
38586         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38587
38588 2008-10-09  Bruno Haible  <bruno@clisp.org>
38589
38590         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38591         * lib/winsock.c: Include <stdarg.h>.
38592         (rpl_ioctl): Change to second argument 'int' and then varargs.
38593
38594 2008-10-09  Bruno Haible  <bruno@clisp.org>
38595
38596         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38597         when the sys_socket module is present and the system has <winsock2.h>.
38598
38599 2008-10-09  Bruno Haible  <bruno@clisp.org>
38600
38601         * doc/posix-functions/close.texi: Mention module 'close' instead of
38602         module 'sys_socket'.
38603
38604 2008-10-09  Bruno Haible  <bruno@clisp.org>
38605
38606         * doc/glibc-headers/sys_ioctl.texi: New file.
38607         * doc/gnulib.texi: Include it.
38608
38609 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38610             Bruno Haible  <bruno@clisp.org>
38611
38612         Combine the two replacements of 'close'.
38613         * lib/sys_socket.in.h (close): Define to a reminder to include
38614         <unistd.h>.
38615         (_gl_close_fd_maybe_socket): New declaration.
38616         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38617         * lib/winsock.c (close): Remove undefinition.
38618         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38619         needed for the gnulib module 'close'.
38620         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38621         define to an error symbol or to a warning, if suitable.
38622         * lib/close.c: Include <sys/socket.h>.
38623         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38624         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38625         UNISTD_H_HAVE_WINSOCK2_H.
38626         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38628         UNISTD_H_HAVE_WINSOCK2_H.
38629         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38630         (configure.ac): Set a module indicator.
38631         (Makefile.am): Substitute GNULIB_CLOSE.
38632         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38633         * modules/poll-tests (Depends-on): Add close.
38634         * modules/select-tests (Depends-on): Likewise.
38635
38636 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38637             Bruno Haible  <bruno@clisp.org>
38638
38639         New module 'close'.
38640         * modules/close: New file.
38641         * lib/unistd.in.h (close): Move declaration out of the
38642         FCHDIR_REPLACEMENT scope.
38643         (_gl_unregister_fd): New declaration.
38644         * lib/close.c: New file.
38645         * lib/fchdir.c (rpl_close): Remove function.
38646         * m4/close.m4: New file.
38647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38648         close.
38649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38650         REPLACE_CLOSE.
38651         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38652         REPLACE_CLOSE.
38653         * modules/fchdir (Depends-on): Add close.
38654
38655 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38656             Bruno Haible  <bruno@clisp.org>
38657
38658         * lib/fcntl.in.h (open): Simplify conditionals.
38659         (_gl_register_fd): New declaration.
38660         * lib/fchdir.c (rpl_open): Remove function.
38661         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38662         also.
38663         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38665         open.
38666
38667 2008-10-09  Jim Meyering  <meyering@redhat.com>
38668
38669         GNUmakefile: use the more name-space-friendly "_version"
38670         * top/GNUmakefile (_dummy): Update.
38671         (_version): Rename from "version".
38672
38673 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38674             Bruno Haible  <bruno@clisp.org>
38675
38676         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38677         rpl_close.
38678         (_gl_register_fd): New function, extracted from rpl_open.
38679         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38680         (rpl_open, rpl_opendir): Use _gl_register_fd.
38681
38682 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38683
38684         Fix organization of 'open' replacement.
38685         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38686         (gl_FUNC_OPEN): Use it.
38687         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38688
38689 2008-10-08  Bruno Haible  <bruno@clisp.org>
38690
38691         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38692
38693 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38694
38695         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38696         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38697         listen).
38698
38699 2008-10-08  Eric Blake  <ebb9@byu.net>
38700
38701         GNUmakefile: add 'make version' target
38702         * top/GNUmakefile (_curr-ver): Split version update rules...
38703         (version): ...into a target.
38704
38705 2008-10-07  Bruno Haible  <bruno@clisp.org>
38706
38707         Use a more portable replacement expression for -0.0L.
38708         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38709         instead of -0.0L. Fix m4 quotation.
38710
38711         * tests/test-signbit.c: Include <float.h>.
38712         (minus_zero): New variable.
38713         (test_signbitl): Use minus_zero instead of -zero.
38714         * modules/signbit-tests (Depends-on): Add float.
38715
38716         * tests/test-ceill.c: Include <float.h>.
38717         (zero): Remove variable.
38718         (minus_zero): New variable.
38719         (main): Use minus_zero instead of -zero.
38720         * modules/ceill-tests (Depends-on): Add float.
38721
38722         * tests/test-floorl.c: Include <float.h>.
38723         (zero): Remove variable.
38724         (minus_zero): New variable.
38725         (main): Use minus_zero instead of -zero.
38726         * modules/floorl-tests (Depends-on): Add float.
38727
38728         * tests/test-roundl.c: Include <float.h>.
38729         (zero): Remove variable.
38730         (minus_zero): New variable.
38731         (main): Use minus_zero instead of -zero.
38732         * modules/roundl-tests (Depends-on): Add float.
38733
38734         * tests/test-truncl.c: Include <float.h>.
38735         (zero): Remove variable.
38736         (minus_zero): New variable.
38737         (main): Use minus_zero instead of -zero.
38738         * modules/truncl-tests (Depends-on): Add float.
38739
38740         * tests/test-frexpl.c (zero): Remove variable.
38741         (minus_zero): New variable.
38742         (main): Use minus_zero instead of -zero.
38743         * modules/frexpl-tests (Depends-on): Add float.
38744
38745         * tests/test-isnan.c (zerol): Remove variable.
38746         (minus_zerol): New variable.
38747         (test_long_double): Use minus_zerol instead of -zerol.
38748         * modules/isnan-tests (Depends-on): Add float.
38749
38750         * tests/test-isnanl.h (zero): Remove variable.
38751         (minus_zero): New variable.
38752         (main): Use minus_zero instead of -zero.
38753         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38754         * modules/isnanl-tests (Depends-on): Add float.
38755
38756         * tests/test-ldexpl.c (zero): Remove variable.
38757         (minus_zero): New variable.
38758         (main): Use minus_zero instead of -zero.
38759         * modules/ldexpl-tests (Depends-on): Add float.
38760
38761         * tests/test-snprintf-posix.h (zerol): Remove variable.
38762         (minus_zerol): New variable.
38763         (test_function): Use minus_zerol instead of -zerol.
38764         * modules/snprintf-posix-tests (Depends-on): Add float.
38765         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38766
38767         * tests/test-sprintf-posix.h (zerol): Remove variable.
38768         (minus_zerol): New variable.
38769         (test_function): Use minus_zerol instead of -zerol.
38770         * modules/sprintf-posix-tests (Depends-on): Add float.
38771         * modules/vsprintf-posix-tests (Depends-on): Add float.
38772
38773         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38774         (minus_zerol): New variable.
38775         (test_function): Use minus_zerol instead of -zerol.
38776         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38777
38778         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38779         (minus_zerol): New variable.
38780         (test_function): Use minus_zerol instead of -zerol.
38781         * modules/vasprintf-posix-tests (Depends-on): Add float.
38782
38783 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38784
38785         * MODULES.html.sh (Support for building documentation): Mention
38786         pmccabe2html.  Sort entries.
38787
38788         Add pmccabe2html module, from gnupdf.
38789         * build-aux/pmccabe.css: New file.
38790         * build-aux/pmccabe2html: New file.
38791         * m4/pmccabe2html.m4: New file.
38792         * modules/pmccabe2html: New file.
38793
38794 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38795
38796         flock: new module
38797         * MODULES.html.sh: Add to list of modules.
38798         * lib/flock.c: flock implementation for Windows and Unix systems
38799         which have fcntl.
38800         * doc/glibc-functions/flock.texi: Update documentation.
38801         * lib/sys_file.in.h: <sys/file.h> header file.
38802         * m4/flock.m4: M4 macros.
38803         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38804         * modules/flock: flock module.
38805         * modules/flock-tests: flock tests module.
38806         * modules/sys_file: sys/file.h module.
38807         * tests/test-flock.c: test suite for flock.
38808
38809 2008-10-06  Jim Meyering  <meyering@redhat.com>
38810
38811         bootstrap: check for LT_INIT more portably still ;-)
38812         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38813         Spotted by Bruno Haible.
38814
38815 2008-10-06  Eric Blake  <ebb9@byu.net>
38816
38817         test-signbit: avoid tripping Irix cc bug on -0.0L
38818         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38819         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38820         entire testsuite consistent and avoids an Irix 6.2 bug.
38821
38822 2008-10-05  Bruno Haible  <bruno@clisp.org>
38823             Jim Meyering  <jim@meyering.net>
38824
38825         Add an option for ignoring EPIPE during close_stdout.
38826         * lib/closeout.h: Include <stdbool.h>.
38827         (close_stdout_set_ignore_EPIPE): New declaration.
38828         * lib/closeout.c: Include <stdbool.h>.
38829         (ignore_EPIPE): New variable.
38830         (close_stdout_set_ignore_EPIPE): New function.
38831         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38832         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38833         failure.
38834         * modules/closeout (Depends-on): Add stdbool.
38835
38836 2008-10-05  Bruno Haible  <bruno@clisp.org>
38837
38838         * modules/accept: New file.
38839         * modules/bind: New file.
38840         * modules/connect: New file.
38841         * modules/getpeername: New file.
38842         * modules/getsockname: New file.
38843         * modules/getsockopt: New file.
38844         * modules/listen: New file.
38845         * modules/recv: New file.
38846         * modules/recvfrom: New file.
38847         * modules/send: New file.
38848         * modules/sendto: New file.
38849         * modules/setsockopt: New file.
38850         * modules/socket: New file.
38851         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38852         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38853         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38854         the particular module is requested. Add a link warning when the
38855         particular module is not requested.
38856         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38857         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38858         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38859         the particular module is requested.
38860         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38861         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38862         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38863         * modules/sys_socket (Depends-on): Add link-warning.
38864         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38865         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38866         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38867         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38868         GL_LINK_WARNING.
38869         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38870         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38871         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38872         * doc/posix-functions/getpeername.texi: Mention the new module
38873         'getpeername'.
38874         * doc/posix-functions/getsockname.texi: Mention the new module
38875         'getsockname'.
38876         * doc/posix-functions/getsockopt.texi: Mention the new module
38877         'getsockopt'.
38878         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38879         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38880         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38881         * doc/posix-functions/send.texi: Mention the new module 'send'.
38882         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38883         * doc/posix-functions/setsockopt.texi: Mention the new module
38884         'setsockopt'.
38885         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38886         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38887         listen, connect, accept.
38888         * modules/select-tests (Depends-on): Likewise.
38889
38890 2008-10-05  Bruno Haible  <bruno@clisp.org>
38891
38892         * lib/winsock.c (strerror): Remove unused #undef.
38893         (rpl_close): Remove unused local variable.
38894
38895         * modules/sys_socket (Depends-on); Add errno.
38896
38897 2008-10-05  Bruno Haible  <bruno@clisp.org>
38898
38899         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38900         (select): Add a link warning when the 'select' module is not used.
38901         * modules/sys_select (Depends-on): Add link-warning.
38902         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38903         Suggested by Paolo Bonzini.
38904
38905 2008-10-05  Jim Meyering  <meyering@redhat.com>
38906
38907         bootstrap: check for LT_INIT more portably
38908         * build-aux/bootstrap: Avoid using grep -E, since it's not
38909         portable enough.  Suggestion from Bruno Haible.
38910
38911 2008-10-05  Bruno Haible  <bruno@clisp.org>
38912
38913         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38914         as being fixed by gnulib.
38915
38916 2008-10-05  Bruno Haible  <bruno@clisp.org>
38917
38918         * modules/select-tests: New file, mostly copied from
38919         modules/sys_select-tests.
38920         * tests/test-select.c: New file, mostly copied from
38921         tests/test-sys_select.c.
38922         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38923         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38924         (Makefile.am): Remove test_sys_select_LDADD.
38925
38926         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38927         to an undefined symbol, for an error message.
38928         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38929         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38930         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38931         winsock-select.c here.
38932         * modules/sys_select (Files): Remove lib/winsock-select.c.
38933         (Depends-on): Remove alloca.
38934         (Makefile.am): Substitute GNULIB_SELECT.
38935         * modules/select: New file.
38936         * doc/posix-functions/select.texi: Update.
38937
38938 2008-10-05  Bruno Haible  <bruno@clisp.org>
38939
38940         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38941         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38942         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38943         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38944         getdtablesize.
38945         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38946         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38947
38948 2008-10-05  Bruno Haible  <bruno@clisp.org>
38949
38950         * modules/getdtablesize-tests: New file.
38951         * tests/test-getdtablesize.c: New file.
38952
38953         New module 'getdtablesize'.
38954         * lib/unistd.in.h (getdtablesize): New declaration.
38955         * lib/getdtablesize.c: New file.
38956         * m4/getdtablesize.m4: New file.
38957         * modules/getdtablesize: New file.
38958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38959         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38960         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38961         HAVE_GETDTABLESIZE.
38962         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38963
38964 2008-10-05  Bruno Haible  <bruno@clisp.org>
38965
38966         * modules/sched (Makefile.am): Fix typo.
38967         Reported by Simon Josefsson.
38968
38969 2008-10-05  Jim Meyering  <meyering@redhat.com>
38970
38971         bootstrap: check for LT_INIT, too
38972         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38973         are deprecated.  Suggestion from Ralf Wildenhues.
38974
38975 2008-10-05  Bruno Haible  <bruno@clisp.org>
38976
38977         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38978         overriding them by ours.
38979         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38980
38981 2008-10-05  Jim Meyering  <meyering@redhat.com>
38982
38983         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38984         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38985         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38986
38987 2008-10-04  Bruno Haible  <bruno@clisp.org>
38988
38989         * modules/dup2 (License): Change to LGPLv2+.
38990         * modules/sleep (License): Likewise.
38991         * modules/perror (License): Likewise.
38992         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38993         Blake.
38994         * modules/signal (License): Likewise.
38995         * modules/sigprocmask (License): Likewise.
38996         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38997         Meyering.
38998
38999 2008-10-04  Bruno Haible  <bruno@clisp.org>
39000
39001         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
39002         Reported by Rainer Tammer <tammer@tammer.net>.
39003
39004 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
39005             Bruno Haible  <bruno@clisp.org>
39006
39007         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
39008         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
39009         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
39010
39011 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
39012
39013         filevercmp: new module
39014         * lib/filevercmp.h: New function filevercmp comparing version strings.
39015         * lib/filevercmp.c: Implementation of filevercmp function.
39016         * modules/filevercmp: Module metadata.
39017         * tests/test-filevercmp.c: Unit test for new module.
39018         * modules/filevercmp-tests: Unit test metadata.
39019         * MODULES.html.sh: Add filevercmp module.
39020
39021 2008-10-03  Bruno Haible  <bruno@clisp.org>
39022
39023         * lib/c-ctype.h: Add comment.
39024         Reported by Jim Meyering.
39025
39026 2008-10-02  Bruno Haible  <bruno@clisp.org>
39027
39028         * modules/posix_spawn-internal (Depends-on): Add 'open'.
39029
39030 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39031
39032         * build-aux/bootstrap: Allow renaming bootstrap, and change the
39033         name of bootstrap.conf accordingly.
39034
39035 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39036
39037         * build-aux/bootstrap: Install git-merge-changelog configuration
39038         items into .gitconfig if needed.
39039
39040 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39041
39042         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
39043         git repository, and initialize/update it accordingly.
39044
39045 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
39046
39047         * modules/fsync-tests: New file.
39048         * tests/test-fsync.c: New file.
39049
39050         New module 'fsync'.
39051         * lib/fsync.c: New file.
39052         * m4/fsync.m4: New file.
39053         * modules/fsync: New file.
39054         * lib/unistd.in.h (fsync): New declaration.
39055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
39056         GNULIB_FSYNC and HAVE_FSYNC.
39057         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
39058         * MODULES.html.sh (posix_functions): Add fsync.
39059         * doc/posix-functions/fsync.texi: Mention the new module.
39060
39061 2008-10-02  Jim Meyering  <meyering@redhat.com>
39062
39063         fts.c: sync with similar code from coreutils' remove.c
39064         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
39065         Guard also with "#if defined __linux__", since for now at least,
39066         this code is Linux-kernel-specific.
39067
39068 2008-10-02  Jim Meyering  <meyering@redhat.com>
39069
39070         fts: bug fixes
39071         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
39072         Include <sys/vfs.h>, not <sys/statfs.h>.
39073
39074         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
39075         Include <sys/vfs.h>, not <sys/statfs.h>.
39076
39077 2008-10-01  Bruno Haible  <bruno@clisp.org>
39078
39079         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
39080         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
39081         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
39082         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
39083         * doc/posix-functions/posix_spawnp.texi: Likewise.
39084         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
39085         whether posix_spawn actually works.
39086         * m4/pipe.m4 (gl_PIPE): Likewise.
39087         * modules/execute (Files): Add m4/posix_spawn.m4.
39088         * modules/pipe (Files): Add m4/posix_spawn.m4.
39089         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
39090
39091 2008-10-01  Jim Meyering  <meyering@redhat.com>
39092
39093         remove trailing spaces
39094         * NEWS: Likewise.
39095         * lib/poll.c (poll): Likewise.
39096         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
39097         * lib/winsock.c (rpl_close): Likewise.
39098         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
39099         * modules/yield: Likewise.
39100         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
39101         * tests/test-sys_select.c (connect_to_socket): Likewise.
39102
39103         fts.c: adjust a new interface to be more generally useful
39104         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
39105         (fts_build): Adjust caller.
39106
39107 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39108
39109         * modules/cond-tests: New file.
39110         * tests/test-cond.c: New file.
39111
39112 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39113             Bruno Haible  <bruno@clisp.org>
39114
39115         * modules/cond (Dependencies): Add errno, time.
39116         * lib/glthread/cond.h: Include <time.h>.
39117         (gl_cond_define, gl_cond_define_initialized): Use the same definition
39118         across platforms.
39119
39120 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39121             Bruno Haible  <bruno@clisp.org>
39122
39123         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
39124
39125 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39126             Bruno Haible  <bruno@clisp.org>
39127
39128         * modules/tls-tests (Depends-on): Add thread, yield.
39129         (configure.ac): Remove all checks.
39130         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
39131         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39132         gl_thread_self): Remove definitions. Include glthread/thread.h and
39133         glthread/yield.h instead.
39134         (test_tls): Pass an additional NULL argument to gl_thread_join.
39135
39136 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39137             Bruno Haible  <bruno@clisp.org>
39138
39139         * modules/lock-tests (Depends-on): Add thread, yield.
39140         (configure.ac): Remove all checks.
39141         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
39142         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39143         gl_thread_self): Remove definitions. Include glthread/thread.h and
39144         glthread/yield.h instead.
39145         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
39146         additional NULL argument to gl_thread_join.
39147
39148 2008-09-30  Bruno Haible  <bruno@clisp.org>
39149
39150         Fix the Win32 implementation of the 'thread' module.
39151         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
39152         pointer type.
39153         (gl_thread_self): Invoke gl_thread_self_func.
39154         (gl_thread_self_func): New declaration.
39155         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
39156         (do_init_self_key, init_self_key): New functions.
39157         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
39158         Remove some fields.
39159         (running_threads, running_lock): Remove variables.
39160         (get_current_thread_handle): New function.
39161         (gl_thread_self_func, wrapper_func, glthread_create_func,
39162         glthread_join_func, gl_thread_exit_func): Largely rewritten and
39163         simplified.
39164
39165 2008-09-30  Bruno Haible  <bruno@clisp.org>
39166
39167         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
39168         files.
39169
39170 2008-09-30  Jim Meyering  <meyering@redhat.com>
39171
39172         fts.m4: correct the test for statfs.f_type
39173         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
39174         when checking for statfs.f_type.
39175
39176 2008-09-15  Simon Josefsson  <simon@josefsson.org>
39177
39178         tests: avoid some compiler warnings
39179         * tests/test-memchr.c (main): Pass NULL indirectly.
39180         * tests/test-getdate.c (main): Remove unused variable 'ret'.
39181
39182 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
39183
39184         getdate.y: disallow countable dayshifts like "4 yesterday ago"
39185         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
39186         exactly specified dayshifts.
39187         (dayshift): New rule.
39188         (rel): Add dayshift.
39189         (relative_time_table) [tomorrow, yesterday, today, now]:
39190         Use tDAY_SHIFT in place of tDAY_UNIT.
39191         * tests/test-getdate.c: Add tests for now-disallowed countable
39192         dayshifts, e.g., "4 yesterday ago".
39193
39194 2008-09-29  Bruno Haible  <bruno@clisp.org>
39195
39196         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
39197         * tests/test-posix_spawn1.in.sh: Renamed from
39198         tests/test-posix_spawn.in.sh.
39199         * tests/test-posix_spawn2.c: New file.
39200         * tests/test-posix_spawn2.in.sh: New file.
39201         * modules/posix_spawnp-tests (Files): Update.
39202         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
39203
39204 2008-09-29  Bruno Haible  <bruno@clisp.org>
39205
39206         Propagate effects of putenv/setenv/unsetenv to child processes.
39207         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
39208         * lib/pipe.c (create_pipe): Likewise.
39209
39210 2008-09-29  Bruno Haible  <bruno@clisp.org>
39211
39212         Enable use of shell scripts as executables in mingw.
39213         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
39214         run the program as a shell script.
39215         * lib/pipe.c (create_pipe): Likewise.
39216         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
39217         resulting array.
39218
39219 2008-09-29  Eric Blake  <ebb9@byu.net>
39220
39221         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
39222
39223 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
39224
39225         * doc/posix-functions/accept.texi: Update mingw problems.
39226         * doc/posix-functions/bind.texi: Update mingw problems.
39227         * doc/posix-functions/close.texi: Update mingw problems.
39228         * doc/posix-functions/connect.texi: Update mingw problems.
39229         * doc/posix-functions/getpeername.texi: Update mingw problems.
39230         * doc/posix-functions/getsockname.texi: Update mingw problems.
39231         * doc/posix-functions/getsockopt.texi: Update mingw problems.
39232         * doc/posix-functions/ioctl.texi: Update mingw problems.
39233         * doc/posix-functions/listen.texi: Update mingw problems.
39234         * doc/posix-functions/recv.texi: Update mingw problems.
39235         * doc/posix-functions/recvfrom.texi: Update mingw problems.
39236         * doc/posix-functions/select.texi: Update mingw problems.
39237         * doc/posix-functions/send.texi: Update mingw problems.
39238         * doc/posix-functions/sendto.texi: Update mingw problems.
39239         * doc/posix-functions/setsockopt.texi: Update mingw problems.
39240         * doc/posix-functions/socket.texi: Update mingw problems.
39241
39242 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
39243             Bruno Haible  <bruno@clisp.org>
39244
39245         * lib/sys_select.in.h: Include sys/time.h.
39246         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
39247         * modules/sys_select: Depend on sys_time.
39248         * tests/test-sys_select.c: Test that sys/select.h defines struct
39249         timeval fully.
39250
39251 2008-09-29  Bruno Haible  <bruno@clisp.org>
39252
39253         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
39254         * lib/sys_select.in.h: Likewise.
39255
39256 2008-09-29  Bruno Haible  <bruno@clisp.org>
39257
39258         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
39259
39260 2008-09-29  Bruno Haible  <bruno@clisp.org>
39261
39262         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
39263         Set LIBSOCKET instead of augmenting LIBS.
39264         * modules/sockets (Link): New section.
39265         * modules/sockets-tests (test_sockets_LDADD): New variable.
39266         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
39267         * modules/poll-tests (test_poll_LDADD): New variable.
39268         * NEWS: Document the change.
39269
39270 2008-09-29  Bruno Haible  <bruno@clisp.org>
39271
39272         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
39273         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
39274         ARPA_INET_H directly.
39275         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39276
39277 2008-09-28  Bruno Haible  <bruno@clisp.org>
39278
39279         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
39280         from gl_HEADER_SYS_SOCKET.
39281         (gl_HEADER_SYS_SOCKET): Invoke it.
39282         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39283
39284 2008-09-28  Bruno Haible  <bruno@clisp.org>
39285
39286         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
39287         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
39288         Needed on OSF/1 4.0.
39289
39290 2008-09-28  Bruno Haible  <bruno@clisp.org>
39291
39292         Override open more carefully.
39293         * lib/open.c (orig_open): New function.
39294         (rpl_open): Use orig_open instead of open.
39295         * lib/fcntl.in.h: Add special invocation convention.
39296         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
39297         (gl_FUNC_OPEN): Invoke it.
39298
39299         Override freopen more carefully.
39300         * lib/freopen.c (orig_freopen): New function.
39301         (rpl_freopen): Use orig_freopen instead of freopen.
39302         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
39303         (gl_FUNC_FREOPEN): Invoke it.
39304
39305         Override fopen more carefully.
39306         * lib/fopen.c (orig_fopen): New function.
39307         (rpl_fopen): Use orig_fopen instead of fopen.
39308         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
39309         (gl_FUNC_FOPEN): Invoke it.
39310         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
39311
39312 2008-09-28  Bruno Haible  <bruno@clisp.org>
39313
39314         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
39315         SIGPIPE.
39316
39317 2008-09-28  Bruno Haible  <bruno@clisp.org>
39318
39319         * tests/test-sigaction.c (handler, main): Disable the check whether
39320         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
39321         glibc systems with LinuxThreads.
39322
39323 2008-09-28  Bruno Haible  <bruno@clisp.org>
39324
39325         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
39326
39327         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
39328         with AIX xlc.
39329         * lib/fcntl.in.h (open): Likewise.
39330         Reported by Rainer Tammer <tammer@tammer.net>.
39331
39332 2008-09-28  Bruno Haible  <bruno@clisp.org>
39333
39334         * modules/posix_spawnp-tests: New file.
39335         * tests/test-posix_spawn.c: New file.
39336         * tests/test-posix_spawn.in.sh: New file.
39337
39338         New module 'posix_spawnp'.
39339         * modules/posix_spawnp: New file.
39340         * lib/spawnp.c: New file, from GNU libc with modifications.
39341         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39342
39343         New module 'posix_spawn'.
39344         * modules/posix_spawn: New file.
39345         * lib/spawn.c: New file, from GNU libc with modifications.
39346         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39347
39348         New module 'posix_spawnattr_destroy'.
39349         * modules/posix_spawnattr_destroy: New file.
39350         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39351         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39352         module.
39353
39354         New module 'posix_spawnattr_setsigmask'.
39355         * modules/posix_spawnattr_setsigmask: New file.
39356         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39357         modifications.
39358         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39359         new module.
39360
39361         New module 'posix_spawnattr_getsigmask'.
39362         * modules/posix_spawnattr_getsigmask: New file.
39363         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39364         modifications.
39365         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39366         new module.
39367
39368         New module 'posix_spawnattr_setsigdefault'.
39369         * modules/posix_spawnattr_setsigdefault: New file.
39370         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39371         modifications.
39372         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39373         new module.
39374
39375         New module 'posix_spawnattr_getsigdefault'.
39376         * modules/posix_spawnattr_getsigdefault: New file.
39377         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39378         modifications.
39379         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39380         new module.
39381
39382         New module 'posix_spawnattr_setschedpolicy'.
39383         * modules/posix_spawnattr_setschedpolicy: New file.
39384         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39385         modifications.
39386         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39387         new module.
39388
39389         New module 'posix_spawnattr_getschedpolicy'.
39390         * modules/posix_spawnattr_getschedpolicy: New file.
39391         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39392         modifications.
39393         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39394         new module.
39395
39396         New module 'posix_spawnattr_setschedparam'.
39397         * modules/posix_spawnattr_setschedparam: New file.
39398         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39399         modifications.
39400         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39401         new module.
39402
39403         New module 'posix_spawnattr_getschedparam'.
39404         * modules/posix_spawnattr_getschedparam: New file.
39405         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39406         modifications.
39407         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39408         new module.
39409
39410         New module 'posix_spawnattr_setpgroup'.
39411         * modules/posix_spawnattr_setpgroup: New file.
39412         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39413         modifications.
39414         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39415         module.
39416
39417         New module 'posix_spawnattr_getpgroup'.
39418         * modules/posix_spawnattr_getpgroup: New file.
39419         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39420         modifications.
39421         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39422         module.
39423
39424         New module 'posix_spawnattr_setflags'.
39425         * modules/posix_spawnattr_setflags: New file.
39426         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39427         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39428         module.
39429
39430         New module 'posix_spawnattr_getflags'.
39431         * modules/posix_spawnattr_getflags: New file.
39432         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39433         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39434         module.
39435
39436         New module 'posix_spawnattr_init'.
39437         * modules/posix_spawnattr_init: New file.
39438         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39439         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39440         module.
39441
39442         New module 'posix_spawn_file_actions_destroy'.
39443         * modules/posix_spawn_file_actions_destroy: New file.
39444         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39445         modifications.
39446         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39447         the new module.
39448
39449         New module 'posix_spawn_file_actions_addopen'.
39450         * modules/posix_spawn_file_actions_addopen: New file.
39451         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39452         modifications.
39453         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39454         the new module.
39455
39456         New module 'posix_spawn_file_actions_adddup2'.
39457         * modules/posix_spawn_file_actions_adddup2: New file.
39458         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39459         modifications.
39460         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39461         the new module.
39462
39463         New module 'posix_spawn_file_actions_addclose'.
39464         * modules/posix_spawn_file_actions_addclose: New file.
39465         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39466         modifications.
39467         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39468         the new module.
39469
39470         New module 'posix_spawn_file_actions_init'.
39471         * modules/posix_spawn_file_actions_init: New file.
39472         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39473         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39474         new module.
39475
39476         New module 'posix_spawn-internal'.
39477         * modules/posix_spawn-internal: New file.
39478         * lib/spawn_int.h: New file, from GNU libc with modifications.
39479         * lib/spawni.c: New file, from GNU libc with modifications.
39480         * m4/posix_spawn.m4: New file.
39481
39482         New module 'spawn'.
39483         * modules/spawn: New file.
39484         * lib/spawn.in.h: New file, from GNU libc with modifications.
39485         * m4/spawn_h.m4: New file.
39486         * doc/posix-headers/spawn.texi: Mention the new module.
39487
39488 2008-09-28  Bruno Haible  <bruno@clisp.org>
39489
39490         * modules/sched-tests: New file.
39491         * tests/test-sched.c: New file.
39492
39493         New module 'sched'.
39494         * modules/sched: New file.
39495         * lib/sched.in.h: New file.
39496         * m4/sched_h.m4: New file.
39497         * doc/posix-headers/sched.texi: Mention the new module.
39498
39499 2008-09-27  Eric Blake  <ebb9@byu.net>
39500
39501         Fix previous patch, and tweak references to $0.
39502         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39503         (func_version, func_gnulib_dir): Don't call this program
39504         gnulib-tool.
39505         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39506         with using $0 in function.
39507         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39508         (func_fatal_error): Reuse the name the user invoked us with.
39509
39510 2008-09-27  Bruno Haible  <bruno@clisp.org>
39511
39512         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39513         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39514         (gl_ICONV_H): Not here.
39515         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39516         instead of assigning ICONV_H directly.
39517
39518         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39519         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39520         WCHAR_H directly.
39521
39522 2008-09-27  Bruno Haible  <bruno@clisp.org>
39523
39524         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39525         * modules/arpa_inet (Depends-on): Add link-warning.
39526         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39527         * modules/unistd (Makefile.am): Likewise.
39528
39529 2008-09-26  Bruno Haible  <bruno@clisp.org>
39530
39531         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39532         variables.
39533         (func_version): Essentially copied from gnulib-tool.
39534         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39535         func_readlink): Copied from gnulib-tool.
39536
39537 2008-09-26  Bruno Haible  <bruno@clisp.org>
39538
39539         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39540         invoking git-version-gen.
39541
39542 2008-09-26  Bruno Haible  <bruno@clisp.org>
39543
39544         * posix-modules: Update to directory names changed on 2008-01-19.
39545         Remove commas in output before splitting into words. No more need to
39546         avoid 'ftruncate' since 2007-02-19.
39547
39548 2008-09-26  Bruno Haible  <bruno@clisp.org>
39549
39550         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39551
39552 2008-09-26  Bruno Haible  <bruno@clisp.org>
39553
39554         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39555         * modules/fwriteerror (Depends-on): Add errno.
39556
39557 2008-09-26  Bruno Haible  <bruno@clisp.org>
39558
39559         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39560         * tests/test-vc-list-files-cvs.sh: Likewise.
39561
39562 2008-09-26  Bruno Haible  <bruno@clisp.org>
39563
39564         * doc/posix-headers/sys_resource.texi: Reorder items.
39565
39566 2008-09-26  Jim Meyering  <meyering@redhat.com>
39567
39568         fts: tweak inode comparison function
39569         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39570         inode numbers, as documented.
39571
39572         fts: sort dirent entries on inode number before traversing
39573         This avoids a quadratic, seek-related performance penalty when
39574         operating on a directory containing many entries (measurable at 10k;
39575         3.5 hours at 2 million entries with a cold cache) on certain types
39576         of file systems, including ext3 and ext4, but not tmpfs.
39577         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39578         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39579         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39580         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39581         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39582         (fts_build): Set the stat.st_ino member from D_INO.
39583         If it is likely to be useful, sort dirent entries on inode number.
39584
39585         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39586         and the struct statfs.f_type member.
39587         * modules/fts (Depends-on): Add d-ino.
39588
39589 2008-09-26  Bruno Haible  <bruno@clisp.org>
39590
39591         * modules/sigpipe-die (Depends-on): Add sigpipe.
39592
39593         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39594         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39595         and GNULIB_STDIO_H_SIGPIPE are set.
39596         * lib/stdio-write.c: New file.
39597         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39598         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39599         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39600         REPLACE_STDIO_WRITE_FUNCS.
39601         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39602         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39603         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39604         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39605         * modules/stdio (Files): Add lib/stdio-write.c.
39606         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39607         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39608         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39609         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39610         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39611         REPLACE_FPRINTF_POSIX.
39612         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39613         REPLACE_PRINTF_POSIX.
39614         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39615         REPLACE_VFPRINTF_POSIX.
39616         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39617         REPLACE_VPRINTF_POSIX.
39618         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39619         SIGPIPE issue.
39620         * doc/posix-functions/fputc.texi: Likewise.
39621         * doc/posix-functions/fputs.texi: Likewise.
39622         * doc/posix-functions/fwrite.texi: Likewise.
39623         * doc/posix-functions/printf.texi: Likewise.
39624         * doc/posix-functions/putc.texi: Likewise.
39625         * doc/posix-functions/putchar.texi: Likewise.
39626         * doc/posix-functions/puts.texi: Likewise.
39627         * doc/posix-functions/vfprintf.texi: Likewise.
39628         * doc/posix-functions/vprintf.texi: Likewise.
39629
39630         * modules/safe-write (Depends-on): Add write.
39631
39632         * modules/sigpipe-tests: New file.
39633         * tests/test-sigpipe.c: New file.
39634         * tests/test-sigpipe.sh: New file.
39635
39636         * modules/write: New file.
39637         * lib/unistd.in.h: Include <sys/types.h>.
39638         (write): New declaration.
39639         * lib/write.c: New file.
39640         * m4/write.m4: New file.
39641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39642         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39643         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39644         GNULIB_WRITE, REPLACE_WRITE.
39645         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39646         and the SIGPIPE issue.
39647
39648         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39649         (raise): New declaration.
39650         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39651         (ext_signal): New function.
39652         (rpl_raise): New function.
39653         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39654         GNULIB_SIGNAL_H_SIGPIPE.
39655         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39656         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39657
39658         * modules/sigpipe: New file.
39659         * m4/sigpipe.m4: New file.
39660
39661 2008-09-25  Derek Price  <derek@ximbiot.com>
39662             Bruno Haible  <bruno@clisp.org>
39663
39664         * gnulib-tool (func_import): Report all license incompatibilities, not
39665         just the first one.
39666
39667 2008-09-25  Bruno Haible  <bruno@clisp.org>
39668
39669         * gnulib-tool (func_import): When computing the edits, consider not
39670         only the Makefile.ams that exist but also those that will be generated.
39671
39672 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39673
39674         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39675         fixes gnulib-tool --test warning about duplicate dependency.
39676
39677 2008-09-25  Bruno Haible  <bruno@clisp.org>
39678
39679         * gnulib-tool: Don't ask the user to perform edits in the generated
39680         Makefile.ams.
39681         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39682         apply to the Makefile.am being generated.
39683         (func_emit_tests_Makefile_am): Execute edits that apply to the
39684         Makefile.am being generated.
39685         (func_import): Setup list of Makefile.am edits before emitting the
39686         Makefile.ams, not at the end.
39687         (func_create_testdir): Update.
39688         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39689
39690 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39691
39692         * gnulib-tool (func_import): Store the --tests-base option in the
39693         comment in gnulib-cache.m4.
39694
39695 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39696
39697         * NEWS: Document increased portability that sys_select now provides.
39698
39699         * lib/sys_select.in.h: Install select wrapper.
39700         * lib/sys_socket.in.h: Use more descriptive name when there is no
39701         select wrapper.
39702         * lib/winsock-select.c: New.
39703         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39704         Require gl_HEADER_SYS_SOCKET.
39705         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39706         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39707         * tests/test-sys_select.c: Add functional tests.
39708
39709 2008-09-24  Eric Blake  <ebb9@byu.net>
39710
39711         open, fopen: close fd leak in last patch
39712         * lib/open.c (rpl_open): Close fd before returning error.
39713         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39714         * doc/posix-functions/open.texi (open): Document that Irix also
39715         has the bug.
39716         * doc/posix-functions/fopen.texi (fopen): Likewise.
39717         Reported by Paolo Bonzini.
39718
39719 2008-09-24  Bruno Haible  <bruno@clisp.org>
39720
39721         Ensure that a filename ending in a slash cannot be used to access a
39722         non-directory.
39723         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39724         to check whether it's really a directory.
39725         * lib/fopen.c: Include fcntl.h, unistd.h.
39726         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39727         and fdopen().
39728         * modules/fopen (Depends-on): Add unistd.
39729         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39730         * tests/test-fopen.c (main): Likewise.
39731         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39732         * doc/posix-functions/fopen.texi: Likewise.
39733         Reported by Eric Blake.
39734
39735 2008-09-23  Eric Blake  <ebb9@byu.net>
39736
39737         c-stack: avoid compiler optimizations when provoking overflow
39738         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39739         recursion harder to optimize, to ensure a stack overflow occurs.
39740         * tests/test-c-stack.c (recurse): Likewise.
39741         Borrowed from libsigsegv.
39742
39743         c-stack: work around Irix sigaltstack bug
39744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39745         whether sigaltstack uses wrong end of stack_t (copied in part from
39746         libsigsegv).
39747         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39748         Irix bug, without requiring an over-allocation.
39749         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39750         bug.
39751
39752         fopen: document mingw bug on directories
39753         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39754         not allowing a stream visiting a directory, even though reading
39755         from such a stream is not portable.
39756
39757 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39758
39759         * lib/poll.c: Rewrite.
39760         * modules/poll: Depend on alloca.
39761
39762 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39763
39764         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39765         instead define prototypes for a full set of wrappers.  Ensure
39766         that Cygwin does not use the compatibility code, which is only
39767         for MinGW.
39768         * lib/winsock.c: New.
39769         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39770         * modules/sys_socket: Add lib/winsock.c.
39771
39772         * modules/poll-tests: Add errno and perror.
39773         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39774
39775 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39776
39777         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39778
39779 2008-09-23  Bruno Haible  <bruno@clisp.org>
39780
39781         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39782         * doc/glibc-functions/*: Likewise.
39783
39784 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39785
39786         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39787         success.
39788
39789 2008-09-22  Eric Blake  <ebb9@byu.net>
39790             Bruno Haible  <bruno@clisp.org>
39791
39792         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39793         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39794         supply %A but mishandle pseudo-NaN.
39795         Reported by Simon Josefsson.
39796
39797 2008-09-21  Bruno Haible  <bruno@clisp.org>
39798
39799         * tests/test-lock.c (main): Tweak skip message.
39800         * tests/test-tls.c (main): Likewise.
39801
39802 2008-09-21  Bruno Haible  <bruno@clisp.org>
39803
39804         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39805         whether 'struct sigaction' has sa_sigaction here...
39806         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39807         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39808
39809 2008-09-21  Bruno Haible  <bruno@clisp.org>
39810
39811         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39812         section.
39813         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39814         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39815         the new section.
39816         (Support for obsolete systems lacking POSIX:2001): New section.
39817         (String handling <string.h>): Move strdup to the new section.
39818         Suggested by Simon Josefsson and Paolo Bonzini.
39819
39820 2008-09-21  Bruno Haible  <bruno@clisp.org>
39821
39822         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39823         exponents in %e and %g results on 'long double'. Needed for mingw's
39824         improved *printf functions.
39825         * tests/test-vasprintf-posix.c (test_function): Likewise.
39826         * tests/test-snprintf-posix.h (test_function): Likewise.
39827         * tests/test-sprintf-posix.h (test_function): Likewise.
39828         Reported by Eric Blake.
39829
39830 2008-09-21  Bruno Haible  <bruno@clisp.org>
39831
39832         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39833         * tests/test-sprintf-posix.h (test_function): Likewise.
39834
39835 2008-09-21  Bruno Haible  <bruno@clisp.org>
39836
39837         * modules/getpass (Depends-on): Add strdup-posix.
39838
39839         New module 'strdup-posix'.
39840         * modules/strdup-posix: New file.
39841         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39842         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39844         REPLACE_STRDUP.
39845         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39846         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39848         strdup-posix.
39849
39850         * modules/strdup (Depends-on): Remove malloc-posix.
39851
39852 2008-09-20  Bruno Haible  <bruno@clisp.org>
39853
39854         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39855         Wildenhues.
39856
39857 2008-09-20  Bruno Haible  <bruno@clisp.org>
39858
39859         Ensure that wint_t gets defined on IRIX 5.3.
39860         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39861         * lib/wctype.in.h (wint_t): Likewise.
39862         (__wctype_wint_t): Remove type.
39863         (isw*): Use wint_t instead of __wctype_wint_t.
39864         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39865         * modules/wchar (Files): Add m4/wint_t.m4.
39866         (Makefile.am): Substitute HAVE_WINT_T.
39867         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39868         * tests/test-wctype.c: Check that wint_t is defined.
39869         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39870         * doc/posix-headers/wctype.texi: Likewise.
39871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39872
39873 2008-09-18  Bruno Haible  <bruno@clisp.org>
39874
39875         * gnulib-tool (func_exit): Update comment.
39876
39877 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39878
39879         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39880         assumes strdup exists and does not depend on strdup to return
39881         ENOMEM on out of memory conditions.
39882
39883 2008-09-18  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39886         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39887         digits for the exponent.
39888
39889 2008-09-18  Jim Meyering  <meyering@redhat.com>
39890             Bruno Haible  <bruno@clisp.org>
39891
39892         * lib/vasnprintf.c (decimal_point_char): Define also if
39893         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39894
39895 2008-09-16  Bruno Haible  <bruno@clisp.org>
39896         and Eric Blake  <ebb9@byu.net>
39897
39898         vasnprintf: support Irix 5.3
39899         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39900         that mishandle long double infinity.
39901         Reported by Tom G. Christensen.
39902
39903 2008-09-16  Bruno Haible  <bruno@clisp.org>
39904
39905         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39906         Solaris 9.
39907         * doc/glibc-functions/alphasort.texi: Likewise.
39908         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39909
39910 2008-09-16  Jim Meyering  <meyering@redhat.com>
39911
39912         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39913         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39914         a umask modification leak out of a subshell.  Otherwise, the
39915         opensolaris /bin/sh would be accepted and thus cause unwarranted
39916         failures in the coreutils test suite.
39917
39918 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39919
39920         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39921         to succeed.
39922
39923 2008-09-16  Jim Meyering  <meyering@redhat.com>
39924
39925         avoid spurious test failure when library is built without ACL support
39926         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39927         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39928         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39929         * tests/test-copy-acl.sh: Likewise.
39930
39931 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39932
39933         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39934         based on character occurrence counts.
39935
39936 2008-09-15  Eric Blake  <ebb9@byu.net>
39937
39938         tests: avoid some compiler warnings
39939         * tests/test-memchr.c (main): Pass NULL indirectly.
39940         * tests/test-closein.c (main): Avoid unused variable.
39941
39942 2008-09-15  Bruno Haible  <bruno@clisp.org>
39943
39944         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39945         are missing on OpenBSD 4.0 individually.
39946         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39947
39948 2008-09-15  Bruno Haible  <bruno@clisp.org>
39949
39950         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39951         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39952         * doc/posix-functions/perror.texi: Likewise.
39953         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39954         is missing.
39955         Reported by Eric Blake.
39956
39957         * lib/errno.in.h: Use replacement values >= 2000.
39958         Reported by Eric Blake.
39959
39960 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39961
39962         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39963         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39964         limit.
39965         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39966         compareseq was aborted.
39967
39968 2008-09-14  Bruno Haible  <bruno@clisp.org>
39969
39970         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39971         yvec_edit_count.
39972         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39973         (fstrcmp_bounded): Simplify result computation accordingly.
39974
39975 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39976
39977         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39978         (fstrcmp): Define in terms of fstrcmp_bounded.
39979         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39980         lower_bound argument.
39981         Return quickly if the result is certainly < lower_bound.
39982         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39983
39984 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39985
39986         * lib/diffseq.h (EARLY_ABORT): New macro.
39987         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39988         evaluates to true.
39989
39990 2008-09-14  Bruno Haible  <bruno@clisp.org>
39991
39992         * modules/perror-tests: New file.
39993         * tests/test-perror.sh: New file.
39994         * tests/test-perror.c: New file.
39995
39996         New module 'perror'.
39997         * lib/stdio.in.h (perror): New declaration.
39998         * lib/perror.c: New file.
39999         * m4/perror.m4: New file.
40000         * modules/perror: New file.
40001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
40002         * doc/posix-functions/perror.texi: Mention the perror module.
40003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
40004         REPLACE_PERROR.
40005         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
40006         REPLACE_PERROR.
40007
40008 2008-09-14  Bruno Haible  <bruno@clisp.org>
40009
40010         * modules/stdio (Makefile.am): Reorder to match the order in
40011         lib/stdio.in.h.
40012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40013
40014 2008-09-13  Bruno Haible  <bruno@clisp.org>
40015
40016         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
40017
40018 2008-09-13  Bruno Haible  <bruno@clisp.org>
40019
40020         Extend strerror to cover the added errno values.
40021         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
40022         (rpl_strerror): Provide error messages for the added errno values and
40023         for the WSA* values.
40024         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
40025         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
40026         strerror.
40027         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
40028         * modules/strerror (Depends-on): Add errno.
40029         * doc/posix-functions/strerror.texi: Document the change.
40030         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
40031         and EOVERFLOW.
40032
40033 2008-09-13  Bruno Haible  <bruno@clisp.org>
40034
40035         * modules/EOVERFLOW: Remove file.
40036         * m4/eoverflow.m4: Remove file.
40037         * modules/EOVERFLOW-tests: Remove file.
40038         * tests/test-EOVERFLOW.c: Remove file.
40039         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
40040         * modules/ftell (Depends-on): Likewise.
40041         * modules/getdelim (Depends-on): Likewise.
40042         * modules/getugroups (Depends-on): Likewise.
40043         * modules/poll (Depends-on): Likewise.
40044         * modules/snprintf (Depends-on): Likewise.
40045         * modules/sprintf-posix (Depends-on): Likewise.
40046         * modules/vasnprintf (Depends-on): Likewise.
40047         * modules/vasprintf (Depends-on): Likewise.
40048         * modules/vfprintf-posix (Depends-on): Likewise.
40049         * modules/vsnprintf (Depends-on): Likewise.
40050         * modules/vsprintf-posix (Depends-on): Likewise.
40051         * modules/xvasprintf (Depends-on): Likewise.
40052         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40053         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
40054         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
40055         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
40056         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40057         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
40058         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
40059         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
40060         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40061         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
40062         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
40063         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
40064         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40065         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
40066         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
40067         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
40068         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40069         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
40070         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
40071         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
40072         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40073         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
40074         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
40075         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
40076         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
40077         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40078         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
40079         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
40080         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
40081         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
40082         * MODULES.html.sh: Remove EOVERFLOW.
40083         * NEWS: Mention the change.
40084
40085 2008-09-13  Bruno Haible  <bruno@clisp.org>
40086
40087         * modules/errno-tests: New file.
40088         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
40089
40090         * lib/errno.in.h: New file.
40091         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
40092         * modules/errno: New file.
40093         * doc/posix-headers/errno.texi: Update documentation.
40094         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
40095
40096 2008-09-13  Bruno Haible  <bruno@clisp.org>
40097
40098         * tests/test-poll.c: Use #if for native Windows, rather than testing
40099         __MSVCRT__.
40100
40101 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40102             Bruno Haible  <bruno@clisp.org>
40103
40104         * lib/glob.c: Don't include <pwd.h> on native Windows.
40105         (WINDOWS32): New macro.
40106         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
40107
40108 2008-09-13  Bruno Haible  <bruno@clisp.org>
40109
40110         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
40111         (ETIMEDOUT): Remove macro.
40112         (glthread_cond_timedwait_multithreaded): New declaration.
40113         (glthread_cond_timedwait): Use it.
40114         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
40115         (glthread_cond_timedwait_multithreaded): New function.
40116
40117 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40118
40119         * modules/poll-tests: Do not check for io.h.
40120         * tests/test-poll.c: Check for __MSVCRT__ instead.
40121
40122 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40123
40124         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
40125         * modules/poll-tests: Add inet_pton, stdbool, sockets.
40126         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40127
40128 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40129
40130         * modules/poll-tests: New.
40131         * tests/test-poll.c: New.
40132
40133 2008-09-12  Eric Blake  <ebb9@byu.net>
40134
40135         frexp: test for NetBSD failure on -0.0
40136         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
40137         not all, bugs from NetBSD 3.0 have been fixed.
40138         * doc/posix-functions/frexp.texi (frexp): Document bug.
40139         Reported by Thomas Klausner.
40140
40141         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
40142         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
40143         literal -0.0.
40144         Reported by Jonathan C. Patschke <jp@centtech.com>.
40145
40146 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40147
40148         * lib/glthread/cond.h: Use dummy implementation also if
40149         USE_WIN32_THREADS.
40150
40151 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40152
40153         * modules/fnmatch-posix (License): Change to LGPLv2+.
40154         * modules/fnmatch-gnu (License): Likewise.
40155
40156 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40157
40158         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
40159
40160 2008-09-11  Jim Meyering  <meyering@redhat.com>
40161
40162         * users.txt: Add gtk-vnc.
40163
40164 2008-09-08  Simon Josefsson  <simon@josefsson.org>
40165
40166         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
40167         rotate amounts.
40168
40169         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
40170         required for 16-bit and 8-bit rotates.
40171         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
40172         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
40173         UINT8_MAX instead of hard-coded constants.
40174         Suggested by Paul Eggert.
40175
40176 2008-09-07  Bruno Haible  <bruno@clisp.org>
40177
40178         * tests/test-striconveh.c (main): Check behaviour when converting from
40179         UTF-7.
40180
40181         Make striconveh work better with stateful encodings.
40182         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
40183         that iconv does not increment the inptr when returning -1/EINVAL.
40184
40185 2008-09-07  Bruno Haible  <bruno@clisp.org>
40186
40187         * build-aux/config.rpath: Update according to libtool-2.2.6.
40188         * build-aux/config.libpath: Likewise.
40189
40190 2008-09-06  Bruno Haible  <bruno@clisp.org>
40191
40192         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
40193         * lib/freadptr.c (freadptr): Likewise.
40194         * lib/freadseek.c (freadptrinc): Likewise.
40195         Reported by Simon Josefsson.
40196
40197 2008-09-06  Bruno Haible  <bruno@clisp.org>
40198
40199         * modules/freadptr (License): Change to LGPLv2+.
40200         * modules/freadseek (License): Likewise.
40201         Suggested by Eric Blake.
40202
40203         * modules/memchr2 (License): Change to LGPLv2+.
40204         Approved by Eric Blake.
40205
40206 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40207             Bruno Haible  <bruno@clisp.org>
40208
40209         Make gnulib-tool work with native 'sed' on AIX.
40210         * gnulib-tool (sed_noop): New variable.
40211         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
40212         func_add_or_update, func_create_testdir): Use it to initialize sed
40213         script variables.
40214         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40215
40216 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
40217             Bruno Haible  <bruno@clisp.org>
40218
40219         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
40220         also works after #include directives.
40221
40222 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
40223
40224         getdate.y: reject an out-of-range timezone value
40225         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
40226         the range [-24...+24].  When specified with only one or two digits,
40227         * tests/test-getdate.c: Tests for the fix.
40228         * doc/getdate.texi: Document this change.
40229
40230 2008-09-03  Bruno Haible  <bruno@clisp.org>
40231
40232         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
40233
40234 2008-09-02  Simon Josefsson  <simon@josefsson.org>
40235
40236         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
40237         <bruce.korb@gmail.com> with ideas from Ben Pfaff
40238         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
40239         Blake <ebb9@byu.net>.
40240
40241         * tests/test-bitrotate.c: Add more test vectors.
40242
40243 2008-09-02  Eric Blake  <ebb9@byu.net>
40244
40245         vasnprintf-posix: handle large precision via %.*d
40246         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
40247         when handling it ourselves.
40248         * tests/test-vasnprintf-posix.c (test_function): Add test.
40249         * tests/test-snprintf-posix.h (test_function): Likewise.
40250         * tests/test-sprintf-posix.h (test_function): Likewise.
40251         * tests/test-vasprintf-posix.c (test_function): Likewise.
40252         Reported by Alain Guibert.
40253
40254 2008-09-01  Eric Blake  <ebb9@byu.net>
40255
40256         c-stack: make configure-time check more robust
40257         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
40258         successful sigaction call.
40259         Reported by Tom G. Christensen.
40260
40261 2008-09-01  Bruno Haible  <bruno@clisp.org>
40262
40263         New module 'findprog-lgpl'.
40264         * modules/findprog-lgpl: New file.
40265         * lib/findprog-lgpl.c: New file.
40266         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
40267         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
40268         to decide whether to use strdup or xstrdup, concatenated_filename or
40269         xconcatenated_filename.
40270
40271 2008-09-01  Bruno Haible  <bruno@clisp.org>
40272
40273         Split module 'concat-filename' into 'concat-filename' (LGPL) and
40274         'xconcat-filename' (GPL).
40275         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
40276         (License): Change to LGPLv2+.
40277         * modules/xconcat-filename: New file.
40278         * lib/concat-filename.h (concatenated_filename): Change specification.
40279         (xconcatenated_filename): New declaration.
40280         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
40281         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
40282         memory situations.
40283         * lib/xconcat-filename.c: New file.
40284         * NEWS: Mention the change.
40285         * lib/findprog.c: Include concat-filename.h, not filename.h.
40286         (find_in_path): Use xconcatenated_filename instead of
40287         concatenated_filename.
40288         * lib/javacomp.c: Include concat-filename.h, not filename.h.
40289         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40290         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40291         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40292         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
40293         instead of concatenated_filename.
40294         * lib/javaexec.c: Include concat-filename.h, not filename.h.
40295         (execute_java_class): Use xconcatenated_filename instead of
40296         concatenated_filename.
40297         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
40298         * modules/javacomp (Depends-on): Likewise.
40299         * modules/javaexec (Depends-on): Likewise.
40300
40301 2008-09-01  Bruno Haible  <bruno@clisp.org>
40302
40303         Split module 'filename' into 'filename' and 'concat-filename'.
40304         * modules/filename: Keep only lib/filename.h.
40305         (License): Change to LGPLv2+.
40306         * modules/concat-filename: New file, extracted from modules/filename.
40307         * lib/filename.h (concatenated_filename): Remove declaration.
40308         * lib/concat-filename.h: New file, extracted from lib/filename.h.
40309         * lib/concat-filename.c: Include concat-filename.h.
40310         * NEWS: Mention the change.
40311
40312 2008-09-01  Simon Josefsson  <simon@josefsson.org>
40313
40314         * lib/bitrotate.h (rotl8, rotr8): Add.
40315
40316         * modules/bitrotate (configure.ac): Need
40317         AC_REQUIRE([AC_C_INLINE]).
40318         (Description): Mention stdint.h.  Reported by Bruno Haible
40319         <bruno@clisp.org>.
40320
40321         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
40322         Paolo Bonzini <bonzini@gnu.org>.
40323
40324 2008-08-31  Bruno Haible  <bruno@clisp.org>
40325
40326         Assume Solaris specific bi-arch conventions on Solaris systems.
40327         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
40328         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40329         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40330         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40331         like acl_libdirstem.
40332         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40333         acl_libdirstem.
40334         * NEWS: Mention the change.
40335         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40336
40337 2008-08-31  Jim Meyering  <meyering@redhat.com>
40338
40339         * lib/strftime.h: Add comments describing the two added arguments.
40340
40341         remove duplicate #include directives
40342         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40343         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40344
40345 2008-08-31  Bruno Haible  <bruno@clisp.org>
40346
40347         New module 'sigpipe-die'.
40348         * modules/sigpipe-die: New file.
40349         * lib/sigpipe-die.h: New file.
40350         * lib/sigpipe-die.c: New file.
40351         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40352
40353 2008-08-31  Bruno Haible  <bruno@clisp.org>
40354
40355         Don't override previously installed signal handlers.
40356         * lib/fatal-signal.c (saved_sigactions): New variable.
40357         (uninstall_handlers): Reset the signal to the saved handler, not
40358         to SIG_DFL (except when ignored).
40359         (install_handlers): Save the previous handlers.
40360
40361 2008-08-30  Bruno Haible  <bruno@clisp.org>
40362
40363         * gnulib-tool (func_reset_sigpipe): New function.
40364         (func_get_automake_snippet, func_modules_transitive_closure,
40365         func_import): Invoke it before a join command that reads from stdin,
40366         to avoid "echo: write error: Broken pipe" error messages on stderr.
40367         Reported by Sam Steingold <sds@gnu.org>.
40368
40369 2008-08-30  Bruno Haible  <bruno@clisp.org>
40370
40371         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40372         Code copied from m4/open.m4.
40373         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40374         access and the filename ends in a slash. Code copied from lib/open.c.
40375         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40376         * tests/test-fopen.c (main): Check against bug with trailing slash.
40377
40378 2008-08-29  Bruno Haible  <bruno@clisp.org>
40379
40380         Avoid some "gcc -pedantic" warnings.
40381         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40382         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40383         * lib/dirent.in.h: Likewise.
40384         * lib/fcntl.in.h: Likewise.
40385         * lib/float.in.h: Likewise.
40386         * lib/iconv.in.h: Likewise.
40387         * lib/inttypes.in.h: Likewise.
40388         * lib/locale.in.h: Likewise.
40389         * lib/math.in.h: Likewise.
40390         * lib/netinet_in.in.h: Likewise.
40391         * lib/search.in.h: Likewise.
40392         * lib/signal.in.h: Likewise.
40393         * lib/stdarg.in.h: Likewise.
40394         * lib/stdint.in.h: Likewise.
40395         * lib/stdio.in.h: Likewise.
40396         * lib/stdlib.in.h: Likewise.
40397         * lib/string.in.h: Likewise.
40398         * lib/strings.in.h: Likewise.
40399         * lib/sys_select.in.h: Likewise.
40400         * lib/sys_socket.in.h: Likewise.
40401         * lib/sys_stat.in.h: Likewise.
40402         * lib/sys_time.in.h: Likewise.
40403         * lib/sysexits.in.h: Likewise.
40404         * lib/time.in.h: Likewise.
40405         * lib/unistd.in.h: Likewise.
40406         * lib/wchar.in.h: Likewise.
40407         * lib/wctype.in.h: Likewise.
40408         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40409         * modules/fchdir (Makefile.am): Likewise.
40410         * modules/fcntl (Makefile.am): Likewise.
40411         * modules/float (Makefile.am): Likewise.
40412         * modules/iconv_open (Makefile.am): Likewise.
40413         * modules/inttypes (Makefile.am): Likewise.
40414         * modules/locale (Makefile.am): Likewise.
40415         * modules/math (Makefile.am): Likewise.
40416         * modules/netinet_in (Makefile.am): Likewise.
40417         * modules/search (Makefile.am): Likewise.
40418         * modules/signal (Makefile.am): Likewise.
40419         * modules/stdarg (Makefile.am): Likewise.
40420         * modules/stdint (Makefile.am): Likewise.
40421         * modules/stdio (Makefile.am): Likewise.
40422         * modules/stdlib (Makefile.am): Likewise.
40423         * modules/string (Makefile.am): Likewise.
40424         * modules/strings (Makefile.am): Likewise.
40425         * modules/sys_select (Makefile.am): Likewise.
40426         * modules/sys_socket (Makefile.am): Likewise.
40427         * modules/sys_stat (Makefile.am): Likewise.
40428         * modules/sys_time (Makefile.am): Likewise.
40429         * modules/sysexits (Makefile.am): Likewise.
40430         * modules/time (Makefile.am): Likewise.
40431         * modules/unistd (Makefile.am): Likewise.
40432         * modules/wchar (Makefile.am): Likewise.
40433         * modules/wctype (Makefile.am): Likewise.
40434         Reported by Reuben Thomas <rrt@sc3d.org>.
40435
40436 2008-08-29  Bruno Haible  <bruno@clisp.org>
40437
40438         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40439         any more.
40440
40441 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40442
40443         * MODULES.html.sh (Misc): Add bitrotate.
40444
40445         * modules/bitrotate: New file.
40446
40447         * lib/bitrotate.h: New file.
40448
40449         * modules/bitrotate-tests: New file.
40450
40451         * tests/test-bitrotate.c: New file.
40452
40453         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40454         on the bitrotate module.
40455
40456         * lib/arctwo.c: Use new bitrotate module.
40457
40458 2008-08-29  Jim Meyering  <meyering@redhat.com>
40459
40460         bootstrap: merge changes from coreutils
40461         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40462         of copied files.  Remove a kludge, now that this is fixed.
40463         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40464         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40465         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40466
40467 2008-08-29  Bruno Haible  <bruno@clisp.org>
40468
40469         * MODULES.html.sh: Remove --cvs-urls option.
40470
40471 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40472
40473         maint.mk: adjust to file name change
40474         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40475
40476 2008-08-28  Jim Meyering  <meyering@redhat.com>
40477
40478         * modules/getndelim2 (License): Relicense to LGPLv2+.
40479         Approved by Richard Stallman for the version of 1995, and by
40480         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40481
40482 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40483
40484         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40485         dummy if one is not available.  Do not touch them if
40486         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40487         (getc_maybe_unlocked): New.
40488         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40489
40490 2008-08-26  Eric Blake  <ebb9@byu.net>
40491
40492         doc/INSTALL: resync from autoconf
40493         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40494         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40495         moving...
40496         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40497         * INSTALL: Regenerate.
40498         * INSTALL.ISO: New file.
40499         * INSTALL.UTF-8: Likewise.
40500
40501 2008-08-26  Jim Meyering  <meyering@redhat.com>
40502
40503         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40504         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40505         these definitions conditional, so that they may be overridden, too.
40506
40507 2008-08-26  Bruno Haible  <bruno@clisp.org>
40508
40509         Generate INSTALL file variants with prettier quotes.
40510         * doc/Makefile (INSTALL_PRELUDE): New macro.
40511         (INSTALL): Use it.
40512         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40513
40514 2008-08-26  Bruno Haible  <bruno@clisp.org>
40515
40516         Run makeinfo in an English locale.
40517         * doc/Makefile (MAKEINFO): New variable.
40518
40519 2008-08-26  Bruno Haible  <bruno@clisp.org>
40520
40521         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40522         Suggested by Eric Blake.
40523
40524 2008-08-25  Bruno Haible  <bruno@clisp.org>
40525
40526         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40527
40528 2008-08-25  Eric Blake  <ebb9@byu.net>
40529
40530         c-stack: test that stack overflow can be caught
40531         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40532         that platform allows handling stack overflow; at least OS/2 EMX
40533         has sigaltstack, but crashes before transferring control to
40534         handler on stack overflow.
40535         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40536         check for HAVE_STACK_OVERFLOW_HANDLING.
40537         Reported by Elbert Pol.
40538
40539 2008-08-25  Bruno Haible  <bruno@clisp.org>
40540
40541         * doc/posix-functions/strftime.texi: Fix description of strftime
40542         module.
40543
40544 2008-08-24  Bruno Haible  <bruno@clisp.org>
40545
40546         * tests/uniwidth/test-uc_width2.c: New file.
40547         * tests/uniwidth/test-uc_width2.sh: New file.
40548         * modules/uniwidth/width-tests (Files): Add the new files.
40549         (TESTS): Add uniwidth/test-uc_width2.sh.
40550         (TESTS_ENVIRONMENT): New variable.
40551         (check_PROGRAMS): Add test-uc_width2.
40552         (test_uc_width2_SOURCES): New variable.
40553
40554         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40555         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40556         not 0x00AB.
40557         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40558
40559 2008-08-22  Eric Blake  <ebb9@byu.net>
40560
40561         test-lock, test-tls: mention why a test is skipped
40562         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40563         skipped.
40564         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40565
40566         count-one-bits: relax license
40567         * modules/count-one-bits (License): Relicense to LGPLv2+.
40568         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40569
40570 2008-08-22  Andreas Schwab  <schwab@suse.de>
40571
40572         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40573         Remove spurious space in assignment.
40574
40575 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40576
40577         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40578         Paul Eggert <eggert@CS.UCLA.EDU>.
40579
40580 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40581
40582         * modules/gettext: Add m4/threadlib.m4.
40583
40584 2008-08-19  Eric Blake  <ebb9@byu.net>
40585
40586         test-c-stack: fix compilation failure on FreeBSD 5.0
40587         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40588         headers before <sys/resource.h>.
40589         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40590         the bug.
40591         Reported by Nelson H. F. Beebe.
40592
40593         strverscmp: migrate from "strverscmp.h" to <string.h>
40594         * modules/string (Makefile.am): Add new hooks.
40595         * modules/strverscmp (Files): Remove strverscmp.h.
40596         (Depends-on): Add string.
40597         (configure.ac): Add indicator.
40598         (Include): Mention new header.
40599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40600         defaults.
40601         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40602         results.
40603         * lib/strverscmp.h: Delete.
40604         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40605         * tests/test-strverscmp.c (includes): Adjust client.
40606         * lib/check-version.c (includes): Likewise.
40607         * NEWS: Document the change.
40608
40609         strverscmp: add unit test
40610         * modules/strverscmp-tests: New file.
40611         * tests/test-strverscmp.c: Likewise.
40612
40613 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40614
40615         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40616         regarding Windows crypto stuff, from Mono.
40617
40618 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40619
40620         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40621         if present, for intel RND.  Return error on failures.
40622
40623 2008-08-18  Ben Pfaff  <blp@gnu.org>
40624
40625         gitlog-to-changelog: give better diagnostic for failed pipe-open
40626         * build-aux/gitlog-to-changelog: Improve error message: suggest
40627         that the version of Git may be too old.
40628
40629 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40630
40631         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40632         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40633
40634 2008-08-18  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40637         pthread_in_use().
40638
40639 2008-08-18  Bruno Haible  <bruno@clisp.org>
40640
40641         * lib/glthread/threadlib.c: Include <pthread.h>.
40642
40643 2008-08-18  Bruno Haible  <bruno@clisp.org>
40644
40645         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40646         glthread_recursive_lock_* macros.
40647         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40648         Fix syntax error.
40649
40650 2008-08-18  Bruno Haible  <bruno@clisp.org>
40651
40652         * lib/glthread/thread.c: Avoid forcing a context switch right after
40653         thread creation.
40654
40655 2008-08-17  Bruno Haible  <bruno@clisp.org>
40656
40657         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40658         * lib/glthread/thread.h: Provide Win32 specific implementation.
40659         * modules/thread (Files): Add lib/glthread/thread.c.
40660         (Depends-on): Add lock.
40661         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40662
40663 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40664
40665         New module 'yield'.
40666         * modules/yield: New file.
40667         * lib/glthread/yield.h: New file.
40668         * m4/yield.m4: New file.
40669         * MODULES.html.sh (Multithreading): Add yield.
40670
40671 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40672
40673         New module 'thread'.
40674         * modules/thread: New file.
40675         * lib/glthread/thread.h: New file.
40676         * m4/thread.m4: New file.
40677         * MODULES.html.sh (Multithreading): Add thread.
40678
40679 2008-08-17  Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/glthread/lock.h: Include <stdlib.h> always.
40682         * lib/glthread/tls.h: Likewise.
40683         * lib/glthread/cond.h: Likewise.
40684
40685 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40686
40687         New module 'cond'.
40688         * modules/cond: New file.
40689         * lib/glthread/cond.h: New file.
40690         * lib/glthread/cond.c: New file.
40691         * m4/cond.m4: New file.
40692         * MODULES.html.sh (Multithreading): Add cond.
40693
40694 2008-08-16  Eric Blake  <ebb9@byu.net>
40695
40696         c-stack: fix regression on Irix 5.3 from 2008-06-21
40697         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40698         sa_sigaction...
40699         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40700         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40701         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40702         * modules/signal (Makefile.am): Use the value.
40703         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40704         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40705         * doc/posix-headers/signal.texi (signal.h): Document this
40706         portability issue.
40707         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40708         Reported by Tom G. Christensen.
40709
40710 2008-08-17  Bruno Haible  <bruno@clisp.org>
40711
40712         New module 'threadlib'.
40713         * modules/threadlib: New file.
40714         * lib/glthread/threadlib.c: New file, extracted from
40715         lib/glthread/lock.c.
40716         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40717         functions.
40718         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40719         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40720         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40721         macros.
40722         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40723         (gl_DISABLE_THREADS): Remove macro.
40724         * modules/lock (Files): Remove build-aux/config.rpath.
40725         (Depends-on): Remove havelib. Add threadlib.
40726         (configure.ac-early): Remove section.
40727         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40728         * modules/tls (Depends-on): Remove lock. Add threadlib.
40729         (Link): New section, copied from threadlib.
40730         * MODULES.html.sh (Multithreading): Add threadlib.
40731
40732 2008-08-14  Bruno Haible  <bruno@clisp.org>
40733
40734         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40735         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40736         glthread_rwlock_unlock, glthread_rwlock_destroy,
40737         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40738         glthread_recursive_lock_destroy): Define as macros always.
40739         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40740         glthread_lock_lock.
40741         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40742         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40743         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40744         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40745         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40746         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40747         (glthread_recursive_lock_lock_func): Renamed from
40748         glthread_recursive_lock_lock.
40749         (glthread_recursive_lock_unlock_func): Renamed from
40750         glthread_recursive_lock_unlock.
40751         (glthread_recursive_lock_destroy_func): Renamed from
40752         glthread_recursive_lock_destroy.
40753
40754 2008-08-14  Bruno Haible  <bruno@clisp.org>
40755
40756         * lib/glthread/lock.h: Renamed from lib/lock.h.
40757         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40758         * lib/glthread/tls.h: Renamed from lib/tls.h.
40759         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40760         * lib/fstrcmp.c: Update includes.
40761         * lib/strsignal.c: Update includes.
40762         * modules/lock (Files, Makefile.am): Update.
40763         (Include): Change to "glthread/lock.h".
40764         * modules/tls (Files, Makefile.am): Update.
40765         (Include): Change to "glthread/tls.h".
40766         * tests/test-lock.c: Update includes.
40767         * tests/test-tls.c: Update includes.
40768         * NEWS: Mention the renamed header files.
40769
40770 2008-08-11  Jim Meyering  <meyering@redhat.com>
40771
40772         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40773
40774 2008-08-11  Eric Blake  <ebb9@byu.net>
40775
40776         test-c-stack: avoid C99-ism
40777         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40778         before statement.
40779         Reported by Alain Guibert.
40780
40781 2008-08-10  Jim Meyering  <meyering@redhat.com>
40782
40783         ensure that return value of uinttostr et al are not ignored
40784         * lib/inttostr.h (__GNUC_PREREQ): Define.
40785         (__attribute_warn_unused_result__): Define.
40786         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40787
40788 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40789
40790         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40791         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40792
40793 2008-08-07  Jim Meyering  <meyering@redhat.com>
40794
40795         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40796
40797         * modules/mkstemp (License): Relicense under LGPLv2+.
40798         * modules/tempname (License): Likewise.
40799
40800 2008-08-06  Bruno Haible  <bruno@clisp.org>
40801
40802         * lib/poll.c (poll): Further micro-optimization.
40803
40804 2008-08-06  Jim Meyering  <meyering@redhat.com>
40805
40806         inet_pton.c: use locale-independent tolower
40807         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40808         (inet_pton6): Use c_tolower rather than tolower.
40809         * modules/inet_pton (Depends-on): Add c-ctype.
40810
40811 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40812
40813         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40814         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40815
40816 2008-08-06  Jim Meyering  <meyering@redhat.com>
40817
40818         * modules/inet_pton (License): Relicense under LGPLv2+.
40819
40820 2008-08-03  Bruno Haible  <bruno@clisp.org>
40821
40822         Additional non-aborting API for lock and tls.
40823         * lib/lock.h: Include <errno.h>.
40824         (glthread_lock_init): New macro/function.
40825         (gl_lock_init): Define as wrapper around glthread_lock_init.
40826         (glthread_lock_lock): New macro/function.
40827         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40828         (glthread_lock_unlock): New macro/function.
40829         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40830         (glthread_lock_destroy): New macro/function.
40831         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40832         (glthread_rwlock_init): New macro/function.
40833         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40834         (glthread_rwlock_rdlock): New macro/function.
40835         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40836         (glthread_rwlock_wrlock): New macro/function.
40837         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40838         (glthread_rwlock_unlock): New macro/function.
40839         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40840         (glthread_rwlock_destroy): New macro/function.
40841         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40842         (glthread_recursive_lock_init): New macro/function.
40843         (gl_recursive_lock_init): Define as wrapper around
40844         glthread_recursive_lock_init.
40845         (glthread_recursive_lock_lock): New macro/function.
40846         (gl_recursive_lock_lock): Define as wrapper around
40847         glthread_recursive_lock_lock.
40848         (glthread_recursive_lock_unlock): New macro/function.
40849         (gl_recursive_lock_unlock): Define as wrapper around
40850         glthread_recursive_lock_unlock.
40851         (glthread_recursive_lock_destroy): New macro/function.
40852         (gl_recursive_lock_destroy): Define as wrapper around
40853         glthread_recursive_lock_destroy.
40854         (glthread_once): New macro/function.
40855         (gl_once): Define as wrapper around glthread_once.
40856         Update function declarations.
40857         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40858         glthread_rwlock_init. Return error code.
40859         (glthread_rwlock_rdlock_multithreaded): Renamed from
40860         glthread_rwlock_rdlock. Return error code.
40861         (glthread_rwlock_wrlock_multithreaded): Renamed from
40862         glthread_rwlock_wrlock. Return error code.
40863         (glthread_rwlock_unlock_multithreaded): Renamed from
40864         glthread_rwlock_unlock. Return error code.
40865         (glthread_rwlock_destroy_multithreaded): Renamed from
40866         glthread_rwlock_destroy. Return error code.
40867         (glthread_recursive_lock_init_multithreaded): Renamed from
40868         glthread_recursive_lock_init. Return error code.
40869         (glthread_recursive_lock_lock_multithreaded): Renamed from
40870         glthread_recursive_lock_lock. Return error code.
40871         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40872         glthread_recursive_lock_unlock. Return error code.
40873         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40874         glthread_recursive_lock_destroy. Return error code.
40875         (glthread_once_call): Make static.
40876         (glthread_once_multithreaded): Renamed from glthread_once.
40877         * lib/tls.h: Include <errno.h>.
40878         (glthread_tls_key_init): New macro/function.
40879         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40880         (glthread_tls_set): New macro/function.
40881         (gl_tls_set): Define as wrapper around glthread_tls_set.
40882         (glthread_tls_key_destroy): New macro/function.
40883         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40884         Update function declarations.
40885         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40886         glthread_tls_get.
40887         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40888
40889 2008-08-04  Eric Blake  <ebb9@byu.net>
40890
40891         gnumakefile: use space, not TAB, outside of targets
40892         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40893
40894 2008-08-02  Jim Meyering  <meyering@redhat.com>
40895
40896         getdate.y: avoid locale-dependent date parsing failure
40897         In Turkish locales, getdate would fail to recognize keywords
40898         containing a lowercase "i".  The solution is not to rely on
40899         locale-sensitive case-conversion.
40900         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40901         (lookup_word): Use c_toupper in place of toupper.
40902         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40903         Reported by Vefa Bicakci <bicave@superonline.com> in
40904         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40905         * modules/getdate (Depends-on): Add c-ctype.
40906
40907 2008-08-02  Bruno Haible  <bruno@clisp.org>
40908
40909         * gnulib-tool (func_import): When updating or creating a .gitignore
40910         file, prepend each added line with a slash, and ignore leading slashes
40911         from the existing lines.
40912         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40913
40914 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40915
40916         Portability fix for GNU make 3.79.1.
40917         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40918         versions do not understand.
40919
40920 2008-08-01  Bruno Haible  <bruno@clisp.org>
40921
40922         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40923         * tests/test-isnanf.h (zero): New variable.
40924         (main): Avoid literal -0.0f.
40925         * tests/test-isnand.h (zero): New variable.
40926         (main): Avoid literal -0.0.
40927         * tests/test-isnanl.h (zero): New variable.
40928         (main): Avoid literal -0.0L.
40929         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40930         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40931         -0.0, -0.0L.
40932         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40933         (test_signbitd): Avoid literal -0.0.
40934         (test_signbitl): Avoid literal -0.0L.
40935         * tests/test-ceilf1.c (zero): New variable.
40936         (main): Avoid literal -0.0f.
40937         * tests/test-ceill.c (zero): New variable.
40938         (main): Avoid literal -0.0L.
40939         * tests/test-floorf1.c (zero): New variable.
40940         (main): Avoid literal -0.0f.
40941         * tests/test-floorl.c (zero): New variable.
40942         (main): Avoid literal -0.0L.
40943         * tests/test-roundf1.c (zero): New variable.
40944         (main): Avoid literal -0.0f.
40945         * tests/test-round1.c (zero): New variable.
40946         (main): Avoid literal -0.0.
40947         * tests/test-roundl.c (zero): New variable.
40948         (main): Avoid literal -0.0L.
40949         * tests/test-truncf1.c (zero): New variable.
40950         (main): Avoid literal -0.0f.
40951         * tests/test-trunc1.c (zero): New variable.
40952         (main): Avoid literal -0.0.
40953         * tests/test-truncl.c (zero): New variable.
40954         (main): Avoid literal -0.0L.
40955         * tests/test-frexp.c (zero): New variable.
40956         (main): Avoid literal -0.0.
40957         * tests/test-frexpl.c (zero): New variable.
40958         (main): Avoid literal -0.0L.
40959         * tests/test-ldexpl.c (zero): New variable.
40960         (main): Avoid literal -0.0L.
40961         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40962         (zerod, zerol): New variables.
40963         (test_function): Avoid literals -0.0, -0.0L.
40964         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40965         (zerod, zerol): New variables.
40966         (test_function): Avoid literals -0.0, -0.0L.
40967         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40968         (zerod, zerol): New variables.
40969         (test_function): Avoid literals -0.0, -0.0L.
40970         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40971         (zerod, zerol): New variables.
40972         (test_function): Avoid literals -0.0, -0.0L.
40973         * tests/test-strtod.c (zero): New variable.
40974         (main): Avoid literal -0.0.
40975         Reported by Jonathan C. Patschke <jp@centtech.com>.
40976
40977 2008-07-31  Jim Meyering  <meyering@redhat.com>
40978
40979         sha256.h: correct definition of SHA224_DIGEST_SIZE
40980         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40981         Reported by Paulie Pena IV <paulie4@gmail.com>.
40982         Define as 224 / 8, rather than as a literal.
40983         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40984         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40985         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40986
40987 2008-07-31  Bruno Haible  <bruno@clisp.org>
40988
40989         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40990         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40991         Reported by Jonathan Patschke <jp@centtech.com>.
40992
40993 2008-07-31  Bruno Haible  <bruno@clisp.org>
40994
40995         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40996         Reported by Paolo Bonzini <bonzini@gnu.org>.
40997
40998 2008-07-30  Eric Blake  <ebb9@byu.net>
40999
41000         test-strtod: allow compilation without -lm
41001         * tests/test-strtod.c (main): Avoid link dependence on fabs.
41002         Reported by Dennis Clarke <blastwave@gmail.com>.
41003
41004 2008-07-28  Jim Meyering  <meyering@redhat.com>
41005
41006         bootstrap: work also when there are no .po files in po/
41007         * build-aux/bootstrap (update_po_files): Complete the change
41008         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
41009
41010 2008-07-27  Jim Meyering  <meyering@redhat.com>
41011
41012         * users.txt: Add zile.
41013
41014 2008-07-26  Ben Pfaff  <blp@gnu.org>
41015
41016         Add missing dependencies on new m4/exponent[fdl].m4 files.
41017         * modules/isnanf-nolibm: Add m4/exponentf.m4.
41018         * modules/isnand-nolibm: Add m4/exponentd.m4.
41019         * modules/isnanl-nolibm: Add m4/exponentl.m4.
41020         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
41021         m4/isnan[fdl].m4, because the macros actually used moved.
41022         Reported by Jim Meyering.
41023
41024 2008-07-14  Ben Pfaff  <blp@gnu.org>
41025
41026         Add isinf module.
41027         * lib/isinf.c: New file.
41028         * lib/math.in.h: Define isinf macro if we have decided to replace
41029         it.
41030         * m4/isinf.m4: New file.
41031         * m4/math_h.m4: Initialize and substitute variables for isinf
41032         module.
41033         * modules/isinf: New file.
41034         * modules/isinf-tests: New file.
41035         * modules/math: Add substitutions for new module.
41036         * tests/test-isinf.c: New file.
41037         * doc/posix-functions/isinf.texi: Mention new module.
41038         * MODULES.html.sh: Mention new module.
41039
41040 2008-07-14  Ben Pfaff  <blp@gnu.org>
41041
41042         Factor out some macros for use by additional modules.
41043         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
41044         exponentf.m4.
41045         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
41046         exponentd.m4.
41047         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
41048         file exponentl.m4.
41049         * m4/exponentf.m4: New file.
41050         * m4/exponentd.m4: New file.
41051         * m4/exponentl.m4: New file.
41052         * modules/isnanf: Use new file m4/exponentf.m4.
41053         * modules/isnand: Use new file m4/exponentd.m4.
41054         * modules/isnanl: Use new file m4/exponentl.m4.
41055
41056 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
41057
41058         mktime.c: normalize tp->tm_isdst value to -1/0/1.
41059         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
41060         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
41061         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
41062
41063         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
41064         readlink on platforms without PATH_MAX.
41065
41066 2008-07-21  Eric Blake  <ebb9@byu.net>
41067
41068         Warn, not fail, on stale version.
41069         * top/GNUmakefile (_curr-ver): Tone down previous patch.
41070
41071         Don't allow installation with stale devel version number.
41072         * top/GNUmakefile (_is-install-target): New macro.
41073         (_curr-ver): Forbid installation with stale version number.
41074
41075 2008-07-20  Bruno Haible  <bruno@clisp.org>
41076
41077         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
41078         TESTS_ENVIRONMENT.
41079         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
41080
41081 2008-07-20  Bruno Haible  <bruno@clisp.org>
41082
41083         * lib/c-stack.h (c_stack_action): Add documentation.
41084         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
41085
41086 2008-07-20  Bruno Haible  <bruno@clisp.org>
41087
41088         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
41089         * modules/readlink (License): Likewise.
41090
41091 2008-07-17  Eric Blake  <ebb9@byu.net>
41092
41093         * modules/c-stack (Link): Fix typo.
41094
41095         Make c-stack use libsigsegv, when available.
41096         * modules/c-stack (Depends-on): Add libsigsegv.
41097         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
41098         needed.
41099         * lib/c-stack.c (SIGSTKSZ): Define fallback.
41100         (segv_handler, overflow_handler, c_stack_action)
41101         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
41102         implementation when libsigsegv is available, but only when using
41103         the library is necessary.
41104         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
41105         comment, explaining why XSI check fails on Linux.
41106         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
41107         * tests/test-c-stack2.sh: Tweak skip message.
41108         * NEWS: Document new link-time requirements.
41109
41110 2008-07-16  Eric Blake  <ebb9@byu.net>
41111
41112         c-stack: Expose false positives when not using libsigsegv.
41113         * modules/c-stack-tests (Files): Expand test.
41114         * tests/test-c-stack.c (main): Add means to conditionally trigger
41115         non-overflow SIGSEGV.
41116         * tests/test-c-stack2.sh: New file.
41117
41118 2008-07-14  Bruno Haible  <bruno@clisp.org>
41119
41120         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
41121         Reported by Eric Blake.
41122
41123 2008-07-14  Sam Steingold  <sds@gnu.org>
41124             Bruno Haible  <bruno@clisp.org>
41125
41126         New module libsigsegv.
41127         * modules/libsigsegv: New file.
41128         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
41129         modifications.
41130         * MODULES.html.sh (Signal handling): New section.
41131
41132 2008-07-14  Bruno Haible  <bruno@clisp.org>
41133
41134         * modules/unictype/ctype-* (Description): Add the word "function".
41135         Improves the resulting doc in MODULES.html.
41136
41137 2008-07-12  Ben Pfaff  <blp@gnu.org>
41138
41139         Add longlong module.
41140         * modules/longlong: New file.
41141
41142 2008-07-12  Bruno Haible  <bruno@clisp.org>
41143
41144         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
41145         to empty.
41146
41147 2008-07-10  Ben Pfaff  <blp@gnu.org>
41148
41149         Add isnan module.
41150         * doc/posix-functions/isnan.texi: Mention new module.
41151         * lib/math.in.h: Define isnan macro if we have decided to replace
41152         it.
41153         * m4/isnan.m4: New file.
41154         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
41155         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
41156         also.
41157         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
41158         redundancy.
41159         * m4/math_h.m4: Initialize and substitute variables for isnan
41160         module.
41161         * modules/isnan: New file.
41162         * modules/isnan-tests: New file.
41163         * modules/math: Add substitutions for new module.
41164         * tests/test-isnan.c: New file.
41165         * MODULES.html.sh: Mention new module.
41166
41167 2008-07-10  Ben Pfaff  <blp@gnu.org>
41168
41169         Add isnanf module.
41170         * lib/isnanf.m4: New file.
41171         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
41172         (gl_HAVE_ISNANF_IN_LIBM): New macro.
41173         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
41174         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
41175         * modules/isnanf: New file.
41176         * modules/isnanf-tests: New file.
41177         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
41178         files.
41179         * tests/test-isnanf-nolibm.c: factored most of its contents into
41180         new file tests/test-isnanf.h.
41181         * tests/test-isnanf.h: New file.
41182         * tests/test-isnanf.c: New file.
41183         * MODULES.html.sh: Mention new module.
41184         * doc/glibc-functions/isnanf.texi: Mention new module.
41185
41186 2008-07-10  Ben Pfaff  <blp@gnu.org>
41187
41188         Add isnand module.
41189         * lib/isnand.h: New file.
41190         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
41191         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
41192         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
41193         functionality also.
41194         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
41195         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
41196         (gl_HAVE_ISNAND_IN_LIBM): New macro.
41197         * modules/isnand: New file.
41198         * modules/isnand-tests: New file.
41199         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
41200         files.
41201         * tests/test-isnand-nolibm.c: factored most of its contents into
41202         new file tests/test-isnand.h.
41203         * tests/test-isnand.h: New file.
41204         * tests/test-isnand.c: New file.
41205         * MODULES.html.sh: Mention new module.
41206
41207 2008-07-10  Ben Pfaff  <blp@gnu.org>
41208
41209         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
41210         * lib/isnand.h: Rename lib/isnand-nolibm.h.
41211         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
41212         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
41213         * modules/isnanf-nolibm: Update references to renamed files.
41214         * modules/isnand-nolibm: Likewise.
41215         * modules/isnanf-nolibm-tests: Likewise.
41216         * modules/isnand-nolibm-tests: Likewise.
41217         * lib/frexp.c: Likewise.
41218         * lib/isfinite.c: Likewise.
41219         * lib/signbitd.c: Likewise.
41220         * lib/signbitf.c: Likewise.
41221         * lib/vasnprintf.c: Likewise.
41222         * tests/test-ceilf1.c: Likewise.
41223         * tests/test-ceilf2.c: Likewise.
41224         * tests/test-floorf1.c: Likewise.
41225         * tests/test-floorf2.c: Likewise.
41226         * tests/test-frexp.c: Likewise.
41227         * tests/test-round1.c: Likewise.
41228         * tests/test-round2.c: Likewise.
41229         * tests/test-roundf1.c: Likewise.
41230         * tests/test-strtod.c: Likewise.
41231         * tests/test-trunc1.c: Likewise.
41232         * tests/test-trunc2.c: Likewise.
41233         * tests/test-truncf1.c: Likewise.
41234         * tests/test-truncf2.c: Likewise.
41235         * NEWS: Mention the renamed header files.
41236
41237 2008-07-11  Jim Meyering  <meyering@redhat.com>
41238
41239         vc-list-files: make the last-resort awk code more portable
41240         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
41241         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
41242         does not support it.
41243
41244 2008-07-10  Eric Blake  <ebb9@byu.net>
41245
41246         Work with tar's bootstrap.
41247         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
41248         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
41249         an m4 comment.
41250
41251 2008-07-09  Jim Meyering  <meyering@redhat.com>
41252
41253         posix-shell.m4: fix typo that made this test malfunction
41254         * m4/posix-shell.m4: Remove capitalization in variable name.
41255
41256 2008-07-08  Bruno Haible  <bruno@clisp.org>
41257
41258         * m4/onceonly.m4: Update comments.
41259         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41260
41261 2008-07-04  Jim Meyering  <meyering@redhat.com>
41262
41263         * users.txt: Add vc-dwim.
41264         (bison, coreutils): Use the gitweb URL.
41265
41266 2008-07-03  Jim Meyering  <meyering@redhat.com>
41267
41268         * users.txt: Add libffcall.  From Sam Steingold.
41269
41270 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
41271
41272         getdate.y: do not ignore TZ with relative day, month or year offset
41273         * lib/getdate.y (get_date): Move the tz-handling block to follow the
41274         relative-date-handling, since otherwise, the latter would clobber the
41275         sole output (an updated Start value) of the tz-handling block.
41276         * tests/test-getdate.c: Tests for the fix
41277
41278 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41279
41280         Recognize 'foo_LIBRARIES += libgnu.a'.
41281         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
41282         makefile snippet has already specified an installation location,
41283         also using '+='.
41284
41285 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
41286
41287         getdate.y: factor out common actions
41288         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
41289         Use them in place of open-coded actions.
41290
41291 2008-07-01  Simon Josefsson  <simon@josefsson.org>
41292
41293         Add self-test for getdate module.
41294         * modules/getdate-tests: New file.
41295         * tests/test-getdate.c: New file.
41296
41297 2008-06-29  Bruno Haible  <bruno@clisp.org>
41298
41299         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
41300         .gitignore.
41301         Reported by Sylvain Beucler <beuc@beuc.net>.
41302
41303 2008-06-29  Bruno Haible  <bruno@clisp.org>
41304
41305         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
41306         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
41307
41308 2008-06-29  Bruno Haible  <bruno@clisp.org>
41309
41310         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
41311         EXTRA_DIST.
41312         Reported by Sylvain Beucler <beuc@beuc.net>.
41313
41314 2008-06-26  Jim Meyering  <meyering@redhat.com>
41315
41316         make several modules depend on the "open" module
41317         This provides slightly increased consistency when opening-for-write
41318         the name of a non-directory spelled with a trailing slash.
41319         * modules/chdir-safer: Likewise.
41320         * modules/chown: Likewise.
41321         * modules/clean-temp: Likewise.
41322         * modules/copy-file: Likewise.
41323         * modules/fchdir: Likewise.
41324         * modules/fcntl-safer: Likewise.
41325         * modules/pipe: Likewise.
41326         * modules/utime: Likewise.
41327         Prompted by Eric Blake and Bruno Haible.
41328
41329 2008-06-24  Andreas Schwab  <schwab@suse.de>
41330
41331         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41332         literals can be used as initializers for global variables.
41333
41334 2008-06-23  Eric Blake  <ebb9@byu.net>
41335
41336         Make gnulib-cache.m4 easier to diff.
41337         * gnulib-tool (func_import): Allow newlines when reading cached
41338         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41339
41340 2008-06-23  Bruno Haible  <bruno@clisp.org>
41341
41342         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41343         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41344         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41345         m4/signalblocking.m4.
41346         (gl_PREREQ_SIGACTION): Don't invoke it.
41347         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41348         gl_PREREQ_SIG_HANDLER_H.
41349         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41350         Don't check for sigaction here.
41351
41352 2008-06-23  Bruno Haible  <bruno@clisp.org>
41353
41354         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41355         (install_handlers): Don't set the SA_RESETHAND flag.
41356
41357 2008-06-23  Bruno Haible  <bruno@clisp.org>
41358
41359         * m4/sigaction.m4: Comment fixes.
41360         * lib/signal.in.h: Likewise.
41361
41362 2008-06-23  Eric Blake  <ebb9@byu.net>
41363
41364         Fix typo.
41365         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41366
41367         Avoid SA_ namespace.
41368         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41369         Reported by Ralf Wildenhues.
41370
41371         Avoid test failure due to SA_RESTORER.
41372         * tests/test-sigaction.c (SA_MASK): New macro.
41373         (main): Avoid failing due to extension flags being set.
41374         Reported by Jim Meyering.
41375
41376         Revert use of sig-handler.h in sigprocmask.c.
41377         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41378         it requires the existence of struct sigaction.
41379         * lib/sigprocmask.c (handler_t): Restore typedef.
41380         (rpl_signal, old_handlers): Use local type.
41381
41382 2008-06-22  Bruno Haible  <bruno@clisp.org>
41383
41384         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41385         conditionally.
41386         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41387
41388 2008-06-22  Bruno Haible  <bruno@clisp.org>
41389
41390         * doc/posix-functions/siginterrupt.texi: Move note.
41391
41392         * lib/signal.in.h (SA_RESTART): New macro.
41393         * lib/sigaction.c: Update comment.
41394
41395         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41396
41397         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41398         (gl_PREREQ_SIGPROCMASK): Invoke it.
41399         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41400
41401         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41402
41403         * lib/sigprocmask.c: Update a comment.
41404
41405 2008-06-21  Eric Blake  <ebb9@byu.net>
41406
41407         Use sigaction module rather than signal().
41408         * modules/c-stack (Depends-on): Add sigaction.
41409         * modules/fatal-signal (Depends-on): Likewise.
41410         * modules/nanosleep (Depends-on): Likewise.
41411         * modules/sigprocmask (Files): Add sig-handler.h.
41412         * modules/sigaction (Files): Likewise.
41413         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41414         Eggert.
41415         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41416         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41417         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41418         (init_fatal_signals): Likewise.
41419         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41420         (siginterrupt): Delete fallback.
41421         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41422         instead.
41423         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41424         siginterrupt.
41425
41426         New module sigaction, for mingw.
41427         * modules/sigaction: New module...
41428         * modules/sigaction-tests: ...and its test.
41429         * m4/sigaction.m4: New file.
41430         * lib/sigaction.c: Likewise.
41431         * tests/test-sigaction.c: Likewise.
41432         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41433         * modules/signal (Makefile.am): Likewise.
41434         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41435         needed.
41436         * doc/posix-headers/signal.texi (signal.h): Mention provided
41437         types.
41438         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41439         that sigaction is preferable.
41440         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41441         module.
41442         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41443         sigaction.
41444
41445         Improve robustness of sigprocmask by overriding signal.
41446         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41447         is in use.
41448         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41449         (SIGKILL, SIGSTOP): Provide fallbacks.
41450         (rpl_signal): Implement.
41451         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41452         signal can be called inside handlers.
41453
41454         Fix nanosleep module on mingw.
41455         * modules/nanosleep (Depends-on): Add sys_select.
41456         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41457
41458         Fix licensing of sigprocmask.
41459         * modules/raise (License): Relicense as LGPL.
41460
41461 2008-06-21  Bruno Haible  <bruno@clisp.org>
41462
41463         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41464         result if it contains question marks.
41465         Reported by Michael Geng <linux@michaelgeng.de>.
41466
41467 2008-06-19  Bruno Haible  <bruno@clisp.org>
41468
41469         Fix CVS-ism.
41470         * doc/gnulib.texi: Include updated-stamp.texi.
41471         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41472         (updated-stamp.texi): New rule.
41473         (gnulib.info): Depend on it.
41474         * doc/.gitignore: Add updated-stamp.texi.
41475         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41476
41477 2008-06-19  Bruno Haible  <bruno@clisp.org>
41478
41479         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41480         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41481
41482 2008-06-19  Eric Blake  <ebb9@byu.net>
41483
41484         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41485         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41486         Reported by Stepan Kasal.
41487
41488 2008-06-18  Bruno Haible  <bruno@clisp.org>
41489
41490         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41491         Reported by Eric Blake.
41492
41493 2008-06-18  Eric Blake  <ebb9@byu.net>
41494
41495         Work around cygwin 1.5.25 strsignal bug.
41496         * tests/test-strsignal.c: Allow for const char *.
41497         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41498
41499 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41500
41501         * users.txt: Update URL to article and add author/date
41502         information.
41503
41504 2008-06-17  Bruno Haible  <bruno@clisp.org>
41505
41506         New macro gl_DISABLE_THREADS.
41507         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41508         if the user did not pass --enable-threads or --disable-threads option.
41509         (gl_DISABLE_THREADS): New macro.
41510         Reported by Eric Blake <ebb9@byu.net>.
41511
41512 2008-06-17  Bruno Haible  <bruno@clisp.org>
41513
41514         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41515         when the macro ignores it.
41516         Based on a patch by Eric Blake <ebb9@byu.net>.
41517
41518 2008-06-17  Bruno Haible  <bruno@clisp.org>
41519
41520         * modules/tls (License): Change to LGPLv2+.
41521         Reported by Eric Blake.
41522
41523 2008-06-17  Eric Blake  <ebb9@byu.net>
41524
41525         Simplify c-stack prerequisites.
41526         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41527         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41528         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41529         check.
41530         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41531         <sys/resource.h>.
41532
41533         Move c-stack test into testsuite.
41534         * modules/c-stack-tests: New file.
41535         * lib/c-stack.c [DEBUG]: Move test program...
41536         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41537         fail test if sigaltstack is lacking.
41538         * tests/test-c-stack.sh: New driver file.
41539
41540 2008-06-16  Eric Blake  <ebb9@byu.net>
41541
41542         Use raise module consistently.
41543         * modules/fatal-signal (Depends-on): Add raise.
41544         * modules/sigprocmask (Depends-on): Likewise.
41545         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41546         * lib/sigprocmask.c (sigprocmask): Likewise.
41547         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41548         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41549
41550         Fix compliance bug in sigpending.
41551         * lib/sigprocmask.c (sigpending): Return pending array via
41552         parameter, not return value.
41553
41554 2008-06-14  Eric Blake  <ebb9@byu.net>
41555
41556         Improve obstack-printf test code.
41557         * tests/test-obstack-printf.c (test_function): Fix comment, and
41558         simplify usage of obstack_* in macros.  Add a test for coverage.
41559         Reported by Bruno Haible.
41560
41561 2008-06-14  Bruno Haible  <bruno@clisp.org>
41562
41563         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41564         array size as a constant, not as a const variable.
41565         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41566         AC_USE_SYSTEM_EXTENSIONS.
41567         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41568         Test whether the obstack_printf function actually exists.
41569         * modules/obstack-printf (Depends-on): Add extensions.
41570         (Include): Remove obstack.h.
41571         * modules/obstack-printf-posix (Depends-on): Add extensions.
41572         (Include): Remove obstack.h.
41573
41574 2008-06-13  Eric Blake  <ebb9@byu.net>
41575
41576         Add obstack-printf and obstack-printf-posix modules.
41577         * modules/obstack-printf: New file.
41578         * modules/obstack-printf-posix: Likewise.
41579         * MODULES.html.sh (Misc): Mention them.
41580         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41581         Likewise.
41582         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41583         Likewise.
41584         * modules/stdio (Makefile.am): Accomodate new modules.
41585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41586         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41587         Declare.
41588         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41589         functions.
41590         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41591         (gl_REPLACE_OBSTACK_PRINTF): New macros
41592         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41593         * tests/test-obstack-printf.c: New file.
41594         * modules/obstack-printf-tests: Likewise.
41595         * modules/obstack-printf-posix-tests: Likewise.
41596
41597 2008-06-11  Bruno Haible  <bruno@clisp.org>
41598
41599         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41600         * lib/open.c: Include errno.h.
41601         (open): Fail when attempting to write to a file that has a trailing
41602         slash.
41603         * tests/test-open.c (main): Test against trailing slash bug.
41604         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41605
41606 2008-06-10  Bruno Haible  <bruno@clisp.org>
41607
41608         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41609         for $? to work inside the trap command, with various /bin/sh-s.
41610         * tests/test-vc-list-files-cvs.sh: Likewise.
41611
41612 2008-06-10  Bruno Haible  <bruno@clisp.org>
41613
41614         * lib/acl-internal.h: Don't include gettext.h here.
41615         * lib/set-mode-acl.c: Include gettext.h here.
41616         * lib/copy-acl.c: Likewise.
41617
41618 2008-06-10  Bruno Haible  <bruno@clisp.org>
41619
41620         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41621         * lib/wait-process.c (wait_subprocess): Likewise.
41622         * lib/execute.h (execute): Add termsigp argument.
41623         * lib/execute.c (execute): Likewise.
41624         * lib/csharpcomp.c (compile_csharp_using_pnet,
41625         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41626         * lib/csharpexec.c (execute_csharp_using_pnet,
41627         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41628         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41629         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41630         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41631         is_jikes_present): Update.
41632         * lib/javaexec.c (execute_java_class): Update.
41633         * lib/javaversion.c (execute_and_read_line): Update.
41634         * NEWS: Document the changes.
41635         Reported by Eric Blake.
41636
41637 2008-06-10  Eric Blake  <ebb9@byu.net>
41638
41639         Add missing include.
41640         * tests/test-strstr.c (includes): Add <signal.h>.
41641         * tests/test-strcasestr.c (includes): Likewise.
41642         * tests/test-memmem.c (includes): Likewise.
41643
41644 2008-06-10  Bruno Haible  <bruno@clisp.org>
41645
41646         * lib/wait-process.c (wait_subprocess): Add an assertion.
41647
41648 2008-06-10  Bruno Haible  <bruno@clisp.org>
41649
41650         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41651
41652 2008-06-10  Bruno Haible  <bruno@clisp.org>
41653
41654         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41655         using alarm().
41656         * tests/test-strcasestr.c (main): Likewise.
41657         * tests/test-strstr.c (main): Likewise.
41658
41659 2008-06-09  Bruno Haible  <bruno@clisp.org>
41660
41661         Work around the Solaris 10 ACE ACLs ABI change.
41662         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41663         declare if ACL_NO_TRIVIAL is present.
41664         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41665         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41666         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41667         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41668         define if ACL_NO_TRIVIAL is present.
41669         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41670         and use the current ABI.
41671         (file_has_acl): Use same #if condition as elsewhere.
41672         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41673         in use, and use the current ABI.
41674         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41675         Reported by Jim Meyering.
41676
41677 2008-06-09  Eric Blake  <ebb9@byu.net>
41678
41679         Work around environments that (stupidly) ignore SIGALRM.
41680         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41681         before using alarm().
41682         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41683         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41684         Reported by Ian Beckwith <ianb@erislabs.net>.
41685
41686         Produce autobuild blurb earlier in log.
41687         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41688
41689 2008-06-09  Jim Meyering  <meyering@redhat.com>
41690         and OndÅ™ej Vašík  <ovasik@redhat.com>
41691
41692         utimens.c: correct kernel bug work-around
41693         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41694         failure, not success, and the kernel bug we're trying to work
41695         around affects not just the utimensat call, but also the fallback
41696         futimens call.
41697         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41698         not success.
41699         [HAVE_FUTIMENS]: Use the same work-around, here.
41700
41701 2008-06-09  Jim Meyering  <meyering@redhat.com>
41702
41703         add more guards around definition of ACE_-related code
41704         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41705         ALLOW and ACE_OWNER are also defined.
41706
41707 2008-06-08  Bruno Haible  <bruno@clisp.org>
41708
41709         * lib/acl-internal.h: Add me as co-author.
41710         * lib/file-has-acl.c: Likewise.
41711         * lib/set-mode-acl.c: Likewise.
41712         * lib/copy-acl.c: Likewise.
41713
41714 2008-06-08  Bruno Haible  <bruno@clisp.org>
41715
41716         Add support for AIX ACLs.
41717         * lib/acl-internal.h (acl_nontrivial): New declaration.
41718         * lib/file-has-acl.c (acl_nontrivial): New function.
41719         (file_has_acl): Add implementation using AIX 4 ACL API.
41720         * lib/set-mode-acl.c (qset_acl): Likewise.
41721         * lib/copy-acl.c (qcopy_acl): Likewise.
41722
41723 2008-06-08  Bruno Haible  <bruno@clisp.org>
41724
41725         Add support for HP-UX ACLs.
41726         * lib/acl-internal.h (acl_nontrivial): New declaration.
41727         * lib/file-has-acl.c (acl_nontrivial): New function.
41728         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41729         * lib/set-mode-acl.c (qset_acl): Likewise.
41730         * lib/copy-acl.c (qcopy_acl): Likewise.
41731
41732 2008-06-08  Bruno Haible  <bruno@clisp.org>
41733
41734         Add support for Cygwin ACLs.
41735         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41736         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41737         the chmod_or_fchmod call.
41738         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41739
41740 2008-06-08  Bruno Haible  <bruno@clisp.org>
41741
41742         Fix bug with setuid modes in Solaris 10+ code.
41743         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41744         succeeded, when the mode contains some special bits.
41745
41746 2008-06-08  Bruno Haible  <bruno@clisp.org>
41747
41748         Add support for Solaris 7..10 ACLs.
41749         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41750         declarations.
41751         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41752         functions.
41753         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41754         * lib/set-mode-acl.c (qset_acl): Likewise.
41755         * lib/copy-acl.c (qcopy_acl): Likewise.
41756
41757 2008-06-08  Bruno Haible  <bruno@clisp.org>
41758
41759         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41760         declaration.
41761         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41762         (acl_access_nontrivial): Remove MacOS X case.
41763         (file_has_acl): Use acl_extended_nontrivial.
41764         * lib/copy-acl.c (qcopy_acl): Likewise.
41765
41766 2008-06-08  Bruno Haible  <bruno@clisp.org>
41767
41768         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41769
41770 2008-06-08  Jim Meyering  <meyering@redhat.com>
41771
41772         * modules/acl (Maintainer): Add Bruno Haible.
41773
41774 2008-06-07  Bruno Haible  <bruno@clisp.org>
41775
41776         Improve support for Tru64 ACLs.
41777         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41778         ACL on OSF/1.
41779
41780 2008-06-07  Bruno Haible  <bruno@clisp.org>
41781
41782         Add support for MacOS X ACLs.
41783         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41784         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41785         * lib/set-mode-acl.c (qset_acl): Likewise.
41786         * lib/copy-acl.c (qcopy_acl): Likewise.
41787
41788 2008-06-07  Bruno Haible  <bruno@clisp.org>
41789
41790         Fix memory leak introduced on 2008-05-22.
41791         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41792         use.
41793
41794 2008-06-07  Bruno Haible  <bruno@clisp.org>
41795
41796         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41797         to construct an empty ACL.
41798
41799 2008-06-07  Bruno Haible  <bruno@clisp.org>
41800
41801         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41802         precisely.
41803         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41804
41805 2008-06-07  Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41808         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41809
41810 2008-06-07  Bruno Haible  <bruno@clisp.org>
41811
41812         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41813         regardless of POSIX.
41814         * doc/posix-functions/_longjmp.texi: Likewise.
41815         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41816         SystemV platform in this case.
41817
41818 2008-06-06  Eric Blake  <ebb9@byu.net>
41819
41820         Document abort() bugs.
41821         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41822
41823         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41824         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41825         sigsetjmp.
41826         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41827         siglongjmp, but only as a macro.
41828         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41829         is obsolete.
41830         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41831
41832         Tweak documentation to cover cygwin argz bugs.
41833         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41834         argz bug fix; no code change needed since no cygwin releases
41835         occurred between the last fix and the bug being tested.
41836         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41837         module and recently fixed cygwin bugs.
41838         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41839         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41840         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41841         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41842         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41843         Likewise.
41844         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41845         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41846         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41847         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41848         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41849         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41850         Likewise.
41851
41852         Avoid gcc warning on cygwin.
41853         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41854         !ACL_NO_TRIVIAL]: Avoid unused variable.
41855
41856 2008-06-05  Eric Blake  <ebb9@byu.net>
41857
41858         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41859         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41860         git-version-gen fails to come up with a version.
41861         Reported by Simon Josefsson.
41862
41863 2008-06-05  Jim Meyering  <meyering@redhat.com>
41864             Paul Eggert  <eggert@cs.ucla.edu>
41865
41866         utimens.c: work around a probable Linux kernel bug
41867         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41868         appears to be a kernel bug that causes utimensat to return 280
41869         instead of 0, indicating success.
41870
41871 2008-06-04  Bruno Haible  <bruno@clisp.org>
41872
41873         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41874         2008-06-01 commit.
41875
41876 2008-06-04  Bruno Haible  <bruno@clisp.org>
41877
41878         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41879         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41880         (file_has_acl): Use it. Save errno afterwards.
41881         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41882
41883 2008-06-03  Bruno Haible  <bruno@clisp.org>
41884
41885         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41886         draft code. Simplify #ifs.
41887         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41888         Put Solaris code after POSIX-draft code. Fix comments regarding
41889         Solaris 10, HP-UX. Mention Cygwin.
41890         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41891
41892 2008-06-03  Eric Blake  <ebb9@byu.net>
41893
41894         Provide fallback for older kernels.
41895         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41896         Provide runtime fallback if kernel lacks support.
41897         Reported by Mike Frysinger.
41898
41899 2008-06-02  Bruno Haible  <bruno@clisp.org>
41900
41901         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41902         it exists.
41903
41904 2008-06-02  Bruno Haible  <bruno@clisp.org>
41905
41906         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41907         * lib/copy-acl.c (qcopy_acl): Update comment.
41908
41909 2008-06-02  Bruno Haible  <bruno@clisp.org>
41910
41911         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41912         like ACL APIs.
41913
41914 2008-06-02  Bruno Haible  <bruno@clisp.org>
41915
41916         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41917         * tests/test-set-mode-acl.sh: Likewise.
41918         * tests/test-copy-acl.sh: Likewise.
41919         * tests/test-copy-file.sh: Likewise.
41920
41921 2008-06-02  Bruno Haible  <bruno@clisp.org>
41922
41923         * tests/test-file-has-acl.sh: Remove unused code.
41924
41925 2008-06-01  Bruno Haible  <bruno@clisp.org>
41926
41927         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41928         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41929         messages.
41930         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41931
41932 2008-06-01  Bruno Haible  <bruno@clisp.org>
41933
41934         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41935         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41936         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41937         APIs.
41938         * modules/acl-tests (configure.ac): Remove tests now contained in
41939         m4/acl.m4.
41940
41941 2008-06-02  Jim Meyering  <meyering@redhat.com>
41942
41943         announce-gen: use a better key-server host name
41944         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41945         it may be more consistently reliable.  Suggested by Werner Koch
41946         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41947
41948 2008-06-01  Bruno Haible  <bruno@clisp.org>
41949
41950         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41951         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41952
41953 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41954
41955         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41956
41957 2008-06-01  Bruno Haible  <bruno@clisp.org>
41958
41959         New ACL tests.
41960         * tests/test-file-has-acl.sh: New file.
41961         * tests/test-file-has-acl.c: New file.
41962         * tests/test-set-mode-acl.sh: New file.
41963         * tests/test-set-mode-acl.c: New file.
41964         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41965         * tests/test-copy-acl.c: New file.
41966         * modules/acl-tests: New file, based on modules/copy-file-tests.
41967         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41968         (Depends-on): Add acl-tests.
41969         (configure.ac): Remove checks.
41970         (Makefile.am): Don't create test-sameacls program here any more.
41971
41972 2008-06-01  Bruno Haible  <bruno@clisp.org>
41973
41974         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41975         * tests/test-sameacls.c: Include progname.h.
41976         (main): Invoke set_program_name. Portability fixes for MacOS X,
41977         Solaris, HP-UX.
41978
41979 2008-06-01  Bruno Haible  <bruno@clisp.org>
41980
41981         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41982         function.
41983         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41984
41985 2008-06-01  Bruno Haible  <bruno@clisp.org>
41986
41987         * modules/rpmatch (Depends-on): Add strdup.
41988
41989 2008-06-01  Bruno Haible  <bruno@clisp.org>
41990
41991         * lib/pipe.c: Include unistd-safer.h.
41992         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41993         * modules/pipe (Depends-on): Add unistd-safer.
41994
41995 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41996
41997         * modules/autobuild (configure.ac): Call AB_INIT.
41998
41999 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42000
42001         * tests/test-getaddrinfo.c: Don't print debug messages by default.
42002         Suggested by Bruno Haible <bruno@clisp.org>.
42003
42004 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42005
42006         * tests/test-base64.c: Cast size_t to unsigned long when invoking
42007         printf.  Use %lu instead of %d.  Reported by Bruno Haible
42008         <bruno@clisp.org>.
42009
42010 2008-05-29  Eric Blake  <ebb9@byu.net>
42011
42012         Prefer new POSIX 200x interfaces over futimesat.
42013         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
42014         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
42015         when available.
42016         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
42017
42018 2008-05-28  Bruno Haible  <bruno@clisp.org>
42019
42020         * modules/stpcpy (License): Change to LGPLv2+.
42021         Requested by David Lutterkort <dlutter@redhat.com>.
42022
42023 2008-05-27  Bruno Haible  <bruno@clisp.org>
42024
42025         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
42026         current mingw.
42027         Reported by Jose E. Marchesi <jemarch@gnu.org>.
42028
42029 2008-05-27  Bruno Haible  <bruno@clisp.org>
42030
42031         * modules/iconv_open (Link): New section, from module 'iconv'.
42032         * modules/striconv (Link): Likewise.
42033         * modules/striconveh (Link): Likewise.
42034         * modules/xstriconv (Link): Likewise.
42035         * modules/unicodeio (Link): Likewise.
42036         * modules/propername (Link): Likewise.
42037         Reported by Jim Meyering.
42038
42039 2008-05-26  Jim Meyering  <meyering@redhat.com>
42040
42041         sha256: do not artificially restrict buffer length to be < 2^32
42042         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
42043         uint32_t to size_t.
42044         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
42045         to match.
42046
42047         avoid unaligned access errors, e.g., on sparc
42048         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
42049         direct access through a possibly-unaligned uint64* pointer.
42050         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
42051         direct access through a possibly-unaligned uint32* pointer.
42052         Prompted by this patch from Tom "spot" Callaway:
42053         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
42054
42055         sha512.c: fix typo in comment
42056         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
42057
42058 2008-05-25  Bruno Haible  <bruno@clisp.org>
42059
42060         * lib/set-mode-acl.c: Renamed from lib/acl.c.
42061         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
42062         (Makefile.am): Update lib_SOURCES.
42063
42064 2008-05-25  Bruno Haible  <bruno@clisp.org>
42065
42066         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
42067
42068 2008-05-25  Jim Meyering  <meyering@redhat.com>
42069
42070         useless-if-before-free: freed expr may have white-space differences
42071         * build-aux/useless-if-before-free: Recognize cases in which the
42072         freed expression differs from the tested one in embedded white
42073         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
42074         $1 was used, so we can't make any regexp shy.  Improved tests now
42075         detect this.
42076
42077         useless-if-before-free: accept white space in the expression.
42078         * build-aux/useless-if-before-free: For now, any white space
42079         in the expression must be identical in the free argument.
42080
42081         useless-if-before-free: efficiency tweak
42082         * build-aux/useless-if-before-free: Make the expression-matching
42083         regexp "shy".
42084         Make the *outer* regexp shy, not the expr-matching one.
42085
42086         update code-in-comment to accept cast of free arg
42087         * build-aux/useless-if-before-free: Update regexp.
42088
42089 2008-05-25  Bruno Haible  <bruno@clisp.org>
42090
42091         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
42092         * modules/copy-file-tests (Files, Makefile.am): Update.
42093         * tests/test-copy-file.c (func_test_copy): Update.
42094
42095 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
42096
42097         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
42098
42099 2008-05-23  Bruno Haible  <bruno@clisp.org>
42100
42101         Improve support for ACLs on OSF/1.
42102         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
42103         Remove fallback for unknown flavors of ACLs.
42104
42105 2008-05-22  Bruno Haible  <bruno@clisp.org>
42106
42107         Add support for ACLs on OSF/1.
42108         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
42109         replacements.
42110         (acl_free_text): New macro fallback.
42111         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
42112         acl_free.
42113         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
42114         acl_free_text function. Require AC_C_INLINE.
42115
42116 2008-05-22  Bruno Haible  <bruno@clisp.org>
42117
42118         Make copy_acl work on MacOS X 10.5.
42119         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
42120         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42121         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
42122         If MODE_INSIDE_ACL, don't assume that every system has the same text
42123         representation for ACLs as FreeBSD.
42124         * lib/copy-acl.c (copy_acl): Add support for platforms with
42125         !MODE_INSIDE_ACL.
42126         * lib/file-has-acl.c (file_has_acl): Likewise.
42127         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
42128         FreeBSD, MacOS X, or IRIX, respectively.
42129
42130 2008-05-22  Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/acl.h: Don't include <sys/acl.h>.
42133         (GETACLCNT): Move fallback to lib/acl-internal.h.
42134         * lib/acl-internal.h: Include <sys/acl.h> here.
42135         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
42136
42137 2008-05-22  Bruno Haible  <bruno@clisp.org>
42138
42139         Split off copy_acl function to separate file.
42140         * lib/copy-acl.c: New file, extracted from lib/acl.c.
42141         * lib/acl.c (copy_acl): Moved function to separate file.
42142         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
42143         * modules/acl (Files): Add lib/copy-acl.c.
42144         (Makefiles.am): Augment lib_SOURCES.
42145
42146 2008-05-22  Bruno Haible  <bruno@clisp.org>
42147
42148         * modules/copy-file-tests: New file.
42149         * tests/test-copy-file.sh: New file.
42150         * tests/test-copy-file.c: New file.
42151         * tests/test-copy-file-sameacls.c: New file.
42152
42153 2008-05-22  Eric Blake  <ebb9@byu.net>
42154
42155         Avoid gcc warning.
42156         * tests/test-memcmp.c (main): Pass NULL indirectly.
42157
42158 2008-05-21  Bruno Haible  <bruno@clisp.org>
42159
42160         Add reference doc about ACLs.
42161         * doc/acl-resources.txt: New file.
42162         * doc/acl-cygwin.txt: New file.
42163
42164 2008-05-21  Bruno Haible  <bruno@clisp.org>
42165
42166         Avoid one more warning from gcc.
42167         * lib/vasnprintf.c (IF_LINT): Update comments.
42168         (VASNPRINTF): Use it also for the 'prefix' array initializer.
42169
42170 2008-05-21  Jim Meyering  <meyering@redhat.com>
42171
42172         avoid a warning from gcc
42173         * lib/vasnprintf.c (IF_LINT): Define.
42174         (scale10_round_decimal_long_double):
42175         Use it to avoid a "may be used uninitialized" warning.
42176         (scale10_round_decimal_double): Likewise.
42177
42178 2008-05-21  Simon Josefsson  <simon@josefsson.org>
42179
42180         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
42181         declared.
42182
42183 2008-05-20  Bruno Haible  <bruno@clisp.org>
42184
42185         * tests/test-memcmp.c (main): Test also the sign of the result. Test
42186         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
42187
42188 2008-05-20  Simon Josefsson  <simon@josefsson.org>
42189
42190         * modules/memcmp-tests: New file.
42191         * tests/test-memcmp.c: New file.
42192
42193 2008-05-19  Bruno Haible  <bruno@clisp.org>
42194
42195         * modules/propername (Notice, configure.ac): Put quoted "..." into
42196         --keyword option.
42197         * lib/propername.h: Update comments accordingly.
42198         Reported by Eric Blake.
42199
42200 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
42201
42202         * modules/getpass-gnu (Depends-on): Add fseeko.
42203
42204 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42205
42206         * modules/base64-tests: New file.
42207
42208 2008-05-19  Bo Borgerson <gigabo@gmail.com>
42209
42210         * lib/base64.c (base64_decode_ctx): If a decode context structure
42211         was passed in use it to ignore newlines.  If a context structure
42212         was _not_ passed in, continue to treat newlines as garbage (this
42213         is the historical behavior).  Formerly base64_decode.
42214         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42215         takes a decode context structure.
42216         * lib/base64.h (base64_decode): Macro for four-argument calls.
42217         (base64_decode_alloc): Likewise.
42218         * lib/base64.c (base64_decode_ctx): If a decode context structure
42219         was passed in use it to ignore newlines.  If a context structure
42220         was _not_ passed in, continue to treat newlines as garbage (this
42221         is the historical behavior).  Formerly base64_decode.
42222         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42223         takes a decode context structure.
42224         * lib/base64.h (base64_decode): Macro for four-argument calls.
42225         (base64_decode_alloc): Likewise.
42226
42227 2008-05-19  Jim Meyering  <meyering@redhat.com>
42228
42229         avoid a warning from gcc
42230         * lib/trim.c (IF_LINT): Define.
42231         (trim2): Use it to avoid a "may be used uninitialized" warning.
42232
42233         Fix doc typo.
42234         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
42235
42236 2008-05-19  Bruno Haible  <bruno@clisp.org>
42237
42238         * doc/glibc-functions/getpass.texi: Document limits of other
42239         implementations.
42240
42241 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42242             Bruno Haible <bruno@clisp.org>
42243
42244         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
42245
42246 2008-05-18  Bruno Haible  <bruno@clisp.org>
42247
42248         * modules/propername: New file, from GNU gettext.
42249         * lib/propername.h: New file, from GNU gettext.
42250         * lib/propername.c: New file, from GNU gettext.
42251         * MODULES.html.sh (Internationalization functions): Add propername.
42252
42253 2008-05-16  Jim Meyering  <meyering@redhat.com>
42254             Bruno Haible  <bruno@clisp.org>
42255
42256         Avoid some warnings from "gcc -Wshadow".
42257         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
42258
42259 2008-05-15  Eric Blake  <ebb9@byu.net>
42260
42261         Extend previous patch to cygwin 1.7.0.
42262         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
42263         fast implementation in cygwin >= 1.7.0.
42264         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42266
42267 2008-05-15  Bruno Haible  <bruno@clisp.org>
42268
42269         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
42270         implementation in glibc >= 2.9.
42271         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42273
42274 2008-05-15  Bruno Haible  <bruno@clisp.org>
42275
42276         * MODULES.html.sh (Internationalization functions): Remove linebreak.
42277         (Unicode string functions): Add unilbrk/*.
42278         Reported by Karl Berry.
42279
42280 2008-05-15  Eric Blake  <ebb9@byu.net>
42281
42282         Fix violation of <stdbool.h> replacement in regex.
42283         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
42284         * lib/regexec.c (re_search_internal): Likewise.
42285         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
42286
42287 2008-05-15  Jim Meyering  <meyering@redhat.com>
42288
42289         avoid distracting test output when git or cvs is not found
42290         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
42291         * tests/test-vc-list-files-git.sh: Likewise.
42292
42293 2008-05-15  Eric Blake  <ebb9@byu.net>
42294
42295         Glibc finally accepted the memmem speedup code, bugzilla #5514.
42296         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
42297         glibc version.
42298         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42299         * doc/posix-functions/strstr.texi (strstr): Likewise.
42300         * lib/str-two-way.h (MAX): Sychronize with glibc.
42301
42302 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
42303
42304         * lib/regcomp.c (optimize_utf8): Add a note on why we test
42305         opr.ctx_type.
42306         (calc_first): Initialize constraint field.
42307         (duplicate_node_closure): Use it instead of special casing ANCHORS.
42308         Fix grammar.
42309         (duplicate_node): Merge constraint field for all node types.
42310         (calc_eclosure_iter): Look at constraint field for all node types.
42311         * lib/regex_internal.c (create_cd_newstate): Don't look at
42312         opr.ctx_type.
42313
42314 2008-05-14  Bruno Haible  <bruno@clisp.org>
42315
42316         Help GCC to do better code generation.
42317         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
42318         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42319         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
42320         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
42321         Declare with attribute 'malloc' if supported.
42322
42323 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
42324
42325         use "echo STR|wc -c" rather than unportable "expr length STR"
42326         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
42327         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
42328
42329 2008-05-14  Jim Meyering  <meyering@redhat.com>
42330
42331         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42332         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42333         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42334         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42335         via Collin Lasse.
42336
42337 2008-05-14  Eric Blake  <ebb9@byu.net>
42338
42339         Avoid quadratic growth in gl_LIBSOURCES.
42340         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42341         Suggested by Bruno Haible.
42342
42343         Test xmemdup0.
42344         * modules/xmemdup0-tests: New file.
42345         * tests/test-xmemdup0.c: Likewise.
42346
42347 2008-05-13  Eric Blake  <ebb9@byu.net>
42348
42349         Split xmemdup0 into its own module.
42350         * modules/xmemdup0: New file.
42351         * lib/xmemdup0.h: Likewise.
42352         * lib/xmemdup0.c: Likewise.
42353         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42354         * lib/xalloc.h (xmemdup0): Remove.
42355         * lib/xmalloc.c (xmemdup0): Likewise.
42356
42357 2008-05-13  Eric Blake  <ebb9@byu.net>
42358             Bruno Haible  <bruno@clisp.org>
42359
42360         Reduce number of forks required during autoconf.
42361         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42362         and gl_LIBSOURCES_DIR.
42363         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42364         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42365         m4_syscmd per file.
42366         <m4_foreach_w>: Move...
42367         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42368
42369 2008-05-13  Eric Blake  <ebb9@byu.net>
42370
42371         * gnulib-tool: Fix various comment typos.
42372
42373 2008-05-12  Bruno Haible  <bruno@clisp.org>
42374
42375         Tailor the linebreaking algorithm.
42376         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42377
42378 2008-05-12  Bruno Haible  <bruno@clisp.org>
42379
42380         Update to Unicode 5.0.0.
42381         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42382         LBP_JV, LBP_JT. Redistribute values.
42383         (unilbrk_table): Change size.
42384         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42385         Unicode TR#14 rev. 22.
42386         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42387         LBP_JV, LBP_JT. Redistribute values.
42388         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42389         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42390         Update.
42391         * lib/unilbrk/lbrkprop1.h: Regenerated.
42392         * lib/unilbrk/lbrkprop2.h: Regenerated.
42393         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42394         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42395         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42396         Likewise.
42397         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42398         Likewise.
42399         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42400         result.
42401         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42402         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42403         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42404         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42405         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42406         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42407
42408 2008-05-11  Bruno Haible  <bruno@clisp.org>
42409
42410         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42411
42412 2008-05-11  Bruno Haible  <bruno@clisp.org>
42413
42414         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42415         * modules/unilbrk/gen-lbrk: New file.
42416
42417 2008-05-11  Bruno Haible  <bruno@clisp.org>
42418
42419         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42420         * m4/sha512.m4 (gl_SHA512): Likewise.
42421
42422 2008-05-11  Jim Meyering  <meyering@redhat.com>
42423
42424         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42425         * modules/crypto/sha256: New file.
42426         * modules/crypto/sha512: Likewise.
42427         * lib/sha256.c: Likewise.
42428         * lib/sha256.h: Likewise.
42429         * lib/sha512.c: Likewise.
42430         * lib/sha512.h: Likewise.
42431         * lib/u64.h: Likewise.
42432         * m4/sha256.m4: Likewise.
42433         * m4/sha512.m4: Likewise.
42434         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42435
42436 2008-05-10  Bruno Haible  <bruno@clisp.org>
42437
42438         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42439         (Input/Output <stdio.h>): Add xprintf.
42440         (Signal handling <signal.h>): Add strsignal.
42441         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42442         (Core language properties): Add func.
42443         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42444         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42445         strings.
42446         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42447         (Input/output): New section.
42448         (File system functions): Add openat-die, stat-macros.
42449         (Networking functions): Add sockets.
42450         (Unicode string functions): Add unictype/*.
42451         (Support for building libraries and executables): Add gperf.
42452         (Support for building documentation): Add agpl-3.0.
42453         (Misc): Add nocrash.
42454
42455 2008-05-10  Bruno Haible  <bruno@clisp.org>
42456
42457         * modules/unictype/gen-ctype: New file.
42458
42459 2008-05-10  Jim Meyering  <meyering@redhat.com>
42460
42461         Make chdir-safer.c more efficient on a system with no symlinks.
42462         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42463         also if ELOOP is zero.  Suggested by Bruno Haible.
42464
42465         Make chdir-safer.c slightly safer.
42466         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42467         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42468
42469         Avoid compile failure on systems without ELOOP (like mingw).
42470         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42471         Reported by Bruno Haible.
42472
42473 2008-05-10  Bruno Haible  <bruno@clisp.org>
42474
42475         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42476         (is_utf8_encoding): Use a case-insensitive comparison.
42477         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42478         streq.
42479
42480 2008-05-10  Bruno Haible  <bruno@clisp.org>
42481
42482         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42483         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42484         * lib/unilbrk/ulc-common.h (iconv_string_length,
42485         iconv_string_keeping_offsets): Remove declarations.
42486         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42487         Don't include <iconv.h>, streq.h, xsize.h.
42488         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42489         conversion.
42490         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42491         <iconv.h>, streq.h, xsize.h.
42492         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42493         conversion.
42494         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42495         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42496         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42497         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42498
42499 2008-05-10  Bruno Haible  <bruno@clisp.org>
42500
42501         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42502         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42503
42504         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42505         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42506
42507         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42508         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42509
42510         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42511         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42512
42513         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42514         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42515
42516         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42517         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42518
42519         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42520         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42521
42522         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42523         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42524
42525 2008-05-10  Bruno Haible  <bruno@clisp.org>
42526
42527         Split up 'linebreak' module.
42528         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42529         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42530         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42531         modifications.
42532         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42533         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42534         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42535         lib/linebreak.c.
42536         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42537         lib/linebreak.c.
42538         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42539         lib/linebreak.c.
42540         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42541         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42542         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42543         lib/linebreak.c.
42544         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42545         lib/linebreak.c.
42546         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42547         lib/linebreak.c.
42548         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42549         lib/linebreak.c.
42550         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42551         lib/linebreak.c.
42552         * modules/unilbrk/base: New file.
42553         * modules/unilbrk/tables: New file.
42554         * modules/unilbrk/u8-possible-linebreaks: New file.
42555         * modules/unilbrk/u16-possible-linebreaks: New file.
42556         * modules/unilbrk/u32-possible-linebreaks: New file.
42557         * modules/unilbrk/ulc-common: New file.
42558         * modules/unilbrk/ulc-possible-linebreaks: New file.
42559         * modules/unilbrk/u8-width-linebreaks: New file.
42560         * modules/unilbrk/u16-width-linebreaks: New file.
42561         * modules/unilbrk/u32-width-linebreaks: New file.
42562         * modules/unilbrk/ulc-width-linebreaks: New file.
42563         * lib/linebreak.h: Remove file.
42564         * lib/linebreak.c: Remove file.
42565         * m4/linebreak.m4: Remove file.
42566         * modules/linebreak: Remove file.
42567         * NEWS: Mention the changes.
42568
42569 2008-05-09  Eric Blake  <ebb9@byu.net>
42570
42571         Add xmemdup0.
42572         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42573         implementation.
42574         * lib/xmalloc.c (xmemdup0): New C implementation.
42575
42576 2008-05-08  Bruno Haible  <bruno@clisp.org>
42577
42578         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42579
42580 2008-05-07  Eric Blake  <ebb9@byu.net>
42581
42582         Support cross-compilation of <wctype.h>.
42583         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42584         AC_CACHE_CHECK.
42585
42586 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42587
42588         * build-aux/vc-list-files: Add support for bzr.
42589
42590 2008-05-03  Jim Meyering  <meyering@redhat.com>
42591
42592         avoid failed assertion with tight malloc
42593         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42594
42595 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42596
42597         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42598         are needed from arpa/inet.h.
42599         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42600         Reported by Bruno Haible.
42601
42602 2008-05-02  Jim Meyering  <meyering@redhat.com>
42603
42604         avoid compilation error on FreeBSD 6
42605         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42606
42607 2008-05-01  Jim Meyering  <meyering@redhat.com>
42608
42609         useless-if-before-free: correct --help's exit status description
42610         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42611         for one or more matches, etc.  Reported by Bruno Haible.
42612
42613         vc-list-files: make the stand-alone gnulib test work
42614         * modules/vc-list-files-tests (configure.ac):
42615         Define and AC_SUBST abs_aux_dir.
42616         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42617         $(abs_top_srcdir) to each script and having each of them
42618         duplicate the work of setting PATH, set PATH here, using
42619         the new variable, abs_aux_dir instead.
42620         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42621         * tests/test-vc-list-files-git.sh: Likewise.
42622         Reported by Bruno Haible.
42623
42624 2008-05-01  Bruno Haible  <bruno@clisp.org>
42625
42626         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42627         reallocation. Rename 'done' to 'found_delimiter'.
42628
42629 2008-05-01  Jim Meyering  <meyering@redhat.com>
42630
42631         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42632         * build-aux/vc-list-files: Use `...`, not $(...).
42633
42634 2008-04-30  Jim Meyering  <meyering@redhat.com>
42635
42636         add tests for vc-list-files
42637         * modules/vc-list-files-tests: New module.
42638         * tests/test-vc-list-files-cvs.sh: New file.
42639         * tests/test-vc-list-files-git.sh: New file.
42640
42641         avoid a warning from gcc
42642         * lib/getndelim2.c (IF_LINT): Define.
42643         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42644
42645         vc-list-files: work properly with build-aux/cvsu, too
42646         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42647         to all cvs-based clauses.
42648
42649         vc-list-files: work properly in the CVS+awk case, too
42650         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42651
42652         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42653         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42654         take more than one file argument, so .  Add quotes, just in case $dir
42655         ever contains a shell meta-character.  Prompted by Soren Hansen in
42656         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42657
42658 2008-04-29  Eric Blake  <ebb9@byu.net>
42659
42660         Optimize getndelim2 to use block operations when possible.
42661         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42662         freadseek, and memchr2.
42663         * lib/getndelim2.c (getndelim2): Use them for block reads.
42664
42665 2008-04-29  Bruno Haible  <bruno@clisp.org>
42666
42667         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42668         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42669         * modules/inet_ntop (Depends-on): Add extensions.
42670         * modules/inet_pton (Depends-on): Likewise.
42671         Reported by Simon Josefsson.
42672
42673 2008-04-29  Jim Meyering  <meyering@redhat.com>
42674
42675         When the is more than one match in a block, match all of them.
42676         * build-aux/useless-if-before-free: Iterate through each block
42677         until there are no more matches.
42678
42679         Fix broken useless-if-before-free script.
42680         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42681         the expression to match cast of argument to free-like function.
42682
42683 2008-04-29  Eric Blake  <ebb9@byu.net>
42684
42685         Use new header.
42686         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42687
42688 2008-04-29  Jim Meyering  <meyering@redhat.com>
42689
42690         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42691         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42692         by gnulib to exist and to declare e.g., inet_ntop.
42693         Don't include "inet_ntop.h", now removed.
42694
42695         * m4/arpa_inet_h.m4: Remove trailing blanks.
42696
42697 2008-04-29  Eric Blake  <ebb9@byu.net>
42698
42699         Silence valgrind on safe reads beyond potential array bounds.
42700         * lib/rawmemchr.valgrind: New file.
42701         * lib/strchrnul.valgrind: Likewise.
42702         * modules/rawmemchr (Files): Distribute new file.
42703         * modules/strchrnul (Files): Likewise.
42704         Suggested by Bruno Haible.
42705
42706 2008-04-29  Bruno Haible  <bruno@clisp.org>
42707
42708         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42709         (inet_ntop, inet_pton): Change portability warning's wording.
42710         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42711         Invoke gl_CHECK_NEXT_HEADERS.
42712         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42713         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42714         set ARPA_INET_H.
42715         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42716         * modules/arpa_inet (Description): No longer only for systems that
42717         lack it.
42718         (Depends-on): Add include_next.
42719         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42720         HAVE_ARPA_INET_H.
42721
42722 2008-04-29  Jim Meyering  <meyering@redhat.com>
42723
42724         * modules/mkdir (License): Re-license as LGPLv2+.
42725
42726 2008-04-29  Bruno Haible  <bruno@clisp.org>
42727
42728         * modules/rawmemchr (Maintainer): Set to Eric.
42729         * modules/strchrnul (Maintainer): Likewise.
42730
42731 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42732
42733         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42734         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42735
42736         * modules/arpa_inet (arpa/inet.h): Use them.
42737
42738 2008-04-28  Eric Blake  <ebb9@byu.net>
42739
42740         Test getndelim2.
42741         * modules/getndelim2-tests: New file.
42742         * tests/test-getndelim2.c: Likewise.
42743         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42744         stream.
42745         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42746
42747         * MODULES.html.sh: Document new module.
42748
42749 2008-04-20  Bruno Haible  <bruno@clisp.org>
42750
42751         * lib/c-stack.c (die): Use raise.
42752         * modules/c-stack (Depends-on): Add raise.
42753
42754 2008-04-28  Bruno Haible  <bruno@clisp.org>
42755
42756         Expect rpmatch to be declared.
42757         * lib/yesno.c (rpmatch): Remove declaration.
42758
42759         Declare rpmatch.
42760         * lib/stdlib.in.h (rpmatch): New declaration.
42761         * lib/rpmatch.c: Include <stdlib.h> first.
42762         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42763         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42765         HAVE_RPMATCH.
42766         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42767         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42768         (Include): Set to <stdlib.h>.
42769         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42770         HAVE_RPMATCH.
42771         * NEWS: Document the change.
42772
42773 2008-04-28  Bruno Haible  <bruno@clisp.org>
42774
42775         Change rpmatch to use nl_langinfo when appropriate.
42776         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42777         (N_): New macro.
42778         (localized_pattern): New function/macro.
42779         (try): Remove match, nomatch arguments. Copy the pattern into safe
42780         memory before caching it.
42781         (rpmatch): Use localized_pattern. Add translator comments.
42782         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42783         Suggested by Eric Blake.
42784         * modules/rpmatch (Depends-on): Add stdbool.
42785
42786 2008-04-28  Eric Blake  <ebb9@byu.net>
42787
42788         Add rawmemchr module, matching glibc.
42789         * modules/string (Makefile.am): New indicator.
42790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42791         * lib/string.in.h (rawmemchr): Declare when appropriate.
42792         * modules/rawmemchr: New file.
42793         * m4/rawmemchr.m4: Likewise.
42794         * lib/rawmemchr.c: Likewise.
42795         * modules/rawmemchr-tests: Likewise.
42796         * tests/test-rawmemchr.c: Likewise.
42797         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42798         module.
42799         * modules/strchrnul (Depends-on): Add rawmemchr.
42800         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42801
42802         Whitespace cleanup.
42803         * tests/test-strchrnul.c: Reindent.
42804         * lib/strchrnul.c: Likewise.
42805
42806         Optimize and test strchrnul.
42807         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42808         * modules/strchrnul-tests: New file.
42809         * tests/test-strchrnul.c: Likewise.
42810
42811         Remove intprops dependency.
42812         * modules/memchr (Depends-on): Remove intprops.
42813         * modules/memrchr (Depends-on): Likewise.
42814         * modules/memchr2 (Depends-on): Likewise.
42815         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42816         * lib/memrchr.c (__memrchr): Likewise.
42817         * lib/memrchr2.c (memchr2): Likewise.
42818         Reported by Simon Josefsson.
42819
42820 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42821
42822         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42823         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42824
42825 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42826
42827         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42828
42829         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42830
42831         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42832
42833         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42834         declarations.
42835         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42836
42837         * m4/inet_pton.m4: Don't check for header files.
42838
42839         * m4/inet_ntop.m4: Don't check for header files.
42840
42841 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42842
42843         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42844         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42845         trigger for cygwin).
42846         Reported by Bruno Haible  <bruno@clisp.org>.
42847
42848 2008-04-28  Bruno Haible  <bruno@clisp.org>
42849
42850         * doc/posix-functions/strdup.texi: Mention mingw problem.
42851
42852 2008-04-27  Bruno Haible  <bruno@clisp.org>
42853
42854         * modules/stat-time-tests (Depends-on): Add sleep.
42855         * tests/test-stat-time.c (force_unlink): New function.
42856         (cleanup): Use it.
42857         (test_mtime): Remove the ctime related tests.
42858         (test_ctime): New function, containing the ctime related tests.
42859         (main): Call test_ctime, except on native Windows platforms.
42860
42861 2008-04-27  Bruno Haible  <bruno@clisp.org>
42862
42863         * lib/rpmatch.c (rpmatch): Add some comments.
42864         Reported by James Youngman <jay@gnu.org>.
42865
42866 2008-04-27  Bruno Haible  <bruno@clisp.org>
42867
42868         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42869         quiet NaNs.
42870
42871 2008-04-27  Bruno Haible  <bruno@clisp.org>
42872
42873         Make test-yesno.sh work on mingw.
42874         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42875         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42876         (main): Set stdin to binary mode.
42877         * modules/yesno-tests (Depends-on): Add binary-io.
42878
42879 2008-04-27  Bruno Haible  <bruno@clisp.org>
42880
42881         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42882         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42883         argument that lie outside the IEEE 854 domain.
42884         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42885         (gl_ISFINITE): Use it.
42886         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42887
42888 2008-04-27  Bruno Haible  <bruno@clisp.org>
42889
42890         Allow local renaming in config.h.
42891         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42892
42893 2008-04-27  Bruno Haible  <bruno@clisp.org>
42894
42895         * lib/memchr.c (__memchr): Change type of 'i'.
42896         * lib/memchr2.c (memchr2): Likewise.
42897
42898 2008-04-26  Eric Blake  <ebb9@byu.net>
42899         and Bruno Haible  <bruno@clisp.org>
42900
42901         Optimize and test memrchr.
42902         * modules/memrchr (Depends-on): Add intprops.
42903         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42904         * modules/memrchr-tests: New file.
42905         * tests/test-memrchr.c: New file.
42906
42907 2008-04-26  Bruno Haible  <bruno@clisp.org>
42908
42909         Add tentative support for DragonFly BSD.
42910         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42911         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42912         fp.
42913         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42914         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42915         * lib/fpurge.c (fpurge): Likewise.
42916         * lib/freadable.c (freaadable): Likewise.
42917         * lib/freadahead.c (freadahead): Likewise.
42918         * lib/freading.c (freading): Likewise.
42919         * lib/freadptr.c (freadptr): Likewise.
42920         * lib/freadseek.c (freadptrinc): Likewise.
42921         * lib/fseeko.c (fseeko): Likewise.
42922         * lib/fseterr.c (fseterr): Likewise.
42923         * lib/fwritable.c (fwritable): Likewise.
42924         * lib/fwriting.c (fwriting): Likewise.
42925
42926 2008-04-26  Bruno Haible  <bruno@clisp.org>
42927
42928         * lib/stdio-impl.h: New file.
42929         * lib/fbufmode.c: Include stdio-impl.h.
42930         (fbufmode): Use fp_, remove redundant #defines.
42931         * lib/fflush.c: Include stdio-impl.h.
42932         (clear_ungetc_buffer): Remove redundant #defines.
42933         * lib/fpurge.c: Include stdio-impl.h.
42934         (fpurge): Remove redundant #defines.
42935         * lib/freadable.c: Include stdio-impl.h.
42936         (freadable): Remove redundant #defines.
42937         * lib/freadahead.c: Include stdio-impl.h.
42938         (freadahead): Remove redundant #defines.
42939         * lib/freading.c: Include stdio-impl.h.
42940         (freading): Remove redundant #defines.
42941         * lib/freadptr.c: Include stdio-impl.h.
42942         (freadptr): Remove redundant #defines.
42943         * lib/freadseek.c: Include stdio-impl.h.
42944         (freadptrinc): Remove redundant #defines.
42945         * lib/fseeko.c: Include stdio-impl.h.
42946         (rpl_fseeko): Remove redundant #defines.
42947         * lib/fseterr.c: Include stdio-impl.h.
42948         (fseterr): Remove redundant #defines.
42949         * lib/fwritable.c: Include stdio-impl.h.
42950         (fwritable: Remove redundant #defines.
42951         * lib/fwriting.c: Include stdio-impl.h.
42952         (fwriting): Remove redundant #defines.
42953         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42954         * modules/fflush (Files): Likewise.
42955         * modules/fpurge (Files): Likewise.
42956         * modules/freadable (Files): Likewise.
42957         * modules/freadahead (Files): Likewise.
42958         * modules/freading (Files): Likewise.
42959         * modules/freadptr (Files): Likewise.
42960         * modules/freadseek (Files): Likewise.
42961         * modules/fseeko (Files): Likewise.
42962         * modules/fseterr (Files): Likewise.
42963         * modules/fwritable (Files): Likewise.
42964         * modules/fwriting (Files): Likewise.
42965
42966 2008-04-26  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42969         restore_seek_optimization, update_fpos_cache): New functions, extracted
42970         from rpl_fflush.
42971         (rpl_fflush): Use them.
42972         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42973         (gl_REPLACE_FFLUSH): Use it.
42974
42975 2008-04-26  Bruno Haible  <bruno@clisp.org>
42976
42977         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42978         on Solaris.
42979         * tests/test-xstrtoimax.sh: Likewise.
42980         * tests/test-xstrtoumax.sh: Likewise.
42981         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42982
42983 2008-04-26  Bruno Haible  <bruno@clisp.org>
42984
42985         * modules/memchr-tests: New file.
42986         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42987
42988 2008-04-26  Eric Blake  <ebb9@byu.net>
42989             Bruno Haible  <bruno@clisp.org>
42990
42991         * lib/memchr.c: Include intprops.h.
42992         (__memchr): Optimize parallel detection of matching bytes. Rename local
42993         variables. Add explanatory comments.
42994
42995 2008-04-26  Bruno Haible  <bruno@clisp.org>
42996
42997         Fix module 'memchr', broken since 2000-10-28.
42998         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42999
43000 2008-04-26  Bruno Haible  <bruno@clisp.org>
43001
43002         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
43003         comments.
43004
43005 2008-04-25  Eric Blake  <ebb9@byu.net>
43006
43007         Use native fstatat on cygwin 1.7.0.
43008         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
43009         first.
43010
43011 2008-04-23  Eric Blake  <ebb9@byu.net>
43012
43013         Improve memchr2 performance.
43014         * lib/memchr2.c (memchr2): Further optimize parallel detection of
43015         NUL bytes.
43016         * modules/memchr2 (Depends-on): Use intprops.h.
43017
43018 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43019
43020         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
43021         an inline function instead of a CPP macro.  Patch by Ben Pfaff
43022         <blp@cs.stanford.edu>.
43023
43024 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43025
43026         * lib/arpa_inet.in.h: New file.
43027
43028         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
43029         (Makefile.am): Sed in substitute header file.
43030
43031         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
43032         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
43033
43034         * modules/inet_ntop (configure.ac): Use
43035         gl_ARPA_INET_MODULE_INDICATOR.
43036
43037         * modules/inet_pton (configure.ac): Use
43038         gl_ARPA_INET_MODULE_INDICATOR.
43039
43040 2008-04-22  Jim Meyering  <meyering@redhat.com>
43041
43042         * modules/verify (License): Re-license as LGPLv2+.
43043
43044 2008-04-22  Simon Josefsson  <simon@josefsson.org>
43045
43046         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
43047         parameter to void* as per POSIX standard (MinGW uses char*).
43048
43049 2008-04-21  Bruno Haible  <bruno@clisp.org>
43050
43051         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43052         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43053         Define to replacements if REPLACE_ISWCNTRL is 1.
43054         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
43055         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
43056         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
43057         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
43058         what it fixes.
43059         * doc/posix-functions/iswalpha.texi: Likewise.
43060         * doc/posix-functions/iswblank.texi: Likewise.
43061         * doc/posix-functions/iswcntrl.texi: Likewise.
43062         * doc/posix-functions/iswdigit.texi: Likewise.
43063         * doc/posix-functions/iswgraph.texi: Likewise.
43064         * doc/posix-functions/iswlower.texi: Likewise.
43065         * doc/posix-functions/iswprint.texi: Likewise.
43066         * doc/posix-functions/iswpunct.texi: Likewise.
43067         * doc/posix-functions/iswspace.texi: Likewise.
43068         * doc/posix-functions/iswupper.texi: Likewise.
43069         * doc/posix-functions/iswxdigit.texi: Likewise.
43070         Reported by Alain Guibert.
43071
43072 2008-04-21  Bruno Haible  <bruno@clisp.org>
43073
43074         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
43075         Patch by Alain Guibert.
43076
43077 2008-04-21  Bruno Haible  <bruno@clisp.org>
43078
43079         Fix test failures on mingw.
43080         * tests/test-xstrtol.c (print_no_progname): New function.
43081         (main): Install it in error_print_progname hook.
43082         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
43083         * tests/test-xstrtoimax.sh: Likewise.
43084         * tests/test-xstrtoumax.sh: Likewise.
43085
43086 2008-04-21  Bruno Haible  <bruno@clisp.org>
43087
43088         Fix test failure on mingw.
43089         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
43090
43091 2008-04-21  Bruno Haible  <bruno@clisp.org>
43092
43093         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
43094         Actually assign a value.
43095
43096 2008-04-20  Bruno Haible  <bruno@clisp.org>
43097
43098         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
43099         take 2.
43100         * lib/canonicalize.c (canonicalize_file_name): Elide if the
43101         'canonicalize-lgpl' module is also used.
43102         * lib/canonicalize-lgpl.c: Undo last change.
43103         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
43104
43105 2008-04-20  Bruno Haible  <bruno@clisp.org>
43106
43107         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
43108         config.h. Provide _mkdir based fallback for mingw.
43109         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
43110         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
43111         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
43112         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
43113         rather than defining mkdir in config.h.
43114         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
43115         (gl_SYS_STAT_H_DEFAULTS): New macro.
43116         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
43117         HAVE_IO_H any more.
43118         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
43119         HAVE_DECL_MKDIR and HAVE_IO_H.
43120
43121 2008-04-20  Bruno Haible  <bruno@clisp.org>
43122
43123         * lib/isapipe.c: Port to native Windows platforms.
43124
43125 2008-04-20  Bruno Haible  <bruno@clisp.org>
43126
43127         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
43128
43129 2008-04-21  Eric Blake  <ebb9@byu.net>
43130
43131         Work around preprocessors that don't handle UINTMAX_MAX.
43132         * lib/memchr2.c (memchr2): Avoid embedded #if.
43133         Reported by Alain Guibert, fix suggested by Bruno Haible.
43134
43135 2008-04-21  Simon Josefsson  <simon@josefsson.org>
43136
43137         * doc/posix-functions/strftime.texi (strftime): Explain better
43138         Windows incompatibility.  Suggested by Micah Cowan
43139         <micah@cowan.name>.
43140
43141 2008-04-20  Bruno Haible  <bruno@clisp.org>
43142
43143         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
43144         unistr/u8-mblen.
43145
43146 2008-04-20  Bruno Haible  <bruno@clisp.org>
43147
43148         Fix test failure on platforms with non-GNU iconv.
43149         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
43150         (U_TO_U8): Use it, rather than u16_to_u8.
43151         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
43152         units at the end of the input string.
43153         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
43154
43155 2008-04-20  Bruno Haible  <bruno@clisp.org>
43156
43157         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
43158         when the resulting length is 0.
43159         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
43160
43161 2008-04-20  Bruno Haible  <bruno@clisp.org>
43162
43163         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
43164         works.
43165         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
43166
43167 2008-04-20  Bruno Haible  <bruno@clisp.org>
43168
43169         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
43170         * modules/tsearch-tests (configure.ac): Test for initstate function.
43171
43172 2008-04-20  Bruno Haible  <bruno@clisp.org>
43173
43174         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
43175         for nlink_t if missing.
43176         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
43177
43178 2008-04-19  Bruno Haible  <bruno@clisp.org>
43179
43180         Work around snprintf bug on Linux libc5.
43181         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
43182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43183         gl_SNPRINTF_SIZE1.
43184         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43185         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
43186         that test failed.
43187         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43188         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
43189         * modules/snprintf (Files): Add m4/printf.m4.
43190         * modules/vsnprintf (Files): Likewise.
43191         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
43192         * doc/posix-functions/vsnprintf.texi: Likewise.
43193
43194 2008-04-19  Bruno Haible  <bruno@clisp.org>
43195
43196         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
43197         from 0.0058 to less than 10^-7.
43198
43199 2008-04-19  Bruno Haible  <bruno@clisp.org>
43200
43201         Fix rounding when a precision is given.
43202         * lib/vasnprintf.c (is_borderline): New function.
43203         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
43204         9...9x.
43205         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
43206         %e, %g.
43207         * tests/test-vasprintf-posix.c (test_function): Likewise.
43208         * tests/test-snprintf-posix.h (test_function): Likewise.
43209         * tests/test-sprintf-posix.h (test_function): Likewise.
43210         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
43211         * tests/test-printf-posix.h (test_function): Likewise.
43212         * tests/test-printf-posix.output: Update.
43213         Reported by John Darrington <john@darrington.wattle.id.au> via
43214         Ben Pfaff <blp@cs.stanford.edu>.
43215
43216 2008-04-18  Simon Josefsson  <simon@josefsson.org>
43217
43218         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
43219         Suggested by Bruno Haible <bruno@clisp.org>.
43220
43221 2008-04-17  Bruno Haible  <bruno@clisp.org>
43222
43223         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
43224         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
43225         implementation.
43226         Patch by Bruce Merry <bmerry@gmail.com>.
43227
43228 2008-04-17  Simon Josefsson  <simon@josefsson.org>
43229
43230         * doc/posix-functions/strftime.texi (strftime): Mention that %e
43231         doesn't work under Windows.
43232
43233 2008-04-16  Bruno Haible  <bruno@clisp.org>
43234
43235         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43236         New macros.
43237         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
43238         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
43239         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
43240         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
43241         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
43242         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
43243         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
43244         macros.
43245         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
43246         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
43247         Northern Sotho, Uighur.
43248
43249 2008-04-16  Bruno Haible  <bruno@clisp.org>
43250
43251         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
43252         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
43253         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
43254         Reported by Daniel Bergström <daniel@octocode.com>.
43255
43256 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
43257             Bruno Haible  <bruno@clisp.org>
43258
43259         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
43260         function.
43261         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
43262         New functions, mostly extracted from gl_locale_name_default.
43263         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
43264
43265 2008-04-16  Eric Blake  <ebb9@byu.net>
43266
43267         Adjust strtod detection to catch glibc 2.7 bug.
43268         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
43269         Reported by John Gatewood Ham.
43270
43271 2008-04-16  Bruno Haible  <bruno@clisp.org>
43272
43273         Add tentative support for Linux libc5.
43274         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
43275         * lib/fpurge.c (fpurge): Likewise.
43276         * lib/freadable.c (freadable): Likewise.
43277         * lib/freadahead.c (freadahead): Likewise.
43278         * lib/freading.c (freading): Likewise.
43279         * lib/freadptr.c (freadptr): Likewise.
43280         * lib/freadseek.c (freadptrinc): Likewise.
43281         * lib/fseeko.c (rpl_fseeko): Likewise.
43282         * lib/fseterr.c (fseterr): Likewise.
43283         * lib/fwritable.c (fwritable): Likewise.
43284         * lib/fwriting.c (fwriting): Likewise.
43285         Reported by Alain Guibert <alguibert+bts@free.fr>.
43286
43287 2008-04-15  Bruno Haible  <bruno@clisp.org>
43288
43289         * modules/mathl (configure.ac): Define module indicator.
43290
43291 2008-04-15  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/logl.c (logl): Remove unused variables.
43294
43295 2008-04-15  Bruno Haible  <bruno@clisp.org>
43296
43297         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
43298         fails.
43299
43300 2008-04-15  Bruno Haible  <bruno@clisp.org>
43301
43302         * lib/trim.c (trim2): Fix argument of isspace() macro.
43303
43304 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
43305
43306         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
43307         to 0.
43308         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
43309
43310 2008-04-14  Bruno Haible  <bruno@clisp.org>
43311
43312         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
43313         AC_LANG_PROGRAM argument.
43314         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
43315         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
43316         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43317         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43318         * m4/math_h.m4 (gl_MATH_H): Likewise.
43319         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43320         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43321         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43322         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
43323         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43324         * m4/regex.m4 (gl_REGEX): Likewise.
43325         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
43326         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
43327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43328         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43329         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43330         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43331         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43332         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43333
43334 2008-04-14  Jim Meyering  <meyering@redhat.com>
43335
43336         test-strtod: fix typos: s/abs/fabs/
43337         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43338
43339 2008-04-13  Bruno Haible  <bruno@clisp.org>
43340
43341         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43342         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43343         module is also used and while not building the reloc-wrapper.
43344
43345 2008-04-13  Bruno Haible  <bruno@clisp.org>
43346
43347         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43348
43349 2008-04-13  Bruno Haible  <bruno@clisp.org>
43350
43351         Fix AIX compilation failure introduced on 2008-04-02.
43352         * tests/test-frexp.c (exp): Undefine before redefining.
43353         * tests/test-frexpl.c (exp): Likewise.
43354
43355 2008-04-13  Bruno Haible  <bruno@clisp.org>
43356
43357         Work around a HP-UX stdio bug.
43358         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43359         * tests/test-ftello.c (main): Likewise.
43360         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43361         * doc/posix-functions/ftello.texi: Likewise.
43362
43363 2008-04-13  Bruno Haible  <bruno@clisp.org>
43364
43365         Make test-signbit pass on HP-UX/hppa.
43366         * tests/test-signbit.c (minus_zerol): New variable.
43367         (test_signbitl): Use it.
43368
43369 2008-04-13  Bruno Haible  <bruno@clisp.org>
43370
43371         Make truncl work on OSF/1 4.0.
43372         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43373         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43374         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43376         HAVE_DECL_TRUNCL.
43377         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43378         HAVE_DECL_TRUNCL.
43379         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43380
43381 2008-04-13  Bruno Haible  <bruno@clisp.org>
43382
43383         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43384
43385 2008-04-13  Bruno Haible  <bruno@clisp.org>
43386
43387         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43388         expression, so as to avoid HP-UX 11 cc compiler bug.
43389
43390 2008-04-13  Bruno Haible  <bruno@clisp.org>
43391
43392         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43393
43394 2008-04-13  Bruno Haible  <bruno@clisp.org>
43395
43396         * lib/git-merge-changelog.c: Remove empty declaration outside of
43397         functions.
43398
43399 2008-04-13  Bruno Haible  <bruno@clisp.org>
43400
43401         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43402
43403 2008-04-13  Bruno Haible  <bruno@clisp.org>
43404
43405         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43406         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43407         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43408         also if it exists but lacks definitions of the SHUT_* macros.
43409         * modules/sys_socket (Description): Update.
43410         Reported by Elbert Pol <e.pol@chello.nl>.
43411
43412 2008-04-13  Bruno Haible  <bruno@clisp.org>
43413
43414         * lib/localcharset.c (OS2): Don't redefine if already defined.
43415         Reported by Elbert Pol <e.pol@chello.nl>.
43416
43417 2008-04-13  Bruno Haible  <bruno@clisp.org>
43418
43419         * lib/binary-io.h [__EMX__]: Include <io.h>.
43420         Reported by Elbert Pol <e.pol@chello.nl>.
43421
43422 2008-04-12  Bruno Haible  <bruno@clisp.org>
43423
43424         * lib/fpucw.h: Enable the definitions also for x86_64.
43425         Needed for NetBSD/x86_64.
43426         Reported by Thomas Klausner <tk@giga.or.at>.
43427
43428 2008-04-12  Bruno Haible  <bruno@clisp.org>
43429
43430         * tests/test-strtod.c: Include isnand.h.
43431         (main): Use isnand instead of isnan.
43432         Reported by Jim Meyering.
43433
43434 2008-04-12  Bruno Haible  <bruno@clisp.org>
43435
43436         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43437         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43438
43439 2008-04-12  Jim Meyering  <meyering@redhat.com>
43440
43441         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43442
43443 2008-04-12  Bruno Haible  <bruno@clisp.org>
43444
43445         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43446         Reported by Elbert Pol <e.pol@chello.nl>.
43447
43448 2008-04-12  Eric Blake  <ebb9@byu.net>
43449
43450         Work around Solaris 10 math.h bug.
43451         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43452         (gl_MATH_H_DEFAULTS): Set up default.
43453         * modules/math (Makefile.am): Replace new indicators.
43454         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43455         * tests/test-math.c (main): Test this.
43456         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43457         * doc/posix-headers/math.texi (math.h): Mention bug.
43458         Reported by Nelson H. F. Beebe and Jim Meyering.
43459
43460 2008-04-11  Bruno Haible  <bruno@clisp.org>
43461
43462         Adapt to future versions of Apple GCC.
43463         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43464         Reported by Peter O'Gorman <peter@pogma.com>.
43465
43466 2008-04-11  Bruno Haible  <bruno@clisp.org>
43467
43468         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43469
43470 2008-04-11  Bruno Haible  <bruno@clisp.org>
43471
43472         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43473
43474         * modules/getaddrinfo-tests (Makefile.am): Define
43475         test_getaddrinfo_LDADD.
43476
43477 2008-04-11  Bruno Haible  <bruno@clisp.org>
43478
43479         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43480         (init): Fix syntax error.
43481         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43482         is declared.
43483
43484 2008-04-11  Bruno Haible  <bruno@clisp.org>
43485
43486         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43487         * modules/glob (Depends-on): Add stdbool.
43488
43489 2008-04-11  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/trim.c: Include <string.h>.
43492
43493 2008-04-11  Eric Blake  <ebb9@byu.net>
43494
43495         Avoid compile failure on OS/2.
43496         * lib/regex_internal.h (internal_function): Disable optimization
43497         on OS/2 (__EMX__), where it caused compiler error.
43498         Reported by Elbert Pol.
43499
43500 2008-04-11  Bruno Haible  <bruno@clisp.org>
43501
43502         Flush the standard error stream before aborting. Needed on mingw.
43503         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43504         * tests/test-array_list.c (ASSERT): Likewise.
43505         * tests/test-array_oset.c (ASSERT): Likewise.
43506         * tests/test-avltree_list.c (ASSERT): Likewise.
43507         * tests/test-avltree_oset.c (ASSERT): Likewise.
43508         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43509         * tests/test-binary-io.c (ASSERT): Likewise.
43510         * tests/test-byteswap.c (ASSERT): Likewise.
43511         * tests/test-c-ctype.c (ASSERT): Likewise.
43512         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43513         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43514         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43515         * tests/test-c-strstr.c (ASSERT): Likewise.
43516         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43517         * tests/test-canonicalize.c (ASSERT): Likewise.
43518         * tests/test-carray_list.c (ASSERT): Likewise.
43519         * tests/test-ceilf1.c (ASSERT): Likewise.
43520         * tests/test-ceilf2.c (ASSERT): Likewise.
43521         * tests/test-ceill.c (ASSERT): Likewise.
43522         * tests/test-count-one-bits.c (ASSERT): Likewise.
43523         * tests/test-fbufmode.c (ASSERT): Likewise.
43524         * tests/test-fflush2.c (ASSERT): Likewise.
43525         * tests/test-floorf1.c (ASSERT): Likewise.
43526         * tests/test-floorf2.c (ASSERT): Likewise.
43527         * tests/test-floorl.c (ASSERT): Likewise.
43528         * tests/test-fopen.c (ASSERT): Likewise.
43529         * tests/test-fpending.c (ASSERT): Likewise.
43530         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43531         * tests/test-fpurge.c (ASSERT): Likewise.
43532         * tests/test-freadable.c (ASSERT): Likewise.
43533         * tests/test-freadahead.c (ASSERT): Likewise.
43534         * tests/test-freading.c (ASSERT): Likewise.
43535         * tests/test-freadptr.c (ASSERT): Likewise.
43536         * tests/test-freadptr2.c (ASSERT): Likewise.
43537         * tests/test-freadseek.c (ASSERT): Likewise.
43538         * tests/test-freopen.c (ASSERT): Likewise.
43539         * tests/test-frexp.c (ASSERT): Likewise.
43540         * tests/test-frexpl.c (ASSERT): Likewise.
43541         * tests/test-fseek.c (ASSERT): Likewise.
43542         * tests/test-fseeko.c (ASSERT): Likewise.
43543         * tests/test-fstrcmp.c (ASSERT): Likewise.
43544         * tests/test-ftell.c (ASSERT): Likewise.
43545         * tests/test-ftello.c (ASSERT): Likewise.
43546         * tests/test-func.c (ASSERT): Likewise.
43547         * tests/test-fwritable.c (ASSERT): Likewise.
43548         * tests/test-fwriting.c (ASSERT): Likewise.
43549         * tests/test-getdelim.c (ASSERT): Likewise.
43550         * tests/test-getline.c (ASSERT): Likewise.
43551         * tests/test-i-ring.c (ASSERT): Likewise.
43552         * tests/test-iconv-utf.c (ASSERT): Likewise.
43553         * tests/test-iconv.c (ASSERT): Likewise.
43554         * tests/test-isfinite.c (ASSERT): Likewise.
43555         * tests/test-isnand.c (ASSERT): Likewise.
43556         * tests/test-isnanf.c (ASSERT): Likewise.
43557         * tests/test-isnanl.h (ASSERT): Likewise.
43558         * tests/test-ldexpl.c (ASSERT): Likewise.
43559         * tests/test-linked_list.c (ASSERT): Likewise.
43560         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43561         * tests/test-localename.c (ASSERT): Likewise.
43562         * tests/test-lseek.c (ASSERT): Likewise.
43563         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43564         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43565         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43566         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43567         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43568         * tests/test-mbschr.c (ASSERT): Likewise.
43569         * tests/test-mbscspn.c (ASSERT): Likewise.
43570         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43571         * tests/test-mbspbrk.c (ASSERT): Likewise.
43572         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43573         * tests/test-mbsrchr.c (ASSERT): Likewise.
43574         * tests/test-mbsspn.c (ASSERT): Likewise.
43575         * tests/test-mbsstr1.c (ASSERT): Likewise.
43576         * tests/test-mbsstr2.c (ASSERT): Likewise.
43577         * tests/test-mbsstr3.c (ASSERT): Likewise.
43578         * tests/test-memchr2.c (ASSERT): Likewise.
43579         * tests/test-memmem.c (ASSERT): Likewise.
43580         * tests/test-open.c (ASSERT): Likewise.
43581         * tests/test-printf-frexp.c (ASSERT): Likewise.
43582         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43583         * tests/test-printf-posix.c (ASSERT): Likewise.
43584         * tests/test-quotearg.c (ASSERT): Likewise.
43585         * tests/test-rbtree_list.c (ASSERT): Likewise.
43586         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43587         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43588         * tests/test-round1.c (ASSERT): Likewise.
43589         * tests/test-roundf1.c (ASSERT): Likewise.
43590         * tests/test-roundl.c (ASSERT): Likewise.
43591         * tests/test-signbit.c (ASSERT): Likewise.
43592         * tests/test-sleep.c (ASSERT): Likewise.
43593         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43594         * tests/test-snprintf.c (ASSERT): Likewise.
43595         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43596         * tests/test-stat-time.c (ASSERT): Likewise.
43597         * tests/test-strcasestr.c (ASSERT): Likewise.
43598         * tests/test-strerror.c (ASSERT): Likewise.
43599         * tests/test-striconv.c (ASSERT): Likewise.
43600         * tests/test-striconveh.c (ASSERT): Likewise.
43601         * tests/test-striconveha.c (ASSERT): Likewise.
43602         * tests/test-strsignal.c (ASSERT): Likewise.
43603         * tests/test-strstr.c (ASSERT): Likewise.
43604         * tests/test-strtod.c (ASSERT): Likewise.
43605         * tests/test-trunc1.c (ASSERT): Likewise.
43606         * tests/test-trunc2.c (ASSERT): Likewise.
43607         * tests/test-truncf1.c (ASSERT): Likewise.
43608         * tests/test-truncf2.c (ASSERT): Likewise.
43609         * tests/test-truncl.c (ASSERT): Likewise.
43610         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43611         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43612         * tests/test-vasnprintf.c (ASSERT): Likewise.
43613         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43614         * tests/test-vasprintf.c (ASSERT): Likewise.
43615         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43616         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43617         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43618         * tests/test-vsnprintf.c (ASSERT): Likewise.
43619         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43620         * tests/test-wcwidth.c (ASSERT): Likewise.
43621         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43622         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43623         * tests/test-xvasprintf.c (ASSERT): Likewise.
43624         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43625         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43626         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43627         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43628         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43629         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43630         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43631         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43632         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43633         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43634         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43635         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43636         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43637         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43638         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43639         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43640         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43641         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43642         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43643         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43644         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43645         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43646         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43647         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43648         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43649         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43650         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43651         * tests/unictype/test-combining.c (ASSERT): Likewise.
43652         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43653         * tests/unictype/test-digit.c (ASSERT): Likewise.
43654         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43655         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43656         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43657         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43658         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43659         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43660         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43661         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43662         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43663         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43664         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43665         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43666         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43667         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43668         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43669         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43670         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43671         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43672         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43673         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43674         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43675         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43676         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43677         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43678         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43679         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43680         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43681         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43682         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43683         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43684         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43685         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43686         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43687         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43688         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43689         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43690         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43691         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43692         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43693         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43694         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43695         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43696         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43697         Reported by Eric Blake.
43698
43699 2008-04-11  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/wchar.in.h: Tweak comment.
43702
43703 2008-04-11  Bruno Haible  <bruno@clisp.org>
43704
43705         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43706         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43707         gl_COMMON.
43708         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43709
43710 2008-04-11  Bruno Haible  <bruno@clisp.org>
43711
43712         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43713
43714 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43715
43716         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43717         of attempting to use non-existing /dev/*random.  Based on patch
43718         from Adam Strzelecki <ono@java.pl> in
43719         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43720
43721 2008-04-08  Bruno Haible  <bruno@clisp.org>
43722
43723         Add tentative support for emx+gcc.
43724         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43725         * lib/fpurge.c (fpurge): Likewise.
43726         * lib/freadable.c (freadable): Likewise.
43727         * lib/freadahead.c (freadahead): Likewise.
43728         * lib/freading.c (freading): Likewise.
43729         * lib/freadptr.c (freadptr): Likewise.
43730         * lib/freadseek.c (freadptrinc): Likewise.
43731         * lib/fseeko.c (rpl_fseeko): Likewise.
43732         * lib/fseterr.c (fseterr): Likewise.
43733         * lib/fwritable.c (fwritable): Likewise.
43734         * lib/fwriting.c (fwriting): Likewise.
43735         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43736
43737 2008-04-09  Eric Blake  <ebb9@byu.net>
43738
43739         Avoid some autoconf warnings.
43740         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43741         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43742         * m4/afs.m4 (gl_AFS): Likewise.
43743         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43744         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43745         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43746         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43747         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43748         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43749         (AC_CHECK_DECLS_ONCE): Likewise.
43750         Rename file...
43751         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43752         gnulib-tool requires autoconf 2.59 or better.
43753         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43754
43755 2008-04-08  Eric Blake  <ebb9@byu.net>
43756
43757         Use 'git describe --match' if present (added in git 1.5.5).
43758         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43759         if possible.
43760
43761 2008-04-08  Bruno Haible  <bruno@clisp.org>
43762
43763         Add tentative support for OpenServer.
43764         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43765         _ptr, _cnt.
43766         * lib/fpurge.c (fpurge): Likewise.
43767         * lib/freadable.c (freadable): Likewise.
43768         * lib/freadahead.c (freadahead): Likewise.
43769         * lib/freading.c (freading): Likewise.
43770         * lib/freadptr.c (freadptr): Likewise.
43771         * lib/freadseek.c (freadptrinc): Likewise.
43772         * lib/fseeko.c (rpl_fseeko): Likewise.
43773         * lib/fseterr.c (fseterr): Likewise.
43774         * lib/fwritable.c (fwritable): Likewise.
43775         * lib/fwriting.c (fwriting): Likewise.
43776         Reported by Roger Cornelius <rac@tenzing.org> and
43777         Brian K. White <brian@aljex.com>.
43778
43779 2008-04-06  Jim Meyering  <meyering@redhat.com>
43780
43781         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43782
43783 2008-04-06  Bruno Haible  <bruno@clisp.org>
43784
43785         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43786         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43787         * tests/test-printf-posix.sh: Likewise.
43788         * tests/test-vfprintf-posix.sh: Likewise.
43789         * tests/test-vprintf-posix.sh: Likewise.
43790         * tests/test-xprintf-posix.sh: Likewise.
43791
43792 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43793
43794         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43795         hide error from 'ls', needed on OS/2.
43796         Report by Elbert Pol <elbert.pol@gmail.com>.
43797
43798 2008-04-04  Eric Blake  <ebb9@byu.net>
43799
43800         Make test-fseeko.c failures meaningful.
43801         * tests/test-fseeko.c: Print line number on failure.
43802         * tests/test-fseek.c: Likewise.
43803         Reported by Nelson H. F. Beebe.
43804
43805         Improve strtod bug detection check.
43806         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43807         required for Solaris 10.
43808         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43809
43810 2008-04-04  Bruno Haible  <bruno@clisp.org>
43811
43812         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43813         by m4/setenv.m4.
43814
43815 2008-04-03  Eric Blake  <ebb9@byu.net>
43816
43817         Ensure sane .version contents.
43818         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43819         version string.
43820         * build-aux/git-version-gen: Improve documentation.
43821
43822         Make GNU make output nicer.
43823         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43824         MAKECMDGOALS to enforce message for all command line targets.  Set
43825         srcdir for use in maint.mk.
43826
43827         Another maintainer tweak.
43828         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43829         a target that regenerates version.
43830
43831 2008-04-03  Jim Meyering  <meyering@redhat.com>
43832
43833         vc-list-files: don't cause coreutils "make po-check" failure
43834         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43835
43836 2008-04-03  Eric Blake  <ebb9@byu.net>
43837
43838         Allow VPATH usage of vc-list-files.
43839         * build-aux/vc-list-files (scriptversion): Add timestamp.
43840         (options): Add --help, --version, -C.
43841         (CVS): Support installed cvsu.
43842
43843 2008-04-02  Bruno Haible  <bruno@clisp.org>
43844
43845         Avoid some "statement with no effect" warnings from gcc.
43846         * tests/test-wctype.c (main): Explicitly ignore unused values.
43847         Reported by Jim Meyering.
43848
43849 2008-04-02  Jim Meyering  <meyering@redhat.com>
43850
43851         Avoid some warnings from "gcc -Wshadow".
43852         * tests/test-frexp.c (exp): Define to a different identifier.
43853         * tests/test-frexpl.c (exp): Likewise.
43854
43855 2008-04-03  Jim Meyering  <meyering@redhat.com>
43856
43857         bootstrap: remove dangling *.[ch] symlinks from lib
43858         * build-aux/bootstrap [dangling symlink removal]: Move find's
43859         -depth option to precede all others, to avoid a warning.
43860         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43861
43862 2008-04-02  Bruno Haible  <bruno@clisp.org>
43863
43864         Avoid some warnings from "gcc -Wshadow".
43865         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43866         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43867         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43868         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43869         Reported by Jim Meyering.
43870
43871 2008-04-01  Bruno Haible  <bruno@clisp.org>
43872
43873         Fix test to work on IRIX 6.5 with cc.
43874         * tests/test-math.c (numeric_equal): New function.
43875         (main): Use it.
43876
43877 2008-04-01  Bruno Haible  <bruno@clisp.org>
43878
43879         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43880
43881 2008-04-01  Bruno Haible  <bruno@clisp.org>
43882
43883         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43884         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43885         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43886         (Depends-on): Remove math.
43887
43888         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43889         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43890         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43891         (Depends-on): Remove math.
43892
43893         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43894         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43895         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43896         (Depends-on): Remove math.
43897         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43898         (Depends-on): Remove math.
43899
43900         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43901         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43902         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43903         (Depends-on): Remove math.
43904         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43905         (Depends-on): Remove math.
43906
43907         * tests/test-round1.c: Include nan.h.
43908         (main): Use NaNd instead of NAN.
43909         * modules/round-tests (Files): Add tests/nan.h.
43910
43911         * tests/test-trunc1.c: Include nan.h.
43912         (main): Use NaNd instead of NAN.
43913         * modules/trunc-tests (Files): Add tests/nan.h.
43914
43915         * tests/test-roundf1.c: Include nan.h.
43916         (main): Use NaNf instead of NAN.
43917         * modules/roundf-tests (Files): Add tests/nan.h.
43918
43919         * tests/test-truncf1.c: Include nan.h.
43920         (main): Use NaNf instead of NAN.
43921         * modules/truncf-tests (Files): Add tests/nan.h.
43922
43923         * tests/test-ceilf1.c: Include nan.h.
43924         (main): Use NaNf instead of NAN.
43925         * modules/ceilf-tests (Files): Add tests/nan.h.
43926
43927         * tests/test-floorf1.c: Include nan.h.
43928         (main): Use NaNf instead of NAN.
43929         * modules/floorf-tests (Files): Add tests/nan.h.
43930
43931         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43932         (main): Use NaNf instead of NAN.
43933         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43934
43935         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43936         (main): Use NaNd instead of NAN.
43937         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43938
43939         * tests/test-frexp.c: Include nan.h.
43940         (main): Use NaNd instead of NAN.
43941         * modules/frexp-tests (Files): Add tests/nan.h.
43942
43943         * lib/isnan.c: Don't include <math.h>.
43944         (FUNC): Don't use NAN macro.
43945         * modules/isnand-nolibm (Depends-on): Remove math.
43946         * modules/isnanf-nolibm (Depends-on): Remove math.
43947         * modules/isnanl (Depends-on): Remove math.
43948         * modules/isnanl-nolibm (Depends-on): Remove math.
43949
43950         * tests/nan.h: New file.
43951
43952 2008-04-01  Eric Blake  <ebb9@byu.net>
43953
43954         Fix typos.
43955         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43956         values to be the right type.
43957
43958         For now, cater to gnulib strtod inaccuracies.
43959         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43960         fractional results.  While not as nice from a QoI perspective, it
43961         is a quicker patch than correctly implementing decimal to binary
43962         rounding.
43963
43964 2008-03-31  Eric Blake  <ebb9@byu.net>
43965
43966         Guarantee a definition of NAN.
43967         * lib/math.in.h (NAN): Define if missing.
43968         * tests/test-math.c (main): Test it.
43969         * doc/posix-headers/math.texi (math.h): Document this.
43970         * lib/isnan.c (rpl_isnand): Use it.
43971         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43972         * tests/test-floorf1.c (NaN): Likewise.
43973         * tests/test-frexp.c (NaN): Likewise.
43974         * tests/test-isnand.c (NaN): Likewise.
43975         * tests/test-isnanf.c (NaN): Likewise.
43976         * tests/test-round1.c (NaN): Likewise.
43977         * tests/test-roundf1.c (NaN): Likewise.
43978         * tests/test-snprintf-posix.h (NaN): Likewise.
43979         * tests/test-sprintf-posix.h (NaN): Likewise.
43980         * tests/test-trunc1.c (NaN): Likewise.
43981         * tests/test-truncf1.c (NaN): Likewise.
43982         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43983         * tests/test-vasprintf-posix.c (NaN): Likewise.
43984         * modules/isnand-nolibm (Depends-on): Add math.
43985         * modules/isnanf-nolibm (Depends-on): Likewise.
43986         * modules/isnanl (Depends-on): Likewise.
43987         * modules/isnanl-nolibm (Depends-on): Likewise.
43988         * modules/snprintf-posix-tests (Depends-on): Likewise.
43989         * modules/sprintf-posix-tests (Depends-on): Likewise.
43990         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43991         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43992         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43993         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43994
43995 2008-03-31  Bruno Haible  <bruno@clisp.org>
43996
43997         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43998         * doc/posix-functions/strtod.texi: Likewise.
43999
44000 2008-03-31  Bruno Haible  <bruno@clisp.org>
44001
44002         * tests/test-strtod.c (main): Don't use C99 syntax.
44003
44004 2008-03-31  Bruno Haible  <bruno@clisp.org>
44005
44006         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
44007         Reported by Eric Blake.
44008
44009 2008-03-31  Jim Meyering  <meyering@redhat.com>
44010
44011         Don't compare actual signbit return values.
44012         * tests/test-strtod.c (main): Rather, compare only their
44013         zero/non-zero nature.
44014
44015 2008-03-31  Eric Blake  <ebb9@byu.net>
44016
44017         More strtod documentation.
44018         * doc/posix-functions/strtod.texi (strtod): Interpret more test
44019         failures as distinct bugs.
44020
44021 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44022
44023         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
44024         Problem reported by Erik Benada in
44025         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
44026
44027 2008-03-30  Bruno Haible  <bruno@clisp.org>
44028
44029         * tests/test-strtod.c: Add comments about which assertion fails on which
44030         platform.
44031         * doc/posix-functions/strtod.texi: Add info about many more platforms.
44032
44033 2008-03-30  Eric Blake  <ebb9@byu.net>
44034
44035         Test signbit behavior on zeros.
44036         * tests/test-signbit.c (test_signbitf): Add tests for zero.
44037         (test_signbitd, test_signbitl): Likewise.
44038
44039         More strtod touchups.
44040         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
44041         sign of negative underflow, for now.  Use .5, not .1.
44042         * doc/posix-functions/strtod.texi (strtod): Mention these
44043         limitations.
44044         Reported by Jim Meyering.
44045
44046 2008-03-30  Bruno Haible  <bruno@clisp.org>
44047
44048         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
44049         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
44050
44051 2008-03-30  Bruno Haible  <bruno@clisp.org>
44052
44053         Avoid failure when attempting to return empty iconv results on some
44054         platforms.
44055         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
44056         allocation, don't report ENOMEM when the resulting string is empty.
44057
44058 2008-03-30  Bruno Haible  <bruno@clisp.org>
44059
44060         Fix buffer overrun.
44061         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
44062         Don't consider the width for tmp_length. Check count against tmp_length
44063         before doing the padding. Ensure enough allocation during padding.
44064
44065 2008-03-30  Eric Blake  <ebb9@byu.net>
44066
44067         strtod touchups.
44068         * lib/strtod.c (strtod): Avoid compiler warnings.
44069         Reported by Jim Meyering.
44070
44071 2008-03-30  Bruno Haible  <bruno@clisp.org>
44072
44073         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
44074         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
44075         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
44076         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
44077         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
44078         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
44079         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
44080         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
44081
44082         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
44083         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
44084         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
44085         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
44086         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
44087         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
44088         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44089         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
44090
44091         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
44092         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
44093         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
44094         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
44095         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
44096         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
44097         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
44098         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
44099
44100         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
44101         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
44102
44103         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
44104         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
44105
44106         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
44107         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
44108
44109         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
44110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
44111         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
44112
44113         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
44114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
44115         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
44116
44117         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
44118         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
44119         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
44120
44121         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
44122         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
44123         * modules/vasprintf (Depends-on): Add EOVERFLOW.
44124
44125         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
44126         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
44127         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
44128         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
44129         (Depends-on): Add EOVERFLOW.
44130         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
44131         (Depends-on): Add EOVERFLOW.
44132         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44133         (Depends-on): Add EOVERFLOW.
44134         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44135         (Depends-on): Add EOVERFLOW.
44136         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44137         (Depends-on): Add EOVERFLOW.
44138         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44139         (Depends-on): Add EOVERFLOW.
44140         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44141         (Depends-on): Add EOVERFLOW.
44142         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44143         (Depends-on): Add EOVERFLOW.
44144
44145         * lib/sprintf.c (EOVERFLOW): Remove fallback.
44146         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
44147         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
44148
44149         * lib/snprintf.c (EOVERFLOW): Remove fallback.
44150         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
44151         * modules/snprintf (Depends-on): Add EOVERFLOW.
44152
44153         * lib/poll.c (EOVERFLOW): Remove fallback.
44154         * modules/poll (Depends-on): Add EOVERFLOW.
44155
44156         * lib/getugroups.c (EOVERFLOW): Remove fallback.
44157         * modules/getugroups (Depends-on): Add EOVERFLOW.
44158
44159         * lib/getdelim.c (EOVERFLOW): Remove fallback.
44160         * modules/getdelim (Depends-on): Add EOVERFLOW.
44161
44162         * lib/ftell.c (EOVERFLOW): Remove fallback.
44163         * modules/ftell (Depends-on): Add EOVERFLOW.
44164
44165         * lib/fprintf.c (EOVERFLOW): Remove fallback.
44166         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
44167         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
44168
44169         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
44170
44171         * modules/EOVERFLOW-tests: New file.
44172         * tests/test-EOVERFLOW.c: New file.
44173
44174         * modules/EOVERFLOW: New file.
44175         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
44176
44177 2008-03-30  Bruno Haible  <bruno@clisp.org>
44178
44179         Fix bug introduced on 2007-06-10.
44180         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
44181         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
44182
44183 2008-03-30  Bruno Haible  <bruno@clisp.org>
44184
44185         Improve freadseek's efficiency after ungetc.
44186         * lib/freadseek.c: Include freadahead.h.
44187         (freadptrinc): New function, extracted from freadseek.
44188         (freadseek): Use it in a loop. Use freadahead to determine the number
44189         of loop iterations.
44190         * modules/freadseek (Depends-on): Add freadahead.
44191         (configure.ac): Require AC_C_INLINE.
44192
44193 2008-03-30  Bruno Haible  <bruno@clisp.org>
44194
44195         * lib/freadseek.c (freadseek): Don't ignore the return value of
44196         freadptr.
44197
44198 2008-03-29  Eric Blake  <ebb9@byu.net>
44199
44200         Add hex float support.
44201         * modules/strtod (Depends-on): Add c-ctype.
44202         (Link): Mention POW_LIB.
44203         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
44204         whitespace between 'e' and exponent.
44205         * tests/test-strtod.c (main): Enable hex float tests.
44206         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
44207         now provides.
44208
44209         Document various strtod bugs, with some fixes.
44210         * doc/posix-functions/strtod.texi (strtod): Document bugs with
44211         "-0x", "inf", "nan", and hex constants.
44212         * doc/posix-functions/atof.texi (atof): Likewise.
44213         * modules/stdlib (Makefile.am): Support strtod.
44214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44215         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
44216         detect additional strtod bugs.
44217         * lib/stdlib.in.h (rpl_strtod): Add declarations.
44218         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
44219         bool where appropriate.  Parse 'inf' and 'nan'.
44220         * tests/test-strtod.c: New file.
44221         * modules/strtod (Depends-on): Add stdbool, stdlib.
44222         (configure.ac): Turn on module indicator.
44223         * modules/strtod-tests: New module.
44224
44225 2008-03-29  Eric Blake  <ebb9@byu.net>
44226
44227         Fix ftell on mingw.
44228         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
44229         * modules/ftell-tests (Depends-on): Add binary-io.
44230         * modules/ftello-tests (Depends-on): Likewise.
44231         * tests/test-ftell.c (main): Enhance test to cover behavior after
44232         ungetc.  Enforce binary mode.
44233         * tests/test-ftello.c (main): Likewise.
44234
44235         Pass test-freadseek on cygwin.
44236         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
44237         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
44238         ungetc buffer.
44239
44240         * tests/test-fflush2.c (main): Fix typo.
44241
44242 2008-03-29  Bruno Haible  <bruno@clisp.org>
44243
44244         * tests/test-fflush2.c (main): Temporarily disable the contents of
44245         this test.
44246         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
44247         Reported by Eric Blake.
44248
44249 2008-03-28  Simon Josefsson  <simon@josefsson.org>
44250
44251         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
44252         (GC_SHA224_DIGEST_SIZE): Add.
44253
44254         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
44255         (gc_hash_digest_length): Likewise.
44256         (gc_hash_buffer): Likewise.
44257
44258 2008-03-25  Bruno Haible  <bruno@clisp.org>
44259
44260         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
44261         detail which gettext release to use.
44262         Reported by Simon Josefsson.
44263
44264 2008-03-26  Jim Meyering  <meyering@redhat.com>
44265
44266         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
44267         * modules/gnumakefile (clean-GNUmakefile): Also, use
44268         test ... && ... || : syntax rather than if-then ... fi.
44269
44270         gnumakefile: Don't double-quote-expand $(VPATH) value.
44271         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
44272
44273 2008-03-24  Eric Blake  <ebb9@byu.net>
44274
44275         Alter GNUmakefile to install into top directory.
44276         * modules/maintainer-makefile: Split, and add dependency...
44277         * modules/gnumakefile: to this new module.
44278         * build-aux/GNUmakefile: Move...
44279         * top/GNUmakefile: ...here.
44280         * build-aux/maint.mk: Move...
44281         * top/maint.mk: ...here.
44282         * MODULES.html.sh (Support for maintaining...): Document new
44283         module.
44284
44285 2008-03-23  Bruno Haible  <bruno@clisp.org>
44286
44287         * gnulib-tool: New options --vc-files, --no-vc-files.
44288         (func_usage): Document them.
44289         (vc_files): New variable.
44290         (func_import): Consider vc_files.
44291         (func_create_testdir): Set vc_files to empty.
44292         Suggested by Jim Meyering and Karl Berry.
44293
44294 2008-03-23  Bruno Haible  <bruno@clisp.org>
44295
44296         Fix regex compilation error on HP-UX 11.
44297         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
44298         * modules/regex (Files): Add m4/mbstate_t.m4.
44299         Reported by Ton Voon <ton.voon@altinity.com>.
44300
44301 2008-03-23  Bruno Haible  <bruno@clisp.org>
44302
44303         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
44304
44305 2008-03-23  Eric Blake  <ebb9@byu.net>
44306             Bruno Haible  <bruno@clisp.org>
44307
44308         Install files from top/ in the destination directory.
44309         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44310         augmentation also for the files from top/.
44311         (func_import, func_create_testdir): Rewrite file names:
44312         top/filename -> filename.
44313
44314 2008-03-23  Bruno Haible  <bruno@clisp.org>
44315
44316         Tweak "gnulib --version" output.
44317         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
44318
44319 2008-03-23  Bruno Haible  <bruno@clisp.org>
44320
44321         Tweak "gnulib --version" output.
44322         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
44323         rather than contents of ChangeLog, when possible.
44324
44325 2008-03-21  Eric Blake  <ebb9@byu.net>
44326
44327         More --version tweaks.
44328         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44329         date of last ChangeLog entry.
44330
44331 2008-03-21  Jim Meyering  <meyering@redhat.com>
44332
44333         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44334
44335 2008-03-20  Eric Blake  <ebb9@byu.net>
44336
44337         VPATH fix.
44338         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44339
44340 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44341
44342         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44343         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44344
44345 2008-03-20  Eric Blake  <ebb9@byu.net>
44346
44347         Sync GNUmakefile with coreutils.
44348         * build-aux/GNUmakefile (have-Makefile): Rename...
44349         (_have-Makefile): ...to this, for namespace consideration.
44350         (GNUmakefile.cfg): Include, if present.
44351         (_autoreconf): Define a default.
44352         (_is-dist-target): New rule for rebuilds to pick up intra-release
44353         version.
44354         (maint-cfg.mk): Rename...
44355         (cfg.mk): ...to this.
44356
44357 2008-03-18  Jim Meyering  <meyering@redhat.com>
44358
44359         New script and module: mktempd
44360         * MODULES.html.sh (maint+release support): Add mktempd.
44361         * build-aux/mktempd: New file.
44362         * modules/mktempd: New file.
44363
44364 2008-03-15  Jim Meyering  <meyering@redhat.com>
44365
44366         Undo last change.
44367         * lib/sha1.c, lib/md5.c: 63 != ~63.
44368         Reported by Andreas Schwab.
44369
44370         sha1.c, md5.c: Hoist a redundant expression.
44371         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44372         "ctx->buflen" only once, before calling *_process_block.
44373         * lib/md5.c (md5_process_bytes): Likewise.
44374
44375 2008-03-14  Eric Blake  <ebb9@byu.net>
44376
44377         Bump copyright year in files generated by gnulib-tool.
44378         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44379         gnulib-tool, rather than hard-coding it.
44380
44381         Fix 'gnulib-tool --version' output to work with git.
44382         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44383         (startup): ...here.
44384         (func_version): Use it to invoke git-version-gen, rather than
44385         relying on CVS keyword expansion.  Modernize wording.
44386         (cvsdatestamp, last_checkin_date, version): Kill unused
44387         variables.
44388
44389 2008-03-12  Jim Meyering  <meyering@redhat.com>
44390
44391         Recognize optional cast of the argument to free.
44392         * build-aux/useless-if-before-free: Update regexps.
44393
44394         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44395
44396 2008-03-11  Bruno Haible  <bruno@clisp.org>
44397
44398         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44399         by a single package.
44400         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44401         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44402         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44403         Reported by Sam Steingold <sds@gnu.org>.
44404
44405 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44406
44407         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44408         repositories.
44409
44410 2008-03-11  Bruno Haible  <bruno@clisp.org>
44411
44412         Avoid conflicts between local macro definitions.
44413         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44414         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44415
44416 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44417             Bruno Haible  <bruno@clisp.org>
44418
44419         Make va_copy work with some version of xlc on AIX 5.1.
44420         * lib/stdarg.in.h: New file.
44421         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44422         On AIX, use a <stdarg.h> file substitute.
44423         * modules/stdarg (Files): Add lib/stdarg.in.h.
44424         (Depends-on): Add include_next.
44425         (Makefile.am): Build a stdarg.h substitute if requested.
44426         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44427
44428 2008-03-10  Bruno Haible  <bruno@clisp.org>
44429
44430         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44431         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44432         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44433
44434 2008-03-10  Bruno Haible  <bruno@clisp.org>
44435
44436         * modules/stdlib (Depends-on): Add include_next, remove
44437         absolute-header.
44438
44439 2008-03-09  Bruno Haible  <bruno@clisp.org>
44440
44441         * lib/freadahead.h (freadahead): Document more precisely.
44442         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44443         the sum of both buffer sizes.
44444         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44445         * NEWS: Document the change.
44446
44447 2008-03-09  Bruno Haible  <bruno@clisp.org>
44448
44449         Extend freadptr to return also the buffer size.
44450         * lib/freadptr.h (freadptr): Add sizep argument.
44451         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44452         (freadptr): Add sizep argument. Determine buffer size like freadahead
44453         does.
44454         * tests/test-freadptr.c: Don't include freadahead.h.
44455         (main): Adapt for new calling convention of freadptr.
44456         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44457         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44458         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44459         tests/test-freadptr2.sh.
44460         (Depends): Remove freadahead.
44461         (TESTS): Add test-freadptr2.sh.
44462         (check_PROGRAMS): Add test-freadptr2.
44463
44464 2008-03-09  Bruno Haible  <bruno@clisp.org>
44465
44466         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44467         Report and solution by Simon Josefsson.
44468
44469 2008-03-06  Bruno Haible  <bruno@clisp.org>
44470
44471         Make fflush after ungetc work on BSD platforms.
44472         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44473         * tests/test-fflush2.c: New file.
44474         * tests/test-fflush2.sh: New file.
44475         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44476         tests/test-fflush2.c.
44477         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44478         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44479
44480 2008-03-06  Eric Blake  <ebb9@byu.net>
44481
44482         Likewise for ftello.
44483         * modules/ftello (Dependencies): Add extensions.
44484         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44485
44486 2008-03-06  Bruno Haible  <bruno@clisp.org>
44487
44488         * modules/fseeko (Dependencies): Add extensions.
44489         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44490         Needed on glibc systems.
44491
44492 2008-03-06  Bruno Haible  <bruno@clisp.org>
44493
44494         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44495         email address.
44496         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44497
44498 2008-03-06  Bruno Haible  <bruno@clisp.org>
44499
44500         * users.txt: Add libgnupdf.
44501
44502 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44503
44504         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44505         (Header File Substitutes, Function Substitutes,
44506         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44507         (Build robot for gnulib): Fix typo.
44508
44509 2008-03-06  Bruno Haible  <bruno@clisp.org>
44510
44511         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44512         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44513
44514 2008-03-06  Bruno Haible  <bruno@clisp.org>
44515
44516         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44517         * doc/gnulib.texi: Include it.
44518
44519 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44520
44521         * modules/func (License): Change license to unlimited; there was
44522         no LGPL parts in the module anyway.
44523
44524 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44525
44526         * modules/__func__: Renamed to modules/func.
44527         * modules/__func__-tests: Renamed to modules/func-tests.
44528         * tests/test-__func__.c: Renamed to tests/test-func.c.
44529         * m4/__func__.m4: Renamed to m4/func.m4.
44530         * doc/gnulib.texi (__func__): Section renamed to func.
44531         Suggested by Eric Blake <ebb9@byu.net>.
44532
44533 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44534
44535         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44536         about __func__.  Make example self-contained.  Suggested by Eric
44537         Blake <ebb9@byu.net>.
44538
44539         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44540         Suggested by Eric Blake <ebb9@byu.net>.
44541
44542 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44543
44544         * modules/__func__: New file.
44545         * modules/__func__-tests: New file.
44546         * tests/test-__func__.c: New file.
44547         * m4/__func__.m4: New file.
44548         * doc/gnulib.texi (__func__): Document __func__ module.
44549
44550 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44551
44552         * modules/byteswap (License): Re-license as LGPLv2+.
44553
44554 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44555
44556         * doc/Makefile: Add pdf target.
44557
44558 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44559
44560         * modules/inline (License): Use 'unlimited', since there are only
44561         *.m4 files in this module.
44562
44563 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44564             Bruno Haible  <bruno@clisp.org>
44565
44566         Add support for HP C 7.1 on OpenVMS 8.3.
44567         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44568
44569 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44570
44571         Update VMS specifics.
44572         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44573
44574 2008-03-02  Jim Meyering  <meyering@redhat.com>
44575
44576         Remove the last dependency on the "free" module.
44577         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44578         Reported by Bob Proulx.
44579
44580         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44581
44582         Remove useless "if" tests before free.  Deprecate "free" module.
44583         * doc/posix-functions/free.texi: Mention that this
44584         module is no longer useful.
44585         * modules/free (Notice): Say this module is obsolete.
44586         * modules/readutmp (Depends-on): Remove free.
44587         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44588         * lib/putenv.c (putenv): Likewise.
44589         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44590         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44591         * tests/test-c-strcasestr.c (main): Likewise.
44592         * tests/test-c-strstr.c (main): Likewise.
44593         * tests/test-mbscasestr1.c (main): Likewise.
44594         * tests/test-mbscasestr2.c (main): Likewise.
44595         * tests/test-mbsstr1.c (main): Likewise.
44596         * tests/test-mbsstr2.c (main): Likewise.
44597         * tests/test-memmem.c (main): Likewise.
44598         * tests/test-strcasestr.c (main): Likewise.
44599         * tests/test-striconv.c (main): Likewise.
44600         * tests/test-striconveh.c (main): Likewise.
44601         * tests/test-striconveha.c (main): Likewise.
44602         * tests/test-strstr.c (main): Likewise.
44603
44604         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44605
44606         bootstrap: sync from coreutils again
44607         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44608
44609 2008-03-01  Jim Meyering  <meyering@redhat.com>
44610
44611         bootstrap: sync from coreutils
44612         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44613         also when the target doesn't exist.
44614
44615 2008-03-01  Eric Blake  <ebb9@byu.net>
44616
44617         Fix bugs in last patch.
44618         * lib/memchr2.c (memchr2): Fix typo.
44619         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44620         extension.
44621         Reported by Bruce Korb.
44622
44623         New module 'memchr2'.
44624         * modules/memchr2: New file.
44625         * modules/memchr2-tests: Likewise.
44626         * lib/memchr2.h: Likewise.
44627         * lib/memchr2.c: Likewise, based on memchr.c.
44628         * tests/test-memchr2.c: New test.
44629         * MODULES.html.sh (String handling): Add memchr2.
44630
44631 2008-02-29  Bruno Haible  <bruno@clisp.org>
44632
44633         * modules/freadseek-tests: New file.
44634         * tests/test-freadseek.sh: New file.
44635         * tests/test-freadseek.c: New file.
44636
44637         New module 'freadseek'.
44638         * modules/freadseek: New file.
44639         * lib/freadseek.h: New file.
44640         * lib/freadseek.c: New file.
44641         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44642
44643 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44644
44645         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44646         wydawca.
44647
44648         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44649         program_invocation_name and program_invocation_short_name are
44650         present.
44651
44652 2008-02-28  Bruno Haible  <bruno@clisp.org>
44653
44654         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44655         * tests/test-freadptr.sh: Also test non-seekable stdin.
44656
44657 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44658
44659         * build-aux/bootstrap (source_base, m4_base)
44660         (doc_base, tests_base): New variables.
44661         (gnulib_tool_options): Do not hardcode base directories, use
44662         the above variables instead.
44663
44664 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44665
44666         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44667
44668 2008-02-28  Bruno Haible  <bruno@clisp.org>
44669
44670         * modules/freadptr-tests: New file.
44671         * tests/test-freadptr.sh: New file.
44672         * tests/test-freadptr.c: New file.
44673
44674         New module 'freadptr'.
44675         * modules/freadptr: New file.
44676         * lib/freadptr.h: New file.
44677         * lib/freadptr.c: New file.
44678         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44679
44680 2008-02-26  Karl Berry  <karl@freefriends.org>
44681
44682         Sync from Libtool:
44683         * libltdl/argz.c (argz_add, argz_count): New functions.
44684         * libltdl/argz.in.h: Declare them.
44685         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44686
44687 2008-02-22  Bruno Haible  <bruno@clisp.org>
44688
44689         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44690         is a pointer type.  Needed for HP-UX 10.
44691         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44692         * doc/posix-functions/gmtime_r.texi: Likewise.
44693         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44694
44695 2008-02-24  Bruno Haible  <bruno@clisp.org>
44696
44697         * modules/environ-tests: New file.
44698         * tests/test-environ.c: New file.
44699
44700         New module 'environ'.
44701         * modules/environ: New file.
44702         * lib/unistd.in.h (environ): New declaration.
44703         * m4/environ.m4: New file.
44704         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44705         after use.
44706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44707         HAVE_DECL_ENVIRON.
44708         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44709         HAVE_DECL_ENVIRON.
44710         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44711         wrong claim that 'environ' is missing on some systems.
44712         * modules/execute (Depends-on): Add environ.
44713         * lib/execute.c (environ): Remove fallback declaration.
44714         * modules/pipe (Depends-on): Add environ.
44715         * lib/pipe.c (environ): Remove fallback declaration.
44716         * modules/setenv (Depends-on): Add environ.
44717         * lib/setenv.c (environ): Remove fallback declaration.
44718         * modules/unsetenv (Depends-on): Add environ.
44719         * lib/unsetenv.c (environ): Remove fallback declaration.
44720         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44721         m4/environ.m4.
44722         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44723         (gl_PREREQ_UNSETENV): Likewise.
44724
44725 2008-02-24  Bruno Haible  <bruno@clisp.org>
44726
44727         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44728
44729 2008-02-20  Bob Proulx  <bob@proulx.com>
44730
44731         Enable use of older two part flavor 'git describe'.
44732         * build-aux/git-version-gen: If using the older two part flavor of
44733         git version then recreate the third part now present in the
44734         newer three part flavor of git describe.
44735
44736 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44737
44738         * lib/fts.c (fts_build): Typo correction to comment.
44739
44740 2008-02-17  Bruno Haible  <bruno@clisp.org>
44741
44742         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44743         generating no-op conflicts.
44744
44745 2008-02-17  Bruno Haible  <bruno@clisp.org>
44746
44747         Speed up by 10%.
44748         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44749         result_entries, rather than an index-based loop.
44750
44751 2008-02-17  Bruno Haible  <bruno@clisp.org>
44752
44753         Speed up by 25%.
44754         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44755         'hashcode_cached'.
44756         (entry_create): New function.
44757         (entry_hashcode): Use the cached hashcode if possible.
44758         (read_changelog_file, try_split_merged_entry): Use entry_create.
44759
44760 2008-02-17  Bruno Haible  <bruno@clisp.org>
44761
44762         Speed up from O(n^2) to O(n) for long ChangeLog files.
44763         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44764         (read_changelog_file): Change implementation of entries_reversed list
44765         to rbtreehash.
44766         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44767
44768 2008-02-17  Bruno Haible  <bruno@clisp.org>
44769
44770         New option --split-merged-entry.
44771         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44772         (find_paragraph_end, try_split_merged_entry): New functions.
44773         (long_options): Add option --split-merged-entry.
44774         (usage): Document option --split-merged-entry.
44775         (main): Implement option --split-merged-entry.
44776         Reported by Eric Blake.
44777
44778 2008-02-17  Bruno Haible  <bruno@clisp.org>
44779
44780         * lib/git-merge-changelog.c: Include c-strstr.h.
44781         (main): Support the "git pull --rebase" situation.
44782         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44783         Reported by Eric Blake.
44784
44785 2008-02-16  Eric Blake  <ebb9@byu.net>
44786
44787         Avoid doubling \ in common case of "c-maybe" quoting style.
44788         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44789         eliding outer quotes.
44790         * lib/quotearg.h: Document this.
44791         * tests/test-quotearg.c (result_strings, inputs, results_g)
44792         (flag_results, locale_results): Test it by adding a new string to
44793         each test group.
44794         (compare_strings): Test new string.
44795
44796 2008-02-13  Eric Blake  <ebb9@byu.net>
44797
44798         Avoid trigraph quoting in default output.
44799         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44800         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44801         unless explicitly requested.
44802         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44803
44804 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44805
44806         Don't rely on signed integer overflowing to negative value.
44807         * lib/getugroups.c (getugroups): Include <limits.h>.
44808         Instead, compare against INT_MAX, and increment only if the test passes.
44809
44810 2008-02-13  Jim Meyering  <meyering@redhat.com>
44811         and Eric Blake  <ebb9@byu.net>
44812
44813         Avoid shadowing warning and compile errors on Linux.
44814         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44815         forwarding macros on Linux.
44816         (dcgettext): Define a stub, for Linux.
44817         (results_g, main): Avoid warnings.
44818
44819 2008-02-12  Eric Blake  <ebb9@byu.net>
44820
44821         Silence warning in last patch.
44822         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44823
44824         Quotearg part 4: add tests, fix c-maybe colon quoting.
44825         * lib/quotearg.h: Improve documentation.
44826         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44827         escapes when adding outer quotes.  When quoting trigraphs, use
44828         valid C notation.  When quoting NUL, omit extra characters if next
44829         character is not digit.  Alter prototype.
44830         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44831         callers.
44832         * modules/quotearg-tests: New module.
44833         * tests/test-quotearg.c: New test.
44834
44835 2008-02-07  Eric Blake  <ebb9@byu.net>
44836
44837         Quotearg part 3: add flag to control outer quote elision.
44838         * lib/quotearg.h (c_maybe_quoting_style): New style.
44839         (enum quoting_flags): Better documentation of flags.
44840         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44841         c-maybe style.
44842         (quotearg_buffer_restyled): Handle new flag to elide outer
44843         quotes.
44844
44845         Quotearg part 2: add flag that can control NUL elision.
44846         * lib/quotearg.h (set_quoting_flags): New prototype.
44847         * lib/quotearg.c (struct quoting_options): Add flag field.
44848         (set_quoting_flags): New function.
44849         (quotearg_buffer_restyled): Add flags parameter.
44850         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44851         (quotearg_n_options): Set the flag, since length cannot be
44852         returned.
44853         (quoting_options_from_style): Default flags correctly.
44854
44855         Quotearg part 1: more wrappers, restore quotearg_char state.
44856         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44857         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44858         (quotearg_colon_mem): New wrappers.
44859         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44860         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44861         functions.
44862         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44863         (quotearg_colon_mem): New functions.
44864
44865 2008-02-11  Bruno Haible  <bruno@clisp.org>
44866
44867         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44868         library in the current directory: it does not work with parallel make.
44869         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44870
44871 2008-02-11  Bruno Haible  <bruno@clisp.org>
44872
44873         * .gitattributes: New file.
44874
44875 2008-02-11  Jim Meyering  <meyering@redhat.com>
44876
44877         useless-if-before-free: Fix reversed exit values.
44878         * build-aux/useless-if-before-free: Use correct values
44879         for EXIT_MATCH and EXIT_NO_MATCH.
44880
44881         * build-aux/useless-if-before-free: Close stdout carefully.
44882
44883 2008-02-10  Bruno Haible  <bruno@clisp.org>
44884
44885         New module 'git-merge-changelog'.
44886         * modules/git-merge-changelog: New file.
44887         * lib/git-merge-changelog.c: New file.
44888
44889 2008-02-10  Jim Meyering  <meyering@redhat.com>
44890
44891         useless-if-before-free: New option: --list (-l).
44892
44893         useless-if-before-free: Don't exit immediately upon open failure.
44894         * build-aux/useless-if-before-free: Exit 2 for errors.
44895         Upon failure to open a file, don't exit immediately.
44896         Rather, just warn and continue with any remaining files.
44897
44898 2008-02-10  Bruno Haible  <bruno@clisp.org>
44899
44900         New abstract list operation 'node_set_value'.
44901         * lib/gl_list.h (gl_list_node_set_value): New function.
44902         (struct gl_list_implementation): New field node_set_value.
44903         * lib/gl_list.c (gl_list_node_set_value): New function.
44904         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44905         (gl_array_list_implementation): Update.
44906         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44907         (gl_carray_list_implementation): Update.
44908         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44909         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44910         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44911         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44912         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44913         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44914         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44915         Update.
44916         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44917         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44918         (gl_sublist_list_implementation): Update.
44919
44920 2008-02-10  Bruno Haible  <bruno@clisp.org>
44921
44922         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44923         Needed when ELEMENT is #defined to 'some_type *'.
44924
44925 2008-02-10  Jim Meyering  <meyering@redhat.com>
44926
44927         New script and module: useless-if-before-free
44928         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44929         * build-aux/useless-if-before-free: New file.
44930         * modules/useless-if-before-free: New file.
44931
44932         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44933
44934         xstrtol_error: Fix typo.
44935         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44936         s/exit_failure/exit_status/.
44937
44938 2008-02-09  Jim Meyering  <meyering@redhat.com>
44939
44940         New script and module: gitlog-to-changelog
44941         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44942         * modules/gitlog-to-changelog: New file.
44943         * build-aux/gitlog-to-changelog: New file.
44944
44945 2008-02-08  Jim Meyering  <meyering@redhat.com>
44946
44947         Avoid two "parameter unused" warnings.
44948         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44949         Mark "st" as used.
44950
44951         Use "git COMMAND", not "git-COMMAND".
44952         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44953         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44954         * build-aux/git-version-gen: Use "git status", not "git-status".
44955
44956 2008-02-07  Bruno Haible  <bruno@clisp.org>
44957
44958         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44959         Avoids a crash on Windows Vista.
44960         Reported by Adam Strzelecki <ono@java.pl> via
44961         Simon Josefsson <simon@josefsson.org>.
44962
44963 2008-02-06  Bruno Haible  <bruno@clisp.org>
44964
44965         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44966         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44967         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44969         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44970         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44971         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44972         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44973         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44974         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44975         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44976         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44977         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44978         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44979         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44980         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44981         left-adjust flag.
44982         * tests/test-snprintf-posix.h (test_function): Likewise.
44983         * tests/test-sprintf-posix.h (test_function): Likewise.
44984         * tests/test-vasprintf-posix.c (test_function): Likewise.
44985         * doc/posix-functions/fprintf.texi: Update.
44986         * doc/posix-functions/printf.texi: Update.
44987         * doc/posix-functions/snprintf.texi: Update.
44988         * doc/posix-functions/sprintf.texi: Update.
44989         * doc/posix-functions/vfprintf.texi: Update.
44990         * doc/posix-functions/vprintf.texi: Update.
44991         * doc/posix-functions/vsnprintf.texi: Update.
44992         * doc/posix-functions/vsprintf.texi: Update.
44993         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44994
44995 2008-02-06  Bruno Haible  <bruno@clisp.org>
44996
44997         Fix bug introduced on 2008-01-26.
44998         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44999
45000 2008-02-06  Bruno Haible  <bruno@clisp.org>
45001
45002         Fix bug introduced on 2007-06-10.
45003         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
45004         !NEED_PRINTF_FLAG_ZERO.
45005
45006 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
45007
45008         getloadavg: use libperfstat on AIX5
45009         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
45010
45011 2008-02-03  Bruno Haible  <bruno@clisp.org>
45012
45013         * lib/diffseq.h: Add comments about required #includes.
45014         Reported by Michael Biggs <gnulib@doubleplum.net>.
45015
45016 2008-02-01  Bruno Haible  <bruno@clisp.org>
45017
45018         * users.txt: Add gnuit.
45019
45020 2008-01-31  Bruno Haible  <bruno@clisp.org>
45021
45022         * lib/md4.c (set_uint32): Mark as inline.
45023         * lib/md5.c (set_uint32): Likewise.
45024         * lib/sha1.c (set_uint32): Likewise.
45025         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
45026         * m4/md5.m4 (gl_MD5): Likewise.
45027         * m4/sha1.m4 (gl_SHA1): Likewise.
45028
45029 2008-01-31  Jim Meyering  <meyering@redhat.com>
45030
45031         Use "sizeof VAR", rather than a literal "4".
45032         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
45033         * lib/md4.c (md4_read_ctx): Likewise.
45034         * lib/sha1.c (sha1_read_ctx): Likewise.
45035
45036 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45037
45038         * tests/test-sha1.c: New file, based on test-md5.c.
45039
45040         * modules/crypto/sha1-tests: New file.
45041
45042 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45043
45044         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
45045
45046 2008-01-31  Jim Meyering  <meyering@redhat.com>
45047
45048         Prefer "sizeof v" over the equivalent "4".
45049         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
45050         * lib/md5.c (set_uint32): Likewise.
45051         * lib/sha1.c (set_uint32): Likewise.
45052
45053 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45054
45055         * lib/sha1.c (set_uint32): Mark function as static.
45056
45057 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45058
45059         md2: clarify comments to say that alignment is not required.
45060         * lib/md2.h: Remove warning about alignment in comment.
45061         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
45062         never been required.
45063
45064 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45065
45066         md4: adapt alignment constraint fix from sha1.
45067         * lib/md4.c (set_uint32): New function, from sha1.c
45068         (md4_read_ctx): Use it.
45069         (md4_finish_ctx): Doc fix.
45070         * lib/md4.h: Doc fix.
45071
45072 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45073
45074         md5: adapt alignment constraint fix from sha1.
45075         * lib/md5.c (set_uint32): New function, from sha1.c
45076         (md5_read_ctx): Use it.
45077         (md5_finish_ctx): Doc fix.
45078         * lib/md5.h: Doc fix.
45079
45080 2008-01-30  Peter Palfrader  <weasel@debian.org>
45081
45082         sha1: remove the result buffer alignment constraint
45083         * lib/sha1.c (set_uint32): New function.
45084         (sha1_read_ctx): Rewrite to remove the result buffer alignment
45085         constraint.
45086         (sha1_finish_ctx): Remove comment warning about alignment constraint.
45087         * lib/sha1.h: Likewise.
45088
45089 2008-01-30  Andreas Schwab  <schwab@suse.de>
45090             Bruno Haible  <bruno@clisp.org>
45091
45092         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
45093         correct definition of LDBL_MIN_EXP.
45094
45095 2008-01-30  Karl Berry  <karl@gnu.org>
45096
45097         * config/srclist-update: try to preserve x bit on updates.
45098         * config/srclistvars.sh: update for karl.
45099
45100 2008-01-29  Jim Meyering  <meyering@redhat.com>
45101
45102         vasnprintf.c: Avoid warning about unused label
45103         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
45104         "overflow" label definition and associated code with the
45105         same cpp condition that guards the sole use of that label.
45106
45107 2008-01-26  Bruno Haible  <bruno@clisp.org>
45108
45109         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
45110         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
45111         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
45112         * lib/isnanl-nolibm.h (isnanl): Likewise.
45113         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45114
45115 2008-01-26  Bruno Haible  <bruno@clisp.org>
45116
45117         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
45118         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
45119
45120 2008-01-26  Bruno Haible  <bruno@clisp.org>
45121
45122         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
45123         GCC >= 4.0 built-in.
45124         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
45125
45126 2008-01-26  Bruno Haible  <bruno@clisp.org>
45127
45128         Rename isnan, applicable to 'double' only, to isnand.
45129         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
45130         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
45131         (configure.ac): Update.
45132         (Include): Replace "isnan.h" with "isnand.h".
45133         * m4/isnand.m4: Renamed from m4/isnan.m4.
45134         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
45135         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
45136         instead of isnan.c.
45137         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
45138         instead of HAVE_ISNAN_IN_LIBC.
45139         (isnand): Renamed from isnan.
45140         * lib/isnand.c: New file.
45141         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
45142         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
45143         (Makefile.am): Update.
45144         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
45145         Include isnand.h instead of isnan.h.
45146         (main): Test isnand instead of isnan.
45147         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
45148         isnan-nolibm.
45149         * modules/frexp (Depends-on): Likewise.
45150         * modules/frexp-tests (Depends-on): Likewise.
45151         * modules/frexp-nolibm (Depends-on): Likewise.
45152         * modules/frexp-nolibm-tests (Depends-on): Likewise.
45153         * modules/isfinite (Depends-on): Likewise.
45154         * modules/round-tests (Depends-on): Likewise.
45155         * modules/signbit (Depends-on): Likewise.
45156         * modules/signbit-tests (Depends-on): Likewise.
45157         * modules/snprintf-posix (Depends-on): Likewise.
45158         * modules/sprintf-posix (Depends-on): Likewise.
45159         * modules/trunc-tests (Depends-on): Likewise.
45160         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45161         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45162         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45163         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45164         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45165         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45166         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45167         * modules/vasnprintf-posix (Depends-on): Likewise.
45168         * modules/vasprintf-posix (Depends-on): Likewise.
45169         * modules/vfprintf-posix (Depends-on): Likewise.
45170         * modules/vsnprintf-posix (Depends-on): Likewise.
45171         * modules/vsprintf-posix (Depends-on): Likewise.
45172         * lib/frexp.c: Include isnand.h instead of isnan.h.
45173         (ISNAN): Set to isnand instead of isnan.
45174         * lib/isfinite.c: Include isnand.h instead of isnan.h.
45175         (gl_isfinited): Use isnand instead of isnan.
45176         * lib/signbitd.c: Include isnand.h instead of isnan.h.
45177         (gl_signbitd): Use isnand instead of isnan.
45178         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
45179         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
45180         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
45181         (main): Use isnand instead of isnan.
45182         * tests/test-round1.c: Include isnand.h.
45183         (main): Use isnand instead of isnan.
45184         * tests/test-round2.c: Include isnand.h instead of isnan.h.
45185         (ISNAN): Set to isnand instead of isnan.
45186         * tests/test-trunc1.c: Include isnand.h.
45187         (main): Use isnand instead of isnan.
45188         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
45189         (equal): Use isnand instead of isnan.
45190         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
45191         isnand-nolibm.
45192         * NEWS: Mention the change.
45193
45194 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45195             Bruno Haible  <bruno@clisp.org>
45196
45197         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
45198         the GCC builtins for signbits are present and set
45199         REPLACE_SIGNBIT_USING_GCC if so.
45200         * lib/math.in.h (signbit): Define using GCC builtins if
45201         REPLACE_SIGNBIT_USING_GCC is set.
45202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
45203         REPLACE_SIGNBIT_USING_GCC.
45204         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
45205
45206 2008-01-25  Jim Meyering  <meyering@redhat.com>
45207
45208         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
45209         * lib/poll.c: Include <config.h>, not "config.h".
45210         * tests/test-getaddrinfo.c: Likewise.
45211
45212 2008-01-25  Simon Josefsson  <simon@josefsson.org>
45213
45214         * modules/sockets-tests: New file.
45215
45216 2008-01-24  Simon Josefsson  <simon@josefsson.org>
45217
45218         * modules/sockets: New module, can be used to call WSA_Startup and
45219         WSA_Cleanup when needed.
45220
45221         * lib/sockets.h, lib/sockets.c: New files.
45222
45223         * m4/sockets.m4: New file.
45224
45225         * tests/test-sockets.c: New file.
45226
45227 2008-01-19  Bruno Haible  <bruno@clisp.org>
45228
45229         * doc/posix-headers: Renamed from doc/headers.
45230         * doc/posix-functions: Renamed from doc/functions.
45231         * doc/gnulib.texi: Update.
45232
45233 2008-01-19  Bruno Haible  <bruno@clisp.org>
45234
45235         * doc/glibc-functions/strcasestr.texi: Include contents of
45236         doc/functions/strcasestr.texi, fixing the list of platforms.
45237         * doc/functions/strcasestr.texi: Remove file.
45238
45239 2008-01-19  Bruno Haible  <bruno@clisp.org>
45240
45241         * doc/glibc-functions/memmem.texi: Include contents of
45242         doc/functions/memmem.texi.
45243         * doc/functions/memmem.texi: Remove file.
45244
45245 2008-01-18  Bruno Haible  <bruno@clisp.org>
45246
45247         * doc/glibc-functions/*.texi: New files.
45248         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
45249         to use the new files.
45250
45251 2008-01-17  Bruno Haible  <bruno@clisp.org>
45252
45253         * tests/test-gethostname.c (main): Fix printf statement.
45254
45255 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45256
45257         * modules/gethostname-tests: New file.
45258
45259         * tests/test-gethostname.c: New file.
45260
45261 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45262
45263         * lib/gethostname.c: Include string.h unconditionally, strncpy is
45264         used by the UNAME case.  Reported by Bruno Haible
45265         <bruno@clisp.org>.
45266
45267 2008-01-17  Eric Blake  <ebb9@byu.net>
45268
45269         Convert c-strcasestr to be more efficient.
45270         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
45271         (Depends-on): Add c-strcase, remove malloca, strnlen.
45272         * tests/test-c-strcasestr.c (main): Enhance test.
45273         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
45274
45275 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45276
45277         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
45278         Use it in creating po/Makevars.
45279
45280 2008-01-15  Simon Josefsson  <simon@josefsson.org>
45281
45282         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
45283         Applications that requires it should initialize libgcrypt
45284         manually.
45285
45286 2008-01-16  Simon Josefsson  <simon@josefsson.org>
45287
45288         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
45289
45290 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
45291
45292         Fix problem with getdate on mingw32 reported by Simon Josefsson
45293         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
45294         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
45295         tzname", when deciding whether to declare tzname.
45296         * lib/strftime.c (tzname): Likewise.
45297
45298 2008-01-15  Bruno Haible  <bruno@clisp.org>
45299
45300         Work around a MacOS X 10.5 bug in frexpl().
45301         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
45302         * doc/functions/frexpl.texi: Document the bug.
45303         Reported by Elias Pipping <pipping@gentoo.org>.
45304
45305 2008-01-14  Eric Blake  <ebb9@byu.net>
45306
45307         Touch up previous patch.
45308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
45309         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
45310
45311         Convert strcasestr module to use Two-Way algorithm.
45312         * modules/strcasestr-simple: New module, based on the old
45313         strcasestr, but with Two-Way rather than KMP.
45314         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
45315         * lib/string.in.h (rpl_strcasestr): Declare.
45316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
45317         performance.
45318         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
45319         * modules/string (Makefile.am): Support strcasestr.
45320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45321         * modules/strcasestr-tests (Depends-on): Check for alarm.
45322         * tests/test-strcasestr.c: Augment test.
45323         * lib/str-two-way.h: Clean up stray macro.
45324         * NEWS: Document new module.
45325         * MODULES.html.sh (string handling): Likewise.
45326         * doc/functions/strcasestr.texi: New file.
45327         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
45328         here, since it is not a POSIX function.
45329
45330 2008-01-14  Colin Watson  <cjwatson@debian.org>
45331             Bruno Haible  <bruno@clisp.org>
45332
45333         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45334         works fine; if not, set REPLACE_STRSIGNAL.
45335         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45337         REPLACE_STRSIGNAL.
45338         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45339         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45340         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45341
45342 2008-01-14  Bruno Haible  <bruno@clisp.org>
45343
45344         * modules/strsignal (Include): Change to <string.h>.
45345
45346 2008-01-14  Colin Watson  <cjwatson@debian.org>
45347
45348         * modules/argp (Notice): Add a notice recommending to change
45349         XGETTEXT_OPTIONS.
45350         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45351
45352 2008-01-13  Colin Watson  <cjwatson@debian.org>
45353
45354         * modules/strsignal-tests: New file.
45355         * tests/test-strsignal.c: New file.
45356
45357         * lib/strsignal.c: New file, from glibc with modifications.
45358         * lib/siglist.h: New file, from glibc with modifications.
45359         * lib/string.in.h (strsignal): New declaration.
45360         * m4/strsignal.m4: New file.
45361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45362         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45363         * modules/strsignal: New file.
45364         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45365         HAVE_DECL_STRSIGNAL.
45366
45367 2008-01-13  Bruno Haible  <bruno@clisp.org>
45368
45369         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45370         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45371         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45372         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45373
45374 2008-01-13  Bruno Haible  <bruno@clisp.org>
45375
45376         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45377         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45378         * lib/argp.h (__attribute__): Likewise.
45379         * lib/c-stack.c (__attribute__): Likewise.
45380         * lib/error.h (__attribute__): Likewise.
45381         * lib/fts.c (__attribute__): Likewise.
45382         * lib/openat.h (__attribute__): Likewise.
45383         * lib/stdio.in.h (__attribute__): Likewise.
45384         * lib/string.in.h (__attribute__): Likewise.
45385         * lib/utimens.c (__attribute__): Likewise.
45386         * lib/vasnprintf.h (__attribute__): Likewise.
45387         * lib/xalloc.h (__attribute__): Likewise.
45388         * lib/xprintf.h (__attribute__): Likewise.
45389         * lib/xstrtol.h (__attribute__): Likewise.
45390         * lib/xvasprintf.h (__attribute__): Likewise.
45391
45392 2008-01-12  Bruno Haible  <bruno@clisp.org>
45393
45394         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45395         * doc/glibc-headers/a.out.texi: New file.
45396         * doc/glibc-headers/aliases.texi: New file.
45397         * doc/glibc-headers/alloca.texi: New file.
45398         * doc/glibc-headers/ar.texi: New file.
45399         * doc/glibc-headers/argp.texi: New file.
45400         * doc/glibc-headers/argz.texi: New file.
45401         * doc/glibc-headers/byteswap.texi: New file.
45402         * doc/glibc-headers/crypt.texi: New file.
45403         * doc/glibc-headers/endian.texi: New file.
45404         * doc/glibc-headers/envz.texi: New file.
45405         * doc/glibc-headers/err.texi: New file.
45406         * doc/glibc-headers/error.texi: New file.
45407         * doc/glibc-headers/execinfo.texi: New file.
45408         * doc/glibc-headers/fpu_control.texi: New file.
45409         * doc/glibc-headers/fstab.texi: New file.
45410         * doc/glibc-headers/fts.texi: New file.
45411         * doc/glibc-headers/getopt.texi: New file.
45412         * doc/glibc-headers/ieee754.texi: New file.
45413         * doc/glibc-headers/ifaddrs.texi: New file.
45414         * doc/glibc-headers/libintl.texi: New file.
45415         * doc/glibc-headers/mcheck.texi: New file.
45416         * doc/glibc-headers/mntent.texi: New file.
45417         * doc/glibc-headers/obstack.texi: New file.
45418         * doc/glibc-headers/paths.texi: New file.
45419         * doc/glibc-headers/printf.texi: New file.
45420         * doc/glibc-headers/pty.texi: New file.
45421         * doc/glibc-headers/resolv.texi: New file.
45422         * doc/glibc-headers/shadow.texi: New file.
45423         * doc/glibc-headers/sysexits.texi: New file.
45424         * doc/glibc-headers/ttyent.texi: New file.
45425
45426 2008-01-12  Jim Meyering  <meyering@redhat.com>
45427
45428         announce-gen: emit Gnulib's git-based version string.
45429         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45430         New option --gnulib-version=V, where V is expected to be
45431         the output of running git describe in the gnulib directory.
45432         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45433         not useful, and plan to stop publishing an xdelta file with each
45434         coreutils release.
45435
45436         * build-aux/announce-gen: Also check for lzma-compressed files.
45437
45438 2008-01-11  Bruno Haible  <bruno@clisp.org>
45439
45440         * tests/test-memmem.c (main): Increase maximum allowed time.
45441         * tests/test-strstr.c (main): Likewise.
45442
45443 2008-01-11  Bruno Haible  <bruno@clisp.org>
45444
45445         * doc/functions/memmem.texi: Add more precisions about platforms.
45446         * doc/functions/strstr.texi: Likewise.
45447
45448 2008-01-10  Eric Blake  <ebb9@byu.net>
45449
45450         * m4/strstr.m4: Delete cruft from copy-n-paste.
45451         Reported by Bruno Haible.
45452
45453 2008-01-10  Bruno Haible  <bruno@clisp.org>
45454
45455         Make c-strstr rely on strstr.
45456         * lib/c-strstr.c: Don't include str-kmp.h.
45457         (c_strstr): Define in terms of strstr.
45458         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45459         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45460
45461 2008-01-10  Bruno Haible  <bruno@clisp.org>
45462
45463         * doc/gnulib.texi (String Functions in C Locale): New section.
45464         * doc/c-ctype.texi: New file.
45465         * doc/c-strcase.texi: New file.
45466         * doc/c-strcaseeq.texi: New file.
45467         * doc/c-strcasestr.texi: New file.
45468         * doc/c-strstr.texi: New file.
45469         * doc/c-strtod.texi: New file.
45470         * doc/c-strtold.texi: New file.
45471
45472 2008-01-10  Eric Blake  <ebb9@byu.net>
45473
45474         * lib/relocatable.h: Fix a comment.
45475
45476 2008-01-10  Eric Blake  <ebb9@byu.net>
45477
45478         Share two-way algorithm.
45479         * lib/str-two-way.h: New file, merged from...
45480         * lib/memmem.c: ...here...
45481         * lib/strstr.c: ...and here.
45482         * modules/memmem (Files): Use it.
45483         * modules/strstr (Files): Likewise.
45484
45485         Avoid quadratic strstr implementations.
45486         * lib/strstr.c: New file.
45487         * m4/strstr.m4: Likewise.
45488         * modules/strstr: Likewise.
45489         * modules/strstr-tests: Likewise.
45490         * tests/test-strstr.c: Likewise.
45491         * lib/string.in.h (rpl_strstr): Declare.
45492         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45494         * modules/string (Makefile.am): Likewise.
45495         * MODULES.html.sh (string handling): Mention new module.
45496         * doc/functions/strstr.texi (strstr): Document the bug.
45497
45498 2008-01-10  Bruno Haible  <bruno@clisp.org>
45499
45500         * lib/relocatable.h (relocate): State whether result is freshly
45501         allocated or not.
45502         * lib/relocatable.c (relocate): Return a freshly allocated string
45503         instead of a pointer to a privately held string.
45504         Reported by Sylvain Beucler <beuc@gnu.org>.
45505
45506 2008-01-10  Colin Watson  <cjwatson@debian.org>
45507
45508         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45509         s/S_ISNLK/S_ISLNK/.
45510
45511 2008-01-09  Bruno Haible  <bruno@clisp.org>
45512
45513         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45514         and other files.
45515         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45516         if it's only a guess.
45517         * modules/memmem: Simplify by depending on memmem-simple.
45518
45519 2008-01-09  Bruno Haible  <bruno@clisp.org>
45520
45521         Work around OpenBSD 4.0 tdelete() bug.
45522         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45523         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45524         macros and don't redefine the enum values.
45525         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45526         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45527         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45528
45529 2008-01-09  Bruno Haible  <bruno@clisp.org>
45530
45531         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45532         (main): Don't perform the tests if setlocale did not install a UTF-8
45533         locale. Needed on OpenBSD 4.0.
45534         * modules/wcwidth-tests (Depends-on): Add localcharset.
45535
45536 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45537
45538         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45539         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45540         * NEWS: announce this.
45541         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45542
45543 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45544         and Eric Blake  <ebb9@byu.net>
45545
45546         Add memmem-simple module.
45547         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45548         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45549         * modules/memmem-simple: New file.
45550         * modules/memmem (Description): Tweak.
45551         * MODULES.html.sh (string handling): Mention new module.
45552         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45553         addressed by memmem-simple.
45554         * NEWS: Document the difference.
45555
45556 2008-01-09  Eric Blake  <ebb9@byu.net>
45557
45558         Give gcc some memmem optimization hints.
45559         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45560         (strcasestr): Declare as pure.
45561         * modules/memmem (Maintainer): Claim my implementation.
45562
45563 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45564
45565         Support AIX 6.1 and higher.
45566         * build-aux/config.libpath: Likewise.
45567         * build-aux/config.rpath: Likewise.
45568
45569 2008-01-08  Jim Meyering  <meyering@redhat.com>
45570             Bruno Haible  <bruno@clisp.org>
45571
45572         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45573         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45574         Reported by Peter Fales in
45575         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45576
45577 2008-01-08  Bruno Haible  <bruno@clisp.org>
45578
45579         * modules/unictype/category-of (Depends-on): Add
45580         unictype/category-none.
45581         * modules/unictype/category-and-tests (Depends-on): Add
45582         unictype/category-{L,N,Lu,Nd}.
45583         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45584         * modules/unictype/category-or-tests (Depends-on): Add
45585         unictype/category-{L,N}.
45586         * modules/unictype/category-name-tests (Depends-on): Add
45587         unictype/category-{Z,Nl}.
45588         Reported by Simon Josefsson.
45589
45590 2008-01-08  Bruno Haible  <bruno@clisp.org>
45591
45592         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45593         convention better.
45594         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45595         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45596         Reported by Peter Miller <millerp@canb.auug.org.au>.
45597
45598 2008-01-08  Eric Blake  <ebb9@byu.net>
45599
45600         Rewrite memmem to guarantee linear complexity without malloc.
45601         * lib/memmem.c (memmem): Use Two-Way rather than
45602         Knuth-Morris-Pratt, to allow O(1) space usage.
45603         (critical_factorization, two_way_short_needle)
45604         (two_way_long_needle): New functions.
45605         (knuth_morris_pratt): Delete.
45606         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45607         Add stdint.
45608         * tests/test-memmem.c (main): Add tests for periodic needle and
45609         sublinear performance.
45610         * doc/functions/memmem.texi (memmem): Document other deficiencies
45611         in cygwin and older glibc.
45612
45613 2008-01-08  Bruno Haible  <bruno@clisp.org>
45614
45615         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45616         augmentation.
45617
45618 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45619
45620         Add a configure time option: --disable-acl.
45621         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45622         AC_ARG_ENABLE(acl).
45623
45624 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45625
45626         * tests/test-localename.c: Don't include obsolete "setenv.h".
45627
45628         * modules/localename-tests (Depends-on): Need unsetenv.
45629
45630 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45631
45632         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45633
45634 2008-01-06  Colin Watson  <cjwatson@debian.org>
45635
45636         * users.txt: Add man-db.
45637
45638 2008-01-07  Bruno Haible  <bruno@clisp.org>
45639
45640         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45641         previous section name.
45642
45643 2008-01-07  Bruno Haible  <bruno@clisp.org>
45644
45645         * lib/progname.c (set_program_name): Don't strip off a leading
45646         "lt-" prefix outside a .libs directory.
45647         Suggested by Paul Eggert.
45648
45649 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45650             Bruno Haible  <bruno@clisp.org>
45651
45652         Improve memory cleanup in 'relocatable' module.
45653         * lib/relocatable.h (compute_curr_prefix): Change return type to
45654         'char *'.
45655         * lib/relocatable.c (compute_curr_prefix): Change return type to
45656         'char *'. Free curr_installdir after use.
45657         (relocate): Free curr_prefix_better after use.
45658         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45659
45660 2008-01-01  Bruno Haible  <bruno@clisp.org>
45661
45662         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45663         failure on older glibc systems.
45664         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45665
45666 2008-01-05  Eric Blake  <ebb9@byu.net>
45667
45668         Avoid quadratic system memmem.
45669         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45670         Reported by Ralf Wildenhues.
45671
45672         Fix memmem test for mingw.
45673         * modules/memmem-tests (configure.ac): Check for alarm.
45674         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45675         it.
45676         * doc/functions/memmem.texi: New file.
45677         * doc/gnulib.texi (Function Substitutes): Add memmem.
45678         Reported by Bruno Haible.
45679
45680 2008-01-04  Bruno Haible  <bruno@clisp.org>
45681
45682         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45683         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45684         gl_HEADER_STRING_H_DEFAULTS.
45685
45686 2008-01-04  Eric Blake  <ebb9@byu.net>
45687
45688         Shorten duration of memmem test.
45689         * tests/test-memmem.c (main): Use alarm to declare failure if test
45690         is taking too long.
45691         Reported by Ralf Wildenhues.
45692
45693 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45694
45695         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45696         string, needed by strerror.
45697
45698 2008-01-03  Colin Watson  <cjwatson@debian.org>
45699             Bruno Haible  <bruno@clisp.org>
45700
45701         * doc/gnulib-tool.texi (Localization): New section.
45702
45703 2008-01-02  Bruno Haible  <bruno@clisp.org>
45704
45705         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45706         variables to 'unsigned char *' type.
45707         Reported by Paul Eggert.
45708
45709 2008-01-02  Jim Meyering  <jim@meyering.net>
45710
45711         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45712
45713 2007-12-31  Jim Meyering  <jim@meyering.net>
45714
45715         Avoid use of private FTS type name.
45716         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45717
45718 2007-12-30  Karl Berry  <karl@gnu.org>
45719
45720         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45721         work around defect in Texinfo and/or the standalone Info browser.
45722
45723 2007-12-30  Bruno Haible  <bruno@clisp.org>
45724
45725         Unify 5 copies of the KMP code.
45726         * lib/str-kmp.h: New file.
45727         * lib/c-strcasestr.c: Include str-kmp.h.
45728         (knuth_morris_pratt): Remove function.
45729         (c_strcasestr): Update.
45730         * lib/c-strstr.c: Include str-kmp.h.
45731         (knuth_morris_pratt): Remove function.
45732         (c_strcasestr): Update.
45733         * lib/mbscasestr.c: Include str-kmp.h.
45734         (knuth_morris_pratt_unibyte): Remove function.
45735         * lib/mbsstr.c: Include str-kmp.h.
45736         (knuth_morris_pratt_unibyte): Remove function.
45737         * lib/strcasestr.c: Include str-kmp.h.
45738         (knuth_morris_pratt): Remove function.
45739         (strcasestr): Update.
45740         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45741         * modules/c-strstr (Files): Likewise.
45742         * modules/mbscasestr (Files): Likewise.
45743         * modules/mbsstr (Files): Likewise.
45744         * modules/strcasestr (Files): Likewise.
45745         Suggested by Paul Eggert.
45746
45747 2007-12-30  Bruno Haible  <bruno@clisp.org>
45748
45749         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45750         defined.
45751
45752 2007-12-30  Bruno Haible  <bruno@clisp.org>
45753
45754         * lib/xmalloca.h: Include xalloc.h.
45755         (xnmalloca): New macro.
45756
45757 2007-12-30  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/malloca.h (nmalloca): New macro.
45760         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45761         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45762         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45763         knuth_morris_pratt_multibyte): Likewise.
45764         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45765         knuth_morris_pratt_multibyte): Likewise.
45766         * lib/memmem.c (knuth_morris_pratt): Likewise.
45767         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45768
45769 2007-12-25  Bruno Haible  <bruno@clisp.org>
45770
45771         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45772         * lib/glob.c: Don't include openat.h.
45773         (link_exists2_p): Add back the code that deals with the
45774         !GLOB_ALTDIRFUNC case.
45775         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45776         let it do the filename concatenation.
45777         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45778         * modules/glob (Depends-on): Remove openat.
45779
45780 2007-12-31  Bruno Haible  <bruno@clisp.org>
45781
45782         * modules/dirfd (License): Change to LGPLv2+.
45783         Approved by Jim Meyering.
45784
45785 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45786
45787         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45788         when multiplying M by sizeof (size_t).
45789
45790 2007-12-10  Martin Lambers  <marlam@marlam.de>
45791
45792         Override getpagesize on mingw.
45793         * lib/getpagesize.c: New file.
45794         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45795         * modules/getpagesize (Files): Add lib/getpagesize.c.
45796         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45798         REPLACE_GETPAGESIZE.
45799         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45800
45801 2007-12-25  Bruno Haible  <bruno@clisp.org>
45802
45803         * modules/localcharset (Notice): New field.
45804         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45805         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45806
45807 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45808             Bruno Haible  <bruno@clisp.org>
45809
45810         Avoid using the syntax symbol() in formatted documentation.
45811         * MODULES.html.sh (func_module): When replacing symbol() with a
45812         hyperlink, remove the parentheses. Show an error if some remain.
45813         Recognize and render the '...' syntax.
45814         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45815         Rework. Add paragraph about GCC's inlining.
45816         * doc/alloca.texi: Likewise.
45817         * doc/error.texi: Remove parentheses from symbol reference.
45818         * doc/gnulib-intro.texi: Likewise.
45819         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45820         * modules/fnmatch (Description): Reword to say "the ... function".
45821         * modules/full-read (Description): Likewise.
45822         * modules/full-write (Description): Likewise.
45823         * modules/safe-read (Description): Likewise.
45824         * modules/safe-write (Description): Likewise.
45825         * modules/strchrnul (Description): Likewise.
45826         * modules/trim (Description): Likewise.
45827         * modules/error (Description): Remove parentheses from symbol
45828         references.
45829         * modules/verror (Description): Likewise.
45830         Reported by Karl Berry.
45831
45832 2007-12-25  Bruno Haible  <bruno@clisp.org>
45833
45834         Fixup after 2007-10-16 commit.
45835         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45836
45837 2007-12-24  Bruno Haible  <bruno@clisp.org>
45838
45839         Make --enable-relocatable work with DESTDIR.
45840         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45841         to compute installdir from destprog.
45842         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45843         also set the RELOC_DESTDIR variable.
45844         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45845
45846 2007-12-24  Bruno Haible  <bruno@clisp.org>
45847
45848         Fix link error due to xalloc_die().
45849         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45850         of xreadlink.
45851         * lib/relocwrapper.c: Update comments.
45852         * build-aux/install-reloc: Remove xreadlink.c from file list.
45853         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45854         xreadlink.c.
45855         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45856
45857 2007-12-24  Bruno Haible  <bruno@clisp.org>
45858
45859         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45860         * lib/setenv.h: Remove file.
45861         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45862         lib/setenv.h.
45863         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45864         (Depends-on): Add stdlib.
45865         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45866         gl_FUNC_UNSETENV.
45867         (Include): Replace setenv.h with <stdlib.h>.
45868         * modules/unsetenv: New file.
45869         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45870         * lib/unsetenv.c: Include <stdlib.h> first.
45871         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45872         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45873         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45874         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45875         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45876         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45878         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45879         * doc/functions/unsetenv.texi: Update.
45880         * modules/xsetenv (Depends-on): Add unsetenv.
45881         * modules/getdate (Depends-on): Likewise.
45882         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45883         * lib/xsetenv.c: Don't include setenv.h.
45884         * lib/getdate.y: Likewise.
45885         * lib/relocwrapper.c: Likewise.
45886         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45887         (Depends-on): Add stdlib.
45888         * NEWS: Mention the changes.
45889         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45890
45891 2007-12-23  Bruno Haible  <bruno@clisp.org>
45892
45893         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45894         indentation.
45895
45896 2007-12-23  Bruno Haible  <bruno@clisp.org>
45897
45898         * lib/c-strcasestr.c: Add more comments.
45899         * lib/c-strstr.c: Likewise.
45900         * lib/mbscasestr.c: Likewise.
45901         * lib/mbsstr.c: Likewise.
45902         * lib/strcasestr.c: Likewise.
45903         * lib/memmem.c: Likewise.
45904
45905 2007-12-23  Bruno Haible  <bruno@clisp.org>
45906
45907         * tests/test-memmem.c: Include <string.h> first.
45908
45909 2007-12-22  Bruno Haible  <bruno@clisp.org>
45910
45911         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45912         the contents of $testsbase.
45913         Reported by Ralf Wildenhues.
45914
45915 2007-12-22  Bruno Haible  <bruno@clisp.org>
45916
45917         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45918         two variables local_ldadd_before, local_ldadd_last.
45919
45920 2007-12-20  Eric Blake  <ebb9@byu.net>
45921
45922         Work around circular library issue when cross-compiling.
45923         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45924         that progname.o does not need to pull in rpl_memcmp.
45925
45926 2007-12-19  Eric Blake  <ebb9@byu.net>
45927
45928         Fix memmem to avoid O(n^2) worst-case complexity.
45929         * lib/memmem.c (knuth_morris_pratt): New function.
45930         (memmem): Use it if first few naive iterations fail.
45931         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45932         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45933         * modules/memchr (License): Likewise.
45934         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45935         malloca.
45936         * tests/test-memmem.c: Rewrite, borrowing ideas from
45937         test-mbsstr1.c; the old version wouldn't even compile!
45938         * modules/memmem-tests: New file.
45939         * lib/string.in.h (rpl_memmem): Add declaration.
45940         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45942         REPLACE_MEMMEM.
45943
45944 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45945
45946         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45947         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45948         before any system include files, and undef after them all.  This
45949         should fix a problem on VMS reported by John E. Malmberg in
45950         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45951
45952 2007-12-17  Eric Blake  <ebb9@byu.net>
45953
45954         Revert addition of verify, for BSD/OS.
45955         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45956         can't handle large files, for the sake of obsolete platforms.
45957         * modules/fseeko (Depends-on): Remove verify.
45958         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45959         * doc/functions/ftello.texi (ftello): Likewise.
45960         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45961         Reported by Larry Jones.
45962
45963 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45964
45965         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45966         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45967
45968 2007-12-17  Jim Meyering  <meyering@redhat.com>
45969
45970         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45971         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45972         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45973         * modules/getcwd (Depends-on): Add openat.
45974         Reported by Petr Salinger.
45975
45976 2007-12-17  Bruno Haible  <bruno@clisp.org>
45977
45978         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45979         avoid a segmentation fault of the configure test on x86_64 systems.
45980
45981 2007-12-15  Jim Meyering  <meyering@redhat.com>
45982
45983         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45984
45985 2007-12-13  Eric Blake  <ebb9@byu.net>
45986
45987         Another fseek test.
45988         * tests/test-fseek.c (main): Also test ungetc handling.
45989         * tests/test-fseeko.c (main): Likewise.
45990         * modules/fseeko (Depends-on): Add verify.
45991         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45992         large.
45993         Reported by Larry Jones.
45994
45995         Fix fseeko on mingw.
45996         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45997         seek.
45998
45999         Beef up fseek tests.
46000         * tests/test-fseek.c (main): Also test eof handling.
46001         * tests/test-fseeko.c (main): Likewise.
46002         Reported by Larry Jones.
46003
46004 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
46005
46006         Fix fseeko on BSD-based platforms.
46007         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
46008         successful seek.
46009
46010 2007-12-12  Eric Blake  <ebb9@byu.net>
46011
46012         Allow circular dependency of separate libtests.a
46013         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
46014         when use_libtests.
46015
46016 2007-12-11  Eric Blake  <ebb9@byu.net>
46017
46018         Fix bug with -0.0L in previous patch.
46019         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
46020         * tests/test-isnan.c (main): Also test on zeroes.
46021         * tests/test-isnanf.c (main): Likewise.
46022         * tests/test-isnanl.h (main): Likewise.
46023
46024         Detect pseudo-denormals on x86 even when cross-compiling.
46025         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
46026         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
46027         invalid bit patterns that happen to satisfy ==.
46028
46029         Avoid link failures with separate libtests.a.
46030         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
46031         last, to satisfy circular dependencies.
46032
46033 2007-12-11  Eric Blake  <ebb9@byu.net>
46034         and Bruno Haible  <bruno@clisp.org>
46035
46036         Fix OpenBSD 4.0 <float.h> handling of long double.
46037         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
46038         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
46039         * doc/headers/float.texi (float.h): Document OpenBSD bug.
46040
46041 2007-12-11  Jim Meyering  <meyering@redhat.com>
46042
46043         * users.txt: Add libvirt.
46044
46045         Support versions of autoconf prior to 2.59c.
46046         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
46047         if it is not already defined.
46048
46049 2007-12-09  Bruno Haible  <bruno@clisp.org>
46050
46051         Let 'gnulib-tool --import' collect sources needed for the tests in
46052         tests/ rather than in lib/.
46053         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
46054         argument. If true, add rules to generate libtests.a, and put libtests.a
46055         into $(LDADD). Consider source files in subdirectories and set
46056         uses_subdirs.
46057         (func_emit_initmacro_start, func_emit_initmacro_end,
46058         func_emit_initmacro_done): Pass all arguments explicitly.
46059         (func_import): Determine two module lists main_modules,
46060         testsrelated_modules. Determine use_libtests. Determine two variables
46061         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
46062         instead of just sed_transform_lib_file. Determine two variables
46063         main_files and testsrelated_files. Compute 'files' as the union of
46064         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
46065         func_add_or_update. In the generated gnulib-comp.m4, collect the
46066         object files for tests/ in different variables than those for lib/.
46067         Substitute LIBTESTS_LIBDEPS.
46068         (func_create_testdir): Combine the uses_subdirs results from
46069         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
46070
46071 2007-12-09  Bruno Haible  <bruno@clisp.org>
46072
46073         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
46074         the build-aux directory.
46075
46076 2007-12-09  Bruno Haible  <bruno@clisp.org>
46077
46078         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
46079         introduced on 2006-09-09.
46080
46081 2007-12-07  Jim Meyering  <meyering@redhat.com>
46082
46083         Let these macros work also with autoconf-2.59.
46084         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
46085         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
46086         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46087
46088 2007-12-06  Jim Meyering  <meyering@redhat.com>
46089
46090         Avoid a configure-time syntax error in gl_FUNC_ACL.
46091         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
46092         function in each branch, before testing the cache variable.
46093
46094 2007-12-04  Eric Blake  <ebb9@byu.net>
46095
46096         Make scripts executable.
46097         * build-aux/config.guess: Add execute permissions.
46098         * build-aux/config.sub: Likewise.
46099         * build-aux/gendocs.sh: Likewise.
46100
46101         Fix frexp on mingw.
46102         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
46103         cross-compiling.
46104         * doc/functions/frexp.texi (frexp): Document the bug.
46105
46106         Make cygwin fseeko check more reliable.
46107         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
46108         version numbers, rather than unrelated feature check.
46109         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
46110         * doc/functions/ftello.texi (ftello): Likewise.
46111         Reported by Bruno Haible.
46112
46113         * m4/strerror.m4: Bump version number.
46114
46115 2007-12-03  Bruno Haible  <bruno@clisp.org>
46116
46117         * doc/functions/mprotect.texi: Mention the mingw problem.
46118
46119 2007-12-03  Eric Blake  <ebb9@byu.net>
46120
46121         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
46122         REPLACE_STRERROR is initialized before this macro.
46123
46124 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46125
46126         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
46127         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
46128         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
46129         put -lsec in even for programs other than 'ls'.  This fixes a problem
46130         for gettext reported by Bruno Haible in
46131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
46132         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46133         Add support for Solaris 10.  This isn't efficient, but should get the
46134         job done for now.
46135
46136 2007-12-03  James Youngman  <jay@gnu.org>
46137
46138         * doc/regexprops-generic.texi: change "an close-group" to "a
46139         close-group" and "illegal" to "not allowed".
46140
46141 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46142
46143         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
46144         pr_byname.h. Needed for the rare case when the maintainer has done
46145         "make maintainer-clean" in the source directory and then attempts a
46146         build outside the source directory.
46147         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
46148         scripts_byname.h.
46149
46150 2007-12-02  Martin Lambers <marlam@marlam.de>
46151             Bruno Haible  <bruno@clisp.org>
46152
46153         * lib/getpagesize.h: Remove file.
46154         * lib/unistd.in.h: Include declaration of getpagesize here.
46155         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
46156         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
46157         HAVE_SYS_PARAM_H.
46158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
46159         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46160         * modules/getpagesize (Files): Remove lib/getpagesize.h.
46161         (Depends-on): Add unistd.
46162         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46163         (Include): Use <unistd.h> instead of getpagesize.h.
46164         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
46165         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46166         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
46167         gl_GETPAGESIZE invocation, already handled by module dependency.
46168         * lib/pagealign_alloc.c: Don't include getpagesize.h.
46169
46170 2007-12-02  Bruno Haible  <bruno@clisp.org>
46171
46172         * modules/strings-tests: New file.
46173         * tests/test-strings.c: New file.
46174
46175         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
46176         * lib/strings.in.h: New file.
46177         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
46178         * m4/strings_h.m4: New file.
46179         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
46180         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
46181         * modules/strings: New file.
46182         * modules/string (Makefile.am): Update.
46183         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
46184         Reported by Karl Berry.
46185
46186 2007-12-01  Eric Blake  <ebb9@byu.net>
46187
46188         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
46189         accomodate fix in cygwin 1.5.25.
46190
46191 2007-12-01  Jim Meyering  <meyering@redhat.com>
46192
46193         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
46194         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
46195         that would inhibit utf8-optimization of a regexp containing line-
46196         or buffer-anchors, e.g., `^', `$'.
46197
46198 2007-11-30  Bruno Haible  <bruno@clisp.org>
46199
46200         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
46201         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
46202         glthread_recursive_lock_init.
46203         * lib/lock.c (glthread_recursive_lock_init)
46204         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
46205         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46206
46207 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
46208
46209         New function qset_acl, like set_acl but with syscall semantics.
46210         * lib/acl.h (qset_acl): New decl.
46211         * lib/acl.c (qset_acl): New function.
46212         (set_acl): Use new function.  Use more-consistent diagnostics.
46213
46214 2007-11-28  Jim Meyering  <meyering@redhat.com>
46215
46216         * modules/physmem (License): Change from GPL to LGPLv2+.
46217
46218 2007-11-26  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/vasnprintf.c (decode_long_double): Don't abort if the
46221         'long double' type has excess precision.
46222         Reported by Jim Meyering in
46223         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
46224
46225 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46226
46227         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
46228         Sync from <http://gnu.org/licenses>.
46229         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
46230         with license text from same location.
46231         * doc/maintain.texi, doc/standards.texi:  Sync from
46232         <http://savannah.gnu.org/projects/gnustandards>.
46233
46234 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
46235         and Jim Meyering  <meyering@redhat.com>
46236
46237         Adjust getdate' grammar to accept a slightly more regular language.
46238         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
46239         Before, the former was rejected.
46240         * lib/getdate.y (digits_to_date_time): New function, factored
46241         out of ...
46242         (number): ...here.  Just call digits_to_date_time.
46243         (hybrid): New non-terminal to handle an <unsigned number,
46244         signed relative offset> sequence consistently.
46245
46246 2007-11-18  Jim Meyering  <meyering@redhat.com>
46247
46248         Pull my changes from coreutils:
46249         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
46250         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
46251         use of $gnulib_tool_option_extras, so that it's separated from the
46252         preceding argument.
46253
46254         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
46255         * build-aux/bootstrap (cp_mark_as_generated): Create any required
46256         parent destination directories before copying a file into place.
46257
46258 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46259
46260         bootstrap: work also with 4-argument variant of AC_INIT
46261         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
46262
46263 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46264
46265         Port test-getaddrinfo to Solaris.
46266         Problem reported by Bruno Haible in
46267         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
46268         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
46269         explanation of setting 'hints'.
46270         Don't reject an implementation merely because it returns EAI_SERVICE.
46271         (EAI_SERVICE): Define to 0 if not defined.
46272
46273 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46274
46275         The license of gnu-make and posix-shell is now "GPLed build tool".
46276         * modules/gnu-make (License): Likewise.
46277         * modules/posix-shell (License): Likewise.
46278
46279         New module posix-shell, for determining a POSIX shell
46280         or perhaps something that is close enough to a POSIX shell.
46281         * m4/posix-shell.m4: New file.
46282         * modules/posix-shell: New file.
46283
46284         * MODULES.html.sh: Mention new module.
46285
46286         New module gnu-make, for determining whether we're using GNU Make.
46287         * m4/gnu-make.m4: New file.
46288         * modules/gnu-make: New file.
46289         * MODULES.html.sh: Mention new module.
46290
46291 2007-11-14  Jim Meyering  <meyering@redhat.com>
46292
46293         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
46294         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
46295         use this macro to create a function _definition_.
46296         Remove useless "#undef ARGMATCH_DIE".
46297
46298 2007-11-14  Bruno Haible  <bruno@clisp.org>
46299
46300         * lib/config.charset: Update for OpenBSD 4.1.
46301         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
46302
46303 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
46304
46305         Document 64-bit #if problems in stdint.texi.
46306         * doc/headers/stdint.texi (stdint.h): Mention problems with
46307         64-bit-#if, and how to work around them.
46308
46309         Don't insist on 'long long int' support in the preprocessor.  It
46310         breaks too many things.  For example, PRIdMAX still uses a 'long
46311         long int' format with the latest Sun compiler, even though
46312         HAVE_LONG_LONG_INT isn't defined due to that compiler's
46313         preprocessor problem.  This causes the latest coreutils to dump
46314         core on Solaris 10 sparc with the Sun C compiler.
46315         Instead, fix the 2007-10-16 problem in a different way, by evaluating
46316         the troublesome expressions at configure-time, not at #if-time.
46317         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
46318         preprocessor.
46319         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
46320         compile-time C checks, done at 'configure'-time.
46321         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
46322         * modules/inttypes (Makefile): Substitute the new symbols that
46323         gl_INTTYPES_H now generates.
46324         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
46325
46326 2007-11-12  Bruno Haible  <bruno@clisp.org>
46327
46328         Tests for Unicode character classification functions.
46329
46330         * modules/unictype/bidicategory-byname-tests: New file.
46331         * modules/unictype/bidicategory-name-tests: New file.
46332         * modules/unictype/bidicategory-of-tests: New file.
46333         * modules/unictype/bidicategory-test-tests: New file.
46334         * modules/unictype/block-list-tests: New file.
46335         * modules/unictype/block-of-tests: New file.
46336         * modules/unictype/block-test-tests: New file.
46337         * modules/unictype/category-C-tests: New file.
46338         * modules/unictype/category-Cc-tests: New file.
46339         * modules/unictype/category-Cf-tests: New file.
46340         * modules/unictype/category-Cn-tests: New file.
46341         * modules/unictype/category-Co-tests: New file.
46342         * modules/unictype/category-Cs-tests: New file.
46343         * modules/unictype/category-L-tests: New file.
46344         * modules/unictype/category-Ll-tests: New file.
46345         * modules/unictype/category-Lm-tests: New file.
46346         * modules/unictype/category-Lo-tests: New file.
46347         * modules/unictype/category-Lt-tests: New file.
46348         * modules/unictype/category-Lu-tests: New file.
46349         * modules/unictype/category-M-tests: New file.
46350         * modules/unictype/category-Mc-tests: New file.
46351         * modules/unictype/category-Me-tests: New file.
46352         * modules/unictype/category-Mn-tests: New file.
46353         * modules/unictype/category-N-tests: New file.
46354         * modules/unictype/category-Nd-tests: New file.
46355         * modules/unictype/category-Nl-tests: New file.
46356         * modules/unictype/category-No-tests: New file.
46357         * modules/unictype/category-P-tests: New file.
46358         * modules/unictype/category-Pc-tests: New file.
46359         * modules/unictype/category-Pd-tests: New file.
46360         * modules/unictype/category-Pe-tests: New file.
46361         * modules/unictype/category-Pf-tests: New file.
46362         * modules/unictype/category-Pi-tests: New file.
46363         * modules/unictype/category-Po-tests: New file.
46364         * modules/unictype/category-Ps-tests: New file.
46365         * modules/unictype/category-S-tests: New file.
46366         * modules/unictype/category-Sc-tests: New file.
46367         * modules/unictype/category-Sk-tests: New file.
46368         * modules/unictype/category-Sm-tests: New file.
46369         * modules/unictype/category-So-tests: New file.
46370         * modules/unictype/category-Z-tests: New file.
46371         * modules/unictype/category-Zl-tests: New file.
46372         * modules/unictype/category-Zp-tests: New file.
46373         * modules/unictype/category-Zs-tests: New file.
46374         * modules/unictype/category-and-not-tests: New file.
46375         * modules/unictype/category-and-tests: New file.
46376         * modules/unictype/category-byname-tests: New file.
46377         * modules/unictype/category-name-tests: New file.
46378         * modules/unictype/category-none-tests: New file.
46379         * modules/unictype/category-of-tests: New file.
46380         * modules/unictype/category-or-tests: New file.
46381         * modules/unictype/category-test-withtable-tests: New file.
46382         * modules/unictype/combining-class-tests: New file.
46383         * modules/unictype/ctype-alnum-tests: New file.
46384         * modules/unictype/ctype-alpha-tests: New file.
46385         * modules/unictype/ctype-blank-tests: New file.
46386         * modules/unictype/ctype-cntrl-tests: New file.
46387         * modules/unictype/ctype-digit-tests: New file.
46388         * modules/unictype/ctype-graph-tests: New file.
46389         * modules/unictype/ctype-lower-tests: New file.
46390         * modules/unictype/ctype-print-tests: New file.
46391         * modules/unictype/ctype-punct-tests: New file.
46392         * modules/unictype/ctype-space-tests: New file.
46393         * modules/unictype/ctype-upper-tests: New file.
46394         * modules/unictype/ctype-xdigit-tests: New file.
46395         * modules/unictype/decimal-digit-tests: New file.
46396         * modules/unictype/digit-tests: New file.
46397         * modules/unictype/mirror-tests: New file.
46398         * modules/unictype/numeric-tests: New file.
46399         * modules/unictype/property-alphabetic-tests: New file.
46400         * modules/unictype/property-ascii-hex-digit-tests: New file.
46401         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46402         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46403         * modules/unictype/property-bidi-block-separator-tests: New file.
46404         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46405         * modules/unictype/property-bidi-common-separator-tests: New file.
46406         * modules/unictype/property-bidi-control-tests: New file.
46407         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46408         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46409         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46410         * modules/unictype/property-bidi-european-digit-tests: New file.
46411         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46412         * modules/unictype/property-bidi-left-to-right-tests: New file.
46413         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46414         * modules/unictype/property-bidi-other-neutral-tests: New file.
46415         * modules/unictype/property-bidi-pdf-tests: New file.
46416         * modules/unictype/property-bidi-segment-separator-tests: New file.
46417         * modules/unictype/property-bidi-whitespace-tests: New file.
46418         * modules/unictype/property-byname-tests: New file.
46419         * modules/unictype/property-combining-tests: New file.
46420         * modules/unictype/property-composite-tests: New file.
46421         * modules/unictype/property-currency-symbol-tests: New file.
46422         * modules/unictype/property-dash-tests: New file.
46423         * modules/unictype/property-decimal-digit-tests: New file.
46424         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46425         * modules/unictype/property-deprecated-tests: New file.
46426         * modules/unictype/property-diacritic-tests: New file.
46427         * modules/unictype/property-extender-tests: New file.
46428         * modules/unictype/property-format-control-tests: New file.
46429         * modules/unictype/property-grapheme-base-tests: New file.
46430         * modules/unictype/property-grapheme-extend-tests: New file.
46431         * modules/unictype/property-grapheme-link-tests: New file.
46432         * modules/unictype/property-hex-digit-tests: New file.
46433         * modules/unictype/property-hyphen-tests: New file.
46434         * modules/unictype/property-id-continue-tests: New file.
46435         * modules/unictype/property-id-start-tests: New file.
46436         * modules/unictype/property-ideographic-tests: New file.
46437         * modules/unictype/property-ids-binary-operator-tests: New file.
46438         * modules/unictype/property-ids-trinary-operator-tests: New file.
46439         * modules/unictype/property-ignorable-control-tests: New file.
46440         * modules/unictype/property-iso-control-tests: New file.
46441         * modules/unictype/property-join-control-tests: New file.
46442         * modules/unictype/property-left-of-pair-tests: New file.
46443         * modules/unictype/property-line-separator-tests: New file.
46444         * modules/unictype/property-logical-order-exception-tests: New file.
46445         * modules/unictype/property-lowercase-tests: New file.
46446         * modules/unictype/property-math-tests: New file.
46447         * modules/unictype/property-non-break-tests: New file.
46448         * modules/unictype/property-not-a-character-tests: New file.
46449         * modules/unictype/property-numeric-tests: New file.
46450         * modules/unictype/property-other-alphabetic-tests: New file.
46451         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46452         * modules/unictype/property-other-grapheme-extend-tests: New file.
46453         * modules/unictype/property-other-id-continue-tests: New file.
46454         * modules/unictype/property-other-id-start-tests: New file.
46455         * modules/unictype/property-other-lowercase-tests: New file.
46456         * modules/unictype/property-other-math-tests: New file.
46457         * modules/unictype/property-other-uppercase-tests: New file.
46458         * modules/unictype/property-paired-punctuation-tests: New file.
46459         * modules/unictype/property-paragraph-separator-tests: New file.
46460         * modules/unictype/property-pattern-syntax-tests: New file.
46461         * modules/unictype/property-pattern-white-space-tests: New file.
46462         * modules/unictype/property-private-use-tests: New file.
46463         * modules/unictype/property-punctuation-tests: New file.
46464         * modules/unictype/property-quotation-mark-tests: New file.
46465         * modules/unictype/property-radical-tests: New file.
46466         * modules/unictype/property-sentence-terminal-tests: New file.
46467         * modules/unictype/property-soft-dotted-tests: New file.
46468         * modules/unictype/property-space-tests: New file.
46469         * modules/unictype/property-terminal-punctuation-tests: New file.
46470         * modules/unictype/property-test-tests: New file.
46471         * modules/unictype/property-titlecase-tests: New file.
46472         * modules/unictype/property-unassigned-code-value-tests: New file.
46473         * modules/unictype/property-unified-ideograph-tests: New file.
46474         * modules/unictype/property-uppercase-tests: New file.
46475         * modules/unictype/property-variation-selector-tests: New file.
46476         * modules/unictype/property-white-space-tests: New file.
46477         * modules/unictype/property-xid-continue-tests: New file.
46478         * modules/unictype/property-xid-start-tests: New file.
46479         * modules/unictype/property-zero-width-tests: New file.
46480         * modules/unictype/scripts-tests: New file.
46481         * modules/unictype/syntax-c-ident-tests: New file.
46482         * modules/unictype/syntax-c-whitespace-tests: New file.
46483         * modules/unictype/syntax-java-ident-tests: New file.
46484         * modules/unictype/syntax-java-whitespace-tests: New file.
46485         * tests/unictype/test-bidi_byname.c: New file.
46486         * tests/unictype/test-bidi_name.c: New file.
46487         * tests/unictype/test-bidi_of.c: New file.
46488         * tests/unictype/test-bidi_test.c: New file.
46489         * tests/unictype/test-block_list.c: New file.
46490         * tests/unictype/test-block_of.c: New file.
46491         * tests/unictype/test-block_test.c: New file.
46492         * tests/unictype/test-categ_and.c: New file.
46493         * tests/unictype/test-categ_and_not.c: New file.
46494         * tests/unictype/test-categ_byname.c: New file.
46495         * tests/unictype/test-categ_name.c: New file.
46496         * tests/unictype/test-categ_none.c: New file.
46497         * tests/unictype/test-categ_of.c: New file.
46498         * tests/unictype/test-categ_or.c: New file.
46499         * tests/unictype/test-categ_test_withtable.c: New file.
46500         * tests/unictype/test-combining.c: New file.
46501         * tests/unictype/test-decdigit.c: New file.
46502         * tests/unictype/test-digit.c: New file.
46503         * tests/unictype/test-mirror.c: New file.
46504         * tests/unictype/test-numeric.c: New file.
46505         * tests/unictype/test-pr_byname.c: New file.
46506         * tests/unictype/test-pr_test.c: New file.
46507         * tests/unictype/test-predicate-part1.h: New file.
46508         * tests/unictype/test-predicate-part2.h: New file.
46509         * tests/unictype/test-scripts.c: New file.
46510         * tests/unictype/test-sy_c_ident.c: New file.
46511         * tests/unictype/test-sy_java_ident.c: New file.
46512
46513         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46514         for Unicode 5.0.0.
46515         * tests/unictype/test-categ_Cc.c: Likewise.
46516         * tests/unictype/test-categ_Cf.c: Likewise.
46517         * tests/unictype/test-categ_Cn.c: Likewise.
46518         * tests/unictype/test-categ_Co.c: Likewise.
46519         * tests/unictype/test-categ_Cs.c: Likewise.
46520         * tests/unictype/test-categ_L.c: Likewise.
46521         * tests/unictype/test-categ_Ll.c: Likewise.
46522         * tests/unictype/test-categ_Lm.c: Likewise.
46523         * tests/unictype/test-categ_Lo.c: Likewise.
46524         * tests/unictype/test-categ_Lt.c: Likewise.
46525         * tests/unictype/test-categ_Lu.c: Likewise.
46526         * tests/unictype/test-categ_M.c: Likewise.
46527         * tests/unictype/test-categ_Mc.c: Likewise.
46528         * tests/unictype/test-categ_Me.c: Likewise.
46529         * tests/unictype/test-categ_Mn.c: Likewise.
46530         * tests/unictype/test-categ_N.c: Likewise.
46531         * tests/unictype/test-categ_Nd.c: Likewise.
46532         * tests/unictype/test-categ_Nl.c: Likewise.
46533         * tests/unictype/test-categ_No.c: Likewise.
46534         * tests/unictype/test-categ_P.c: Likewise.
46535         * tests/unictype/test-categ_Pc.c: Likewise.
46536         * tests/unictype/test-categ_Pd.c: Likewise.
46537         * tests/unictype/test-categ_Pe.c: Likewise.
46538         * tests/unictype/test-categ_Pf.c: Likewise.
46539         * tests/unictype/test-categ_Pi.c: Likewise.
46540         * tests/unictype/test-categ_Po.c: Likewise.
46541         * tests/unictype/test-categ_Ps.c: Likewise.
46542         * tests/unictype/test-categ_S.c: Likewise.
46543         * tests/unictype/test-categ_Sc.c: Likewise.
46544         * tests/unictype/test-categ_Sk.c: Likewise.
46545         * tests/unictype/test-categ_Sm.c: Likewise.
46546         * tests/unictype/test-categ_So.c: Likewise.
46547         * tests/unictype/test-categ_Z.c: Likewise.
46548         * tests/unictype/test-categ_Zl.c: Likewise.
46549         * tests/unictype/test-categ_Zp.c: Likewise.
46550         * tests/unictype/test-categ_Zs.c: Likewise.
46551         * tests/unictype/test-ctype_alnum.c: Likewise.
46552         * tests/unictype/test-ctype_alpha.c: Likewise.
46553         * tests/unictype/test-ctype_blank.c: Likewise.
46554         * tests/unictype/test-ctype_cntrl.c: Likewise.
46555         * tests/unictype/test-ctype_digit.c: Likewise.
46556         * tests/unictype/test-ctype_graph.c: Likewise.
46557         * tests/unictype/test-ctype_lower.c: Likewise.
46558         * tests/unictype/test-ctype_print.c: Likewise.
46559         * tests/unictype/test-ctype_punct.c: Likewise.
46560         * tests/unictype/test-ctype_space.c: Likewise.
46561         * tests/unictype/test-ctype_upper.c: Likewise.
46562         * tests/unictype/test-ctype_xdigit.c: Likewise.
46563         * tests/unictype/test-decdigit.h: Likewise.
46564         * tests/unictype/test-digit.h: Likewise.
46565         * tests/unictype/test-numeric.h: Likewise.
46566         * tests/unictype/test-pr_alphabetic.c: Likewise.
46567         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46568         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46569         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46570         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46571         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46572         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46573         * tests/unictype/test-pr_bidi_control.c: Likewise.
46574         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46575         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46576         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46577         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46578         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46579         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46580         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46581         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46582         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46583         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46584         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46585         * tests/unictype/test-pr_combining.c: Likewise.
46586         * tests/unictype/test-pr_composite.c: Likewise.
46587         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46588         * tests/unictype/test-pr_dash.c: Likewise.
46589         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46590         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46591         * tests/unictype/test-pr_deprecated.c: Likewise.
46592         * tests/unictype/test-pr_diacritic.c: Likewise.
46593         * tests/unictype/test-pr_extender.c: Likewise.
46594         * tests/unictype/test-pr_format_control.c: Likewise.
46595         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46596         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46597         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46598         * tests/unictype/test-pr_hex_digit.c: Likewise.
46599         * tests/unictype/test-pr_hyphen.c: Likewise.
46600         * tests/unictype/test-pr_id_continue.c: Likewise.
46601         * tests/unictype/test-pr_id_start.c: Likewise.
46602         * tests/unictype/test-pr_ideographic.c: Likewise.
46603         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46604         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46605         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46606         * tests/unictype/test-pr_iso_control.c: Likewise.
46607         * tests/unictype/test-pr_join_control.c: Likewise.
46608         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46609         * tests/unictype/test-pr_line_separator.c: Likewise.
46610         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46611         * tests/unictype/test-pr_lowercase.c: Likewise.
46612         * tests/unictype/test-pr_math.c: Likewise.
46613         * tests/unictype/test-pr_non_break.c: Likewise.
46614         * tests/unictype/test-pr_not_a_character.c: Likewise.
46615         * tests/unictype/test-pr_numeric.c: Likewise.
46616         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46617         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46618         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46619         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46620         * tests/unictype/test-pr_other_id_start.c: Likewise.
46621         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46622         * tests/unictype/test-pr_other_math.c: Likewise.
46623         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46624         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46625         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46626         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46627         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46628         * tests/unictype/test-pr_private_use.c: Likewise.
46629         * tests/unictype/test-pr_punctuation.c: Likewise.
46630         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46631         * tests/unictype/test-pr_radical.c: Likewise.
46632         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46633         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46634         * tests/unictype/test-pr_space.c: Likewise.
46635         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46636         * tests/unictype/test-pr_titlecase.c: Likewise.
46637         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46638         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46639         * tests/unictype/test-pr_uppercase.c: Likewise.
46640         * tests/unictype/test-pr_variation_selector.c: Likewise.
46641         * tests/unictype/test-pr_white_space.c: Likewise.
46642         * tests/unictype/test-pr_xid_continue.c: Likewise.
46643         * tests/unictype/test-pr_xid_start.c: Likewise.
46644         * tests/unictype/test-pr_zero_width.c: Likewise.
46645         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46646         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46647
46648 2007-11-12  Bruno Haible  <bruno@clisp.org>
46649
46650         Unicode character classification functions.
46651         * lib/unictype.h: New file.
46652         * modules/unictype/base: New file.
46653         * modules/unictype/category-L: New file.
46654         * modules/unictype/category-Lu: New file.
46655         * modules/unictype/category-Ll: New file.
46656         * modules/unictype/category-Lt: New file.
46657         * modules/unictype/category-Lm: New file.
46658         * modules/unictype/category-Lo: New file.
46659         * modules/unictype/category-M: New file.
46660         * modules/unictype/category-Mn: New file.
46661         * modules/unictype/category-Mc: New file.
46662         * modules/unictype/category-Me: New file.
46663         * modules/unictype/category-N: New file.
46664         * modules/unictype/category-Nd: New file.
46665         * modules/unictype/category-Nl: New file.
46666         * modules/unictype/category-No: New file.
46667         * modules/unictype/category-P: New file.
46668         * modules/unictype/category-Pc: New file.
46669         * modules/unictype/category-Pd: New file.
46670         * modules/unictype/category-Ps: New file.
46671         * modules/unictype/category-Pe: New file.
46672         * modules/unictype/category-Pi: New file.
46673         * modules/unictype/category-Pf: New file.
46674         * modules/unictype/category-Po: New file.
46675         * modules/unictype/category-S: New file.
46676         * modules/unictype/category-Sm: New file.
46677         * modules/unictype/category-Sc: New file.
46678         * modules/unictype/category-Sk: New file.
46679         * modules/unictype/category-So: New file.
46680         * modules/unictype/category-Z: New file.
46681         * modules/unictype/category-Zs: New file.
46682         * modules/unictype/category-Zl: New file.
46683         * modules/unictype/category-Zp: New file.
46684         * modules/unictype/category-C: New file.
46685         * modules/unictype/category-Cc: New file.
46686         * modules/unictype/category-Cf: New file.
46687         * modules/unictype/category-Cs: New file.
46688         * modules/unictype/category-Co: New file.
46689         * modules/unictype/category-Cn: New file.
46690         * modules/unictype/category-or: New file.
46691         * modules/unictype/category-of: New file.
46692         * modules/unictype/category-test: New file.
46693         * modules/unictype/category-test-withtable: New file.
46694         * modules/unictype/category-byname: New file.
46695         * modules/unictype/category-none: New file.
46696         * modules/unictype/category-and: New file.
46697         * modules/unictype/category-and-not: New file.
46698         * modules/unictype/category-name: New file.
46699         * modules/unictype/combining-class: New file.
46700         * modules/unictype/category-all: New file.
46701         * modules/unictype/bidicategory-all: New file.
46702         * modules/unictype/bidicategory-byname: New file.
46703         * modules/unictype/bidicategory-name: New file.
46704         * modules/unictype/bidicategory-of: New file.
46705         * modules/unictype/bidicategory-test: New file.
46706         * modules/unictype/decimal-digit: New file.
46707         * modules/unictype/digit: New file.
46708         * modules/unictype/numeric: New file.
46709         * modules/unictype/mirror: New file.
46710         * modules/unictype/property-white-space: New file.
46711         * modules/unictype/property-alphabetic: New file.
46712         * modules/unictype/property-other-alphabetic: New file.
46713         * modules/unictype/property-not-a-character: New file.
46714         * modules/unictype/property-default-ignorable-code-point: New file.
46715         * modules/unictype/property-other-default-ignorable-code-point: New
46716         file.
46717         * modules/unictype/property-deprecated: New file.
46718         * modules/unictype/property-logical-order-exception: New file.
46719         * modules/unictype/property-variation-selector: New file.
46720         * modules/unictype/property-private-use: New file.
46721         * modules/unictype/property-unassigned-code-value: New file.
46722         * modules/unictype/property-uppercase: New file.
46723         * modules/unictype/property-other-uppercase: New file.
46724         * modules/unictype/property-lowercase: New file.
46725         * modules/unictype/property-other-lowercase: New file.
46726         * modules/unictype/property-titlecase: New file.
46727         * modules/unictype/property-soft-dotted: New file.
46728         * modules/unictype/property-id-start: New file.
46729         * modules/unictype/property-other-id-start: New file.
46730         * modules/unictype/property-id-continue: New file.
46731         * modules/unictype/property-other-id-continue: New file.
46732         * modules/unictype/property-xid-start: New file.
46733         * modules/unictype/property-xid-continue: New file.
46734         * modules/unictype/property-pattern-white-space: New file.
46735         * modules/unictype/property-pattern-syntax: New file.
46736         * modules/unictype/property-join-control: New file.
46737         * modules/unictype/property-grapheme-base: New file.
46738         * modules/unictype/property-grapheme-extend: New file.
46739         * modules/unictype/property-other-grapheme-extend: New file.
46740         * modules/unictype/property-grapheme-link: New file.
46741         * modules/unictype/property-bidi-control: New file.
46742         * modules/unictype/property-bidi-left-to-right: New file.
46743         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46744         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46745         * modules/unictype/property-bidi-european-digit: New file.
46746         * modules/unictype/property-bidi-eur-num-separator: New file.
46747         * modules/unictype/property-bidi-eur-num-terminator: New file.
46748         * modules/unictype/property-bidi-arabic-digit: New file.
46749         * modules/unictype/property-bidi-common-separator: New file.
46750         * modules/unictype/property-bidi-block-separator: New file.
46751         * modules/unictype/property-bidi-segment-separator: New file.
46752         * modules/unictype/property-bidi-whitespace: New file.
46753         * modules/unictype/property-bidi-non-spacing-mark: New file.
46754         * modules/unictype/property-bidi-boundary-neutral: New file.
46755         * modules/unictype/property-bidi-pdf: New file.
46756         * modules/unictype/property-bidi-embedding-or-override: New file.
46757         * modules/unictype/property-bidi-other-neutral: New file.
46758         * modules/unictype/property-hex-digit: New file.
46759         * modules/unictype/property-ascii-hex-digit: New file.
46760         * modules/unictype/property-ideographic: New file.
46761         * modules/unictype/property-unified-ideograph: New file.
46762         * modules/unictype/property-radical: New file.
46763         * modules/unictype/property-ids-binary-operator: New file.
46764         * modules/unictype/property-ids-trinary-operator: New file.
46765         * modules/unictype/property-zero-width: New file.
46766         * modules/unictype/property-space: New file.
46767         * modules/unictype/property-non-break: New file.
46768         * modules/unictype/property-iso-control: New file.
46769         * modules/unictype/property-format-control: New file.
46770         * modules/unictype/property-dash: New file.
46771         * modules/unictype/property-hyphen: New file.
46772         * modules/unictype/property-punctuation: New file.
46773         * modules/unictype/property-line-separator: New file.
46774         * modules/unictype/property-paragraph-separator: New file.
46775         * modules/unictype/property-quotation-mark: New file.
46776         * modules/unictype/property-sentence-terminal: New file.
46777         * modules/unictype/property-terminal-punctuation: New file.
46778         * modules/unictype/property-currency-symbol: New file.
46779         * modules/unictype/property-math: New file.
46780         * modules/unictype/property-other-math: New file.
46781         * modules/unictype/property-paired-punctuation: New file.
46782         * modules/unictype/property-left-of-pair: New file.
46783         * modules/unictype/property-combining: New file.
46784         * modules/unictype/property-composite: New file.
46785         * modules/unictype/property-decimal-digit: New file.
46786         * modules/unictype/property-numeric: New file.
46787         * modules/unictype/property-diacritic: New file.
46788         * modules/unictype/property-extender: New file.
46789         * modules/unictype/property-ignorable-control: New file.
46790         * modules/unictype/property-test: New file.
46791         * modules/unictype/property-byname: New file.
46792         * modules/unictype/property-all: New file.
46793         * modules/unictype/scripts: New file.
46794         * modules/unictype/scripts-all: New file.
46795         * modules/unictype/block-of: New file.
46796         * modules/unictype/block-test: New file.
46797         * modules/unictype/block-list: New file.
46798         * modules/unictype/block-all: New file.
46799         * modules/unictype/syntax-c-whitespace: New file.
46800         * modules/unictype/syntax-java-whitespace: New file.
46801         * modules/unictype/syntax-c-ident: New file.
46802         * modules/unictype/syntax-java-ident: New file.
46803         * modules/unictype/ctype-alnum: New file.
46804         * modules/unictype/ctype-alpha: New file.
46805         * modules/unictype/ctype-cntrl: New file.
46806         * modules/unictype/ctype-digit: New file.
46807         * modules/unictype/ctype-graph: New file.
46808         * modules/unictype/ctype-lower: New file.
46809         * modules/unictype/ctype-print: New file.
46810         * modules/unictype/ctype-punct: New file.
46811         * modules/unictype/ctype-space: New file.
46812         * modules/unictype/ctype-upper: New file.
46813         * modules/unictype/ctype-xdigit: New file.
46814         * modules/unictype/ctype-blank: New file.
46815         * lib/unictype/bidi_byname.c: New file.
46816         * lib/unictype/bidi_name.c: New file.
46817         * lib/unictype/bidi_of.c: New file.
46818         * lib/unictype/bidi_test.c: New file.
46819         * lib/unictype/bitmap.h: New file.
46820         * lib/unictype/block_test.c: New file.
46821         * lib/unictype/blocks.c: New file.
46822         * lib/unictype/categ_C.c: New file.
46823         * lib/unictype/categ_Cc.c: New file.
46824         * lib/unictype/categ_Cf.c: New file.
46825         * lib/unictype/categ_Cn.c: New file.
46826         * lib/unictype/categ_Co.c: New file.
46827         * lib/unictype/categ_Cs.c: New file.
46828         * lib/unictype/categ_L.c: New file.
46829         * lib/unictype/categ_Ll.c: New file.
46830         * lib/unictype/categ_Lm.c: New file.
46831         * lib/unictype/categ_Lo.c: New file.
46832         * lib/unictype/categ_Lt.c: New file.
46833         * lib/unictype/categ_Lu.c: New file.
46834         * lib/unictype/categ_M.c: New file.
46835         * lib/unictype/categ_Mc.c: New file.
46836         * lib/unictype/categ_Me.c: New file.
46837         * lib/unictype/categ_Mn.c: New file.
46838         * lib/unictype/categ_N.c: New file.
46839         * lib/unictype/categ_Nd.c: New file.
46840         * lib/unictype/categ_Nl.c: New file.
46841         * lib/unictype/categ_No.c: New file.
46842         * lib/unictype/categ_P.c: New file.
46843         * lib/unictype/categ_Pc.c: New file.
46844         * lib/unictype/categ_Pd.c: New file.
46845         * lib/unictype/categ_Pe.c: New file.
46846         * lib/unictype/categ_Pf.c: New file.
46847         * lib/unictype/categ_Pi.c: New file.
46848         * lib/unictype/categ_Po.c: New file.
46849         * lib/unictype/categ_Ps.c: New file.
46850         * lib/unictype/categ_S.c: New file.
46851         * lib/unictype/categ_Sc.c: New file.
46852         * lib/unictype/categ_Sk.c: New file.
46853         * lib/unictype/categ_Sm.c: New file.
46854         * lib/unictype/categ_So.c: New file.
46855         * lib/unictype/categ_Z.c: New file.
46856         * lib/unictype/categ_Zl.c: New file.
46857         * lib/unictype/categ_Zp.c: New file.
46858         * lib/unictype/categ_Zs.c: New file.
46859         * lib/unictype/categ_and.c: New file.
46860         * lib/unictype/categ_and_not.c: New file.
46861         * lib/unictype/categ_byname.c: New file.
46862         * lib/unictype/categ_name.c: New file.
46863         * lib/unictype/categ_none.c: New file.
46864         * lib/unictype/categ_of.c: New file.
46865         * lib/unictype/categ_or.c: New file.
46866         * lib/unictype/categ_test.c: New file.
46867         * lib/unictype/combining.c: New file.
46868         * lib/unictype/ctype_alnum.c: New file.
46869         * lib/unictype/ctype_alpha.c: New file.
46870         * lib/unictype/ctype_blank.c: New file.
46871         * lib/unictype/ctype_cntrl.c: New file.
46872         * lib/unictype/ctype_digit.c: New file.
46873         * lib/unictype/ctype_graph.c: New file.
46874         * lib/unictype/ctype_lower.c: New file.
46875         * lib/unictype/ctype_print.c: New file.
46876         * lib/unictype/ctype_punct.c: New file.
46877         * lib/unictype/ctype_space.c: New file.
46878         * lib/unictype/ctype_upper.c: New file.
46879         * lib/unictype/ctype_xdigit.c: New file.
46880         * lib/unictype/decdigit.c: New file.
46881         * lib/unictype/digit.c: New file.
46882         * lib/unictype/identsyntaxmap.h: New file.
46883         * lib/unictype/mirror.c: New file.
46884         * lib/unictype/numeric.c: New file.
46885         * lib/unictype/pr_alphabetic.c: New file.
46886         * lib/unictype/pr_ascii_hex_digit.c: New file.
46887         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46888         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46889         * lib/unictype/pr_bidi_block_separator.c: New file.
46890         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46891         * lib/unictype/pr_bidi_common_separator.c: New file.
46892         * lib/unictype/pr_bidi_control.c: New file.
46893         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46894         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46895         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46896         * lib/unictype/pr_bidi_european_digit.c: New file.
46897         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46898         * lib/unictype/pr_bidi_left_to_right.c: New file.
46899         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46900         * lib/unictype/pr_bidi_other_neutral.c: New file.
46901         * lib/unictype/pr_bidi_pdf.c: New file.
46902         * lib/unictype/pr_bidi_segment_separator.c: New file.
46903         * lib/unictype/pr_bidi_whitespace.c: New file.
46904         * lib/unictype/pr_byname.c: New file.
46905         * lib/unictype/pr_byname.gperf: New file.
46906         * lib/unictype/pr_combining.c: New file.
46907         * lib/unictype/pr_composite.c: New file.
46908         * lib/unictype/pr_currency_symbol.c: New file.
46909         * lib/unictype/pr_dash.c: New file.
46910         * lib/unictype/pr_decimal_digit.c: New file.
46911         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46912         * lib/unictype/pr_deprecated.c: New file.
46913         * lib/unictype/pr_diacritic.c: New file.
46914         * lib/unictype/pr_extender.c: New file.
46915         * lib/unictype/pr_format_control.c: New file.
46916         * lib/unictype/pr_grapheme_base.c: New file.
46917         * lib/unictype/pr_grapheme_extend.c: New file.
46918         * lib/unictype/pr_grapheme_link.c: New file.
46919         * lib/unictype/pr_hex_digit.c: New file.
46920         * lib/unictype/pr_hyphen.c: New file.
46921         * lib/unictype/pr_id_continue.c: New file.
46922         * lib/unictype/pr_id_start.c: New file.
46923         * lib/unictype/pr_ideographic.c: New file.
46924         * lib/unictype/pr_ids_binary_operator.c: New file.
46925         * lib/unictype/pr_ids_trinary_operator.c: New file.
46926         * lib/unictype/pr_ignorable_control.c: New file.
46927         * lib/unictype/pr_iso_control.c: New file.
46928         * lib/unictype/pr_join_control.c: New file.
46929         * lib/unictype/pr_left_of_pair.c: New file.
46930         * lib/unictype/pr_line_separator.c: New file.
46931         * lib/unictype/pr_logical_order_exception.c: New file.
46932         * lib/unictype/pr_lowercase.c: New file.
46933         * lib/unictype/pr_math.c: New file.
46934         * lib/unictype/pr_non_break.c: New file.
46935         * lib/unictype/pr_not_a_character.c: New file.
46936         * lib/unictype/pr_numeric.c: New file.
46937         * lib/unictype/pr_other_alphabetic.c: New file.
46938         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46939         * lib/unictype/pr_other_grapheme_extend.c: New file.
46940         * lib/unictype/pr_other_id_continue.c: New file.
46941         * lib/unictype/pr_other_id_start.c: New file.
46942         * lib/unictype/pr_other_lowercase.c: New file.
46943         * lib/unictype/pr_other_math.c: New file.
46944         * lib/unictype/pr_other_uppercase.c: New file.
46945         * lib/unictype/pr_paired_punctuation.c: New file.
46946         * lib/unictype/pr_paragraph_separator.c: New file.
46947         * lib/unictype/pr_pattern_syntax.c: New file.
46948         * lib/unictype/pr_pattern_white_space.c: New file.
46949         * lib/unictype/pr_private_use.c: New file.
46950         * lib/unictype/pr_punctuation.c: New file.
46951         * lib/unictype/pr_quotation_mark.c: New file.
46952         * lib/unictype/pr_radical.c: New file.
46953         * lib/unictype/pr_sentence_terminal.c: New file.
46954         * lib/unictype/pr_soft_dotted.c: New file.
46955         * lib/unictype/pr_space.c: New file.
46956         * lib/unictype/pr_terminal_punctuation.c: New file.
46957         * lib/unictype/pr_test.c: New file.
46958         * lib/unictype/pr_titlecase.c: New file.
46959         * lib/unictype/pr_unassigned_code_value.c: New file.
46960         * lib/unictype/pr_unified_ideograph.c: New file.
46961         * lib/unictype/pr_uppercase.c: New file.
46962         * lib/unictype/pr_variation_selector.c: New file.
46963         * lib/unictype/pr_white_space.c: New file.
46964         * lib/unictype/pr_xid_continue.c: New file.
46965         * lib/unictype/pr_xid_start.c: New file.
46966         * lib/unictype/pr_zero_width.c: New file.
46967         * lib/unictype/scripts.c: New file.
46968         * lib/unictype/sy_c_ident.c: New file.
46969         * lib/unictype/sy_c_whitespace.c: New file.
46970         * lib/unictype/sy_java_ident.c: New file.
46971         * lib/unictype/sy_java_whitespace.c: New file.
46972
46973         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46974         Unicode 5.0.0.
46975         * lib/unictype/blocks.h: Likewise.
46976         * lib/unictype/categ_C.h: Likewise.
46977         * lib/unictype/categ_Cc.h: Likewise.
46978         * lib/unictype/categ_Cf.h: Likewise.
46979         * lib/unictype/categ_Cn.h: Likewise.
46980         * lib/unictype/categ_Co.h: Likewise.
46981         * lib/unictype/categ_Cs.h: Likewise.
46982         * lib/unictype/categ_L.h: Likewise.
46983         * lib/unictype/categ_Ll.h: Likewise.
46984         * lib/unictype/categ_Lm.h: Likewise.
46985         * lib/unictype/categ_Lo.h: Likewise.
46986         * lib/unictype/categ_Lt.h: Likewise.
46987         * lib/unictype/categ_Lu.h: Likewise.
46988         * lib/unictype/categ_M.h: Likewise.
46989         * lib/unictype/categ_Mc.h: Likewise.
46990         * lib/unictype/categ_Me.h: Likewise.
46991         * lib/unictype/categ_Mn.h: Likewise.
46992         * lib/unictype/categ_N.h: Likewise.
46993         * lib/unictype/categ_Nd.h: Likewise.
46994         * lib/unictype/categ_Nl.h: Likewise.
46995         * lib/unictype/categ_No.h: Likewise.
46996         * lib/unictype/categ_P.h: Likewise.
46997         * lib/unictype/categ_Pc.h: Likewise.
46998         * lib/unictype/categ_Pd.h: Likewise.
46999         * lib/unictype/categ_Pe.h: Likewise.
47000         * lib/unictype/categ_Pf.h: Likewise.
47001         * lib/unictype/categ_Pi.h: Likewise.
47002         * lib/unictype/categ_Po.h: Likewise.
47003         * lib/unictype/categ_Ps.h: Likewise.
47004         * lib/unictype/categ_S.h: Likewise.
47005         * lib/unictype/categ_Sc.h: Likewise.
47006         * lib/unictype/categ_Sk.h: Likewise.
47007         * lib/unictype/categ_Sm.h: Likewise.
47008         * lib/unictype/categ_So.h: Likewise.
47009         * lib/unictype/categ_Z.h: Likewise.
47010         * lib/unictype/categ_Zl.h: Likewise.
47011         * lib/unictype/categ_Zp.h: Likewise.
47012         * lib/unictype/categ_Zs.h: Likewise.
47013         * lib/unictype/categ_of.h: Likewise.
47014         * lib/unictype/combining.h: Likewise.
47015         * lib/unictype/ctype_alnum.h: Likewise.
47016         * lib/unictype/ctype_alpha.h: Likewise.
47017         * lib/unictype/ctype_blank.h: Likewise.
47018         * lib/unictype/ctype_cntrl.h: Likewise.
47019         * lib/unictype/ctype_digit.h: Likewise.
47020         * lib/unictype/ctype_graph.h: Likewise.
47021         * lib/unictype/ctype_lower.h: Likewise.
47022         * lib/unictype/ctype_print.h: Likewise.
47023         * lib/unictype/ctype_punct.h: Likewise.
47024         * lib/unictype/ctype_space.h: Likewise.
47025         * lib/unictype/ctype_upper.h: Likewise.
47026         * lib/unictype/ctype_xdigit.h: Likewise.
47027         * lib/unictype/decdigit.h: Likewise.
47028         * lib/unictype/digit.h: Likewise.
47029         * lib/unictype/mirror.h: Likewise.
47030         * lib/unictype/numeric.h: Likewise.
47031         * lib/unictype/pr_alphabetic.h: Likewise.
47032         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
47033         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
47034         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
47035         * lib/unictype/pr_bidi_block_separator.h: Likewise.
47036         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
47037         * lib/unictype/pr_bidi_common_separator.h: Likewise.
47038         * lib/unictype/pr_bidi_control.h: Likewise.
47039         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
47040         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
47041         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
47042         * lib/unictype/pr_bidi_european_digit.h: Likewise.
47043         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
47044         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
47045         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
47046         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
47047         * lib/unictype/pr_bidi_pdf.h: Likewise.
47048         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
47049         * lib/unictype/pr_bidi_whitespace.h: Likewise.
47050         * lib/unictype/pr_combining.h: Likewise.
47051         * lib/unictype/pr_composite.h: Likewise.
47052         * lib/unictype/pr_currency_symbol.h: Likewise.
47053         * lib/unictype/pr_dash.h: Likewise.
47054         * lib/unictype/pr_decimal_digit.h: Likewise.
47055         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
47056         * lib/unictype/pr_deprecated.h: Likewise.
47057         * lib/unictype/pr_diacritic.h: Likewise.
47058         * lib/unictype/pr_extender.h: Likewise.
47059         * lib/unictype/pr_format_control.h: Likewise.
47060         * lib/unictype/pr_grapheme_base.h: Likewise.
47061         * lib/unictype/pr_grapheme_extend.h: Likewise.
47062         * lib/unictype/pr_grapheme_link.h: Likewise.
47063         * lib/unictype/pr_hex_digit.h: Likewise.
47064         * lib/unictype/pr_hyphen.h: Likewise.
47065         * lib/unictype/pr_id_continue.h: Likewise.
47066         * lib/unictype/pr_id_start.h: Likewise.
47067         * lib/unictype/pr_ideographic.h: Likewise.
47068         * lib/unictype/pr_ids_binary_operator.h: Likewise.
47069         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
47070         * lib/unictype/pr_ignorable_control.h: Likewise.
47071         * lib/unictype/pr_iso_control.h: Likewise.
47072         * lib/unictype/pr_join_control.h: Likewise.
47073         * lib/unictype/pr_left_of_pair.h: Likewise.
47074         * lib/unictype/pr_line_separator.h: Likewise.
47075         * lib/unictype/pr_logical_order_exception.h: Likewise.
47076         * lib/unictype/pr_lowercase.h: Likewise.
47077         * lib/unictype/pr_math.h: Likewise.
47078         * lib/unictype/pr_non_break.h: Likewise.
47079         * lib/unictype/pr_not_a_character.h: Likewise.
47080         * lib/unictype/pr_numeric.h: Likewise.
47081         * lib/unictype/pr_other_alphabetic.h: Likewise.
47082         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
47083         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
47084         * lib/unictype/pr_other_id_continue.h: Likewise.
47085         * lib/unictype/pr_other_id_start.h: Likewise.
47086         * lib/unictype/pr_other_lowercase.h: Likewise.
47087         * lib/unictype/pr_other_math.h: Likewise.
47088         * lib/unictype/pr_other_uppercase.h: Likewise.
47089         * lib/unictype/pr_paired_punctuation.h: Likewise.
47090         * lib/unictype/pr_paragraph_separator.h: Likewise.
47091         * lib/unictype/pr_pattern_syntax.h: Likewise.
47092         * lib/unictype/pr_pattern_white_space.h: Likewise.
47093         * lib/unictype/pr_private_use.h: Likewise.
47094         * lib/unictype/pr_punctuation.h: Likewise.
47095         * lib/unictype/pr_quotation_mark.h: Likewise.
47096         * lib/unictype/pr_radical.h: Likewise.
47097         * lib/unictype/pr_sentence_terminal.h: Likewise.
47098         * lib/unictype/pr_soft_dotted.h: Likewise.
47099         * lib/unictype/pr_space.h: Likewise.
47100         * lib/unictype/pr_terminal_punctuation.h: Likewise.
47101         * lib/unictype/pr_titlecase.h: Likewise.
47102         * lib/unictype/pr_unassigned_code_value.h: Likewise.
47103         * lib/unictype/pr_unified_ideograph.h: Likewise.
47104         * lib/unictype/pr_uppercase.h: Likewise.
47105         * lib/unictype/pr_variation_selector.h: Likewise.
47106         * lib/unictype/pr_white_space.h: Likewise.
47107         * lib/unictype/pr_xid_continue.h: Likewise.
47108         * lib/unictype/pr_xid_start.h: Likewise.
47109         * lib/unictype/pr_zero_width.h: Likewise.
47110         * lib/unictype/scripts.h: Likewise.
47111         * lib/unictype/scripts_byname.gperf: Likewise.
47112         * lib/unictype/sy_c_ident.h: Likewise.
47113         * lib/unictype/sy_c_whitespace.h: Likewise.
47114         * lib/unictype/sy_java_ident.h: Likewise.
47115         * lib/unictype/sy_java_whitespace.h: Likewise.
47116
47117         * lib/unictype/Makefile: New file.
47118         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
47119         glibc.
47120         * lib/unictype/3level.h: New file, copied from glibc.
47121         * lib/unictype/3levelbit.h: New file.
47122
47123 2007-11-11  Bruno Haible  <bruno@clisp.org>
47124
47125         * modules/gperf: New file.
47126         * modules/iconv_open (Depends-on): Add it.
47127         (Makefile.am): Remove the GPERF definition.
47128
47129 2007-11-11  Bruno Haible  <bruno@clisp.org>
47130
47131         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
47132         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
47133
47134 2007-11-11  Bruno Haible  <bruno@clisp.org>
47135
47136         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
47137         (usage): Remove function.
47138
47139 2007-11-11  Bruno Haible  <bruno@clisp.org>
47140
47141         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
47142         gl_FUNC_CEILF_LIBS.
47143         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
47144         gl_FUNC_CEIL_LIBS.
47145         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
47146         gl_FUNC_CEILL_LIBS.
47147         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
47148         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
47149         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
47150
47151 2007-11-11  Bruno Haible  <bruno@clisp.org>
47152
47153         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
47154         roundf were declared but do not exist on functions.
47155         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
47156         roundl were declared but do not exist on functions.
47157         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
47158         HAVE_FLOORL_AND_CEILL, respectively.
47159         Needed for Sun C on Solaris 10.
47160
47161 2007-11-11  Bruno Haible  <bruno@clisp.org>
47162
47163         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
47164         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
47165         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
47166         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
47167         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
47168         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47169         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
47170         HAVE_DECL_ROUNDF.
47171         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
47172         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
47173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
47174         of HAVE_DECL_ROUND*.
47175         * modules/math (Makefile.am): Update.
47176
47177 2007-11-10  Bruno Haible  <bruno@clisp.org>
47178
47179         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
47180         ptrdiff_t as m4/intl.m4.
47181
47182 2007-11-10  Jim Meyering  <meyering@redhat.com>
47183
47184         Avoid link failure for the argmatch test.
47185         * tests/test-argmatch.c (usage): Define function to avoid a link
47186         failure: argmatch_die requires a usage function.
47187
47188 2007-11-09  Bruno Haible  <bruno@clisp.org>
47189
47190         * doc/functions/snprintf.texi: Mention BeOS deficiency.
47191         * doc/functions/vsnprintf.texi: Likewise.
47192         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
47193         with a size argument < 2.
47194
47195 2007-11-09  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
47198         buffer. Fixes an inefficiency introduced on 2007-11-03.
47199
47200 2007-11-09  Bruno Haible  <bruno@clisp.org>
47201
47202         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
47203         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
47204
47205 2007-11-08  Jim Meyering  <meyering@redhat.com>
47206
47207         Change cache variable name prefix "jm_" to "gl_" everywhere.
47208         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
47209         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
47210         * m4/uptime.m4: s/gl_/jm_/
47211
47212 2007-11-07  Bruno Haible  <bruno@clisp.org>
47213
47214         Update to GNU gettext 0.17.
47215         * m4/intl.m4: Update to GNU gettext 0.17.
47216         * m4/po.m4: Likewise.
47217         * modules/gettext (Files): Remove m4/ulonglong.m4.
47218         (configure.ac): Require gettext infrastructure from version 0.17.
47219
47220 2007-11-06  Bruno Haible  <bruno@clisp.org>
47221
47222         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
47223         symbolic values are not defined in a public header.
47224         * lib/freadable.c (freadable) [QNX]: Likewise.
47225         * lib/freadahead.c (freadahead) [QNX]: Likewise.
47226         * lib/freading.c (freading) [QNX]: Likewise.
47227         * lib/fseterr.c (fseterr) [QNX]: Likewise.
47228         * lib/fwritable.c (fwritable) [QNX]: Likewise.
47229         * lib/fwriting.c (fwriting) [QNX]: Likewise.
47230         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
47231         Reported by Alain Magloire.
47232
47233         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
47234
47235 2007-11-05  Bruno Haible  <bruno@clisp.org>
47236
47237         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
47238         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
47239         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
47240         Reported by Eric Blake.
47241
47242 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47243             Bruno Haible  <bruno@clisp.org>
47244
47245         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
47246         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
47247         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
47248         (malloc): Undefine also before including <stdlib.h>.
47249         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
47250         Needed on OSF/1 4.0.
47251
47252 2007-11-05  Jim Meyering  <meyering@redhat.com>
47253
47254         git-version-gen: sync from coreutils.
47255         * build-aux/git-version-gen: Add comments.
47256         Change the first '-' to '.' in the snapshot version string,
47257         e.g., 6.9-377-08144 -> 6.9.377-08144
47258         Remove first parameter.
47259         Don't declare a version "-dirty" merely because a time
47260         stamp has changed.
47261
47262 2007-11-04  Bruno Haible  <bruno@clisp.org>
47263
47264         * lib/lock.h: Protect all macro definitions containing an 'if'
47265         statement through a "do { ... } while (0)".
47266         * lib/tls.h: Likewise.
47267
47268 2007-11-04  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
47271
47272 2007-11-04  Bruno Haible  <bruno@clisp.org>
47273
47274         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
47275         * modules/fprintf-posix (Depends-on): Add nocrash.
47276         * modules/snprintf-posix (Depends-on): Likewise.
47277         * modules/sprintf-posix (Depends-on): Likewise.
47278         * modules/vasnprintf-posix (Depends-on): Likewise.
47279         * modules/vasprintf-posix (Depends-on): Likewise.
47280         * modules/vfprintf-posix (Depends-on): Likewise.
47281         * modules/vsnprintf-posix (Depends-on): Likewise.
47282         * modules/vsprintf-posix (Depends-on): Likewise.
47283         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47284         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47285         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47286         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47287         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47288         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47289         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47290
47291 2007-11-04  Bruno Haible  <bruno@clisp.org>
47292
47293         * modules/nocrash: New file.
47294         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
47295         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
47296
47297 2007-11-04  Bruno Haible  <bruno@clisp.org>
47298
47299         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
47300         precision handling.
47301         * tests/test-vasprintf-posix.c (test_function): Likewise.
47302         * tests/test-snprintf-posix.h (test_function): Likewise.
47303         * tests/test-sprintf-posix.h (test_function): Likewise.
47304
47305         Fix *printf behaviour for large precisions on mingw and BeOS.
47306         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
47307         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
47308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
47309         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47311         gl_PRINTF_PRECISION and test its result. Invoke
47312         gl_PREREQ_VASNPRINTF_PRECISION.
47313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47314         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47320         * doc/functions/fprintf.texi: Update.
47321         * doc/functions/printf.texi: Update.
47322         * doc/functions/snprintf.texi: Update.
47323         * doc/functions/sprintf.texi: Update.
47324         * doc/functions/vfprintf.texi: Update.
47325         * doc/functions/vprintf.texi: Update.
47326         * doc/functions/vsnprintf.texi: Update.
47327         * doc/functions/vsprintf.texi: Update.
47328
47329 2007-11-04  Bruno Haible  <bruno@clisp.org>
47330
47331         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47332
47333 2007-11-04  Bruno Haible  <bruno@clisp.org>
47334
47335         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47336         Reported by Sylvain Beucler <beuc@gnu.org>.
47337
47338 2007-11-03  Bruno Haible  <bruno@clisp.org>
47339
47340         * tests/test-fprintf-posix2.sh: New file.
47341         * tests/test-fprintf-posix2.c: New file.
47342         * modules/fprintf-posix-tests (Files): Add them.
47343         (TESTS): Add test-fprintf-posix2.sh.
47344         (configure.ac): Check for getrlimit and setrlimit.
47345         (check_PROGRAMS): Add test-fprintf-posix2.
47346
47347         * tests/test-printf-posix2.sh: New file.
47348         * tests/test-printf-posix2.c: New file.
47349         * modules/printf-posix-tests (Files): Add them.
47350         (TESTS): Add test-printf-posix2.sh.
47351         (configure.ac): Check for getrlimit and setrlimit.
47352         (check_PROGRAMS): Add test-printf-posix2.
47353
47354         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47355         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47356         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47357         (decode_double): New function, copied from decode_long_double.
47358         (scale10_round_decimal_decoded): New function, extracted from
47359         scale10_round_decimal_long_double.
47360         (scale10_round_decimal_long_double): Use it.
47361         (scale10_round_decimal_double): New function.
47362         (floorlog10): New function.
47363         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47365         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47366         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47367         gl_PRINTF_ENOMEM and test its result. Invoke
47368         gl_PREREQ_VASNPRINTF_ENOMEM.
47369         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47370         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47372         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47373         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47375         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47376         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47377         * modules/snprintf-posix (Depends-on): Likewise.
47378         * modules/sprintf-posix (Depends-on): Likewise.
47379         * modules/vasnprintf-posix (Depends-on): Likewise.
47380         * modules/vasprintf-posix (Depends-on): Likewise.
47381         * modules/vfprintf-posix (Depends-on): Likewise.
47382         * modules/vsnprintf-posix (Depends-on): Likewise.
47383         * modules/vsprintf-posix (Depends-on): Likewise.
47384         * doc/functions/fprintf.texi: Update.
47385         * doc/functions/printf.texi: Update.
47386         * doc/functions/snprintf.texi: Update.
47387         * doc/functions/sprintf.texi: Update.
47388         * doc/functions/vfprintf.texi: Update.
47389         * doc/functions/vprintf.texi: Update.
47390         * doc/functions/vsnprintf.texi: Update.
47391         * doc/functions/vsprintf.texi: Update.
47392
47393 2007-11-03  Bruno Haible  <bruno@clisp.org>
47394
47395         * modules/frexp-nolibm-tests: New file.
47396
47397         * modules/frexp-nolibm: New file.
47398         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47399
47400 2007-11-03  Bruno Haible  <bruno@clisp.org>
47401
47402         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47403         value is C99 compliant.
47404         Needed for OSF/1 5.1.
47405
47406 2007-11-03  Bruno Haible  <bruno@clisp.org>
47407
47408         Fix out-of-memory handling of vasnprintf.
47409         * lib/printf-parse.c: Include <errno.h>.
47410         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47411         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47412         is already set.
47413
47414 2007-11-02  Eric Blake  <ebb9@byu.net>
47415
47416         Fix tests on cygwin.
47417         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47418
47419 2007-11-01  Bruno Haible  <bruno@clisp.org>
47420
47421         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47422         warning.
47423         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47424         needed for POSIX compatibility.
47425
47426 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47427
47428         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47429         for compatibility with GNU.
47430
47431 2007-11-01  Bruno Haible  <bruno@clisp.org>
47432
47433         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47434         (putenv): Renamed from rpl_putenv. Change argument type from
47435         'const char *' to 'char *'.
47436         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47437         of defining putenv in config.h, just set REPLACE_PUTENV.
47438         * modules/putenv (Depends-on): Add stdlib.
47439         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47440         (Include): Use <stdlib.h>.
47441         * lib/stdlib.in.h (putenv): New declaration.
47442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47443         REPLACE_PUTENV.
47444         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47445         REPLACE_PUTENV.
47446         Needed for MacOS X 10.5.0.
47447         Reported by Peter O'Gorman <peter@pogma.com>.
47448
47449 2007-11-01  Jim Meyering  <meyering@redhat.com>
47450
47451         Treat an empty date string exactly like "0".
47452         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47453         if the remaining date string (to be parsed) is empty, use "0".
47454         Reported by Mischa Molhoek and discussed in this thread:
47455         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47456
47457 2007-10-31  Bruno Haible  <bruno@clisp.org>
47458
47459         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47460         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47461         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47462         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47463         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47464         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47465
47466 2007-10-31  Bruno Haible  <bruno@clisp.org>
47467
47468         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47469         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47470         (AC_TYPE_LONG_LONG_INT): Use it.
47471         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47472         it as well.
47473         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47474         to m4/longlong.m4.
47475         * modules/stdint (Files): Remove m4/ulonglong.m4.
47476         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47477         m4/ulonglong.m4.
47478         * modules/strtoumax (Files): Likewise.
47479
47480 2007-10-30  Bruno Haible  <bruno@clisp.org>
47481
47482         * modules/xvasprintf-posix: New file.
47483         Suggested by Eric Blake.
47484
47485 2007-10-30  Bruno Haible  <bruno@clisp.org>
47486
47487         * modules/xprintf-posix-tests: New file.
47488         * tests/test-xprintf-posix.sh: New file.
47489         * tests/test-xprintf-posix.c: New file.
47490         * tests/test-xfprintf-posix.c: New file.
47491
47492         * modules/xprintf-posix: New file.
47493
47494 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47495
47496         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47497         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47498         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47499
47500 2007-10-29  Bruno Haible  <bruno@clisp.org>
47501
47502         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47503         contain the special marker '_cv_'.
47504         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47505         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47506         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47507         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47508         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47509         Reported by Ralf Wildenhues.
47510
47511 2007-10-29  Bruno Haible  <bruno@clisp.org>
47512
47513         * gnulib-tool (func_import): When --lgpl is not specified, set
47514         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47515         GPLv3.
47516         Reported by Simon Josefsson.
47517
47518 2007-10-28  Bruno Haible  <bruno@clisp.org>
47519
47520         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47521         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47522         HAVE_DECL_ISFINITE.
47523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47524         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47525         HAVE_DECL_ISFINITE.
47526
47527 2007-10-28  Bruno Haible  <bruno@clisp.org>
47528
47529         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47530         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47531
47532 2007-10-28  Bruno Haible  <bruno@clisp.org>
47533
47534         Fix link errors with Sun C 5.0 on Solaris 10.
47535         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47536         function is declared but not present in the compiler's libm.
47537         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47538         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47539         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47540         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47541         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47542         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47543         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47545         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47546         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47547         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47548         HAVE_DECL_FLOORL.
47549
47550 2007-10-28  Bruno Haible  <bruno@clisp.org>
47551
47552         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47553         gl_FUNC_FLOORL. Cache the result.
47554         (gl_FUNC_FLOORL): Use it.
47555         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47556         gl_FUNC_CEILL. Cache the result.
47557         (gl_FUNC_CEILL): Use it.
47558
47559         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47560         gl_FUNC_FLOOR. Cache the result.
47561         (gl_FUNC_FLOOR): Use it.
47562         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47563         gl_FUNC_CEIL. Cache the result.
47564         (gl_FUNC_CEIL): Use it.
47565
47566         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47567         gl_FUNC_FLOORF. Cache the result.
47568         (gl_FUNC_FLOORF): Use it.
47569         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47570         gl_FUNC_CEILF. Cache the result.
47571         (gl_FUNC_CEILF): Use it.
47572
47573 2007-10-28  Bruno Haible  <bruno@clisp.org>
47574
47575         * gnulib-tool: Allow specifying the LGPL version number through
47576         --lgpl=2 or --lgpl=3.
47577         (func_usage): Document --lgpl with argument.
47578         Handle --lgpl=... arguments.
47579         (func_import): Recognize also gl_LGPL calls with an argument. When
47580         --lgpl=2 is used and the module's license is just LGPL, report an
47581         error. Set sed_transform_lib_file according to the lgpl variable. In
47582         the generated files, use --lgpl or gl_LGPL invocations with argument,
47583         if necessary.
47584         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47585         an LGPv2+ license.
47586         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47587         gl_LGPL macro.
47588
47589 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47590             Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47593         (u16_uctomb_aux): Likewise.
47594         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47595         !HAVE_INLINE.
47596         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47597
47598 2007-10-28  Bruno Haible  <bruno@clisp.org>
47599
47600         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47601         Invoke AM_GETTEXT_OPTION if it exists.
47602         * modules/vasprintf: Likewise.
47603         * modules/verror: Likewise.
47604         * modules/xprintf: Likewise.
47605         * modules/xvasprintf: Likewise.
47606
47607 2007-10-27  Ben Pfaff  <blp@gnu.org>
47608
47609         * lib/math.in.h: Define isfinite macro and prototypes for
47610         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47611         implementations.
47612         * m4/math_h.m4: New substitutions for isfinite module.
47613         * lib/isfinite.c: New file.
47614         * m4/isfinite.m4: New file.
47615         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47616         * modules/isfinite: New file.
47617         * modules/isfinite-tests: New file.
47618         * tests/tests-isfinite.c: New file.
47619         * doc/functions/isfinite.texi: Mention isfinite module.
47620         * MODULES.html.sh: Mention new module.
47621
47622 2007-10-27  Ben Pfaff  <blp@gnu.org>
47623
47624         Ralf Wildenhues reported that Tru64 4.0D declares the round
47625         functions but does not have definitions.
47626         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47627         cannot be found in any library, set the output variable to
47628         "missing" instead of "".
47629         * m4/round.m4: Also use our substitute if we cannot find round in
47630         any library, even if it is declared.
47631         * m4/roundf.m4: Likewise for roundf.
47632         * m4/roundl.m4: Likewise for roundl.
47633         * lib/math.in.h: Undefine roundf, round, roundl before defining
47634         their replacements, to allow for hypothetical systems where these
47635         may be defined as macros but not available in libraries.
47636
47637 2007-10-27  Bruno Haible  <bruno@clisp.org>
47638
47639         * doc/gnulib.texi: Invoke @firstparagraphindent.
47640         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47641         changes in gnulib.
47642         (Source changes): New section.
47643
47644 2007-10-26  Bruno Haible  <bruno@clisp.org>
47645
47646         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47647         borrowed from autoconf.
47648
47649 2007-10-26  Bruno Haible  <bruno@clisp.org>
47650
47651         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47652         strerror returned the empty string. Needed on HP-UX 11.00.
47653
47654 2007-10-24  Micah Cowan  <micah@cowan.name>
47655
47656         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47657         * build-aux/bootstrap: Remove support for now-unnecessary option,
47658         --cvs-user, and envvars CVS_USER, CVS_RSH.
47659
47660 2007-10-24  Jim Meyering  <meyering@redhat.com>
47661
47662         Avoid diagnostics from sha1sum when there is no cached checksum.
47663         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47664         if the po.s1 file hasn't been created yet.
47665
47666         * build-aux/bootstrap: Sync from coreutils:
47667         2007-10-24  Jim Meyering  <meyering@redhat.com>
47668         Get gnulib from the git repository, not from an obsolete cvs one.
47669         * build-aux/bootstrap: Suggestion from Micah Cowan.
47670         2007-10-04  Jim Meyering  <jim@meyering.net>
47671         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47672         (update_po_files): Work also when there are no .po files in po/.
47673
47674 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47675
47676         * README: Append ".git" to git and cg examples.
47677         Problem reported by Benoit Sigoure.
47678
47679 2007-10-23  Micah Cowan  <micah@cowan.name>
47680
47681         * users.txt: Add wget.
47682
47683 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47684
47685         Fix linking of some unistdio tests on FreeBSD.
47686         * modules/unistdio/u16-vsnprintf-tests
47687         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47688         * modules/unistdio/u16-vsprintf-tests
47689         (test_u16_vsnprintf1_LDADD): Likewise.
47690         * modules/unistdio/u32-vsnprintf-tests
47691         (test_u32_vsnprintf1_LDADD): Likewise.
47692         * modules/unistdio/u32-vsprintf-tests
47693         (test_u32_vsprintf1_LDADD): Likewise.
47694         * modules/unistdio/u8-vsnprintf-tests
47695         (test_u8_vsnprintf1_LDADD): Likewise.
47696         * modules/unistdio/u8-vsprintf-tests
47697         (test_u8_vsprintf1_LDADD): Likewise.
47698         * modules/unistdio/ulc-vsnprintf-tests
47699         (test_ulc_vsnprintf1_LDADD): Likewise.
47700         * modules/unistdio/ulc-vsprintf-tests
47701         (test_ulc_vsprintf1_LDADD): Likewise.
47702
47703         Fix linking of some uniconv tests on FreeBSD.
47704         * modules/uniconv/u16-conv-from-enc-tests
47705         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47706         * modules/uniconv/u16-conv-to-enc-tests
47707         (test_u16_conv_to_enc_LDADD): Likewise.
47708         * modules/uniconv/u16-strconv-from-enc-tests
47709         (test_u16_strconv_from_enc_LDADD): Likewise.
47710         * modules/uniconv/u16-strconv-to-enc-tests
47711         (test_u16_strconv_to_enc_LDADD): Likewise.
47712         * modules/uniconv/u32-conv-from-enc-tests
47713         (test_u32_conv_from_enc_LDADD): Likewise.
47714         * modules/uniconv/u32-conv-to-enc-tests
47715         (test_u32_conv_to_enc_LDADD): Likewise.
47716         * modules/uniconv/u32-strconv-from-enc-tests
47717         (test_u32_strconv_from_enc_LDADD): Likewise.
47718         * modules/uniconv/u32-strconv-to-enc-tests
47719         (test_u32_strconv_to_enc_LDADD): Likewise.
47720         * modules/uniconv/u8-conv-from-enc-tests
47721         (test_u8_conv_from_enc_LDADD): Likewise.
47722         * modules/uniconv/u8-conv-to-enc-tests
47723         (test_u8_conv_to_enc_LDADD): Likewise.
47724         * modules/uniconv/u8-strconv-from-enc-tests
47725         (test_u8_strconv_from_enc_LDADD): Likewise.
47726         * modules/uniconv/u8-strconv-to-enc-tests
47727         (test_u8_strconv_to_enc_LDADD): Likewise.
47728
47729 2007-10-22  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47732         size.
47733
47734 2007-10-22  Eric Blake  <ebb9@byu.net>
47735
47736         Tweak x*printf documentation.
47737         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47738         variable name and comments.
47739         Suggested by Bruno Haible.
47740
47741 2007-10-22  Bruno Haible  <bruno@clisp.org>
47742
47743         * lib/acl.c (copy_acl): Fix file name in comment.
47744
47745 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47746
47747         Fix Tru64 problem with stdbool.h.
47748         * lib/stdbool.in.h (false, true):
47749         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47750         Don't declare as an enum in this situation; it runs afoul of Tru64.
47751         Problem reported by Steven M. Schweda in
47752         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47753
47754 2007-10-22  Eric Blake  <ebb9@byu.net>
47755
47756         Also wrap vf?printf.
47757         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47758         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47759         (xvprintf, xvfprintf): New functions.
47760
47761 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47762
47763         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47764         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47765
47766         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47767         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47768
47769 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47770
47771         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47772         by Bruno Haible.
47773
47774 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47775
47776         * lib/getloadavg.c
47777         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47778         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47779
47780         * tests/test-i-ring.c: Work for C89.
47781
47782 2007-10-22  Bruno Haible  <bruno@clisp.org>
47783
47784         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47785         -1u, in preprocessor expression, so that we don't test for the bug
47786         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47788
47789 2007-10-22  Eric Blake  <ebb9@byu.net>
47790
47791         * tests/test-yesno.sh: Silence stderr during test.
47792
47793 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47794
47795         * modules/crypto/gc-camellia: New file.
47796
47797         * m4/gc-camellia.m4: New file.
47798
47799         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47800
47801         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47802
47803 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47804
47805         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47806         --help to stdout.  Reported by sms@antinode.org (Steven
47807         M. Schweda).
47808
47809 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47810
47811         * users.txt: Fix link to libksba.
47812
47813 2007-10-21  Ben Pfaff  <blp@gnu.org>
47814
47815         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47816         round.c roundf implementation that depends on floorf and ceilf to
47817         be tested unconditionally.
47818
47819 2007-10-21  Ben Pfaff  <blp@gnu.org>
47820
47821         * m4/check-libm-func.m4: Removed.
47822         * m4/check-math-lib.m4: New file.
47823         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47824         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47825         definition and lack of AC_LIBOBJ([roundf]).
47826         * m4/roundl.m4: Ditto, and similarly for roundl.
47827         * modules/round: Reference new m4 file.
47828         * modules/roundf: Ditto.
47829         * modules/roundl: Ditto.
47830         * tests/test-round2.c (main): Use ROUND instead of round.
47831         Bug report from Bruno Haible.
47832
47833 2007-10-21  Bruno Haible  <bruno@clisp.org>
47834
47835         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47836         context.
47837
47838 2007-10-21  Bruno Haible  <bruno@clisp.org>
47839
47840         * tests/test-wcwidth.c (main): Allow negative result for some control
47841         characters.
47842
47843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47844         Needed on OSF/1 5.1.
47845
47846 2007-10-21  Bruno Haible  <bruno@clisp.org>
47847
47848         * tests/test-floorf1.c: Include isnanf.h.
47849         (main): Use isnanf() instead of isnan().
47850         * tests/test-ceilf1.c: Include isnanf.h.
47851         (main): Use isnanf() instead of isnan().
47852         * tests/test-truncf1.c: Include isnanf.h.
47853         (main): Use isnanf() instead of isnan().
47854         * tests/test-roundf1.c: Include isnanf.h.
47855         (main): Use isnanf() instead of isnan().
47856
47857 2007-10-21  Eric Blake  <ebb9@byu.net>
47858
47859         * users.txt: Update URL for m4.
47860
47861 2007-10-21  Bruno Haible  <bruno@clisp.org>
47862
47863         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47864
47865 2007-10-21  Bruno Haible  <bruno@clisp.org>
47866
47867         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47868         Git's management files if the CVS files are not present.
47869
47870 2007-10-20  Bruno Haible  <bruno@clisp.org>
47871
47872         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47873         gcc-3.4.x.
47874
47875 2007-10-20  Ben Pfaff  <blp@gnu.org>
47876
47877         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47878         implementations.
47879         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47880         * lib/round.c: New file.
47881         * lib/roundf.c: New file.
47882         * lib/roundl.c: New file.
47883         * m4/round.m4: New file.
47884         * m4/roundf.m4: New file.
47885         * m4/roundl.m4: New file.
47886         * m4/check-libm-func-m4: New file.
47887         * modules/math: Replace round, roundf, roundl related @VARS@ in
47888         math.in.h.
47889         * modules/round: New file.
47890         * modules/round-tests: New file.
47891         * modules/roundf: New file.
47892         * modules/roundf-tests: New file.
47893         * modules/roundl: New file.
47894         * modules/roundl-tests: New file.
47895         * tests/test-round1.c: New file.
47896         * tests/test-round2.c: New file.
47897         * tests/test-roundf1.c: New file.
47898         * tests/test-roundf2.c: New file.
47899         * tests/test-roundl.c: New file.
47900         * doc/functions/round.texi: Mention round module.
47901         * doc/functions/roundf.texi: Mention roundf module.
47902         * doc/functions/roundl.texi: Mention roundl module.
47903         * MODULES.html.sh: Mention new modules.
47904         Thanks to Bruno Haible for suggestions.
47905
47906 2007-10-20  Jim Meyering  <meyering@redhat.com>
47907
47908         * lib/xprintf.c: Include <config.h> unconditionally.
47909
47910         Change xprintf's license to GPL.
47911         * modules/xprintf (License): s/LGPL/GPL/, since this module
47912         depends on modules (exit and exitfail) which are GPL.
47913         Suggestion from Bruno Haible.
47914
47915         xprintf fixes.
47916         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47917         Use a clearer diagnostic.
47918         Patch from Bruno Haible.
47919
47920 2007-10-20  Bruno Haible  <bruno@clisp.org>
47921
47922         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47923         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47924         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47925
47926 2007-10-20  Bruno Haible  <bruno@clisp.org>
47927
47928         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47929         precision in the comparison result > x - 1 or similar.
47930         * tests/test-ceilf2.c (correct_result_p): Likewise.
47931         * tests/test-truncf2.c (correct_result_p): Likewise.
47932         * tests/test-trunc2.c (correct_result_p): Likewise.
47933         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47934
47935 2007-10-20  Bruno Haible  <bruno@clisp.org>
47936
47937         * modules/ceil: New file.
47938         * m4/ceil.m4: New file.
47939         * doc/functions/ceil.texi: Mention the 'ceil' module.
47940
47941 2007-10-20  Bruno Haible  <bruno@clisp.org>
47942
47943         * modules/floor: New file.
47944         * m4/floor.m4: New file.
47945         * doc/functions/floor.texi: Mention the 'floor' module.
47946
47947 2007-10-20  Bruno Haible  <bruno@clisp.org>
47948
47949         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47950         of %a.
47951         * modules/floorf-tests (Depends-on): Likewise.
47952         * modules/truncf-tests (Depends-on): Likewise.
47953         * modules/trunc-tests (Depends-on): Likewise.
47954         Reported by Ben Pfaff.
47955
47956 2007-10-19  Jim Meyering  <meyering@redhat.com>
47957
47958         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47959         Don't bother testing specific errno values.  Just test ferror.
47960
47961         New module: xprintf
47962         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47963
47964 2007-10-19  Bruno Haible  <bruno@clisp.org>
47965
47966         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47967         syntax.
47968         * modules/javaexec (Makefile.am): Likewise.
47969         * modules/relocatable-prog (Makefile.am): Likewise.
47970         Suggested by Jim Meyering.
47971
47972 2007-10-18  Bruno Haible  <bruno@clisp.org>
47973
47974         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47975         Reported by Jim Meyering.
47976
47977 2007-10-18  Eric Blake  <ebb9@byu.net>
47978
47979         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47980
47981 2007-10-18  Bruno Haible  <bruno@clisp.org>
47982
47983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47984         the format string into writable memory. Needed in Fortify conditions.
47985
47986 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47987             Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47990         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47991         * modules/trim (Depends-on): Add mbchar.
47992         (configure.ac): Add gl_FUNC_MBRTOWC.
47993         (Makefile.am): Augment lib_SOURCES.
47994
47995 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47996
47997         Modify glob.c to use fstatat and dirfd, to simplify it.
47998         Suggested by Eric Blake.
47999         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
48000         Don't include <stdbool.h>; not used.
48001         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
48002         (link_exists_p): Simplify implementation, since we can now assume
48003         dirfd and fstatat.
48004         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
48005
48006 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48007
48008         * gnulib-tool (func_get_dependencies): Fix sed script to
48009         match only tests.
48010
48011 2007-10-17  Bruno Haible  <bruno@clisp.org>
48012
48013         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
48014         allow locale names without encoding suffix.
48015         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48016         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48017
48018 2007-10-16  Bruno Haible  <bruno@clisp.org>
48019
48020         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
48021         * lib/getgroups.c (getgroups): Likewise.
48022         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
48023
48024 2007-10-16  Bruno Haible  <bruno@clisp.org>
48025
48026         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
48027         * modules/malloc-posix (License): Likewise.
48028         * modules/realloc-posix (License): Likewise.
48029         * modules/calloc-posix (License): Likewise.
48030         * modules/intprops (License): Change from GPL to LGPL, with
48031         Paul Eggert's approval.
48032
48033 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48034
48035         Merge glibc changes into lib/glob.c.
48036
48037         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
48038         2007-10-15 04:59:03 UTC.  Here are the changes:
48039
48040         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
48041
48042         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
48043
48044         * lib/glob.c: Add some branch prediction throughout.
48045
48046         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
48047
48048         [BZ #5103]
48049         * lib/glob.c (glob): Recognize patterns starting \/.
48050
48051         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
48052
48053         [BZ #3996]
48054         * lib/glob.c (attribute_hidden): Define if not defined.
48055         (glob): Unescape dirname, filename or username when needed and not
48056         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
48057         is NULL.  Handle unescaped [ in pattern without closing ].
48058         Don't pass GLOB_CHECK down to recursive glob for directories.
48059         (__glob_pattern_type): New function.
48060         (__glob_pattern_p): Implement using __glob_pattern_type.
48061         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
48062         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
48063         Remove unreachable code.
48064
48065         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
48066
48067         * lib/glob.c (glob_in_dir): Add some comments and asserts to
48068         explain why there are no leaks.
48069
48070         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
48071
48072         [BZ #3253]
48073         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
48074         time, rather allocate increasingly bigger arrays of pointers, if
48075         possible with alloca, if too large with malloc.
48076
48077 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48078
48079         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
48080         Problem reported by H.Merijn Brand in
48081         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
48082         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
48083         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48084
48085 2007-10-15  Bruno Haible  <bruno@clisp.org>
48086
48087         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
48088         with explicit rpl_ prefix.
48089         * lib/fopen.c (fopen): Likewise.
48090         * lib/freopen.c (freopen): Likewise.
48091         * lib/iconv.c (iconv): Likewise.
48092         * lib/iconv_close.c (iconv_close): Likewise.
48093
48094 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48095
48096         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
48097
48098 2007-10-15  Bruno Haible  <bruno@clisp.org>
48099
48100         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
48101         <stddef.h> instead of <stdlib.h> since we only need NULL.
48102         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48103
48104 2007-10-15  Bruno Haible  <bruno@clisp.org>
48105
48106         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
48107         Replace paragraph talking about LIBOBJS.
48108         Reported by Colin Watson <cjwatson@debian.org>.
48109
48110 2007-10-15  Bruno Haible  <bruno@clisp.org>
48111
48112         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
48113         <stdlib.h> before using NULL.
48114
48115 2007-10-15  Simon Josefsson  <simon@josefsson.org>
48116
48117         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
48118         Reported by Albert Chin <china@thewrittenword.com>.
48119
48120 2007-10-14  Bruno Haible  <bruno@clisp.org>
48121
48122         * modules/iconv_open-utf-tests: New file.
48123         * tests/test-iconv-utf.c: New file.
48124
48125         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
48126         * modules/iconv_open-utf: New file.
48127         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
48128         (iconv, iconv_close): New declarations.
48129         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
48130         be defined.
48131         (iconv_open): Add special handling of conversion between UTF-8 and
48132         UTF-{16,32}{BE,LE}.
48133         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
48134         * lib/iconv_close.c: New file.
48135         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
48136         gl_FUNC_ICONV_OPEN.
48137         (gl_FUNC_ICONV_OPEN): Use it.
48138         (gl_FUNC_ICONV_OPEN_UTF): New macro.
48139         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
48140         and REPLACE_ICONV_UTF.
48141         * modules/iconv_open (Depends-on): Add c-strcase.
48142         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
48143         ICONV_CONST.
48144         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
48145
48146 2007-10-13  Albert Chin  <china@thewrittenword.com>
48147             Bruno Haible  <bruno@clisp.org>
48148
48149         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
48150         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
48151
48152 2007-10-13  Bruno Haible  <bruno@clisp.org>
48153
48154         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
48155         defined, use the ISO C99 inline semantics.
48156         * lib/argp.h (ARGP_EI): Likewise.
48157
48158 2007-10-13  Bruno Haible  <bruno@clisp.org>
48159
48160         Handle 'inline' change in gcc 4.3.0.
48161         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
48162         argp_fmtstream_write, argp_fmtstream_set_lmargin,
48163         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
48164         argp_fmtstream_point): Disable 'extern' declaration if the function
48165         definition is going to be provided inline.
48166         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
48167         semantics, not the ISO C99 inline semantics.
48168         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
48169         'extern' declaration if the function definition is going to be provided
48170         inline.
48171         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
48172         the GNU C inline semantics, not the ISO C99 inline semantics. With
48173         GCC 4.2, avoid a warning.
48174
48175 2007-10-13  Bruno Haible  <bruno@clisp.org>
48176
48177         * lib/freading.h (freading): Enable the use of __freading for
48178         glibc >= 2.7.
48179         * lib/freading.c (freading): Likewise.
48180
48181 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48182
48183         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
48184         "warning: C99 inline functions are not supported; using GNU89".
48185
48186 2007-10-12  Bruno Haible  <bruno@clisp.org>
48187
48188         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
48189         of 2.
48190         * tests/test-ceilf2.c: New file.
48191         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
48192
48193         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
48194         * modules/ceilf-tests: Update.
48195
48196 2007-10-12  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
48199         of 2.
48200         * tests/test-floorf2.c: New file.
48201         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
48202
48203         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
48204         * modules/floorf-tests: Update.
48205
48206 2007-10-12  Bruno Haible  <bruno@clisp.org>
48207
48208         * tests/test-trunc2.c: New file.
48209         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
48210
48211         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
48212         * modules/trunc-tests: Update.
48213
48214 2007-10-12  Bruno Haible  <bruno@clisp.org>
48215
48216         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
48217         of 2.
48218         * tests/test-truncf2.c: New file.
48219         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
48220
48221         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
48222         * modules/truncf-tests: Update.
48223
48224 2007-10-11  Eric Blake  <ebb9@byu.net>
48225
48226         Don't claim strerror is broken on Interix.
48227         * doc/functions/strerror.texi (strerror): Known broken systems are
48228         now Solaris 8, and not Interix.
48229         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
48230         Interix on cross-compile.
48231         Reported by Martin Koeppe in
48232         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
48233
48234 2007-10-11  Bruno Haible  <bruno@clisp.org>
48235
48236         * modules/i-ring-tests: New file.
48237         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
48238         instead of assert.
48239
48240 2007-10-11  Bruno Haible  <bruno@clisp.org>
48241
48242         * modules/filenamecat-tests: New file.
48243         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
48244         * lib/filenamecat.c: Remove test code.
48245
48246 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48247
48248         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
48249
48250         * lib/strerror.c: Include <string.h> always, to test interface,
48251         and to remove the need for the dummy.
48252         Include intprops.h to compute width instead of doing it ourselves
48253         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
48254         (strerror): Define it to return NULL if there's no system strerror.
48255         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48256         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
48257         ancient pre-strerror Unix systems well any more.  Saying "unknown
48258         system error" is enough.
48259         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
48260         simpler strerror.c implementation.
48261         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
48262         Simplify the tests to reflect the simpler strerror implementation.
48263         * modules/strerror (Depends-on): Add intprops.
48264
48265 2007-10-09  Eric Blake  <ebb9@byu.net>
48266
48267         Silence test-fpending.
48268         * modules/fpending-tests (Files): Add wrapper script.
48269         * tests/test-fpending.sh: New file.
48270
48271 2007-10-09  Bruno Haible  <bruno@clisp.org>
48272
48273         * MODULES.html.sh (func_module): Don't create a hyperlink for
48274         function names like 'printf_frexp'.
48275         (Misc): Add crc, memxor.
48276         (Characteristics of floating types): New section.
48277         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
48278         isnanf-nolibm, signbit, trunc, truncf, truncl.
48279         (Enhancements for ISO C 99 functions): New subsection Input/output.
48280         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
48281         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
48282         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
48283         (Compatibility checks for POSIX:2001 functions): Add clock-time.
48284         (Enhancements for POSIX:2001 functions): Add chdir-long.
48285         (File system functions): Add areadlink, chdir-safer, read-file.
48286         Remove cycle-check.
48287         (File system as inode set): New section.
48288         (Date and time): Add gethrxtime.
48289         (Multithreading): Add openmp.
48290         (Internationalization functions): Add localename.
48291         (Unicode string functions): Add unistr/u*-mbsnlen.
48292         (Support for maintaining and releasing projects): Add git-version-gen.
48293         (Lone files): Remove directories.
48294
48295 2007-10-08  Ben Pfaff  <blp@gnu.org>
48296
48297         * lib/xmalloca.h: Fix typo in comment.
48298
48299 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48300
48301         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
48302         when avoiding problems with integer overflow.  Use a portable test
48303         instead.
48304
48305 2007-10-08  Simon Josefsson  <simon@josefsson.org>
48306
48307         * modules/dummy (License): Change to LGPLv2+.
48308         * modules/float (License): Likewise
48309         * modules/realloc (License): Likewise
48310         * modules/stdlib (License): Likewise
48311
48312 2007-10-07  Bruno Haible  <bruno@clisp.org>
48313
48314         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
48315         * floor.c (TWO_MANT_DIG): Likewise.
48316         * ceil.c (TWO_MANT_DIG): Likewise.
48317         Reported by Ben Pfaff.
48318
48319 2007-10-07  Bruno Haible  <bruno@clisp.org>
48320
48321         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
48322         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
48323         * lib/frexp.c (FUNC): Likewise.
48324         * lib/printf-frexp.h (printf_frexp): Likewise.
48325         * lib/printf-frexpl.h (printf_frexpl): Likewise.
48326         * lib/printf-frexp.c (FUNC): Likewise.
48327         Suggested by Jim Meyering.
48328
48329 2007-10-07  Jim Meyering  <meyering@redhat.com>
48330
48331         Make xnanosleep's integer overflow test more robust.
48332         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48333         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48334
48335 2007-10-07  Bruno Haible  <bruno@clisp.org>
48336
48337         * NEWS: Mention the license change.
48338
48339         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48340         abbreviations in the modules files.
48341
48342         Change copyright notice from GPLv2+ to GPLv3+.
48343         * README: Change copyright notice.
48344         * MODULES.html.sh: Likewise.
48345         * build-aux/bootstrap.conf: Likewise.
48346         * build-aux/config.libpath: Likewise.
48347         * build-aux/csharpcomp.sh.in: Likewise.
48348         * build-aux/csharpexec.sh.in: Likewise.
48349         * build-aux/install-reloc: Likewise.
48350         * build-aux/javacomp.sh.in: Likewise.
48351         * build-aux/javaexec.sh.in: Likewise.
48352         * build-aux/ldd.sh.in: Likewise.
48353         * build-aux/reloc-ldflags: Likewise.
48354         * build-aux/relocatable.sh.in: Likewise.
48355         * build-aux/x-to-1.in: Likewise.
48356         * check-module: Likewise.
48357         * config/srclistvars.sh: Likewise.
48358         * gnulib-tool: Likewise.
48359         * lib/acl-internal.h: Likewise.
48360         * lib/acl.c: Likewise.
48361         * lib/acl.h: Likewise.
48362         * lib/acl_entries.c: Likewise.
48363         * lib/areadlink-with-size.c: Likewise.
48364         * lib/areadlink.c: Likewise.
48365         * lib/areadlink.h: Likewise.
48366         * lib/argmatch.c: Likewise.
48367         * lib/argmatch.h: Likewise.
48368         * lib/argp-ba.c: Likewise.
48369         * lib/argp-eexst.c: Likewise.
48370         * lib/argp-fmtstream.c: Likewise.
48371         * lib/argp-fmtstream.h: Likewise.
48372         * lib/argp-fs-xinl.c: Likewise.
48373         * lib/argp-help.c: Likewise.
48374         * lib/argp-namefrob.h: Likewise.
48375         * lib/argp-parse.c: Likewise.
48376         * lib/argp-pin.c: Likewise.
48377         * lib/argp-pv.c: Likewise.
48378         * lib/argp-pvh.c: Likewise.
48379         * lib/argp-xinl.c: Likewise.
48380         * lib/argp.h: Likewise.
48381         * lib/at-func.c: Likewise.
48382         * lib/atanl.c: Likewise.
48383         * lib/backupfile.c: Likewise.
48384         * lib/backupfile.h: Likewise.
48385         * lib/basename.c: Likewise.
48386         * lib/binary-io.h: Likewise.
48387         * lib/byteswap.in.h: Likewise.
48388         * lib/c-stack.c: Likewise.
48389         * lib/c-stack.h: Likewise.
48390         * lib/c-strcasestr.c: Likewise.
48391         * lib/c-strcasestr.h: Likewise.
48392         * lib/c-strstr.c: Likewise.
48393         * lib/c-strstr.h: Likewise.
48394         * lib/c-strtod.c: Likewise.
48395         * lib/calloc.c: Likewise.
48396         * lib/canon-host.c: Likewise.
48397         * lib/canon-host.h: Likewise.
48398         * lib/canonicalize-lgpl.c: Likewise.
48399         * lib/canonicalize.c: Likewise.
48400         * lib/canonicalize.h: Likewise.
48401         * lib/ceil.c: Likewise.
48402         * lib/ceilf.c: Likewise.
48403         * lib/ceill.c: Likewise.
48404         * lib/chdir-long.c: Likewise.
48405         * lib/chdir-long.h: Likewise.
48406         * lib/chdir-safer.c: Likewise.
48407         * lib/chdir-safer.h: Likewise.
48408         * lib/chown.c: Likewise.
48409         * lib/classpath.c: Likewise.
48410         * lib/classpath.h: Likewise.
48411         * lib/clean-temp.c: Likewise.
48412         * lib/clean-temp.h: Likewise.
48413         * lib/cloexec.c: Likewise.
48414         * lib/close-stream.c: Likewise.
48415         * lib/closein.c: Likewise.
48416         * lib/closein.h: Likewise.
48417         * lib/closeout.c: Likewise.
48418         * lib/closeout.h: Likewise.
48419         * lib/concat-filename.c: Likewise.
48420         * lib/copy-file.c: Likewise.
48421         * lib/copy-file.h: Likewise.
48422         * lib/count-one-bits.h: Likewise.
48423         * lib/crc.c: Likewise.
48424         * lib/crc.h: Likewise.
48425         * lib/creat-safer.c: Likewise.
48426         * lib/csharpcomp.c: Likewise.
48427         * lib/csharpcomp.h: Likewise.
48428         * lib/csharpexec.c: Likewise.
48429         * lib/csharpexec.h: Likewise.
48430         * lib/cycle-check.c: Likewise.
48431         * lib/cycle-check.h: Likewise.
48432         * lib/diacrit.c: Likewise.
48433         * lib/diacrit.h: Likewise.
48434         * lib/diffseq.h: Likewise.
48435         * lib/dirchownmod.c: Likewise.
48436         * lib/dirent.in.h: Likewise.
48437         * lib/dirfd.c: Likewise.
48438         * lib/dirfd.h: Likewise.
48439         * lib/dirname.c: Likewise.
48440         * lib/dirname.h: Likewise.
48441         * lib/dummy.c: Likewise.
48442         * lib/dup-safer.c: Likewise.
48443         * lib/dup2.c: Likewise.
48444         * lib/eealloc.h: Likewise.
48445         * lib/error.c: Likewise.
48446         * lib/error.h: Likewise.
48447         * lib/euidaccess.c: Likewise.
48448         * lib/exclude.c: Likewise.
48449         * lib/exclude.h: Likewise.
48450         * lib/execute.c: Likewise.
48451         * lib/execute.h: Likewise.
48452         * lib/exitfail.c: Likewise.
48453         * lib/exitfail.h: Likewise.
48454         * lib/expl.c: Likewise.
48455         * lib/fatal-signal.c: Likewise.
48456         * lib/fatal-signal.h: Likewise.
48457         * lib/fbufmode.c: Likewise.
48458         * lib/fbufmode.h: Likewise.
48459         * lib/fchdir.c: Likewise.
48460         * lib/fchmodat.c: Likewise.
48461         * lib/fchownat.c: Likewise.
48462         * lib/fcntl--.h: Likewise.
48463         * lib/fcntl-safer.h: Likewise.
48464         * lib/fcntl.in.h: Likewise.
48465         * lib/fd-safer.c: Likewise.
48466         * lib/fflush.c: Likewise.
48467         * lib/file-has-acl.c: Likewise.
48468         * lib/file-set.c: Likewise.
48469         * lib/file-type.c: Likewise.
48470         * lib/file-type.h: Likewise.
48471         * lib/fileblocks.c: Likewise.
48472         * lib/filemode.c: Likewise.
48473         * lib/filemode.h: Likewise.
48474         * lib/filename.h: Likewise.
48475         * lib/filenamecat.c: Likewise.
48476         * lib/filenamecat.h: Likewise.
48477         * lib/findprog.c: Likewise.
48478         * lib/findprog.h: Likewise.
48479         * lib/float.in.h: Likewise.
48480         * lib/floor.c: Likewise.
48481         * lib/floorf.c: Likewise.
48482         * lib/floorl.c: Likewise.
48483         * lib/fopen-safer.c: Likewise.
48484         * lib/fopen.c: Likewise.
48485         * lib/fpending.c: Likewise.
48486         * lib/fpending.h: Likewise.
48487         * lib/fprintf.c: Likewise.
48488         * lib/fprintftime.h: Likewise.
48489         * lib/fpucw.h: Likewise.
48490         * lib/fpurge.c: Likewise.
48491         * lib/fpurge.h: Likewise.
48492         * lib/freadable.c: Likewise.
48493         * lib/freadable.h: Likewise.
48494         * lib/freadahead.c: Likewise.
48495         * lib/freadahead.h: Likewise.
48496         * lib/freading.c: Likewise.
48497         * lib/freading.h: Likewise.
48498         * lib/free.c: Likewise.
48499         * lib/freopen.c: Likewise.
48500         * lib/frexp.c: Likewise.
48501         * lib/frexpl.c: Likewise.
48502         * lib/fseek.c: Likewise.
48503         * lib/fseterr.c: Likewise.
48504         * lib/fseterr.h: Likewise.
48505         * lib/fstatat.c: Likewise.
48506         * lib/fstrcmp.c: Likewise.
48507         * lib/fstrcmp.h: Likewise.
48508         * lib/fsusage.c: Likewise.
48509         * lib/fsusage.h: Likewise.
48510         * lib/ftell.c: Likewise.
48511         * lib/ftello.c: Likewise.
48512         * lib/fts-cycle.c: Likewise.
48513         * lib/fts.c: Likewise.
48514         * lib/fts_.h: Likewise.
48515         * lib/full-read.c: Likewise.
48516         * lib/full-read.h: Likewise.
48517         * lib/full-write.c: Likewise.
48518         * lib/full-write.h: Likewise.
48519         * lib/fwritable.c: Likewise.
48520         * lib/fwritable.h: Likewise.
48521         * lib/fwriteerror.c: Likewise.
48522         * lib/fwriteerror.h: Likewise.
48523         * lib/fwriting.c: Likewise.
48524         * lib/fwriting.h: Likewise.
48525         * lib/gcd.c: Likewise.
48526         * lib/gcd.h: Likewise.
48527         * lib/getcwd.c: Likewise.
48528         * lib/getdate.h: Likewise.
48529         * lib/getdate.y: Likewise.
48530         * lib/getdomainname.c: Likewise.
48531         * lib/getdomainname.h: Likewise.
48532         * lib/getgroups.c: Likewise.
48533         * lib/gethostname.c: Likewise.
48534         * lib/gethrxtime.c: Likewise.
48535         * lib/gethrxtime.h: Likewise.
48536         * lib/getloadavg.c: Likewise.
48537         * lib/getndelim2.c: Likewise.
48538         * lib/getndelim2.h: Likewise.
48539         * lib/getnline.c: Likewise.
48540         * lib/getnline.h: Likewise.
48541         * lib/getopt.c: Likewise.
48542         * lib/getopt.in.h: Likewise.
48543         * lib/getopt1.c: Likewise.
48544         * lib/getopt_int.h: Likewise.
48545         * lib/getpagesize.h: Likewise.
48546         * lib/getsubopt.c: Likewise.
48547         * lib/gettime.c: Likewise.
48548         * lib/getugroups.c: Likewise.
48549         * lib/getugroups.h: Likewise.
48550         * lib/getusershell.c: Likewise.
48551         * lib/gl_anyavltree_list1.h: Likewise.
48552         * lib/gl_anyavltree_list2.h: Likewise.
48553         * lib/gl_anyhash_list1.h: Likewise.
48554         * lib/gl_anyhash_list2.h: Likewise.
48555         * lib/gl_anylinked_list1.h: Likewise.
48556         * lib/gl_anylinked_list2.h: Likewise.
48557         * lib/gl_anyrbtree_list1.h: Likewise.
48558         * lib/gl_anyrbtree_list2.h: Likewise.
48559         * lib/gl_anytree_list1.h: Likewise.
48560         * lib/gl_anytree_list2.h: Likewise.
48561         * lib/gl_anytree_oset.h: Likewise.
48562         * lib/gl_anytreehash_list1.h: Likewise.
48563         * lib/gl_anytreehash_list2.h: Likewise.
48564         * lib/gl_array_list.c: Likewise.
48565         * lib/gl_array_list.h: Likewise.
48566         * lib/gl_array_oset.c: Likewise.
48567         * lib/gl_array_oset.h: Likewise.
48568         * lib/gl_avltree_list.c: Likewise.
48569         * lib/gl_avltree_list.h: Likewise.
48570         * lib/gl_avltree_oset.c: Likewise.
48571         * lib/gl_avltree_oset.h: Likewise.
48572         * lib/gl_avltreehash_list.c: Likewise.
48573         * lib/gl_avltreehash_list.h: Likewise.
48574         * lib/gl_carray_list.c: Likewise.
48575         * lib/gl_carray_list.h: Likewise.
48576         * lib/gl_linked_list.c: Likewise.
48577         * lib/gl_linked_list.h: Likewise.
48578         * lib/gl_linkedhash_list.c: Likewise.
48579         * lib/gl_linkedhash_list.h: Likewise.
48580         * lib/gl_list.c: Likewise.
48581         * lib/gl_list.h: Likewise.
48582         * lib/gl_oset.c: Likewise.
48583         * lib/gl_oset.h: Likewise.
48584         * lib/gl_rbtree_list.c: Likewise.
48585         * lib/gl_rbtree_list.h: Likewise.
48586         * lib/gl_rbtree_oset.c: Likewise.
48587         * lib/gl_rbtree_oset.h: Likewise.
48588         * lib/gl_rbtreehash_list.c: Likewise.
48589         * lib/gl_rbtreehash_list.h: Likewise.
48590         * lib/gl_sublist.c: Likewise.
48591         * lib/gl_sublist.h: Likewise.
48592         * lib/group-member.c: Likewise.
48593         * lib/group-member.h: Likewise.
48594         * lib/hard-locale.c: Likewise.
48595         * lib/hard-locale.h: Likewise.
48596         * lib/hash-pjw.c: Likewise.
48597         * lib/hash-pjw.h: Likewise.
48598         * lib/hash-triple.c: Likewise.
48599         * lib/hash.c: Likewise.
48600         * lib/hash.h: Likewise.
48601         * lib/human.c: Likewise.
48602         * lib/human.h: Likewise.
48603         * lib/i-ring.c: Likewise.
48604         * lib/i-ring.h: Likewise.
48605         * lib/idcache.c: Likewise.
48606         * lib/imaxabs.c: Likewise.
48607         * lib/imaxdiv.c: Likewise.
48608         * lib/inet_pton.c: Likewise.
48609         * lib/inet_pton.h: Likewise.
48610         * lib/intprops.h: Likewise.
48611         * lib/inttostr.c: Likewise.
48612         * lib/inttostr.h: Likewise.
48613         * lib/inttypes.in.h: Likewise.
48614         * lib/isapipe.c: Likewise.
48615         * lib/isdir.c: Likewise.
48616         * lib/isnan.c: Likewise.
48617         * lib/isnan.h: Likewise.
48618         * lib/isnanf.c: Likewise.
48619         * lib/isnanf.h: Likewise.
48620         * lib/isnanl-nolibm.h: Likewise.
48621         * lib/isnanl.c: Likewise.
48622         * lib/isnanl.h: Likewise.
48623         * lib/javacomp.c: Likewise.
48624         * lib/javacomp.h: Likewise.
48625         * lib/javaexec.c: Likewise.
48626         * lib/javaexec.h: Likewise.
48627         * lib/javaversion.c: Likewise.
48628         * lib/javaversion.h: Likewise.
48629         * lib/javaversion.java: Likewise.
48630         * lib/lbrkprop.h: Likewise.
48631         * lib/lchmod.h: Likewise.
48632         * lib/lchown.c: Likewise.
48633         * lib/ldexpl.c: Likewise.
48634         * lib/linebreak.c: Likewise.
48635         * lib/linebreak.h: Likewise.
48636         * lib/linebuffer.c: Likewise.
48637         * lib/linebuffer.h: Likewise.
48638         * lib/locale.in.h: Likewise.
48639         * lib/logl.c: Likewise.
48640         * lib/long-options.c: Likewise.
48641         * lib/long-options.h: Likewise.
48642         * lib/lstat.c: Likewise.
48643         * lib/lstat.h: Likewise.
48644         * lib/math.in.h: Likewise.
48645         * lib/mbchar.c: Likewise.
48646         * lib/mbchar.h: Likewise.
48647         * lib/mbfile.h: Likewise.
48648         * lib/mbiter.h: Likewise.
48649         * lib/mbscasecmp.c: Likewise.
48650         * lib/mbscasestr.c: Likewise.
48651         * lib/mbschr.c: Likewise.
48652         * lib/mbscspn.c: Likewise.
48653         * lib/mbslen.c: Likewise.
48654         * lib/mbsncasecmp.c: Likewise.
48655         * lib/mbsnlen.c: Likewise.
48656         * lib/mbspbrk.c: Likewise.
48657         * lib/mbspcasecmp.c: Likewise.
48658         * lib/mbsrchr.c: Likewise.
48659         * lib/mbssep.c: Likewise.
48660         * lib/mbsspn.c: Likewise.
48661         * lib/mbsstr.c: Likewise.
48662         * lib/mbstok_r.c: Likewise.
48663         * lib/mbswidth.c: Likewise.
48664         * lib/mbswidth.h: Likewise.
48665         * lib/mbuiter.h: Likewise.
48666         * lib/memcasecmp.c: Likewise.
48667         * lib/memcasecmp.h: Likewise.
48668         * lib/memchr.c: Likewise.
48669         * lib/memcmp.c: Likewise.
48670         * lib/memcoll.c: Likewise.
48671         * lib/memcoll.h: Likewise.
48672         * lib/memcpy.c: Likewise.
48673         * lib/memrchr.c: Likewise.
48674         * lib/mkancesdirs.c: Likewise.
48675         * lib/mkdir-p.c: Likewise.
48676         * lib/mkdir-p.h: Likewise.
48677         * lib/mkdir.c: Likewise.
48678         * lib/mkdirat.c: Likewise.
48679         * lib/mkdtemp.c: Likewise.
48680         * lib/mkstemp-safer.c: Likewise.
48681         * lib/mkstemp.c: Likewise.
48682         * lib/modechange.c: Likewise.
48683         * lib/modechange.h: Likewise.
48684         * lib/mountlist.c: Likewise.
48685         * lib/mountlist.h: Likewise.
48686         * lib/mpsort.c: Likewise.
48687         * lib/nanosleep.c: Likewise.
48688         * lib/obstack.c: Likewise.
48689         * lib/obstack.h: Likewise.
48690         * lib/open-safer.c: Likewise.
48691         * lib/open.c: Likewise.
48692         * lib/openat-die.c: Likewise.
48693         * lib/openat-priv.h: Likewise.
48694         * lib/openat-proc.c: Likewise.
48695         * lib/openat.c: Likewise.
48696         * lib/openat.h: Likewise.
48697         * lib/pagealign_alloc.c: Likewise.
48698         * lib/pagealign_alloc.h: Likewise.
48699         * lib/physmem.c: Likewise.
48700         * lib/physmem.h: Likewise.
48701         * lib/pipe-safer.c: Likewise.
48702         * lib/pipe.c: Likewise.
48703         * lib/pipe.h: Likewise.
48704         * lib/posixtm.c: Likewise.
48705         * lib/posixtm.h: Likewise.
48706         * lib/posixver.c: Likewise.
48707         * lib/printf-frexp.c: Likewise.
48708         * lib/printf-frexp.h: Likewise.
48709         * lib/printf-frexpl.c: Likewise.
48710         * lib/printf-frexpl.h: Likewise.
48711         * lib/printf.c: Likewise.
48712         * lib/progname.c: Likewise.
48713         * lib/progname.h: Likewise.
48714         * lib/progreloc.c: Likewise.
48715         * lib/putenv.c: Likewise.
48716         * lib/quote.c: Likewise.
48717         * lib/quote.h: Likewise.
48718         * lib/quotearg.c: Likewise.
48719         * lib/quotearg.h: Likewise.
48720         * lib/raise.c: Likewise.
48721         * lib/readline.c: Likewise.
48722         * lib/readline.h: Likewise.
48723         * lib/readlink.c: Likewise.
48724         * lib/readtokens.c: Likewise.
48725         * lib/readtokens.h: Likewise.
48726         * lib/readtokens0.c: Likewise.
48727         * lib/readtokens0.h: Likewise.
48728         * lib/readutmp.c: Likewise.
48729         * lib/readutmp.h: Likewise.
48730         * lib/realloc.c: Likewise.
48731         * lib/relocwrapper.c: Likewise.
48732         * lib/rename-dest-slash.c: Likewise.
48733         * lib/rename.c: Likewise.
48734         * lib/rmdir.c: Likewise.
48735         * lib/rpmatch.c: Likewise.
48736         * lib/safe-read.c: Likewise.
48737         * lib/safe-read.h: Likewise.
48738         * lib/safe-write.c: Likewise.
48739         * lib/safe-write.h: Likewise.
48740         * lib/same-inode.h: Likewise.
48741         * lib/same.c: Likewise.
48742         * lib/same.h: Likewise.
48743         * lib/save-cwd.c: Likewise.
48744         * lib/save-cwd.h: Likewise.
48745         * lib/savedir.c: Likewise.
48746         * lib/savedir.h: Likewise.
48747         * lib/savewd.c: Likewise.
48748         * lib/savewd.h: Likewise.
48749         * lib/search.in.h: Likewise.
48750         * lib/setenv.c: Likewise.
48751         * lib/setenv.h: Likewise.
48752         * lib/settime.c: Likewise.
48753         * lib/sh-quote.c: Likewise.
48754         * lib/sh-quote.h: Likewise.
48755         * lib/sig2str.c: Likewise.
48756         * lib/sig2str.h: Likewise.
48757         * lib/signal.in.h: Likewise.
48758         * lib/signbitd.c: Likewise.
48759         * lib/signbitf.c: Likewise.
48760         * lib/signbitl.c: Likewise.
48761         * lib/sigprocmask.c: Likewise.
48762         * lib/sincosl.c: Likewise.
48763         * lib/sleep.c: Likewise.
48764         * lib/sprintf.c: Likewise.
48765         * lib/sqrtl.c: Likewise.
48766         * lib/stat-time.h: Likewise.
48767         * lib/stdio--.h: Likewise.
48768         * lib/stdio-safer.h: Likewise.
48769         * lib/stdlib--.h: Likewise.
48770         * lib/stdlib-safer.h: Likewise.
48771         * lib/stdlib.in.h: Likewise.
48772         * lib/stpcpy.c: Likewise.
48773         * lib/stpncpy.c: Likewise.
48774         * lib/strchrnul.c: Likewise.
48775         * lib/strcspn.c: Likewise.
48776         * lib/strerror.c: Likewise.
48777         * lib/strftime.c: Likewise.
48778         * lib/strftime.h: Likewise.
48779         * lib/striconveh.c: Likewise.
48780         * lib/striconveh.h: Likewise.
48781         * lib/striconveha.c: Likewise.
48782         * lib/striconveha.h: Likewise.
48783         * lib/stripslash.c: Likewise.
48784         * lib/strnlen1.c: Likewise.
48785         * lib/strnlen1.h: Likewise.
48786         * lib/strtod.c: Likewise.
48787         * lib/strtoimax.c: Likewise.
48788         * lib/strtok_r.c: Likewise.
48789         * lib/strtol.c: Likewise.
48790         * lib/strtoll.c: Likewise.
48791         * lib/strtoul.c: Likewise.
48792         * lib/strtoull.c: Likewise.
48793         * lib/sysexits.in.h: Likewise.
48794         * lib/tempname.c: Likewise.
48795         * lib/tempname.h: Likewise.
48796         * lib/timespec.h: Likewise.
48797         * lib/tls.c: Likewise.
48798         * lib/tls.h: Likewise.
48799         * lib/tmpdir.c: Likewise.
48800         * lib/tmpdir.h: Likewise.
48801         * lib/tmpfile-safer.c: Likewise.
48802         * lib/tmpfile.c: Likewise.
48803         * lib/trigl.c: Likewise.
48804         * lib/trigl.h: Likewise.
48805         * lib/trim.c: Likewise.
48806         * lib/trim.h: Likewise.
48807         * lib/trunc.c: Likewise.
48808         * lib/truncf.c: Likewise.
48809         * lib/truncl.c: Likewise.
48810         * lib/tsearch.c: Likewise.
48811         * lib/unicodeio.c: Likewise.
48812         * lib/unicodeio.h: Likewise.
48813         * lib/unistd--.h: Likewise.
48814         * lib/unistd-safer.h: Likewise.
48815         * lib/unistdio/ulc-fprintf.c: Likewise.
48816         * lib/unistdio/ulc-vfprintf.c: Likewise.
48817         * lib/unlinkdir.c: Likewise.
48818         * lib/unlinkdir.h: Likewise.
48819         * lib/unlocked-io.h: Likewise.
48820         * lib/unsetenv.c: Likewise.
48821         * lib/userspec.c: Likewise.
48822         * lib/utime.c: Likewise.
48823         * lib/utimecmp.c: Likewise.
48824         * lib/utimecmp.h: Likewise.
48825         * lib/utimens.c: Likewise.
48826         * lib/verify.h: Likewise.
48827         * lib/verror.c: Likewise.
48828         * lib/verror.h: Likewise.
48829         * lib/version-etc-fsf.c: Likewise.
48830         * lib/version-etc.c: Likewise.
48831         * lib/version-etc.h: Likewise.
48832         * lib/vfprintf.c: Likewise.
48833         * lib/vprintf.c: Likewise.
48834         * lib/vsprintf.c: Likewise.
48835         * lib/w32spawn.h: Likewise.
48836         * lib/wait-process.c: Likewise.
48837         * lib/wait-process.h: Likewise.
48838         * lib/wcwidth.c: Likewise.
48839         * lib/write-any-file.c: Likewise.
48840         * lib/xalloc-die.c: Likewise.
48841         * lib/xalloc.h: Likewise.
48842         * lib/xasprintf.c: Likewise.
48843         * lib/xgetcwd.c: Likewise.
48844         * lib/xgetcwd.h: Likewise.
48845         * lib/xgetdomainname.c: Likewise.
48846         * lib/xgetdomainname.h: Likewise.
48847         * lib/xgethostname.c: Likewise.
48848         * lib/xmalloc.c: Likewise.
48849         * lib/xmalloca.c: Likewise.
48850         * lib/xmalloca.h: Likewise.
48851         * lib/xmemcoll.c: Likewise.
48852         * lib/xnanosleep.c: Likewise.
48853         * lib/xreadlink.c: Likewise.
48854         * lib/xreadlink.h: Likewise.
48855         * lib/xsetenv.c: Likewise.
48856         * lib/xsetenv.h: Likewise.
48857         * lib/xstriconv.c: Likewise.
48858         * lib/xstriconv.h: Likewise.
48859         * lib/xstrndup.c: Likewise.
48860         * lib/xstrndup.h: Likewise.
48861         * lib/xstrtod.c: Likewise.
48862         * lib/xstrtod.h: Likewise.
48863         * lib/xstrtol-error.c: Likewise.
48864         * lib/xstrtol.c: Likewise.
48865         * lib/xstrtol.h: Likewise.
48866         * lib/xtime.h: Likewise.
48867         * lib/xvasprintf.c: Likewise.
48868         * lib/xvasprintf.h: Likewise.
48869         * lib/yesno.c: Likewise.
48870         * lib/yesno.h: Likewise.
48871         * posix-modules: Likewise.
48872         * tests/test-alloca-opt.c: Likewise.
48873         * tests/test-arcfour.c: Likewise.
48874         * tests/test-arctwo.c: Likewise.
48875         * tests/test-argmatch.c: Likewise.
48876         * tests/test-argp-2.sh: Likewise.
48877         * tests/test-argp.c: Likewise.
48878         * tests/test-arpa_inet.c: Likewise.
48879         * tests/test-array_list.c: Likewise.
48880         * tests/test-array_oset.c: Likewise.
48881         * tests/test-atexit.c: Likewise.
48882         * tests/test-avltree_list.c: Likewise.
48883         * tests/test-avltree_oset.c: Likewise.
48884         * tests/test-avltreehash_list.c: Likewise.
48885         * tests/test-base64.c: Likewise.
48886         * tests/test-binary-io.c: Likewise.
48887         * tests/test-byteswap.c: Likewise.
48888         * tests/test-c-ctype.c: Likewise.
48889         * tests/test-c-strcasecmp.c: Likewise.
48890         * tests/test-c-strcasestr.c: Likewise.
48891         * tests/test-c-strncasecmp.c: Likewise.
48892         * tests/test-c-strstr.c: Likewise.
48893         * tests/test-canonicalize-lgpl.c: Likewise.
48894         * tests/test-canonicalize.c: Likewise.
48895         * tests/test-carray_list.c: Likewise.
48896         * tests/test-ceilf.c: Likewise.
48897         * tests/test-ceill.c: Likewise.
48898         * tests/test-count-one-bits.c: Likewise.
48899         * tests/test-crc.c: Likewise.
48900         * tests/test-dirname.c: Likewise.
48901         * tests/test-fbufmode.c: Likewise.
48902         * tests/test-fcntl.c: Likewise.
48903         * tests/test-fflush.c: Likewise.
48904         * tests/test-floorf.c: Likewise.
48905         * tests/test-floorl.c: Likewise.
48906         * tests/test-fopen.c: Likewise.
48907         * tests/test-fprintf-posix.c: Likewise.
48908         * tests/test-fprintf-posix.h: Likewise.
48909         * tests/test-fpurge.c: Likewise.
48910         * tests/test-freadable.c: Likewise.
48911         * tests/test-freadahead.c: Likewise.
48912         * tests/test-freading.c: Likewise.
48913         * tests/test-freopen.c: Likewise.
48914         * tests/test-frexp.c: Likewise.
48915         * tests/test-frexpl.c: Likewise.
48916         * tests/test-fseek.c: Likewise.
48917         * tests/test-fseeko.c: Likewise.
48918         * tests/test-fseterr.c: Likewise.
48919         * tests/test-fstrcmp.c: Likewise.
48920         * tests/test-ftell.c: Likewise.
48921         * tests/test-ftello.c: Likewise.
48922         * tests/test-fwritable.c: Likewise.
48923         * tests/test-fwriting.c: Likewise.
48924         * tests/test-getaddrinfo.c: Likewise.
48925         * tests/test-getpass.c: Likewise.
48926         * tests/test-gettimeofday.c: Likewise.
48927         * tests/test-hmac-md5.c: Likewise.
48928         * tests/test-hmac-sha1.c: Likewise.
48929         * tests/test-iconv.c: Likewise.
48930         * tests/test-iconvme.c: Likewise.
48931         * tests/test-inttypes.c: Likewise.
48932         * tests/test-isnan.c: Likewise.
48933         * tests/test-isnanf.c: Likewise.
48934         * tests/test-isnanl-nolibm.c: Likewise.
48935         * tests/test-isnanl.c: Likewise.
48936         * tests/test-isnanl.h: Likewise.
48937         * tests/test-ldexpl.c: Likewise.
48938         * tests/test-linked_list.c: Likewise.
48939         * tests/test-linkedhash_list.c: Likewise.
48940         * tests/test-locale.c: Likewise.
48941         * tests/test-localename.c: Likewise.
48942         * tests/test-lock.c: Likewise.
48943         * tests/test-lseek.c: Likewise.
48944         * tests/test-malloca.c: Likewise.
48945         * tests/test-math.c: Likewise.
48946         * tests/test-mbscasecmp.c: Likewise.
48947         * tests/test-mbscasestr1.c: Likewise.
48948         * tests/test-mbscasestr2.c: Likewise.
48949         * tests/test-mbscasestr3.c: Likewise.
48950         * tests/test-mbscasestr4.c: Likewise.
48951         * tests/test-mbschr.c: Likewise.
48952         * tests/test-mbscspn.c: Likewise.
48953         * tests/test-mbsncasecmp.c: Likewise.
48954         * tests/test-mbspbrk.c: Likewise.
48955         * tests/test-mbspcasecmp.c: Likewise.
48956         * tests/test-mbsrchr.c: Likewise.
48957         * tests/test-mbsspn.c: Likewise.
48958         * tests/test-mbsstr1.c: Likewise.
48959         * tests/test-mbsstr2.c: Likewise.
48960         * tests/test-mbsstr3.c: Likewise.
48961         * tests/test-md5.c: Likewise.
48962         * tests/test-memmem.c: Likewise.
48963         * tests/test-netinet_in.c: Likewise.
48964         * tests/test-open.c: Likewise.
48965         * tests/test-printf-frexp.c: Likewise.
48966         * tests/test-printf-frexpl.c: Likewise.
48967         * tests/test-printf-posix.c: Likewise.
48968         * tests/test-printf-posix.h: Likewise.
48969         * tests/test-rbtree_list.c: Likewise.
48970         * tests/test-rbtree_oset.c: Likewise.
48971         * tests/test-rbtreehash_list.c: Likewise.
48972         * tests/test-read-file.c: Likewise.
48973         * tests/test-rijndael.c: Likewise.
48974         * tests/test-search.c: Likewise.
48975         * tests/test-signbit.c: Likewise.
48976         * tests/test-sleep.c: Likewise.
48977         * tests/test-snprintf-posix.c: Likewise.
48978         * tests/test-snprintf-posix.h: Likewise.
48979         * tests/test-snprintf.c: Likewise.
48980         * tests/test-sprintf-posix.c: Likewise.
48981         * tests/test-sprintf-posix.h: Likewise.
48982         * tests/test-stat-time.c: Likewise.
48983         * tests/test-stdbool.c: Likewise.
48984         * tests/test-stdint.c: Likewise.
48985         * tests/test-stdio.c: Likewise.
48986         * tests/test-stdlib.c: Likewise.
48987         * tests/test-stpncpy.c: Likewise.
48988         * tests/test-strcasestr.c: Likewise.
48989         * tests/test-striconv.c: Likewise.
48990         * tests/test-striconveh.c: Likewise.
48991         * tests/test-striconveha.c: Likewise.
48992         * tests/test-string.c: Likewise.
48993         * tests/test-sys_select.c: Likewise.
48994         * tests/test-sys_socket.c: Likewise.
48995         * tests/test-sys_stat.c: Likewise.
48996         * tests/test-sys_time.c: Likewise.
48997         * tests/test-sysexits.c: Likewise.
48998         * tests/test-time.c: Likewise.
48999         * tests/test-tls.c: Likewise.
49000         * tests/test-trunc.c: Likewise.
49001         * tests/test-truncf.c: Likewise.
49002         * tests/test-truncl.c: Likewise.
49003         * tests/test-unistd.c: Likewise.
49004         * tests/test-vasnprintf-posix.c: Likewise.
49005         * tests/test-vasnprintf-posix2.c: Likewise.
49006         * tests/test-vasnprintf.c: Likewise.
49007         * tests/test-vasprintf-posix.c: Likewise.
49008         * tests/test-vasprintf.c: Likewise.
49009         * tests/test-verify.c: Likewise.
49010         * tests/test-vfprintf-posix.c: Likewise.
49011         * tests/test-vprintf-posix.c: Likewise.
49012         * tests/test-vsnprintf-posix.c: Likewise.
49013         * tests/test-vsnprintf.c: Likewise.
49014         * tests/test-vsprintf-posix.c: Likewise.
49015         * tests/test-wchar.c: Likewise.
49016         * tests/test-wctype.c: Likewise.
49017         * tests/test-wcwidth.c: Likewise.
49018         * tests/test-xstrtol.c: Likewise.
49019         * tests/test-xvasprintf.c: Likewise.
49020         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49021         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49022         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49023         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49024         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49025         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49026         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49027         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49028         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49029         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49030         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49031         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49032         * tests/uniname/test-uninames.c: Likewise.
49033         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49034         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
49035         * tests/unistdio/test-u16-printf1.h: Likewise.
49036         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49037         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49038         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49039         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49040         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49041         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49042         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49043         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
49044         * tests/unistdio/test-u32-printf1.h: Likewise.
49045         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49046         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49047         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49048         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49049         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49050         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49051         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49052         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
49053         * tests/unistdio/test-u8-printf1.h: Likewise.
49054         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49055         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49056         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49057         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49058         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49059         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49060         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49061         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
49062         * tests/unistdio/test-ulc-printf1.h: Likewise.
49063         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49064         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49065         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49066         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49067         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49068         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49069         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49070         * tests/uniwidth/test-u16-width.c: Likewise.
49071         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49072         * tests/uniwidth/test-u32-width.c: Likewise.
49073         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49074         * tests/uniwidth/test-u8-width.c: Likewise.
49075         * tests/uniwidth/test-uc_width.c: Likewise.
49076         * config/srclist-update: Likewise.
49077         (fixlicense): Update to GPLv3+.
49078
49079         Change copyright notice from LGPLv2.1+ to LGPLv3+.
49080         * tests/test-tsearch.c: Change copyright notice.
49081
49082         Change copyright notice from LGPLv2.0+ to LGPLv3+.
49083         * lib/c-strcaseeq.h: Change copyright notice.
49084         * lib/streq.h: Likewise.
49085         * lib/uniconv.h: Likewise.
49086         * lib/uniconv/u-conv-from-enc.h: Likewise.
49087         * lib/uniconv/u-conv-to-enc.h: Likewise.
49088         * lib/uniconv/u-strconv-from-enc.h: Likewise.
49089         * lib/uniconv/u-strconv-to-enc.h: Likewise.
49090         * lib/uniconv/u16-conv-from-enc.c: Likewise.
49091         * lib/uniconv/u16-conv-to-enc.c: Likewise.
49092         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
49093         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
49094         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
49095         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
49096         * lib/uniconv/u32-conv-from-enc.c: Likewise.
49097         * lib/uniconv/u32-conv-to-enc.c: Likewise.
49098         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
49099         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
49100         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
49101         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
49102         * lib/uniconv/u8-conv-from-enc.c: Likewise.
49103         * lib/uniconv/u8-conv-to-enc.c: Likewise.
49104         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
49105         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
49106         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
49107         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
49108         * lib/uniname.h: Likewise.
49109         * lib/uniname/uniname.c: Likewise.
49110         * lib/unistdio.h: Likewise.
49111         * lib/unistdio/u-asnprintf.h: Likewise.
49112         * lib/unistdio/u-asprintf.h: Likewise.
49113         * lib/unistdio/u-printf-args.c: Likewise.
49114         * lib/unistdio/u-printf-args.h: Likewise.
49115         * lib/unistdio/u-printf-parse.h: Likewise.
49116         * lib/unistdio/u-snprintf.h: Likewise.
49117         * lib/unistdio/u-sprintf.h: Likewise.
49118         * lib/unistdio/u-vasprintf.h: Likewise.
49119         * lib/unistdio/u-vsnprintf.h: Likewise.
49120         * lib/unistdio/u-vsprintf.h: Likewise.
49121         * lib/unistdio/u16-asnprintf.c: Likewise.
49122         * lib/unistdio/u16-asprintf.c: Likewise.
49123         * lib/unistdio/u16-printf-parse.c: Likewise.
49124         * lib/unistdio/u16-snprintf.c: Likewise.
49125         * lib/unistdio/u16-sprintf.c: Likewise.
49126         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
49127         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49128         * lib/unistdio/u16-u16-snprintf.c: Likewise.
49129         * lib/unistdio/u16-u16-sprintf.c: Likewise.
49130         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
49131         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
49132         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
49133         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
49134         * lib/unistdio/u16-vasnprintf.c: Likewise.
49135         * lib/unistdio/u16-vasprintf.c: Likewise.
49136         * lib/unistdio/u16-vsnprintf.c: Likewise.
49137         * lib/unistdio/u16-vsprintf.c: Likewise.
49138         * lib/unistdio/u32-asnprintf.c: Likewise.
49139         * lib/unistdio/u32-asprintf.c: Likewise.
49140         * lib/unistdio/u32-printf-parse.c: Likewise.
49141         * lib/unistdio/u32-snprintf.c: Likewise.
49142         * lib/unistdio/u32-sprintf.c: Likewise.
49143         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
49144         * lib/unistdio/u32-u32-asprintf.c: Likewise.
49145         * lib/unistdio/u32-u32-snprintf.c: Likewise.
49146         * lib/unistdio/u32-u32-sprintf.c: Likewise.
49147         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
49148         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
49149         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
49150         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
49151         * lib/unistdio/u32-vasnprintf.c: Likewise.
49152         * lib/unistdio/u32-vasprintf.c: Likewise.
49153         * lib/unistdio/u32-vsnprintf.c: Likewise.
49154         * lib/unistdio/u32-vsprintf.c: Likewise.
49155         * lib/unistdio/u8-asnprintf.c: Likewise.
49156         * lib/unistdio/u8-asprintf.c: Likewise.
49157         * lib/unistdio/u8-printf-parse.c: Likewise.
49158         * lib/unistdio/u8-snprintf.c: Likewise.
49159         * lib/unistdio/u8-sprintf.c: Likewise.
49160         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
49161         * lib/unistdio/u8-u8-asprintf.c: Likewise.
49162         * lib/unistdio/u8-u8-snprintf.c: Likewise.
49163         * lib/unistdio/u8-u8-sprintf.c: Likewise.
49164         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
49165         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
49166         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
49167         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
49168         * lib/unistdio/u8-vasnprintf.c: Likewise.
49169         * lib/unistdio/u8-vasprintf.c: Likewise.
49170         * lib/unistdio/u8-vsnprintf.c: Likewise.
49171         * lib/unistdio/u8-vsprintf.c: Likewise.
49172         * lib/unistdio/ulc-asnprintf.c: Likewise.
49173         * lib/unistdio/ulc-asprintf.c: Likewise.
49174         * lib/unistdio/ulc-printf-parse.c: Likewise.
49175         * lib/unistdio/ulc-snprintf.c: Likewise.
49176         * lib/unistdio/ulc-sprintf.c: Likewise.
49177         * lib/unistdio/ulc-vasnprintf.c: Likewise.
49178         * lib/unistdio/ulc-vasprintf.c: Likewise.
49179         * lib/unistdio/ulc-vsnprintf.c: Likewise.
49180         * lib/unistdio/ulc-vsprintf.c: Likewise.
49181         * lib/unistr.h: Likewise.
49182         * lib/unistr/u-cpy-alloc.h: Likewise.
49183         * lib/unistr/u-cpy.h: Likewise.
49184         * lib/unistr/u-endswith.h: Likewise.
49185         * lib/unistr/u-move.h: Likewise.
49186         * lib/unistr/u-set.h: Likewise.
49187         * lib/unistr/u-startswith.h: Likewise.
49188         * lib/unistr/u-stpcpy.h: Likewise.
49189         * lib/unistr/u-stpncpy.h: Likewise.
49190         * lib/unistr/u-strcat.h: Likewise.
49191         * lib/unistr/u-strcpy.h: Likewise.
49192         * lib/unistr/u-strcspn.h: Likewise.
49193         * lib/unistr/u-strdup.h: Likewise.
49194         * lib/unistr/u-strlen.h: Likewise.
49195         * lib/unistr/u-strncat.h: Likewise.
49196         * lib/unistr/u-strncpy.h: Likewise.
49197         * lib/unistr/u-strnlen.h: Likewise.
49198         * lib/unistr/u-strpbrk.h: Likewise.
49199         * lib/unistr/u-strspn.h: Likewise.
49200         * lib/unistr/u-strstr.h: Likewise.
49201         * lib/unistr/u-strtok.h: Likewise.
49202         * lib/unistr/u16-check.c: Likewise.
49203         * lib/unistr/u16-chr.c: Likewise.
49204         * lib/unistr/u16-cmp.c: Likewise.
49205         * lib/unistr/u16-cpy-alloc.c: Likewise.
49206         * lib/unistr/u16-cpy.c: Likewise.
49207         * lib/unistr/u16-endswith.c: Likewise.
49208         * lib/unistr/u16-mblen.c: Likewise.
49209         * lib/unistr/u16-mbsnlen.c: Likewise.
49210         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49211         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49212         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49213         * lib/unistr/u16-mbtouc.c: Likewise.
49214         * lib/unistr/u16-mbtoucr.c: Likewise.
49215         * lib/unistr/u16-move.c: Likewise.
49216         * lib/unistr/u16-next.c: Likewise.
49217         * lib/unistr/u16-prev.c: Likewise.
49218         * lib/unistr/u16-set.c: Likewise.
49219         * lib/unistr/u16-startswith.c: Likewise.
49220         * lib/unistr/u16-stpcpy.c: Likewise.
49221         * lib/unistr/u16-stpncpy.c: Likewise.
49222         * lib/unistr/u16-strcat.c: Likewise.
49223         * lib/unistr/u16-strchr.c: Likewise.
49224         * lib/unistr/u16-strcmp.c: Likewise.
49225         * lib/unistr/u16-strcpy.c: Likewise.
49226         * lib/unistr/u16-strcspn.c: Likewise.
49227         * lib/unistr/u16-strdup.c: Likewise.
49228         * lib/unistr/u16-strlen.c: Likewise.
49229         * lib/unistr/u16-strmblen.c: Likewise.
49230         * lib/unistr/u16-strmbtouc.c: Likewise.
49231         * lib/unistr/u16-strncat.c: Likewise.
49232         * lib/unistr/u16-strncmp.c: Likewise.
49233         * lib/unistr/u16-strncpy.c: Likewise.
49234         * lib/unistr/u16-strnlen.c: Likewise.
49235         * lib/unistr/u16-strpbrk.c: Likewise.
49236         * lib/unistr/u16-strrchr.c: Likewise.
49237         * lib/unistr/u16-strspn.c: Likewise.
49238         * lib/unistr/u16-strstr.c: Likewise.
49239         * lib/unistr/u16-strtok.c: Likewise.
49240         * lib/unistr/u16-to-u32.c: Likewise.
49241         * lib/unistr/u16-to-u8.c: Likewise.
49242         * lib/unistr/u16-uctomb-aux.c: Likewise.
49243         * lib/unistr/u16-uctomb.c: Likewise.
49244         * lib/unistr/u32-check.c: Likewise.
49245         * lib/unistr/u32-chr.c: Likewise.
49246         * lib/unistr/u32-cmp.c: Likewise.
49247         * lib/unistr/u32-cpy-alloc.c: Likewise.
49248         * lib/unistr/u32-cpy.c: Likewise.
49249         * lib/unistr/u32-endswith.c: Likewise.
49250         * lib/unistr/u32-mblen.c: Likewise.
49251         * lib/unistr/u32-mbsnlen.c: Likewise.
49252         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49253         * lib/unistr/u32-mbtouc.c: Likewise.
49254         * lib/unistr/u32-mbtoucr.c: Likewise.
49255         * lib/unistr/u32-move.c: Likewise.
49256         * lib/unistr/u32-next.c: Likewise.
49257         * lib/unistr/u32-prev.c: Likewise.
49258         * lib/unistr/u32-set.c: Likewise.
49259         * lib/unistr/u32-startswith.c: Likewise.
49260         * lib/unistr/u32-stpcpy.c: Likewise.
49261         * lib/unistr/u32-stpncpy.c: Likewise.
49262         * lib/unistr/u32-strcat.c: Likewise.
49263         * lib/unistr/u32-strchr.c: Likewise.
49264         * lib/unistr/u32-strcmp.c: Likewise.
49265         * lib/unistr/u32-strcpy.c: Likewise.
49266         * lib/unistr/u32-strcspn.c: Likewise.
49267         * lib/unistr/u32-strdup.c: Likewise.
49268         * lib/unistr/u32-strlen.c: Likewise.
49269         * lib/unistr/u32-strmblen.c: Likewise.
49270         * lib/unistr/u32-strmbtouc.c: Likewise.
49271         * lib/unistr/u32-strncat.c: Likewise.
49272         * lib/unistr/u32-strncmp.c: Likewise.
49273         * lib/unistr/u32-strncpy.c: Likewise.
49274         * lib/unistr/u32-strnlen.c: Likewise.
49275         * lib/unistr/u32-strpbrk.c: Likewise.
49276         * lib/unistr/u32-strrchr.c: Likewise.
49277         * lib/unistr/u32-strspn.c: Likewise.
49278         * lib/unistr/u32-strstr.c: Likewise.
49279         * lib/unistr/u32-strtok.c: Likewise.
49280         * lib/unistr/u32-to-u16.c: Likewise.
49281         * lib/unistr/u32-to-u8.c: Likewise.
49282         * lib/unistr/u32-uctomb.c: Likewise.
49283         * lib/unistr/u8-check.c: Likewise.
49284         * lib/unistr/u8-chr.c: Likewise.
49285         * lib/unistr/u8-cmp.c: Likewise.
49286         * lib/unistr/u8-cpy-alloc.c: Likewise.
49287         * lib/unistr/u8-cpy.c: Likewise.
49288         * lib/unistr/u8-endswith.c: Likewise.
49289         * lib/unistr/u8-mblen.c: Likewise.
49290         * lib/unistr/u8-mbsnlen.c: Likewise.
49291         * lib/unistr/u8-mbtouc-aux.c: Likewise.
49292         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49293         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49294         * lib/unistr/u8-mbtouc.c: Likewise.
49295         * lib/unistr/u8-mbtoucr.c: Likewise.
49296         * lib/unistr/u8-move.c: Likewise.
49297         * lib/unistr/u8-next.c: Likewise.
49298         * lib/unistr/u8-prev.c: Likewise.
49299         * lib/unistr/u8-set.c: Likewise.
49300         * lib/unistr/u8-startswith.c: Likewise.
49301         * lib/unistr/u8-stpcpy.c: Likewise.
49302         * lib/unistr/u8-stpncpy.c: Likewise.
49303         * lib/unistr/u8-strcat.c: Likewise.
49304         * lib/unistr/u8-strchr.c: Likewise.
49305         * lib/unistr/u8-strcmp.c: Likewise.
49306         * lib/unistr/u8-strcpy.c: Likewise.
49307         * lib/unistr/u8-strcspn.c: Likewise.
49308         * lib/unistr/u8-strdup.c: Likewise.
49309         * lib/unistr/u8-strlen.c: Likewise.
49310         * lib/unistr/u8-strmblen.c: Likewise.
49311         * lib/unistr/u8-strmbtouc.c: Likewise.
49312         * lib/unistr/u8-strncat.c: Likewise.
49313         * lib/unistr/u8-strncmp.c: Likewise.
49314         * lib/unistr/u8-strncpy.c: Likewise.
49315         * lib/unistr/u8-strnlen.c: Likewise.
49316         * lib/unistr/u8-strpbrk.c: Likewise.
49317         * lib/unistr/u8-strrchr.c: Likewise.
49318         * lib/unistr/u8-strspn.c: Likewise.
49319         * lib/unistr/u8-strstr.c: Likewise.
49320         * lib/unistr/u8-strtok.c: Likewise.
49321         * lib/unistr/u8-to-u16.c: Likewise.
49322         * lib/unistr/u8-to-u32.c: Likewise.
49323         * lib/unistr/u8-uctomb-aux.c: Likewise.
49324         * lib/unistr/u8-uctomb.c: Likewise.
49325         * lib/unitypes.h: Likewise.
49326         * lib/uniwidth.h: Likewise.
49327         * lib/uniwidth/cjk.h: Likewise.
49328         * lib/uniwidth/u16-strwidth.c: Likewise.
49329         * lib/uniwidth/u16-width.c: Likewise.
49330         * lib/uniwidth/u32-strwidth.c: Likewise.
49331         * lib/uniwidth/u32-width.c: Likewise.
49332         * lib/uniwidth/u8-strwidth.c: Likewise.
49333         * lib/uniwidth/u8-width.c: Likewise.
49334         * lib/uniwidth/width.c: Likewise.
49335
49336 2007-10-07  Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49339         The file is still under LGPL (see modules/inttypes).
49340
49341 2007-10-06  Bruno Haible  <bruno@clisp.org>
49342
49343         * modules/trunc (Dependencies): Add 'extensions'.
49344         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49345         Reported by Ben Pfaff <blp@gnu.org>.
49346
49347 2007-10-06  Bruno Haible  <bruno@clisp.org>
49348
49349         * modules/freopen-tests: New file.
49350         * tests/test-freopen.c: New file.
49351
49352         * modules/fopen-tests: New file.
49353         * tests/test-fopen.c: New file.
49354
49355         * modules/fopen: New file.
49356         * lib/fopen.c: New file.
49357         * m4/fopen.m4: New file.
49358         * modules/freopen: New file.
49359         * lib/freopen.c: New file.
49360         * m4/freopen.m4: New file.
49361         * lib/stdio.in.h (fopen, freopen): New declarations.
49362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49363         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49364         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49365         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49366         * doc/functions/fopen.texi: Mention the 'fopen' module.
49367         * doc/functions/freopen.texi: Mention the 'freopen' module.
49368
49369 2007-10-06  Bruno Haible  <bruno@clisp.org>
49370
49371         * modules/open-tests: New file.
49372         * tests/test-open.c: New file.
49373
49374         * modules/open: New file.
49375         * lib/open.c: New file.
49376         * m4/open.m4: New file.
49377         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49378         lib/open.c does.
49379         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49380         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49381         macros.
49382         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49383         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49384         REPLACE_OPEN.
49385         * doc/functions/open.texi: Mention the 'open' module.
49386
49387 2007-10-04  Bruno Haible  <bruno@clisp.org>
49388
49389         * modules/ceill-tests: New file.
49390         * tests/test-ceill.c: New file.
49391
49392         * modules/ceill: New file.
49393         * lib/ceill.c: Replace entire file.
49394         * m4/ceill.m4: New file.
49395         * lib/math.in.h (ceill): Replace declaration.
49396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49397         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49398         * doc/functions/ceill.texi: Mention the 'ceill' module.
49399         * modules/mathl (Files): Remove lib/ceill.c.
49400         (Depends-on): Add ceill.
49401
49402 2007-10-04  Bruno Haible  <bruno@clisp.org>
49403
49404         * modules/ceilf-tests: New file.
49405         * tests/test-ceilf.c: New file.
49406
49407         * modules/ceilf: New file.
49408         * lib/ceil.c: New file.
49409         * lib/ceilf.c: New file.
49410         * m4/ceilf.m4: New file.
49411         * lib/math.in.h (ceilf): New declaration.
49412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49413         HAVE_DECL_CEILF.
49414         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49415         HAVE_DECL_CEILF.
49416         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49417
49418 2007-10-04  Bruno Haible  <bruno@clisp.org>
49419
49420         * modules/floorl-tests: New file.
49421         * tests/test-floorl.c: New file.
49422
49423         * modules/floorl: New file.
49424         * lib/floorl.c: Replace entire file.
49425         * m4/floorl.m4: New file.
49426         * lib/math.in.h (floorl): Replace declaration.
49427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49428         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49429         * doc/functions/floorl.texi: Mention the 'floorl' module.
49430         * modules/mathl (Files): Remove lib/floorl.c.
49431         (Depends-on): Add floorl.
49432
49433 2007-10-04  Bruno Haible  <bruno@clisp.org>
49434
49435         * modules/floorf-tests: New file.
49436         * tests/test-floorf.c: New file.
49437
49438         * modules/floorf: New file.
49439         * lib/floor.c: New file.
49440         * lib/floorf.c: New file.
49441         * m4/floorf.m4: New file.
49442         * lib/math.in.h (floorf): New declaration.
49443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49444         HAVE_DECL_FLOORF.
49445         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49446         HAVE_DECL_FLOORF.
49447         * doc/functions/floorf.texi: Mention the 'floorf' module.
49448
49449 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49450             Bruno Haible  <bruno@clisp.org>
49451
49452         Advertise for the Git server instead of the CVS server.
49453         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49454         repository instead of the CVS one.
49455         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49456         about all VCS systems generically.
49457         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49458
49459 2007-10-04  Bruno Haible  <bruno@clisp.org>
49460
49461         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49462         means.
49463         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49464
49465 2007-10-04  Bruno Haible  <bruno@clisp.org>
49466
49467         * modules/truncl-tests: New file.
49468         * tests/test-truncl.c: New file.
49469
49470         * modules/truncl: New file.
49471         * lib/truncl.c: New file.
49472         * m4/truncl.m4: New file.
49473         * lib/math.in.h (truncl): New declaration.
49474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49475         HAVE_DECL_TRUNCL.
49476         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49477         HAVE_DECL_TRUNCL.
49478         * doc/functions/truncl.texi: Mention the 'truncl' module.
49479
49480 2007-10-04  Bruno Haible  <bruno@clisp.org>
49481
49482         * modules/truncf-tests: New file.
49483         * tests/test-truncf.c: New file.
49484
49485         * modules/truncf: New file.
49486         * lib/trunc.c: Make paramerizable through USE_* macros.
49487         * lib/truncf.c: New file.
49488         * m4/truncf.m4: New file.
49489         * lib/math.in.h (truncf): New declaration.
49490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49491         HAVE_DECL_TRUNCF.
49492         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49493         HAVE_DECL_TRUNCF.
49494         * doc/functions/truncf.texi: Mention the 'truncf' module.
49495
49496 2007-10-03  Bruno Haible  <bruno@clisp.org>
49497
49498         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49499         augmentation also for tests modules.
49500         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49501         * modules/atexit-tests (Makefile.am): Likewise.
49502         * modules/binary-io-tests (Makefile.am): Likewise.
49503         * modules/c-strcase-tests (Makefile.am): Likewise.
49504         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49505         * modules/canonicalize-tests (Makefile.am): Likewise.
49506         * modules/closein-tests (Makefile.am): Likewise.
49507         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49508         * modules/freadahead-tests (Makefile.am): Likewise.
49509         * modules/fseek-tests (Makefile.am): Likewise.
49510         * modules/fseeko-tests (Makefile.am): Likewise.
49511         * modules/ftell-tests (Makefile.am): Likewise.
49512         * modules/ftello-tests (Makefile.am): Likewise.
49513         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49514         * modules/isnanl-tests (Makefile.am): Likewise.
49515         * modules/lseek-tests (Makefile.am): Likewise.
49516         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49517         * modules/mbscasestr-tests (Makefile.am): Likewise.
49518         * modules/mbschr-tests (Makefile.am): Likewise.
49519         * modules/mbscspn-tests (Makefile.am): Likewise.
49520         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49521         * modules/mbspbrk-tests (Makefile.am): Likewise.
49522         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49523         * modules/mbsrchr-tests (Makefile.am): Likewise.
49524         * modules/mbsspn-tests (Makefile.am): Likewise.
49525         * modules/mbsstr-tests (Makefile.am): Likewise.
49526         * modules/printf-posix-tests (Makefile.am): Likewise.
49527         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49528         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49529         * modules/tsearch-tests (Makefile.am): Likewise.
49530         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49531         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49532         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49533         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49534         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49535         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49536         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49537         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49538         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49539         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49540         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49541         * modules/xstrtol-tests (Makefile.am): Likewise.
49542         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49543         * modules/yesno-tests (Makefile.am): Likewise.
49544
49545 2007-10-03  Bruno Haible  <bruno@clisp.org>
49546
49547         * modules/trunc-tests: New file.
49548         * tests/test-trunc.c: New file.
49549
49550         * modules/trunc: New file.
49551         * lib/trunc.c: New file.
49552         * m4/trunc.m4: New file.
49553         * lib/math.in.h (trunc): New declaration.
49554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49555         HAVE_DECL_TRUNC.
49556         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49557         HAVE_DECL_TRUNC.
49558         * doc/functions/trunc.texi: Mention the 'trunc' module.
49559
49560 2007-10-03  Bruno Haible  <bruno@clisp.org>
49561
49562         * tests/test-fpending.c: New file, mostly copied
49563         from coreutils/lib/t-fpending.c.
49564         * modules/fpending-tests: New file.
49565
49566 2007-10-03  Bruno Haible  <bruno@clisp.org>
49567
49568         Port the stdio extensions to QNX (untested).
49569         * lib/fseterr.c (fseterr): Add support for QNX.
49570         * lib/fbufmode.c (fbufmode): Likewise.
49571         * lib/freadable.c (freadable): Likewise.
49572         * lib/fwritable.c (fwritable): Likewise.
49573         * lib/freading.c (freading): Likewise.
49574         * lib/fwriting.c (fwriting): Likewise.
49575         * lib/freadahead.c (freadahed): Likewise.
49576         * lib/fpurge.c (fpurge): Likewise.
49577         * lib/fseeko.c (rpl_fseeko): Likewise.
49578
49579 2007-10-03  Bruno Haible  <bruno@clisp.org>
49580             Jim Meyering  <jim@meyering.net>
49581             Eric Blake  <ebb9@byu.net>
49582
49583         * doc/relocatable.texi: Use @command instead of @program.
49584
49585 2007-10-02  Jim Meyering  <jim@meyering.net>
49586
49587         Perform one more "_.h" -> ".in.h" substitution.
49588         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49589         instead of unistd_.h here, too.
49590
49591 2007-10-01  Bruno Haible  <bruno@clisp.org>
49592
49593         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49594         Needed for the alloca-opt module.
49595
49596 2007-09-30  Bruno Haible  <bruno@clisp.org>
49597
49598         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49599         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49600         alloca_.h.
49601         * lib/argz.in.h: Renamed from lib/argz_.h.
49602         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49603         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49604         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49605         byteswap_.h.
49606         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49607         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49608         dirent_.h.
49609         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49610         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49611         fcntl_.h.
49612         * lib/float.in.h: Renamed from lib/float_.h.
49613         * modules/float (Files, Makefile.am): Use float.in.h instead of
49614         float_.h.
49615         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49616         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49617         fnmatch_.h.
49618         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49619         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49620         getopt_.h.
49621         * lib/glob.in.h: Renamed from lib/glob_.h.
49622         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49623         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49624         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49625         iconv_.h.
49626         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49627         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49628         inttypes_.h.
49629         * lib/locale.in.h: Renamed from lib/locale_.h.
49630         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49631         locale_.h.
49632         * lib/math.in.h: Renamed from lib/math_.h.
49633         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49634         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49635         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49636         of netinet_in_.h. Add dependency.
49637         * lib/poll.in.h: Renamed from lib/poll_.h.
49638         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49639         * lib/search.in.h: Renamed from lib/search_.h.
49640         * modules/search (Files, Makefile.am): Use search.in.h instead of
49641         search_.h.
49642         * lib/signal.in.h: Renamed from lib/signal_.h.
49643         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49644         _signal.h.
49645         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49646         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49647         stdbool_.h.
49648         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49649         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49650         stdint_.h.
49651         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49652         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49653         stdio_.h.
49654         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49655         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49656         stdlib_.h.
49657         * lib/string.in.h: Renamed from lib/string_.h.
49658         * modules/string (Files, Makefile.am): Use string.in.h instead of
49659         string_.h.
49660         * doc/gnulib-tool.texi (Initial import): Update.
49661         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49662         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49663         of sys_select_.h. Add dependency.
49664         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49665         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49666         of sys_socket_.h.
49667         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49668         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49669         sys_stat_.h.
49670         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49671         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49672         sys_time_.h.
49673         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49674         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49675         sysexits_.h.
49676         * lib/time.in.h: Renamed from lib/time_.h.
49677         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49678         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49679         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49680         unistd_.h.
49681         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49682         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49683         wchar_.h.
49684         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49685         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49686         wctype_.h.
49687         * build-aux/bootstrap (slurp): Update.
49688         * lib/.cppi-disable: Update.
49689
49690 2007-09-30  Bruno Haible  <bruno@clisp.org>
49691
49692         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49693         Needed on BeOS.
49694
49695 2007-09-30  Bruno Haible  <bruno@clisp.org>
49696
49697         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49698
49699 2007-09-29  Bruno Haible  <bruno@clisp.org>
49700
49701         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49702
49703 2007-09-29  Bruno Haible  <bruno@clisp.org>
49704
49705         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49706         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49707         * build-aux/install-reloc: Compile also areadlink.c.
49708         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49709
49710 2007-09-29  Bruno Haible  <bruno@clisp.org>
49711
49712         * gnulib-tool (func_emit_initmacro_done): Indentation.
49713
49714 2007-09-29  Bruno Haible  <bruno@clisp.org>
49715
49716         * README: Add CVS checkout update instructions.
49717         Info from Bob Proulx <bob@proulx.com>.
49718
49719 2007-09-28  Eric Blake  <ebb9@byu.net>
49720
49721         Provide move-if-change.
49722         * build-aux/move-if-change: New file, based on best practice
49723         rather than any canonical upstream location.
49724
49725 2007-09-28  Jim Meyering  <jim@meyering.net>
49726
49727         Fix canonicalize loop-detection corner case.
49728         Do not attempt to stat the symlink values stored via seen_triple.
49729         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49730         on linux-2.6.18, (but not 2.6.22).
49731         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49732         triple_compare.  The former compares dev,ino,filename, while the latter
49733         would actually stat dirname(filename) when dev and ino were equal.
49734         * lib/hash-triple.c: Install <string.h>.
49735         (STREQ): Define.
49736         (triple_compare_ino_str): New function.
49737         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49738
49739 2007-09-28  Eric Blake  <ebb9@byu.net>
49740
49741         Enforce that AC_REPLACE_FUNCS files exist.
49742         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49743         override check for typos.
49744
49745         Fix test-closein on Solaris 10.
49746         * tests/test-closein.c (main): Don't assume stdin can be inherited
49747         closed on all systems.
49748         * tests/test-closein.sh: Likewise.
49749         Reported by Piotr Tarnowski.
49750
49751 2007-09-28  Jim Meyering  <jim@meyering.net>
49752
49753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49754
49755 2007-09-27  Jim Meyering  <jim@meyering.net>
49756
49757         canonicalize: Avoid a false-positive cycle failure.
49758         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49759         Sort.  Remove cycle-check.
49760         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49761         not cycle-check.h.
49762         (seen_triple): New function.
49763         (canonicalize_filename_mode): Use it instead of cycle-check.
49764         * tests/test-canonicalize.c: Add a test for this bug.
49765         * tests/test-canonicalize.sh: Set up and run the test.
49766
49767         New module, file-set, from coreutils.
49768         * modules/file-set: Define it.
49769         * lib/file-set.c, lib/file-set.h: Implement.
49770
49771         New module, hash-triple, from coreutils.
49772         * modules/hash-triple: Define it.
49773         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49774
49775 2007-09-25  Eric Blake  <ebb9@byu.net>
49776
49777         Fix strerror on Interix.
49778         * lib/string_.h (strerror): Declare replacement.
49779         * doc/functions/strerror.texi (strerror): Document the Interix
49780         shortcoming.
49781         * modules/string (Makefile.am): Support new hooks.
49782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49783         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49784         gl_FUNC_STRERROR_SEPARATE.
49785         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49786         * lib/strerror.c (rpl_strerror): Provide replacement.
49787         * modules/strerror (Depends-on): Add string.
49788         (configure.ac): Detect use of module.
49789         * tests/test-strerror.c: New file.
49790         * modules/strerror-tests: New test module.
49791         * modules/argp (Depends-on): Add strerror.
49792         * modules/error (Depends-on): Likewise.
49793         Reported by Martin Koeppe.
49794
49795 2007-09-24  Bruno Haible  <bruno@clisp.org>
49796
49797         * README: Update git instructions.
49798
49799 2007-09-24  Eric Blake  <ebb9@byu.net>
49800
49801         Revert fpending breakage from 2007-09-08.
49802         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49803         __fpending.c.
49804
49805 2007-09-24  Jim Meyering  <jim@meyering.net>
49806
49807         filenamecat.c: Add a test.
49808         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49809         showing how the function works when DIR is the empty string.
49810
49811 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49812
49813         * tests/test-canonicalize.sh: Turn on executable bit.
49814
49815 2007-09-19  Eric Blake  <ebb9@byu.net>
49816
49817         * README: Update CVS instructions.
49818
49819 2007-09-18  Bruno Haible  <bruno@clisp.org>
49820
49821         * modules/areadlink: New file.
49822         * lib/areadlink.h (areadlink): New declaration.
49823         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49824
49825 2007-09-17  Jim Meyering  <jim@meyering.net>
49826
49827         * lib/savewd.c (ESTALE) [!defined]: Define.
49828         Reported to be required on Interix by Martin Koeppe.
49829
49830 2007-09-17  Bruno Haible  <bruno@clisp.org>
49831
49832         * gnulib-tool (func_version): Use $version.
49833
49834 2007-09-16  Bruno Haible  <bruno@clisp.org>
49835
49836         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49837         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49838         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49839         Reported by Greg Schafer <gschafer@zip.com.au>.
49840
49841 2007-09-15  Bruno Haible  <bruno@clisp.org>
49842
49843         * gnulib-tool (sed): Try a little harder to make bash understand the
49844         alias.
49845         Reported by Bruce Korb <bruce.korb@gmail.com>.
49846
49847 2007-09-13  Eric Blake  <ebb9@byu.net>
49848
49849         * ChangeLog: Remove conflict markers.
49850
49851 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49852
49853         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49854         Reported by Bruno Haible <bruno@clisp.org>.
49855
49856 2007-09-12  Bruno Haible  <bruno@clisp.org>
49857
49858         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49859         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49860         is not defined.
49861
49862 2007-09-12  Eric Blake  <ebb9@byu.net>
49863
49864         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49865         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49866         Autoconf definition.
49867         * modules/euidaccess (Depends-on): Add extensions, for
49868         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49869         * modules/fnmatch (Depends-on): Likewise.
49870         * modules/getaddrinfo (Depends-on): Likewise.
49871         * modules/getdelim (Depends-on): Likewise.
49872         * modules/getline (Depends-on): Likewise.
49873         * modules/getsubopt (Depends-on): Likewise.
49874         * modules/gettext (Depends-on): Likewise.
49875         * modules/group-member (Depends-on): Likewise.
49876         * modules/mbchar (Depends-on): Likewise.
49877         * modules/memmem (Depends-on): Likewise.
49878         * modules/mempcpy (Depends-on): Likewise.
49879         * modules/memrchr (Depends-on): Likewise.
49880         * modules/pagealign_alloc (Depends-on): Likewise.
49881         * modules/readutmp (Depends-on): Likewise.
49882         * modules/stpcpy (Depends-on): Likewise.
49883         * modules/stpncpy (Depends-on): Likewise.
49884         * modules/strchrnul (Depends-on): Likewise.
49885         * modules/strndup (Depends-on): Likewise.
49886         * modules/strsep (Depends-on): Likewise.
49887         * modules/strverscmp (Depends-on): Likewise.
49888         * modules/vasprintf (Depends-on): Likewise.
49889         * modules/wcwidth (Depends-on): Likewise.
49890         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49891         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49892         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49893         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49894         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49895         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49896         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49897         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49898         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49899         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49900         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49901         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49902         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49903         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49904         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49905         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49906         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49907         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49908         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49909         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49910         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49911         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49912         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49913         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49914         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49915         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49916         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49917         so that lock.m4 can be used in gettext without extensions module.
49918
49919 2007-09-11  Bruno Haible  <bruno@clisp.org>
49920
49921         * m4/isc-posix.m4: Remove file.
49922         Suggested by Eric Blake.
49923
49924 2007-09-11  Eric Blake  <ebb9@byu.net>
49925
49926         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49927
49928 2007-09-10  Bruno Haible  <bruno@clisp.org>
49929
49930         * posix-modules: Fix typo in error message.
49931         Reported by Matt <mkraai@beckman.com>.
49932
49933 2007-09-09  Bruno Haible  <bruno@clisp.org>
49934
49935         * doc/functions/getdelim.texi: Update list of platforms lacking the
49936         function.
49937         * doc/functions/getline.texi: Likewise.
49938
49939 2007-09-09  Jim Meyering  <jim@meyering.net>
49940
49941         * lib/hash.c (hash_initialize): Detect calloc failure.
49942         Reported by Bruno Haible.
49943
49944 2007-09-09  Bruno Haible  <bruno@clisp.org>
49945
49946         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49947         malloc or realloc fails.
49948
49949 2007-09-09  Bruno Haible  <bruno@clisp.org>
49950
49951         * modules/getcwd (Depends-on): Add malloc-posix.
49952         * modules/glob (Depends-on): Likewise.
49953         * modules/putenv (Depends-on): Likewise.
49954         * modules/strdup (Depends-on): Likewise.
49955         * modules/getdelim (Depends-on): Add realloc-posix.
49956         * modules/read-file (Depends-on): Likewise.
49957
49958 2007-09-09  Bruno Haible  <bruno@clisp.org>
49959
49960         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49961         (gl_FUNC_MALLOC_POSIX): Require it.
49962         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49963         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49964         * modules/realloc (Files): Add m4/malloc.m4.
49965         * modules/calloc (Files): Likewise.
49966
49967 2007-09-09  Bruno Haible  <bruno@clisp.org>
49968
49969         * modules/malloc-posix: New file.
49970         * modules/malloc (Depends-on): Add malloc-posix.
49971         * lib/malloc.c: Include errno.h.
49972         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49973         and a POSIX-compatible malloc into a single function. Set ENOMEM
49974         when returning NULL.
49975         * m4/malloc.m4: New file.
49976         * doc/functions/malloc.texi: Mention the malloc-posix module.
49977         * lib/stdlib_.h (malloc): New declaration.
49978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49979         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49980         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49981         and HAVE_MALLOC_POSIX.
49982
49983 2007-09-09  Bruno Haible  <bruno@clisp.org>
49984
49985         * modules/realloc-posix: New file.
49986         * modules/realloc (Depends-on): Add realloc-posix.
49987         * lib/realloc.c: Include errno.h.
49988         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49989         and a POSIX-compatible realloc into a single function. Set ENOMEM
49990         when returning NULL.
49991         * m4/realloc.m4: New file.
49992         * doc/functions/realloc.texi: Mention the realloc-posix module.
49993         * lib/stdlib_.h (realloc): New declaration.
49994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49995         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49996         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49997         and HAVE_REALLOC_POSIX.
49998
49999 2007-09-09  Bruno Haible  <bruno@clisp.org>
50000
50001         * modules/calloc-posix: New file.
50002         * modules/calloc (Depends-on): Add calloc-posix.
50003         * lib/calloc.c: Include errno.h.
50004         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
50005         and a POSIX-compatible calloc into a single function. Set ENOMEM
50006         when returning NULL.
50007         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
50008         * doc/functions/calloc.texi: Mention the calloc-posix module.
50009         * lib/stdlib_.h (calloc): New declaration.
50010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50011         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
50012         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
50013         and HAVE_CALLOC_POSIX.
50014
50015 2007-09-09  Bruno Haible  <bruno@clisp.org>
50016
50017         Allow for modules to show an arbitrary notice.
50018         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
50019         * gnulib-tool: New option --extract-notice.
50020         (func_usage): Document it.
50021         (sed_extract_prog): Update.
50022         (func_get_notice): New function.
50023         (func_modules_notice): New function.
50024         (func_import, func_create_testdir): Invoke it.
50025         Suggested by Jim Meyering.
50026
50027 2007-09-09  Bruno Haible  <bruno@clisp.org>
50028
50029         * gnulib-tool: New options --verbose, --quiet.
50030         (func_usage): Document them.
50031         (verbose): New variable.
50032         (func_execute_command): New function.
50033         (func_import): Don't show the module list and the file list if
50034         $verbose < 0.
50035         (func_create_testdir): Likewise. Use func_execute_command.
50036         (func_create_megatestdir): Use func_execute_command.
50037
50038 2007-09-08  Bruno Haible  <bruno@clisp.org>
50039
50040         * gnulib-tool (func_import): Prefer rsync over wget when available,
50041         for fetching the PO files.
50042
50043 2007-09-08  Bruno Haible  <bruno@clisp.org>
50044
50045         * posix-modules: New file. Portions copied from gnulib-tool.
50046         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
50047
50048 2007-09-08  Jim Meyering  <jim@meyering.net>
50049
50050         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
50051         * lib/fpending.h: Rename from __fpending.h.
50052         * lib/fpending.c: Rename from __fpending.c.
50053         Include "fpending.h", not "__fpending.h".
50054         * lib/__fpending.h, lib/__fpending.c: Remove files.
50055         * modules/fpending (Files): Reflect new file names.
50056         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
50057
50058 2007-09-08  Bruno Haible  <bruno@clisp.org>
50059
50060         * m4/inttypes-h.m4: Remove stub file.
50061
50062 2007-09-07  Simon Josefsson  <simon@josefsson.org>
50063
50064         * doc/headers/stdint.texi: Discuss #include_next issue.
50065
50066 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50067
50068         * build-aux/bootstrap: Remove obsolete comment about wget --help.
50069
50070 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50071
50072         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
50073         in variable name.
50074
50075 2007-09-03  Jim Meyering  <jim@meyering.net>
50076
50077         New module: git-version-gen.
50078         * modules/git-version-gen: New file.
50079
50080         Import changes from coreutils for bootstrap script.
50081
50082         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
50083
50084         bootstrap: uses rsync to download the .po files
50085         * build-aux/bootstrap (po_download_command_format): New global.
50086         (download_po_files): Use rsync.
50087         (update_po_files): Don't remove .po files after download,
50088         so future rsync runs can take advantage of the copies.
50089
50090         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
50091
50092         Solve the unnecessary-.po-file-regeneration problem once and for all.
50093         * build-aux/bootstrap (download_po_files): New function, renamed from
50094         get_translations.  Now, downloads, but doesn't update LINGUAS.
50095         (update_po_files): New function.
50096
50097         bootstrap: Ignore more.
50098         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
50099         uniwidth to e.g., lib/.gitignore.
50100         (slurp): Handle the sys_stat_.h -> sys mapping, too.
50101
50102         * build-aux/bootstrap: New setting: vc_ignore.
50103         (insert_sorted_if_absent): Create $file if absent.
50104         Adapt to new, possibly empty, list: $vc_ignore.
50105
50106         bootstrap: generate more ignorable names
50107         * build-aux/bootstrap (slurp): When generating ignorable names,
50108         also map .sin to .sed, .gperf to .c, and .y to .c.
50109
50110 2007-09-03  Jim Meyering  <jim@meyering.net>
50111
50112         * build-aux/git-version-gen: New file, from coreutils.  For details, see
50113         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
50114
50115 2007-09-02  Bruno Haible  <bruno@clisp.org>
50116
50117         Fix mis-recognition of 'mcs' on QNX 6.
50118         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
50119         output contains the string "Mono".
50120         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
50121         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
50122
50123 2007-09-01  Bruno Haible  <bruno@clisp.org>
50124
50125         Fix collision between uniwidth/* and linebreak modules.
50126         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
50127         u32_width): Remove declarations.
50128         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
50129         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
50130         streq3, streq2, streq1, streq0): Remove functions.
50131         (STREQ): Remove macro.
50132         (is_cjk_encoding): Remove function.
50133         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
50134         (uc_width, u8_width, u16_width, u32_width): Remove functions.
50135         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
50136         * NEWS: Document the change.
50137
50138 2007-09-01  Bruno Haible  <bruno@clisp.org>
50139
50140         * lib/streq.h: Add double-inclusion guard.
50141
50142 2007-09-01  Karl Berry  <karl@gnu.org>
50143
50144         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
50145
50146 2007-08-28  Jim Meyering  <jim@meyering.net>
50147
50148         Rename mreadlink_with_size to areadlink_with_size.
50149         * NEWS: Document the change.
50150         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
50151         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
50152         * lib/mreadlink.h: Rename this to...
50153         * lib/areadlink.h: ...this.
50154         * modules/mreadlink-with-size: Rename this to...
50155         * modules/areadlink-with-size: ...this.
50156         * lib/canonicalize.c: Reflect the renaming.
50157         * modules/canonicalize: Likewise.
50158
50159 2007-08-26  Bruno Haible  <bruno@clisp.org>
50160
50161         * gnulib-tool (func_import): When deciding which files to remove,
50162         consider also dangling symbolic links.
50163         Reported by Eric Blake.
50164
50165 2007-08-26  Bruno Haible  <bruno@clisp.org>
50166
50167         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
50168
50169 2007-08-23  Simon Josefsson  <simon@josefsson.org>
50170
50171         * lib/readline.c: Don't include getline.h, the prototype is now
50172         found in stdio.h.
50173
50174 2007-08-23  Jim Meyering  <jim@meyering.net>
50175
50176         Getdelim touchup.
50177         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
50178         around the funlockfile call, since funlockfile never sets errno.
50179         Don't set errno upon failed realloc.
50180
50181 2007-08-22  Eric Blake  <ebb9@byu.net>
50182
50183         Getline touchups.
50184         * lib/getdelim.c (getdelim): Revert regression that required *n to
50185         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
50186         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
50187         getdelim, rather than whether implementation is missing.
50188         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
50189         * lib/stdio_.h (getline): Also declare if replacement is
50190         required.
50191         * doc/functions/getdelim.texi: New file.
50192         * doc/functions/getline.texi: Likewise.
50193         * doc/gnulib.texi (Function Substitutes): Add new files.
50194         Reported by Bruno Haible.
50195
50196 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
50197
50198         * users.txt: Add Guile.
50199
50200 2007-08-22  Eric Blake  <ebb9@byu.net>
50201
50202         * tests/test-getdelim.c (main): Use remove, not unlink.
50203         * tests/test-getline.c (main): Likewise.
50204
50205         Move getline and getdelim into stdio.h, per POSIX 200x.
50206         * modules/getline (Files): Remove getline.h.
50207         (Depends-on): Add stdio.
50208         (configure.ac): Add module indicator.
50209         * modules/getdelim (Files): Remove getdelim.h.
50210         (Depends-on): Add stdio.
50211         (configure.ac): Add module indicator.
50212         * modules/stdio (Makefile.am): Work with new indicators.
50213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
50214         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
50215         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50216         * lib/getdelim.h: Delete.
50217         * lib/getline.h: Delete.
50218         * lib/stdio_.h (getdelim, getline): Declare.
50219         * modules/getdelim-tests: New module.
50220         * modules/getline-tests: Likewise.
50221         * tests/test-getdelim.c: New file.
50222         * tests/test-getline.c: Likewise.
50223         * NEWS: Document the change.
50224         * lib/getline.c: Update choice of header.
50225         * lib/csharpcomp.c: Likewise.
50226         * lib/getpass.c: Likewise.
50227         * lib/javacomp.c: Likewise.
50228         * lib/javaversion.c: Likewise.
50229         * lib/yesno.c: Likewise.
50230         * lib/getdelim.c: Likewise.
50231         (getdelim): Set errno on failure, and avoid memory leak.
50232
50233 2007-08-19  Bruno Haible  <bruno@clisp.org>
50234
50235         * modules/closein (Depends-on): Add freadahead.
50236         * lib/closein.c: Include freadahead.h.
50237         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
50238         is zero.
50239
50240 2007-08-19  Bruno Haible  <bruno@clisp.org>
50241
50242         * modules/freadahead-tests: New file.
50243         * tests/test-freadahead.sh: New file.
50244         * tests/test-freadahead.c: New file.
50245
50246         * modules/freadahead: New file.
50247         * lib/freadahead.h: New file.
50248         * lib/freadahead.c: New file.
50249         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
50250         fbufmode, fpurge, freadable, fwritable.
50251
50252 2007-08-19  Eric Blake  <ebb9@byu.net>
50253
50254         Test yesno in combination with closein.
50255         * lib/yesno.c (yesno): Document use of stdin.
50256         * modules/yesno-tests (Files): New module.
50257         * tests/test-yesno.c (main): New file.
50258         * tests/test-yesno.sh: Likewise.
50259
50260 2007-08-19  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
50263         * lib/fseeko.c (rpl_fseeko): Likewise.
50264         * lib/fseterr.c (fseterr): Likewise.
50265
50266 2007-08-19  Bruno Haible  <bruno@clisp.org>
50267
50268         * tests/test-lseek.c (main): Disable a test for BeOS.
50269         * doc/functions/lseek.texi: Document the BeOS bug.
50270
50271 2007-08-19  Bruno Haible  <bruno@clisp.org>
50272             Eric Blake  <ebb9@byu.net>
50273
50274         * lib/lseek.c: Include <sys/stat.h>.
50275         (rpl_lseek): Add workaround code also for Unix platforms.
50276         Needed for BeOS.
50277         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
50278         * doc/functions/lseek.texi: Document BeOS definiency.
50279
50280 2007-08-18  Bruno Haible  <bruno@clisp.org>
50281
50282         * modules/fstrcmp-tests: New file.
50283         * tests/test-fstrcmp.c: New file.
50284
50285 2007-08-18  Bruno Haible  <bruno@clisp.org>
50286
50287         * modules/fstrcmp: New file, from GNU gettext with modifications.
50288         * lib/fstrcmp.h: New file, from GNU gettext.
50289         * lib/fstrcmp.c: New file, from GNU gettext.
50290         * MODULES.html.sh (String handling): Add fstrcmp.
50291
50292 2007-08-18  Bruno Haible  <bruno@clisp.org>
50293
50294         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
50295         'bool'.
50296         (diag, compareseq): Remove const from the ctxt argument.
50297         (USE_HEURISTIC): Undefine at the end.
50298
50299 2007-08-18  Jim Meyering  <jim@meyering.net>
50300
50301         New file: lib/idcache.h
50302         * NEWS: Mention the addition.
50303         * modules/idcache (Files): Add lib/idcache.h
50304         * lib/idcache.c: Include "idcache.h".
50305         Don't include <sys/types.h>.
50306         Add a FIXME comment.
50307         Move file-scoped "static" declarations to the top.
50308         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
50309
50310 2007-08-17  Bruno Haible  <bruno@clisp.org>
50311         and Paul Eggert  <eggert@cs.ucla.edu>
50312
50313         * MODULES.html.sh: Add diffseq.
50314         * modules/diffseq: New file.
50315         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
50316         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
50317
50318 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50319
50320         Import changes from coreutils for bootstrap script.
50321
50322         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
50323
50324         * build-aux/bootstrap (slurp): Work even in environments where
50325         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
50326         current code does not slurp files whose names start with ".", and
50327         this looks like it might be a troublesome area.
50328
50329         2007-07-11  Jim Meyering  <jim@meyering.net>
50330
50331         If there's a GPL vN copyright comment, require that N == 3.
50332
50333         2007-07-08  Jim Meyering  <jim@meyering.net>
50334
50335         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50336         * build-aux/bootstrap (mam_template): Move definition out of loop.
50337
50338         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50339
50340         * build-aux/bootstrap (symlink_to_dir): Rename function from
50341         symlink_to_gnulib.  Add a directory parameter.  Update all
50342         callers.
50343         (cp_mark_as_generated): Also check for -- and link to -- files in
50344         gl/.
50345
50346         2007-07-08  Jim Meyering  <jim@meyering.net>
50347
50348         Adapt to deeper hierarchy in gnulib.
50349         * build-aux/bootstrap (symlink_to_dir): If the destination
50350         directory doesn't exist, create it. This is required at least for
50351         "lib/uniwidth/cjk.h".
50352
50353         2007-05-15  Jim Meyering  <jim@meyering.net>
50354
50355         * build-aux/bootstrap: Now that generated Makefile.am files
50356         are no longer under version control, they must be created at
50357         bootstrap time.
50358
50359 2007-08-14  Ben Pfaff  <blp@gnu.org>
50360
50361         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50362
50363 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50364
50365         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50366         given the changes below.
50367         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50368         even on hosts that have padding bits beyond the supported 64.
50369
50370 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50371
50372         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50373         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50374         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50375         depends on it.
50376         (xstrtol_error): Remove.
50377         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50378         but with a different signature.
50379         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50380         * lib/xstrtol-error.c: Include exitfail.h.
50381         (xstrtol_fatal): New function, with a different signature from the
50382         old xstrtol_error, so that the caller need not worry about passing
50383         in an exit status, or about storage management of the option argument.
50384         (xstrtol_error): Now a static function.  Redo signature to
50385         implement xstrtol_fatal.  Output the correct number of hyphens in
50386         front of the option so that the caller need not worry about
50387         storage management.
50388         (N_): New macro.
50389         (_): Remove; not used now.
50390         * modules/xstrtol: Depend on getopt.
50391         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50392         of old STRTOL_FATAL_ERROR macro.
50393         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50394         of test program.
50395         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50396         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50397
50398 2007-08-08  Eric Blake  <ebb9@byu.net>
50399
50400         * lib/xstrtol-error.c: Add missing include.
50401
50402         Move xstrtol messages into gnulib domain, when --pobase is used.
50403         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50404         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50405         * modules/xstrtol (Files): Distribute new file.
50406         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50407         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50408         * tests/test-xstrtol.c: ...into new file.
50409         * tests/test-xstrtoul.c: Also test xstrtoul.
50410         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50411         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50412         * tests/test-xstrtol.sh: Drive the tests.
50413         * tests/test-xstrtoimax.sh: Likewise.
50414         * tests/test-xstrtoumax.sh: Likewise.
50415         * modules/xstrtol-tests: New module.
50416         * modules/xstrtoimax-tests: Likewise.
50417         * modules/xstrtoumax-tests: Likewise.
50418
50419 2007-08-08  Jim Meyering  <jim@meyering.net>
50420
50421         New function: mfile_name_concat.
50422         * lib/filenamecat.c (mfile_name_concat): New function, just like
50423         file_name_concat, but return NULL upon failure rather than exiting
50424         with a diagnostic.
50425         * lib/filenamecat.h: Declare it.
50426
50427 2007-08-07  Bruno Haible  <bruno@clisp.org>
50428
50429         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50430         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50431         warning from gcc.
50432         Reported by Eric Blake.
50433
50434 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50435
50436         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50437         * modules/crypto/arcfour (License): Likewise.
50438         * modules/crypto/des-tests (License): Likewise.
50439         * modules/crypto/gc-arctwo-tests (License): Likewise.
50440         * modules/crypto/gc-des-tests (License): Likewise.
50441         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50442         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50443         * modules/crypto/gc-md2-tests (License): Likewise.
50444         * modules/crypto/gc-md4-tests (License): Likewise.
50445         * modules/crypto/gc-md5-tests (License): Likewise.
50446         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50447         * modules/crypto/gc-rijndael-tests (License): Likewise.
50448         * modules/crypto/gc-sha1-tests (License): Likewise.
50449         * modules/crypto/gc-tests (License): Likewise.
50450         * modules/crypto/hmac-md5 (License): Likewise.
50451         * modules/crypto/hmac-sha1 (License): Likewise.
50452         * modules/crypto/md2-tests (License): Likewise.
50453         * modules/crypto/md4-tests (License): Likewise.
50454         * modules/crypto/md5 (License): Likewise.
50455         * modules/crypto/rijndael (License): Likewise.
50456         * modules/crypto/sha1 (License): Likewise.
50457         * modules/memxor (License): Likewise.
50458
50459 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50460         and Bruno Haible  <bruno@clisp.org>
50461
50462         * NEWS: Describe interface changes to human, xstrtol.
50463         * lib/human.h: Include <xstrtol.h>.
50464         (human_options): Return enum strtol_error, not int.  Remove
50465         bool arg; take int * instead.
50466         * lib/human.c: Don't include "gettext.h".
50467         (_): Remove; no longer used.
50468         Don't include <xstrtol.h>, since human.h does it.
50469         (human_options): Adjust to abovementioned interface changes.
50470         Do not report error to stderr; that's now the caller's
50471         responsibility.
50472         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50473         interface change.
50474         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50475         Str, Argument_type_string.  All uses changed.  Put " argument"
50476         in diagnostics to make them clearer.  Change wording of suffix
50477         message for clarity.
50478         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50479         Argument_type_string.
50480         (STRTOL_FATAL_WARN): Remove; no longer used.
50481         * modules/human (Depends-on): Remove gettext-h.
50482
50483 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50484
50485         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50486
50487 2007-07-31  Bruno Haible  <bruno@clisp.org>
50488
50489         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50490         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50491         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50492
50493 2007-07-31  Bruno Haible  <bruno@clisp.org>
50494
50495         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50496         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50497
50498 2007-07-30  Bruno Haible  <bruno@clisp.org>
50499
50500         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50501         * modules/c-ctype (License): Likewise.
50502         * modules/c-strcase (License): Likewise.
50503         * modules/check-version (License): Likewise.
50504         * modules/iconv (License): Likewise.
50505         * modules/iconv_open (License): Likewise.
50506         * modules/read-file (License): Likewise.
50507         * modules/striconv (License): Likewise.
50508         * modules/strverscmp (License): Likewise.
50509         * modules/vasprintf (License): Likewise.
50510         * modules/crypto/des (License): Likewise.
50511         * modules/crypto/gc (License): Likewise.
50512         * modules/crypto/gc-arcfour (License): Likewise.
50513         * modules/crypto/gc-arctwo (License): Likewise.
50514         * modules/crypto/gc-des (License): Likewise.
50515         * modules/crypto/gc-hmac-md5 (License): Likewise.
50516         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50517         * modules/crypto/gc-md2 (License): Likewise.
50518         * modules/crypto/gc-md4 (License): Likewise.
50519         * modules/crypto/gc-md5 (License): Likewise.
50520         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50521         * modules/crypto/gc-random (License): Likewise.
50522         * modules/crypto/gc-rijndael (License): Likewise.
50523         * modules/crypto/gc-sha1 (License): Likewise.
50524         * modules/crypto/md2 (License): Likewise.
50525         * modules/crypto/md4 (License): Likewise.
50526
50527 2007-07-30  Jim Meyering  <jim@meyering.net>
50528
50529         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50530         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50531         it has valid stat data.  This bug would cause du not to count the
50532         sizes of inaccessible directories.
50533         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50534         in <http://bugzilla.redhat.com/250077>.
50535
50536 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50537             Bruno Haible  <bruno@clisp.org>
50538
50539         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50540         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50541         #include_next, gives a diagnostic about it, but reports no error in
50542         the exit code.
50543         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50544
50545 2007-07-24  Ben Pfaff  <blp@gnu.org>
50546
50547         Improve name: "count-one-bits" is better than "popcount".
50548         * MODULES.html.sh: Update name.
50549         * lib/popcount.h: Renamed lib/count-one-bits.h.
50550         (popcount): Renamed count_one_bits.
50551         (popcountl): Renamed count_one_bits_l.
50552         (popcountll): Renamed count_one_bits_ll.
50553         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50554         * modules/popcount: Renamed module/count-one-bits.
50555         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50556         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50557
50558 2007-07-23  Ben Pfaff  <blp@gnu.org>
50559
50560         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50561         better code generation, and add U to large constants to avoid
50562         warnings, in non-GCC case.
50563         Suggested by Bruno Haible.
50564
50565 2007-07-23  Ben Pfaff  <blp@gnu.org>
50566
50567         * lib/popcount.h: Use verify_true instead of if...abort.
50568         * modules/popcount: Depend on verify module.
50569         Suggested by Jim Meyering.
50570
50571 2007-07-23  Bruno Haible  <bruno@clisp.org>
50572
50573         * gnulib-tool (func_import): Create a .cvsignore file also when the
50574         directory is not yet in CVS but the toplevel directory is. When
50575         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50576         Reported by Karl Berry.
50577
50578 2007-07-22  Ben Pfaff  <blp@gnu.org>
50579
50580         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50581         case.
50582         Suggested by Eric Blake.
50583
50584 2007-07-22  Ben Pfaff  <blp@gnu.org>
50585
50586         New module: popcount.
50587         * MODULES.html.sh: Add popcount.
50588         * modules/popcount: New file.
50589         * modules/popcount-tests: New file.
50590         * tests/test-popcount.c: New file.
50591         * lib/popcount.h: New file.
50592         * m4/popcount.m4: New file.
50593
50594 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50595
50596         * build-aux/announce-gen: Update to GPLv3.
50597
50598         * build-aux/config.guess: Update from config.
50599
50600 2007-07-21  Bruno Haible  <bruno@clisp.org>
50601
50602         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50603         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50604
50605 2007-07-20  Jim Meyering  <jim@meyering.net>
50606
50607         * check-module: Diagnose a self-dependency.
50608
50609 2007-07-19  Bruno Haible  <bruno@clisp.org>
50610
50611         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50612         empty.
50613         Reported by Eric Blake.
50614
50615 2007-07-18  Bruno Haible  <bruno@clisp.org>
50616
50617         * gnulib-tool: New options --po-base, --po-domain.
50618         (func_usage): Document them.
50619         (pobase, po_domain): New variables.
50620         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50621         DEFAULT_TEXT_DOMAIN.
50622         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50623         (func_import): Consider pobase and po_domain. Create a po/ directory.
50624         (func_create_testdir): Set pobase and po_domain to empty.
50625         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50626         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50627
50628 2007-07-18  Bruno Haible  <bruno@clisp.org>
50629
50630         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50631         EXTRA_DIST augmentation for files in build-aux/.
50632
50633 2007-07-16  Bruno Haible  <bruno@clisp.org>
50634
50635         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50636         * modules/getdelim (License): Likewise.
50637
50638 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50639
50640         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50641         * modules/d-type (License): Likewise.
50642         * modules/extensions (License): Likewise.
50643         * modules/fnmatch (License): Likewise.
50644         * modules/fseeko (License): Likewise.
50645         * modules/getaddrinfo (License): Likewise.
50646         * modules/getline (License): Likewise.
50647         * modules/getlogin_r (License): Likewise.
50648         * modules/getpass (License): Likewise.
50649         * modules/gettimeofday (License): Likewise.
50650         * modules/glob (License): Likewise.
50651         * modules/inet_ntop (License): Likewise.
50652         * modules/malloc (License): Likewise.
50653         * modules/malloca (License): Likewise.
50654         * modules/memmem (License): Likewise.
50655         * modules/mempcpy (License): Likewise.
50656         * modules/memset (License): Likewise.
50657         * modules/minmax (License): Likewise.
50658         * modules/mktime (License): Likewise.
50659         * modules/netinet_in (License): Likewise.
50660         * modules/pathmax (License): Likewise.
50661         * modules/poll (License): Likewise.
50662         * modules/regex (License): Likewise.
50663         * modules/snprintf (License): Likewise.
50664         * modules/stdbool (License): Likewise.
50665         * modules/stdint (License): Likewise.
50666         * modules/stdio (License): Likewise.
50667         * modules/strcase (License): Likewise.
50668         * modules/strcasestr (License): Likewise.
50669         * modules/strdup (License): Likewise.
50670         * modules/string (License): Likewise.
50671         * modules/strndup (License): Likewise.
50672         * modules/strnlen (License): Likewise.
50673         * modules/strpbrk (License): Likewise.
50674         * modules/strptime (License): Likewise.
50675         * modules/strsep (License): Likewise.
50676         * modules/sys_select (License): Likewise.
50677         * modules/sys_socket (License): Likewise.
50678         * modules/sys_stat (License): Likewise.
50679         * modules/sys_time (License): Likewise.
50680         * modules/time (License): Likewise.
50681         * modules/time_r (License): Likewise.
50682         * modules/timegm (License): Likewise.
50683         * modules/unistd (License): Likewise.
50684         * modules/vsnprintf (License): Likewise.
50685         * modules/wctype (License): Likewise.
50686
50687 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50688
50689         * modules/argz (License): LGPLv2+.
50690
50691 2007-07-15  Karl Berry  <karl@gnu.org>
50692
50693         * doc/gnulib.texi: revise node structure per new fdl.texi.
50694
50695 2007-07-14  Bruno Haible  <bruno@clisp.org>
50696
50697         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50698         the output file.
50699         * lib/uniname/uninames.h: Regenerated.
50700
50701 2007-07-14  Karl Berry  <karl@gnu.org>
50702
50703         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50704         omitting sectioning and index commands.
50705
50706 2007-07-13  Bruno Haible  <bruno@clisp.org>
50707
50708         New gnulib-tool option --more-symlinks.
50709         * gnulib-tool (func_usage): Document --more-symlinks.
50710         (do_copyrights): New variable.
50711         Recognize option --more-symlinks.
50712         (func_import): Don't add a copyright notice transform to
50713         sed_transform_lib_file if do_copyrights is empty.
50714
50715 2007-07-13  Bruno Haible  <bruno@clisp.org>
50716
50717         * lib/vasnprintf.c (decimal_point_char): Define also if
50718         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50719         && !NEED_PRINTF_DIRECTIVE_A.
50720         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50721         Gary V. Vaughan <gary@gnu.org>.
50722
50723 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50724
50725         * lib/inttypes_.h: Undo previous change, since it was fixed
50726         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50727
50728 2007-07-13  Bruno Haible  <bruno@clisp.org>
50729
50730         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50731         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50732
50733 2007-07-13  Jim Meyering  <jim@meyering.net>
50734
50735         df: Don't fail for Tru64's "file-on-file mount".
50736         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50737         so we fall through and use statfs instead.  Details here:
50738         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50739         Reported by Albert Chin.
50740
50741 2007-07-13  Bruno Haible  <bruno@clisp.org>
50742
50743         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50744         * modules/configmake (License): Likewise.
50745         * modules/gettext (License): Likewise.
50746         * modules/gettext-h (License): Likewise.
50747         * modules/include_next (License): Likewise.
50748         * modules/link-warning (License): Likewise.
50749         * modules/localcharset (License): Likewise.
50750         * modules/localename (License): Likewise.
50751         * modules/lock (License): Likewise.
50752         * modules/relocatable-lib-lgpl (License): Likewise.
50753         * modules/size_max (License): Likewise.
50754         * modules/vasnprintf (License): Likewise.
50755         * modules/wchar (License): Likewise.
50756         * modules/xsize (License): Likewise.
50757
50758 2007-07-13  Bruno Haible  <bruno@clisp.org>
50759
50760         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50761         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50762
50763 2007-07-12  Bruno Haible  <bruno@clisp.org>
50764
50765         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50766         in the modules files.
50767
50768 2007-07-11  Karl Berry  <karl@gnu.org>
50769
50770         * MODULES.html.sh (func_module): use
50771          sed -e '\|^'"${includefile}"'$|d'
50772          instead of /.../d, to avoid errors on $includefile's containing /.
50773
50774 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50775
50776         * gnulib-tool (func_import): Avoid duplication of --avoid
50777         statements
50778         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50779         names to `_' in variable names.
50780
50781 2007-07-10  Eric Blake  <ebb9@byu.net>
50782
50783         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50784         * NEWS: Document this change.
50785
50786 2007-07-08  Bruno Haible  <bruno@clisp.org>
50787
50788         Update to Unicode 5.0.
50789         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50790         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50791         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50792         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50793         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50794         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50795         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50796         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50797         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50798         U+10A3F, U+1D242..U+1D244.
50799         (nonspacing_table_ind): Update.
50800         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50801         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50802
50803 2007-07-08  Bruno Haible  <bruno@clisp.org>
50804
50805         Update to Unicode 5.0.
50806         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50807         code transform. Extend the name index field of unicode_name_to_code and
50808         unicode_code_to_name from 16 to 24 bits.
50809         * lib/uniname/uniname.c (unicode_character_name,
50810         unicode_name_character): Add the range 0x12xxx to the code transform.
50811         * lib/uniname/uninames.h: Regenerated.
50812         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50813
50814 2007-07-07  Bruno Haible  <bruno@clisp.org>
50815
50816         * modules/wcwidth-tests: New file.
50817         * tests/test-wcwidth.c: New file.
50818
50819         Work around MacOS X wcwidth() bug.
50820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50821         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50822         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50823         original wcwidth in non-UTF-8 locales.
50824         * modules/wcwidth (Depends-on): Add localcharset, streq,
50825         uniwidth/width.
50826         * doc/functions/wcwidth.texi: Update.
50827
50828 2007-07-07  Bruno Haible  <bruno@clisp.org>
50829
50830         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50831         (wcwidth): New declaration.
50832         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50833         macros.
50834         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50835         here. Prepare for creating <wchar.h> unconditionally.
50836         * modules/wchar (Depends-on): Add link-warning.
50837         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50838         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50839         * lib/wcwidth.h: Remove file.
50840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50841         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50842         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50843         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50844         (Include): Replace wcwidth.h with <wchar.h>.
50845         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50846         * lib/mbchar.h: Don't include wcwidth.h.
50847         * lib/mbswidth.c: Likewise.
50848         * NEWS: Mention the change.
50849
50850 2007-07-07  Bruno Haible  <bruno@clisp.org>
50851
50852         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50853         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50854         definition with an external declaration.
50855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50856         defined as a function. Remove AC_C_INLINE requirement.
50857         * modules/wcwidth (Files): Add lib/wcwidth.c.
50858         (Makefile.am): Remove redundant statement.
50859
50860 2007-07-07  Bruno Haible  <bruno@clisp.org>
50861
50862         * MODULES.html.sh (Unicode string functions): Add the new modules.
50863
50864         * tests/uniwidth/test-u32-strwidth.c: New file.
50865         * modules/uniwidth/u32-strwidth-tests: New file.
50866
50867         * lib/uniwidth/u32-strwidth.c: New file.
50868         * modules/uniwidth/u32-strwidth: New file.
50869
50870         * tests/uniwidth/test-u16-strwidth.c: New file.
50871         * modules/uniwidth/u16-strwidth-tests: New file.
50872
50873         * lib/uniwidth/u16-strwidth.c: New file.
50874         * modules/uniwidth/u16-strwidth: New file.
50875
50876         * tests/uniwidth/test-u8-strwidth.c: New file.
50877         * modules/uniwidth/u8-strwidth-tests: New file.
50878
50879         * lib/uniwidth/u8-strwidth.c: New file.
50880         * modules/uniwidth/u8-strwidth: New file.
50881
50882         * tests/uniwidth/test-u32-width.c: New file.
50883         * modules/uniwidth/u32-width-tests: New file.
50884
50885         * lib/uniwidth/u32-width.c: New file.
50886         * modules/uniwidth/u32-width: New file.
50887
50888         * tests/uniwidth/test-u16-width.c: New file.
50889         * modules/uniwidth/u16-width-tests: New file.
50890
50891         * lib/uniwidth/u16-width.c: New file.
50892         * modules/uniwidth/u16-width: New file.
50893
50894         * tests/uniwidth/test-u8-width.c: New file.
50895         * modules/uniwidth/u8-width-tests: New file.
50896
50897         * lib/uniwidth/u8-width.c: New file.
50898         * modules/uniwidth/u8-width: New file.
50899
50900         * tests/uniwidth/test-uc_width.c: New file.
50901         * modules/uniwidth/width-tests: New file.
50902
50903         * lib/uniwidth/width.c: New file, from GNU libiconv.
50904         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50905         * modules/uniwidth/width: New file.
50906
50907         * lib/uniwidth.h: New file, from GNU libiconv.
50908         * modules/uniwidth/base: New file.
50909
50910 2007-07-07  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/uniname.h: New file, from GNU gettext.
50913         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50914         * lib/uniname/uninames.h: New file, from GNU gettext.
50915         * lib/uniname/uniname.c: New file, from GNU gettext.
50916         * tests/uniname/test-uninames.sh: New file.
50917         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50918         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50919         * modules/uniname/base: New file.
50920         * modules/uniname/uniname: New file.
50921         * modules/uniname/uniname-tests: New file.
50922         * MODULES.html.sh (Unicode string functions): Add the new modules.
50923
50924 2007-07-06  Bruno Haible  <bruno@clisp.org>
50925
50926         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50927
50928 2007-07-06  Bruno Haible  <bruno@clisp.org>
50929
50930         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50931         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50932         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50933         include <sys/time.h>.
50934         Reported by Eric Blake.
50935
50936 2007-07-06  Eric Blake  <ebb9@byu.net>
50937
50938         Fix testing canonicalize on cygwin.
50939         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50940         Revert patch from 2007-06-19.
50941         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50942         canonicalize module is also in use.
50943         * tests/test-canonicalize.c: New file.
50944         * tests/test-canonicalize.sh: Likewise.
50945         * modules/canonicalize-tests: Likewise.
50946
50947 2007-07-06  Jim Meyering  <jim@meyering.net>
50948
50949         * lib/getugroups.c (getugroups): Detect getgrent failure.
50950         Adjust comment to reflect reality: this function may return -1.
50951
50952 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50953
50954         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50955         the new TP address.
50956         (usage): Fix typo
50957         (gnulib_mk): New variable.
50958
50959 2007-07-05  Jim Meyering  <jim@meyering.net>
50960
50961         Don't let endgrent clobber errno, no matter how improbable.
50962         * lib/getugroups.c (getugroups): Save and restore errno around
50963         endgrent call.
50964
50965         Close the group DB even when failing with 2^31 or more members.
50966         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50967
50968 2007-07-04  Jim Meyering  <jim@meyering.net>
50969
50970         * lib/getugroups.h: New file.
50971         * lib/getugroups.c: Include "getugroups.h".
50972         Remove uses of "register" keyword.
50973         Move local variable, "cp", down into scope where used.
50974         Give "username" parameter the "const" attribute.
50975         * modules/getugroups (Files): Add lib/getugroups.h
50976
50977 2007-07-04  Karl Berry  <karl@gnu.org>
50978
50979         * MODULES.html.sh (func_all_modules): Complete rename of
50980         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50981
50982 2007-07-02  Bruno Haible  <bruno@clisp.org>
50983
50984         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50985         mode, when inttypes.h comes from gnulib.
50986         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50987
50988 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50989
50990         * NEWS: Mention lgpl module name change.
50991
50992         * modules/lgpl-2.1: Renamed from lgpl.
50993
50994         * NEWS: Mention gpl module name change.
50995
50996         * modules/gpl-3.0: New file, based on gpl-2.0.
50997
50998         * modules/gpl-2.0: Renamed from gpl.
50999
51000         * modules/gpl: Fix filename, doc/gpl.texi is now found at
51001         doc/gpl-2.0.texi.
51002
51003 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51004
51005         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
51006         #define __STDC_LIMIT_MACROS temporarily while including
51007         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
51008         Problem reported by Joel E. Denny in
51009         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
51010
51011 2007-07-01  Bruno Haible  <bruno@clisp.org>
51012
51013         * lib/unistdio.h: New file.
51014         * lib/unistdio/u-asnprintf.h: New file.
51015         * lib/unistdio/u-asprintf.h: New file.
51016         * lib/unistdio/u-printf-args.c: New file.
51017         * lib/unistdio/u-printf-args.h: New file.
51018         * lib/unistdio/u-printf-parse.h: New file.
51019         * lib/unistdio/u-snprintf.h: New file.
51020         * lib/unistdio/u-sprintf.h: New file.
51021         * lib/unistdio/u-vasprintf.h: New file.
51022         * lib/unistdio/u-vsnprintf.h: New file.
51023         * lib/unistdio/u-vsprintf.h: New file.
51024         * lib/unistdio/ulc-asnprintf.c: New file.
51025         * lib/unistdio/ulc-asprintf.c: New file.
51026         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51027         * lib/unistdio/ulc-printf-parse.c: New file.
51028         * lib/unistdio/ulc-snprintf.c: New file.
51029         * lib/unistdio/ulc-sprintf.c: New file.
51030         * lib/unistdio/ulc-vasnprintf.c: New file.
51031         * lib/unistdio/ulc-vasprintf.c: New file.
51032         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
51033         * lib/unistdio/ulc-vsnprintf.c: New file.
51034         * lib/unistdio/ulc-vsprintf.c: New file.
51035         * lib/unistdio/u8-asnprintf.c: New file.
51036         * lib/unistdio/u8-asprintf.c: New file.
51037         * lib/unistdio/u8-printf-parse.c: New file.
51038         * lib/unistdio/u8-snprintf.c: New file.
51039         * lib/unistdio/u8-sprintf.c: New file.
51040         * lib/unistdio/u8-vasnprintf.c: New file.
51041         * lib/unistdio/u8-vasprintf.c: New file.
51042         * lib/unistdio/u8-vsnprintf.c: New file.
51043         * lib/unistdio/u8-vsprintf.c: New file.
51044         * lib/unistdio/u8-u8-asnprintf.c: New file.
51045         * lib/unistdio/u8-u8-asprintf.c: New file.
51046         * lib/unistdio/u8-u8-snprintf.c: New file.
51047         * lib/unistdio/u8-u8-sprintf.c: New file.
51048         * lib/unistdio/u8-u8-vasnprintf.c: New file.
51049         * lib/unistdio/u8-u8-vasprintf.c: New file.
51050         * lib/unistdio/u8-u8-vsnprintf.c: New file.
51051         * lib/unistdio/u8-u8-vsprintf.c: New file.
51052         * lib/unistdio/u16-asnprintf.c: New file.
51053         * lib/unistdio/u16-asprintf.c: New file.
51054         * lib/unistdio/u16-printf-parse.c: New file.
51055         * lib/unistdio/u16-snprintf.c: New file.
51056         * lib/unistdio/u16-sprintf.c: New file.
51057         * lib/unistdio/u16-vasnprintf.c: New file.
51058         * lib/unistdio/u16-vasprintf.c: New file.
51059         * lib/unistdio/u16-vsnprintf.c: New file.
51060         * lib/unistdio/u16-vsprintf.c: New file.
51061         * lib/unistdio/u16-u16-asnprintf.c: New file.
51062         * lib/unistdio/u16-u16-asprintf.c: New file.
51063         * lib/unistdio/u16-u16-snprintf.c: New file.
51064         * lib/unistdio/u16-u16-sprintf.c: New file.
51065         * lib/unistdio/u16-u16-vasnprintf.c: New file.
51066         * lib/unistdio/u16-u16-vasprintf.c: New file.
51067         * lib/unistdio/u16-u16-vsnprintf.c: New file.
51068         * lib/unistdio/u16-u16-vsprintf.c: New file.
51069         * lib/unistdio/u32-asnprintf.c: New file.
51070         * lib/unistdio/u32-asprintf.c: New file.
51071         * lib/unistdio/u32-printf-parse.c: New file.
51072         * lib/unistdio/u32-snprintf.c: New file.
51073         * lib/unistdio/u32-sprintf.c: New file.
51074         * lib/unistdio/u32-vasnprintf.c: New file.
51075         * lib/unistdio/u32-vasprintf.c: New file.
51076         * lib/unistdio/u32-vsnprintf.c: New file.
51077         * lib/unistdio/u32-vsprintf.c: New file.
51078         * lib/unistdio/u32-u32-asnprintf.c: New file.
51079         * lib/unistdio/u32-u32-asprintf.c: New file.
51080         * lib/unistdio/u32-u32-snprintf.c: New file.
51081         * lib/unistdio/u32-u32-sprintf.c: New file.
51082         * lib/unistdio/u32-u32-vasnprintf.c: New file.
51083         * lib/unistdio/u32-u32-vasprintf.c: New file.
51084         * lib/unistdio/u32-u32-vsnprintf.c: New file.
51085         * lib/unistdio/u32-u32-vsprintf.c: New file.
51086         * tests/unistdio/test-ulc-asnprintf1.c: New file.
51087         * tests/unistdio/test-ulc-asnprintf1.h: New file.
51088         * tests/unistdio/test-ulc-printf1.h: New file.
51089         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
51090         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
51091         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
51092         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
51093         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
51094         * tests/unistdio/test-ulc-vasprintf1.c: New file.
51095         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
51096         * tests/unistdio/test-ulc-vsprintf1.c: New file.
51097         * tests/unistdio/test-u8-asnprintf1.c: New file.
51098         * tests/unistdio/test-u8-asnprintf1.h: New file.
51099         * tests/unistdio/test-u8-printf1.h: New file.
51100         * tests/unistdio/test-u8-vasnprintf1.c: New file.
51101         * tests/unistdio/test-u8-vasnprintf2.c: New file.
51102         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
51103         * tests/unistdio/test-u8-vasnprintf3.c: New file.
51104         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
51105         * tests/unistdio/test-u8-vasprintf1.c: New file.
51106         * tests/unistdio/test-u8-vsnprintf1.c: New file.
51107         * tests/unistdio/test-u8-vsprintf1.c: New file.
51108         * tests/unistdio/test-u16-asnprintf1.c: New file.
51109         * tests/unistdio/test-u16-asnprintf1.h: New file.
51110         * tests/unistdio/test-u16-printf1.h: New file.
51111         * tests/unistdio/test-u16-vasnprintf1.c: New file.
51112         * tests/unistdio/test-u16-vasnprintf2.c: New file.
51113         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
51114         * tests/unistdio/test-u16-vasnprintf3.c: New file.
51115         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
51116         * tests/unistdio/test-u16-vasprintf1.c: New file.
51117         * tests/unistdio/test-u16-vsnprintf1.c: New file.
51118         * tests/unistdio/test-u16-vsprintf1.c: New file.
51119         * tests/unistdio/test-u32-asnprintf1.c: New file.
51120         * tests/unistdio/test-u32-asnprintf1.h: New file.
51121         * tests/unistdio/test-u32-printf1.h: New file.
51122         * tests/unistdio/test-u32-vasnprintf1.c: New file.
51123         * tests/unistdio/test-u32-vasnprintf2.c: New file.
51124         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
51125         * tests/unistdio/test-u32-vasnprintf3.c: New file.
51126         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
51127         * tests/unistdio/test-u32-vasprintf1.c: New file.
51128         * tests/unistdio/test-u32-vsnprintf1.c: New file.
51129         * tests/unistdio/test-u32-vsprintf1.c: New file.
51130         * modules/unistdio/base: New file.
51131         * modules/unistdio/u-printf-args: New file.
51132         * modules/unistdio/ulc-asnprintf: New file.
51133         * modules/unistdio/ulc-asprintf: New file.
51134         * modules/unistdio/ulc-fprintf: New file.
51135         * modules/unistdio/ulc-printf-parse: New file.
51136         * modules/unistdio/ulc-snprintf: New file.
51137         * modules/unistdio/ulc-sprintf: New file.
51138         * modules/unistdio/ulc-vasnprintf: New file.
51139         * modules/unistdio/ulc-vasprintf: New file.
51140         * modules/unistdio/ulc-vfprintf: New file.
51141         * modules/unistdio/ulc-vsnprintf: New file.
51142         * modules/unistdio/ulc-vsprintf: New file.
51143         * modules/unistdio/u8-asnprintf: New file.
51144         * modules/unistdio/u8-asprintf: New file.
51145         * modules/unistdio/u8-printf-parse: New file.
51146         * modules/unistdio/u8-snprintf: New file.
51147         * modules/unistdio/u8-sprintf: New file.
51148         * modules/unistdio/u8-vasnprintf: New file.
51149         * modules/unistdio/u8-vasprintf: New file.
51150         * modules/unistdio/u8-vsnprintf: New file.
51151         * modules/unistdio/u8-vsprintf: New file.
51152         * modules/unistdio/u8-u8-asnprintf: New file.
51153         * modules/unistdio/u8-u8-asprintf: New file.
51154         * modules/unistdio/u8-u8-snprintf: New file.
51155         * modules/unistdio/u8-u8-sprintf: New file.
51156         * modules/unistdio/u8-u8-vasnprintf: New file.
51157         * modules/unistdio/u8-u8-vasprintf: New file.
51158         * modules/unistdio/u8-u8-vsnprintf: New file.
51159         * modules/unistdio/u8-u8-vsprintf: New file.
51160         * modules/unistdio/u16-asnprintf: New file.
51161         * modules/unistdio/u16-asprintf: New file.
51162         * modules/unistdio/u16-printf-parse: New file.
51163         * modules/unistdio/u16-snprintf: New file.
51164         * modules/unistdio/u16-sprintf: New file.
51165         * modules/unistdio/u16-vasnprintf: New file.
51166         * modules/unistdio/u16-vasprintf: New file.
51167         * modules/unistdio/u16-vsnprintf: New file.
51168         * modules/unistdio/u16-vsprintf: New file.
51169         * modules/unistdio/u16-u16-asnprintf: New file.
51170         * modules/unistdio/u16-u16-asprintf: New file.
51171         * modules/unistdio/u16-u16-snprintf: New file.
51172         * modules/unistdio/u16-u16-sprintf: New file.
51173         * modules/unistdio/u16-u16-vasnprintf: New file.
51174         * modules/unistdio/u16-u16-vasprintf: New file.
51175         * modules/unistdio/u16-u16-vsnprintf: New file.
51176         * modules/unistdio/u16-u16-vsprintf: New file.
51177         * modules/unistdio/u32-asnprintf: New file.
51178         * modules/unistdio/u32-asprintf: New file.
51179         * modules/unistdio/u32-printf-parse: New file.
51180         * modules/unistdio/u32-snprintf: New file.
51181         * modules/unistdio/u32-sprintf: New file.
51182         * modules/unistdio/u32-vasnprintf: New file.
51183         * modules/unistdio/u32-vasprintf: New file.
51184         * modules/unistdio/u32-vsnprintf: New file.
51185         * modules/unistdio/u32-vsprintf: New file.
51186         * modules/unistdio/u32-u32-asnprintf: New file.
51187         * modules/unistdio/u32-u32-asprintf: New file.
51188         * modules/unistdio/u32-u32-snprintf: New file.
51189         * modules/unistdio/u32-u32-sprintf: New file.
51190         * modules/unistdio/u32-u32-vasnprintf: New file.
51191         * modules/unistdio/u32-u32-vasprintf: New file.
51192         * modules/unistdio/u32-u32-vsnprintf: New file.
51193         * modules/unistdio/u32-u32-vsprintf: New file.
51194         * modules/unistdio/ulc-asnprintf-tests: New file.
51195         * modules/unistdio/ulc-vasnprintf-tests: New file.
51196         * modules/unistdio/ulc-vasprintf-tests: New file.
51197         * modules/unistdio/ulc-vsnprintf-tests: New file.
51198         * modules/unistdio/ulc-vsprintf-tests: New file.
51199         * modules/unistdio/u8-asnprintf-tests: New file.
51200         * modules/unistdio/u8-vasnprintf-tests: New file.
51201         * modules/unistdio/u8-vasprintf-tests: New file.
51202         * modules/unistdio/u8-vsnprintf-tests: New file.
51203         * modules/unistdio/u8-vsprintf-tests: New file.
51204         * modules/unistdio/u16-asnprintf-tests: New file.
51205         * modules/unistdio/u16-vasnprintf-tests: New file.
51206         * modules/unistdio/u16-vasprintf-tests: New file.
51207         * modules/unistdio/u16-vsnprintf-tests: New file.
51208         * modules/unistdio/u16-vsprintf-tests: New file.
51209         * modules/unistdio/u32-asnprintf-tests: New file.
51210         * modules/unistdio/u32-vasnprintf-tests: New file.
51211         * modules/unistdio/u32-vasprintf-tests: New file.
51212         * modules/unistdio/u32-vsnprintf-tests: New file.
51213         * modules/unistdio/u32-vsprintf-tests: New file.
51214         * MODULES.html.sh (Unicode string functions): Add the new modules.
51215
51216 2007-07-01  Bruno Haible  <bruno@clisp.org>
51217
51218         * lib/sprintf.c (sprintf): Limit the available length estimation,
51219         to avoid address wraparound.
51220         * lib/vsprintf.c (vsprintf): Likewise.
51221         * modules/sprintf-posix (Dependencies): Add stdint.
51222         * modules/vsprintf-posix (Dependencies): Likewise.
51223
51224 2007-07-01  Bruno Haible  <bruno@clisp.org>
51225
51226         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
51227         Windows PATH as well. Conservative double-quoting. Comments.
51228
51229 2007-07-01  Bruno Haible  <bruno@clisp.org>
51230             Eric Blake  <ebb9@byu.net>
51231             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51232
51233         * gnulib-tool (self_abspathname): Fix algorithm to cope with
51234         empty components in $PATH, denoting '.'.
51235
51236 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51237
51238         * gnulib-tool: Fix indentation.
51239         (func_create_megatestdir): Likewise.
51240         Report by Bruno Haible.
51241
51242 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51243
51244         Sync from Automake.
51245         * build-aux/gnupload: Fix shell portability issues with for loops.
51246         Report by Karl Berry.
51247
51248 2007-06-29  Simon Josefsson  <simon@josefsson.org>
51249
51250         * build-aux/maint.mk (POURL): Use translationproject.org.
51251
51252 2007-06-27  Simon Josefsson  <simon@josefsson.org>
51253             Bruno Haible  <bruno@clisp.org>
51254
51255         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
51256         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
51257         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
51258         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
51259         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
51260
51261 2007-06-27  Bruno Haible  <bruno@clisp.org>
51262
51263         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
51264         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
51265
51266 2007-06-26  Karl Berry  <karl@gnu.org>
51267
51268         * MODULES.html.sh: remove xreadlink-with-size.
51269
51270 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51271
51272         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
51273         method that I hope also handles the double-include problem noted
51274         by Bruno Haible in
51275         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
51276
51277 2007-06-23  Bruno Haible  <bruno@clisp.org>
51278
51279         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51280         Don't let the 'mostlyclean' target fail if the last subdirectory could
51281         not be removed.
51282         Reported by Karl Berry.
51283
51284 2007-06-23  Bruno Haible  <bruno@clisp.org>
51285
51286         * gnulib-tool (echo): Add a speedier workaround for ksh.
51287         * tests/test-echo.sh: Likewise.
51288
51289 2007-06-23  Bruno Haible  <bruno@clisp.org>
51290
51291         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
51292         * tests/test-echo.sh: Likewise.
51293
51294 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51295
51296         * gnulib-tool (IFS): Initialize early, so we don't set it to
51297         empty later.
51298         (self_abspathname): Rewrite algorithm to set it, reindent.
51299         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
51300         (func_create_megatestdir): Merge some sed scripts.
51301
51302 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51303
51304         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
51305         exposed by Sun Studio 11 cc on Solaris 8.
51306
51307 2007-06-22  Bruno Haible  <bruno@clisp.org>
51308
51309         * gnulib-tool (echo): Ensure the echo primitive does not interpret
51310         backslashes.
51311         * tests/test-echo.sh: New file.
51312
51313 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51314
51315         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
51316         simplify `sed_replace_build_aux' scripts, they are portable but
51317         echoing them with `echo' is not.
51318         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
51319
51320 2007-06-21  Karl Berry  <karl@gnu.org>
51321
51322         * config/srclist.txt: guess we can't handle the licenses via
51323         srclist at the moment.
51324
51325 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51326
51327         * MODULES.html.sh: Add include_next.
51328         * modules/include_next: New file.
51329
51330 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51331
51332         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51333         INCLUDE_NEXT.
51334         (gl_CHECK_NEXT_HEADERS): New macro.
51335         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51336         the obsolescent gl_ABSOLUTE_HEADER.
51337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51338         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51339         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51340         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51341         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51342         * m4/math_h.m4 (gl_MATH_H): Likewise.
51343         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51344         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51345         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51346         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51347         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51348         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51349         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51350         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51351         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51352         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51353         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51354         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51355         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51356         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51357         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51358         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51359         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51360         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51361         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51362         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51363         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51364         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51365         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51366         * lib/float_.h: Likewise.
51367         * lib/inttypes_.h: Likewise.
51368         * lib/math_.h: Likewise.
51369         * lib/search_.h: Likewise.
51370         * lib/signal_.h: Likewise.
51371         * lib/stdint_.h: Likewise.
51372         * lib/stdio_.h: Likewise.
51373         * lib/stdlib_.h: Likewise.
51374         * lib/string_.h: Likewise.
51375         * lib/sys_stat_.h: Likewise.
51376         * lib/sys_time_.h: Likewise.
51377         * lib/time_.h: Likewise.
51378         * lib/unistd_.h: Likewise.
51379         * lib/wchar_.h: Likewise.
51380         * lib/wctype_.h: Likewise.
51381         * lib/dirent_.h: Likewise.
51382         * lib/iconv_.h: Likewise.
51383         * lib/locale_.h: Likewise.
51384         * lib/netinet_in_.h: Likewise.
51385         * lib/sys_select_.h: Likewise.
51386         * lib/sys_socket_.h: Likewise.
51387         * lib/sysexits_.h: Likewise.
51388         * modules/fcntl (Depends-on): Depend on include_next, not
51389         absolute_header.
51390         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51391         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51392         * modules/fchdir: Likewise.
51393         * modules/float: Likewise.
51394         * modules/iconv_open: Likewise.
51395         * modules/inttypes: Likewise.
51396         * modules/locale: Likewise.
51397         * modules/math: Likewise.
51398         * modules/netinet_in: Likewise.
51399         * modules/search: Likewise.
51400         * modules/signal: Likewise.
51401         * modules/stdint: Likewise.
51402         * modules/stdio: Likewise.
51403         * modules/stdlib: Likewise.
51404         * modules/string: Likewise.
51405         * modules/sys_select: Likewise.
51406         * modules/sys_socket: Likewise.
51407         * modules/sys_stat: Likewise.
51408         * modules/sys_time: Likewise.
51409         * modules/sysexits: Likewise.
51410         * modules/time: Likewise.
51411         * modules/unistd: Likewise.
51412         * modules/wchar: Likewise.
51413         * modules/wctype: Likewise.
51414         * modules/sys_stat: Change maintainer to "all".
51415         * modules/unistd: Likewise.
51416
51417 2007-06-20  Karl Berry  <karl@gnu.org>
51418
51419         * config/srclist.txt: track www changes in license files.
51420
51421 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51422
51423         * build-aux/bootstrap: Remove stray dot.
51424         Make sure build_aux settings are honored when linking
51425         gnulib_extra_files.
51426
51427 2007-06-19  Eric Blake  <ebb9@byu.net>
51428
51429         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51430         Allow compilation on cygwin.
51431
51432 2007-06-19  Jim Meyering  <jim@meyering.net>
51433
51434         xreadlink-with-size: Remove module.  No longer used.
51435         Ex-callers now use xreadlink or mreadlink-with-size.
51436         * modules/xreadlink-with-size: Remove module.
51437         * lib/xreadlink-with-size.c: Remove file.
51438         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51439         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51440         just before the function definition *is* accurate.
51441
51442         Eliminate one way canonicalize_filename_mode could exit.
51443         * lib/canonicalize.c (canonicalize_filename_mode):
51444         Use mreadlink_with_size, not xreadlink_with_size.
51445
51446 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51447
51448         Detect porting problems to FreeBSD/arm, which has time_t wider than
51449         long int.  Original problem reported for GNU diff by Xin Li in
51450         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51451         * modules/getdate (Depends-on): Add intprops, verify.
51452         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51453         is an integer type no wider than long int.
51454
51455 2007-06-18  Jim Meyering  <jim@meyering.net>
51456
51457         New module: mreadlink-with-size.
51458         * MODULES.html.sh: Add mreadlink-with-size.
51459         * modules/mreadlink-with-size: New module
51460         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51461         not xreadlink-with-size.
51462         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51463
51464 2007-06-16  Bruno Haible  <bruno@clisp.org>
51465
51466         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51467         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51468         Reported by Gary V. Vaughan <gary@gnu.org>.
51469
51470 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51471
51472         Revamp lchown so that it lives in unistd.h where it belongs.
51473         * lib/lchown.h: Remove.
51474         * lib/dirchownmod.c: Don't include lib/lchown.h.
51475         * lib/fchownat.c: Likewise.
51476         * lib/openat.c: Likewise.
51477         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51478         does not follow symlinks.
51479         (EOPNOTSUPP): Define if not defined.
51480         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51481         is defined to 0.
51482         (lchown): New decl.
51483         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51484         Do not check for lchown decl.
51485         Set REPLACE_LCHOWN.
51486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51487         REPLACE_LCHOWN.
51488         * modules/chown: Make it clear it follows symlinks.
51489         * modules/lchown: Make it clear it doesn't follow symlinks.
51490         (Files): Remove lib/lchown.h
51491         (Depends-on): Add unistd.
51492         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51493         (Include): Include <unistd.h>, not "lchown.h".
51494         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51495         REPLACE_LCHOWN.
51496
51497 2007-06-15  Jim Meyering  <jim@meyering.net>
51498
51499         Change license (GPL to LGPL) of fsusage and dependents.
51500         * modules/fsusage (License): Change to LGPL.
51501         * modules/full-read (License): Likewise.
51502         * modules/full-write (License): Likewise.
51503         * modules/safe-read (License): Likewise.
51504         * modules/safe-write (License): Likewise.
51505
51506 2007-06-14  Ben Pfaff  <blp@gnu.org>
51507
51508         Missing part of allocsa -> malloca transition.
51509         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51510         gl_MALLOCA.
51511
51512 2007-06-12  Bruno Haible  <bruno@clisp.org>
51513
51514         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51515         to ia64, x86_64, i386.
51516         Reported by Eric Blake.
51517
51518 2007-06-12  Bruno Haible  <bruno@clisp.org>
51519
51520         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51521         cross-compiling to x86_64.
51522
51523 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51524
51525         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51526         glitch reported by Ralf Wildenhues in
51527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51528
51529         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51530         Vin Shelton.
51531
51532 2007-06-11  Bruno Haible  <bruno@clisp.org>
51533
51534         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51535         replacement string.
51536         Reported by Eric Blake.
51537
51538 2007-06-10  Bruno Haible  <bruno@clisp.org>
51539
51540         Prepare vasnprintf code for use with Unicode strings.
51541         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51542         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51543         TYPE_U32_STRING.
51544         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51545         a_u32_string variants.
51546         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51547         * lib/printf-args.c: Don't include config.h and the specification
51548         header if PRINTF_FETCHARGS is already defined.
51549         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51550         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51551         TYPE_U16_STRING, TYPE_U32_STRING.
51552         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51553         u16_directive, u16_directives, u32_directive, u32_directives): New
51554         types.
51555         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51556         New declarations.
51557         * lib/printf-parse.c: Don't include config.h and the specification
51558         header if PRINTF_PARSE is already defined. Eliminate the set of
51559         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51560         them now. Include c-ctype.h.
51561         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51562         directive and CHAR_T_ONLY_ASCII.
51563         * lib/vasnprintf.c: Don't include config.h and the specification header
51564         if VASNPRINTF is already defined.
51565         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51566         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51567         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51568         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51569         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51570         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51571         code accordingly.
51572         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51573         pad_ourselves also in this case, with the 'c' and 's' directives, and
51574         with a different notion of "width".
51575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51576
51577 2007-06-10  Bruno Haible  <bruno@clisp.org>
51578
51579         * modules/unistr/u32-mbsnlen: New file.
51580         * lib/unistr/u32-mbsnlen.c: New file.
51581
51582         * modules/unistr/u16-mbsnlen: New file.
51583         * lib/unistr/u16-mbsnlen.c: New file.
51584
51585         * modules/unistr/u8-mbsnlen: New file.
51586         * lib/unistr/u8-mbsnlen.c: New file.
51587
51588         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51589         declarations.
51590
51591 2007-06-10  Bruno Haible  <bruno@clisp.org>
51592
51593         * lib/string_.h (mbsnlen): New declaration.
51594         * lib/mbsnlen.c: New file.
51595         * m4/mbsnlen.m4: New file.
51596         * modules/mbsnlen: New file.
51597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51598         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51599         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51600
51601 2007-06-10  Bruno Haible  <bruno@clisp.org>
51602
51603         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51604
51605 2007-06-10  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51608         * lib/mbuiter.h: Likewise.
51609
51610 2007-06-10  Bruno Haible  <bruno@clisp.org>
51611
51612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51613         declaration.
51614
51615 2007-06-10  Karl Berry  <karl@gnu.org>
51616
51617         * config/srclist.txt: remove gettext entries, Bruno prefers
51618         to update individually.
51619
51620 2007-06-10  Bruno Haible  <bruno@clisp.org>
51621
51622         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51623         'maxlen'. Ensure only length + width bytes are allocated, not
51624         length + 1 + width.
51625
51626 2007-06-09  Bruno Haible  <bruno@clisp.org>
51627
51628         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51629         (CHAR_T): Remove macro.
51630         (VASNPRINTF): Update.
51631
51632 2007-06-09  Bruno Haible  <bruno@clisp.org>
51633
51634         * MODULES.html.sh (Unicode string functions): Add the new modules.
51635
51636         * modules/uniconv/u32-conv-to-enc: New file.
51637         * lib/uniconv/u32-conv-to-enc.c: New file.
51638         * modules/uniconv/u32-conv-to-enc-tests: New file.
51639         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51640
51641         * modules/uniconv/u16-conv-to-enc: New file.
51642         * lib/uniconv/u16-conv-to-enc.c: New file.
51643         * lib/uniconv/u-conv-to-enc.h: New file.
51644         * modules/uniconv/u16-conv-to-enc-tests: New file.
51645         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51646
51647         * modules/uniconv/u8-conv-to-enc: New file.
51648         * lib/uniconv/u8-conv-to-enc.c: New file.
51649         * modules/uniconv/u8-conv-to-enc-tests: New file.
51650         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51651
51652         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51653         u32_conv_to_encoding): New declarations.
51654
51655 2007-06-09  Bruno Haible  <bruno@clisp.org>
51656
51657         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51658
51659 2007-06-09  Bruno Haible  <bruno@clisp.org>
51660
51661         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51662         * modules/malloca: Renamed from modules/allocsa, updated.
51663         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51664         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51665         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51666         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51667         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51668         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51669         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51670         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51671         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51672         * modules/c-strcasestr (Depends-on): Update.
51673         * lib/c-strcasestr.c: Update.
51674         * modules/c-strstr (Depends-on): Update.
51675         * lib/c-strstr.c: Update.
51676         * modules/canonicalize-lgpl (Depends-on): Update.
51677         * lib/canonicalize-lgpl.c: Update.
51678         * modules/clean-temp (Depends-on): Update.
51679         * lib/clean-temp.c: Update.
51680         * modules/csharpcomp (Depends-on): Update.
51681         * lib/csharpcomp.c: Update.
51682         * modules/csharpexec (Depends-on): Update.
51683         * lib/csharpexec.c: Update.
51684         * modules/javacomp (Depends-on): Update.
51685         * lib/javacomp.c: Update.
51686         * modules/javaexec (Depends-on): Update.
51687         * lib/javaexec.c: Update.
51688         * modules/mbscasestr (Depends-on): Update.
51689         * lib/mbscasestr.c: Update.
51690         * modules/mbsstr (Depends-on): Update.
51691         * lib/mbsstr.c: Update.
51692         * modules/setenv (Depends-on): Update.
51693         * lib/setenv.c: Update.
51694         * modules/strcasestr (Depends-on): Update.
51695         * lib/strcasestr.c: Update.
51696         * modules/striconveha (Depends-on): Update.
51697         * lib/striconveha.c: Update.
51698         * modules/relocatable-prog-wrapper (Files): Update.
51699         * lib/relocwrapper.c: Update.
51700         * build-aux/install-reloc: Update.
51701         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51702
51703 2007-06-08  Bruno Haible  <bruno@clisp.org>
51704
51705         Port to uClibc.
51706         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51707         * lib/fpurge.c (fpurge): Likewise.
51708         * lib/freading.c (freading): Likewise.
51709         * lib/fseeko.c (rpl_fseeko): Likewise.
51710         * lib/fseterr.c (fseterr): Likewise.
51711         * lib/fwriting.c (fwriting): Likewise.
51712         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51713
51714 2007-06-08  Bruno Haible  <bruno@clisp.org>
51715
51716         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51717         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51718         * modules/gettext (Files): Add m4/intlmacosx.m4.
51719
51720 2007-06-07  Bruno Haible  <bruno@clisp.org>
51721
51722         * modules/localename-tests: New file.
51723         * tests/test-localename.c: New file.
51724
51725         New module 'localename'.
51726         * lib/localename.h: New file.
51727         * lib/localename.c: New file, from GNU gettext.
51728         * m4/localename.m4: New file.
51729         * modules/localename: New file.
51730
51731 2007-06-07  Bruno Haible  <bruno@clisp.org>
51732
51733         Work around the lack of <wchar.h> on some builds of uClibc.
51734         * doc/headers/wchar.texi: Update.
51735         * lib/wchar_.h: Include <wchar.h> only if it exists.
51736         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51737         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51738         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51739         doesn't exist.
51740         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51741         * modules/mbfile (Depends-on): Add wchar.
51742         * modules/mbiter (Depends-on): Likewise.
51743         * modules/mbuiter (Depends-on): Likewise.
51744         Reported by Simon Josefsson.
51745
51746 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51747
51748         Work around problem reported by Steven M. Schweda in
51749         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51750         Tru64 5.1B with the Compaq compiler environment installed declares
51751         an 'isblank' function but does not define it in the C library.
51752         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51753         * lib/regex_internal.h (isblank): Likewise.
51754         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51755         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51756
51757 2007-06-05  Bruno Haible  <bruno@clisp.org>
51758
51759         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51760         ia64.
51761         * modules/printf-safe: New file.
51762         * modules/fprintf-posix (Depends-on): Add printf-safe.
51763         * modules/printf-posix (Depends-on): Likewise.
51764         * modules/snprintf-posix (Depends-on): Likewise.
51765         * modules/sprintf-posix (Depends-on): Likewise.
51766         * modules/vasnprintf-posix (Depends-on): Likewise.
51767         * modules/vasprintf-posix (Depends-on): Likewise.
51768         * modules/vfprintf-posix (Depends-on): Likewise.
51769         * modules/vprintf-posix (Depends-on): Likewise.
51770         * modules/vsnprintf-posix (Depends-on): Likewise.
51771         * modules/vsprintf-posix (Depends-on): Likewise.
51772         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51773         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51774         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51775         "no" on i386, x86_64, ia64.
51776         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51777         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51778         on i386, x86_64, ia64.
51779         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51780         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51781         on i386, x86_64, ia64.
51782         * tests/test-vasnprintf-posix.c: Include float.h.
51783         (LDBL80_WORDS): New macro.
51784         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51785         on i386, x86_64, ia64.
51786         * tests/test-vasprintf-posix.c: Include float.h.
51787         (LDBL80_WORDS): New macro.
51788         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51789         on i386, x86_64, ia64.
51790         * tests/test-snprintf-posix.c: Include float.h.
51791         * tests/test-sprintf-posix.c: Likewise.
51792         * tests/test-vsnprintf-posix.c: Likewise.
51793         * tests/test-vsprintf-posix.c: Likewise.
51794
51795 2007-06-05  Bruno Haible  <bruno@clisp.org>
51796
51797         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51798         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51799         non-IEEE numbers on i386, x86_64, ia64.
51800         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51801         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51802         * tests/test-isnanl.h: Include float.h.
51803         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51804
51805 2007-06-05  Bruno Haible  <bruno@clisp.org>
51806
51807         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51808         also the %a / %A. Handle the %a / %A code before this extra handling.
51809
51810 2007-06-05  Bruno Haible  <bruno@clisp.org>
51811
51812         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51813         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51814
51815 2007-06-05  Bruno Haible  <bruno@clisp.org>
51816
51817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51818         typo in variable name.
51819
51820 2007-06-05  Eric Blake  <ebb9@byu.net>
51821
51822         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51823         Reported by Simon Josefsson.
51824
51825 2007-06-04  Bruno Haible  <bruno@clisp.org>
51826
51827         Avoid test failures on some PowerPC platforms.
51828         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51829         Define differently for PowerPC.
51830         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51831         Reported by Gary V. Vaughan <gary@gnu.org>.
51832
51833 2007-06-02  Bruno Haible  <bruno@clisp.org>
51834
51835         Fix test-stdint failure on FreeBSD/ia64.
51836         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51837         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51838         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51839         * doc/headers/stdint.texi: Update.
51840
51841 2007-06-01  Bruno Haible  <bruno@clisp.org>
51842
51843         * tests/test-binary-io.c (main): Pass a third argument to open().
51844         Reported by Gary V. Vaughan <gary@gnu.org>.
51845
51846 2007-06-01  Bruno Haible  <bruno@clisp.org>
51847
51848         * doc/functions/frexpl.texi: Update for mingw.
51849
51850 2007-06-01  Bruno Haible  <bruno@clisp.org>
51851
51852         * tests/test-lseek.c (main): Disable test of errno for invalid third
51853         argument.
51854         * doc/functions/lseek.texi: Update.
51855         Reported by Gary V. Vaughan <gary@gnu.org>.
51856
51857 2007-05-28  Bruno Haible  <bruno@clisp.org>
51858
51859         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51860
51861 2007-05-31  Eric Blake  <ebb9@byu.net>
51862
51863         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51864         cross compiling.
51865
51866 2007-05-30  Eric Blake  <ebb9@byu.net>
51867         and Bruno Haible  <bruno@clisp.org>
51868
51869         Work around mingw test failures exposed by m4-1.4.9b.
51870         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51871         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51872         moment.
51873
51874 2007-05-30  Bruno Haible  <bruno@clisp.org>
51875
51876         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51877         assuming that they are closed. Needed on HP-UX 11.
51878
51879 2007-05-29  Bruno Haible  <bruno@clisp.org>
51880
51881         Fix a problem with #include_next.
51882         * lib/dirent_.h: Split the double-inclusion guard.
51883         * lib/fcntl_.h: Likewise.
51884         * lib/float_.h: Likewise.
51885         * lib/iconv_.h: Likewise.
51886         * lib/inttypes_.h: Likewise.
51887         * lib/locale_.h: Likewise.
51888         * lib/math_.h: Likewise.
51889         * lib/netinet_in_.h: Likewise.
51890         * lib/search_.h: Likewise.
51891         * lib/signal_.h: Likewise.
51892         * lib/stdint_.h: Likewise.
51893         * lib/stdio_.h: Likewise.
51894         * lib/stdlib_.h: Likewise.
51895         * lib/string_.h: Likewise.
51896         * lib/sys_select_.h: Likewise.
51897         * lib/sys_socket_.h: Likewise.
51898         * lib/sys_stat_.h: Likewise.
51899         * lib/sys_time_.h: Likewise.
51900         * lib/sysexits_.h: Likewise.
51901         * lib/time_.h: Likewise.
51902         * lib/unistd_.h: Likewise.
51903         * lib/wchar_.h: Likewise.
51904         * lib/wctype_.h: Likewise.
51905
51906 2007-05-29  Bruno Haible  <bruno@clisp.org>
51907
51908         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51909         for the moment.
51910
51911 2007-05-29  Bruno Haible  <bruno@clisp.org>
51912
51913         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51914         invocation.
51915         Reported by Eric Blake.
51916
51917 2007-05-29  Bruno Haible  <bruno@clisp.org>
51918
51919         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51920         compiling case.
51921
51922 2007-05-29  Eric Blake  <ebb9@byu.net>
51923             Bruno Haible  <bruno@clisp.org>
51924
51925         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51926         cross compiles.
51927
51928 2007-05-28  Eric Blake  <ebb9@byu.net>
51929
51930         * modules/closein-tests (test_closein_LDADD): Support test on
51931         cygwin with libtool.
51932
51933 2007-05-28  Bruno Haible  <bruno@clisp.org>
51934
51935         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51936         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51937         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51938         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51939         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51940         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51941         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51942         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51943         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51944
51945 2007-05-28  Eric Blake  <ebb9@byu.net>
51946
51947         Unconditionally include <config.h> in unit tests.
51948         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51949         * tests/test-allocsa.c, tests/test-arcfour.c,
51950         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51951         tests/test-array_list.c, tests/test-array_oset.c,
51952         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51953         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51954         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51955         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51956         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51957         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51958         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51959         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51960         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51961         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51962         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51963         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51964         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51965         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51966         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51967         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51968         test-md5.c, test-memmem.c, test-printf-posix.c,
51969         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51970         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51971         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51972         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51973         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51974         test-vasnprintf-posix2.c, test-vasnprintf.c,
51975         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51976         test-vfprintf-posix.c, test-vprintf-posix.c,
51977         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51978         test-xvasprintf.c: Likewise.
51979
51980 2007-05-28  Bruno Haible  <bruno@clisp.org>
51981
51982         * gnulib-tool (func_import): Remember the --with-tests command-line
51983         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51984         Reported by Eric Blake.
51985
51986 2007-05-28  Bruno Haible  <bruno@clisp.org>
51987
51988         * modules/ftell-tests: New file.
51989         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51990         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51991
51992         * lib/ftell.c: New file.
51993         * modules/ftell: New file.
51994         * m4/ftell.m4: New file.
51995         * doc/functions/ftell.texi: Update.
51996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51997         REPLACE_FTELL.
51998         * lib/stdio_.h (rpl_ftell): New declaration.
51999         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
52000         REPLACE_FTELL.
52001
52002 2007-05-28  Eric Blake  <ebb9@byu.net>
52003
52004         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
52005
52006 2007-05-28  Bruno Haible  <bruno@clisp.org>
52007
52008         * modules/fseek-tests: New file.
52009         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
52010         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
52011
52012         * lib/fseek.c: New file.
52013         * modules/fseek: New file.
52014         * m4/fseek.m4: New file.
52015         * doc/functions/fseek.texi: Update.
52016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
52017         REPLACE_FSEEK.
52018         * lib/stdio_.h (rpl_fseek): New declaration.
52019         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
52020         REPLACE_FSEEK.
52021
52022 2007-05-28  Bruno Haible  <bruno@clisp.org>
52023
52024         * lib/stdio_.h (fflush): More comments.
52025
52026 2007-05-28  Bruno Haible  <bruno@clisp.org>
52027
52028         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
52029         runtime test.
52030
52031 2007-05-28  Eric Blake  <ebb9@byu.net>
52032
52033         Improve lseek module.
52034         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
52035         * lib/unistd_.h (lseek): Scale back link warning message.
52036         * tests/test-lseek.c: Beef up test.
52037         * tests/test-lseek.sh: Exercise more facets of lseek.
52038         Reported by Bruno Haible.
52039
52040 2007-05-28  Bruno Haible  <bruno@clisp.org>
52041
52042         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
52043         to define.
52044
52045 2007-05-27  Bruno Haible  <bruno@clisp.org>
52046
52047         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
52048
52049 2007-05-27  Bruno Haible  <bruno@clisp.org>
52050
52051         * modules/openmp: New file.
52052         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
52053         Noah Misch.
52054
52055 2007-05-26  Bruno Haible  <bruno@clisp.org>
52056
52057         * modules/chdir-long (Depends-on): Add fchdir.
52058         * modules/chdir-safer (Depends-on): Likewise.
52059         * modules/fts (Depends-on): Likewise.
52060         * modules/fts-lgpl (Depends-on): Likewise.
52061         * modules/openat (Depends-on): Likewise.
52062         * modules/savewd (Depends-on): Likewise.
52063
52064 2007-05-24  Eric Blake  <ebb9@byu.net>
52065
52066         Fix lseek on mingw.
52067         * modules/lseek: New module.
52068         * m4/lseek.m4: New file.
52069         * lib/lseek.c: New file.
52070         * modules/lseek-tests: New file.
52071         * tests/test-lseek.c: New file.
52072         * tests/test-lseek.sh: New file.
52073         * MODULES.html.sh: Document lseek module.
52074         * modules/fflush (Depends-on): Add lseek, fseeko.
52075         * modules/fseeko (Depends-on): Likewise.
52076         * modules/ftello (Depends-on): Likewise.
52077         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
52078         broken.
52079         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
52080         broken.
52081         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
52082         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
52083         * lib/ftello.c (rpl_ftello): Likewise.
52084         * tests/test-fseeko.c (main): Test this.
52085         * tests/test-fseeko.sh: Likewise.
52086         * tests/test-ftello.c (main): Likewise.
52087         * tests/test-ftello.sh: Likewise.
52088         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
52089         implies replacing fseek.
52090         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
52091         HAVE_FTELLO.
52092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
52093         * modules/unistd (Makefile.am): Likewise.
52094         * lib/unistd_.h (lseek): Declare a replacement.
52095         * doc/functions/lseek.texi (lseek): Document this fix.
52096         * doc/functions/fseek.texi (fseek): Likewise.
52097         * doc/functions/ftell.texi (ftell): Likewise.
52098
52099 2007-05-24  Bruno Haible  <bruno@clisp.org>
52100
52101         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
52102         in the printed representation of a NaN.
52103         * tests/test-vasprintf-posix.c (test_function): Likewise.
52104         * tests/test-snprintf-posix.h (test_function): Likewise.
52105         * tests/test-sprintf-posix.h (test_function): Likewise.
52106         Reported by Eric Blake.
52107
52108 2007-05-23  Eric Blake  <ebb9@byu.net>
52109
52110         Fix fseeko/ftello on cygwin 1.5.24.
52111         * doc/functions/fseeko.texi (fseeko): Document the fix.
52112         * doc/functions/ftello.texi (ftello): Document the fix.
52113         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
52114         * doc/functions/stdout.text (stdout): New file.
52115         * doc/functions/stderr.text (stderr): New file.
52116         * doc/gnulib.texi (Function Substitutes): Use new files.
52117         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
52118         prior to 1.7.0.
52119         * tests/test-ftello.c (main): Likewise for ftello.
52120         * tests/test-fseeko.sh: New file.
52121         * tests/test-ftello.sh: New file.
52122         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
52123         with seekable stdin.
52124         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
52125         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
52126         (gl_REPLACE_FSEEKO): New macro.
52127         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
52128         * modules/fseeko (Files): Distribute fseeko.c.
52129         * modules/ftello (Files): Distribute ftello.c.
52130         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
52131         mode.
52132         * lib/ftello.c (rpl_ftello): New file.
52133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
52134         fseeko, ftello.
52135         (gl_STDIN_LARGE_OFFSET): New macro.
52136         * modules/stdio (Makefile.am): Perform the replacement.
52137         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
52138
52139 2007-05-23  Bruno Haible  <bruno@clisp.org>
52140
52141         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
52142         GNULIB_POSIXCHECK is defined.
52143
52144 2007-05-21  Bruno Haible  <bruno@clisp.org>
52145
52146         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
52147         Check also the output for NaN arguments. When cross-compiling, guess
52148         no on IRIX.
52149         * lib/vasnprintf.c: Update comments.
52150         * tests/test-vasnprintf-posix.c (strisnan): New function.
52151         (test_function): Use it.
52152         * tests/test-vasprintf-posix.c (strisnan): New function.
52153         (test_function): Use it.
52154         * tests/test-snprintf-posix.h (strisnan): New function.
52155         (test_function): Use it.
52156         * tests/test-sprintf-posix.h (strisnan): New function.
52157         (test_function): Use it.
52158         Reported by Eric Blake.
52159
52160 2007-05-20  Bruno Haible  <bruno@clisp.org>
52161
52162         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
52163         numbers that fails on BeOS.
52164         * doc/functions/frexpl.texi: Update.
52165
52166 2007-05-20  Jim Meyering  <jim@meyering.net>
52167
52168         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
52169         forced upon us by glibc-2.6.
52170
52171 2007-05-20  Bruno Haible  <bruno@clisp.org>
52172
52173         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
52174         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
52175         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
52176         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
52177         NEED_PRINTF_INFINITE.
52178         (is_infinitel): New function.
52179         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
52180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
52181         gl_PREREQ_VASNPRINTF_INFINITE.
52182         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
52183         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52184         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
52185         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
52186         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
52187         gl_PREREQ_VASNPRINTF_INFINITE.
52188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52191         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52192         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52194         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52195         * doc/functions/fprintf.texi: Update.
52196         * doc/functions/printf.texi: Update.
52197         * doc/functions/snprintf.texi: Update.
52198         * doc/functions/sprintf.texi: Update.
52199         * doc/functions/vfprintf.texi: Update.
52200         * doc/functions/vprintf.texi: Update.
52201         * doc/functions/vsnprintf.texi: Update.
52202         * doc/functions/vsprintf.texi: Update.
52203
52204 2007-05-20  Bruno Haible  <bruno@clisp.org>
52205
52206         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
52207         was not found in libc.
52208         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
52209
52210 2007-05-20  Bruno Haible  <bruno@clisp.org>
52211
52212         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52213         printed as "-nan" instead of "nan".
52214         * tests/test-vasprintf-posix.c (test_function): Likewise.
52215         * tests/test-snprintf-posix.h (test_function): Likewise.
52216         * tests/test-sprintf-posix.h (test_function): Likewise.
52217         Needed for HP-UX 11.
52218
52219 2007-05-20  Jim Meyering  <jim@meyering.net>
52220
52221         Fix buggy test for the fchownat-deref bug.
52222         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
52223         symlink required for the run-test.  Without it, this test would
52224         always declare that fchownat doesn't work, and client code would
52225         unnecessarily use the replacement function with fixed libc.
52226         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
52227         Reported by Greg Schafer.
52228
52229 2007-05-19  Bruno Haible  <bruno@clisp.org>
52230
52231         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
52232         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
52233         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
52234         Needed for IRIX 6.5 and Solaris 2.5.1.
52235
52236 2007-05-19  Bruno Haible  <bruno@clisp.org>
52237
52238         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
52239         (test_function): Skip tests involving -0.0 on platforms where
52240         -0.0 = 0.0.
52241         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
52242         (test_function): Skip tests involving -0.0 on platforms where
52243         -0.0 = 0.0.
52244         * tests/test-snprintf-posix.h (have_minus_zero): New function.
52245         (test_function): Skip tests involving -0.0 on platforms where
52246         -0.0 = 0.0.
52247         * tests/test-sprintf-posix.h (have_minus_zero): New function.
52248         (test_function): Skip tests involving -0.0 on platforms where
52249         -0.0 = 0.0.
52250         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
52251         tests.
52252         * tests/test-printf-posix.h (test_function): Likewise.
52253         * tests/test-printf-posix.output: Remove all -0.0 related results.
52254         Needed for IRIX 6.5.
52255
52256 2007-05-19  Bruno Haible  <bruno@clisp.org>
52257
52258         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52259         printed as "nan0x7fffffff" instead of "nan".
52260         * tests/test-vasprintf-posix.c (test_function): Likewise.
52261         * tests/test-snprintf-posix.h (test_function): Likewise.
52262         * tests/test-sprintf-posix.h (test_function): Likewise.
52263         * tests/test-fprintf-posix.h (NaN): Remove macro.
52264         (test_function): Remove all NaN related tests.
52265         * tests/test-printf-posix.h (NaN): Remove macro.
52266         (test_function): Remove all NaN related tests.
52267         * tests/test-printf-posix.output: Remove all NaN related results.
52268         Needed for IRIX 6.5.
52269
52270 2007-05-19  Bruno Haible  <bruno@clisp.org>
52271
52272         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
52273         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52274
52275 2007-05-19  Bruno Haible  <bruno@clisp.org>
52276
52277         * lib/float_.h: New file.
52278         * m4/float_h.m4: New file.
52279         * modules/float: New file.
52280         * modules/isnanl (Dependencies): Add float.
52281         * modules/isnanl-nolibm (Dependencies): Likewise.
52282         * modules/mathl (Dependencies): Likewise.
52283         * modules/printf-frexpl (Dependencies): Likewise.
52284         * modules/signbit (Dependencies): Likewise.
52285         * modules/vasnprintf (Dependencies): Likewise.
52286         * doc/headers/float.texi: Update.
52287
52288 2007-05-19  Jim Meyering  <jim@meyering.net>
52289
52290         * lib/utimens.c (gl_futimens): Rename from futimens,
52291         now that glibc-2.6 declares futimens.
52292         * lib/utimens.h: Likewise.
52293
52294 2007-05-19  Bruno Haible  <bruno@clisp.org>
52295
52296         Avoid test failures on mingw.
52297         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
52298         * tests/test-printf-posix.sh: Likewise.
52299         * tests/test-vfprintf-posix.sh: Likewise.
52300         * tests/test-vprintf-posix.sh: Likewise.
52301
52302 2007-05-19  Bruno Haible  <bruno@clisp.org>
52303
52304         Fix *printf result for NaN, Inf, -0.0 on mingw.
52305         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
52306         * lib/vasnprintf.c: Include math.h and isnan.h.
52307         (is_infinite_or_zero): New function.
52308         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
52309         values in the %f, %F, %e, %E, %g, %G directives.
52310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
52311         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52312         gl_PRINTF_INFINITE and test its result. Invoke
52313         gl_PREREQ_VASNPRINTF_INFINITE.
52314         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52315         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52316         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52317         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52318         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52320         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52321         * doc/functions/fprintf.texi: Update.
52322         * doc/functions/printf.texi: Update.
52323         * doc/functions/snprintf.texi: Update.
52324         * doc/functions/sprintf.texi: Update.
52325         * doc/functions/vfprintf.texi: Update.
52326         * doc/functions/vprintf.texi: Update.
52327         * doc/functions/vsnprintf.texi: Update.
52328         * doc/functions/vsprintf.texi: Update.
52329
52330 2007-05-19  Bruno Haible  <bruno@clisp.org>
52331
52332         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52333         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52334         Instead of multiplying with 10^k, set extra_zeroes to k.
52335         (scale10_round_long_double): Remove function.
52336
52337 2007-05-18  Bruno Haible  <bruno@clisp.org>
52338
52339         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52340         introduced on 2007-05-06.
52341
52342 2007-05-18  Bruno Haible  <bruno@clisp.org>
52343
52344         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52345         %g directives.
52346         * tests/test-vasprintf-posix.c (test_function): Likewise.
52347         * tests/test-snprintf-posix.h (test_function): Likewise.
52348         * tests/test-sprintf-posix.h (test_function): Likewise.
52349
52350 2007-05-18  Bruno Haible  <bruno@clisp.org>
52351
52352         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52353         (strmatch): New function.
52354         (test_function): Test the %f directive on numbers of various exponents.
52355         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52356         (strmatch): New function.
52357         (test_function): Test the %f directive on numbers of various exponents.
52358         * tests/test-snprintf-posix.h (strmatch): New function.
52359         (test_function): Test the %f directive on numbers of various exponents.
52360         * tests/test-sprintf-posix.h (strmatch): New function.
52361         (test_function): Test the %f directive on numbers of various exponents.
52362         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52363         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52364         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52365         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52366
52367 2007-05-18  Bruno Haible  <bruno@clisp.org>
52368
52369         Add support for 'long double' number output.
52370         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52371         * lib/vasnprintf.c: Include math.h and float+.h.
52372         (mp_limb_t): New type.
52373         (GMP_LIMB_BITS): New macro.
52374         (mp_twolimb_t): New type.
52375         (GMP_TWOLIMB_BITS): New macro.
52376         (mpn_t): New type.
52377         (multiply, divide, convert_to_decimal, decode_long_double,
52378         scale10_round_long_double, scale10_round_decimal_long_double,
52379         floorlog10l): New functions.
52380         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52381         for the %f, %F, %e, %E, %g, %G directives.
52382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52383         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52384         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52385         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52386         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52387         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52388         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52389         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52390         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52391         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52392         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52393         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52394         * modules/snprintf-posix (Depends-on): Likewise.
52395         * modules/sprintf-posix (Depends-on): Likewise.
52396         * modules/vasnprintf-posix (Depends-on): Likewise.
52397         * modules/vasprintf-posix (Depends-on): Likewise.
52398         * modules/vfprintf-posix (Depends-on): Likewise.
52399         * modules/vsnprintf-posix (Depends-on): Likewise.
52400         * modules/vsprintf-posix (Depends-on): Likewise.
52401         * modules/vasnprintf (Files): Add lib/float+.h.
52402         * doc/functions/fprintf.texi: Update.
52403         * doc/functions/printf.texi: Update.
52404         * doc/functions/snprintf.texi: Update.
52405         * doc/functions/sprintf.texi: Update.
52406         * doc/functions/vfprintf.texi: Update.
52407         * doc/functions/vprintf.texi: Update.
52408         * doc/functions/vsnprintf.texi: Update.
52409         * doc/functions/vsprintf.texi: Update.
52410
52411 2007-05-18  Bruno Haible  <bruno@clisp.org>
52412
52413         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52414
52415 2007-05-18  Bruno Haible  <bruno@clisp.org>
52416
52417         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52418         for printing 64-bit integers. Needed for mingw.
52419
52420 2007-05-18  Bruno Haible  <bruno@clisp.org>
52421
52422         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52423         gl_FUNC_FREXPL_WORKS.
52424         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52425
52426 2007-05-18  Bruno Haible  <bruno@clisp.org>
52427
52428         * modules/frexpl-nolibm-tests: New file.
52429
52430         * modules/frexpl-nolibm: New file.
52431         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52432
52433 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52434
52435         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52436         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52437         GCC 4.2, which otherwise issues a lot of warnings.
52438         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52439         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52440         Likewise.
52441         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52442         * modules/iconv_open (iconv.h): Likewise.
52443         * modules/locale (locale.h): Likewise.
52444         * modules/netinet_in (netinet/in.h): Likewise.
52445         * modules/sys_select (sys_select.h): Likewise.
52446         * modules/sys_socket (sys/socket.h): Likewise.
52447         * modules/sys_stat (sys/stat.h): Likewise.
52448         * modules/sysexits (sysexits.h): Likewise.
52449         * modules/unistd (unistd.h): Likewise.
52450
52451 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52452
52453         * modules/closein-tests (Makefile.am): Distribute
52454         `test-closein.sh'.
52455
52456 2007-05-17  Bruno Haible  <bruno@clisp.org>
52457
52458         * tests/test-printf-posix.output: Renamed from
52459         tests/test-fprintf-posix.out.
52460         * modules/fprintf-posix-tests: Update.
52461         * modules/printf-posix-tests: Update.
52462         * modules/vfprintf-posix-tests: Update.
52463         * modules/vprintf-posix-tests: Update.
52464         * tests/test-fprintf-posix.sh: Update.
52465         * tests/test-printf-posix.sh: Update.
52466         * tests/test-vfprintf-posix.sh: Update.
52467         * tests/test-vprintf-posix.sh: Update.
52468         Reported by Ralf Wildenhues.
52469
52470 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52471
52472         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52473         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52474         GCC 4.2, which otherwise issues a lot of warnings.
52475         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52476         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52477         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52478         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52479         it should no longer be needed.
52480         * lib/string_.h: Likewise.
52481         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52482         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52483         * modules/inttypes (inttypes.h): Likewise.
52484         * modules/math (math.h): Likewise.
52485         * modules/search (search.h): Likewise.
52486         * modules/signal (signal.h): Likewise.
52487         * modules/stdint (stdint.h): Likewise.
52488         * modules/stdio (stdio.h): Likewise.
52489         * modules/stdlib (stdlib.h): Likewise.
52490         * modules/string (string.h): Likewise.
52491         * modules/sys_time (sys/time.h): Likewise.
52492         * modules/time (time.h): Likewise.
52493         * modules/wchar (wchar.h): Likewise.
52494         * modules/wctype (wtype.h): Likewise.
52495
52496 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52497
52498         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52499
52500 2007-05-13  Bruno Haible  <bruno@clisp.org>
52501
52502         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52503         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52504         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52505         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52506         (gl_PREREQ_STRTOK_R): Don't require it here.
52507
52508 2007-05-13  Bruno Haible  <bruno@clisp.org>
52509
52510         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52511         when used in C++ mode.
52512
52513 2007-05-12  Bruno Haible  <bruno@clisp.org>
52514
52515         * lib/linebuffer.h: Tweak doc.
52516         * lib/linebuffer.c: Likewise.
52517
52518 2007-05-12  James Youngman  <jay@gnu.org>
52519
52520         * lib/linebuffer.c (readlinebuffer_delim): New function,
52521         like readlinebuffer, but use a caller-specified delimiter.
52522         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52523         as the delimiter.
52524         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52525
52526 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52527
52528         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52529         * modules/openat (Files): Remove openat-die.c.
52530         (Depends-on): Add openat-die.
52531         * modules/openat-die: New module.
52532
52533 2007-05-06  Bruno Haible  <bruno@clisp.org>
52534
52535         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52536         Update with info about Cygwin.
52537         * doc/functions/fprintf.texi: Update.
52538         * doc/functions/printf.texi: Update.
52539         * doc/functions/snprintf.texi: Update.
52540         * doc/functions/sprintf.texi: Update.
52541         * doc/functions/vfprintf.texi: Update.
52542         * doc/functions/vprintf.texi: Update.
52543         * doc/functions/vsnprintf.texi: Update.
52544         * doc/functions/vsprintf.texi: Update.
52545         Reported by Eric Blake.
52546
52547 2007-05-06  Bruno Haible  <bruno@clisp.org>
52548
52549         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52550         padding ourselves for the floating-point directives.
52551         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52553         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52554         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52555         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52557         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52558         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52559         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52560         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52561         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52563         * tests/test-snprintf-posix.h (test_function): Also check the width
52564         and some flags in the %f directive.
52565         * tests/test-sprintf-posix.h (test_function): Likewise.
52566         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52567         * tests/test-vasprintf-posix.c (test_function): Likewise.
52568         * doc/functions/fprintf.texi: Update.
52569         * doc/functions/printf.texi: Update.
52570         * doc/functions/snprintf.texi: Update.
52571         * doc/functions/sprintf.texi: Update.
52572         * doc/functions/vfprintf.texi: Update.
52573         * doc/functions/vprintf.texi: Update.
52574         * doc/functions/vsnprintf.texi: Update.
52575         * doc/functions/vsprintf.texi: Update.
52576
52577 2007-05-06  Bruno Haible  <bruno@clisp.org>
52578
52579         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52580         pass the ' flag character to sprintf or snprintf.
52581         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52584         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52585         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52586         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52587         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52588         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52589         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52590         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52591         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52593         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52594         flag.
52595         * tests/test-sprintf-posix.h (test_function): Likewise.
52596         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52597         * tests/test-vasprintf-posix.c (test_function): Likewise.
52598         * doc/functions/fprintf.texi: Update.
52599         * doc/functions/printf.texi: Update.
52600         * doc/functions/snprintf.texi: Update.
52601         * doc/functions/sprintf.texi: Update.
52602         * doc/functions/vfprintf.texi: Update.
52603         * doc/functions/vprintf.texi: Update.
52604         * doc/functions/vsnprintf.texi: Update.
52605         * doc/functions/vsprintf.texi: Update.
52606
52607 2007-05-01  Bruno Haible  <bruno@clisp.org>
52608
52609         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52610
52611 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52612
52613         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52614         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52615
52616 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52617
52618         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52619         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52621
52622 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52623
52624         * lib/argp-help.c (struct hol_entry): New member `ord'.
52625         (HOL_ENTRY_PTRCMP): Use ord for comparison
52626         (hol_sort): Initialize ord.
52627
52628 2007-05-01  Bruno Haible  <bruno@clisp.org>
52629
52630         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52631         Reported by Eric Blake.
52632         * doc/gnulib.texi (Function Substitutes): Update.
52633
52634 2007-05-01  Bruno Haible  <bruno@clisp.org>
52635
52636         * doc/functions.texi: Remove file, now redundant through
52637         doc/functions/*.texi.
52638
52639 2007-05-01  Bruno Haible  <bruno@clisp.org>
52640
52641         * modules/argp (Depends-on): Add sleep.
52642
52643 2007-05-01  Bruno Haible  <bruno@clisp.org>
52644
52645         * modules/sleep-tests: New file.
52646         * tests/test-sleep.c: New file.
52647
52648         * modules/sleep: New file.
52649         * lib/sleep.c: New file.
52650         * m4/sleep.m4: New file.
52651         * lib/unistd_.h (sleep): New declaration.
52652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52653         HAVE_SLEEP.
52654         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52655         * doc/functions/sleep.texi: Document the sleep module.
52656
52657 2007-05-01  Bruno Haible  <bruno@clisp.org>
52658
52659         * lib/sigprocmask.h: Remove file.
52660         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52661         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52662         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52663         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52664         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52665         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52666         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52667         HAVE_SIGSET_T as a shell variable.
52668         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52669         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52670         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52671         (Depends-on): Add signal. Remove verify.
52672         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52673         (Include): Mention <signal.h> instead of sigprocmask.h.
52674         * NEWS: Mention the change.
52675         * lib/fatal-signal.c: Don't include sigprocmask.h.
52676
52677 2007-05-01  Bruno Haible  <bruno@clisp.org>
52678
52679         * modules/signal: New file.
52680         * lib/signal_.h: New file.
52681         * m4/signal_h.m4: New file.
52682
52683 2007-05-01  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52686         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52687         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52688         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52689
52690 2007-05-01  Bruno Haible  <bruno@clisp.org>
52691
52692         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52693         configure time.
52694         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52695         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52696         * modules/sys_stat (Makefile.am): Substitute their values into
52697         sys/stat.h.
52698
52699 2007-05-01  Bruno Haible  <bruno@clisp.org>
52700
52701         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52702         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52703         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52704
52705 2007-05-01  Bruno Haible  <bruno@clisp.org>
52706
52707         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52708         'assert' module here.
52709
52710 2007-05-01  Bruno Haible  <bruno@clisp.org>
52711
52712         * doc/functions/*.texi: New files.
52713         * doc/functions/google-ranking.txt: New file.
52714         * doc/gnulib.texi (Function Substitutes): New chapter.
52715         (ctime, inet_ntoa): Remove sections.
52716         * doc/ctime.texi: Remove file.
52717         * doc/inet_ntoa.texi: Remove file.
52718         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52719         dependencies.
52720         (%.info): New rule, specifying a --reference-limit.
52721
52722 2007-05-01  Bruno Haible  <bruno@clisp.org>
52723
52724         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52725
52726 2007-05-01  Bruno Haible  <bruno@clisp.org>
52727
52728         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52729         the portability of 'mkdir' to mingw systems.
52730
52731 2007-05-01  Bruno Haible  <bruno@clisp.org>
52732
52733         * doc/headers/google-ranking.txt: New file.
52734
52735 2007-04-30  Eric Blake  <ebb9@byu.net>
52736
52737         Prefer fseeko to fseek.
52738         * modules/getpass (Depends-on): Add fseeko.
52739         * lib/getpass.c (getpass): Use fseeko, not fseek.
52740
52741 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52742
52743         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52744         assumes the sorting is stable, while most qsort implementations
52745         are not.  Use argument addresses to ensure they never compare as
52746         equal.
52747
52748         * tests/test-argp-2.sh (usage-indent test): Fix output
52749         (func_compare): Restore diff options
52750         * tests/test-argp.c: Restore #include "progname.h"
52751
52752 2007-04-29  Bruno Haible  <bruno@clisp.org>
52753
52754         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52755         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52756         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52757         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52758         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52759         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52760         (TESTS, check_PROGRAMS): Add test-snprintf.
52761         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52762         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52763         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52764         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52765         assertions that fail on HP-UX, OSF/1, or IRIX.
52766         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52767
52768 2007-04-29  Bruno Haible  <bruno@clisp.org>
52769
52770         * MODULES.html.sh (posix_functions): Remove 'contents'.
52771
52772 2007-04-29  Karl Berry  <karl@gnu.org>
52773
52774         * config/srclist.txt (gendocs_template_min): new entry.
52775
52776 2007-04-29  Bruno Haible  <bruno@clisp.org>
52777
52778         Work around fpurge bug on BSD systems.
52779         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52780         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52781         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52782         fpurge to rpl_fpurge if the system already has this function.
52783         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52784         the case where the system already has this function. Correct invariants
52785         on BSD systems.
52786         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52787         BSD systems.
52788
52789 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52790
52791         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52792         proposed by Sven Verdoolaege.
52793
52794         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52795         options.
52796         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52797         (usage and help tests): Update
52798
52799 2007-04-29  Bruno Haible  <bruno@clisp.org>
52800
52801         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52802         Print more information in case of failure. Disable a test on BeOS.
52803
52804 2007-04-29  Bruno Haible  <bruno@clisp.org>
52805
52806         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52807         This helps debugging on systems on which no gdb is available.
52808
52809 2007-04-29  Bruno Haible  <bruno@clisp.org>
52810
52811         * lib/freading.h: Improve comments.
52812         * lib/fwriting.h: Likewise.
52813         * tests/test-freading.c (main): Don't check freading immediately after
52814         repositioning. Needed for glibc.
52815
52816 2007-04-29  Bruno Haible  <bruno@clisp.org>
52817
52818         * lib/freading.c (freading): Trivial simplification.
52819
52820 2007-04-28  Bruno Haible  <bruno@clisp.org>
52821
52822         * tests/test-fwriting.c (main): Also test the interaction between
52823         fflush and fwriting.
52824         * modules/fwriting-tests (Depends-on): Add fflush.
52825
52826         * tests/test-freading.c (main): Also test the interaction between
52827         fflush and freading.
52828         * modules/freading-tests (Depends-on): Add fflush.
52829
52830 2007-04-28  Bruno Haible  <bruno@clisp.org>
52831
52832         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52833         fseeko and ftello.
52834         Suggested by Eric Blake.
52835
52836 2007-04-28  Jim Meyering  <jim@meyering.net>
52837
52838         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52839         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52840         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52841
52842 2007-04-27  Eric Blake  <ebb9@byu.net>
52843
52844         * doc/headers/assert.texi (assert.h): Document assert module use.
52845
52846 2007-04-27  Bruno Haible  <bruno@clisp.org>
52847
52848         * doc/headers/*.texi: New files.
52849         * doc/gnulib.texi (Header File Substitutes): New chapter.
52850         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52851         dependencies.
52852         (standards.info ,standards.html, standards.dvi): Update dependencies.
52853         (mostlyclean, clean): New targets.
52854
52855 2007-04-27  Bruno Haible  <bruno@clisp.org>
52856
52857         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52858         * modules/sysexits (Files, Makefile.am): Update.
52859
52860         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52861         * modules/sys_socket (Files, Makefile.am): Update.
52862
52863         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52864         * modules/sys_stat (Files, Makefile.am): Update.
52865
52866 2007-04-27  Eric Blake  <ebb9@byu.net>
52867
52868         * lib/freading.h: Improve comments.
52869         * lib/fwriting.h: Likewise.
52870         * lib/fflush.c: Likewise.
52871
52872         Fix closein for mingw.
52873         * modules/closein-tests: Add tests for closein.
52874         * tests/test-closein.c: New file.
52875         * tests/test-closein.sh: Likewise.
52876         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52877         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52878
52879 2007-04-27  Bruno Haible  <bruno@clisp.org>
52880
52881         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52882         version is < 6.
52883         * lib/math_.h [__DECC]: Likewise.
52884         * lib/stdio_.h [__DECC]: Likewise.
52885         * lib/stdlib_.h [__DECC]: Likewise.
52886         * lib/string_.h [__DECC]: Likewise.
52887         * lib/time_.h [__DECC]: Likewise.
52888         * lib/wchar_.h [__DECC]: Likewise.
52889         * lib/wctype_.h [__DECC]: Likewise.
52890
52891 2007-04-27  Bruno Haible  <bruno@clisp.org>
52892
52893         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52894
52895 2007-04-27  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/fflush.c: Add comments.
52898         * modules/fpurge-tests (Depends-on): Add fflush.
52899         * modules/freadable-tests (Depends-on): Likewise.
52900         * modules/fwritable-tests (Depends-on): Likewise.
52901
52902 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52903
52904         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52905         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52906         Report by Bruno Haible <bruno@clisp.org>.
52907
52908 2007-04-26  Eric Blake  <ebb9@byu.net>
52909
52910         Fix fflush on mingw.
52911         * modules/fflush (Depends-on): Add freading.
52912         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52913         but unread data.
52914
52915 2007-04-26  Eric Blake  <ebb9@byu.net>
52916         and Bruno Haible  <bruno@clisp.org>
52917
52918         Implement freading and fwriting.
52919         * lib/freading.c: New file.
52920         * lib/freading.h: Likewise.
52921         * m4/freading.m4: Likewise.
52922         * modules/freading: Likewise.
52923         * modules/freading-tests: Likewise.
52924         * tests/test-freading.c: Likewise.
52925         * lib/fwriting.c: New file.
52926         * lib/fwriting.h: Likewise.
52927         * m4/fwriting.m4: Likewise.
52928         * modules/fwriting: Likewise.
52929         * modules/fwriting-tests: Likewise.
52930         * tests/test-fwriting.c: Likewise.
52931         * MODULES.html.sh (File stream based Input/Output): Mention them.
52932
52933 2007-04-26  Bruno Haible  <bruno@clisp.org>
52934
52935         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52936         'long' when we assume it.
52937         Suggested by Eric Blake.
52938
52939 2007-04-26  Bruno Haible  <bruno@clisp.org>
52940
52941         Ensure fseeko, ftello are declared on glibc systems.
52942         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52943         * modules/fseeko (configure.ac-early): Likewise.
52944         * modules/ftello (configure.ac-early): Likewise.
52945         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52946         AC_FUNC_FSEEKO for this.
52947         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52948         (gl_CHECK_FSEEKO): Remove macro.
52949
52950 2007-04-26  Bruno Haible  <bruno@clisp.org>
52951
52952         * tests/test-fflush.c (main): Also check the ftell result after
52953         fflush and fseek/fseeko.
52954         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52955         file descriptor position cache in the stream.
52956         * lib/fseeko.c (rpl_fseeko): Likewise.
52957
52958 2007-04-26  Bruno Haible  <bruno@clisp.org>
52959
52960         * modules/fflush-tests (Depends-on): Add fseeko.
52961
52962 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52963             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52964
52965         * lib/argz_.h: ensure error_t definition is obtained in same
52966         mechanism system argz.h would have.
52967         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52968         argz facilities are known bad.  Err on the side of caution if
52969         cross-compiling.
52970
52971 2007-04-25  Eric Blake  <ebb9@byu.net>
52972
52973         * lib/fpurge.c (includes): Use stdlib.h for free.
52974         * tests/test-fflush.c (main): Also test fflush-fseeko.
52975
52976 2007-04-25  Bruno Haible  <bruno@clisp.org>
52977
52978         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52979         * lib/fseeko.c: New file.
52980         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52981         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52982         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52983         gl_FUNC_FSEEKO.
52984         (gl_FUNC_FSEEKO): Invoke it.
52985         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52986         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52987         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52988
52989 2007-04-25  Bruno Haible  <bruno@clisp.org>
52990
52991         * modules/fflush (Depends-on): Add ftello.
52992
52993 2007-04-25  Bruno Haible  <bruno@clisp.org>
52994
52995         * modules/ftello-tests: New file.
52996         * tests/test-ftello.c: New file.
52997
52998         * modules/ftello: New file.
52999         * m4/ftello.m4: New file.
53000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
53001         HAVE_FTELLO.
53002         * lib/stdio_.h (ftello): New declaration.
53003         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
53004         HAVE_FTELLO.
53005
53006 2007-04-25  Bruno Haible  <bruno@clisp.org>
53007
53008         * modules/fseeko-tests: New file.
53009         * tests/test-fseeko.c: New file.
53010
53011         * modules/fseeko: New file.
53012         * m4/fseeko.m4: New file.
53013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
53014         HAVE_FSEEKO.
53015         * lib/stdio_.h (fseeko): New declaration.
53016         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
53017         HAVE_FSEEKO.
53018
53019 2007-04-25  Bruno Haible  <bruno@clisp.org>
53020
53021         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
53022
53023 2007-04-25  Bruno Haible  <bruno@clisp.org>
53024
53025         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
53026         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
53027         * tests/test-unistd.c: Likewise.
53028         * tests/test-fcntl.c: Likewise.
53029
53030 2007-04-23  Eric Blake  <ebb9@byu.net>
53031
53032         * lib/fflush.c: Fix missing include.
53033         Reported by Bruno Haible.
53034
53035 2007-04-23  Bruno Haible  <bruno@clisp.org>
53036
53037         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
53038         Reported by Eric Blake.
53039
53040 2007-04-23  Bruno Haible  <bruno@clisp.org>
53041
53042         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
53043
53044 2007-04-23  Bruno Haible  <bruno@clisp.org>
53045
53046         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
53047
53048 2007-04-23  Bruno Haible  <bruno@clisp.org>
53049
53050         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
53051         Needed on HP-UX 11.
53052
53053 2007-04-16  Eric Blake  <ebb9@byu.net>
53054
53055         Make fflush rely on fpurge.
53056         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
53057         open coding all variants.
53058         * modules/fflush (Depends-on): Add fpurge and unistd.
53059         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
53060         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
53061
53062         Fix --with-tests compilation on cygwin.
53063         * modules/argmatch-tests (Makefile.am): List gnulib library first
53064         in LDADD.
53065         * modules/argp-tests (Makefile.am): Likewise.
53066         * modules/array-list-tests (Makefile.am): Likewise.
53067         * modules/array-oset-tests (Makefile.am): Likewise.
53068         * modules/avltree-list-tests (Makefile.am): Likewise.
53069         * modules/avltree-oset-tests (Makefile.am): Likewise.
53070         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53071         * modules/carray-list-tests (Makefile.am): Likewise.
53072         * modules/dirname-tests (Makefile.am): Likewise.
53073         * modules/frexp-tests (Makefile.am): Likewise.
53074         * modules/isnanl-tests (Makefile.am): Likewise.
53075         * modules/linked-list-tests (Makefile.am): Likewise.
53076         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53077         * modules/lock-tests (Makefile.am): Likewise.
53078         * modules/rbtree-list-tests (Makefile.am): Likewise.
53079         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53080         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53081         * modules/tls-tests (Makefile.am): Likewise.
53082         * modules/tsearch-tests (Makefile.am): Likewise.
53083         * modules/xvasprintf-tests (Makefile.am): Likewise.
53084
53085         Fix fpurge for cygwin.
53086         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
53087         value.
53088         * modules/fpurge-tests (Depends-on): Clean up trash.
53089
53090 2007-04-16  Simon Josefsson  <simon@josefsson.org>
53091
53092         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
53093
53094         * m4/autobuild.m4: Re-indent.
53095
53096 2007-04-13  Bruno Haible  <bruno@clisp.org>
53097
53098         * modules/fpurge-tests: New file.
53099         * tests/test-fpurge.c: New file.
53100
53101         * modules/fpurge: New file.
53102         * lib/fpurge.h: New file.
53103         * lib/fpurge.c: New file.
53104         * m4/fpurge.m4: New file.
53105
53106 2007-04-13  Bruno Haible  <bruno@clisp.org>
53107
53108         * modules/fbufmode-tests: New file.
53109         * tests/test-fbufmode.c: New file.
53110
53111         * modules/fbufmode: New file.
53112         * lib/fbufmode.h: New file.
53113         * lib/fbufmode.c: New file.
53114         * m4/fbufmode.m4: New file.
53115
53116 2007-04-13  Bruno Haible  <bruno@clisp.org>
53117
53118         * modules/fwritable-tests: New file.
53119         * tests/test-fwritable.c: New file.
53120
53121         * modules/fwritable: New file.
53122         * lib/fwritable.h: New file.
53123         * lib/fwritable.c: New file.
53124         * m4/fwritable.m4: New file.
53125
53126 2007-04-13  Bruno Haible  <bruno@clisp.org>
53127
53128         * modules/freadable-tests: New file.
53129         * tests/test-freadable.c: New file.
53130
53131         * modules/freadable: New file.
53132         * lib/freadable.h: New file.
53133         * lib/freadable.c: New file.
53134         * m4/freadable.m4: New file.
53135
53136 2007-04-13  Bruno Haible  <bruno@clisp.org>
53137
53138         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
53139         MOSTLYCLEANFILES.
53140
53141 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53142
53143         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
53144         gzip bootstrap.conf to avoid dragging in i18n machinery.
53145         (gnulib_tool_option): Use it.
53146
53147 2007-04-13  Bruno Haible  <bruno@clisp.org>
53148
53149         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
53150         %F directives.
53151         * tests/test-vasprintf-posix.c (test_function): Likewise.
53152         * tests/test-snprintf-posix.h (test_function): Likewise.
53153         * tests/test-sprintf-posix.h (test_function): Likewise.
53154         * tests/test-fprintf-posix.h (test_function): Likewise.
53155         * tests/test-printf-posix.h (test_function): Likewise.
53156         * tests/test-fprintf-posix.out: Likewise.
53157
53158 2007-04-13  Bruno Haible  <bruno@clisp.org>
53159
53160         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
53161         * modules/tls-tests (configure.ac): Likewise.
53162         Reported by Arto C. Nirkko <anirkko@insel.ch>.
53163
53164 2007-04-13  Bruno Haible  <bruno@clisp.org>
53165
53166         * lib/tls.c (glthread_tls_get): Fix return type.
53167         Patch by Arto C. Nirkko <anirkko@insel.ch>.
53168
53169 2007-04-12  Eric Blake  <ebb9@byu.net>
53170
53171         * modules/gettime (Depends-on): Remove gettime.
53172         Reported by Dmitry V. Levin.
53173
53174 2007-04-12  Bruno Haible  <bruno@clisp.org>
53175
53176         * modules/fflush (Include): Mention <stdio.h>.
53177         * modules/strtoimax (Include): Mention <inttypes.h>.
53178         * modules/strtoumax (Include): Likewise.
53179
53180 2007-04-12  Eric Blake  <ebb9@byu.net>
53181
53182         * .cvsignore: New file.
53183         * .gitignore: Likewise.
53184
53185 2007-04-12  Bruno Haible  <bruno@clisp.org>
53186
53187         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
53188         not before, since $(LDADD) often contains libgnu.a.
53189         * modules/striconv-tests (test_striconv_LDADD): Likewise.
53190         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
53191         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
53192         Needed on Cygwin.
53193
53194 2007-04-12  Eric Blake  <ebb9@byu.net>
53195
53196         Work around glibc's failure to flush stdin on fclose.
53197         * lib/closein.c (close_stdin): Flush stdin before closing.
53198
53199         Work around glibc's failure to reset seekable stdin on exit.
53200         * modules/closein: New module.
53201         * lib/closein.c: New file.
53202         * lib/closein.h: Likewise.
53203         * m4/closein.m4: Likewise.
53204         * MODULES.html.sh (File stream based Input/Output): Document it.
53205
53206 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53207
53208         * gnulib-tool: Rename generated 'autobuild' script to
53209         'do-autobuild' in --create-megatestdir output.
53210
53211         * doc/gnulib.texi (Build robot for gnulib): Fix.
53212
53213 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53214
53215         * modules/sysexits (Depends-on): Add absolute-header.
53216
53217 2007-04-12  Eric Blake  <ebb9@byu.net>
53218
53219         No need to preserve errno on success.
53220         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
53221         Reported by Bruno Haible.
53222
53223 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53224
53225         * MODULES.html.sh (Support for maintaining and releasing
53226         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
53227
53228 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53229
53230         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
53231
53232 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53233
53234         * modules/autobuild: New module.
53235
53236         * m4/autobuild.m4: New file.
53237
53238 2007-04-11  Bruno Haible  <bruno@clisp.org>
53239
53240         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
53241         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
53242         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
53243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
53244         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53245         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53246         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53247         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53248         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53249         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53250         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
53251         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53252         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53253         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
53254         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53255         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53256         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
53257         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53258         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53259         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
53260         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53261         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
53263         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53264         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53265         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
53266         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53267         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53268         Reported by Eric Blake.
53269
53270 2007-04-11  Bruno Haible  <bruno@clisp.org>
53271
53272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
53273
53274 2007-04-10  Bruno Haible  <bruno@clisp.org>
53275
53276         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
53277         for NaN and Infinity. Needed on FreeBSD 6.1.
53278         * tests/test-vasnprintf-posix.c (test_function): Undo last change
53279         regarding results for "%010a" of Infinity and NaN.
53280         * tests/test-vasprintf-posix.c (test_function): Likewise.
53281         * tests/test-snprintf-posix.h (test_function): Likewise.
53282         * tests/test-sprintf-posix.h (test_function): Likewise.
53283         * tests/test-fprintf-posix.h (test_function): Likewise.
53284         * tests/test-printf-posix.h (test_function): Likewise.
53285         * tests/test-fprintf-posix.out: Likewise.
53286
53287 2007-04-10  Bruno Haible  <bruno@clisp.org>
53288
53289         * modules/locale-tests: New file.
53290         * tests/test-locale.c: New file.
53291
53292         * modules/locale: New file.
53293         * lib/locale_.h: New file.
53294         * m4/locale_h.m4: New file.
53295
53296 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
53297             Bruno Haible  <bruno@clisp.org>
53298
53299         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
53300         be determined, test for availability of the copysignf, copysign,
53301         copysignl functions.
53302         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
53303         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
53304         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
53305
53306 2007-04-09  Eric Blake  <ebb9@byu.net>
53307
53308         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
53309         * modules/stdio (Makefile.am): Support fflush.
53310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53311         * modules/fflush: New file.
53312         * lib/fflush.c: Likewise.
53313         * m4/fflush.m4: Likewise.
53314         * modules/fflush-tests: New test.
53315         * tests/test-fflush.c: Likewise.
53316         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
53317
53318 2007-04-06  Bruno Haible  <bruno@clisp.org>
53319
53320         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
53321         (VASNPRINTF): Use signbit for faster determination whether to print a
53322         minus sign.
53323         * modules/vasnprintf (Files): Remove lib/float+.h.
53324         * modules/fprintf-posix (Depends-on): Add signbit.
53325         * modules/snprintf-posix (Depends-on): Likewise.
53326         * modules/sprintf-posix (Depends-on): Likewise.
53327         * modules/vasnprintf-posix (Depends-on): Likewise.
53328         * modules/vasprintf-posix (Depends-on): Likewise.
53329         * modules/vfprintf-posix (Depends-on): Likewise.
53330         * modules/vsnprintf-posix (Depends-on): Likewise.
53331         * modules/vsprintf-posix (Depends-on): Likewise.
53332
53333 2007-04-06  Bruno Haible  <bruno@clisp.org>
53334
53335         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53336         * tests/test-frexpl.c (main): Likewise.
53337         * tests/test-ldexpl.c (main): Likewise.
53338         * modules/frexp-tests (Depends-on): Add signbit.
53339         * modules/frexpl-tests (Depdends-on): Likewise.
53340         * modules/ldexpl-tests (Depdends-on): Likewise.
53341
53342 2007-04-06  Bruno Haible  <bruno@clisp.org>
53343
53344         * modules/signbit-tests: New file.
53345         * tests/test-signbit.c: New file.
53346
53347         * modules/signbit: New file.
53348         * lib/signbitf.c: New file.
53349         * lib/signbitd.c: New file.
53350         * lib/signbitl.c: New file.
53351         * m4/signbit.m4: New file.
53352         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53353         (signbit): New macro.
53354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53355         REPLACE_SIGNBIT.
53356         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53357         REPLACE_FREXPL into math.h.
53358
53359 2007-04-06  Bruno Haible  <bruno@clisp.org>
53360
53361         * modules/isnanf-nolibm-tests: New file.
53362         * tests/test-isnanf.c: New file.
53363
53364         * modules/isnanf-nolibm: New file.
53365         * lib/isnanf.h: New file.
53366         * lib/isnanf.c: New file.
53367         * lib/isnan.c: Consider the USE_FLOAT macro.
53368         * m4/isnanf.m4: New file.
53369
53370 2007-04-06  Bruno Haible  <bruno@clisp.org>
53371
53372         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53373         (Link): New section.
53374
53375         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53376
53377 2007-04-06  Bruno Haible  <bruno@clisp.org>
53378
53379         Assume the 'long double' type.
53380         * m4/longdouble.m4: Remove file.
53381         * config/srclist.txt: Don't mention longdouble.m4.
53382         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53383         * lib/float+.h: Likewise.
53384         * lib/frexp.c: Likewise.
53385         * lib/printf-args.h: Likewise.
53386         * lib/printf-args.c: Likewise.
53387         * lib/printf-frexp.c: Likewise.
53388         * lib/printf-parse.c: Likewise.
53389         * lib/vasnprintf.c: Likewise.
53390         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53391         * m4/intl.m4: Likewise.
53392         * m4/isnanl.m4: Likewise.
53393         * m4/printf.m4: Likewise.
53394         * m4/printf-frexpl.m4: Likewise.
53395         * m4/vasnprintf.m4: Likewise.
53396         * modules/allocsa (Files): Remove m4/longdouble.m4.
53397         * modules/gettext (Files): Likewise.
53398         * modules/relocatable-prog-wrapper (Files): Likewise.
53399         * modules/vasnprintf (Files): Likewise.
53400         * modules/isnanl (Files): Likewise.
53401         (Include): Simplify.
53402         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53403         (Include): Simplify.
53404         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53405         (Include): Simplify.
53406         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53407         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53408         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53409         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53410         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53411         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53412         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53413         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53414         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53415         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53416         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53417         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53418         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53419         * tests/test-isnanl.c: Likewise.
53420         * tests/test-snprintf-posix.h: Likewise.
53421         * tests/test-sprintf-posix.h: Likewise.
53422         * tests/test-vasnprintf-posix.c: Likewise.
53423         * tests/test-vasnprintf-posix2.c: Likewise.
53424         * tests/test-vasprintf-posix.c: Likewise.
53425
53426 2007-04-06  Bruno Haible  <bruno@clisp.org>
53427
53428         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53429         * lib/math_.h [__DECC]: Include the overridden include file through
53430         #include_next, outside the double-inclusion guard.
53431         * lib/stdio_.h [__DECC]: Likewise.
53432         * lib/stdlib_.h [__DECC]: Likewise.
53433         * lib/string_.h [__DECC]: Likewise.
53434         * lib/time_.h [__DECC]: Likewise.
53435         * lib/wchar_.h [__DECC]: Likewise.
53436         * lib/wctype_.h [__DECC]: Likewise.
53437         * lib/inttypes_.h [__DECC]: Likewise.
53438         Reported by Albert Chin <china@thewrittenword.com> in
53439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53440
53441 2007-04-04  Eric Blake  <ebb9@byu.net>
53442
53443         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53444         1.5.x.
53445
53446 2007-04-04  Bruno Haible  <bruno@clisp.org>
53447
53448         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53449         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53450
53451 2007-04-04  Bruno Haible  <bruno@clisp.org>
53452
53453         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53454         results for "%010a" of Infinity and NaN.
53455         * tests/test-vasprintf-posix.c (test_function): Likewise.
53456         * tests/test-snprintf-posix.h (test_function): Likewise.
53457         * tests/test-sprintf-posix.h (test_function): Likewise.
53458         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53459         * tests/test-printf-posix.h (test_function): Likewise.
53460         * tests/test-fprintf-posix.out: Update.
53461         Needed for FreeBSD 6.1.
53462
53463 2007-04-04  Bruno Haible  <bruno@clisp.org>
53464
53465         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53466         directly used by the gnulib modules nor by gnulib-tool.
53467
53468 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53469
53470         * DEPENDENCIES: Give overall description of version dependency
53471         desirability.  Use more-typical names for apps.
53472         Add shell, coreutils, diffutils, grep, tar, gzip.
53473
53474 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53475
53476         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53477
53478 2007-04-04  Karl Berry  <karl@gnu.org>
53479
53480         * MODULES.html.sh (func_module): missing '.
53481
53482 2007-04-03  Bruno Haible  <bruno@clisp.org>
53483
53484         * modules/argmatch-tests (Makefile.am): New variable
53485         test_argmatch_LDADD.
53486         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53487         * modules/array-list-tests (Makefile.am): New variable
53488         test_array_list_LDADD.
53489         * modules/array-oset-tests (Makefile.am): New variable
53490         test_array_oset_LDADD.
53491         * modules/avltree-list-tests (Makefile.am): New variable
53492         test_avltree_list_LDADD.
53493         * modules/avltree-oset-tests (Makefile.am): New variable
53494         test_avltree_oset_LDADD.
53495         * modules/avltreehash-list-tests (Makefile.am): New variable
53496         test_avltreehash_list_LDADD.
53497         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53498         test_canonicalize_lgpl_LDADD.
53499         * modules/carray-list-tests (Makefile.am): New variable
53500         test_carray_list_LDADD.
53501         * modules/dirname-tests (Makefile.am): New variable
53502         test_dirname_LDADD.
53503         * modules/linked-list-tests (Makefile.am): New variable
53504         test_linked_list_LDADD.
53505         * modules/linkedhash-list-tests (Makefile.am): New variable
53506         test_linkedhash_list_LDADD.
53507         * modules/rbtree-list-tests (Makefile.am): New variable
53508         test_rbtree_list_LDADD.
53509         * modules/rbtree-oset-tests (Makefile.am): New variable
53510         test_rbtree_oset_LDADD.
53511         * modules/rbtreehash-list-tests (Makefile.am): New variable
53512         test_rbtreehash_list_LDADD.
53513         * modules/xvasprintf-tests (Makefile.am): New variable
53514         test_xvasprintf_LDADD.
53515         Reported by Eric Blake.
53516
53517 2007-04-03  Eric Blake  <ebb9@byu.net>
53518
53519         * DEPENDENCIES: Weaken m4 requirements.
53520
53521 2007-04-03  Bruno Haible  <bruno@clisp.org>
53522
53523         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53524         * modules/isnanl-tests (configure.ac): Likewise.
53525
53526 2007-04-03  Ben Pfaff  <blp@gnu.org>
53527
53528         * modules/iconv_open: Add $(srcdir)/ to source directory
53529         references in Makefile fragments that call gperf, to fix VPATH
53530         builds.
53531
53532 2007-04-03  Bruno Haible  <bruno@clisp.org>
53533
53534         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53535         * lib/ldexpl.c: Undo last change.
53536
53537 2007-04-03  Bruno Haible  <bruno@clisp.org>
53538
53539         * modules/printf-frexpl (Depends-on): Undo last change.
53540         (Files): Add m4/ldexpl.m4.
53541
53542 2007-04-03  Bruno Haible  <bruno@clisp.org>
53543
53544         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53545         * modules/isnanl (Link): New section.
53546
53547         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53548         * modules/frexp (Link): New section.
53549
53550         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53551         * modules/frexpl (Link): New section.
53552
53553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53554         * modules/ldexpl (Link): New section.
53555
53556 2007-04-03  Bruno Haible  <bruno@clisp.org>
53557
53558         * modules/TEMPLATE-EXTENDED: New file.
53559         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53560
53561 2007-04-03  Bruno Haible  <bruno@clisp.org>
53562
53563         * DEPENDENCIES: New file.
53564         Suggested by Simon Josefsson.
53565
53566 2007-04-03  Bruno Haible  <bruno@clisp.org>
53567
53568         * doc/gnulib.texi: Escape @.
53569
53570 2007-04-03  James Youngman  <jay@gnu.org>
53571         and Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53574         birthtime on all systems that have birthtime, not just those which
53575         use st_birthtimensec rather than st_birthtim.  Putting zero in
53576         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53577         that the birth time is not available for files on an NFS mount.
53578
53579 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53580
53581         * modules/memxor: Move back from crypto/, suggested by Bruno.
53582         * modules/crypto/hmac-sha1: Fix memxor dependency.
53583
53584         * modules/crypto/gc: Moved from ../.
53585
53586 2007-04-02  Eric Blake  <ebb9@byu.net>
53587
53588         * lib/ldexpl.c (includes): Avoid libm.
53589
53590         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53591
53592 2007-04-02  Bruno Haible  <bruno@clisp.org>
53593
53594         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53595         on IRIX.
53596
53597 2007-04-02  Bruno Haible  <bruno@clisp.org>
53598
53599         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53600         x86 or x86_64 platforms running MacOS X.
53601         Reported by Ryan Schmidt <@ryandesign.com>.
53602
53603 2007-04-02  Bruno Haible  <bruno@clisp.org>
53604
53605         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53606         i386.
53607
53608 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53609
53610         * modules/crypto/arcfour: Moved from ../.
53611         * modules/crypto/arcfour-tests: Moved from ../.
53612         * modules/crypto/arctwo: Moved from ../.
53613         * modules/crypto/arctwo-tests: Moved from ../.
53614         * modules/crypto/des: Moved from ../.
53615         * modules/crypto/des-tests: Moved from ../.
53616         * modules/crypto/gc-arcfour: Moved from ../.
53617         * modules/crypto/gc-arcfour-tests: Moved from ../.
53618         * modules/crypto/gc-arctwo: Moved from ../.
53619         * modules/crypto/gc-arctwo-tests: Moved from ../.
53620         * modules/crypto/gc-des: Moved from ../.
53621         * modules/crypto/gc-des-tests: Moved from ../.
53622         * modules/crypto/gc-hmac-md5: Moved from ../.
53623         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53624         * modules/crypto/gc-hmac-sha1: Moved from ../.
53625         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53626         * modules/crypto/gc-md2: Moved from ../.
53627         * modules/crypto/gc-md2-tests: Moved from ../.
53628         * modules/crypto/gc-md4: Moved from ../.
53629         * modules/crypto/gc-md4-tests: Moved from ../.
53630         * modules/crypto/gc-md5: Moved from ../.
53631         * modules/crypto/gc-md5-tests: Moved from ../.
53632         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53633         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53634         * modules/crypto/gc-random: Moved from ../.
53635         * modules/crypto/gc-rijndael: Moved from ../.
53636         * modules/crypto/gc-rijndael-tests: Moved from ../.
53637         * modules/crypto/gc-sha1: Moved from ../.
53638         * modules/crypto/gc-sha1-tests: Moved from ../.
53639         * modules/crypto/gc-tests: Moved from ../.
53640         * modules/crypto/hmac-md5: Moved from ../.
53641         * modules/crypto/hmac-md5-tests: Moved from ../.
53642         * modules/crypto/hmac-sha1: Moved from ../.
53643         * modules/crypto/hmac-sha1-tests: Moved from ../.
53644         * modules/crypto/md2: Moved from ../.
53645         * modules/crypto/md2-tests: Moved from ../.
53646         * modules/crypto/md4: Moved from ../.
53647         * modules/crypto/md4-tests: Moved from ../.
53648         * modules/crypto/md5: Moved from ../.
53649         * modules/crypto/md5-tests: Moved from ../.
53650         * modules/crypto/memxor: Moved from ../.
53651         * modules/crypto/rijndael: Moved from ../.
53652         * modules/crypto/rijndael-tests: Moved from ../.
53653         * modules/crypto/sha1: Moved from ../.
53654
53655 2007-03-30  James Youngman  <jay@gnu.org>
53656
53657         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53658         rename() to change the ctime of a file (because ctime is unaffected
53659         by rename on jfs2 on AIX 5.1).
53660         (main): Start by doing cleanup, in case a previous run failed leaving
53661         test files behind.
53662
53663 2007-03-31  Bruno Haible  <bruno@clisp.org>
53664
53665         Support old proprietary implementations of iconv.
53666         * modules/iconv_open: New file.
53667         * lib/iconv_.h: New file.
53668         * m4/iconv_h.m4: New file.
53669         * lib/iconv_open.c: New file.
53670         * lib/iconv_open-aix.gperf: New file.
53671         * lib/iconv_open-hpux.gperf: New file.
53672         * lib/iconv_open-irix.gperf: New file.
53673         * lib/iconv_open-osf.gperf: New file.
53674         * m4/iconv_open.m4: New file.
53675         * modules/linebreak (Depends-on): Add iconv_open.
53676         * modules/striconv (Depends-on): Likewise.
53677         * modules/striconveh (Depends-on): Likewise.
53678         * modules/unicodeio (Depends-on): Likewise.
53679         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53680         (iconv_t)(-1).
53681         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53682         conversion if cd is (iconv_t)(-1).
53683         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53684         is not possible.
53685
53686 2007-03-31  Bruno Haible  <bruno@clisp.org>
53687
53688         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53689         work on Solaris either. Protect also second use of "autodetect_jp".
53690
53691 2007-03-31  Bruno Haible  <bruno@clisp.org>
53692
53693         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53694         the function is not present.
53695
53696 2007-03-31  Bruno Haible  <bruno@clisp.org>
53697
53698         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53699         the function is not present.
53700
53701 2007-03-31  Bruno Haible  <bruno@clisp.org>
53702
53703         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53704         a bug in HP-UX iconv_open().
53705
53706 2007-03-31  Bruno Haible  <bruno@clisp.org>
53707
53708         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53709         (Mathematics <math.h>): New section, add fpieee.
53710         (Input/output <stdio.h>): Add fseterr.
53711         (Mathematics <math.h>): New section, add printf-frexp.
53712         (Container data structures): Add sublist.
53713         (Core language properties): Add fpucw, inline.
53714         (Functions for greatest-width integer types <inttypes.h>): Add
53715         imaxabs, imaxdiv, inttypes.
53716         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53717         isnanl-nolibm, ldexp.
53718         (Mathematics <math.h>): New section, add printf-frexpl.
53719         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53720         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53721         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53722         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53723         (Unicode string functions): Add unistr/u*-mbtoucr.
53724         (Java): Add javacomp-script, javaexec-script.
53725         (C#): Add csharpcomp-script, csharpexec-script.
53726         (Support for building libraries and executables): Add havelib,
53727         relocatable-*.
53728         (Support for maintaining and releasing projects): Renamed from
53729         'Support for maintaining and release projects'. Add announce-gen.
53730
53731 2007-03-31  Bruno Haible  <bruno@clisp.org>
53732
53733         * README: Talk primarily about git.
53734         (git and CVS): Renamed from CVS.
53735         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53736         gnulib is available through git.
53737         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53738
53739 2007-03-30  Bruno Haible  <bruno@clisp.org>
53740
53741         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53742         * lib/poll_.h: Likewise.
53743         * lib/stat_.h: Likewise.
53744         * lib/sys_time_.h: Likewise.
53745         * lib/sysexit_.h: Likewise.
53746         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53747         * lib/stdbool_.h: Likewise.
53748         * lib/byteswap_.h: Add double-inclusion guard.
53749
53750 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53751
53752         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53753
53754 2007-03-30  Karl Berry  <karl@gnu.org>
53755
53756         * config/srclist-update: double space after USA in the license
53757         substitution, since that's how it's usually (?) written.
53758
53759 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53760
53761         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53762         reported by Bruno Haible.
53763
53764 2007-03-29  Bruno Haible  <bruno@clisp.org>
53765
53766         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53767         a bug in AIX iconv().
53768
53769 2007-03-29  Bruno Haible  <bruno@clisp.org>
53770
53771         * modules/ldexpl-tests: New file.
53772         * tests/test-ldexpl.c: New file.
53773
53774 2007-03-29  Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/ldexpl.c: Include fpucw.h.
53777         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53778         multiplication.
53779         * modules/ldexpl (Depends-on): Add fpucw.
53780
53781 2007-03-29  Bruno Haible  <bruno@clisp.org>
53782
53783         * modules/ldexpl: New file.
53784         * m4/ldexpl.m4: New file.
53785         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53786         set.
53787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53788         REPLACE_LDEXPL.
53789         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53790         REPLACE_LDEXPL.
53791         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53792         gl_FUNC_LDEXPL_WORKS.
53793         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53794         * modules/mathl (Files): Remove lib/ldexpl.c.
53795         (Depends-on): Add ldexpl.
53796
53797 2007-03-29  Bruno Haible  <bruno@clisp.org>
53798
53799         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53800
53801 2007-03-29  Bruno Haible  <bruno@clisp.org>
53802
53803         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53804         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53805         and possibly also HP-UX.
53806         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53807         work on AIX, IRIX, HP-UX, OSF/1.
53808         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53809         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53810         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53811         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53812         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53813         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53814
53815 2007-03-29  Bruno Haible  <bruno@clisp.org>
53816
53817         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53818
53819 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53820
53821         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53822         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53823
53824 2007-03-29  Eric Blake  <ebb9@byu.net>
53825
53826         * lib/acl-internal.h: Remove redundant include.
53827         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53828         Cygwin when a file is locked.
53829
53830 2007-03-29  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53833         file.
53834         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53835
53836 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53837
53838         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53839         try to remove a parent directory if the child couldn't be removed
53840         (except for the first rmdir, which could fail because the child
53841         doesn't exist).  Problem reported by Jeff Blaine in
53842         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53843
53844 2007-03-28  Bruno Haible  <bruno@clisp.org>
53845
53846         * lib/striconveh.c (utf8conv_carefully): New function.
53847         (mem_cd_iconveh_internal): Invoke it.
53848
53849 2007-03-28  Bruno Haible  <bruno@clisp.org>
53850
53851         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53852         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53853         input.
53854         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53855         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53856         unistr/u8-uctomb.
53857
53858 2007-03-28  Bruno Haible  <bruno@clisp.org>
53859
53860         * modules/unistr/u8-mbtoucr: New file.
53861         * lib/unistr/u8-mbtoucr.c: New file.
53862         * modules/unistr/u16-mbtoucr: New file.
53863         * lib/unistr/u16-mbtoucr.c: New file.
53864         * modules/unistr/u16-mbtoucr: New file.
53865         * lib/unistr/u16-mbtoucr.c: New file.
53866         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53867
53868 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53869             Bruno Haible  <bruno@clisp.org>
53870
53871         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53872         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53873         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53874
53875         * m4/stdio_h.m4: Add stubs for vasprintf too.
53876
53877         * modules/stdio: Support vasprintf in sed command.
53878
53879         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53880         vasprintf.h.  Add stdio module indicator.
53881
53882         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53883         vasprintf.h.
53884
53885         * lib/vasprintf.h: File removed.
53886
53887         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53888         * lib/vasprintf.c: Ditto.
53889         * lib/xvasprintf.c: Ditto.
53890         * tests/test-vasprintf-posix.c: Ditto.
53891         * tests/test-vasprintf.c: Ditto.
53892
53893 2007-03-27  Bruno Haible  <bruno@clisp.org>
53894
53895         Make vasnprintf multithread-safe.
53896         * lib/vasnprintf.c (decimal_point_char): New function.
53897         (VASNPRINTF): Use it.
53898         Suggested by Simon Josefsson.
53899
53900 2007-03-27  Eric Blake  <ebb9@byu.net>
53901
53902         Support sub-second birthtime on cygwin.
53903         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53904         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53905         (get_stat_birthtime): Also work with st_birthtim.
53906
53907 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53908
53909         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53910         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53911         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53912         (get_stat_birthtime_ns): Simplify compile-time tests.
53913         (get_stat_birthtime): Change the API to look like
53914         get_stat_mtime etc., except return a negative tv_nsec on error.
53915         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53916         Don't check for "spare" fields.
53917         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53918         or for struct stat.st_birthtime, as these tests aren't used.
53919         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53920
53921 2007-03-27  Bruno Haible  <bruno@clisp.org>
53922
53923         * lib/stat-time.h: Include <sys/stat.h>.
53924
53925 2007-03-27  James Youngman  <jay@gnu.org>
53926
53927         * lib/stat-time.h (get_stat_birthtime): New function for
53928           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53929         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53930           and its variants.
53931         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53932         * modules/stat-time-test: New file.
53933         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53934
53935 2007-03-26  Bruno Haible  <bruno@clisp.org>
53936
53937         Better support of signalling NaNs.
53938         * lib/atanl.c: Include isnanl.h.
53939         (atanl): Perform test for NaN at the beginning of the function and
53940         through a call to isnanl.
53941         * lib/cosl.c: Include isnanl.h.
53942         (cosl): Perform test for NaN at the beginning of the function and
53943         through a call to isnanl.
53944         * lib/ldexpl.c: Include isnanl.h.
53945         (ldexpl): Perform test for NaN through a call to isnanl.
53946         * lib/logl.c: Include isnanl.h.
53947         (logl): Perform test for NaN at the beginning of the function and
53948         through a call to isnanl.
53949         * lib/sinl.c: Include isnanl.h.
53950         (sinl): Perform test for NaN at the beginning of the function and
53951         through a call to isnanl.
53952         * lib/sqrtl.c: Include isnanl.h.
53953         (sqrtl): Perform test for NaN at the beginning of the function and
53954         through a call to isnanl.
53955         * lib/tanl.c: Include isnanl.h.
53956         (tanl): Perform test for NaN at the beginning of the function and
53957         through a call to isnanl.
53958         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53959         * modules/mathl (Depends-on): Add isnanl.
53960
53961 2007-03-26  Eric Blake  <ebb9@byu.net>
53962
53963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53964         regression in logic sense of previous patch.
53965
53966 2007-03-26  Bruno Haible  <bruno@clisp.org>
53967
53968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53969         unportable shell command "if ! ...".
53970         Reported by Ralf Wildenhues.
53971
53972 2007-03-25  Bruno Haible  <bruno@clisp.org>
53973
53974         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53975         <sysexits.h> file, and only add EX_CONFIG.
53976         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53977         absolute file name and whether it is sufficient. Substitute also
53978         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53979         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53980         ABSOLUTE_SYSEXITS_H into sysexits.h.
53981
53982 2007-03-25  Bruno Haible  <bruno@clisp.org>
53983
53984         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53985         hints is NULL.
53986
53987 2007-03-25  Bruno Haible  <bruno@clisp.org>
53988
53989         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53990         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53991
53992 2007-03-25  Bruno Haible  <bruno@clisp.org>
53993
53994         * lib/vasnprintf.c: Include langinfo.h.
53995         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53996         multithread-safe.
53997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53998         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54000         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54001         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54002         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54003         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54004         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
54005         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54006         Reported by Simon Josefsson.
54007
54008 2007-03-25  Bruno Haible  <bruno@clisp.org>
54009
54010         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
54011         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
54012         * modules/vasnprintf (Depends-on): Add stdint.
54013
54014 2007-03-25  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/fpieee: New file.
54017         * m4/fpieee.m4: New file.
54018         * modules/isnan-nolibm (Depends-on): Add fpieee.
54019         * modules/isnanl-nolibm (Depends-on): Add fpieee.
54020         * modules/isnanl (Depends-on): Add fpieee.
54021
54022 2007-03-25  Bruno Haible  <bruno@clisp.org>
54023
54024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
54025
54026 2007-03-25  Bruno Haible  <bruno@clisp.org>
54027
54028         Avoid test failures on IRIX 6.5.
54029         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
54030         (main): Use it.
54031         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
54032         macros.
54033         (main): Use them.
54034
54035 2007-03-25  Bruno Haible  <bruno@clisp.org>
54036
54037         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
54038         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
54039         exists but doesn't work.
54040         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
54041         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
54042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
54043         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
54044         math.h.
54045
54046 2007-03-25  Bruno Haible  <bruno@clisp.org>
54047
54048         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
54049         returns inf. Needed on IRIX 6.5.
54050
54051 2007-03-25  Bruno Haible  <bruno@clisp.org>
54052
54053         * tests/test-frexpl.c: Include isnanl-nolibm.h.
54054         (main): Use isnanl instead of x != x idiom.
54055         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
54056
54057         * tests/test-frexp.c: Include isnan.h.
54058         (main): Use isnan instead of x != x idiom.
54059         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
54060
54061 2007-03-25  Bruno Haible  <bruno@clisp.org>
54062
54063         * tests/test-frexp.c (NaN): New function/macro.
54064         (main): Use it instead of 0.0 / 0.0.
54065         * tests/test-isnan.c (NaN): New function/macro.
54066         (main): Use it instead of 0.0 / 0.0.
54067         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
54068         (test_function): Use it instead of 0.0 / 0.0.
54069         * tests/test-vasprintf-posix.c (NaN): New function/macro.
54070         (test_function): Use it instead of 0.0 / 0.0.
54071         * tests/test-snprintf-posix.h (NaN): New function/macro.
54072         (test_function): Use it instead of 0.0 / 0.0.
54073         * tests/test-sprintf-posix.h (NaN): New function/macro.
54074         (test_function): Use it instead of 0.0 / 0.0.
54075         * tests/test-fprintf-posix.h (NaN): New function/macro.
54076         (test_function): Use it instead of 0.0 / 0.0.
54077         * tests/test-printf-posix.h (NaN): New function/macro.
54078         (test_function): Use it instead of 0.0 / 0.0.
54079
54080         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
54081
54082 2007-03-25  Bruno Haible  <bruno@clisp.org>
54083
54084         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
54085
54086 2007-03-25  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/regexec.c (merge_state_with_log): Make static.
54089
54090 2007-03-25  Bruno Haible  <bruno@clisp.org>
54091
54092         * lib/trigl.c (kernel_rem_pio2): Make static.
54093
54094 2007-03-25  Bruno Haible  <bruno@clisp.org>
54095
54096         * lib/sincosl.c (sincosl_table): Make static.
54097
54098 2007-03-25  Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
54101         if the compiler does not support C99.
54102
54103 2007-03-25  Bruno Haible  <bruno@clisp.org>
54104
54105         * modules/time (Makefile.am): Ensure all rule action lines start with a
54106         tab.
54107
54108 2007-03-24  Bruno Haible  <bruno@clisp.org>
54109
54110         * modules/tsearch-tests: New file.
54111         * tests/test-tsearch.sh: New file.
54112         * tests/test-tsearch.c: New file, mostly copied from glibc.
54113
54114         * modules/search-tests: New file.
54115         * tests/test-search.c: New file.
54116
54117         * modules/search: New file.
54118         * lib/search_.h: New file, incorporating lib/tsearch.h.
54119         * m4/search_h.m4: New file.
54120         * lib/tsearch.h: Remove file.
54121         * lib/tsearch.c: Include search.h instead of tsearch.h.
54122         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
54123         HAVE_TSEARCH.
54124         * modules/tsearch (Files): Remove lib/tsearch.h.
54125         (Depends-on): Add search.
54126         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
54127         (Include): Change tsearch.h into search.h.
54128
54129 2007-03-24  Bruno Haible  <bruno@clisp.org>
54130
54131         * modules/fpucw: New file.
54132         * lib/fpucw.h: New file.
54133         * lib/frexp.c: Include fpucw.h.
54134         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54135         (FUNC): Use them.
54136         * lib/printf-frexp.c: Include fpucw.h.
54137         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54138         (FUNC): Use them.
54139         * lib/vasnprintf.c: Include fpucw.h.
54140         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
54141         'long double' calculations.
54142         * tests/test-frexpl.c: Include fpucw.h.
54143         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54144         * tests/test-printf-frexpl.c: Include fpucw.h.
54145         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54146         * modules/frexpl (Depends-on): Add fpucw.
54147         * modules/printf-frexpl (Depends-on): Likewise.
54148         * modules/fprintf-posix (Depends-on): Likewise.
54149         * modules/snprintf-posix (Depends-on): Likewise.
54150         * modules/sprintf-posix (Depends-on): Likewise.
54151         * modules/vasnprintf-posix (Depends-on): Likewise.
54152         * modules/vasprintf-posix (Depends-on): Likewise.
54153         * modules/vfprintf-posix (Depends-on): Likewise.
54154         * modules/vsnprintf-posix (Depends-on): Likewise.
54155         * modules/vsprintf-posix (Depends-on): Likewise.
54156         * modules/frexpl-tests (Depends-on): Likewise.
54157         * modules/printf-frexpl-tests (Depends-on): Likewise.
54158
54159 2007-03-24  Bruno Haible  <bruno@clisp.org>
54160
54161         * lib/float+.h: New file.
54162         * lib/isnan.c: Include float+.h.
54163         (SIZE): New macro.
54164         (FUNC): Compare only SIZE bytes of the value.
54165         * lib/vasnprintf.c: Include float+.h.
54166         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
54167         SIZEOF_LDBL or SIZEOF_DBL bytes.
54168         * modules/isnan-nolibm (Files): Add lib/float+.h.
54169         * modules/isnanl-nolibm (Files): Add lib/float+.h.
54170         * modules/isnanl (Files): Add lib/float+.h.
54171         * modules/vasnprintf (Files): Add lib/float+.h.
54172
54173 2007-03-24  Bruno Haible  <bruno@clisp.org>
54174
54175         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
54176         include isnanl-nolibm.h.
54177
54178 2007-03-24  Bruno Haible  <bruno@clisp.org>
54179
54180         * tests/test-read-file.c (main): Don't produce spurious output for
54181         expected situations. Make the test fail if it encountered unexpected
54182         results.
54183
54184 2007-03-24  Bruno Haible  <bruno@clisp.org>
54185
54186         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
54187         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
54188
54189 2007-03-24  Bruno Haible  <bruno@clisp.org>
54190
54191         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
54192
54193 2007-03-24  Bruno Haible  <bruno@clisp.org>
54194
54195         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
54196         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
54197
54198         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
54199         * modules/utf8-ucs4: Turn into a symbolic link to module
54200         unistr/u8-mbtouc.
54201
54202         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
54203         utf8-ucs4-unsafe.
54204         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
54205         unistr/u8-mbtouc-unsafe.
54206
54207         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
54208         * modules/utf16-ucs4: Turn into a symbolic link to module
54209         unistr/u16-mbtouc.
54210
54211         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
54212         utf16-ucs4-unsafe.
54213         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
54214         unistr/u16-mbtouc-unsafe.
54215
54216         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
54217         * modules/ucs4-utf8: Turn into a symbolic link to module
54218         unistr/u8-ubtomb.
54219
54220         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
54221         * modules/ucs4-utf16: Turn into a symbolic link to module
54222         unistr/u16-ubtomb.
54223
54224 2007-03-24  Bruno Haible  <bruno@clisp.org>
54225
54226         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
54227         Enable the function only if HAVE_INLINE.
54228         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
54229         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54230         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
54231         Enable the function only if HAVE_INLINE.
54232         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
54233         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54234         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
54235         Enable the function only if HAVE_INLINE.
54236         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
54237         Enable the function only if HAVE_INLINE.
54238         * modules/utf8-ucs4: Update.
54239         * modules/utf8-ucs4-unsafe: Update.
54240         * modules/utf16-ucs4: Update.
54241         * modules/utf16-ucs4-unsafe: Update.
54242         * modules/ucs4-utf8: Update.
54243         * modules/ucs4-utf16: Update.
54244
54245 2007-03-24  Bruno Haible  <bruno@clisp.org>
54246
54247         * lib/utf8-ucs4.h: Remove file.
54248         * lib/utf8-ucs4-unsafe.h: Remove file.
54249         * lib/utf16-ucs4.h: Remove file.
54250         * lib/utf16-ucs4-unsafe.h: Remove file.
54251         * lib/ucs4-utf8.h: Remove file.
54252         * lib/ucs4-utf16.h: Remove file.
54253         * lib/unistr.h: Include their previous contents.
54254         * m4/utf-ucs4.m4: Remove file.
54255         * m4/ucs4-utf.m4: Remove file.
54256         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
54257         (Depends-on): Add unistr/base.
54258         (configure.ac): Remove gl_UTF_UCS4.
54259         (Makefile.am): Update.
54260         (Include): Change to unistr.h.
54261         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
54262         (Depends-on): Add unistr/base.
54263         (configure.ac): Remove gl_UTF_UCS4.
54264         (Makefile.am): Update.
54265         (Include): Change to unistr.h.
54266         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
54267         (Depends-on): Add unistr/base.
54268         (configure.ac): Remove gl_UTF_UCS4.
54269         (Makefile.am): Update.
54270         (Include): Change to unistr.h.
54271         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
54272         (Depends-on): Add unistr/base.
54273         (configure.ac): Remove gl_UTF_UCS4.
54274         (Makefile.am): Update.
54275         (Include): Change to unistr.h.
54276         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
54277         (Depends-on): Add unistr/base.
54278         (configure.ac): Remove gl_UCS4_UTF.
54279         (Makefile.am): Update.
54280         (Include): Change to unistr.h.
54281         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
54282         (Depends-on): Add unistr/base.
54283         (configure.ac): Remove gl_UCS4_UTF.
54284         (Makefile.am): Update.
54285         (Include): Change to unistr.h.
54286         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
54287         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
54288         utf8-ucs4-unsafe.h.
54289         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
54290         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
54291         utf16-ucs4-unsafe.h.
54292         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
54293         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
54294         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
54295         * lib/unistr/u8-strchr.c: Likewise.
54296         * lib/unistr/u8-strrchr.c: Likewise.
54297         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
54298         * lib/unistr/u16-strchr.c: Likewise.
54299         * lib/unistr/u16-strrchr.c: Likewise.
54300         * lib/striconveh.c: Update.
54301         * lib/linebreak.c: Update.
54302
54303 2007-03-24  Bruno Haible  <bruno@clisp.org>
54304
54305         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
54306         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
54307
54308 2007-03-22  Bruno Haible  <bruno@clisp.org>
54309
54310         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
54311
54312 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54313
54314         * MODULES.html.sh (File system functions): New module write-any-file.
54315         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
54316         * m4/write-any-file.m4: New files.
54317
54318 2007-03-23  Eric Blake  <ebb9@byu.net>
54319
54320         * gnulib-tool: Rearrange space-tab sequences, since some editors
54321         like to eat them.
54322
54323 2007-03-23  Eric Blake  <ebb9@byu.net>
54324
54325         * lib/version-etc.c (version_etc_va): Update license wording to
54326         be more concise.  Recommended by Richard Stallman.
54327
54328 2007-03-22  Bruno Haible  <bruno@clisp.org>
54329
54330         * lib/poll.c (MSG_PEEK): New fallback definition.
54331
54332 2007-03-22  Bruno Haible  <bruno@clisp.org>
54333
54334         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54335         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54336         (main): Update.
54337         Fixes a compilation error on BeOS.
54338
54339 2007-03-22  Bruno Haible  <bruno@clisp.org>
54340
54341         * modules/frexpl-tests: New file.
54342         * tests/test-frexpl.c: New file.
54343
54344         * modules/frexpl: New file.
54345         * m4/frexpl.m4: New file.
54346         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54347         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54349         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54350         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54351         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54352
54353 2007-03-22  Bruno Haible  <bruno@clisp.org>
54354
54355         * lib/frexpl.c: Share code with lib/frexp.c.
54356         * modules/mathl (Files): Add lib/frexp.c.
54357         (Depends-on): Add isnanl-nolibm.
54358
54359 2007-03-22  Bruno Haible  <bruno@clisp.org>
54360
54361         * modules/printf-frexp (Files): Add m4/frexp.m4.
54362         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54363         only if the found frexp function actually works.
54364
54365 2007-03-22  Bruno Haible  <bruno@clisp.org>
54366
54367         * lib/frexp.c: Remove older implementation that uses divisions.
54368
54369 2007-03-21  Bruno Haible  <bruno@clisp.org>
54370
54371         * modules/frexp-tests: New file.
54372         * tests/test-frexp.c: New file.
54373
54374         * modules/frexp: New file.
54375         * lib/frexp.c: New file.
54376         * m4/frexp.m4: New file.
54377         * lib/math_.h (frexp): New declaration.
54378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54379         REPLACE_FREXP.
54380         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54381
54382 2007-03-21  Bruno Haible  <bruno@clisp.org>
54383
54384         * modules/isnanl-tests: New file.
54385         * tests/test-isnanl.c: New file.
54386
54387         * modules/isnanl: New file.
54388         * lib/isnanl.h: New file.
54389         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54390         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54391         gl_FUNC_ISNANL_WORKS.
54392         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54393         New macros.
54394
54395 2007-03-21  Bruno Haible  <bruno@clisp.org>
54396
54397         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54398         lib/isnanl.h.
54399         (Include): Update.
54400         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54401         * lib/vasnprintf.c: Update.
54402         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54403         tests/test-isnanl.h, remove tests/test-isnanl.c.
54404         (Makefile.am): Update.
54405         * tests/test-isnanl-nolibm.c: New file.
54406         * tests/test-isnanl.h: New file.
54407         * tests/test-isnanl.c: Remove file.
54408
54409 2007-03-21  Jim Meyering  <jim@meyering.net>
54410
54411         When trying to open ".", treat ESTALE like EACCES.
54412         * lib/savewd.c (savewd_save): Resort to forking not just upon
54413         failure with EACCES, but also when errno is ESTALE.
54414
54415 2007-03-20  Bruno Haible  <bruno@clisp.org>
54416
54417         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54418         Needed on AIX 5.1. Reported by Matthew Woehlke.
54419
54420 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54421
54422         Suggestions by Bruno Haible:
54423         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54424         our own.
54425         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54426         * modules/acl (Depends-on): Add gettext.
54427
54428 2007-03-19  Bruno Haible  <bruno@clisp.org>
54429
54430         * modules/iconvme: Remove file.
54431         * lib/iconvme.h: Remove file.
54432         * lib/iconvme.c: Remove file.
54433         * m4/iconvme.m4: Remove file.
54434
54435 2007-03-19  Bruno Haible  <bruno@clisp.org>
54436
54437         * doc/relocatable-maint.texi: Break long shell script line.
54438         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54439
54440 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54441
54442         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54443         handle file_has_acl.
54444         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54445         * lib/acl.c: Move header inclusions and related macro defns into
54446         lib/acl-internal.h.
54447         (S_ISLNK): Remove defn, since that's now done for us.
54448         (file_has_acl): Move to lib/file-has-acl.c.
54449         Call acl_trivial if available.  This is the crucial part of the fix.
54450         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54451         shared within the library.  Rewrite a bit, partly to make it compatible
54452         with the GNU coding style.
54453         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54454         Remove unnecessary double-quotes.
54455         Don't test for acl_to_text; the build will catch that.
54456         Replace acl_entries if it doesn't exist and it is needed.
54457         Check for -lsec and acl_trivial (as used on Solaris 10).
54458         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54459         lib/file-has-acl.c.
54460         (Depends-on): Add sys_stat, for S_ISLNK.
54461
54462 2007-03-19  Ben Pfaff  <blp@gnu.org>
54463
54464         * doc/gnulib.texi: Fix typos.
54465         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54466
54467 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54468
54469         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54470         If size is zero here, buf must be zero.
54471
54472 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54473
54474         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54475         <bruno@clisp.org>.
54476
54477 2007-03-18  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54480         Suggested by Eric Blake.
54481
54482 2007-03-18  Ben Pfaff  <blp@gnu.org>
54483
54484         * doc/relocatable.texi: Recommend using as prefix a directory
54485         that does not exist and will never be created.  Based on
54486         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54487         and others.
54488
54489 2007-03-17  Bruno Haible  <bruno@clisp.org>
54490
54491         * lib/fchownat.c: Include lchown.h.
54492
54493 2007-03-17  Bruno Haible  <bruno@clisp.org>
54494
54495         Fix endless loop when the given allocated size was > INT_MAX.
54496         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54497         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54498         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54499         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54500         * lib/sprintf.c (sprintf): Likewise.
54501
54502 2007-03-17  Bruno Haible  <bruno@clisp.org>
54503
54504         * tests/test-argp-2.sh (func_compare): Output a context diff.
54505
54506 2007-03-17  Bruno Haible  <bruno@clisp.org>
54507
54508         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54509         locale's decimal-point character.
54510
54511 2007-03-17  Bruno Haible  <bruno@clisp.org>
54512
54513         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54514         before comparing it. Needed because on some platforms (e.g. x86) a
54515         'long double' occupies less bytes than sizeof (long double).
54516
54517 2007-03-17  Bruno Haible  <bruno@clisp.org>
54518
54519         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54520         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54521         * tests/test-getaddrinfo.c (simple): Likewise.
54522         * tests/test-read-file.c (main): Likewise.
54523
54524 2007-03-17  Bruno Haible  <bruno@clisp.org>
54525
54526         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54527
54528 2007-03-17  Bruno Haible  <bruno@clisp.org>
54529
54530         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54531         unused variable.
54532
54533 2007-03-17  Bruno Haible  <bruno@clisp.org>
54534
54535         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54536         * tests/test-c-strncasecmp.c: Likewise.
54537
54538 2007-03-17  Bruno Haible  <bruno@clisp.org>
54539
54540         * modules/stdlib (Depends-on): Add unistd.
54541         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54542         Needed for MacOS X 10.3.
54543
54544 2007-03-17  Bruno Haible  <bruno@clisp.org>
54545
54546         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54547
54548 2007-03-17  Bruno Haible  <bruno@clisp.org>
54549
54550         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54551
54552 2007-03-17  Bruno Haible  <bruno@clisp.org>
54553
54554         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54555         to reflect files copied from gnulib (with or without modifications).
54556         Suggested by Jim Meyering.
54557
54558 2007-03-17  Eric Blake  <ebb9@byu.net>
54559
54560         * NEWS: Document stdlib change from 2007-02-18.
54561
54562 2007-03-17  Jim Meyering  <jim@meyering.net>
54563
54564         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54565         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54566         someone uses a name containing shell meta-characters.
54567         Reported by Alfred M. Szmidt.
54568
54569         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54570
54571 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54572
54573         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54574         and copy gettext configuration files only if configure.ac contains
54575         a use of AM_GNU_GETTEXT_VERSION.
54576
54577 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54578
54579         * build-aux/bootstrap (gnulib_name): New variable.
54580         (gnulib_tool_options): Use it.
54581
54582 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54583
54584         * tests/test-des.c: Use new namespace.
54585
54586 2007-03-15  Bruno Haible  <bruno@clisp.org>
54587
54588         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54589         Reported by James Youngman <jay@gnu.org>.
54590
54591 2007-03-15  Bruno Haible  <bruno@clisp.org>
54592
54593         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54594         declared prototype. Needed with cc on OSF/1 5.1.
54595
54596 2007-03-15  Bruno Haible  <bruno@clisp.org>
54597
54598         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54599         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54600         (struct gl_list_implementation): Add dispose_fn argument to the
54601         'create_empty', 'create' methods.
54602         (struct gl_list_impl_base): Add field 'dispose_fn'.
54603         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54604         argument.
54605         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54606         dispose_fn argument.
54607         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54608         dispose_fn on the dropped values.
54609         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54610         dispose_fn argument.
54611         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54612         dropped values.
54613         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54614         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54615         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54616         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54617         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54618         argument.
54619         (gl_tree_list_free): Call dispose_fn on the dropped values.
54620         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54621         the dropped values.
54622         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54623         Add dispose_fn argument.
54624         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54625         Call dispose_fn on the dropped values.
54626         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54627         Add dispose_fn argument.
54628         (gl_sublist_create): Initialize the 'dispose_fn' field.
54629         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54630         * tests/test-array_list.c (main): Update.
54631         * tests/test-carray_list.c (main): Update.
54632         * tests/test-avltree_list.c (main): Update.
54633         * tests/test-rbtree_list.c (main): Update.
54634         * tests/test-avltreehash_list.c (main): Update.
54635         * tests/test-rbtreehash_list.c (main): Update.
54636         * tests/test-linked_list.c (main): Update.
54637         * tests/test-linkedhash_list.c (main): Update.
54638         * tests/test-array_oset.c (main): Update.
54639
54640 2007-03-15  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54643         (gl_oset_create_empty): Add dispose_fn argument.
54644         (struct gl_oset_implementation): Add dispose_fn argument to
54645         'create_empty' method.
54646         (struct gl_oset_impl_base): Add dispose_fn field.
54647         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54648         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54649         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54650         values.
54651         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54652         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54653         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54654         dropped value.
54655         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54656         dropped value.
54657         * tests/test-array_oset.c (main): Update.
54658         * tests/test-avltree_oset.c (main): Update.
54659         * tests/test-rbtree_oset.c (main): Update.
54660         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54661
54662 2007-03-13  Bruno Haible  <bruno@clisp.org>
54663
54664         * tests/test-stdbool.c (i): Update after last patch.
54665
54666 2007-03-12  Bruno Haible  <bruno@clisp.org>
54667
54668         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54669         the iswprint macro. Needed on Solaris 2.5.1.
54670
54671 2007-03-12  Bruno Haible  <bruno@clisp.org>
54672
54673         * tests/test-printf-frexp.c (main): Declare x as volatile.
54674
54675 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54676
54677         * doc/gnulib.texi (Build robot for gnulib): New section.
54678
54679 2007-03-12  Jim Meyering  <jim@meyering.net>
54680
54681         * build-aux/bootstrap: New file.
54682         * build-aux/bootstrap.conf: New file, from coreutils.
54683
54684 2007-03-11  Bruno Haible  <bruno@clisp.org>
54685
54686         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54687
54688 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54689
54690         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54691         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54692         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54693
54694 2007-03-11  Bruno Haible  <bruno@clisp.org>
54695
54696         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54697         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54698
54699 2007-03-11  Bruno Haible  <bruno@clisp.org>
54700
54701         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54702         formula. Needed for SunPRO C 5.0.
54703
54704 2007-03-11  Bruno Haible  <bruno@clisp.org>
54705
54706         * modules/long-options (Depends-on): Add getopt.
54707
54708 2007-03-11  Bruno Haible  <bruno@clisp.org>
54709
54710         * modules/modechange (Depends-on): Add stdbool.
54711
54712 2007-03-11  Bruno Haible  <bruno@clisp.org>
54713
54714         * modules/i-ring (Depends-on): Add stdbool.
54715
54716 2007-03-11  Bruno Haible  <bruno@clisp.org>
54717
54718         * modules/gc-des (Depends-on): Add stdbool.
54719
54720 2007-03-11  Bruno Haible  <bruno@clisp.org>
54721
54722         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54723
54724 2007-03-11  Bruno Haible  <bruno@clisp.org>
54725
54726         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54727
54728 2007-03-11  Bruno Haible  <bruno@clisp.org>
54729
54730         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54731
54732 2007-03-11  Bruno Haible  <bruno@clisp.org>
54733
54734         * lib/vasnprintf.c (sprintf): Undefine.
54735
54736 2007-03-11  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54739         initializers in SunPRO C and Compaq C compilers.
54740
54741 2007-03-11  Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54744         decrementing code ANSI C compliant.
54745
54746 2007-03-11  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54749         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54750
54751 2007-03-11  Bruno Haible  <bruno@clisp.org>
54752
54753         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54754         <stdbool.h> substitute doesn't pass.
54755
54756 2007-03-11  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54759
54760 2007-03-11  Bruno Haible  <bruno@clisp.org>
54761
54762         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54763         script, for submission to autobuild.josefsson.org.
54764
54765 2007-03-10  Bruno Haible  <bruno@clisp.org>
54766
54767         * modules/canonicalize-lgpl-tests: New file.
54768         * tests/test-canonicalize-lgpl.sh: New file.
54769         * tests/test-canonicalize-lgpl.c: New file.
54770
54771         * modules/c-strcase-tests: New file.
54772         * tests/test-c-strcase.sh: New file.
54773         * tests/test-c-strcasecmp.c: New file.
54774         * tests/test-c-strncasecmp.c: New file.
54775
54776         * modules/atexit-tests: New file.
54777         * tests/test-atexit.sh: New file.
54778         * tests/test-atexit.c: New file.
54779
54780 2007-03-10  Bruno Haible  <bruno@clisp.org>
54781
54782         * tests/test-binary-io.sh: Use temporary filenames that are not so
54783         likely to clash with those of other tests (in a parallel make).
54784         * tests/test-binary-io.c: Likewise.
54785
54786 2007-03-10  Bruno Haible  <bruno@clisp.org>
54787
54788         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54789         fallback; use #error instead.
54790         Suggested by Simon Josefsson.
54791
54792 2007-03-10  Bruno Haible  <bruno@clisp.org>
54793
54794         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54795         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54796         first and the last.
54797
54798 2007-03-10  Bruno Haible  <bruno@clisp.org>
54799
54800         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54801
54802 2007-03-10  Bruno Haible  <bruno@clisp.org>
54803
54804         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54805         "make distcheck".
54806         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54807         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54808         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54809
54810 2007-03-10  Bruno Haible  <bruno@clisp.org>
54811
54812         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54813         variable.
54814         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54815         variable.
54816
54817 2007-03-09  Eric Blake  <ebb9@byu.net>
54818         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54819
54820         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54821         types are not being provided by gnulib.
54822         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54823         types are supported.
54824
54825 2007-03-10  Bruno Haible  <bruno@clisp.org>
54826
54827         * lib/stdio_.h (__attribute__): New macro.
54828         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54829         vsprintf): Specify __attribute__ __format__ for GCC.
54830         Suggested by Eric Blake.
54831
54832 2007-03-09  Bruno Haible  <bruno@clisp.org>
54833
54834         * modules/printf-posix-tests: New file.
54835         * tests/test-printf-posix.sh: New file.
54836         * tests/test-printf-posix.c: New file.
54837
54838         * modules/printf-posix: New file.
54839         * lib/printf.c: New file.
54840         * m4/printf-posix-rpl.m4: New file.
54841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54842         REPLACE_PRINTF.
54843         * lib/stdio_.h (printf): New declaration.
54844         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54845         ____strfmon____): New macros.
54846         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54847         REPLACE_PRINTF.
54848
54849 2007-03-09  Bruno Haible  <bruno@clisp.org>
54850
54851         * tests/test-vasnprintf-posix2.sh: New file.
54852         * tests/test-vasnprintf-posix2.c: New file.
54853         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54854         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54855         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54856
54857         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54858         a locale dependent decimal point, rather than always '.'.
54859
54860 2007-03-09  Eric Blake  <ebb9@byu.net>
54861
54862         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54863         spite of platforms like Tandem/NSK that define it to -1.
54864
54865 2007-03-08  Bruno Haible  <bruno@clisp.org>
54866
54867         * modules/vprintf-posix-tests: New file.
54868         * tests/test-vprintf-posix.sh: New file.
54869         * tests/test-vprintf-posix.c: New file.
54870         * tests/test-printf-posix.h: New file.
54871
54872         * modules/vprintf-posix: New file.
54873         * lib/vprintf.c: New file.
54874         * m4/vprintf-posix.m4: New file.
54875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54876         REPLACE_VPRINTF.
54877         * lib/stdio_.h (vprintf): New declaration.
54878         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54879         REPLACE_VPRINTF.
54880
54881 2007-03-08  Bruno Haible  <bruno@clisp.org>
54882
54883         * modules/fprintf-posix-tests: New file.
54884         * tests/test-fprintf-posix.sh: New file.
54885         * tests/test-fprintf-posix.c: New file.
54886
54887         * modules/fprintf-posix: New file.
54888         * lib/fprintf.c: New file.
54889         * m4/fprintf-posix.m4: New file.
54890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54891         REPLACE_FPRINTF.
54892         * lib/stdio_.h (fprintf): New declaration.
54893         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54894         REPLACE_FPRINTF.
54895
54896 2007-03-08  Bruno Haible  <bruno@clisp.org>
54897
54898         * modules/vfprintf-posix-tests: New file.
54899         * tests/test-vfprintf-posix.sh: New file.
54900         * tests/test-vfprintf-posix.c: New file.
54901         * tests/test-fprintf-posix.h: New file.
54902         * tests/test-fprintf-posix.out: New file.
54903
54904         * modules/vfprintf-posix: New file.
54905         * lib/vfprintf.c: New file.
54906         * m4/vfprintf-posix.m4: New file.
54907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54908         REPLACE_VFPRINTF.
54909         * lib/stdio_.h (vfprintf): New declaration.
54910         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54911         REPLACE_VFPRINTF.
54912
54913 2007-03-08  Bruno Haible  <bruno@clisp.org>
54914
54915         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54916
54917 2007-03-08  Bruno Haible  <bruno@clisp.org>
54918
54919         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54920         instead of 'expr' invocations.
54921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54922         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54923         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54924         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54925         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54926         Suggested by Paul Eggert.
54927
54928 2007-03-08  Bruno Haible  <bruno@clisp.org>
54929
54930         * modules/fseterr-tests: New file.
54931         * tests/test-fseterr.c: New file.
54932
54933         * modules/fseterr: New file.
54934         * lib/fseterr.h: New file.
54935         * lib/fseterr.c: New file.
54936
54937 2007-03-08  Bruno Haible  <bruno@clisp.org>
54938
54939         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54940         * lib/getopt_.h: Likewise.
54941         * lib/mbswidth.h: Likewise.
54942         * lib/setenv.h: Likewise.
54943         * lib/vasnprintf.h: Likewise.
54944         * lib/vasprintf.h: Likewise.
54945         * lib/verror.h: Likewise.
54946         * lib/xsetenv.h: Likewise.
54947         * lib/xvasprintf.h: Likewise.
54948
54949 2007-03-08  Jim Meyering  <jim@meyering.net>
54950
54951         * users.txt: Add parted.
54952
54953         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54954
54955 2007-03-07  Bruno Haible  <bruno@clisp.org>
54956
54957         * m4/printf.m4: Make the shell script snippets copy&pastable.
54958
54959 2007-03-02  Bruno Haible  <bruno@clisp.org>
54960
54961         * lib/netinet_in_.h: New file.
54962         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54963         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54964         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54965         (Depends-on): Add absolute-header.
54966         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54967         into netinet/in.h.
54968
54969 2007-03-03  Bruno Haible  <bruno@clisp.org>
54970
54971         * lib/sys_select_.h: New file.
54972         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54973         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54974         * modules/sys_select (Files): Add lib/sys_select_.h.
54975         (Depends-on): Add absolute-header.
54976         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54977         into sys/select.h.
54978
54979 2007-03-02  Bruno Haible  <bruno@clisp.org>
54980
54981         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54982         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54983         values.
54984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54985         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54986         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54987         * modules/sys_socket (Depends-on): Add absolute-header.
54988         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54989         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54990         (Include): Remove requirement of inclusion of <sys/types.h>.
54991
54992 2007-03-02  Bruno Haible  <bruno@clisp.org>
54993
54994         * lib/byteswap_.h (bswap_32): Fix formula.
54995
54996 2007-03-06  Bruno Haible  <bruno@clisp.org>
54997
54998         * modules/sprintf-posix-tests: New file.
54999         * tests/test-sprintf-posix.c: New file.
55000
55001         * modules/sprintf-posix: New file.
55002         * lib/sprintf.c: New file.
55003         * m4/sprintf-posix.m4: New file.
55004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
55005         REPLACE_SPRINTF.
55006         * lib/stdio_.h (sprintf): New declaration.
55007         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
55008         REPLACE_SPRINTF.
55009
55010 2007-03-06  Bruno Haible  <bruno@clisp.org>
55011
55012         * modules/vsprintf-posix-tests: New file.
55013         * tests/test-vsprintf-posix.c: New file.
55014         * tests/test-sprintf-posix.h: New file.
55015
55016         * modules/vsprintf-posix: New file.
55017         * lib/vsprintf.c: New file.
55018         * m4/vsprintf-posix.m4: New file.
55019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
55020         REPLACE_VSPRINTF.
55021         * lib/stdio_.h (vsprintf): New declaration.
55022         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
55023         REPLACE_VSPRINTF.
55024
55025 2007-03-06  Bruno Haible  <bruno@clisp.org>
55026
55027         * modules/vsnprintf (Depend-on): Remove minmax.
55028
55029 2007-03-06  Bruno Haible  <bruno@clisp.org>
55030
55031         * modules/snprintf-posix-tests: New file.
55032         * tests/test-snprintf-posix.c: New file.
55033
55034         * modules/snprintf-posix: New file.
55035         * m4/snprintf-posix.m4: New file.
55036         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
55037         gl_FUNC_SNPRINTF.
55038         (gl_FUNC_SNPRINTF): Invoke it.
55039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
55040         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
55041         is set.
55042         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
55043
55044 2007-03-06  Bruno Haible  <bruno@clisp.org>
55045
55046         * modules/vsnprintf-posix-tests: New file.
55047         * tests/test-vsnprintf-posix.c: New file.
55048         * tests/test-snprintf-posix.h: New file.
55049
55050         * modules/vsnprintf-posix: New file.
55051         * m4/vsnprintf-posix.m4: New file.
55052         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
55053         gl_FUNC_VSNPRINTF.
55054         (gl_FUNC_VSNPRINTF): Invoke it.
55055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
55056         * lib/stdio_.h (vsnprintf): Define as a replacement if
55057         REPLACE_VSNPRINTF is set.
55058         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
55059
55060 2007-03-06  Bruno Haible  <bruno@clisp.org>
55061
55062         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
55063         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
55064
55065 2007-03-06  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
55068         (asinl): Declare also if HAVE_DECL_ASINL is set.
55069         (atanl): Declare also if HAVE_DECL_ATANL is set.
55070         (ceill): Declare also if HAVE_DECL_CEILL is set.
55071         (cosl): Declare also if HAVE_DECL_COSL is set.
55072         (expl): Declare also if HAVE_DECL_EXPL is set.
55073         (floorl): Declare also if HAVE_DECL_FLOORL is set.
55074         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
55075         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
55076         (logl): Declare also if HAVE_DECL_LOGL is set.
55077         (sinl): Declare also if HAVE_DECL_SINL is set.
55078         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
55079         (tanl): Declare also if HAVE_DECL_TANL is set.
55080         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
55081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
55082         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
55083         declaration of frexpl, ldexpl.
55084         * modules/printf-frexpl (Depends-on): Add math.
55085         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
55086
55087 2007-03-05  Bruno Haible  <bruno@clisp.org>
55088
55089         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
55090         frexpl and ldexpl are declared.
55091         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
55092
55093 2007-03-05  Bruno Haible  <bruno@clisp.org>
55094
55095         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
55096         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
55097
55098 2007-03-05  Bruno Haible  <bruno@clisp.org>
55099
55100         * lib/stdio_.h: Include <stddef.h>.
55101
55102 2007-03-05  Bruno Haible  <bruno@clisp.org>
55103
55104         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
55105
55106 2007-03-05  Bruno Haible  <bruno@clisp.org>
55107
55108         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
55109         NetBSD 4, from Ralf Wildenhues.
55110
55111 2007-03-04  Bruno Haible  <bruno@clisp.org>
55112
55113         * lib/vasprintf.h: Update #if logic for the case when the functions
55114         exist but are overridden.
55115
55116 2007-03-04  Bruno Haible  <bruno@clisp.org>
55117
55118         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
55119         implementations: glibc-2.4 and MacOS X 10.3.
55120         * tests/test-vasnprintf-posix.c (test_function): Test also the case
55121         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
55122         * tests/test-vasprintf-posix.c (test_function): Likewise.
55123
55124 2007-03-04  Bruno Haible  <bruno@clisp.org>
55125
55126         * modules/vasprintf-posix-tests: New file.
55127         * tests/test-vasprintf-posix.c: New file.
55128
55129         * modules/vasprintf-posix: New file.
55130         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
55131         defined.
55132         * m4/vasprintf-posix.m4: New file.
55133         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
55134         gl_FUNC_VASPRINTF.
55135         (gl_FUNC_VASPRINTF): Invoke it.
55136         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
55137         here.
55138         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
55139
55140 2007-03-04  Bruno Haible  <bruno@clisp.org>
55141
55142         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
55143         REPLACE_GETTIMEOFDAY.
55144         * modules/sys_time (Makefile.am): Likewise.
55145         * m4/sys_time_h.m4: Likewise.
55146         * m4/gettimeofday.m4: Likewise.
55147
55148 2007-03-04  Bruno Haible  <bruno@clisp.org>
55149
55150         * modules/vasnprintf-posix-tests: New file.
55151         * tests/test-vasnprintf-posix.c: New file.
55152
55153         * modules/vasnprintf-posix: New file.
55154         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
55155         printf-frexpl.h.
55156         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
55157         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
55158         REPLACE_VASNPRINTF is defined.
55159         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
55160         gl_FUNC_VASNPRINTF.
55161         (gl_FUNC_VASNPRINTF): Invoke it.
55162         * m4/vasnprintf-posix.m4: New file.
55163         * m4/printf.m4: New file.
55164
55165 2007-03-04  Bruno Haible  <bruno@clisp.org>
55166
55167         Compile progreloc.c only if --enable-relocatable is specified.
55168         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
55169         if --enable-relocatable was specified.
55170         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
55171         lib_SOURCES.
55172
55173 2007-03-04  Jim Meyering  <jim@meyering.net>
55174
55175         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
55176         Use it consistently, rather than enumerating errno constants.
55177
55178 2007-03-04  Bruno Haible  <bruno@clisp.org>
55179
55180         * modules/xvasprintf-tests: New file.
55181         * tests/test-xvasprintf.c: New file.
55182
55183         * modules/vasprintf-tests: New file.
55184         * tests/test-vasprintf.c: New file.
55185
55186         * modules/vasnprintf-tests: New file.
55187         * tests/test-vasnprintf.c: New file.
55188
55189         * modules/vsnprintf-tests: New file.
55190         * tests/test-vsnprintf.c: New file.
55191
55192         * modules/snprintf-tests: New file.
55193         * tests/test-snprintf.c: New file.
55194
55195 2007-03-04  Bruno Haible  <bruno@clisp.org>
55196
55197         Compile relocatable.c only if --enable-relocatable is specified.
55198         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
55199         gl_RELOCATABLE_LIBRARY.
55200         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
55201         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
55202         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
55203         gl_RELOCATABLE_LIBRARY.
55204         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
55205         (Makefile.am): Remove lib_SOURCES.
55206         * modules/relocatable-lib-lgpl (configure.ac): Invoke
55207         gl_RELOCATABLE_LIBRARY.
55208         (Makefile.am): Remove lib_SOURCES.
55209         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
55210         always.
55211         * modules/relocatable-prog-wrapper (configure.ac): Invoke
55212         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
55213
55214 2007-03-04  Bruno Haible  <bruno@clisp.org>
55215
55216         * modules/argmatch-tests: New file.
55217         * tests/test-argmatch.c: New file.
55218
55219         * tests/test-allocsa.c (main): Halve the number of loop runs.
55220
55221         * modules/alloca-opt-tests: New file.
55222         * tests/test-alloca-opt.c: New file.
55223
55224 2007-03-04  Jim Meyering  <jim@meyering.net>
55225
55226         Work around difference between Linux ACLs and Solaris 10 ZFS.
55227         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
55228         for EINVAL.
55229
55230 2007-03-03  Bruno Haible  <bruno@clisp.org>
55231
55232         * modules/relocatable-prog (Depends-on): Add back progreloc's
55233         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
55234
55235 2007-03-03  Bruno Haible  <bruno@clisp.org>
55236
55237         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
55238         * modules/relocatable-lib: New file.
55239
55240 2007-03-03  Bruno Haible  <bruno@clisp.org>
55241
55242         * modules/relocatable-prog: Renamed from modules/relocatable.
55243         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
55244
55245 2007-03-03  Bruno Haible  <bruno@clisp.org>
55246
55247         * modules/relocatable-script (Files): Add doc/relocatable.texi,
55248         m4/relocatable-lib.m4.
55249         (Depends-on): Remove 'relocatable'.
55250         (configure.ac): Add gl_RELOCATABLE_NOP.
55251
55252 2007-03-03  Bruno Haible  <bruno@clisp.org>
55253
55254         * modules/relocatable-prog-wrapper: New file.
55255         * modules/relocatable (Depends-on): Add it. Remove all other
55256         dependencies except progname.
55257         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
55258
55259         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
55260         (gl_FUNC_STRERROR): Nop.
55261         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
55262
55263         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
55264         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
55265
55266         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
55267         (gl_FUNC_READLINK): Update.
55268
55269         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
55270
55271 2007-03-03  Bruno Haible  <bruno@clisp.org>
55272
55273         * lib/xreadlink.c: Include <unistd.h> unconditionally.
55274         * modules/xreadlink (Depends-on): Add unistd.
55275         * modules/xreadlink-with-size (Depends-on): Likewise.
55276
55277 2007-03-03  Bruno Haible  <bruno@clisp.org>
55278
55279         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
55280         extracted from gt_FUNC_SETENV.
55281         (gt_FUNC_SETENV): Remove macro.
55282         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
55283         remove gt_FUNC_SETENV.
55284
55285 2007-03-03  Bruno Haible  <bruno@clisp.org>
55286
55287         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
55288         ENABLE_RELOCATABLE here.
55289         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
55290
55291 2007-03-03  Bruno Haible  <bruno@clisp.org>
55292
55293         * modules/rbtreehash-list-tests (Depends-on): Add progname.
55294         * tests/test-rbtreehash_list.c: Include progname.h.
55295         (main): Call set_program_name.
55296
55297         * modules/rbtree-oset-tests (Depends-on): Add progname.
55298         * tests/test-rbtree_oset.c: Include progname.h.
55299         (main): Call set_program_name.
55300
55301         * modules/rbtree-list-tests (Depends-on): Add progname.
55302         * tests/test-rbtree_list.c: Include progname.h.
55303         (main): Call set_program_name.
55304
55305         * modules/linked-list-tests (Depends-on): Add progname.
55306         * tests/test-linked_list.c: Include progname.h.
55307         (main): Call set_program_name.
55308
55309 2007-03-03  Bruno Haible  <bruno@clisp.org>
55310
55311         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
55312         All uses of __restrict changed to _Restrict_.
55313         * lib/glob_.h (__restrict): Remove macro.
55314
55315 2007-03-02  Bruno Haible  <bruno@clisp.org>
55316
55317         * modules/gettext (configure.ac): Require gettext infrastructure
55318         from version 0.16.1.
55319
55320 2007-03-02  Bruno Haible  <bruno@clisp.org>
55321
55322         * modules/linkedhash-list-tests (Depends-on): Add progname.
55323         * tests/test-linkedhash_list.c: Include progname.h.
55324         (main): Call set_program_name.
55325
55326         * modules/carray-list-tests (Depends-on): Add progname.
55327         * tests/test-carray_list.c: Include progname.h.
55328         (main): Call set_program_name.
55329
55330         * modules/avltreehash-list-tests (Depends-on): Add progname.
55331         * tests/test-avltreehash_list.c: Include progname.h.
55332         (main): Call set_program_name.
55333
55334         * modules/avltree-oset-tests (Depends-on): Add progname.
55335         * tests/test-avltree_oset.c: Include progname.h.
55336         (main): Call set_program_name.
55337
55338         * modules/avltree-list-tests (Depends-on): Add progname.
55339         * tests/test-avltree_list.c: Include progname.h.
55340         (main): Call set_program_name.
55341
55342         * modules/array-oset-tests (Depends-on): Add progname.
55343         * tests/test-array_oset.c: Include progname.h.
55344         (main): Call set_program_name.
55345
55346         * modules/array-list-tests (Depends-on): Add progname.
55347         * tests/test-array_list.c: Include progname.h.
55348         (main): Call set_program_name.
55349
55350         * modules/argp-tests (Depends-on): Add progname.
55351         * tests/test-argp.c: Include argp.h first. Include progname.h.
55352         (main): Call set_program_name.
55353
55354 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55355
55356         * doc/gnulib-tool.texi (Initial import): Reword description of
55357         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55358         limited effect even if defined after the first system include.
55359
55360 2007-03-01  Bruno Haible  <bruno@clisp.org>
55361
55362         * build-aux/config.libpath: Update to libtool-1.5.22.
55363         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55364
55365 2007-03-01  Bruno Haible  <bruno@clisp.org>
55366
55367         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55368         foo_CFLAGS.
55369         Reported by Ralf Wildenhues.
55370
55371 2007-03-01  Bruno Haible  <bruno@clisp.org>
55372
55373         * build-aux/install-reloc: Remove object files left over by some
55374         compilers.
55375         Reported by Ralf Wildenhues.
55376
55377 2007-03-01  Bruno Haible  <bruno@clisp.org>
55378
55379         * build-aux/install-reloc: Break long lines.
55380
55381 2007-03-01  Bruno Haible  <bruno@clisp.org>
55382
55383         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55384         Reported by Ralf Wildenhues.
55385
55386 2007-03-01  Bruno Haible  <bruno@clisp.org>
55387
55388         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55389         include ordering constraints.
55390
55391 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55392
55393         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55395         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55396         as another example.
55397         * lib/time_.h: Fix misspelling.
55398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55399         Require gl_HEADER_TIME_H_DEFAULTS.
55400         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55401         * m4/time_r.m4 (gl_TIME_R): Likewise.
55402         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55403
55404 2007-03-01  Bruno Haible  <bruno@clisp.org>
55405
55406         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55407         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55408
55409 2007-03-01  Jim Meyering  <jim@meyering.net>
55410
55411         * modules/xreadlink (Maintainer): Add my name.
55412         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55413
55414 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55415             Bruno Haible  <bruno@clisp.org>
55416
55417         * build-aux/install-reloc: Compile also c-ctype.c.
55418         * build-aux/relocatable.sh.in: New file.
55419         * doc/relocatable.texi: New file.
55420         * doc/relocatable-maint.texi: New file.
55421         * doc/gnulib.texi: Include relocatable-maint.texi.
55422         * lib/progreloc.c: Include unistd.h unconditionally.
55423         * lib/relocwrapper.c: Include unistd.h unconditionally.
55424         Include c-ctype.h.
55425         (add_dotbin): Use c_tolower.
55426         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55427         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55428         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55429         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55430         to m4/relocatable-lib.m4.
55431         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55432         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55433         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55434         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55435         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55436         * modules/relocatable: New file.
55437         * modules/relocatable-lib: New file.
55438         * modules/relocatable-script: New file.
55439
55440 2007-02-28  Bruno Haible  <bruno@clisp.org>
55441
55442         Import --enable-relocatable infrastructure.
55443         * build-aux/config.libpath: New file, from GNU gettext.
55444         * build-aux/install-reloc: New file, from GNU gettext.
55445         * build-aux/reloc-ldflags: New file, from GNU gettext.
55446         * lib/relocatable.h: New file, from GNU gettext.
55447         * lib/relocatable.c: New file, from GNU gettext.
55448         * lib/relocwrapper.c: New file, from GNU gettext.
55449         * m4/relocatable.m4: New file, from GNU gettext.
55450
55451 2007-02-28  Bruno Haible  <bruno@clisp.org>
55452
55453         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55454
55455         * modules/xreadlink: New file, from GNU gettext with modifications.
55456         * lib/xreadlink.c: New file, from GNU gettext.
55457         * lib/xreadlink.h: Add comments.
55458         (xreadlink): New declaration.
55459
55460         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55461         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55462         lib/xreadlink-with-size.c.
55463         (configure.ac): Remove gl_XREADLINK invocation.
55464         (Makefile.am): Augment lib_SOURCES.
55465         * m4/xreadlink.m4: Remove file.
55466         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55467         (xreadlink_with_size): Renamed from xreadink.
55468         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55469         * modules/canonicalize (Depends-on): Replace xreadlink with
55470         xreadlink-with-size.
55471         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55472
55473 2007-02-25  Jim Meyering  <jim@meyering.net>
55474
55475         * build-aux/announce-gen: When complaining about excess arguments,
55476         list them.
55477
55478 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55479
55480         * README: Document signed integer overflow situation more
55481         accurately.
55482
55483 2007-02-25  Bruno Haible  <bruno@clisp.org>
55484
55485         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55486         'a' or 'A' conversion.
55487
55488 2007-02-25  Bruno Haible  <bruno@clisp.org>
55489
55490         * modules/filename: Renamed from modules/pathname.
55491         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55492         lib/concatpath.c with lib/concat-filename.c.
55493         (Makefile.am): Update.
55494         (Include): Replace pathname.h with filename.h.
55495         * lib/filename.h: Renamed from lib/pathname.h.
55496         (concatenated_filename): Renamed from concatenated_pathname.
55497         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55498         (concatenated_filename): Renamed from concatenated_pathname.
55499         * lib/findprog.c: Include filename.h instead of pathname.h.
55500         (find_in_path): Update.
55501         * lib/javacomp.c: Include filename.h instead of pathname.h.
55502         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55503         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55504         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55505         is_oldgcj_14_13_usable, is_javac_usable): Update.
55506         * lib/javaexec.c: Include filename.h instead of pathname.h.
55507         (execute_java_class): Update.
55508         * modules/findprog: Update.
55509         * modules/javacomp: Update.
55510         * modules/javaexec: Update.
55511         * MODULES.html.sh (File system functions): Add 'filename', remove
55512         'pathname'.
55513
55514 2007-02-25  Bruno Haible  <bruno@clisp.org>
55515
55516         * modules/printf-frexpl-tests: New file.
55517         * tests/test-printf-frexpl.c: New file.
55518
55519         * modules/printf-frexpl: New file.
55520         * lib/printf-frexpl.h: New file.
55521         * lib/printf-frexpl.c: New file.
55522         * m4/printf-frexpl.m4: New file.
55523
55524 2007-02-25  Bruno Haible  <bruno@clisp.org>
55525
55526         * modules/printf-frexp-tests: New file.
55527         * tests/test-printf-frexp.c: New file.
55528
55529         * modules/printf-frexp: New file.
55530         * lib/printf-frexp.h: New file.
55531         * lib/printf-frexp.c: New file.
55532         * m4/printf-frexp.m4: New file.
55533
55534 2007-02-25  Bruno Haible  <bruno@clisp.org>
55535
55536         Assume automake >= 1.10 for the tests.
55537         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55538         * modules/arctwo-tests: Likewise.
55539         * modules/argp-tests: Likewise.
55540         * modules/avltree-list-tests: Likewise.
55541         * modules/avltree-oset-tests: Likewise.
55542         * modules/avltreehash-list-tests: Likewise.
55543         * modules/carray-list-tests: Likewise.
55544         * modules/crc-tests: Likewise.
55545         * modules/des-tests: Likewise.
55546         * modules/gc-arcfour-tests: Likewise.
55547         * modules/gc-arctwo-tests: Likewise.
55548         * modules/gc-des-tests: Likewise.
55549         * modules/gc-hmac-md5-tests: Likewise.
55550         * modules/gc-hmac-sha1-tests: Likewise.
55551         * modules/gc-md2-tests: Likewise.
55552         * modules/gc-md4-tests: Likewise.
55553         * modules/gc-md5-tests: Likewise.
55554         * modules/gc-pbkdf2-sha1-tests: Likewise.
55555         * modules/gc-rijndael-tests: Likewise.
55556         * modules/gc-sha1-tests: Likewise.
55557         * modules/gc-tests: Likewise.
55558         * modules/getaddrinfo-tests: Likewise.
55559         * modules/hmac-md5-tests: Likewise.
55560         * modules/hmac-sha1-tests: Likewise.
55561         * modules/linked-list-tests: Likewise.
55562         * modules/linkedhash-list-tests: Likewise.
55563         * modules/lock-tests: Likewise.
55564         * modules/md2-tests: Likewise.
55565         * modules/md4-tests: Likewise.
55566         * modules/md5-tests: Likewise.
55567         * modules/rbtree-list-tests: Likewise.
55568         * modules/rbtree-oset-tests: Likewise.
55569         * modules/rbtreehash-list-tests: Likewise.
55570         * modules/read-file-tests: Likewise.
55571         * modules/rijndael-tests: Likewise.
55572         * modules/stdint-tests: Likewise.
55573         * modules/tls-tests: Likewise.
55574
55575 2007-02-24  Bruno Haible  <bruno@clisp.org>
55576
55577         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55578         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55579         function; instead check whether isnan with a double argument links.
55580         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55581         function; instead check whether isnan with a 'long double' argument
55582         links.
55583         Reported by Eric Blake <ebb9@byu.net>.
55584
55585 2007-02-24  Bruno Haible  <bruno@clisp.org>
55586
55587         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55588         defined.
55589         * lib/isnanl.c: Remove all code. Just include isnan.c.
55590         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55591
55592 2007-02-25  Jim Meyering  <jim@meyering.net>
55593
55594         Avoid conflicting types for 'unsetenv' on FreeBSD.
55595         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55596         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55597         in stdlib.h.
55598
55599 2007-02-24  Bruno Haible  <bruno@clisp.org>
55600
55601         * modules/isnanl-nolibm-tests: New file.
55602         * tests/test-isnanl.c: New file.
55603
55604         * modules/isnanl-nolibm: New file.
55605         * lib/isnanl.h: New file.
55606         * lib/isnanl.c: New file.
55607         * m4/isnanl.m4: New file.
55608
55609 2007-02-24  Bruno Haible  <bruno@clisp.org>
55610
55611         * modules/isnan-nolibm-tests: New file.
55612         * tests/test-isnan.c: New file.
55613
55614         * modules/isnan-nolibm: New file.
55615         * lib/isnan.h: New file.
55616         * lib/isnan.c: New file.
55617         * m4/isnan.m4: New file.
55618
55619 2007-02-24  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55622         assume that an exponent fits in 20 bits.
55623
55624 2007-02-24  Jim Meyering  <jim@meyering.net>
55625
55626         * m4/regex.m4: Update the description of the configure-time option,
55627         --without-included-regex, to state accurately what the defaults are,
55628         and perhaps to give people an idea why using this option is risky.
55629
55630 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55631
55632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55633         loops on small arguments.  This attempts to avoid the problem
55634         Bruno Haible reported for AIX 4.3.2 in
55635         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55636
55637 2007-02-23  Bruno Haible  <bruno@clisp.org>
55638
55639         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55640         Needed for help2man.
55641
55642 2007-02-23  Karl Berry  <karl@gnu.org>
55643
55644         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55645         exists, foo.h should be cvs-ignored, not committed.
55646
55647 2007-02-23  Eric Blake  <ebb9@byu.net>
55648
55649         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55650         * lib/stat-time.h (includes): Likewise.
55651         * lib/utimecmp.c (includes): Likewise.
55652         * lib/utimens.h (includes): Likewise.
55653         * lib/getdate.y (includes): Also include "timespec.h" for use
55654         internal to the module.
55655         * modules/utimens (Depends-on): Revert yesterday's patch.
55656         * modules/nanosleep (Depends-on): Add missing dependency.
55657
55658 2007-02-22  Bruno Haible  <bruno@clisp.org>
55659
55660         * lib/glob.c: Don't include getlogin_r.h.
55661
55662 2007-02-22  Jim Meyering  <jim@meyering.net>
55663
55664         * modules/utimens (Depends-on): Add timespec, required for
55665         utimens.h's inclusion of timespec.h.
55666
55667 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55668
55669         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55670         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55671         Schwab in
55672         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55673         I'll try to think of a better way to fix the Solaris problem.
55674
55675         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55676         like glibc; on Solaris 10, it fails with errno == EINVAL.
55677         POSIX says the behavior is unspecified if the first argument is NULL,
55678         so play it safe and never pass NULL to the system getcwd.
55679
55680 2007-02-21  Jim Meyering  <jim@meyering.net>
55681
55682         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55683         of gettimeofday.  It would conflict with the one now always
55684         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55685         an IRIX 6.5 build failure.
55686
55687 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55688
55689         Minor fixups to port to Solaris 10 with Sun C 5.8.
55690         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55691         * modules/getcwd (Depends-on): Add dirfd.
55692         * lib/putenv.c (putenv): #undef it.
55693         (rpl_putenv): New decl.
55694         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55695
55696 2007-02-20  Bruno Haible  <bruno@clisp.org>
55697
55698         * modules/stdio-tests: New file.
55699         * tests/test-stdio.c: New file.
55700
55701         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55702         (Depends-on): Add stdio.
55703         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55704         (Include): Use <stdio.h> instead of vsnprintf.h.
55705         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55706         HAVE_DECL_VSNPRINTF.
55707         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55708
55709         * modules/snprintf (Files): Remove lib/snprintf.h.
55710         (Depends-on): Add stdio.
55711         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55712         (Include): Use <stdio.h> instead of snprintf.h.
55713         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55714         HAVE_DECL_SNPRINTF.
55715         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55716         * lib/getaddrinfo.c: Likewise.
55717
55718         * modules/stdio: New file.
55719         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55720         * lib/snprintf.h: Remove file.
55721         * lib/vsnprintf.h: Remove file.
55722         * lib/.cppi-disable: Remove snprintf.h.
55723         * m4/stdio_h.m4: New file.
55724         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55725
55726 2007-02-20  Jim Meyering  <jim@meyering.net>
55727
55728         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55729         used by e.g., mingw.  From Bruno Haible.
55730
55731 2007-02-19  Bruno Haible  <bruno@clisp.org>
55732
55733         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55734         warnings.
55735         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55736
55737 2007-02-19  Bruno Haible  <bruno@clisp.org>
55738
55739         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55740         from mingw users.
55741
55742 2007-02-19  Bruno Haible  <bruno@clisp.org>
55743
55744         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55745         warnings.
55746         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55747
55748 2007-02-19  Jim Meyering  <jim@meyering.net>
55749
55750         Don't use FD after a successful "fdopendir (fd)".
55751         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55752         Reset it by calling dirfd on the just-obtained DIR*.
55753
55754         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55755         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55756
55757 2007-02-18  Bruno Haible  <bruno@clisp.org>
55758
55759         * lib/readlink.c: Include <unistd.h>.
55760         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55761         HAVE_READLINK.
55762         * modules/readlink (Depends-on): Add unistd.
55763         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55764         (Include): Add <unistd.h>.
55765
55766         * lib/getlogin_r.h: Remove file.
55767         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55768         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55769         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55770         HAVE_DECL_GETLOGIN_R.
55771         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55772         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55773         (Include): Use <unistd.h> instead of getlogin_r.h.
55774
55775         * lib/getcwd.h: Remove file.
55776         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55777         * lib/xgetcwd.c: Likewise.
55778         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55779         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55780         * modules/getcwd (Files): Remove lib/getcwd.h.
55781         (Depends-on): Add unistd.
55782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55783         (Include): Use <unistd.h> instad of getcwd.h.
55784
55785         * lib/ftruncate.c: Include <unistd.h> first.
55786         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55787         Set HAVE_FTRUNCATE.
55788         * modules/ftruncate (Depends-on): Add unistd.
55789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55790
55791         * lib/fchdir.c: Include <unistd.h> first.
55792         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55794         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55795         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55796         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55797
55798         * lib/dup2.c: Include <unistd.h> first.
55799         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55800         HAVE_DUP2.
55801         * modules/dup2 (Depends-on): Add unistd.
55802         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55803
55804         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55805         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55806         REPLACE_CHOWN. Don't define chown as a macro here.
55807         * modules/chown (Depends-on): Add unistd.
55808         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55809
55810         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55811         Add definition for GL_LINK_WARNING.
55812         (chown, dup2): New declarations.
55813         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55814         link warning.
55815         (ftruncate): New declaration.
55816         (getcwd): New declaration, taken from old getcwd.h.
55817         (getlogin_r): New declaration, taken from old getlogin_r.h.
55818         (readlink): New declaration.
55819         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55820         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55821         (gl_PREREQ_UNISTD): Remove macro.
55822         (gl_UNISTD_MODULE_INDICATOR): New macro.
55823         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55824         many new variables. Don't set UNISTD_H.
55825         * modules/unistd (Description): Change.
55826         (Depends-on): Add link-warning.
55827         (configure.ac): Update.
55828         (Makefile.am): Create unistd.h always. Substitute many new variables
55829         into it.
55830
55831 2007-02-18  Bruno Haible  <bruno@clisp.org>
55832
55833         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55834         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55835         HAVE_GETSUBOPT.
55836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55837         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55838         * lib/getsubopt.h: Remove file.
55839         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55840         (Depends-on): Add stdlib.
55841         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55842         (Includes): Use <stdlib.h> instead of getsubopt.h.
55843         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55844         Set HAVE_GETSUBOPT.
55845         * lib/getsubopt.c: Don't include getsubopt.h.
55846
55847 2007-02-18  Bruno Haible  <bruno@clisp.org>
55848
55849         * modules/fchdir (Depends-on): Add dup2.
55850
55851 2007-02-18  Bruno Haible  <bruno@clisp.org>
55852
55853         * lib/stdlib_.h: Handle glibc's special invocation convention
55854         specially.
55855
55856 2007-02-18  Bruno Haible  <bruno@clisp.org>
55857
55858         * modules/stdlib-tests: New file.
55859         * tests/test-stdlib.c: New file.
55860
55861         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55862         (Depends-on): Add stdlib.
55863         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55864         (Includes): Use <stdlib.h> instead of mkstemp.h.
55865         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55866         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55867         * lib/mkstemp.c: Don't include mkstemp.h.
55868         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55869         * lib/stdlib--.h: Don't include mkstemp.h.
55870
55871         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55872         (Depends-on): Add stdlib.
55873         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55874         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55875         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55876         HAVE_MKDTEMP.
55877         * lib/mkdtemp.c: Don't include mkdtemp.h.
55878         * lib/clean-temp.c: Don't include mkdtemp.h.
55879
55880         * modules/exit (Files): Remove lib/exit.h.
55881         (Depends-on): Add stdlib.
55882         (Makefile.am): Remove lib_SOURCES.
55883         (Include): Use <stdlib.h> instead of exit.h.
55884         * lib/argmatch.c: Don't include exit.h.
55885         * lib/execute.c: Likewise.
55886         * lib/pagealign_alloc.c: Likewise.
55887         * lib/pipe.c: Likewise.
55888         * lib/wait-process.c: Likewise.
55889         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55890         * lib/exitfail.c: Likewise.
55891         * lib/savewd.c: Likewise.
55892         * lib/xsetenv.c: Likewise.
55893
55894         * modules/stdlib: New file.
55895         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55896         and extra comments about mkstemp().
55897         * lib/exit.h: Remove file.
55898         * lib/mkdtemp.h: Remove file.
55899         * lib/mkstemp.h: Remove file.
55900         * m4/stdlib_h.m4: New file.
55901         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55902
55903 2007-02-18  Bruno Haible  <bruno@clisp.org>
55904
55905         * modules/math-tests: New file.
55906         * tests/test-math.c: New file.
55907
55908         * modules/math: New file.
55909         * modules/mathl (Files): Remove lib/mathl.h.
55910         (Depends-on): Add math.
55911         (Makefile.am): Don't mention mathl.h.
55912         (Include): Use <math.h> instead of mathl.h.
55913         * lib/math_.h: New file.
55914         * lib/mathl.h: Remove file.
55915         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55916         mathl.h.
55917         * lib/asinl.c: Likewise.
55918         * lib/atanl.c: Likewise.
55919         * lib/ceill.c: Likewise.
55920         * lib/cosl.c: Likewise.
55921         * lib/expl.c: Likewise.
55922         * lib/floorl.c: Likewise.
55923         * lib/frexpl.c: Likewise.
55924         * lib/ldexpl.c: Likewise.
55925         * lib/logl.c: Likewise.
55926         * lib/sincosl.c: Likewise.
55927         * lib/sinl.c: Likewise.
55928         * lib/sqrtl.c: Likewise.
55929         * lib/tanl.c: Likewise.
55930         * lib/trigl.c: Likewise.
55931         * m4/math_h.m4: New file.
55932         * MODULES.html.sh (Mathematics): Add math.
55933
55934 2007-02-17  Bruno Haible  <bruno@clisp.org>
55935
55936         * modules/wctype-tests: New file.
55937         * tests/test-wctype.c: New file.
55938
55939         * modules/wchar-tests: New file.
55940         * tests/test-wchar.c: New file.
55941
55942         * modules/unistd-tests: New file.
55943         * tests/test-unistd.c: New file.
55944
55945         * modules/time-tests: New file.
55946         * tests/test-time.c: New file.
55947
55948         * modules/sysexits-tests: New file.
55949         * tests/test-sysexits.c: New file.
55950
55951         * modules/sys_time-tests: New file.
55952         * tests/test-sys_time.c: New file.
55953
55954         * modules/sys_stat-tests: New file.
55955         * tests/test-sys_stat.c: New file.
55956
55957         * modules/sys_socket-tests: New file.
55958         * tests/test-sys_socket.c: New file.
55959
55960         * modules/sys_select-tests: New file.
55961         * tests/test-sys_select.c: New file.
55962
55963         * modules/string-tests: New file.
55964         * tests/test-string.c: New file.
55965
55966         * modules/stdbool-tests: New file.
55967         * tests/test-stdbool.c: New file.
55968
55969         * modules/netinet_in-tests: New file.
55970         * tests/test-netinet_in.c: New file.
55971
55972         * modules/inttypes-tests: New file.
55973         * tests/test-inttypes.c: New file.
55974
55975         * modules/fcntl-tests: New file.
55976         * tests/test-fcntl.c: New file.
55977
55978         * modules/byteswap-tests: New file.
55979         * tests/test-byteswap.c: New file.
55980
55981         * modules/arpa_inet-tests: New file.
55982         * tests/test-arpa_inet.c: New file.
55983
55984 2007-02-17  Bruno Haible  <bruno@clisp.org>
55985
55986         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55987         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55988         if the corresponding module is not enabled. Emit link warnings if
55989         the function is used nevertheless.
55990         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55991         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55992         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55993         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55994         * modules/inttypes (Depends-on): Add link-warning.
55995         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55996         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55997         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55998         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55999         * modules/imaxdiv (configure.ac): Likewise.
56000         * modules/strtoimax (configure.ac): Likewise.
56001         * modules/strtoumax (configure.ac): Likewise.
56002
56003 2007-02-17  Bruno Haible  <bruno@clisp.org>
56004
56005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
56006         gl_STRING_MODULE_INDICATOR_DEFAULTS.
56007         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
56008         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
56009
56010 2007-02-17  Bruno Haible  <bruno@clisp.org>
56011
56012         * modules/link-warning: New file.
56013         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
56014         * lib/string_.h (GL_LINK_WARNING): Remove definition.
56015         * modules/string (Depends-on): Add link-warning.
56016         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56017         string.h.
56018         * MODULES.html.sh (Support for building libraries and executables): Add
56019         link-warning.
56020
56021 2007-02-17  Bruno Haible  <bruno@clisp.org>
56022
56023         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
56024         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
56025         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
56026         long lines.
56027
56028 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
56029             Bruno Haible  <bruno@clisp.org>
56030
56031         * modules/tmpfile: New file.
56032         * lib/tmpfile.c: New file.
56033         * m4/tmpfile.m4: New file.
56034         * MODULES.html.sh (func_all_modules): New section "Input/output".
56035
56036 2007-02-15  Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
56039         (supports_delete_on_close): New function.
56040         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
56041
56042 2007-02-14  Bruno Haible  <bruno@clisp.org>
56043
56044         * modules/mbspcasecmp-tests: New file.
56045         * tests/test-mbspcasecmp.sh: New file.
56046         * tests/test-mbspcasecmp.c: New file.
56047
56048         New module mbspcasecmp.
56049         * modules/mbspcasecmp: New file.
56050         * lib/mbspcasecmp.c: New file.
56051         * lib/string_.h (strncasecmp): Change warning message.
56052         (mbspcasecmp): New declaration.
56053         * m4/mbspcasecmp.m4: New file.
56054         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56055         GNULIB_MBSPCASECMP.
56056         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
56057         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
56058
56059 2007-02-14  Bruno Haible  <bruno@clisp.org>
56060
56061         * modules/mbsncasecmp-tests: New file.
56062         * tests/test-mbsncasecmp.sh: New file.
56063         * tests/test-mbsncasecmp.c: New file.
56064
56065         New module mbsncasecmp.
56066         * modules/mbsncasecmp: New file.
56067         * lib/mbsncasecmp.c: New file.
56068         * lib/string_.h (mbsncasecmp): New declaration.
56069         * m4/mbsncasecmp.m4: New file.
56070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56071         GNULIB_MBSNCASECMP.
56072         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
56073         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
56074
56075 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56076
56077         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
56078         Verify that it doesn't overlap with our flags.
56079         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
56080         do not have the desired effect in multibyte locales; instead, use
56081         mbscasecmp.
56082         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
56083         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
56084         we don't require GNU fnmatch ourselves (if our users require it, they
56085         should do so explicitly).
56086
56087         Fix regex code so it doesn't rely on strcasecmp.
56088         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
56089         Otherwise, include gnulib's langinfo.h.
56090         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
56091         undesirable behavior in non-C locales.  Instead, rely on localecharset.
56092         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
56093         * modules/regex (FILES): Remove m4/codeset.m4.
56094         (Depends-on): Add localcharset.  Remove strcase.
56095
56096 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56097
56098         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
56099         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
56100
56101 2007-02-13  Bruno Haible  <bruno@clisp.org>
56102
56103         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
56104         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56105
56106 2007-02-12  Bruno Haible  <bruno@clisp.org>
56107
56108         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56109         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
56110         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
56111         time warning rather than a link error.
56112
56113 2007-02-12  Bruno Haible  <bruno@clisp.org>
56114
56115         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
56116         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56118
56119 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56120
56121         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
56122         args, not 2.
56123
56124 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         New module 'time', so that apps can include <time.h> as per
56127         POSIX and GNU instead of separate include files like time_r.h
56128         and timegm.h.  This implementation tries out a simpler approach
56129         for replacing decls in standard include files (as compared to
56130         the string module), somewhat as an experiment.
56131
56132         * config/srclist.txt: Comment out mktime.c for now.
56133         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
56134         since it doesn't apply any more.  Use generic wording instead.
56135         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
56136         'time'.
56137         * lib/time_.h, m4/time_h.m4, modules/time: New files.
56138         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
56139         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
56140         Don't include <sys/types.h>; no longer needed since we assume C89.
56141         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
56142         * lib/strftime.c: Likewise.
56143         * lib/time_r.c: Likewise.
56144         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
56145         * lib/nanosleep.c: Include <time.h> first, to check interface.
56146         * lib/strptime.c: Likewise.
56147         * lib/time_r.c: Likewise.
56148         * lib/timegm.c: Likewise.
56149         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
56150         needed.
56151         * lib/timegm.c: Don't include timegm.h; no longer needed.
56152         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
56153         time.h now handles any problems in that area.
56154         (struct timespec, nanosleep): Remove; time.h now arranges for these.
56155         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
56156         that time.h defines struct timespec.
56157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
56158         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
56159         handles that.
56160         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
56161         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
56162         needed.  Set REPLACE_LOCALTIME.
56163         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
56164         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
56165         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
56166         nanosleep; time_h.m4 now does that.  Don't require
56167         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
56168         module handles this now.
56169         * modules/getdate (Depends-on): Remove timespec.  Add time.
56170         * modules/nanosleep (Depends-on): Likewise.
56171         * modules/stat-time (Depends-on): Likewise.
56172         * modules/nanosleep (Include): Include time.h, not timespec.h.
56173         * modules/strptime (Files): Remove lib/strptime.h.
56174         (Depends-on): Add extensions, time.
56175         (Include): Include time.h, not strptime.h.
56176         * modules/time_r (Files): Remove lib/time_r.h.
56177         (Depends-on): Add time.
56178         (Include): Include time.h, not time_r.h.
56179         * modules/timegm: Likewise.
56180         * modules/timespec (Description): Now does timespec-related decls
56181         of our own, instead of struct timespec itself.
56182         (Depends-on): Add time; remove extensions.
56183         (Maintainer): Add self.
56184         * modules/utimecmp (Depends-on): Add time; remove timespec.
56185         * modules/utimens (Depends-on): Likewise.
56186         * modules/xnanosleep (Depends-on): Likewise.
56187
56188 2007-02-11  Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/c-strstr.c: Include allocsa.h.
56191         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56192         * lib/c-strcasestr.c: Include allocsa.h.
56193         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56194         * lib/strcasestr.c: Include allocsa.h.
56195         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56196         * lib/mbsstr.c: Include allocsa.h.
56197         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56198         allocsa/freesa instead of malloc/free.
56199         * lib/mbscasestr.c: Include allocsa.h.
56200         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56201         allocsa/freesa instead of malloc/free.
56202         * modules/c-strstr (Depends-on): Add allocsa.
56203         * modules/c-strcasestr (Depends-on): Likewise.
56204         * modules/strcasestr (Depends-on): Likewise.
56205         * modules/mbsstr (Depends-on): Likewise.
56206         * modules/mbscasestr (Depends-on): Likewise.
56207
56208 2007-02-11  Bruno Haible  <bruno@clisp.org>
56209
56210         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
56211
56212         * modules/mbsspn-tests: New file.
56213         * tests/test-mbsspn.sh: New file.
56214         * tests/test-mbsspn.c: New file.
56215
56216 2007-02-11  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
56219
56220         * modules/mbspbrk-tests: New file.
56221         * tests/test-mbspbrk.sh: New file.
56222         * tests/test-mbspbrk.c: New file.
56223
56224 2007-02-11  Bruno Haible  <bruno@clisp.org>
56225
56226         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
56227         unneeded cast.
56228
56229         * modules/mbscspn-tests: New file.
56230         * tests/test-mbscspn.sh: New file.
56231         * tests/test-mbscspn.c: New file.
56232
56233 2007-02-11  Bruno Haible  <bruno@clisp.org>
56234
56235         * modules/mbscasecmp-tests: New file.
56236         * tests/test-mbscasecmp.sh: New file.
56237         * tests/test-mbscasecmp.c: New file.
56238
56239 2007-02-11  Bruno Haible  <bruno@clisp.org>
56240
56241         Ensure O(n) worst-case complexity of mbscasestr.
56242         * lib/mbscasestr.c: Include stdbool.h.
56243         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56244         functions.
56245         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
56246         the bookkeeping indicates that it's worth it.
56247         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
56248
56249         * modules/mbscasestr-tests: New file.
56250         * tests/test-mbscasestr1.c: New file.
56251         * tests/test-mbscasestr2.sh: New file.
56252         * tests/test-mbscasestr2.c: New file.
56253         * tests/test-mbscasestr3.sh: New file.
56254         * tests/test-mbscasestr3.c: New file.
56255         * tests/test-mbscasestr4.sh: New file.
56256         * tests/test-mbscasestr4.c: New file.
56257         * m4/locale-tr.m4: New file.
56258
56259 2007-02-11  Bruno Haible  <bruno@clisp.org>
56260
56261         Ensure O(n) worst-case complexity of mbsstr.
56262         * lib/mbsstr.c: Include stdbool.h.
56263         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56264         functions.
56265         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
56266         bookkeeping indicates that it's worth it.
56267         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
56268
56269         * modules/mbsstr-tests: New file.
56270         * tests/test-mbsstr1.c: New file.
56271         * tests/test-mbsstr2.sh: New file.
56272         * tests/test-mbsstr2.c: New file.
56273         * tests/test-mbsstr3.sh: New file.
56274         * tests/test-mbsstr3.c: New file.
56275         * m4/locale-fr.m4: New file.
56276
56277 2007-02-11  Bruno Haible  <bruno@clisp.org>
56278
56279         * lib/mbsrchr.c (mbsrchr): Fix bug.
56280
56281         * modules/mbsrchr-tests: New file.
56282         * tests/test-mbsrchr.sh: New file.
56283         * tests/test-mbsrchr.c: New file.
56284
56285 2007-02-11  Bruno Haible  <bruno@clisp.org>
56286
56287         * lib/mbschr.c (mbschr): Fix bug.
56288
56289         * modules/mbschr-tests: New file.
56290         * tests/test-mbschr.sh: New file.
56291         * tests/test-mbschr.c: New file.
56292         * m4/locale-zh.m4: New file.
56293
56294 2007-02-11  Bruno Haible  <bruno@clisp.org>
56295
56296         Support for copying multibyte string iterators.
56297         * lib/mbiter.h: Include <string.h>.
56298         (mbiter_multi_copy): New function.
56299         (mbi_copy): New macro.
56300         * lib/mbuiter.h: Include <string.h>.
56301         (mbuiter_multi_copy): New function.
56302         (mbui_copy): New macro.
56303
56304 2007-02-11  Bruno Haible  <bruno@clisp.org>
56305
56306         New module mbslen.
56307         * modules/mbslen: New file.
56308         * lib/mbslen.c: New file.
56309         * lib/string_.h (mbslen): New declaration.
56310         * m4/mbslen.m4: New file.
56311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56312         GNULIB_MBSLEN.
56313         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
56314         * MODULES.html.sh (Internationalization functions): Add mbslen.
56315
56316 2007-02-11  Bruno Haible  <bruno@clisp.org>
56317
56318         Ensure O(n) worst-case complexity of strcasestr substitute.
56319         * lib/strcasestr.c: Include stdbool.h.
56320         (knuth_morris_pratt): New function.
56321         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56322         bookkeeping indicates that it's worth it.
56323         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
56324
56325         * modules/strcasestr-tests: New file.
56326         * tests/test-strcasestr.c: New file.
56327
56328 2007-02-11  Bruno Haible  <bruno@clisp.org>
56329
56330         Ensure O(n) worst-case complexity of c_strcasestr.
56331         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56332         (knuth_morris_pratt): New function.
56333         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56334         the bookkeeping indicates that it's worth it.
56335         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56336
56337         * modules/c-strcasestr-tests: New file.
56338         * tests/test-c-strcasestr.c: New file.
56339
56340 2007-02-11  Bruno Haible  <bruno@clisp.org>
56341
56342         Ensure O(n) worst-case complexity of c_strstr.
56343         * lib/c-strstr.c: Include stdbool.h, string.h.
56344         (knuth_morris_pratt): New function.
56345         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56346         bookkeeping indicates that it's worth it.
56347         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56348
56349         * lib/c-strstr.c: Complete rewrite for maintainability.
56350
56351         * modules/c-strstr-tests: New file.
56352         * tests/test-c-strstr.c: New file.
56353
56354 2007-02-11  Bruno Haible  <bruno@clisp.org>
56355
56356         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56357         5.2.1 and earlier, whereby \055 was treated just like the range
56358         delimiter '-'.
56359         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56360
56361 2007-02-08  Bruno Haible  <bruno@clisp.org>
56362
56363         * modules/regex (Depends-on): Add stdbool.
56364         Reported by Dalibor Topic <robilad@kaffe.org>.
56365
56366 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56367
56368         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56369         Prefer returning from main to exiting from it.
56370         Remove unnecessary parens after sizeof.
56371
56372 2007-02-05  Bruno Haible  <bruno@clisp.org>
56373
56374         New module mbssep.
56375         * modules/mbssep: New file.
56376         * lib/mbssep.c: New file.
56377         * lib/string_.h (strsep): Add a conditional link warning.
56378         (mbssep): New declaration.
56379         * m4/mbssep.m4: New file.
56380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56381         GNULIB_MBSSEP.
56382         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56383         * MODULES.html.sh (Internationalization functions): Add mbssep.
56384
56385 2007-02-05  Bruno Haible  <bruno@clisp.org>
56386
56387         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56388         Optimize search in case of 1 delimiter.
56389
56390 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56391
56392         * lib/acl.h: Include sys/types.h before sys/acl.h.
56393
56394 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56395
56396         Merge upstream fix for glibc bugzilla #3957:
56397
56398         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56399
56400         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56401         bit for RE_HAT_LISTS_NOT_NEWLINE.
56402         (build_charclass_op): Remove bogus comment.
56403
56404 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56405
56406         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56407
56408 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56409
56410         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56411         * lib/memmem.c [!defined _LIBC]: Include config.h.
56412
56413 2007-02-04  Bruno Haible  <bruno@clisp.org>
56414
56415         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56416         warning message.
56417
56418 2007-02-04  Bruno Haible  <bruno@clisp.org>
56419
56420         New module mbstok_r.
56421         * modules/mbstok_r: New file.
56422         * lib/mbstok_r.c: New file.
56423         * lib/string_.h (strtok_r): Change argument names to match the
56424         comments. Add a conditional link warning.
56425         (mbstok_r): New declaration.
56426         * m4/mbstok_r.m4: New file.
56427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56428         GNULIB_MBSTOK_R.
56429         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56430         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56431
56432 2007-02-04  Bruno Haible  <bruno@clisp.org>
56433
56434         New module mbsspn.
56435         * modules/mbsspn: New file.
56436         * lib/mbsspn.c: New file.
56437         * lib/string_.h (strspn): Add a conditional link warning.
56438         (mbsspn): New declaration.
56439         * m4/mbsspn.m4: New file.
56440         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56441         GNULIB_MBSSPN.
56442         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56443         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56444
56445 2007-02-04  Bruno Haible  <bruno@clisp.org>
56446
56447         New module mbspbrk.
56448         * modules/mbspbrk: New file.
56449         * lib/mbspbrk.c: New file.
56450         * lib/string_.h (strpbrk): Add a conditional link warning.
56451         (mbspbrk): New declaration.
56452         * m4/mbspbrk.m4: New file.
56453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56454         GNULIB_MBSPBRK.
56455         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56456         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56457
56458 2007-02-04  Bruno Haible  <bruno@clisp.org>
56459
56460         New module mbscspn.
56461         * modules/mbscspn: New file.
56462         * lib/mbscspn.c: New file.
56463         * lib/string_.h (strcspn): Add a conditional link warning.
56464         (mbscspn): New declaration.
56465         * m4/mbscspn.m4: New file.
56466         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56467         GNULIB_MBSCSPN.
56468         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56469         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56470
56471 2007-02-04  Bruno Haible  <bruno@clisp.org>
56472
56473         New module mbscasestr, reduced goal of strcasestr.
56474         * modules/mbscasestr: New file.
56475         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56476         (mbscasestr): Renamed from strcasestr.
56477         * lib/strcasestr.c: Don't include mbuiter.h.
56478         (strcasestr): Remove support for multibyte locales.
56479         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56480         Change the conditional link warning.
56481         (mbscasestr): New declaration.
56482         * m4/mbscasestr.m4: New file.
56483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56484         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56485         REPLACE_STRCASESTR.
56486         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56488         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56489         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56490         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56491         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56492         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56493         (Depends-on): Remove mbuiter.
56494         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56495
56496 2007-02-04  Bruno Haible  <bruno@clisp.org>
56497
56498         Simplify handling of strncasecmp.
56499         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56500         the conditional link warning.
56501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56502         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56503         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56504         * modules/strcase (configure.ac): Don't invoke
56505         gl_STRING_MODULE_INDICATOR.
56506         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56507
56508 2007-02-04  Bruno Haible  <bruno@clisp.org>
56509
56510         New module mbscasecmp, reduced goal of strcasecmp.
56511         * modules/mbscasecmp: New file.
56512         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56513         (mbscasecmp): Renamed from strcasecmp.
56514         * lib/strcasecmp.c: Don't include mbuiter.h.
56515         (strcasecmp): Remove support for multibyte locales.
56516         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56517         Change the conditional link warning.
56518         (mbscasecmp): New declaration.
56519         * m4/mbscasecmp.m4: New file.
56520         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56521         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56522         REPLACE_STRCASECMP.
56523         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56525         GNULIB_MBSCASECMP.
56526         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56527         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56528         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56529         (Depends-on): Remove mbuiter.
56530         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56531
56532 2007-02-04  Bruno Haible  <bruno@clisp.org>
56533
56534         New module mbsstr. Remove module strstr.
56535         * modules/mbsstr: New file.
56536         * modules/strstr: Remove file.
56537         * lib/mbsstr.c: Renamed from lib/strstr.c.
56538         (mbsstr): Renamed from strstr.
56539         * lib/string_.h (strstr): Remove declaration. Change the conditional
56540         link warning.
56541         (mbsstr): New declaration.
56542         * m4/mbsstr.m4: New file.
56543         * m4/strstr.m4: Remove file.
56544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56545         REPLACE_STRSTR.
56546         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56547         Don't initialize GNULIB_STRSTR.
56548         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56549         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56550         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56551         (Support for systems lacking ANSI C 89): Remove strstr.
56552
56553 2007-02-04  Bruno Haible  <bruno@clisp.org>
56554
56555         New module mbsrchr.
56556         * modules/mbsrchr: New file.
56557         * lib/mbsrchr.c: New file.
56558         * lib/string_.h (strrchr): Add a conditional link warning.
56559         (mbsrchr): New declaration.
56560         * m4/mbsrchr.m4: New file.
56561         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56562         GNULIB_MBSRCHR.
56563         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56564         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56565
56566 2007-02-04  Bruno Haible  <bruno@clisp.org>
56567
56568         New module mbschr.
56569         * modules/mbschr: New file.
56570         * lib/mbschr.c: New file.
56571         * lib/string_.h (strchr): Add a conditional link warning.
56572         (mbschr): New declaration.
56573         * m4/mbschr.m4: New file.
56574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56575         GNULIB_MBSCHR.
56576         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56577         * MODULES.html.sh (Internationalization functions): Add mbschr.
56578
56579 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56580
56581         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56582
56583         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56584
56585 2007-02-04  Bruno Haible  <bruno@clisp.org>
56586
56587         New module description section 'configure.ac-early'.
56588         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56589         (func_get_autoconf_early_snippet): New function.
56590         (func_import, func_create_testdir): Use it. Remove special cases for
56591         modules 'extensions' and 'lock'.
56592         * modules/extensions (configure.ac-early): Require
56593         gl_USE_SYSTEM_EXTENSIONS.
56594         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56595
56596 2007-02-04  Bruno Haible  <bruno@clisp.org>
56597
56598         Make use of gcj-4.3's -fsource and -ftarget option.
56599         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56600         and if so try the options -fsource and -ftarget.
56601         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56602         source_version, ftarget_option, target_version arguments.
56603         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56604         (is_envjavac_oldgcj_14_14_usable): Renamed from
56605         is_envjavac_gcj_14_14_usable.
56606         (is_envjavac_oldgcj_14_13_usable): Renamed from
56607         is_envjavac_gcj_14_13_usable.
56608         (is_gcj_present): Update.
56609         (is_gcj_43, is_gcj43_usable): New functions.
56610         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56611         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56612         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56613         try the options -fsource and -ftarget.
56614
56615 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56616
56617         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56618         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56619         larger value.
56620
56621 2007-02-03  Jim Meyering  <jim@meyering.net>
56622
56623         Give tools a better chance to allocate space for very large buffers.
56624         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56625
56626         Make pwd and readlink work also when run with an unreadable parent dir
56627         on systems with openat support.
56628         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56629         provided getcwd function, even when we have openat support.
56630         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56631
56632 2007-02-02  Bruno Haible  <bruno@clisp.org>
56633
56634         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56635         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56636         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56637         portability problems if one of these functions is only used on specific
56638         platforms.
56639         Reported by Paul Eggert.
56640
56641 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56642
56643         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56644         is causing more trouble than it's curing.
56645         * lib/regex_internal.h (__mempcpy): Remove.
56646         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56647         (and make the code a tad smaller to boot).
56648         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56649
56650 2007-02-02  Jim Meyering  <jim@meyering.net>
56651
56652         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56653         section, not in the Makefile.am: one.
56654
56655 2007-02-02  Eric Blake  <ebb9@byu.net>
56656
56657         * lib/strchrnul.c: Always include config.h first.
56658
56659         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56660         gnulib strstr is not necessary here.
56661
56662 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56663
56664         * m4/socklen.m4: Fix typo.
56665
56666 2007-02-02  Eric Blake  <ebb9@byu.net>
56667
56668         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56669         * modules/netinet_in (Makefile.am): Likewise.
56670
56671 2007-02-01  Bruno Haible  <bruno@clisp.org>
56672
56673         * lib/string_.h (GL_LINK_WARNING): New macro.
56674         (strcasecmp, strstr, strcasestr): If provided by the system,
56675         conditionally define as a macro that leads to a warning instead of to
56676         an error.
56677         (strncasecmp): Conditionally define as a macro that leads to a warning.
56678
56679 2007-02-01  Karl Berry  <karl@gnu.org>
56680
56681         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56682
56683 2007-02-01  Bruno Haible  <bruno@clisp.org>
56684
56685         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56686         renamings.
56687
56688 2007-02-01  Eric Blake  <ebb9@byu.net>
56689
56690         * modules/regex (Depends-on): Revert dependence on mempcpy.
56691         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56692         module's definition of mempcpy.
56693         Reported by Paul Eggert.
56694
56695 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56696
56697         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56698         the symbol XYZ before redefining it.  This fixes a problem with
56699         programs that don't use XYZ, when compiled on systems that define
56700         XYZ to something else.
56701
56702 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56703
56704         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56705         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56706         writeable to group or other and (2) is intended to have a special
56707         mode bit that is set or cleared.  In such a case, the directory
56708         should be neither group- nor other-writeable until the special
56709         mode bits are right.
56710
56711 2007-01-31  Eric Blake  <ebb9@byu.net>
56712
56713         * modules/mountlist (Depends-on): Add strstr.
56714
56715         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56716         bug.
56717         * modules/string (Makefile.am): Remove redundant replacement.
56718         * modules/regex (Depends-on): Add mempcpy.
56719
56720 2007-01-31  Bruno Haible  <bruno@clisp.org>
56721
56722         New module description field 'Link'.
56723         * gnulib-tool (func_usage): Document --extract-link-directive.
56724         (sed_extract_prog): Recognize 'Link' directive.
56725         (func_get_link_directive): New function.
56726         (func_import): Show summary of link directives.
56727         Handle --extract-link-directive option.
56728         * modules/acl (Link): New section.
56729         * modules/clock-time (Link): New section.
56730         * modules/euidaccess (Link): New section.
56731         * modules/gettext (Link): New section.
56732         * modules/iconv (Link): New section.
56733         * modules/lock (Link): New section.
56734         * modules/nanosleep (Link): New section.
56735         * modules/readline (Link): New section.
56736
56737 2007-01-27  Bruno Haible  <bruno@clisp.org>
56738
56739         Enforce the use of gnulib modules for unportable <string.h> functions.
56740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56741         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56742         (gl_HEADER_STRING_H_BODY): Require it.
56743         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56744         the symbol XYZ to one that gives a link error.
56745         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56746         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56747         * modules/mempcpy (configure.ac): Likewise.
56748         * modules/memrchr (configure.ac): Likewise.
56749         * modules/stpcpy (configure.ac): Likewise.
56750         * modules/stpncpy (configure.ac): Likewise.
56751         * modules/strcase (configure.ac): Likewise.
56752         * modules/strcasestr (configure.ac): Likewise.
56753         * modules/strchrnul (configure.ac): Likewise.
56754         * modules/strdup (configure.ac): Likewise.
56755         * modules/strndup (configure.ac): Likewise.
56756         * modules/strnlen (configure.ac): Likewise.
56757         * modules/strpbrk (configure.ac): Likewise.
56758         * modules/strsep (configure.ac): Likewise.
56759         * modules/strstr (configure.ac): Likewise.
56760         * modules/strtok_r (configure.ac): Likewise.
56761
56762 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56763
56764         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56765
56766 2007-01-30  Jim Meyering  <jim@meyering.net>
56767
56768         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56769
56770 2007-01-29  Bruno Haible  <bruno@clisp.org>
56771
56772         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56773         * lib/execute.c: Likewise.
56774         * lib/pipe.c: Likewise.
56775         * lib/printf-args.h: Likewise.
56776         * lib/printf-args.c: Likewise.
56777         * lib/printf-parse.c: Likewise.
56778         * lib/vasnprintf.c: Likewise.
56779
56780 2007-01-29  Eric Blake  <ebb9@byu.net>
56781
56782         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56783         declaration.
56784
56785 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56786
56787         * lib/strptime.h (strptime): Use 'restrict' for args where
56788         POSIX requires this.
56789         * lib/strptime.c (strptime): Likewise.
56790         Change license notice from LGPL to GPL, since gnulib-tool will
56791         change this as needed.
56792         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56793         defined.
56794         Include "strptime.h" first, to check interface.
56795         Do not #undef _LIBC and _NL_CURRENT.
56796         Do not include <stdlib.h>; no longer needed.
56797         Include "time_r.h" and declare ptime_locale_status
56798         only if _LIBC is not defined.
56799         (__P): Remove unused macro.
56800         (match_string): Bring back glibc version, but use it only if _LIBC
56801         is defined.
56802         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56803         Remove unnecessary assertion and abort() call.
56804         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56805         * m4/strptime.m4: Fix serial number comment.
56806         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56807         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56808         (Depends-on): Add time_r.
56809
56810 2007-01-29  Bruno Haible  <bruno@clisp.org>
56811
56812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56813         strptime.
56814         * modules/strptime (Depends-on): Add stdbool.
56815         * lib/strptime.h: Include <time.h> always. Add comments.
56816
56817 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56818
56819         * modules/strptime: New file.
56820         * lib/strptime.h: New file.
56821         * lib/strptime.c: New file.
56822         * m4/strptime.m4: New file.
56823
56824 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56825
56826         * MODULES.html.sh: New module mpsort.
56827         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56828
56829         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56830         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56831         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56832         All uses changed.
56833         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56834         All uses changed.
56835         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56836         to _Restrict_.
56837         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56838         the parameter matches the prototype.
56839
56840 2007-01-28  Jim Meyering  <jim@meyering.net>
56841
56842         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56843         sys/time.h here, reverting that part of the previous patch:
56844         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56845
56846 2007-01-28  Bruno Haible  <bruno@clisp.org>
56847
56848         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56849         value of $(SYS_TIME_H).
56850         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56851         remove it conditionally, too. [added by Jim Meyering]
56852         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56853         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56854         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56855         GETTIMEOFDAY_REPLACEMENT to 1.
56856
56857 2007-01-28  Bruno Haible  <bruno@clisp.org>
56858
56859         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56860         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56861         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56862         Set UNISTD_H instead of UNISTD_H2.
56863         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56864
56865 2007-01-28  Bruno Haible  <bruno@clisp.org>
56866
56867         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56868         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56869
56870 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56871
56872         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56873         (func_create_testdir): Ensure C locale for `grep' and `tr'
56874         character ranges.
56875         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56876         ACLOCAL_AMFLAGS parsing state machine.
56877
56878 2007-01-27  Bruno Haible  <bruno@clisp.org>
56879
56880         * modules/unistr/base: Update.
56881
56882 2007-01-27  Bruno Haible  <bruno@clisp.org>
56883
56884         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56885         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56886         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56887         modules/unistr/u32-mbtouc.
56888         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56889         * lib/unistr.h: Update.
56890         * lib/linebreak.c: Update.
56891         * modules/unistr/u32-mbtouc: Renamed from
56892         modules/unistr/u32-mbtouc-safe.
56893         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56894         * lib/unistr.h: Update.
56895         * lib/unistr/u32-to-u8.c: Update.
56896         * lib/unistr/u32-to-u16.c: Update.
56897
56898 2007-01-27  Bruno Haible  <bruno@clisp.org>
56899
56900         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56901         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56902         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56903         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56904         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56905         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56906         modules/unistr/u16-mbtouc.
56907         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56908         * lib/unistr.h: Update.
56909         * lib/linebreak.c: Update.
56910         * modules/linebreak: Update.
56911         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56912         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56913         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56914         * modules/unistr/u16-mbtouc: Renamed from
56915         modules/unistr/u16-mbtouc-safe.
56916         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56917         * lib/unistr.h: Update.
56918         * lib/unistr/u16-to-u8.c: Update.
56919         * modules/unistr/u16-to-u8: Update.
56920         * lib/unistr/u16-to-u32.c: Update.
56921         * modules/unistr/u16-to-u32: Update.
56922
56923 2007-01-27  Bruno Haible  <bruno@clisp.org>
56924
56925         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56926         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56927         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56928         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56929         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56930         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56931         modules/unistr/u8-mbtouc.
56932         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56933         * lib/unistr.h: Update.
56934         * lib/striconveh.c: Update.
56935         * modules/striconveh: Update.
56936         * lib/linebreak.c: Update.
56937         * modules/linebreak: Update.
56938         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56939         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56940         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56941         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56942         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56943         * lib/unistr.h: Update.
56944         * lib/striconveh.c: Update.
56945         * modules/striconveh: Update.
56946         * lib/unistr/u8-to-u16.c: Update.
56947         * modules/unistr/u8-to-u16: Update.
56948         * lib/unistr/u8-to-u32.c: Update.
56949         * modules/unistr/u8-to-u32: Update.
56950
56951 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56952
56953         Sync from Libtool.
56954         * lib/argz.c: Do not include strings.h nor memory.h, include
56955         string.h unconditionally.  Patch by Simon Josefsson.
56956
56957 2007-01-27  Bruno Haible  <bruno@clisp.org>
56958
56959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56960         from gl_HEADER_STRING_H_BODY.
56961         (gl_HEADER_STRING_H_BODY): Require it.
56962         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56963         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56964         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56965         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56967         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56968         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56969         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56970         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56971         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56972         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56973         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56974         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56975         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56976         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56977
56978 2007-01-27  Bruno Haible  <bruno@clisp.org>
56979
56980         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56981         check_PROGRAMS into noinst_PROGRAMS.
56982         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56983         check_PROGRAMS in this case.
56984         (func_import): Set for_test to false.
56985         (func_create_testdir): Set for_test to true.
56986
56987 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56988             Bruno Haible  <bruno@clisp.org>
56989
56990         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56991         (Depends-on): Add string.
56992         (Includes): Use <string.h> instead of strcasestr.h.
56993         * modules/string (Makefile.am): Also substitute the value of
56994         REPLACE_STRCASESTR.
56995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56996         assume strcasestr is declared in <string.h> not <strings.h>. Also
56997         set REPLACE_STRCASESTR.
56998         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56999         REPLACE_STRCASESTR.
57000         * lib/strcasestr.h: Remove file.
57001         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
57002         * lib/string_.h (strcasestr): New declaration.
57003
57004 2007-01-27  Bruno Haible  <bruno@clisp.org>
57005
57006         * lib/string_.h: Use 'extern'.
57007
57008 2007-01-27  Jim Meyering  <jim@meyering.net>
57009
57010         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
57011         of set-but-not-used local, "q".
57012
57013         * lib/mempcpy.c: Include <config.h> before <string.h>.
57014         This fixes a compilation error on HP-UX, due to the system's
57015         "restrict"-using mempcpy prototype.
57016
57017 2007-01-26  Bruno Haible  <bruno@clisp.org>
57018
57019         Small optimization.
57020         * lib/javacomp.c: Include c-strstr.h.
57021          (is_envjavac_gcj): Use c_strstr instead of strstr.
57022         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
57023
57024 2007-01-26  Bruno Haible  <bruno@clisp.org>
57025
57026         * MODULES.html.sh (Unicode string functions): Add the new modules.
57027
57028         * modules/uniconv/u32-strconv-to-locale: New file.
57029         * lib/uniconv/u32-strconv-to-locale.c: New file.
57030
57031         * modules/uniconv/u16-strconv-to-locale: New file.
57032         * lib/uniconv/u16-strconv-to-locale.c: New file.
57033
57034         * modules/uniconv/u8-strconv-to-locale: New file.
57035         * lib/uniconv/u8-strconv-to-locale.c: New file.
57036
57037         * modules/uniconv/u32-strconv-from-locale: New file.
57038         * lib/uniconv/u32-strconv-from-locale.c: New file.
57039
57040         * modules/uniconv/u16-strconv-from-locale: New file.
57041         * lib/uniconv/u16-strconv-from-locale.c: New file.
57042
57043         * modules/uniconv/u8-strconv-from-locale: New file.
57044         * lib/uniconv/u8-strconv-from-locale.c: New file.
57045
57046         * modules/uniconv/u32-strconv-to-enc: New file.
57047         * lib/uniconv/u32-strconv-to-enc.c: New file.
57048         * modules/uniconv/u32-strconv-to-enc-tests: New file.
57049         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
57050
57051         * modules/uniconv/u16-strconv-to-enc: New file.
57052         * lib/uniconv/u16-strconv-to-enc.c: New file.
57053         * lib/uniconv/u-strconv-to-enc.h: New file.
57054         * modules/uniconv/u16-strconv-to-enc-tests: New file.
57055         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
57056
57057         * modules/uniconv/u8-strconv-to-enc: New file.
57058         * lib/uniconv/u8-strconv-to-enc.c: New file.
57059         * modules/uniconv/u8-strconv-to-enc-tests: New file.
57060         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
57061
57062         * modules/uniconv/u32-strconv-from-enc: New file.
57063         * lib/uniconv/u32-strconv-from-enc.c: New file.
57064         * modules/uniconv/u32-strconv-from-enc-tests: New file.
57065         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
57066
57067         * modules/uniconv/u16-strconv-from-enc: New file.
57068         * lib/uniconv/u16-strconv-from-enc.c: New file.
57069         * modules/uniconv/u16-strconv-from-enc-tests: New file.
57070         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
57071
57072         * modules/uniconv/u8-strconv-from-enc: New file.
57073         * lib/uniconv/u8-strconv-from-enc.c: New file.
57074         * lib/uniconv/u-strconv-from-enc.h: New file.
57075         * modules/uniconv/u8-strconv-from-enc-tests: New file.
57076         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
57077
57078         * modules/uniconv/u32-conv-from-enc: New file.
57079         * lib/uniconv/u32-conv-from-enc.c: New file.
57080         * modules/uniconv/u32-conv-from-enc-tests: New file.
57081         * tests/uniconv/test-u32-conv-from-enc.c: New file.
57082
57083         * modules/uniconv/u16-conv-from-enc: New file.
57084         * lib/uniconv/u16-conv-from-enc.c: New file.
57085         * lib/uniconv/u-conv-from-enc.h: New file.
57086         * modules/uniconv/u16-conv-from-enc-tests: New file.
57087         * tests/uniconv/test-u16-conv-from-enc.c: New file.
57088
57089         * modules/uniconv/u8-conv-from-enc: New file.
57090         * lib/uniconv/u8-conv-from-enc.c: New file.
57091         * modules/uniconv/u8-conv-from-enc-tests: New file.
57092         * tests/uniconv/test-u8-conv-from-enc.c: New file.
57093
57094         * modules/uniconv/base: New file.
57095         * lib/uniconv.h: New file.
57096
57097 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         * doc/gnulib-tool.texi (Initial import): Update to match current
57100         behavior with strdup module.
57101         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
57102         * lib/memmem.h: Remove; all uses removed.  This is now done
57103         by <string.h>.
57104         * lib/mempcpy.h: Likewise.
57105         * lib/memrchr.h: Likewise.
57106         * lib/stpcpy.h: Likewise.
57107         * lib/stpncpy.h: Likewise.
57108         * lib/strcase.h: Likewise.
57109         * lib/strchrnul.h: Likewise.
57110         * lib/strdup.h: Likewise.
57111         * lib/strndup.h: Likewise.
57112         * lib/strnlen.h: Likewise.
57113         * lib/strpbrk.h: Likewise.
57114         * lib/strsep.h: Likewise.
57115         * lib/strstr.h: Likewise.
57116         * lib/strtok_r.h: Likewise.
57117         * lib/string_.h: New file.
57118         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
57119         Rely on <string.h> instead.
57120         * lib/canon-host.c: Likewise.
57121         * lib/chdir-long.c: Likewise.
57122         * lib/concatpath.c: Likewise.
57123         * lib/exclude.c: Likewise.
57124         * lib/fchdir.c: Likewise.
57125         * lib/getaddrinfo.c: Likewise.
57126         * lib/getcwd.c: Likewise.
57127         * lib/getsubopt.c: Likewise.
57128         * lib/glob.c: Likewise.
57129         * lib/hard-locale.c: Likewise.
57130         * lib/iconvme.c: Likewise.
57131         * lib/javacomp.c: Likewise.
57132         * lib/mempcpy.c: Likewise.
57133         * lib/memrchr.c: Likewise.
57134         * lib/regex_internal.h: Likewise.
57135         * lib/stpncpy.c: Likewise.
57136         * lib/strcasecmp.c: Likewise.
57137         * lib/strchrnul.c: Likewise.
57138         * lib/strdup.c: Likewise.
57139         * lib/striconv.c: Likewise.
57140         * lib/striconveh.c: Likewise.
57141         * lib/striconveha.c: Likewise.
57142         * lib/strncasecmp.c: Likewise.
57143         * lib/strndup.c: Likewise.
57144         * lib/strnlen.c: Likewise.
57145         * lib/strsep.c: Likewise.
57146         * lib/strstr.c: Likewise.
57147         * lib/strtok_r.c: Likewise.
57148         * lib/userspec.c: Likewise.
57149         * lib/w32spawn.h: Likewise.
57150         * lib/xstrndup.c: Likewise.
57151         * lib/mountlist.c (strstr): Remove decl.
57152         * m4/string_h.m4: New file.
57153         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
57154         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
57155         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
57156         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
57157         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
57158         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
57159         Set REPLACE_STRCASECMP if necessary.
57160         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
57161         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
57162         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
57163         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
57164         HAVE_DECL_STRDUP if necessary.
57165         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
57166         since gl_FUNC_STRNDUP does that now.
57167         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
57168         Check for decl here...
57169         (gl_PREREQ_STRNLEN): ... not here.
57170         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
57171         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
57172         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
57173         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
57174         necessary.
57175         * modules/string: New file.
57176         * modules/memmem (Files): Remove special-purpose include file.
57177         (Depends-on): Add string.
57178         (Include): Include <string.h>, not the removed file.
57179         * modules/mempcpy: Likewise.
57180         * modules/memrchr: Likewise.
57181         * modules/stpcpy: Likewise.
57182         * modules/stpncpy: Likewise.
57183         * modules/strcase: Likewise.
57184         * modules/strchrnul: Likewise.
57185         * modules/strdup: Likewise.
57186         * modules/strndup: Likewise.
57187         * modules/strnlen: Likewise.
57188         * modules/strpbrk: Likewise.
57189         * modules/strsep: Likewise.
57190         * modules/strstr: Likewise.
57191         * modules/strtok_r: Likewise.
57192         * tests/test-dirname.c: Don't include "strdup.h", since
57193         <string.h> now suffices.
57194         * tests/test-memmem.c: Don't include "memmem.h", since
57195         <string.h> now suffices.
57196
57197 2007-01-25  Bruno Haible  <bruno@clisp.org>
57198
57199         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
57200         *resultp is 0.
57201
57202         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
57203         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
57204         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
57205         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
57206
57207         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
57208         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
57209         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
57210         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
57211         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
57212         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
57213
57214 2007-01-24  Bruno Haible  <bruno@clisp.org>
57215
57216         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
57217         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
57218         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
57219         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
57220         gl_FUNC_FTS_CORE.
57221         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
57222         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
57223         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57224         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
57225         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
57226         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
57227         gl_FUNC_FCHOWNAT.
57228         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
57229         gl_FUNC_STRFTIME.
57230         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
57231         Reported by Ralf Wildenhues.
57232
57233 2007-01-24  Bruno Haible  <bruno@clisp.org>
57234
57235         Drop AC_REQUIRE calls that are redundant with the module dependencies.
57236         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
57237         gl_GETADDRINFO.
57238         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
57239         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
57240         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
57241
57242 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
57243
57244         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
57245         Don't use 'exit'; just return from 'main'.
57246         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
57247
57248         * lib/fnmatch_.h: Readjust white space and comments to match
57249         glibc, to avoid spurious diffs.
57250
57251 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57252
57253         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
57254         2004-12-01 change by Jakub Jelinek, since this code won't compile
57255         if !LIBC.  Problem reported by Bob Proulx.
57256
57257 2007-01-23  Bruno Haible  <bruno@clisp.org>
57258
57259         * lib/striconveh.c: Include c-strcaseeq.h.
57260         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
57261         * modules/striconveh (Depends-on): Add c-strcaseeq.
57262
57263 2007-01-23  Bruno Haible  <bruno@clisp.org>
57264
57265         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
57266
57267         * modules/c-strcaseeq: New file.
57268         * lib/c-strcaseeq.h: New file.
57269
57270         * modules/streq: New file.
57271         * lib/streq.h: New file.
57272
57273 2007-01-23  Bruno Haible  <bruno@clisp.org>
57274
57275         * modules/striconveha-tests: New file.
57276         * tests/test-striconveha.c: New file.
57277
57278         * lib/striconveha.h: Include <stdbool.h>.
57279         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
57280         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
57281         (mem_iconveha_notranslit): Renamed from mem_iconveha.
57282         (mem_iconveha): New function.
57283         (str_iconveha_notranslit): Renamed from str_iconveha.
57284         (str_iconveha): New function.
57285         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
57286         c-strcase.
57287
57288 2007-01-23  Bruno Haible  <bruno@clisp.org>
57289
57290         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
57291         encodings without forgiving before trying any encoding with handler.
57292         (str_iconveha): Try all encodings without forgiving before trying any
57293         encoding with handler.
57294
57295 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57296
57297         Import the following changes from libc.
57298
57299         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57300
57301         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
57302
57303         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57304
57305         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
57306         normal_bracket label.
57307
57308         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
57309
57310         [BZ #361]
57311         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
57312         to normal_bracket after fetching the next character.
57313
57314 2007-01-22  Bruno Haible  <bruno@clisp.org>
57315
57316         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
57317         argument.
57318         * lib/striconveh.c (iconv_carefully_1): New function.
57319         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
57320         argument.
57321         (str_cd_iconveh): Update.
57322         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
57323         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
57324         * tests/test-striconveh.c (MAGIC): New macro.
57325         (new_offsets): New function.
57326         (main): Test call with and without offsets.
57327
57328 2007-01-22  Bruno Haible  <bruno@clisp.org>
57329
57330         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57331         * modules/sys_select (Makefile.am): Likewise.
57332         * modules/sys_socket (Makefile.am): Likewise.
57333         * modules/sys_time (Makefile.am): Likewise.
57334
57335 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57336
57337         * modules/gettimeofday (License): Change from GPL to LGPL, since
57338         gettimeofday is a library function.
57339
57340 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57341
57342         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57343
57344 2007-01-21  Bruno Haible  <bruno@clisp.org>
57345
57346         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57347
57348 2007-01-21  Bruno Haible  <bruno@clisp.org>
57349
57350         * modules/striconveha: New file.
57351         * lib/striconveha.h: New file.
57352         * lib/striconveha.c: New file.
57353         * MODULES.html.sh (Internationalization functions): Add striconveha.
57354         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57355         string.
57356         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57357
57358 2007-01-21  Bruno Haible  <bruno@clisp.org>
57359
57360         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57361         * lib/striconveh.c (str_iconveh): Likewise.
57362
57363 2007-01-21  Bruno Haible  <bruno@clisp.org>
57364
57365         * lib/striconveh.h (mem_iconveh): New declaration.
57366         * lib/striconveh.c (mem_iconveh): New function.
57367         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57368
57369 2007-01-21  Bruno Haible  <bruno@clisp.org>
57370
57371         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57372
57373         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57374         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57375         original result buffer.
57376         (str_cd_iconveh): Update.
57377         * tests/test-striconveh.c (main): Update.
57378
57379         * lib/striconv.h (mem_cd_iconv): Change specification.
57380         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57381         result buffer.
57382         (str_cd_iconv): Update.
57383         * tests/test-striconv.c (main): Update.
57384
57385 2007-01-21  Bruno Haible  <bruno@clisp.org>
57386
57387         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57388
57389 2007-01-20  Jim Meyering  <jim@meyering.net>
57390
57391         * lib/userspec.c (parse_with_separator): If a user or group string
57392         starts with "+", skip the corresponding name-to-ID look-up, since
57393         such a look-up must fail: user and group names may not include "+".
57394
57395 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57396
57397         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57398         since we now assume the sys_time module.
57399         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57400         check for sys/time.h; no longer needed.
57401         * modules/poll (Depends-on): Depend on sys_time.
57402
57403 2007-01-18  Bruno Haible  <bruno@clisp.org>
57404
57405         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57406         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57407
57408         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57409         gettimeofday.
57410
57411         * tests/test-gettimeofday.c: Include <time.h>.
57412         (dummy): Remove variable.
57413
57414         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57415         gl_HEADER_SYS_TIME_H.
57416         (gl_HEADER_SYS_TIME_H): New macro.
57417
57418         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57419         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57420         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57421         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57422         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57423         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57424         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57425         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57426         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57427         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57428         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57429
57430         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57431         last change; it caused a compilation error when cross-compiling to
57432         Cygwin.
57433
57434 2007-01-18  Jim Meyering  <jim@meyering.net>
57435
57436         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57437         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57438         than the race-prone "test -d sys || mkdir sys".
57439         (configure.ac): Use AC_PROG_MKDIR_P.
57440         * modules/sys_select: Likewise.
57441         * modules/sys_socket: Likewise.
57442         * modules/sys_time: Likewise.
57443
57444 2007-01-18  Eric Blake  <ebb9@byu.net>
57445
57446         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57447         replace gettimeofday.
57448         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57449         name, to avoid infinite recursion.
57450
57451 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57452
57453         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57454         module sys_time.
57455         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57456         assume timespec.h defines struct timeval.
57457         * lib/settime.c: Likewise.
57458         * lib/utimens.c: Likewise.
57459         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57460         since we now assume the gettimeofday module.
57461         * lib/tempname.c (__gen_tempname): Likewise.
57462         * lib/gettimeofday.h: Remove.
57463         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57464         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57465         Include <time.h>, for 'time()'.
57466         (localtime_buffer_addr): Also use this workaround if
57467         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57468         to simplify the uses.  All uses changed.
57469         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57470         that #undef is inside {}, and 'const' follows type name consistently.
57471         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57472         (gettimeofday): Do not use the maximum possible value for
57473         tv->tv_usec, since that might break usages other than ls.c.
57474         Instead, we'll leave ls.c alone.  This undoes today's patch
57475         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57476         we've never observed the problem but might as well keep the
57477         canary.
57478         * lib/nanosleep.c: Include timespec.h first, for interface check.
57479         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57480         now assume the sys_time module.
57481         * lib/tempname.c: Likewise.
57482         * lib/timespec.h: Likewise.
57483         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57484         needed.
57485         * lib/strftime.c: Likewise.
57486         * lib/timespec.h: Likewise.
57487         * lib/posixtm.c: Include posixtm.h first, for interface check.
57488         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57489         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57490         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57491         * lib/sys_time_.h: New file.
57492         * lib/timespec.h (struct timespec): Use long int, not long.
57493         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57494         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57495         Remove obsolescent call to AC_HEADER_TIME.
57496         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57498         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57499         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57500         Likewise.
57501         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57502         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57503         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57504         into the sys_time module.  Check for gettimeofday just once.
57505         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57506         for gettimeofday signature to just check the signature.  Merely
57507         compile it, since linking doesn't test signature.  Improve test for
57508         whether gettimeofday.o is actually needed.
57509         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57510         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57511         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57512         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57513         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57514         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57515         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57516         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57517         than worrying about sys/time.h.
57518         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57519         Don't bother worrying about TIME_WITH_SYS_TIME.
57520         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57521         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57522         * m4/sys_time_h.m4: New file.
57523         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57524         Don't include sys/time.h.  Return from main rather than exiting.
57525         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57526         all uses changed.
57527         * modules/gethrxtime (Depends-on): Add sys_time.
57528         * modules/gettime (Depends-on): Likewise.
57529         * modules/gettimeofday (Depends-on): Likewise.
57530         * modules/nanosleep (Depends-on): Likewise.
57531         * modules/settime (Depends-on): Likewise.
57532         * modules/tempname (Depends-on): Likewise.
57533         * modules/utimens (Depends-on): Likewise.
57534         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57535         (Include): Change back to <sys/time.h>.
57536         (Maintainer): Add self.
57537         * modules/sys_time: New file.
57538         * modules/tempname (Depends-on): Add gettimeofday.
57539         * tests/test-gettimeofday.c: Include <sys/time.h>
57540         rather than gettimeofday.h.
57541
57542 2007-01-17  Bruno Haible  <bruno@clisp.org>
57543
57544         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57545         the license default to GPL.
57546         (func_create_testdir): Don't complain if a module is LGPL and its
57547         tests module depends on GPLed modules.
57548
57549 2007-01-17  Bruno Haible  <bruno@clisp.org>
57550
57551         * lib/gettimeofday.c (gettimeofday): Add code for the case
57552         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57553         maximum possible value for tv->tv_usec, rather than the minimum one.
57554
57555 2005-10-08  Martin Lambers  <marlam@marlam.de>
57556 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57557 2007-01-16  Bruno Haible  <bruno@clisp.org>
57558
57559         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57560         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57561         gl_FUNC_GETTIMEOFDAY.
57562         (Include): Add gettimeofday.h.
57563         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57564         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57565         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57566         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57567         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57568         * lib/gettimeofday.h: New file.
57569         * lib/gettimeofday.c: Include <sys/timeb.h>.
57570         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57571         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57572         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57573         fall back on time().
57574
57575         * tests/test-gettimeofday.c: New file.
57576         * modules/gettimeofday-tests: New file.
57577
57578 2007-01-16  Eric Blake  <ebb9@byu.net>
57579
57580         * modules/fnmatch (Depends-on): Depend on wchar.
57581         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57582         * m4/fnmatch.m4: Likewise.
57583         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57584         * m4/mbchar.m4: Likewise.
57585         * modules/mbswidth (Depends-on): Depend on wchar.
57586         * lib/mbswidth.c: Assume <wchar.h>.
57587         * m4/mbswidth.m4: Likewise.
57588         * modules/quotearg (Depends-on): Depend on wchar.
57589         * lib/quotearg.c: Assume <wchar.h>.
57590         * m4/quotearg.m4: Likewise.
57591         * modules/regex (Depends-on): Depend on wchar.
57592         * lib/regex_internal.h: Assume <wchar.h>.
57593         * m4/regex.m4: Likewise.
57594         * modules/stdint (Depends-on): Depend on wchar.
57595         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57596         * m4/stdint.m4: Likewise.
57597         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57598         * modules/strftime (Depends-on): Depend on wchar.
57599         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57600         * modules/strtol (Depends-on): Depend on wchar.
57601         * lib/strtol.c: Assume <wchar.h>.
57602         * modules/wcwidth (Depends-on): Depend on wchar.
57603         * lib/wcwidth.h: Assume <wchar.h>.
57604         * m4/wcwidth.m4: Likewise.
57605
57606 2007-01-16  Bruno Haible  <bruno@clisp.org>
57607
57608         * modules/csharpexec-script: New, created from...
57609         * modules/csharpexec: ... this.
57610
57611 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57612
57613         * modules/javaexec-script: New, created from...
57614         * modules/javaexec: ... this.
57615
57616 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57617
57618         * modules/poll (Dependencies): Add sys_select.
57619
57620 2007-01-15  Jim Meyering  <jim@meyering.net>
57621
57622         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57623         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57624         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57625         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57626
57627 2007-01-15  Bruno Haible  <bruno@clisp.org>
57628
57629         * modules/striconveh: New file.
57630         * lib/striconveh.h: New file.
57631         * lib/striconveh.c: New file.
57632         * MODULES.html.sh (Internationalization functions): Add striconveh.
57633
57634         * modules/striconveh-tests: New file.
57635         * tests/test-striconveh.c: New file.
57636
57637 2007-01-15  Bruno Haible  <bruno@clisp.org>
57638
57639         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57640         not from GNU libiconv or GNU libc.
57641
57642 2007-01-15  Bruno Haible  <bruno@clisp.org>
57643
57644         * doc/gnulib-intro.texi (Copyright): Explain the different license
57645         terms for module descriptions, autoconf macros, tests, documentation.
57646
57647 2007-01-14  Bruno Haible  <bruno@clisp.org>
57648
57649         * modules/striconv-tests: New file.
57650         * tests/test-striconv.c: New file.
57651
57652 2007-01-14  Bruno Haible  <bruno@clisp.org>
57653
57654         * modules/iconv-tests: New file.
57655         * tests/test-iconv.c: New file.
57656
57657 2007-01-14  Bruno Haible  <bruno@clisp.org>
57658
57659         * gnulib-tool (func_get_license): For test modules, use the license of
57660         the main module.
57661
57662 2007-01-14  Bruno Haible  <bruno@clisp.org>
57663
57664         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57665         if iconv is found to exist.
57666
57667 2007-01-14  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/c-ctype-tests: New file.
57670         * tests/test-c-ctype.c: New file.
57671
57672 2007-01-14  Bruno Haible  <bruno@clisp.org>
57673
57674         * modules/binary-io-tests: New file.
57675         * tests/test-binary-io.sh: New file.
57676         * tests/test-binary-io.c: New file.
57677
57678 2007-01-14  Bruno Haible  <bruno@clisp.org>
57679
57680         * modules/array-oset-tests: New file.
57681         * tests/test-array_oset.c: New file.
57682
57683 2007-01-14  Bruno Haible  <bruno@clisp.org>
57684
57685         * modules/array-list-tests: New file.
57686         * tests/test-array_list.c: New file.
57687
57688 2007-01-14  Bruno Haible  <bruno@clisp.org>
57689
57690         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57691         and make.
57692         Reported by Simon Josefsson in
57693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57694
57695 2007-01-14  Bruno Haible  <bruno@clisp.org>
57696
57697         * modules/allocsa-tests: New file.
57698         * tests/test-allocsa.c: New file.
57699
57700 2007-01-14  Bruno Haible  <bruno@clisp.org>
57701
57702         * modules/fchdir (Depends-on): Add absolute-header.
57703         * modules/unistd (Depends-on): Likewise.
57704
57705 2006-12-30  Bruno Haible  <bruno@clisp.org>
57706
57707         * modules/fchdir: New file.
57708         * modules/unistd (Files): Add lib/unistd_.h.
57709         (Makefile.am): Generate unistd.h from unistd_.h.
57710         * lib/fchdir.c: New file.
57711         * lib/dirent_.h: New file.
57712         * lib/unistd_.h: New file.
57713         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57714         * m4/fchdir.m4: New file.
57715         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57716         (gl_HEADER_UNISTD): Invoke it.
57717         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57718         function.
57719         * lib/backupfile.c (opendir, closedir): Undefine.
57720         * lib/chown.c (open, close): Undefine.
57721         * lib/clean-temp.c (open, close): Undefine.
57722         * lib/copy-file.c (open, close): Undefine.
57723         * lib/execute.c (open, close): Undefine.
57724         * lib/fsusage.c (open, close): Undefine.
57725         * lib/gc-gnulib.c (open, close): Undefine.
57726         * lib/getcwd.c (opendir, closedir): Undefine.
57727         * lib/glob.c (opendir, closedir): Undefine.
57728         * lib/javacomp.c (open, close): Undefine.
57729         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57730         * lib/openat-proc.c (open, close): Undefine.
57731         * lib/pagealign_alloc.c (open, close): Undefine.
57732         * lib/pipe.c (open, close): Undefine.
57733         * lib/progreloc.c (open, close): Undefine.
57734         * lib/savedir.c (opendir, closedir): Undefine.
57735         * lib/utime.c (open, close): Undefine.
57736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57737
57738 2007-01-10  Bruno Haible  <bruno@clisp.org>
57739
57740         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57741
57742 2007-01-12  Eric Blake  <ebb9@byu.net>
57743
57744         Provide a robust <wchar.h>.  Further simplifications are now
57745         possible in other modules, but not included here.
57746         * modules/wchar: New module.
57747         * m4/wchar.m4: New file.
57748         * lib/wchar_.h: Likewise.
57749         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57750         of the new module.
57751         * MODULES.html.sh (Extended multibyte and wide character utilities):
57752         New section.
57753
57754 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57755
57756         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57757         to a reasonable default for memory allocation.
57758         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57759         file system that reports garbage st_size values for symlinks.
57760         Problem reported by Liyang Hu.
57761
57762 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57763
57764         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57765         Emacs .#* auto-save files).
57766
57767 2007-01-11  Bruno Haible  <bruno@clisp.org>
57768
57769         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57770         directory.
57771
57772 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57773
57774         Use @...@ consistently in lib/wctype_.h.
57775         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57776         on it being set to 1 or 0.
57777         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57778         go back to AC_SUBSTing it.
57779         * modules/wctype (Makefile.am): Undo previous change.
57780
57781 2007-01-10  Eric Blake  <ebb9@byu.net>
57782
57783         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57784         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57785         * modules/wctype (Makefile.am): Likewise.
57786         Reported by Chris McGuire.
57787
57788 2007-01-10  Jim Meyering  <jim@meyering.net>
57789
57790         fts.c: a small readability/maintainability improvement
57791         * lib/fts.c (fts_read): Make this code slightly more readable and
57792         maintainable by hoisting the "sp->fts_cur = p" assignments to
57793         immediately follow the statements that set P.  Derived from
57794         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57795
57796 2007-01-10  Eric Blake  <ebb9@byu.net>
57797
57798         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57799         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57801         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57802         Reported by Chris McGuire.
57803
57804 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57805
57806         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57807         in sed script.
57808
57809 2007-01-09  Bruno Haible  <bruno@clisp.org>
57810
57811         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57812         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57813         variables.
57814         (func_module): Use them.
57815
57816 2007-01-09  Bruno Haible  <bruno@clisp.org>
57817
57818         * modules/unistr/base: New file.
57819         * lib/unistr.h: New file.
57820
57821         * modules/unistr/u8-to-u16: New file.
57822         * lib/unistr/u8-to-u16.c: New file.
57823
57824         * modules/unistr/u8-to-u32: New file.
57825         * lib/unistr/u8-to-u32.c: New file.
57826
57827         * modules/unistr/u16-to-u8: New file.
57828         * lib/unistr/u16-to-u8.c: New file.
57829
57830         * modules/unistr/u16-to-u32: New file.
57831         * lib/unistr/u16-to-u32.c: New file.
57832
57833         * modules/unistr/u32-to-u8: New file.
57834         * lib/unistr/u32-to-u8.c: New file.
57835
57836         * modules/unistr/u32-to-u16: New file.
57837         * lib/unistr/u32-to-u16.c: New file.
57838
57839         * modules/unistr/u8-check: New file.
57840         * modules/unistr/u16-check: New file.
57841         * modules/unistr/u32-check: New file.
57842         * lib/unistr/u8-check.c: New file.
57843         * lib/unistr/u16-check.c: New file.
57844         * lib/unistr/u32-check.c: New file.
57845
57846         * modules/unistr/u8-chr: New file.
57847         * modules/unistr/u16-chr: New file.
57848         * modules/unistr/u32-chr: New file.
57849         * lib/unistr/u8-chr.c: New file.
57850         * lib/unistr/u16-chr.c: New file.
57851         * lib/unistr/u32-chr.c: New file.
57852
57853         * modules/unistr/u8-cmp: New file.
57854         * modules/unistr/u16-cmp: New file.
57855         * modules/unistr/u32-cmp: New file.
57856         * lib/unistr/u8-cmp.c: New file.
57857         * lib/unistr/u16-cmp.c: New file.
57858         * lib/unistr/u32-cmp.c: New file.
57859
57860         * modules/unistr/u8-cpy: New file.
57861         * modules/unistr/u16-cpy: New file.
57862         * modules/unistr/u32-cpy: New file.
57863         * lib/unistr/u8-cpy.c: New file.
57864         * lib/unistr/u16-cpy.c: New file.
57865         * lib/unistr/u32-cpy.c: New file.
57866         * lib/unistr/u-cpy.h: New file.
57867
57868         * modules/unistr/u8-cpy-alloc: New file.
57869         * modules/unistr/u16-cpy-alloc: New file.
57870         * modules/unistr/u32-cpy-alloc: New file.
57871         * lib/unistr/u8-cpy-alloc.c: New file.
57872         * lib/unistr/u16-cpy-alloc.c: New file.
57873         * lib/unistr/u32-cpy-alloc.c: New file.
57874         * lib/unistr/u-cpy-alloc.h: New file.
57875
57876         * modules/unistr/u8-endswith: New file.
57877         * modules/unistr/u16-endswith: New file.
57878         * modules/unistr/u32-endswith: New file.
57879         * lib/unistr/u8-endswith.c: New file.
57880         * lib/unistr/u16-endswith.c: New file.
57881         * lib/unistr/u32-endswith.c: New file.
57882         * lib/unistr/u-endswith.h: New file.
57883
57884         * modules/unistr/u8-mblen: New file.
57885         * modules/unistr/u16-mblen: New file.
57886         * modules/unistr/u32-mblen: New file.
57887         * lib/unistr/u8-mblen.c: New file.
57888         * lib/unistr/u16-mblen.c: New file.
57889         * lib/unistr/u32-mblen.c: New file.
57890
57891         * modules/unistr/u8-mbtouc: New file.
57892         * modules/unistr/u16-mbtouc: New file.
57893         * modules/unistr/u32-mbtouc: New file.
57894         * lib/unistr/u8-mbtouc.c: New file.
57895         * lib/unistr/u16-mbtouc.c: New file.
57896         * lib/unistr/u32-mbtouc.c: New file.
57897
57898         * modules/unistr/u8-mbtouc-safe: New file.
57899         * modules/unistr/u16-mbtouc-safe: New file.
57900         * modules/unistr/u32-mbtouc-safe: New file.
57901         * lib/unistr/u8-mbtouc-safe.c: New file.
57902         * lib/unistr/u16-mbtouc-safe.c: New file.
57903         * lib/unistr/u32-mbtouc-safe.c: New file.
57904
57905         * modules/unistr/u8-move: New file.
57906         * modules/unistr/u16-move: New file.
57907         * modules/unistr/u32-move: New file.
57908         * lib/unistr/u8-move.c: New file.
57909         * lib/unistr/u16-move.c: New file.
57910         * lib/unistr/u32-move.c: New file.
57911         * lib/unistr/u-move.h: New file.
57912
57913         * modules/unistr/u8-next: New file.
57914         * modules/unistr/u16-next: New file.
57915         * modules/unistr/u32-next: New file.
57916         * lib/unistr/u8-next.c: New file.
57917         * lib/unistr/u16-next.c: New file.
57918         * lib/unistr/u32-next.c: New file.
57919
57920         * modules/unistr/u8-prev: New file.
57921         * modules/unistr/u16-prev: New file.
57922         * modules/unistr/u32-prev: New file.
57923         * lib/unistr/u8-prev.c: New file.
57924         * lib/unistr/u16-prev.c: New file.
57925         * lib/unistr/u32-prev.c: New file.
57926
57927         * modules/unistr/u8-set: New file.
57928         * modules/unistr/u16-set: New file.
57929         * modules/unistr/u32-set: New file.
57930         * lib/unistr/u8-set.c: New file.
57931         * lib/unistr/u16-set.c: New file.
57932         * lib/unistr/u32-set.c: New file.
57933         * lib/unistr/u-set.h: New file.
57934
57935         * modules/unistr/u8-startswith: New file.
57936         * modules/unistr/u16-startswith: New file.
57937         * modules/unistr/u32-startswith: New file.
57938         * lib/unistr/u8-startswith.c: New file.
57939         * lib/unistr/u16-startswith.c: New file.
57940         * lib/unistr/u32-startswith.c: New file.
57941         * lib/unistr/u-startswith.h: New file.
57942
57943         * modules/unistr/u8-stpcpy: New file.
57944         * modules/unistr/u16-stpcpy: New file.
57945         * modules/unistr/u32-stpcpy: New file.
57946         * lib/unistr/u8-stpcpy.c: New file.
57947         * lib/unistr/u16-stpcpy.c: New file.
57948         * lib/unistr/u32-stpcpy.c: New file.
57949         * lib/unistr/u-stpcpy.h: New file.
57950
57951         * modules/unistr/u8-stpncpy: New file.
57952         * modules/unistr/u16-stpncpy: New file.
57953         * modules/unistr/u32-stpncpy: New file.
57954         * lib/unistr/u8-stpncpy.c: New file.
57955         * lib/unistr/u16-stpncpy.c: New file.
57956         * lib/unistr/u32-stpncpy.c: New file.
57957         * lib/unistr/u-stpncpy.h: New file.
57958
57959         * modules/unistr/u8-strcat: New file.
57960         * modules/unistr/u16-strcat: New file.
57961         * modules/unistr/u32-strcat: New file.
57962         * lib/unistr/u8-strcat.c: New file.
57963         * lib/unistr/u16-strcat.c: New file.
57964         * lib/unistr/u32-strcat.c: New file.
57965         * lib/unistr/u-strcat.h: New file.
57966
57967         * modules/unistr/u8-strchr: New file.
57968         * modules/unistr/u16-strchr: New file.
57969         * modules/unistr/u32-strchr: New file.
57970         * lib/unistr/u8-strchr.c: New file.
57971         * lib/unistr/u16-strchr.c: New file.
57972         * lib/unistr/u32-strchr.c: New file.
57973
57974         * modules/unistr/u8-strcmp: New file.
57975         * modules/unistr/u16-strcmp: New file.
57976         * modules/unistr/u32-strcmp: New file.
57977         * lib/unistr/u8-strcmp.c: New file.
57978         * lib/unistr/u16-strcmp.c: New file.
57979         * lib/unistr/u32-strcmp.c: New file.
57980
57981         * modules/unistr/u8-strcpy: New file.
57982         * modules/unistr/u16-strcpy: New file.
57983         * modules/unistr/u32-strcpy: New file.
57984         * lib/unistr/u8-strcpy.c: New file.
57985         * lib/unistr/u16-strcpy.c: New file.
57986         * lib/unistr/u32-strcpy.c: New file.
57987         * lib/unistr/u-strcpy.h: New file.
57988
57989         * modules/unistr/u8-strcspn: New file.
57990         * modules/unistr/u16-strcspn: New file.
57991         * modules/unistr/u32-strcspn: New file.
57992         * lib/unistr/u8-strcspn.c: New file.
57993         * lib/unistr/u16-strcspn.c: New file.
57994         * lib/unistr/u32-strcspn.c: New file.
57995         * lib/unistr/u-strcspn.h: New file.
57996
57997         * modules/unistr/u8-strdup: New file.
57998         * modules/unistr/u16-strdup: New file.
57999         * modules/unistr/u32-strdup: New file.
58000         * lib/unistr/u8-strdup.c: New file.
58001         * lib/unistr/u16-strdup.c: New file.
58002         * lib/unistr/u32-strdup.c: New file.
58003         * lib/unistr/u-strdup.h: New file.
58004
58005         * modules/unistr/u8-strlen: New file.
58006         * modules/unistr/u16-strlen: New file.
58007         * modules/unistr/u32-strlen: New file.
58008         * lib/unistr/u8-strlen.c: New file.
58009         * lib/unistr/u16-strlen.c: New file.
58010         * lib/unistr/u32-strlen.c: New file.
58011         * lib/unistr/u-strlen.h: New file.
58012
58013         * modules/unistr/u8-strmblen: New file.
58014         * modules/unistr/u16-strmblen: New file.
58015         * modules/unistr/u32-strmblen: New file.
58016         * lib/unistr/u8-strmblen.c: New file.
58017         * lib/unistr/u16-strmblen.c: New file.
58018         * lib/unistr/u32-strmblen.c: New file.
58019
58020         * modules/unistr/u8-strmbtouc: New file.
58021         * modules/unistr/u16-strmbtouc: New file.
58022         * modules/unistr/u32-strmbtouc: New file.
58023         * lib/unistr/u8-strmbtouc.c: New file.
58024         * lib/unistr/u16-strmbtouc.c: New file.
58025         * lib/unistr/u32-strmbtouc.c: New file.
58026
58027         * modules/unistr/u8-strncat: New file.
58028         * modules/unistr/u16-strncat: New file.
58029         * modules/unistr/u32-strncat: New file.
58030         * lib/unistr/u8-strncat.c: New file.
58031         * lib/unistr/u16-strncat.c: New file.
58032         * lib/unistr/u32-strncat.c: New file.
58033         * lib/unistr/u-strncat.h: New file.
58034
58035         * modules/unistr/u8-strncmp: New file.
58036         * modules/unistr/u16-strncmp: New file.
58037         * modules/unistr/u32-strncmp: New file.
58038         * lib/unistr/u8-strncmp.c: New file.
58039         * lib/unistr/u16-strncmp.c: New file.
58040         * lib/unistr/u32-strncmp.c: New file.
58041
58042         * modules/unistr/u8-strncpy: New file.
58043         * modules/unistr/u16-strncpy: New file.
58044         * modules/unistr/u32-strncpy: New file.
58045         * lib/unistr/u8-strncpy.c: New file.
58046         * lib/unistr/u16-strncpy.c: New file.
58047         * lib/unistr/u32-strncpy.c: New file.
58048         * lib/unistr/u-strncpy.h: New file.
58049
58050         * modules/unistr/u8-strnlen: New file.
58051         * modules/unistr/u16-strnlen: New file.
58052         * modules/unistr/u32-strnlen: New file.
58053         * lib/unistr/u8-strnlen.c: New file.
58054         * lib/unistr/u16-strnlen.c: New file.
58055         * lib/unistr/u32-strnlen.c: New file.
58056         * lib/unistr/u-strnlen.h: New file.
58057
58058         * modules/unistr/u8-strpbrk: New file.
58059         * modules/unistr/u16-strpbrk: New file.
58060         * modules/unistr/u32-strpbrk: New file.
58061         * lib/unistr/u8-strpbrk.c: New file.
58062         * lib/unistr/u16-strpbrk.c: New file.
58063         * lib/unistr/u32-strpbrk.c: New file.
58064         * lib/unistr/u-strpbrk.h: New file.
58065
58066         * modules/unistr/u8-strrchr: New file.
58067         * modules/unistr/u16-strrchr: New file.
58068         * modules/unistr/u32-strrchr: New file.
58069         * lib/unistr/u8-strrchr.c: New file.
58070         * lib/unistr/u16-strrchr.c: New file.
58071         * lib/unistr/u32-strrchr.c: New file.
58072
58073         * modules/unistr/u8-strspn: New file.
58074         * modules/unistr/u16-strspn: New file.
58075         * modules/unistr/u32-strspn: New file.
58076         * lib/unistr/u8-strspn.c: New file.
58077         * lib/unistr/u16-strspn.c: New file.
58078         * lib/unistr/u32-strspn.c: New file.
58079         * lib/unistr/u-strspn.h: New file.
58080
58081         * modules/unistr/u8-strstr: New file.
58082         * modules/unistr/u16-strstr: New file.
58083         * modules/unistr/u32-strstr: New file.
58084         * lib/unistr/u8-strstr.c: New file.
58085         * lib/unistr/u16-strstr.c: New file.
58086         * lib/unistr/u32-strstr.c: New file.
58087         * lib/unistr/u-strstr.h: New file.
58088
58089         * modules/unistr/u8-strtok: New file.
58090         * modules/unistr/u16-strtok: New file.
58091         * modules/unistr/u32-strtok: New file.
58092         * lib/unistr/u8-strtok.c: New file.
58093         * lib/unistr/u16-strtok.c: New file.
58094         * lib/unistr/u32-strtok.c: New file.
58095         * lib/unistr/u-strtok.h: New file.
58096
58097         * modules/unistr/u8-uctomb: New file.
58098         * modules/unistr/u16-uctomb: New file.
58099         * modules/unistr/u32-uctomb: New file.
58100         * lib/unistr/u8-uctomb.c: New file.
58101         * lib/unistr/u16-uctomb.c: New file.
58102         * lib/unistr/u32-uctomb.c: New file.
58103
58104         * MODULES.html.sh (Unicode string functions): Add the new modules.
58105
58106 2007-01-08  Bruno Haible  <bruno@clisp.org>
58107
58108         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
58109         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
58110         subdirectories.
58111
58112 2007-01-08  Karl Berry  <karl@gnu.org>
58113
58114         * doc/error.texi: mention that main() fns must set program_name
58115         when progname is used.
58116
58117 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
58118
58119         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
58120         WCTYPE_H is empty, for the benefit of builds from non-distclean
58121         directories.  Problem reported by Eric Blake in
58122         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
58123
58124 2007-01-08  Bruno Haible  <bruno@clisp.org>
58125
58126         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
58127         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
58128         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
58129         PROVIDE_CANONICALIZE_FILENAME_MODE.
58130         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
58131
58132 2007-01-08  Bruno Haible  <bruno@clisp.org>
58133
58134         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
58135         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
58136         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
58137         * lib/fts.c: Likewise.
58138         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
58139
58140 2006-12-25  Bruno Haible  <bruno@clisp.org>
58141
58142         * modules/utf8-ucs4-safe: New file.
58143         * lib/utf8-ucs4-safe.h: New file.
58144         * lib/unistr/utf8-ucs4-safe.c: New file.
58145
58146         * modules/utf16-ucs4-safe: New file.
58147         * lib/utf16-ucs4-safe.h: New file.
58148         * lib/unistr/utf16-ucs4-safe.c: New file.
58149
58150         * MODULES.html.sh (Unicode string functions): Add the new modules.
58151
58152 2007-01-08  Bruno Haible  <bruno@clisp.org>
58153
58154         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
58155         (Depends-on): Add unitypes.
58156         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58157         (u8_mbtouc_aux): Move out to separate file.
58158         (u8_mbtouc): Use ucs4_t, uint8_t types.
58159         * lib/unistr/utf8-ucs4.c: New file.
58160
58161         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
58162         (Depends-on): Add unitypes.
58163         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58164         (u16_mbtouc_aux): Move out to separate file.
58165         (u16_mbtouc): Use ucs4_t, uint16_t types.
58166         * lib/unistr/utf16-ucs4.c: New file.
58167
58168         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
58169         (Depends-on): Add unitypes.
58170         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58171         (u8_uctomb_aux): Move out to separate file.
58172         (u8_uctomb): Use ucs4_t, uint8_t types.
58173         * lib/unistr/ucs4-utf8.c: New file.
58174
58175         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
58176         (Depends-on): Add unitypes.
58177         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
58178         (u16_uctomb_aux): Move out to separate file.
58179         (u16_uctomb): Use ucs4_t, uint16_t types.
58180         * lib/unistr/ucs4-utf16.c: New file.
58181
58182 2006-12-25  Bruno Haible  <bruno@clisp.org>
58183
58184         * modules/unitypes: New file.
58185         * lib/unitypes.h: New file.
58186         * MODULES.html.sh (func_all_modules): New section "Unicode string
58187         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
58188         this section. Add unitypes.
58189
58190 2007-01-08  Bruno Haible  <bruno@clisp.org>
58191
58192         Avoid variable names that conflict with those from libtool.
58193         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
58194         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
58195         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
58196         library_names_spec to acl_library_names_spec, hardcode_* to
58197         acl_hardcode_*.
58198         Reported by Ralf Wildenhues.
58199
58200 2007-01-08  Bruno Haible  <bruno@clisp.org>
58201
58202         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
58203         definition.
58204         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
58205         definition.
58206         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58207         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
58208         definition.
58209         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
58210         definition.
58211         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
58212         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
58213         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
58214         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
58215         definition.
58216         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
58217         definition.
58218         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
58219         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
58220         GC_USE_<algorithm>.
58221         * lib/gc-libgcrypt.c: Likewise.
58222         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
58223         * modules/gc-arctwo (configure.ac): Likewise.
58224         * modules/gc-des (configure.ac): Likewise.
58225         * modules/gc-hmac-md5 (configure.ac): Likewise.
58226         * modules/gc-hmac-sha1 (configure.ac): Likewise.
58227         * modules/gc-md2 (configure.ac): Likewise.
58228         * modules/gc-md4 (configure.ac): Likewise.
58229         * modules/gc-md5 (configure.ac): Likewise.
58230         * modules/gc-random (configure.ac): Likewise.
58231         * modules/gc-rijndael (configure.ac): Likewise.
58232         * modules/gc-sha1 (configure.ac): Likewise.
58233
58234 2007-01-08  Bruno Haible  <bruno@clisp.org>
58235
58236         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
58237         macro definition.
58238         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
58239         definition.
58240         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
58241         definition.
58242         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
58243         * modules/fcntl-safer (configure.ac): Likewise.
58244         * modules/fopen-safer (configure.ac): Likewise.
58245         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
58246         GNULIB_FWRITEERROR macro definition.
58247
58248 2007-01-08  Bruno Haible  <bruno@clisp.org>
58249
58250         * m4/gnulib-common.m4: New file.
58251         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
58252         (func_get_filelist): Add m4/gnulib-common.m4.
58253
58254 2007-01-08  Bruno Haible  <bruno@clisp.org>
58255
58256         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
58257         command.
58258
58259 2007-01-08  Jim Meyering  <jim@meyering.net>
58260
58261         Use a more robust test for a "can't happen" condition.
58262         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
58263         narrowed the st_size value.  Presuming the "can't happen" condition
58264         is true, that narrowing could conceivably convert an invalid st_size
58265         value into a valid one.  Instead, use a change based on Matthew
58266         Woehlke's original patch.
58267
58268         Slight readability improvement: use an assert-like macro
58269         in place of literal "abort ()" uses.
58270         * lib/fts.c (fts_assert): Define.
58271         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
58272         Use this macro instead of a bare 'abort'.
58273
58274 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
58275
58276         Don't worry about using IRIX 5.3's wctype.h broken definitions;
58277         simply work around them.
58278         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
58279         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
58280         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
58281         declaring.
58282         Don't bother to define as macros, since the standard doesn't require it.
58283         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
58284         longer worry about IRIX 5.3.
58285         (HAVE_WCTYPE_CTMP_BUG): Remove.
58286
58287 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
58290         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
58291         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58292         Problems reported by Georg Schwarz for IRIX 5.3.
58293
58294         * gnulib-tool (autoconf_minversion): Take the maximum version number
58295         found, not the minimum.  Problem reported by James Youngman.
58296
58297 2007-01-03  Karl Berry  <karl@gnu.org>
58298
58299         * doc/error.texi: new file, explaining interaction with progname.
58300         * doc/gnulib.texi: include it.  Update copyright.
58301
58302 2007-01-03  Simon Josefsson  <simon@josefsson.org>
58303
58304         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
58305         AC_CANONICAL_HOST, to improve autobuild outputs.
58306
58307 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
58308             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58309
58310         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
58311         sockets, server sockets, and other file descriptors.  Count errors
58312         to compute the return value.  Reorder the code a bit to be easier
58313         to follow.  Don't set event bits that were not requested (except
58314         POLLERR and POLLHUP).
58315
58316 2007-01-01  Bruno Haible  <bruno@clisp.org>
58317
58318         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
58319
58320 2007-01-03  Jim Meyering  <jim@meyering.net>
58321
58322         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
58323
58324 2007-01-02  Bruno Haible  <bruno@clisp.org>
58325
58326         * modules/settime (Include): Require timespec.h.
58327         * modules/nanosleep (Include): Likewise.
58328
58329 2007-01-01  Bruno Haible  <bruno@clisp.org>
58330
58331         * gnulib-tool (func_emit_copyright_notice): Bump year.
58332         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58333
58334 2007-01-01  Bruno Haible  <bruno@clisp.org>
58335
58336         Improve support for OpenBSD.
58337         * build-aux/config.rpath (libname_spec): Export.
58338         (library_names_spec): New variable. Export.
58339         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58340         library_names_spec from the config.rpath output. Locate shared library
58341         through the name pattern in library_names_spec.
58342
58343 2007-01-01  Eric Blake  <ebb9@byu.net>
58344
58345         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58346
58347 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58348
58349         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58350         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58351         assume the C locale, and avoid an "eval" that could cause trouble.
58352         Problem with SORT reported by Bob Proulx.
58353
58354         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58355         Define.  Trivial patch from Henning Nielsen Lund, originally
58356         sent to bug-grep@gnu.org today.
58357
58358 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58359
58360         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58361         struct stat.  Problem reported by Henning Nielsen Lund.
58362         * lib/acl.c: Include acl.h first, to check interface.  Don't
58363         bother to include sys/types.h and sys/stat.h again.
58364
58365 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58366
58367         Import the following change from libc; problem reported by
58368         Sven Verdoolaege.
58369
58370         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58371
58372         [BZ #1373]
58373         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58374
58375 2006-12-28  Jim Meyering  <jim@meyering.net>
58376
58377         * build-aux/announce-gen: Do not assume that the package
58378         builds any of tar.gz, tar.bz2, and .xdelta files.
58379         Suggestion from Simon Josefsson.
58380
58381 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58382
58383         * modules/announce-gen: New file.
58384
58385 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58386
58387         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58388         handles its gotchas now.
58389         * lib/mbswidth.c: Likewise.
58390         * lib/wcwidth.h: Likewise.
58391         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58392         and iswcntrl; the wctype module does this stuff now.
58393         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58395         * modules/mbchar (Depends-on): Add wctype.
58396         * modules/mbswidth (Depends-on): Likewise.
58397         * modules/wcwidth (Depends-on): Likewise.
58398
58399 2006-12-27  Eric Blake  <ebb9@byu.net>
58400
58401         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58402         module uses more than what <wctype.h> is required to provide.
58403
58404 2006-12-26  Eric Blake  <ebb9@byu.net>
58405
58406         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58407
58408 2006-12-26  Eric Blake  <ebb9@byu.net>
58409
58410         * modules/absolute-header: New module.
58411         * modules/fcntl (Depends-on): Depend on it.
58412         * modules/inttypes (Depends-on): Likewise.
58413         * modules/stdint (Depends-on): Likewise.
58414         * modules/sys_stat (Depends-on): Likewise.
58415         * modules/wctype (Depends-on): Likewise.
58416         * MODULES.html.sh (Support for building libraries and
58417         executables): Document it.
58418
58419 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58420
58421         * gnulib-tool (SED): Remove, undoing previous change.
58422         The problem was that it broke coreutils on Solaris, because
58423         "sed --posix" leaked into a makefile.
58424         (sed): New alias, if 'alias' and GNU sed.
58425
58426 2006-12-24  Jim Meyering  <jim@meyering.net>
58427
58428         Work around an fchownat bug in glibc-2.4:
58429         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58430         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58431         in spite of the -P option.
58432         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58433         New macros.
58434         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58435         * modules/openat (Files): Add lib/fchownat.c.
58436         * lib/openat.c (fchownat): Don't define here.  Move to...
58437         * lib/fchownat.c: ...this new file.
58438
58439 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58440
58441         Fix bug reported by Bruno Haible in
58442         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58443         where quotearg.c didn't compile on Mac OS X 10.2 because it
58444         lacks <wchar.h> and wint_t.
58445         * lib/wctype_.h (__wctype_wint_t): New type.
58446         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58447         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58448         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58449         Arg is now of type __wctype_wint_t, not wint_t.
58450         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58451         substitute HAVE_WINT_T.
58452         * modules/wctype (Files): Add m4/wint_t.m4.
58453         (wctype.h): Substitute HAVE_WINT_T.
58454
58455 2006-12-23  Bruno Haible  <bruno@clisp.org>
58456
58457         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58458
58459 2006-12-23  Bruno Haible  <bruno@clisp.org>
58460
58461         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58462         S_ISLNK.
58463         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58464         mingw.
58465
58466 2006-12-22  Bruno Haible  <bruno@clisp.org>
58467
58468         * lib/copy-file.c: Include acl.h.
58469         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58470         Close the file descriptors only after being done with copy_acl.
58471         * modules/copy-file (Depends-on): Add acl.
58472
58473 2006-12-22  Bruno Haible  <bruno@clisp.org>
58474
58475         * gnulib-tool (SED): New variable.
58476         Use $SED instead of sed everywhere.
58477
58478 2006-12-22  Bruno Haible  <bruno@clisp.org>
58479
58480         * modules/no-c++: New file.
58481         * m4/no-c++.m4: New file.
58482         * MODULES.html.sh (Support for building libraries and executables):
58483         Add no-c++.
58484
58485 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58486
58487         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58488         Include <limits.h>, and use its INT_MAX to rewrite the
58489         j loop so that it does not overflow 'int'.  Problem reported by
58490         Ralf Wildenhues in
58491         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58492         Play it safe by shifting left by 1 rather than multiplying by 2,
58493         as GCC is less likely to optimize this away when the value
58494         is signed (when it assumes overflow leads to undefined behavior).
58495         Also, don't assume time_t uses two's complement.
58496
58497 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58498
58499         * MODULES.html.sh: New module wctype.
58500         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58501         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58502         <wctype.h>, since the new wctype module should fix this.
58503         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58504         the wctype module should arrange for it.
58505         * lib/regex_internal.h: Likewise.
58506         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58507         since the wctype module should handle this now.
58508         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58509         * modules/fnmatch (Depends-on): Add wctype.
58510         * modules/quotearg (Depends-on): Likewise.
58511         * modules/regex (Depends-on): Likewise.
58512
58513 2006-12-19  Bruno Haible  <bruno@clisp.org>
58514
58515         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58516         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58517
58518 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58519
58520         * modules/savewd (Depends-on): Fix dependency on fcntl.
58521
58522 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58523
58524         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58525         conforms to C99, rather than relying on the user's environment
58526         setting of STDINT_H.
58527
58528 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58529         and Eric Blake  <ebb9@byu.net>
58530
58531         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58532         This is more consistent with the other defines here.
58533         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58534         Port to z/OS.  Problem reported by Paul Gilmartin.
58535         Change local vars to use gl_ prefix rather than ac_.
58536         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58537         with other defines.
58538         * modules/double-slash-root: New module.
58539         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58540         (Depends-on): Add double-slash-root.
58541         * MODULES.html.sh (File system functions): Mention new module.
58542
58543 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58544
58545         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58546         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58547         This is for the benefit of gzip, which doesn't do i18n.
58548
58549 2006-12-12  Jim Meyering  <jim@meyering.net>
58550
58551         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58552         Reported by Andreas Schwab <schwab@suse.de>.
58553
58554 2006-12-12  Bruno Haible  <bruno@clisp.org>
58555
58556         Merge these changes.
58557         2006-09-05  Bruno Haible  <bruno@clisp.org>
58558         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58559         iconv_alloc succeeded.
58560         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58561         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58562         test for " && dest " at the end - dest is always != NULL there. Call
58563         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58564         with 2xNULL arguments, also to flush the state storage. Handle the
58565         IRIX iconv behaviour. Realloc the final result, to throw away unused
58566         memory.
58567
58568 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58569
58570         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58571         and fchmodat unconditionally, since glibc 2.4 has them.
58572         Problem reported by Arkadiusz Miskiewicz.
58573
58574 2006-12-10  Bruno Haible  <bruno@clisp.org>
58575
58576         * gnulib-tool (func_import): Show the include files only for those
58577         modules that are copied and specified.
58578         Reported by Karl Berry.
58579
58580 2006-12-08  Jim Meyering  <jim@meyering.net>
58581
58582         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58583         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58584
58585         * build-aux/announce-gen: Add two new options, both optional:
58586         --bootstrap-tools=TOOL_LIST
58587               a comma-separated list of tools, e.g.,
58588               autoconf,automake,bison,gnulib
58589         --gnulib-snapshot-date=DATE
58590               if gnulib is in the bootstrap tool list,
58591               then report this as the snapshot date.
58592               If not specified, use the current date/time.
58593               If you specify a date here, be sure it's UTC.
58594
58595 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58596
58597         * tests/test-argp-2.sh: Fix test to match actual output.
58598         (func_compare): Fix sed script to be portable.
58599
58600 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58601
58602         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58603         workaround for this case.  It is not autoconfigured now; offhand
58604         it's hard to see how to autoconfigure it.
58605
58606 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58607
58608         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58609         a directory that is about to be chowned.  Such a directory's
58610         initial file permissions should permit the owner only and this
58611         should not be changed until after the chown, since the group and
58612         other bits would be incorrect if they granted permission before
58613         the chown.
58614
58615         Fix porting problem for iswctype reported by Georg Schwarz in:
58616         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58617         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58618         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58619         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58620         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58621
58622 2006-12-03  Jim Meyering  <jim@meyering.net>
58623
58624         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58625         p->fts_statp may not yet be defined.
58626         (fts_read): Instead, set it in the caller, once p->fts_statp is
58627         sure to be defined, and corresponds to a top-level directory.
58628         This bug made du -x fail.  Here's the coreutils test case:
58629         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58630         Reported by Mike Frysinger.
58631
58632 2006-12-01  Jim Meyering  <jim@meyering.net>
58633
58634         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58635         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58636         Reported by Simon Josefsson.
58637
58638 2006-11-30  Jim Meyering  <jim@meyering.net>
58639
58640         * m4/warning.m4: Use the all-permissive copyright notice
58641         recommended by RMS (rather than LGPL).
58642         * m4/vararrays.m4: Likewise.
58643         * m4/flexmember.m4: Likewise.
58644
58645 2006-11-29  Bruno Haible  <bruno@clisp.org>
58646
58647         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58648         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58649         using +=.
58650         Reported by Simon Josefsson <simon@josefsson.org>.
58651
58652 2006-11-28  James Youngman <jay@gnu.org>
58653
58654         * README: Advise users that they might find the bug-gnulib@gnu.org
58655         and autotools-announce@gnu.org mailing lists useful.
58656
58657 2006-11-28  Bruno Haible  <bruno@clisp.org>
58658
58659         * m4/ptrdiff_max.m4: Remove file.
58660
58661 2006-11-21  Bruno Haible  <bruno@clisp.org>
58662
58663         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58664         _AC_COMPUTE_INT.
58665         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58666         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58667         _AC_COMPUTE_INT.
58668         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58669         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58670         _AC_COMPUTE_INT.
58671         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58672
58673 2006-11-28  Jim Meyering  <jim@meyering.net>
58674
58675         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58676         warning from "gcc -Wshadow" about shadowing the builtin.
58677
58678 2006-11-27  Bruno Haible  <bruno@clisp.org>
58679
58680         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58681         _AC_COMPUTE_INT.
58682         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58683
58684 2006-11-27  Bruno Haible  <bruno@clisp.org>
58685             Paul Eggert  <eggert@cs.ucla.edu>
58686
58687         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58688
58689 2006-11-26  Bruno Haible  <bruno@clisp.org>
58690
58691         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58692         noinst_LTLIBRARIES.
58693
58694 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58695             Bruno Haible  <bruno@clisp.org>
58696
58697         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58698         if compiling with "gcc -ansi".
58699
58700 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58701
58702         Fix some incompatibilities with gcc -ansi -pedantic.
58703         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58704         if compiling pedantically with GCC, unless it's C99 or later.
58705         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58706         it mishandles gcc -ansi -pedantic as well.
58707         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58708         if gcc -pedantic.
58709         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58710         initializers for struct if -pedantic, unless it's C99 or later.
58711
58712 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58713
58714         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58715         Don't close an fd more than once. Identical atimes indicate
58716         success, not failure.
58717
58718 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58719
58720         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58721
58722 2006-11-23  Jim Meyering  <jim@meyering.net>
58723
58724         * build-aux/announce-gen: New file.  From coreutils.
58725
58726 2006-11-22  Jim Meyering  <jim@meyering.net>
58727
58728         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58729         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58730         (fts_read): Use a temporary to narrow the overused st_size member
58731         before using it in a switch statement.  Reported by Matthew Woehlke.
58732
58733         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58734         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58735
58736 2006-11-20  Bruno Haible  <bruno@clisp.org>
58737
58738         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58739         changequote instead of pairs of brackets.
58740         Reported by Andreas Schwab <schwab@suse.de>.
58741
58742 2006-11-21  Jim Meyering  <jim@meyering.net>
58743
58744         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58745         so as to remain compatible with older compilers.
58746         Patch from Michael Deutschmann.
58747
58748 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58749
58750         * MODULES.html.sh (File system functions): Add openat.
58751
58752         * lib/openat.h (rpl_fstatat): New macro, if
58753         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58754         (fstatat): Define to rpl_fstatat under the same conditions,
58755         unless COMPILING_FSTATAT.
58756         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58757         seems to have the bug.
58758         * lib/fstatat.c: New file.
58759         * modules/openat (Files): Add it.
58760
58761 2006-11-20  Bruno Haible  <bruno@clisp.org>
58762
58763         * Makefile: New file.
58764
58765 2006-11-20  Jim Meyering  <jim@meyering.net>
58766
58767         The beginnings of syntax-related checks for gnulib.
58768         * lib/Makefile: New file.
58769         * lib/t-idcache: New script.  Ensure that the two halves of
58770         idcache.c stay in sync.
58771
58772         * lib/idcache.c: Adjust comments in user- and group- portions to
58773         be more accurate, and to be consistent with one another.
58774
58775 2006-11-20  Jim Meyering  <jim@meyering.net>
58776
58777         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58778         continue using the flexible array member (thus, this module performs
58779         half as many malloc calls), with the addition that...
58780         (getgroup, getuser): Consistently record a non-match via an empty
58781         "name" string, and map an empty string match to a NULL return value.
58782         * modules/idcache (Depends-on): Re-add flexmember.
58783
58784         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58785         (getuidbyname, getgroup, getgidbyname): Likewise.
58786
58787         Use cleaner syntax: NULL rather than 0.
58788         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58789
58790 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58791
58792         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58793         It mishandled the case where the group was missing.
58794         Problem reported by Greg Schafer.
58795         * modules/idcache: Likewise.
58796
58797 2006-11-18  Jim Meyering  <jim@meyering.net>
58798
58799         * check-module (%exempt_header): Add exception for some
58800         conditionally-included headers.
58801
58802         * modules/i-ring (Depends-on): Add verify.
58803         (License): Change to LGPL.
58804
58805 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58806
58807         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58808         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58809         and inttostr.h.  Use snprintf rather than uinttostr, so that
58810         LGPLed code doesn't depend on GPLed.
58811
58812 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58813
58814         * modules/inline (License): Change from GPL to LGPL.
58815
58816 2006-11-17  Jim Meyering  <jim@meyering.net>
58817
58818         * modules/d-type (License): Switch to LGPL.
58819
58820 2006-11-15  Bruno Haible  <bruno@clisp.org>
58821
58822         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58823
58824 2006-11-15  Eric Blake  <ebb9@byu.net>
58825
58826         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58827         the module dependency.
58828
58829 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58830             Bruno Haible  <bruno@clisp.org>
58831
58832         * gnulib-tool (func_create_testdir): Add license consistency check.
58833
58834 2006-11-15  Eric Blake  <ebb9@byu.net>
58835
58836         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58837         random "(cached)" in configure output.
58838
58839 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58840
58841         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58842         test for conforming inttypes.h is both announced and cached.
58843
58844         * MODULES.html.sh (seen_modules, seen_files): New variables.
58845         (func_module): Rewrite to use a few less gnulib-tool and sed
58846         invocations.  Avoid a couple of quadratic algorithms for ...
58847         (missed_modules, missed_files): ... these, with ...
58848         (func_append, func_tmpdir): ... these new functions, from
58849         gnulib-tool.  Analogously, install traps for cleanup.
58850
58851         * tests/test-gc.c (main): Remove unused variables.
58852         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58853
58854 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58855
58856         * modules/inttostr (License): Change to LGPL.
58857
58858 2006-11-14  Eric Blake  <ebb9@byu.net>
58859
58860         * modules/tempname (License): Change to LGPL.
58861
58862 2006-11-14  Eric Blake  <ebb9@byu.net>
58863
58864         * doc/functions.texi (Function Portability): *printf functions on
58865         Cygwin now understand all POSIX size specifiers.
58866
58867 2006-11-14  Bruno Haible  <bruno@clisp.org>
58868
58869         * modules/c-ctype (License): Change to LGPL.
58870
58871 2006-11-12  Bruno Haible  <bruno@clisp.org>
58872
58873         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58874         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58875         for GNOME libraries, for which the include files are installed in
58876         subdirectories of $prefix/include.
58877
58878 2006-11-12  Bruno Haible  <bruno@clisp.org>
58879
58880         * m4/lib-link.m4: Require at least autoconf-2.54.
58881         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58882         name to underscores for the --with option.
58883
58884 2006-11-13  Bruno Haible  <bruno@clisp.org>
58885
58886         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58887         the tests directory.
58888         Reported by Ralf Wildenhues.
58889
58890 2006-11-13  Bruno Haible  <bruno@clisp.org>
58891
58892         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58893         (func_emit_initmacro_end): Undo the override here.
58894         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58895         Works around the famous automake error in coreutils.
58896
58897 2006-11-13  Eric Blake  <ebb9@byu.net>
58898
58899         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58900         element, not its node.
58901
58902 2006-11-12  Bruno Haible  <bruno@clisp.org>
58903
58904         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58905         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58906
58907 2006-11-12  Bruno Haible  <bruno@clisp.org>
58908
58909         * gnulib-tool: New option --local-symlink.
58910         (func_usage): Document it.
58911         (lsymbolic): New variable.
58912         (func_import, func_create_testdir): If --symlink was not specified,
58913         test whether --local-symlink was specified and the file comes from
58914         the local_gnulib_dir.
58915
58916 2006-11-12  Bruno Haible  <bruno@clisp.org>
58917
58918         * gnulib-tool (func_ln): New function.
58919         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58920
58921 2006-11-12  Bruno Haible  <bruno@clisp.org>
58922
58923         Finish support for source files in subdirectories.
58924         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58925         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58926         AUTOMAKE_OPTIONS.
58927         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58928
58929 2006-11-12  Bruno Haible  <bruno@clisp.org>
58930
58931         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58932         EXTRA_lib_SOURCES augmentation.
58933         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58934
58935 2006-11-12  Jim Meyering  <jim@meyering.net>
58936
58937         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58938         file descriptors.  This also averts a failure on systems with
58939         native openat support when a traversed directory lacks "x" access.
58940         * lib/fts_.h: Include "i-ring.h"
58941         (struct FTS) [fts_fd_ring]: New member.
58942         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58943         (FCHDIR): Add parentheses.
58944         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58945         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58946         When descending, rather than simply closing the previous
58947         fts_cwd_fd value, push that file descriptor onto the ring.
58948         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58949         (fts_open): Initialize the new fd_ring member.
58950         (fts_close): Clear the ring.
58951         (fts_safe_changedir): When possible, use our new fd_ring to skip
58952         the diropen and fstat and dev/ino comparison that would normally
58953         accompany a virtual `chdir ("..")'.
58954
58955         * modules/fts (Depends-on): Add i-ring.
58956         * modules/i-ring: New module.
58957         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58958         * m4/i-ring.m4: New file.
58959
58960 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58961
58962         * gnulib-tool (func_create_testdir): Fix replacement of
58963         `build-aux' in configure.ac.  Run autotools in gltests
58964         subdirectory.
58965         (func_create_testdir, func_create_megatestdir, test): There is
58966         no need for '--force' in most autotool invocations in a new
58967         tree.  Actually fail the whole test if any of the tools, or the
58968         configure or make stages fail.
58969
58970         Sync from Automake.
58971         * build-aux/gnupload: Revert last change.  Add pointer to upload
58972         instructions of the GNU Maintenance Instructions.
58973         Suggestion by Karl Berry.
58974
58975 2006-11-10  Jim Meyering  <jim@meyering.net>
58976
58977         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58978
58979 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58980
58981         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58982         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58983         (bind_textdomain_codeset) [! ENABLE_NLS]:
58984         Evaluate all the arguments.  That way, callers get compatible behavior
58985         if the arguments have side effects.  Also, it avoids some GCC
58986         diagnostics in some cases; Joel E. Denny reported problems when Bison
58987         was configured with --enable-gcc-warnigs.
58988
58989 2006-11-10  Jim Meyering  <jim@meyering.net>
58990
58991         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58992         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58993         account.
58994
58995 2006-11-10  Jim Meyering  <jim@meyering.net>
58996
58997         * modules/inline: New file/module.
58998         * modules/xalloc (Files): Remove m4/inline.m4.
58999         (Depends-on): Add inline, instead.
59000         * modules/oset: Likewise.
59001         * modules/list: Likewise.
59002
59003 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59004
59005         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
59006         Problem reported by Matthew Woehlke.
59007
59008 2006-11-09  Bruno Haible  <bruno@clisp.org>
59009
59010         * lib/tempname.c (gen_tempname): Remove variant that invokes
59011         __gen_tempname.
59012         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
59013         __gen_tempname.
59014
59015 2006-11-08  Bruno Haible  <bruno@clisp.org>
59016
59017         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
59018         to 'yes' instead of 'cross-compiling'.
59019
59020 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
59021
59022         * lib/quotearg.h (quotearg_free): New decl.
59023         * lib/quotearg.c (quotearg_free): New function.
59024         (slot0, nslots, slotvec0, slotvec):
59025         Now file-scope so that quotearg_free can get at them.
59026
59027 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59028
59029         Sync from Automake.
59030         * build-aux/gnupload: Add missing 'gnu' to example URL.
59031         Report by Karl Berry.
59032
59033 2006-11-08  Bruno Haible  <bruno@clisp.org>
59034
59035         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
59036         Suggested by Paul Eggert.
59037
59038 2006-11-08  Jim Meyering  <jim@meyering.net>
59039
59040         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
59041         It's already included if !_LIBC.
59042         (fts_safe_changedir): Add a comment.
59043
59044 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59045
59046         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
59047         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
59048         Matthew Woehlke.
59049
59050         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
59051         definitions up, to avoid colliding with change below.
59052         (static_inline) [HAVE_INLINE]: New macro.
59053         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
59054         Provide extern decls when !HAVE_INLINE.  Do not define unless
59055         static_inline is defined, either by us or by xmalloc.c.  Use
59056         static_inline rather than static inline.
59057         (XCALLOC): Optimize sizeof(T) = 1 case.
59058         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
59059
59060 2006-11-07  Bruno Haible  <bruno@clisp.org>
59061
59062         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
59063         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
59064         AC_C_INLINE.
59065         * modules/xalloc (Files): Add m4/inline.m4.
59066
59067 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59068
59069         * README: Fix typo.
59070         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
59071         (Miscellanous Notes): ...from this.
59072
59073 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59074
59075         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
59076         Mention that offsetof should be used instead of sizeof.
59077         From Bruno Haible.
59078
59079 2006-11-07  Bruno Haible  <bruno@clisp.org>
59080
59081         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
59082
59083 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59084
59085         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59086         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
59087         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59088         (gl_tree_add_before, gl_tree_add_after):
59089         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
59090         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
59091         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59092         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
59093         (gl_linked_add_after, gl_linked_add_at): Likewise.
59094         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
59095         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59096         (gl_tree_add_before, gl_tree_add_after): Likewise.
59097         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
59098         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
59099         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59100
59101 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59102
59103         * lib/gl_oset.h: Use C comment style, not C++ comment style.
59104
59105 2006-11-06  Bruno Haible  <bruno@clisp.org>
59106
59107         * m4/inline.m4: New file.
59108         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
59109         * modules/list (Files): Add m4/inline.m4.
59110         * modules/oset (Files): Likewise.
59111
59112 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59113
59114         * lib/idcache.c: Include <stddef.h>, for offsetof.
59115         (struct userid.name): Change from char * to a flexible array member.
59116         All uses changed.
59117         * modules/idcache (Depends-on): Add flexmember.
59118
59119         * MODULES.html.sh (Core language properties): New module flexmember.
59120         * modules/flexmember, m4/flexmember.m4: New files.
59121
59122         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
59123         inline functions that are identical with the old xnmalloc_inline,
59124         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
59125         that we can avoid some unnecessary integer multiplications and
59126         divisions in the common case where the element size is known at
59127         compile time.
59128         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
59129         needed.
59130         (xnboundedmalloc): Remove.
59131         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
59132         arguments, for consistency with rest of this header.
59133         (xcharalloc): Rewrite using XNMALLOC.
59134         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
59135         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
59136         versions have been moved to lib/xalloc.h and renamed to be the
59137         non-*_inline versions.
59138         (xmalloc, xrealloc): Implement without reference to the xnmalloc
59139         and xnrealloc functions, since those functions are now inline and
59140         now call us.
59141         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
59142         renaming described above.
59143         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
59144         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
59145         captures the dependency in AC_C_INLINE.
59146
59147         New module canonicalize-lgpl, proposed by Charles Wilson in
59148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
59149         with a few small changes afterwards.
59150         * MODULES.html.sh (File system functions): New module
59151         canonicalize-lgpl.
59152         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
59153         and canonicalize_file_name.
59154         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
59155         * modules/canonicalize-lgpl: New files.
59156
59157 2006-11-05  Bruno Haible  <bruno@clisp.org>
59158
59159         * gnulib-tool (func_import, func_create_testdir): Create directories
59160         also for files in subdirectories of lib/.
59161
59162 2006-11-05  Bruno Haible  <bruno@clisp.org>
59163
59164         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
59165         ANSI C compliant.
59166
59167 2006-11-03  Bruno Haible  <bruno@clisp.org>
59168
59169         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59170         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
59171         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
59172         (xnboundedmalloc): New inline function.
59173         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
59174         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
59175         xmalloc.
59176         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
59177         xmalloc.
59178         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
59179         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
59180         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
59181         xmalloc.
59182         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59183         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
59184         xmalloc.
59185         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
59186         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59187         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
59188         xmalloc.
59189         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59190         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
59191         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59192         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
59193         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
59194         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
59195         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
59196
59197 2006-11-03  Bruno Haible  <bruno@clisp.org>
59198
59199         * lib/c-ctype.h [C++]: Define functions without name mangling.
59200         * lib/fwriteerror.h [C++]: Likewise.
59201         * lib/gcd.h [C++]: Likewise.
59202         * lib/linebreak.h [C++]: Likewise.
59203
59204 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59205
59206         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
59207         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
59208         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
59209         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59210         Check for functions and headers just once.
59211         Check for declaration of canonicalize_file_name.
59212         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
59213
59214 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59215
59216         * gnulib-tool (func_import): Fix typo in actioncmd.
59217
59218 2006-11-02  Bruno Haible  <bruno@clisp.org>
59219
59220         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
59221         newline sequence in the Makefile.am snippet as a space, like "make"
59222         does.
59223         Reported by Roger Persson <perrog@gmail.com>.
59224
59225 2006-11-01  Bruno Haible  <bruno@clisp.org>
59226
59227         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
59228         already declared in <string.h>.
59229         * lib/strcase.h (strncasecmp): Don't declare it if yes.
59230
59231 2006-11-01  Bruno Haible  <bruno@clisp.org>
59232
59233         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
59234         * lib/strcase.h: Include <string.h>.
59235         (strcasecmp): Define to rpl_strcasecmp here.
59236
59237 2006-11-01  Bruno Haible  <bruno@clisp.org>
59238
59239         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
59240
59241 2006-11-01  Eric Blake  <ebb9@byu.net>
59242
59243         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
59244
59245         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
59246
59247 2006-10-29  Bruno Haible  <bruno@clisp.org>
59248
59249         Make it compile in C++ mode.
59250         * lib/full-write.c (full_rw): Add a cast.
59251
59252 2006-11-01  Bruno Haible  <bruno@clisp.org>
59253
59254         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
59255         be POSIX compliant.
59256         Reported by Roger Persson <perrog@gmail.com>.
59257
59258 2006-11-01  Eric Blake  <ebb9@byu.net>
59259
59260         * lib/getopt_.h: Fix comments.
59261
59262 2006-10-31  Eric Blake  <ebb9@byu.net>
59263
59264         * modules/tmpdir (Depends-on): Add sys_stat.
59265         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
59266         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
59267         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
59268         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
59269         tempname.
59270
59271 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
59272
59273         Avoid some C++ diagnostics reported by Bruno Haible.
59274         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
59275         xmalloc.
59276         (quotearg_alloc): Use xcharalloc rather than xmalloc.
59277         (struct slotvec): Move to top level.
59278         (quotearg_n_options): Rewrite to avoid xmalloc.
59279         * lib/xalloc.h (xcharalloc): New function.
59280         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
59281         [defined __cplusplus]: Add function template that provides result
59282         type propagation.  This part of the change is from Bruno Haible.
59283
59284 2006-10-29  Bruno Haible  <bruno@clisp.org>
59285
59286         Make it compile in C++ mode.
59287         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
59288         * lib/strnlen1.c (strnlen1): Cast memchr result.
59289         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
59290         * lib/clean-temp.c (string_equals, string_hash): Add casts.
59291         (create_temp_dir): Rename local variable 'template'.
59292         (compile_csharp_using_sscli): Add cast.
59293         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
59294         * lib/findprog.c (find_in_path): Likewise.
59295         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
59296         * lib/wait-process.c (register_slave_subprocess): Likewise.
59297
59298 2006-10-22  Bruno Haible  <bruno@clisp.org>
59299
59300         * modules/tsearch: New file.
59301         * lib/tsearch.h: New file.
59302         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
59303         * m4/tsearch.m4: New file.
59304         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
59305
59306 2006-10-29  Eric Blake  <ebb9@byu.net>
59307
59308         * lib/arcfour.c: Assume config.h.
59309         * lib/arctwo.c: Likewise.
59310         * lib/base64.c: Likewise.
59311         * lib/check-version.c: Likewise.
59312         * lib/crc.c: Likewise.
59313         * lib/des.c: Likewise.
59314         * lib/gc-gnulib.c: Likewise.
59315         * lib/gc-libgcrypt.c: Likewise.
59316         * lib/gc-pbkdf2-sha1.c: Likewise.
59317         * lib/getaddrinfo.c: Likewise.
59318         * lib/getdelim.c: Likewise.
59319         * lib/getline.c: Likewise.
59320         * lib/hmac-md5.c: Likewise.
59321         * lib/hmac-sha1.c: Likewise.
59322         * lib/iconvme.c: Likewise.
59323         * lib/md2.c: Likewise.
59324         * lib/md4.c: Likewise.
59325         * lib/memxor.c: Likewise.
59326         * lib/read-file.c: Likewise.
59327         * lib/readline.c: Likewise.
59328         * lib/rijndael-alg-fst.c: Likewise.
59329         * lib/rijndael-api-fst.c: Likewise.
59330         * lib/xgetdomainname.c: Likewise.
59331
59332 2006-10-28  Eric Blake  <ebb9@byu.net>
59333
59334         * lib/xstrndup.c: Assume config.h.
59335
59336 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59337
59338         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59339         stat-macros.h is now for our own macros, whereas stat_h is for
59340         macros in the <sys/stat.h> name space.
59341         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59342         (STAT_MACROS_H): Remove.
59343         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59344         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59345         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59346         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59347         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59348         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59349         Move these macros to ...
59350         * lib/stat_.h: here.  Don't include stat-macros.h.
59351         * lib/canonicalize.c: Don't include stat-macros.h.
59352         * lib/chown.c: Likewise.
59353         * lib/euidaccess.c: Likewise.
59354         * lib/file-type.c: Likewise.
59355         * lib/filemode.c: Likewise.
59356         * lib/glob.c: Likewise.
59357         * lib/isapipe.c: Likewise.
59358         * lib/lchown.c: Likewise.
59359         * lib/lstat.c: Likewise.
59360         * lib/mkdir-p.c: Likewise.
59361         * lib/rmdir.c: Likewise.
59362         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59363         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59364         unless mkdir isn't declared, to speed up 'configure'.
59365         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59366         would define all the S_* symbols.
59367         * modules/canonicalize (Depends-on):
59368         Depend on sys_stat, not stat-macros.
59369         * modules/chown: Likewise.
59370         * modules/euidaccess: Likewise.
59371         * modules/filemode: Likewise.
59372         * modules/file-type: Likewise.
59373         * modules/glob: Likewise.
59374         * modules/isapipe: Likewise.
59375         * modules/lchown: Likewise.
59376         * modules/lstat: Likewise.
59377         * modules/mkancesdirs: Likewise.
59378         * modules/rmdir: Likewise.
59379         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59380         * modules/modechange: Likewise.
59381         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59382         (configure.ac): Remove gl_STAT_MACROS.
59383         * modules/sys_stat (Depends-on): Remove stat-macros.
59384
59385 2006-10-27  Bruno Haible  <bruno@clisp.org>
59386
59387         * m4/signed.m4: Remove file.
59388         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59389         invocation.
59390         * modules/vasnprintf (Files): Remove m4/signed.m4.
59391
59392 2006-10-27  Bruno Haible  <bruno@clisp.org>
59393
59394         Update to GNU gettext 0.16.
59395         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59396         m4/inttypes-h.m4, m4/signed.m4.
59397         * m4/gettext.m4: Update to GNU gettext 0.16.
59398         * m4/intl.m4: New file, from GNU gettext.
59399         * m4/intldir.m4: New file, from GNU gettext.
59400         * config/srclist.txt: Update
59401
59402 2006-10-27  Eric Blake  <ebb9@byu.net>
59403
59404         * MODULES.html.sh: Document tempname.
59405         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59406         dependencies.
59407         (Files): Move lib/tempname.c...
59408         * modules/tempname: ...to this new module.
59409         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59410         (gl_PREREQ_TEMPNAME): Move...
59411         * m4/tempname.m4: ...to this new file.
59412         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59413         * modules/sys_stat (Depends-on): Add stat-macros.
59414         * lib/stat_.h (includes): Pick up stat macros.
59415         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59416         if stat macros are broken.
59417         * lib/tempname.c (includes): No need to include "stat-macros.h".
59418         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59419         (direxists, __path_search) [!_LIBC]: Don't compile these in
59420         gnulib; the tmpdir module covers that.
59421         * lib/tempname.h: New file.
59422
59423 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59424
59425         * COPYING: Explain how gnulib-tool converts licence headers.
59426         Almost all wording by Eric Blake.
59427
59428 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59429
59430         * lib/mbchar.h (is_basic_table): Make read-only.
59431         * lib/mbchar.c (is_basic_table): Likewise.
59432         Reported by John Darrington.
59433
59434 2006-10-25  Bruno Haible  <bruno@clisp.org>
59435
59436         * lib/progname.h (set_program_name): Undefine before defining.
59437
59438 2006-10-25  Bruno Haible  <bruno@clisp.org>
59439
59440         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59441         false for non-gcc C++ compilers.
59442         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59443
59444 2006-10-24  Bruno Haible  <bruno@clisp.org>
59445
59446         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59447         iconv implementations like Irix iconv.
59448
59449 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59450
59451         * modules/vararrays: New file.
59452         * m4/vararrays.m4: New file, taken from diffutils.
59453         * MODULES.html.sh: New module vararrays.
59454
59455 2006-10-24  Karl Berry  <karl@gnu.org>
59456
59457         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59458         Don't call GNU Unix.
59459
59460 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59461
59462         * users.txt: Add Libtool.
59463
59464         Sync from Libtool:
59465
59466         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59467
59468         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59469         to gnulib's policy of including config.h unconditionally.
59470
59471 2006-10-24  Bruno Haible  <bruno@clisp.org>
59472
59473         * modules/wcwidth (Files): Add m4/wint_t.m4.
59474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59475         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59476
59477 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59478
59479         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59480         to pacify GCC with some -W flags enabled.  Problem reported by
59481         Bruno Haible.
59482
59483 2006-10-24  Jim Meyering  <jim@meyering.net>
59484
59485         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59486         Reported by Karl Berry.
59487
59488 2006-10-23  Bruno Haible  <bruno@clisp.org>
59489
59490         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59491
59492 2006-10-24  Bruno Haible  <bruno@clisp.org>
59493
59494         * lib/gl_list.h: Use C comment style, not C++ comment style.
59495
59496 2006-10-23  Eric Blake  <ebb9@byu.net>
59497
59498         * lib/getaddrinfo.c (includes): Add missing include.
59499
59500 2006-10-23  Bruno Haible  <bruno@clisp.org>
59501             Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         Ability to rename obstack_free.
59504         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59505         obstack_free.
59506         (obstack_free): Invoke the __obstack_free macro.
59507         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59508
59509 2006-10-23  Bruno Haible  <bruno@clisp.org>
59510             Paul Eggert  <eggert@cs.ucla.edu>
59511
59512         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59513         __argc, __argv from the declaration. (They are defined as macros on
59514         mingw.)
59515
59516 2006-10-22  Bruno Haible  <bruno@clisp.org>
59517
59518         * doc/gnulib-intro.texi: New file.
59519         * doc/gnulib.texi: Include it.
59520
59521 2006-10-21  Bruno Haible  <bruno@clisp.org>
59522
59523         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59524         "Introduction", "Miscellanous Notes", "Particular Modules".
59525
59526 2006-10-21  Bruno Haible  <bruno@clisp.org>
59527
59528         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59529         Change mostlyclean-local rule to avoid sh syntax error from bash
59530         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59531
59532 2006-10-23  Jim Meyering  <jim@meyering.net>
59533
59534         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59535         in place of snprintf.
59536
59537         * modules/inttostr (Files): Add lib/uinttostr.c.
59538         * lib/uinttostr.c (inttostr): New file/function.
59539         * lib/inttostr.h (uinttostr): Declare.
59540         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59541         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59542         Add uinttostr.
59543         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59544
59545 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59546
59547         * lib/canonicalize.c (ELOOP): Define if not already defined.
59548         Problem reported by Bruno Haible in
59549         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59550
59551 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59552
59553         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59554         Problem reported by Perry Smith and Ville Laurikari.
59555
59556         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59557         uses.
59558
59559 2006-10-19  Bruno Haible  <bruno@clisp.org>
59560
59561         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59562         for mingw.
59563
59564 2006-10-19  Bruno Haible  <bruno@clisp.org>
59565
59566         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59567         Needed for mingw.
59568
59569 2006-10-19  Bruno Haible  <bruno@clisp.org>
59570
59571         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59572
59573 2006-10-19  Bruno Haible  <bruno@clisp.org>
59574
59575         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59576         it.
59577
59578 2006-10-19  Bruno Haible  <bruno@clisp.org>
59579
59580         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59581         invocation.
59582
59583 2006-10-19  Bruno Haible  <bruno@clisp.org>
59584
59585         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59586         mountlist by default.
59587
59588 2006-10-16  Bruno Haible  <bruno@clisp.org>
59589
59590         * lib/c-strstr.c: Include c-strstr.h.
59591
59592 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59593
59594         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59595         in a slash.
59596
59597 2006-10-18  Bruno Haible  <bruno@clisp.org>
59598
59599         * lib/lock.h [C++]: Wrap definitions in extern "C".
59600
59601 2006-10-18  Bruno Haible  <bruno@clisp.org>
59602
59603         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59604         gl_LIBOBJS list.
59605
59606 2006-10-18  Bruno Haible  <bruno@clisp.org>
59607
59608         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59609
59610 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59611
59612         * lib/xstrtol.h: Include gettext.h.
59613         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59614         Problem reported by Eric Blake.
59615         * modules/xstrtol (Depends-on): Add gettext-h.
59616
59617 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59618
59619         * lib/strftime.c (advance): New macro.
59620         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59621         incomplete type, so you can't add 0 to it.  Problem and patch
59622         reported by Eelco Dolstra for dietlibc.
59623
59624 2006-10-18  Jim Meyering  <jim@meyering.net>
59625
59626         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59627         type for a local, and rename it: s/up/user_proc/.
59628
59629 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59630
59631         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59632         READ_UTMP_USER_PROCESS.
59633         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59634
59635 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59636
59637         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59638         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59639
59640 2006-10-17  Eric Blake  <ebb9@byu.net>
59641
59642         * lib/sigprocmask.c (sigprocmask): Fix typo.
59643
59644         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59645
59646         * modules/clean-temp (Makefile.am): Don't add to make output...
59647         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59648         config.h.
59649
59650 2006-10-17  Bruno Haible  <bruno@clisp.org>
59651
59652         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59653         differently if DEFAULT_TEXT_DOMAIN is set.
59654
59655 2006-10-16  Bruno Haible  <bruno@clisp.org>
59656
59657         * lib/clean-temp.c: Include fwriteerror.h.
59658
59659 2006-10-16  Bruno Haible  <bruno@clisp.org>
59660
59661         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59662
59663 2006-10-16  Bruno Haible  <bruno@clisp.org>
59664
59665         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59666         * lib/sigprocmask.h: Include <sys/types.h>.
59667         (sigset_t): Use the system's definition if present.
59668
59669 2006-10-17  Eric Blake  <ebb9@byu.net>
59670
59671         * lib/xvasprintf.c (includes): Assume config.h.
59672         * lib/xasprintf.c (includes): Likewise.
59673
59674 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59675
59676         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59677         at least as wide as intmax_t.
59678
59679 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59680
59681         (Imported from Automake.)
59682         * build-aux/gnupload: Update to version 1.1 of directive file.
59683
59684 2006-10-16  Eric Blake  <ebb9@byu.net>
59685
59686         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59687         match Automake 1.10a.
59688
59689 2006-10-14  Bruno Haible  <bruno@clisp.org>
59690
59691         * modules/sigprocmask: New file.
59692         * lib/sigprocmask.h: New file.
59693         * lib/sigprocmask.c: New file.
59694         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59695         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59696         request sigprocmask.o.
59697         (gl_PREREQ_SIGPROCMASK): New macro.
59698         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59699         (Depends-on): Add sigprocmask.
59700         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59701         gt_SIGNALBLOCKING. Test for 'raise' only once.
59702         * lib/fatal-signal.c: Include sigprocmask.h.
59703         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59704         unblock_fatal_signals): Define always.
59705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59706         sigprocmask.
59707
59708 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         Sync from Automake.
59711         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59712         which incorrectly sets the mode of an existing destination
59713         directory.  In some cases the unpatched install-sh could do the
59714         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59715         system.  We hope this is rare in practice, but it's clearly worth
59716         fixing.  Problem reported by Alex Unleashed in
59717         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59718         Also, don't bother to check for -m bugs unless we're using -m;
59719         suggested by Stepan Kasal.
59720
59721 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59722
59723         Sync from Automake.
59724         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59725         `-c' flag, so they appear at the same position as in %FASTDEP%
59726         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59727         which ignores unknown options only after the first non-option.
59728         Bug report against M4 by Nelson H. F. Beebe.
59729
59730 2006-10-13  Jim Meyering  <jim@meyering.net>
59731
59732         Fix a bug in yesterday's change.
59733         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59734         p->fts_statp->st_dev would be used uninitialized.
59735         Ensures that we always call fts_stat on the very first entry.
59736         Miklos Szeredi reported that find -xdev stopped working.
59737
59738 2006-10-12  Bruno Haible  <bruno@clisp.org>
59739
59740         * gnulib-tool (func_get_automake_snippet): Append an automatically
59741         computed EXTRA_DIST augmentation.
59742         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59743         * modules/alloca-opt (Makefile.am): Likewise.
59744         * modules/allocsa (Makefile.am): Likewise.
59745         * modules/arcfour (Makefile.am): Likewise.
59746         * modules/arctwo (Makefile.am): Likewise.
59747         * modules/argmatch (Makefile.am): Likewise.
59748         * modules/argz (Makefile.am): Likewise.
59749         * modules/atexit (Makefile.am): Likewise.
59750         * modules/backupfile (Makefile.am): Likewise.
59751         * modules/byteswap (Makefile.am): Likewise.
59752         * modules/c-strtod (Makefile.am): Likewise.
59753         * modules/c-strtold (Makefile.am): Likewise.
59754         * modules/calloc (Makefile.am): Likewise.
59755         * modules/canon-host (Makefile.am): Likewise.
59756         * modules/canonicalize (Makefile.am): Likewise.
59757         * modules/chdir-long (Makefile.am): Likewise.
59758         * modules/chdir-safer (Makefile.am): Likewise.
59759         * modules/check-version (Makefile.am): Likewise.
59760         * modules/chown (Makefile.am): Likewise.
59761         * modules/cloexec (Makefile.am): Likewise.
59762         * modules/close-stream (Makefile.am): Likewise.
59763         * modules/closeout (Makefile.am): Likewise.
59764         * modules/crc (Makefile.am): Likewise.
59765         * modules/csharpexec (Makefile.am): Likewise.
59766         * modules/cycle-check (Makefile.am): Likewise.
59767         * modules/des (Makefile.am): Likewise.
59768         * modules/dev-ino (Makefile.am): Likewise.
59769         * modules/dirfd (Makefile.am): Likewise.
59770         * modules/dirname (Makefile.am): Likewise.
59771         * modules/dup2 (Makefile.am): Likewise.
59772         * modules/eealloc (Makefile.am): Likewise.
59773         * modules/error (Makefile.am): Likewise.
59774         * modules/euidaccess (Makefile.am): Likewise.
59775         * modules/exclude (Makefile.am): Likewise.
59776         * modules/exitfail (Makefile.am): Likewise.
59777         * modules/fcntl-safer (Makefile.am): Likewise.
59778         * modules/fcntl (Makefile.am): Likewise.
59779         * modules/file-type (Makefile.am): Likewise.
59780         * modules/fileblocks (Makefile.am): Likewise.
59781         * modules/filemode (Makefile.am): Likewise.
59782         * modules/filenamecat (Makefile.am): Likewise.
59783         * modules/fnmatch (Makefile.am): Likewise.
59784         * modules/fopen-safer (Makefile.am): Likewise.
59785         * modules/fpending (Makefile.am): Likewise.
59786         * modules/fprintftime (Makefile.am): Likewise.
59787         * modules/free (Makefile.am): Likewise.
59788         * modules/fsusage (Makefile.am): Likewise.
59789         * modules/ftruncate (Makefile.am): Likewise.
59790         * modules/fts (Makefile.am): Likewise.
59791         * modules/gc-arcfour (Makefile.am): Likewise.
59792         * modules/gc-des (Makefile.am): Likewise.
59793         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59794         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59795         * modules/gc-md4 (Makefile.am): Likewise.
59796         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59797         * modules/gc-sha1 (Makefile.am): Likewise.
59798         * modules/gc (Makefile.am): Likewise.
59799         * modules/getaddrinfo (Makefile.am): Likewise.
59800         * modules/getcwd (Makefile.am): Likewise.
59801         * modules/getdelim (Makefile.am): Likewise.
59802         * modules/getdomainname (Makefile.am): Likewise.
59803         * modules/getgroups (Makefile.am): Likewise.
59804         * modules/gethostname (Makefile.am): Likewise.
59805         * modules/gethrxtime (Makefile.am): Likewise.
59806         * modules/getline (Makefile.am): Likewise.
59807         * modules/getloadavg (Makefile.am): Likewise.
59808         * modules/getlogin_r (Makefile.am): Likewise.
59809         * modules/getndelim2 (Makefile.am): Likewise.
59810         * modules/getopt (Makefile.am): Likewise.
59811         * modules/getpagesize (Makefile.am): Likewise.
59812         * modules/getpass-gnu (Makefile.am): Likewise.
59813         * modules/getpass (Makefile.am): Likewise.
59814         * modules/getsubopt (Makefile.am): Likewise.
59815         * modules/gettime (Makefile.am): Likewise.
59816         * modules/gettimeofday (Makefile.am): Likewise.
59817         * modules/getugroups (Makefile.am): Likewise.
59818         * modules/getusershell (Makefile.am): Likewise.
59819         * modules/glob (Makefile.am): Likewise.
59820         * modules/group-member (Makefile.am): Likewise.
59821         * modules/hard-locale (Makefile.am): Likewise.
59822         * modules/hash (Makefile.am): Likewise.
59823         * modules/hmac-md5 (Makefile.am): Likewise.
59824         * modules/hmac-sha1 (Makefile.am): Likewise.
59825         * modules/human (Makefile.am): Likewise.
59826         * modules/idcache (Makefile.am): Likewise.
59827         * modules/imaxabs (Makefile.am): Likewise.
59828         * modules/imaxdiv (Makefile.am): Likewise.
59829         * modules/inet_ntop (Makefile.am): Likewise.
59830         * modules/inet_pton (Makefile.am): Likewise.
59831         * modules/intprops (Makefile.am): Likewise.
59832         * modules/inttostr (Makefile.am): Likewise.
59833         * modules/inttypes (Makefile.am): Likewise.
59834         * modules/isapipe (Makefile.am): Likewise.
59835         * modules/javaversion (Makefile.am): Likewise.
59836         * modules/lchmod (Makefile.am): Likewise.
59837         * modules/lchown (Makefile.am): Likewise.
59838         * modules/localcharset (Makefile.am): Likewise.
59839         * modules/long-options (Makefile.am): Likewise.
59840         * modules/lstat (Makefile.am): Likewise.
59841         * modules/malloc (Makefile.am): Likewise.
59842         * modules/mathl (Makefile.am): Likewise.
59843         * modules/mbchar (Makefile.am): Likewise.
59844         * modules/md2 (Makefile.am): Likewise.
59845         * modules/md4 (Makefile.am): Likewise.
59846         * modules/md5 (Makefile.am): Likewise.
59847         * modules/memcasecmp (Makefile.am): Likewise.
59848         * modules/memchr (Makefile.am): Likewise.
59849         * modules/memcmp (Makefile.am): Likewise.
59850         * modules/memcoll (Makefile.am): Likewise.
59851         * modules/memcpy (Makefile.am): Likewise.
59852         * modules/memmem (Makefile.am): Likewise.
59853         * modules/memmove (Makefile.am): Likewise.
59854         * modules/mempcpy (Makefile.am): Likewise.
59855         * modules/memrchr (Makefile.am): Likewise.
59856         * modules/memset (Makefile.am): Likewise.
59857         * modules/memxor (Makefile.am): Likewise.
59858         * modules/mkancesdirs (Makefile.am): Likewise.
59859         * modules/mkdir-p (Makefile.am): Likewise.
59860         * modules/mkdir (Makefile.am): Likewise.
59861         * modules/mkdtemp (Makefile.am): Likewise.
59862         * modules/mkstemp (Makefile.am): Likewise.
59863         * modules/mktime (Makefile.am): Likewise.
59864         * modules/modechange (Makefile.am): Likewise.
59865         * modules/mountlist (Makefile.am): Likewise.
59866         * modules/nanosleep (Makefile.am): Likewise.
59867         * modules/obstack (Makefile.am): Likewise.
59868         * modules/openat (Makefile.am): Likewise.
59869         * modules/pagealign_alloc (Makefile.am): Likewise.
59870         * modules/pathmax (Makefile.am): Likewise.
59871         * modules/physmem (Makefile.am): Likewise.
59872         * modules/poll (Makefile.am): Likewise.
59873         * modules/posixtm (Makefile.am): Likewise.
59874         * modules/posixver (Makefile.am): Likewise.
59875         * modules/putenv (Makefile.am): Likewise.
59876         * modules/quote (Makefile.am): Likewise.
59877         * modules/quotearg (Makefile.am): Likewise.
59878         * modules/raise (Makefile.am): Likewise.
59879         * modules/read-file (Makefile.am): Likewise.
59880         * modules/readline (Makefile.am): Likewise.
59881         * modules/readlink (Makefile.am): Likewise.
59882         * modules/readtokens (Makefile.am): Likewise.
59883         * modules/readutmp (Makefile.am): Likewise.
59884         * modules/realloc (Makefile.am): Likewise.
59885         * modules/regex (Makefile.am): Likewise.
59886         * modules/rename-dest-slash (Makefile.am): Likewise.
59887         * modules/rename (Makefile.am): Likewise.
59888         * modules/rijndael (Makefile.am): Likewise.
59889         * modules/rmdir (Makefile.am): Likewise.
59890         * modules/rpmatch (Makefile.am): Likewise.
59891         * modules/safe-read (Makefile.am): Likewise.
59892         * modules/safe-write (Makefile.am): Likewise.
59893         * modules/same-inode (Makefile.am): Likewise.
59894         * modules/same (Makefile.am): Likewise.
59895         * modules/save-cwd (Makefile.am): Likewise.
59896         * modules/savedir (Makefile.am): Likewise.
59897         * modules/setenv (Makefile.am): Likewise.
59898         * modules/settime (Makefile.am): Likewise.
59899         * modules/sha1 (Makefile.am): Likewise.
59900         * modules/sig2str (Makefile.am): Likewise.
59901         * modules/snprintf (Makefile.am): Likewise.
59902         * modules/stat-macros (Makefile.am): Likewise.
59903         * modules/stat-time (Makefile.am): Likewise.
59904         * modules/stdbool (Makefile.am): Likewise.
59905         * modules/stdint (Makefile.am): Likewise.
59906         * modules/stdlib-safer (Makefile.am): Likewise.
59907         * modules/stpcpy (Makefile.am): Likewise.
59908         * modules/stpncpy (Makefile.am): Likewise.
59909         * modules/strcase (Makefile.am): Likewise.
59910         * modules/strcasestr (Makefile.am): Likewise.
59911         * modules/strchrnul (Makefile.am): Likewise.
59912         * modules/strcspn (Makefile.am): Likewise.
59913         * modules/strdup (Makefile.am): Likewise.
59914         * modules/strerror (Makefile.am): Likewise.
59915         * modules/strftime (Makefile.am): Likewise.
59916         * modules/strndup (Makefile.am): Likewise.
59917         * modules/strnlen (Makefile.am): Likewise.
59918         * modules/strpbrk (Makefile.am): Likewise.
59919         * modules/strsep (Makefile.am): Likewise.
59920         * modules/strstr (Makefile.am): Likewise.
59921         * modules/strtod (Makefile.am): Likewise.
59922         * modules/strtoimax (Makefile.am): Likewise.
59923         * modules/strtok_r (Makefile.am): Likewise.
59924         * modules/strtol (Makefile.am): Likewise.
59925         * modules/strtoll (Makefile.am): Likewise.
59926         * modules/strtoul (Makefile.am): Likewise.
59927         * modules/strtoull (Makefile.am): Likewise.
59928         * modules/strtoumax (Makefile.am): Likewise.
59929         * modules/strverscmp (Makefile.am): Likewise.
59930         * modules/sys_socket (Makefile.am): Likewise.
59931         * modules/sys_stat (Makefile.am): Likewise.
59932         * modules/sysexits (Makefile.am): Likewise.
59933         * modules/time_r (Makefile.am): Likewise.
59934         * modules/timegm (Makefile.am): Likewise.
59935         * modules/timespec (Makefile.am): Likewise.
59936         * modules/tmpfile-safer (Makefile.am): Likewise.
59937         * modules/trim (Makefile.am): Likewise.
59938         * modules/unistd-safer (Makefile.am): Likewise.
59939         * modules/unlinkdir (Makefile.am): Likewise.
59940         * modules/unlocked-io (Makefile.am): Likewise.
59941         * modules/userspec (Makefile.am): Likewise.
59942         * modules/utime (Makefile.am): Likewise.
59943         * modules/utimecmp (Makefile.am): Likewise.
59944         * modules/utimens (Makefile.am): Likewise.
59945         * modules/vasnprintf (Makefile.am): Likewise.
59946         * modules/vasprintf (Makefile.am): Likewise.
59947         * modules/vsnprintf (Makefile.am): Likewise.
59948         * modules/xalloc (Makefile.am): Likewise.
59949         * modules/xgetcwd (Makefile.am): Likewise.
59950         * modules/xnanosleep (Makefile.am): Likewise.
59951         * modules/xreadlink (Makefile.am): Likewise.
59952         * modules/xstrtod (Makefile.am): Likewise.
59953         * modules/xstrtol (Makefile.am): Likewise.
59954         * modules/xstrtold (Makefile.am): Likewise.
59955         * modules/yesno (Makefile.am): Likewise.
59956         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59957
59958 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59959
59960         * modules/error (Makefile.am): Distribute files through
59961         EXTRA_DIST, not lib_SOURCES.
59962
59963 2006-10-12  Eric Blake  <ebb9@byu.net>
59964
59965         * modules/error (Makefile.am): Distribute files in /lib.
59966         * modules/obstack (Makefile.am): Likewise.
59967
59968 2006-10-12  Bruno Haible  <bruno@clisp.org>
59969
59970         * modules/acl (Makefile.am): Distribute all files in lib/ through
59971         EXTRA_DIST.
59972         * modules/arcfour (Makefile.am): Likewise.
59973         * modules/arctwo (Makefile.am): Likewise.
59974         * modules/argmatch (Makefile.am): Likewise.
59975         * modules/argz (Makefile.am): Likewise.
59976         * modules/atexit (Makefile.am): Likewise.
59977         * modules/backupfile (Makefile.am): Likewise.
59978         * modules/c-strtod (Makefile.am): Likewise.
59979         * modules/c-strtold (Makefile.am): Likewise.
59980         * modules/calloc (Makefile.am): Likewise.
59981         * modules/canon-host (Makefile.am): Likewise.
59982         * modules/canonicalize (Makefile.am): Likewise.
59983         * modules/chdir-long (Makefile.am): Likewise.
59984         * modules/chdir-safer (Makefile.am): Likewise.
59985         * modules/check-version (Makefile.am): Likewise.
59986         * modules/chown (Makefile.am): Likewise.
59987         * modules/cloexec (Makefile.am): Likewise.
59988         * modules/close-stream (Makefile.am): Likewise.
59989         * modules/closeout (Makefile.am): Likewise.
59990         * modules/crc (Makefile.am): Likewise.
59991         * modules/cycle-check (Makefile.am): Likewise.
59992         * modules/des (Makefile.am): Likewise.
59993         * modules/dirfd (Makefile.am): Likewise.
59994         * modules/dirname (Makefile.am): Likewise.
59995         * modules/dup2 (Makefile.am): Likewise.
59996         * modules/euidaccess (Makefile.am): Likewise.
59997         * modules/exclude (Makefile.am): Likewise.
59998         * modules/exitfail (Makefile.am): Likewise.
59999         * modules/fcntl-safer (Makefile.am): Likewise.
60000         * modules/file-type (Makefile.am): Likewise.
60001         * modules/fileblocks (Makefile.am): Likewise.
60002         * modules/filemode (Makefile.am): Likewise.
60003         * modules/filenamecat (Makefile.am): Likewise.
60004         * modules/fnmatch (Makefile.am): Likewise.
60005         * modules/fopen-safer (Makefile.am): Likewise.
60006         * modules/fpending (Makefile.am): Likewise.
60007         * modules/fprintftime (Makefile.am): Likewise.
60008         * modules/free (Makefile.am): Likewise.
60009         * modules/fsusage (Makefile.am): Likewise.
60010         * modules/ftruncate (Makefile.am): Likewise.
60011         * modules/fts (Makefile.am): Likewise.
60012         * modules/gc (Makefile.am): Likewise.
60013         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60014         * modules/getaddrinfo (Makefile.am): Likewise.
60015         * modules/getcwd (Makefile.am): Likewise.
60016         * modules/getdelim (Makefile.am): Likewise.
60017         * modules/getdomainname (Makefile.am): Likewise.
60018         * modules/getgroups (Makefile.am): Likewise.
60019         * modules/gethostname (Makefile.am): Likewise.
60020         * modules/gethrxtime (Makefile.am): Likewise.
60021         * modules/getline (Makefile.am): Likewise.
60022         * modules/getloadavg (Makefile.am): Likewise.
60023         * modules/getlogin_r (Makefile.am): Likewise.
60024         * modules/getopt (Makefile.am): Likewise.
60025         * modules/getpass (Makefile.am): Likewise.
60026         * modules/getpass-gnu (Makefile.am): Likewise.
60027         * modules/getsubopt (Makefile.am): Likewise.
60028         * modules/gettime (Makefile.am): Likewise.
60029         * modules/gettimeofday (Makefile.am): Likewise.
60030         * modules/getugroups (Makefile.am): Likewise.
60031         * modules/getusershell (Makefile.am): Likewise.
60032         * modules/glob (Makefile.am): Likewise.
60033         * modules/group-member (Makefile.am): Likewise.
60034         * modules/hard-locale (Makefile.am): Likewise.
60035         * modules/hash (Makefile.am): Likewise.
60036         * modules/hmac-md5 (Makefile.am): Likewise.
60037         * modules/hmac-sha1 (Makefile.am): Likewise.
60038         * modules/human (Makefile.am): Likewise.
60039         * modules/idcache (Makefile.am): Likewise.
60040         * modules/imaxabs (Makefile.am): Likewise.
60041         * modules/imaxdiv (Makefile.am): Likewise.
60042         * modules/inet_ntop (Makefile.am): Likewise.
60043         * modules/inet_pton (Makefile.am): Likewise.
60044         * modules/inttostr (Makefile.am): Likewise.
60045         * modules/isapipe (Makefile.am): Likewise.
60046         * modules/lchown (Makefile.am): Likewise.
60047         * modules/long-options (Makefile.am): Likewise.
60048         * modules/lstat (Makefile.am): Likewise.
60049         * modules/malloc (Makefile.am): Likewise.
60050         * modules/mathl (Makefile.am): Likewise.
60051         * modules/mbchar (Makefile.am): Likewise.
60052         * modules/md2 (Makefile.am): Likewise.
60053         * modules/md4 (Makefile.am): Likewise.
60054         * modules/md5 (Makefile.am): Likewise.
60055         * modules/memcasecmp (Makefile.am): Likewise.
60056         * modules/memchr (Makefile.am): Likewise.
60057         * modules/memcmp (Makefile.am): Likewise.
60058         * modules/memcoll (Makefile.am): Likewise.
60059         * modules/memcpy (Makefile.am): Likewise.
60060         * modules/memmem (Makefile.am): Likewise.
60061         * modules/memmove (Makefile.am): Likewise.
60062         * modules/mempcpy (Makefile.am): Likewise.
60063         * modules/memrchr (Makefile.am): Likewise.
60064         * modules/memset (Makefile.am): Likewise.
60065         * modules/memxor (Makefile.am): Likewise.
60066         * modules/mkancesdirs (Makefile.am): Likewise.
60067         * modules/mkdir (Makefile.am): Likewise.
60068         * modules/mkdir-p (Makefile.am): Likewise.
60069         * modules/mkdtemp (Makefile.am): Likewise.
60070         * modules/mkstemp (Makefile.am): Likewise.
60071         * modules/mktime (Makefile.am): Likewise.
60072         * modules/modechange (Makefile.am): Likewise.
60073         * modules/mountlist (Makefile.am): Likewise.
60074         * modules/nanosleep (Makefile.am): Likewise.
60075         * modules/openat (Makefile.am): Likewise.
60076         * modules/pagealign_alloc (Makefile.am): Likewise.
60077         * modules/physmem (Makefile.am): Likewise.
60078         * modules/poll (Makefile.am): Likewise.
60079         * modules/posixtm (Makefile.am): Likewise.
60080         * modules/posixver (Makefile.am): Likewise.
60081         * modules/putenv (Makefile.am): Likewise.
60082         * modules/quote (Makefile.am): Likewise.
60083         * modules/quotearg (Makefile.am): Likewise.
60084         * modules/raise (Makefile.am): Likewise.
60085         * modules/read-file (Makefile.am): Likewise.
60086         * modules/readline (Makefile.am): Likewise.
60087         * modules/readlink (Makefile.am): Likewise.
60088         * modules/readtokens (Makefile.am): Likewise.
60089         * modules/readutmp (Makefile.am): Likewise.
60090         * modules/realloc (Makefile.am): Likewise.
60091         * modules/regex (Makefile.am): Likewise.
60092         * modules/rename (Makefile.am): Likewise.
60093         * modules/rename-dest-slash (Makefile.am): Likewise.
60094         * modules/rijndael (Makefile.am): Likewise.
60095         * modules/rmdir (Makefile.am): Likewise.
60096         * modules/rpmatch (Makefile.am): Likewise.
60097         * modules/safe-read (Makefile.am): Likewise.
60098         * modules/safe-write (Makefile.am): Likewise.
60099         * modules/same (Makefile.am): Likewise.
60100         * modules/save-cwd (Makefile.am): Likewise.
60101         * modules/savedir (Makefile.am): Likewise.
60102         * modules/setenv (Makefile.am): Likewise.
60103         * modules/settime (Makefile.am): Likewise.
60104         * modules/sha1 (Makefile.am): Likewise.
60105         * modules/sig2str (Makefile.am): Likewise.
60106         * modules/snprintf (Makefile.am): Likewise.
60107         * modules/stdlib-safer (Makefile.am): Likewise.
60108         * modules/stpcpy (Makefile.am): Likewise.
60109         * modules/stpncpy (Makefile.am): Likewise.
60110         * modules/strcase (Makefile.am): Likewise.
60111         * modules/strcasestr (Makefile.am): Likewise.
60112         * modules/strchrnul (Makefile.am): Likewise.
60113         * modules/strcspn (Makefile.am): Likewise.
60114         * modules/strdup (Makefile.am): Likewise.
60115         * modules/strerror (Makefile.am): Likewise.
60116         * modules/strftime (Makefile.am): Likewise.
60117         * modules/strndup (Makefile.am): Likewise.
60118         * modules/strnlen (Makefile.am): Likewise.
60119         * modules/strpbrk (Makefile.am): Likewise.
60120         * modules/strsep (Makefile.am): Likewise.
60121         * modules/strstr (Makefile.am): Likewise.
60122         * modules/strtod (Makefile.am): Likewise.
60123         * modules/strtoimax (Makefile.am): Likewise.
60124         * modules/strtok_r (Makefile.am): Likewise.
60125         * modules/strtol (Makefile.am): Likewise.
60126         * modules/strtoll (Makefile.am): Likewise.
60127         * modules/strtoul (Makefile.am): Likewise.
60128         * modules/strtoull (Makefile.am): Likewise.
60129         * modules/strtoumax (Makefile.am): Likewise.
60130         * modules/strverscmp (Makefile.am): Likewise.
60131         * modules/time_r (Makefile.am): Likewise.
60132         * modules/timegm (Makefile.am): Likewise.
60133         * modules/tmpfile-safer (Makefile.am): Likewise.
60134         * modules/unistd-safer (Makefile.am): Likewise.
60135         * modules/unlinkdir (Makefile.am): Likewise.
60136         * modules/userspec (Makefile.am): Likewise.
60137         * modules/utime (Makefile.am): Likewise.
60138         * modules/utimecmp (Makefile.am): Likewise.
60139         * modules/utimens (Makefile.am): Likewise.
60140         * modules/vasnprintf (Makefile.am): Likewise.
60141         * modules/vasprintf (Makefile.am): Likewise.
60142         * modules/vsnprintf (Makefile.am): Likewise.
60143         * modules/xalloc (Makefile.am): Likewise.
60144         * modules/xgetcwd (Makefile.am): Likewise.
60145         * modules/xnanosleep (Makefile.am): Likewise.
60146         * modules/xreadlink (Makefile.am): Likewise.
60147         * modules/xstrtod (Makefile.am): Likewise.
60148         * modules/xstrtol (Makefile.am): Likewise.
60149         * modules/xstrtold (Makefile.am): Likewise.
60150         * modules/yesno (Makefile.am): Likewise.
60151
60152 2006-10-12  Jim Meyering  <jim@meyering.net>
60153
60154         * m4/getloadavg.m4: Revert the change below.
60155
60156         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
60157         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
60158         fail with a symlink, which is what coreutils' ./bootstrap now
60159         creates by default.
60160
60161 2006-10-12  Bruno Haible  <bruno@clisp.org>
60162
60163         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
60164         mingw.
60165         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
60166         MSVC and mingw explicitly.
60167
60168 2006-10-11  Simon Josefsson  <jas@extundo.com>
60169             Bruno Haible  <bruno@clisp.org>
60170
60171         Add support for multiple gnulib-tool invocations in the scope of a
60172         single configure.ac file.
60173         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
60174         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
60175         with the same contents as the _LIBADD variable.
60176         (func_emit_initmacro_start, func_emit_initmacro_end,
60177         func_emit_initmacro_done): New functions.
60178         (func_import, func_create_testdir): Invoke them. Allow the identifiers
60179         gl_LIBOBJS and gl_LTLIBOBJS.
60180
60181 2006-10-11  Bruno Haible  <bruno@clisp.org>
60182
60183         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
60184         (func_create_testdir): Don't create po/Makefile.am, don't invoke
60185         autoreconf. Instead, invoke autopoint explicitly but move back the
60186         *.m4 files from gnulib.
60187
60188 2006-10-11  Bruno Haible  <bruno@clisp.org>
60189
60190         * gnulib-tool (func_usage): Make module names after --create-testdir
60191         optional.
60192         (func_create_testdir): If no module was specified, use nearly all
60193         modules.
60194
60195 2006-10-12  Jim Meyering  <jim@meyering.net>
60196
60197         Big performance improvement for fts-based tools that use FTS_NOSTAT.
60198         Avoid spurious inode-mismatch problems on non-POSIX file systems.
60199         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
60200         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
60201         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
60202         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
60203         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
60204         (fts_set_stat_required): New function.
60205         (fts_open): Defer the calls to fts_stat, if possible or requested.
60206         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
60207         into fts_stat itself.
60208         (fts_read): Perform any required (deferred) fts_stat call.
60209         (fts_build): Likewise, for the directory we're about to open and read.
60210         In the readdir loop, carefully decide whether each entry will require
60211         an eventual call to fts_stat, using dirent.d_type info if available.
60212         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
60213         a command line argument into this function.  Update all callers.
60214         Map a return value of FTS_DOT to FTS_D for a command line argument.
60215         * modules/fts (Depends-on): Add d-type.  Alphabetize.
60216         Thanks to Miklos Szeredi for his tenacity and for the initial
60217         bug report about "find" failing on a FUSE-based file system.
60218
60219         * lib/fts.c (fts_open): Use consistent indentation.
60220
60221 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60222
60223         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
60224         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
60225         reported by Jim Meyering.  All uses of cache variables renamed
60226         to match Autoconf's.
60227         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
60228         the other one.
60229
60230         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60231         Fix misspelling in diagnostic.
60232
60233 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60234
60235         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
60236         defined.  Problem reported by Matthew Woehlke.
60237
60238         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
60239         Add support for Tandem NonStop R series.
60240         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
60241         Use new macro.
60242
60243         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
60244         (has_trailing_slash): Omit size arg; all callers changed.
60245         Omit 'inline', since it doesn't help performance and we'd
60246         need to configure it.
60247         Don't count //, ///, etc. as having a trailing slash.
60248         As a side effect, this removes a C99ism reported by Matthew Woehlke.
60249         (rpl_rename_dest_slash): On failure, use rename's errno rather
60250         than (in some cases) an incorrect or junk errno.
60251         Simplify code by removing need to compute length; this does
60252         cause it to make two passes instead of one over the file name,
60253         but it's worth it.
60254
60255         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
60256         change, since Autoconf's version may no longer be appropriate now
60257         that we are using CVS Autoconf's version.  Add support for Tandem.
60258
60259 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60260             Bruno Haible  <bruno@clisp.org>
60261
60262         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
60263         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
60264         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
60265         gl_AC_TYPE_LONG_LONG.
60266
60267         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
60268         instead of HAVE_LONG_LONG.
60269         * lib/printf-args.c (printf_fetchargs): Likewise.
60270         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60271         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60272         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
60273         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
60274         gl_AC_TYPE_LONG_LONG.
60275
60276 2006-10-11  Bruno Haible  <bruno@clisp.org>
60277
60278         * m4/longlong.m4: Add comments.
60279         * m4/ulonglong.m4: Likewise.
60280
60281 2006-10-10  Bruno Haible  <bruno@clisp.org>
60282
60283         Make it possible to #define stpcpy, strdup to aliases.
60284         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
60285         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
60286
60287 2006-10-10  Bruno Haible  <bruno@clisp.org>
60288
60289         Make it possible to #define gcd to an alias.
60290         * lib/gcd.c: Include config.h.
60291
60292 2006-10-10  Bruno Haible  <bruno@clisp.org>
60293
60294         Make it possible to #define c_isascii to an alias.
60295         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
60296         defined. Undefine the macros before defining them, to avoid gcc
60297         warnings.
60298         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
60299         define NO_C_CTYPE_MACROS early.
60300
60301 2006-10-10  Bruno Haible  <bruno@clisp.org>
60302
60303         Make it possible to #define set_program_name to an alias.
60304         * lib/progname.c: Don't undefine set_program_name; instead, undefine
60305         ENABLE_RELOCATABLE early.
60306
60307 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60308
60309         Port to Tandem NSK OSS, which has 64-bit signed int but at most
60310         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
60311         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
60312         More generally, don't assume that 64-bit signed int is available
60313         if unsigned int is, and vice versa.
60314         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
60315         unsigned symbols, not on their signed counterparts.
60316         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
60317         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
60318         (UINT64_C, UINTMAX_C):
60319         Likewise.
60320         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
60321         unsigned counterparts.
60322         (Have_long_long, Unsigned): New macros.
60323         (Int): Renamed from INT.
60324         (strtoimax): Use the new macros.
60325         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
60326         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
60327         * modules/inttypes (inttypes.h): Substitute
60328         HAVE_UNSIGNED_LONG_LONG_INT.
60329         * modules/stdint (stdint.h): Likewise.
60330         (Files): Add m4/ulonglong.m4.
60331
60332 2006-10-10  Bruno Haible  <bruno@clisp.org>
60333
60334         Fix a gcc -Wshadow warning.
60335         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60336         to 'bucket'.
60337         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60338         gl_linked_indexof_from_to): Likewise.
60339         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60340         Likewise.
60341         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60342         Likewise.
60343         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60344         Reported by Eric Blake.
60345
60346 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60347
60348         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60349         for NetBSD.  Problem reported by Bruno Haible.
60350
60351 2006-10-09  Jim Meyering  <jim@meyering.net>
60352
60353         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60354         Patch from Bruno Haible.
60355
60356 2006-10-09  Jim Meyering  <jim@meyering.net>
60357
60358         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60359         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60360         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60361
60362 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60363
60364         Don't include <config.h> twice; this doesn't work in some cases,
60365         e.g., when config.h has "#define intmax_t long long int" and
60366         we include <config.h>, <inttypes.h>, <config.h> in that order.
60367         Problem reported by Matthew Woehlke in:
60368         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60369         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60370         * lib/fts-cycle.c: Don't include config.h.
60371         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60372         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60373         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60374         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60375         inttypes.h.
60376         * lib/xstrtoumax.c: Likewise.
60377         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60378         __strtol and the like, so that this module is more like its siblings.
60379         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60380         Remove; no longer needed now that we assume gnulib inttypes.h.
60381
60382 2006-10-08  Bruno Haible  <bruno@clisp.org>
60383
60384         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60385         option.
60386
60387 2006-10-07  Jim Meyering  <jim@meyering.net>
60388
60389         * modules/inttypes (inttypes.h): Revert what seems to have been
60390         an inadvertent part of today's change: use "|", not "/" in the
60391         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60392
60393 2006-10-07  Bruno Haible  <bruno@clisp.org>
60394
60395         * modules/sublist: New file.
60396
60397 2006-10-07  Bruno Haible  <bruno@clisp.org>
60398
60399         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60400         * modules/argz (argz.h): Likewise.
60401         * modules/arpa_inet (arpa/inet.h): Likewise.
60402         * modules/byteswap (byteswap.h): Likewise.
60403         * modules/configmake (configmake.h): Likewise.
60404         * modules/fcntl (fcntl.h): Likewise.
60405         * modules/fnmatch (fnmatch.h): Likewise.
60406         * modules/getopt (getopt.h): Likewise.
60407         * modules/glob (glob.h): Likewise.
60408         * modules/inttypes (inttypes.h): Likewise.
60409         * modules/netinet_in (netinet/in.h): Likewise.
60410         * modules/poll (poll.h): Likewise.
60411         * modules/stdbool (stdbool.h): Likewise.
60412         * modules/stdint (stdint.h): Likewise.
60413         * modules/sys_select (sys/select.h): Likewise.
60414         * modules/sys_socket (sys/socket.h): Likewise.
60415         * modules/sys_stat (sys/stat.h): Likewise.
60416         * modules/sysexits (sysexits.h): Likewise.
60417         * modules/unistd (unistd.h): Likewise.
60418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60419         Add a "DO NOT EDIT" comment to the generated file.
60420         (func_import): Likewise for gnulib-comp.m4.
60421
60422 2006-10-07  Bruno Haible  <bruno@clisp.org>
60423
60424         * lib/gl_sublist.h: New file.
60425         * lib/gl_sublist.c: New file.
60426
60427 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60428
60429         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60430         name (relative to the original working directory) and the file
60431         name component (relative to the temporary working directory).  All
60432         callers changed.
60433         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60434         * lib/mkdir-p.c (make_dir_parents): Likewise.
60435         * lib/mkdir-p.h (make_dir_parents): Likewise.
60436
60437 2006-10-06  Eric Blake  <ebb9@byu.net>
60438
60439         Define several macros for use by the clean-temp module.
60440         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60441         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60442         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60443
60444         * lib/clean-temp.h (close_stream_temp): New declaration.
60445         * lib/clean-temp.c (includes): Pull in headers according to what
60446         other modules are in use.
60447         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60448
60449 2006-10-06  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60452         instead of fopen, fwriteerror.
60453
60454 2006-10-06  Bruno Haible  <bruno@clisp.org>
60455
60456         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60457         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60458         int.
60459         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60460         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60461         Return an error indicator.
60462         Suggested by Eric Blake.
60463
60464 2006-10-06  Bruno Haible  <bruno@clisp.org>
60465
60466         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60467         Reported by Eric Blake.
60468
60469 2006-10-06  Bruno Haible  <bruno@clisp.org>
60470
60471         * modules/closeout (Description): Mention stderr too.
60472
60473 2006-10-06  Bruno Haible  <bruno@clisp.org>
60474         and Paul Eggert  <eggert@cs.ucla.edu>
60475
60476         * lib/closeout.c (close_stdout): Also close stderr.
60477         * lib/closeout.h: Update comment.
60478
60479 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60480
60481         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60482         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60483         * lib/dirchownmod.c: Include lchown.h.
60484         * lib/lchown.c: Don't include files that lchown.h now includes.
60485         Don't declare chown, since lchown.h now does that.
60486         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60487         (lchown): Define to rpl_chown if lchown is declared but
60488         does not exist.  Declare using a prototype if lchown is not
60489         declared.  Add a copyright notice.
60490         * lib/mkstemp.h: Include <unistd.h>.
60491         * lib/openat.c: Include lchown.h.
60492
60493         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60494         we now test for that separately.
60495         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60496         rather than O_NOFOLLOW, when testing whether it's possible to
60497         avoid a race condition reliably.
60498         * lib/savewd.c (savewd_chdir): Likewise.
60499
60500         Remove macros that are no longer needed now that stdint.h is
60501         reliable.
60502         * lib/fsusage.c (UINTMAX_MAX): Remove.
60503         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60504         * lib/utimecmp.c (SIZE_MAX): Remove.
60505
60506         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60507
60508         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60509         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60510         O_NOATIME works.
60511
60512 2006-10-05  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/gl_list.h (gl_sortedlist_search_from_to,
60515         gl_sortedlist_indexof_from_to): New declarations.
60516         (gl_list_implementation): New fields sortedlist_search_from_to,
60517         sortedlist_indexof_from_to.
60518         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60519         inline functions.
60520         * lib/gl_list.c (gl_sortedlist_search_from_to,
60521         gl_sortedlist_indexof_from_to): New functions.
60522         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60523         function.
60524         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60525         (gl_array_sortedlist_search_from_to): New function.
60526         (gl_array_list_implementation): Update.
60527         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60528         function.
60529         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60530         (gl_carray_sortedlist_search_from_to): New function.
60531         (gl_carray_list_implementation): Update.
60532         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60533         gl_linked_sortedlist_indexof_from_to): New functions.
60534         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60535         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60536         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60537         gl_tree_sortedlist_indexof_from_to): New functions.
60538         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60539         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60540         Update.
60541         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60542         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60543         Update.
60544
60545 2006-10-05  Bruno Haible  <bruno@clisp.org>
60546
60547         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60548         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60549         (struct gl_list_implementation): Add fields search_from_to,
60550         indexof_from_to. Remove fields search, indexof.
60551         (gl_list_search): Use the search_from_to method.
60552         (gl_list_search_from, gl_list_search_from_to): New functions.
60553         (gl_list_indexof): Use the indexof_from_to method.
60554         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60555         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60556         (gl_list_search_from, gl_list_search_from_to): New functions.
60557         (gl_list_indexof): Use the indexof_from_to method.
60558         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60559         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60560         gl_array_indexof. Add start_index, end_index arguments.
60561         (gl_array_search_from_to): Renamed from gl_array_search. Add
60562         start_index, end_index arguments.
60563         (gl_array_remove, gl_array_list_implementation): Update.
60564         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60565         gl_carray_indexof. Add start_index, end_index arguments.
60566         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60567         start_index, end_index arguments.
60568         (gl_carray_remove, gl_carray_list_implementation): Update.
60569         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60570         gl_linked_search. Add start_index, end_index arguments.
60571         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60572         start_index, end_index arguments.
60573         (gl_linked_remove): Update.
60574         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60575         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60576         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60577         field to 'size_t'.
60578         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60579         gl_tree_search. Add start_index, end_index arguments.
60580         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60581         start_index, end_index arguments.
60582         (gl_tree_remove): Update.
60583         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60584         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60585         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60586         function.
60587         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60588         gl_tree_search. Add start_index, end_index arguments.
60589         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60590         start_index, end_index arguments.
60591         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60592         Update.
60593         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60594
60595 2006-10-05  Bruno Haible  <bruno@clisp.org>
60596
60597         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60598
60599         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60600         fwriteerror_temp): New declarations.
60601         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60602         (descriptors): New variable.
60603         (cleanup): First, close the descriptors.
60604         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60605         fclose_temp, fwriteerror_temp): New functions.
60606
60607 2006-10-04  Jim Meyering  <jim@meyering.net>
60608
60609         * lib/fts.c (fts_open): Tiny comment change.
60610
60611 2006-10-04  Bruno Haible  <bruno@clisp.org>
60612
60613         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60614         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60615         gl_LOCK_BODY.
60616         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60617         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60618         gl_LOCK_EARLY_BODY.
60619         (gl_LOCK): Require gl_LOCK_BODY.
60620
60621 2006-10-04  Bruno Haible  <bruno@clisp.org>
60622
60623         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60624         (gl_oset_search_atleast): New declaration.
60625         (struct gl_oset_implementation): Add field 'search_atleast'.
60626         (gl_oset_search_atleast): New inline function.
60627         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60628         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60629         (gl_array_oset_implementation): Update.
60630         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60631         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60632         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60633
60634 2006-10-04  Bruno Haible  <bruno@clisp.org>
60635
60636         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60637
60638 2006-10-03  Bruno Haible  <bruno@clisp.org>
60639
60640         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60641         from gl_avltreehash_list_implementation.
60642
60643 2006-10-03  Bruno Haible  <bruno@clisp.org>
60644
60645         * lib/gl_oset.c (gl_oset_add): Fix return type.
60646
60647 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60648
60649         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60650
60651 2006-10-02  Eric Blake  <ebb9@byu.net>
60652
60653         * modules/strnlen (Depends-on): Add extensions.
60654
60655 2006-10-02  Eric Blake  <ebb9@byu.net>
60656
60657         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60658         definition in 2.60+.
60659
60660 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60661
60662         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60663         checks.
60664
60665 2006-10-02  Bruno Haible  <bruno@clisp.org>
60666
60667         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60668         to the AUTOMAKE_OPTIONS.
60669         Reported by Jim Meyering.
60670
60671 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60672
60673         Work around bug in Solaris 10 /proc file system:
60674         /proc/self/fd/NNN/.. isn't the parent directory of
60675         the directory whose file descriptor is NNN.  This needs to
60676         be worked around at run time, not compile time, since a
60677         program might be built on Solaris 8, where things work, and
60678         run on Solaris 10.
60679         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60680         to use the following interface instead:
60681         (OPENAT_BUFFER_SIZE): New macro.
60682         (openat_proc_name): New function.
60683         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60684         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60685         Likewise.
60686         * lib/openat-proc.c: New file.
60687         * modules/openat (Files): Add lib/openat-proc.c.
60688         (Depends-on): Add same-inode, stdbool.
60689         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60690
60691 2006-09-29  Bruno Haible  <bruno@clisp.org>
60692
60693         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60694         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60695         argument. Set stdout_closed before testing for ferror, not after.
60696         (fwriteerror, fwriteerror_no_ebadf): New functions.
60697
60698 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60699
60700         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60701
60702 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60703
60704         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60705         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60706
60707 2006-09-28  Jim Meyering  <jim@meyering.net>
60708
60709         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60710         Include <unistd.h>.
60711
60712 2006-09-28  Bruno Haible  <bruno@clisp.org>
60713
60714         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60715         * modules/linkedhash-list (Depends-on): Likewise.
60716         * modules/rbtreehash-list (Depends-on): Likewise.
60717
60718 2006-09-28  Bruno Haible  <bruno@clisp.org>
60719
60720         * lib/strndup.h: Simplify the redefinition of strndup.
60721         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60722         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60723
60724 2006-09-28  Bruno Haible  <bruno@clisp.org>
60725
60726         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60727         * lib/gl_linkedhash_list.c: Likewise.
60728         * lib/gl_rbtreehash_list.c: Likewise.
60729
60730 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60731
60732         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60733         getaddrinfo.
60734
60735         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60736         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60737         it causes <stdio_ext.h> to cause a compile-time error.
60738         Problem reported by Nelson H. F. Beebe.
60739         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60740         of HAVE_DECL___PENDING.
60741
60742         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60743         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60744         declaration.
60745
60746 2006-09-27  Jim Meyering  <jim@meyering.net>
60747
60748         This file could end up with a definition for a function
60749         named __strndup, rather than rpl_strndup on a system with
60750         incomplete weak_alias support.
60751         * lib/strndup.c (strndup): Rename from __strndup.
60752         Remove #defines that used to map __strndup to strndup.
60753         Don't use K&R prototypes.
60754         Remove LIBC-related code, since this file is not sync'd with glibc.
60755         * lib/strndup.h: Revamp, accordingly.
60756         * m4/strndup.m4: Modernize.
60757
60758 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60759
60760         * modules/savewd (Depends-on): Add 'raise'.
60761         * lib/savewd.c: Include <signal.h>, for 'raise'.
60762
60763 2006-09-26  Jim Meyering  <jim@meyering.net>
60764
60765         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60766         when we detect Darwin 8.7.0's acl_get_file bug.
60767         Rearrange to perform the new (below) run-test while $LIBS
60768         contains any acl-related library.  Set USE_ACL at the end.
60769         (gl_ACL_GET_FILE): New function.
60770
60771 2006-09-26  Eric Blake  <ebb9@byu.net>
60772
60773         * lib/verror.c: Include <config.h> unconditionally.
60774
60775 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60776
60777         * modules/clock-time (Maintainer): Add self.
60778         * modules/getlogin_r (Depends-on): Add extensions.
60779
60780 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60781
60782         * modules/clock-time: New module.
60783         * modules/nanosleep (Depends-on): Add clock-time.
60784         * modules/gethrxtime (Depends-on): Likewise.
60785         * modules/gettime (Depends-on): Likewise.
60786         * modules/settime (Depends-on): Likewise.
60787
60788         * modules/fts-lgpl: Depend on openat.
60789         * modules/mkancesdirs: Depend on savewd.
60790         * modules/mkdir-p: Likewise.
60791
60792 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60793
60794         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60795
60796         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60797         `gl_have_arbitrary_file_name_length_limit' to
60798         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60799         actually works between configure runs.
60800
60801 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60802             Bruno Haible  <bruno@clisp.org>
60803
60804         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60805
60806 2006-09-25  Jim Meyering  <jim@meyering.net>
60807
60808         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60809         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60810
60811 2006-09-25  Eric Blake  <ebb9@byu.net>
60812
60813         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60814         exec's in 2006-09-18 patch when shuffling fds.
60815
60816 2006-09-25  Bruno Haible  <bruno@clisp.org>
60817
60818         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60819         Reported by Jim Meyering.
60820
60821 2006-09-24  Jim Meyering  <jim@meyering.net>
60822
60823         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60824         compare a pointer against a literal "0".  That caused failures with
60825         at least HP-UX's hpcc.
60826
60827 2006-09-22  Simon Josefsson  <jas@extundo.com>
60828
60829         * modules/gc-sha1:
60830         * modules/gc-md4:
60831         * modules/gc-hmac-sha1:
60832         * modules/gc-hmac-md5:
60833         * modules/gc-des:
60834         * modules/gc-arcfour: Distribute more files.
60835
60836 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60837
60838         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60839         (gl_linked_iterator_from_to): Initialize struct completely.
60840         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60841         (gl_tree_iterator_from_to): Likewise
60842         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60843         * lib/gl_array_list.c [lint] (gl_array_iterator)
60844         (gl_array_iterator_from_to): Likewise.
60845         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60846         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60847         (gl_carray_iterator_from_to): Likewise.
60848
60849         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60850         * lib/md4.c (md4_process_block): Remove unused variable.
60851         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60852         parentheses for clarity.
60853
60854 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60855
60856         * modules/bison-i18n (Depends-on): Add gettext.
60857
60858 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60859
60860         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60861         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60862         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60863         also add missing comma that caused broken test.
60864         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60865         stdlib.h, for `abort'.
60866         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60867         variables.
60868         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60869         include unistd.h if present, for `rmdir'.
60870         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60871         variables.
60872         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60873         in the process include standard headers for prototypes.
60874         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60875         gets declared on GNU/Linux.
60876         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60877         unistd.h, for `rmdir'.
60878         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60879
60880         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60881         always true.
60882         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60883
60884         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60885
60886 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60887
60888         * gnulib-tool (func_version): Create output all at once.  This
60889         may help avoid triggering unnecessary SIGPIPEs, and at any
60890         rate it doesn't hurt.
60891
60892 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60893             Bruno Haible  <bruno@clisp.org>
60894
60895         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60896         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60897         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60898
60899         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60900         (gl_FUNC_VASPRINTF): Invoke it.
60901
60902 2006-09-22  Bruno Haible  <bruno@clisp.org>
60903
60904         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60905         getloadavg.c as first argument.
60906
60907 2006-09-22  Bruno Haible  <bruno@clisp.org>
60908
60909         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60910         at the beginning of the gl_INIT macro.
60911         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60912         gl_GETLOADAVG.
60913
60914 2006-09-22  Bruno Haible  <bruno@clisp.org>
60915
60916         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60917         module.
60918         Suggested by Ralf Wildenhues.
60919
60920 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60921
60922         Import this patch from libc:
60923
60924         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60925
60926         * lib/regex_internal.c (re_string_reconstruct): Handle
60927         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60928         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60929         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60930         re_string_context_at.
60931
60932         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60933         now requires it.
60934         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60935         gl_REGEX now does it for us.
60936         (gl_REGEX): Add test taken from
60937         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60938
60939         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60940         Check that large offsets work.  Modernize Autoconf usages.
60941         Prefer "yes" to mean a good thing rather than a bad.
60942         Don't put "#define mkstemp" in config.h, as this might interfere
60943         with standard system headers that "#define mkstemp mkstemp64".
60944
60945         * modules/mkstemp (Depends-on): Add extensions, so that
60946         mkstemp is visible on some platforms.
60947         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60948         (Include): Change to "mkstemp.h" from <stdlib.h>.
60949         (Files): Add mkstemp.h.
60950
60951         * lib/mkstemp.h: New file, since some standard headers
60952         #define mkstemp.
60953         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60954         Include "mkstemp.h".
60955         Make the _LIBC code resemble glibc original more,
60956         e.g., use K&R style.
60957         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60958         (mkstemp): Remove, since mkstemp.h does this for us.
60959         * lib/stdlib--.h: Include mkstemp.h.
60960
60961         Import this patch from libc:
60962
60963         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60964
60965         * lib/tempname.c (__gen_tempname): Change attempts_min
60966         into a macro.  Use preprocessor to decide how to initialize
60967         attempts [Coverity CID 67].
60968
60969 2006-09-20  Bruno Haible  <bruno@clisp.org>
60970
60971         * lib/mkdtemp.c: Import from libc.
60972         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60973                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60974                 attempts_min into a macro.  Use preprocessor to decide how to
60975                 initialize attempts [Coverity CID 67].
60976         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60977                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60978                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60979
60980 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60981
60982         * gnulib-tool (func_exit): New function, to allow to pass the
60983         exit status portably through the trap.  Use everywhere.
60984         (--help, --version): Signal a write error.
60985         (trap): catch SIGPIPE, for write errors.
60986         Exit at the end of the trap, with the correct exit status.
60987
60988 2006-09-19  Karl Berry  <karl@gnu.org>
60989
60990         * doc/gnulib.texi: note about the license texinfo files.
60991
60992 2006-09-19  Eric Blake  <ebb9@byu.net>
60993
60994         * gnulib-tool: Avoid space-tab.
60995
60996 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60997
60998         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60999         that prevented coreutils 6.1 from building.  Problem reported
61000         by Petter Reinholdtsen.
61001
61002 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61003
61004         * gnulib-tool (avoidlist): Fix typo that broke options like
61005         --avoid=lock that are used by coreutils bootstrap.
61006
61007 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
61008
61009         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
61010         more systematically.
61011
61012 2006-09-18  Jim Meyering  <jim@meyering.net>
61013
61014         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
61015
61016 2006-09-18  Bruno Haible  <bruno@clisp.org>
61017
61018         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
61019
61020 2006-09-18  Bruno Haible  <bruno@clisp.org>
61021
61022         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
61023         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
61024         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
61025         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
61026         * m4/gettext.m4: Require autoconf >= 2.52.
61027         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
61028         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
61029         of gl_cv_header_inttypes_h.
61030
61031 2006-09-18  Bruno Haible  <bruno@clisp.org>
61032
61033         * lib/javaversion.c: Include configmake.h.
61034
61035 2006-09-18  Bruno Haible  <bruno@clisp.org>
61036
61037         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
61038         avoid that the while loops be executed in a subshell.
61039
61040 2006-09-18  Bruno Haible  <bruno@clisp.org>
61041
61042         * MODULES.html.sh (func_module): Break long lines.
61043         Suggested by Bruce Korb <bkorb@gnu.org>.
61044
61045 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61046
61047         Speed up by a factor of 1.12.
61048         * gnulib-tool (nl): New variable.
61049         (func_import): Rewrite include directive extraction to only read each
61050         directive once.
61051
61052 2006-09-17  Bruno Haible  <bruno@clisp.org>
61053
61054         * modules/javaversion (Makefile.am): Remove DEFS setting.
61055         (Depends-on): Add configmake, for PKGDATADIR definition.
61056
61057 2006-09-17  Bruno Haible  <bruno@clisp.org>
61058
61059         * gnulib-tool (func_create_testdir): Rewrite all files at once.
61060
61061 2006-09-17  Bruno Haible  <bruno@clisp.org>
61062
61063         * gnulib-tool (func_append): New function, stolen from libtool.m4.
61064         (func_modules_transitive_closure, func_modules_add_dummy,
61065         func_modules_to_filelist, func_import, func_create_testdir,
61066         func_create_megatestdir, ...): Use it wherever possible.
61067         Suggested by Ralf Wildenhues.
61068
61069 2006-09-16  Karl Berry  <karl@gnu.org>
61070
61071         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
61072         to avoid sectioning errors.
61073         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
61074         [ifinfo]: blank line after @center-ed titles.
61075         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
61076         Spell FSF address consistently with others.
61077         (These changes approved by rms.)
61078
61079 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61080
61081         Speed up by a factor of 1.61.
61082         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
61083         already checked module names again.
61084
61085 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61086
61087         Speed up by a factor of 1.13.
61088         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
61089         for new_files, and the input to func_add_or_update.
61090
61091 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61092
61093         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
61094         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
61095
61096 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         * modules/mkancesdirs (Depends-on): Add fcntl.
61099         * modules/savewd: New file.
61100         * MODULES.html.sh (File system functions): Add savewd.
61101
61102         * modules/configmake (Makefile.am): Add support for the
61103         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
61104
61105 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61106
61107         * m4/savewd.m4: New file.
61108
61109 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61110
61111         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
61112         (dirchownmod): New arg FD.  All callers changed.
61113         Use FD rather than opening the directory ourself, as opening is
61114         now the caller's responsibility.
61115         * lib/dirchownmod.h: Likewise.
61116         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
61117         hosts that require <sys/types.h> before <sys/stat.h>.  Include
61118         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
61119         (test_dir): Remove.
61120         (mkancesdirs): Return length of prefix of FILE that has already
61121         been made, or -2 if there is a child doing the work.  Redo
61122         algorithm so that it is O(N) rather than O(N**2).  Optimize away
61123         ".", and treat ".." specially since it might stray back into
61124         already-created areas.  Use a subprocess if necessary.  New arg
61125         WD; all users changed.  MAKE_DIR function should now return 1
61126         if it creates a directory that is not readable.  Return -2 if
61127         a child process is spun off.
61128         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
61129         Adjust signature to match code.
61130         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
61131         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
61132         all users changed.
61133         * lib/savewd.c, lib/savewd.h: New files.
61134
61135 2006-09-15  Jim Meyering  <jim@meyering.net>
61136
61137         * modules/rename-dest-slash: New module.
61138         * MODULES.html.sh (posix_compat): Add it here.
61139
61140         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
61141
61142 2006-09-15  Jim Meyering  <jim@meyering.net>
61143
61144         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
61145         file.
61146
61147         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
61148
61149 2006-09-15  Jim Meyering  <jim@meyering.net>
61150
61151         * lib/rename-dest-slash.c (has_trailing_slash): Use
61152         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
61153         (rpl_rename_dest_slash): Perform the cheaper trailing slash
61154         test before testing whether SRC is a directory.
61155         Suggestions from Bruno Haible.
61156
61157         Avoid a warning about an unused variable.
61158         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
61159         into the #ifdef block where it's used.
61160
61161         * lib/rename-dest-slash.c: New file.
61162
61163 2006-09-14  Bruno Haible  <bruno@clisp.org>
61164
61165         * lib/allocsa.c: Include <config.h> unconditionally.
61166         * lib/asnprintf.c: Likewise.
61167         * lib/asprintf.c: Likewise.
61168         * lib/c-strcasecmp.c: Likewise.
61169         * lib/c-strcasestr.c: Likewise.
61170         * lib/c-strncasecmp.c: Likewise.
61171         * lib/c-strstr.c: Likewise.
61172         * lib/classpath.c: Likewise.
61173         * lib/clean-temp.c: Likewise.
61174         * lib/concatpath.c: Likewise.
61175         * lib/copy-file.c: Likewise.
61176         * lib/csharpcomp.c: Likewise.
61177         * lib/csharpexec.c: Likewise.
61178         * lib/execute.c: Likewise.
61179         * lib/fatal-signal.c: Likewise.
61180         * lib/findprog.c: Likewise.
61181         * lib/fwriteerror.c: Likewise.
61182         * lib/gl_array_list.c: Likewise.
61183         * lib/gl_array_oset.c: Likewise.
61184         * lib/gl_avltree_list.c: Likewise.
61185         * lib/gl_avltree_oset.c: Likewise.
61186         * lib/gl_avltreehash_list.c: Likewise.
61187         * lib/gl_carray_list.c: Likewise.
61188         * lib/gl_linked_list.c: Likewise.
61189         * lib/gl_linkedhash_list.c: Likewise.
61190         * lib/gl_list.c: Likewise.
61191         * lib/gl_oset.c: Likewise.
61192         * lib/gl_rbtree_list.c: Likewise.
61193         * lib/gl_rbtree_oset.c: Likewise.
61194         * lib/gl_rbtreehash_list.c: Likewise.
61195         * lib/imaxabs.c: Likewise.
61196         * lib/imaxdiv.c: Likewise.
61197         * lib/javacomp.c: Likewise.
61198         * lib/javaexec.c: Likewise.
61199         * lib/javaversion.c: Likewise.
61200         * lib/linebreak.c: Likewise.
61201         * lib/localcharset.c: Likewise.
61202         * lib/lock.c: Likewise.
61203         * lib/mbchar.c: Likewise.
61204         * lib/mbswidth.c: Likewise.
61205         * lib/mkdtemp.c: Likewise.
61206         * lib/pipe.c: Likewise.
61207         * lib/printf-args.c: Likewise.
61208         * lib/printf-parse.c: Likewise.
61209         * lib/progname.c: Likewise.
61210         * lib/progreloc.c: Likewise.
61211         * lib/readlink.c: Likewise.
61212         * lib/sh-quote.c: Likewise.
61213         * lib/stpcpy.c: Likewise.
61214         * lib/stpncpy.c: Likewise.
61215         * lib/strcasecmp.c: Likewise.
61216         * lib/strcasestr.c: Likewise.
61217         * lib/strcspn.c: Likewise.
61218         * lib/striconv.c: Likewise.
61219         * lib/strncasecmp.c: Likewise.
61220         * lib/strnlen1.c: Likewise.
61221         * lib/strstr.c: Likewise.
61222         * lib/strtok_r.c: Likewise.
61223         * lib/tls.c: Likewise.
61224         * lib/tmpdir.c: Likewise.
61225         * lib/unicodeio.c: Likewise.
61226         * lib/unsetenv.c: Likewise.
61227         * lib/vasnprintf.c: Likewise.
61228         * lib/vasprintf.c: Likewise.
61229         * lib/wait-process.c: Likewise.
61230         * lib/xallocsa.c: Likewise.
61231         * lib/xsetenv.c: Likewise.
61232         * lib/xstriconv.c: Likewise.
61233
61234 2006-09-13  Simon Josefsson  <jas@extundo.com>
61235
61236         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
61237         that internally, suggested by Ralf Wildenhues
61238         <Ralf.Wildenhues@gmx.de>.
61239
61240 2006-09-13  Simon Josefsson  <jas@extundo.com>
61241
61242         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
61243         @LIBOBJS@.
61244         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61245
61246 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61247
61248         * lib/_fpending.c: Include <config.h> unconditionally, since we no
61249         longer worry about uses that don't define HAVE_CONFIG_H.
61250         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
61251         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
61252         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
61253         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
61254         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
61255         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
61256         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
61257         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
61258         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
61259         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
61260         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
61261         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
61262         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
61263         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
61264         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
61265         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
61266         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
61267         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
61268         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
61269         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
61270         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
61271         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
61272         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
61273         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
61274         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
61275         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
61276         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
61277         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
61278         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
61279         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
61280         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
61281         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
61282         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
61283         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
61284         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
61285         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
61286         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
61287         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
61288         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
61289         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
61290         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
61291         Likewise.
61292
61293 2006-09-13  Eric Blake  <ebb9@byu.net>
61294
61295         * lib/getopt.c: Fix typo in last commit.
61296
61297 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61298
61299         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
61300         dgettext.
61301
61302 2006-09-12  Jim Meyering  <jim@meyering.net>
61303
61304         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
61305         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
61306         Reported by Nelson H. F. Beebe.
61307
61308 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61309
61310         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
61311         program_invocation_name and program_invocation_short_name are
61312         initialized.
61313         * lib/argp-namefrob.h: Move declarations of program_invocation_name
61314         and program_invocation_short_name to argp.h, so they are visible
61315         to user programs.
61316         * lib/argp.h: Likewise
61317
61318 2006-09-10  Bruno Haible  <bruno@clisp.org>
61319
61320         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61321         m4/inttypes_h.m4, m4/uintmax_t.m4.
61322
61323 2006-09-10  Bruno Haible  <bruno@clisp.org>
61324
61325         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
61326         gl_AC_TYPE_UINTMAX_T.
61327
61328 2006-09-10  Bruno Haible  <bruno@clisp.org>
61329
61330         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61331
61332 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61333
61334         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61335         convention.  Text proposed by Bruno Haible.
61336         (struct argp_option): Document the use of N_() wrappers.
61337
61338         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61339         '\v', and translate the two parts separately, instead of feeding
61340         the whole string to gettext.  This allows to exclude
61341         '\v' from the strings visible to the translator by writing doc
61342         strings as N_("..") "\v" N_("..").
61343
61344 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61345
61346         * config/srclist.txt: Undo latest change; the bug was fixed.
61347
61348 2006-09-09  Bruno Haible  <bruno@clisp.org>
61349
61350         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61351         assignments if building a library without libtool.
61352         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61353         in func_emit_lib_Makefile_am.
61354         (func_import): When building a static library libfoo.a, arrange to
61355         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61356         (func_create_testdir): Likewise.
61357         * modules/gc (configure.ac, Makefile.am): If building statically,
61358         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61359         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61360         * modules/striconv (configure.ac, Makefile.am): Likewise.
61361         Based on a suggestion by Ralf Wildenhues.
61362
61363 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61364
61365         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61366         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61367         Also:
61368
61369         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61370         Add year_2050_test to catch glibc bug 2821
61371         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61372
61373         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61374         Prefer #ifdef to #if.
61375
61376         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61377         Return from 'main' instead of calling 'exit'.
61378
61379 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61382         returned the maximum time_t value rather than (time_t) -1.
61383         Problem originally reported by William Bardwell
61384         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61385
61386         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61387         Moved to here ...
61388         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61389         ... from here.
61390
61391 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61392
61393         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61394         2821 is fixed.
61395
61396 2006-09-08  Jim Meyering  <jim@meyering.net>
61397
61398         Don't make generated files read-only.  That would bother too many
61399         people.  However, do retain the ability to work when targets are
61400         read-only: remove the destination and temporary files before writing
61401         them (when generated via sed or echo), or by using the -f option for
61402         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61403         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61404         * modules/byteswap, modules/configmake, modules/fcntl:
61405         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61406         * modules/localcharset, modules/netinet_in, modules/poll:
61407         * modules/stdbool, modules/stdint, modules/sys_select:
61408         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61409
61410 2006-09-08  Jim Meyering  <jim@meyering.net>
61411
61412         Avoid new build failure on FreeBSD 6.0.
61413         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61414         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61415         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61416
61417 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61418
61419         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61420
61421 2006-09-07  Jim Meyering  <jim@meyering.net>
61422
61423         Fix global typo in last change: use chmod u-w, not chmod u-x.
61424         Spotted by Paul Eggert and Bruce Korb.
61425         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61426         * modules/byteswap, modules/configmake, modules/fcntl:
61427         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61428         * modules/localcharset, modules/netinet_in, modules/poll:
61429         * modules/stdbool, modules/stdint, modules/sys_select:
61430         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61431
61432 2006-09-06  Jim Meyering  <jim@meyering.net>
61433
61434         Make generated files be read-only.
61435         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61436         Ensure that each generated file is now read-only.
61437         * modules/argz: Likewise.
61438         * modules/arpa_inet: Likewise.
61439         * modules/byteswap: Likewise.
61440         * modules/configmake: Likewise.
61441         * modules/fcntl: Likewise.
61442         * modules/fnmatch: Likewise.
61443         * modules/getopt: Likewise.
61444         * modules/glob: Likewise.
61445         * modules/inttypes: Likewise.
61446         * modules/netinet_in: Likewise.
61447         * modules/poll: Likewise.
61448         * modules/stdbool: Likewise.
61449         * modules/stdint: Likewise.
61450         * modules/sys_select: Likewise.
61451         * modules/sys_socket: Likewise.
61452         * modules/sys_stat: Likewise.
61453         * modules/sysexits: Likewise.
61454         * modules/localcharset: Same as above, but continue using temporary
61455         file named "t-$@" (why different?) rather than the "$@-t" used
61456         everywhere else.
61457
61458         * modules/sysexits (Makefile.am): Replace literal occurrences
61459         of "sysexit.h" more readable, and more consistent, "$@".
61460
61461 2006-09-06  Bruno Haible  <bruno@clisp.org>
61462
61463         * modules/striconv: New file.
61464         * modules/xstriconv: New file.
61465         * MODULES.html.sh (Internationalization functions): Add striconv,
61466         xstriconv.
61467
61468 2006-09-06  Bruno Haible  <bruno@clisp.org>
61469
61470         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61471         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61472         not using libtool correctly.
61473
61474 2006-09-06  Bruno Haible  <bruno@clisp.org>
61475
61476         * lib/striconv.h: New file.
61477         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61478         iconvstring.c.
61479         * lib/xstriconv.h: New file.
61480         * lib/xstriconv.c: New file.
61481
61482 2006-09-06  Bruno Haible  <bruno@clisp.org>
61483
61484         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61485         lib_..._LDFLAGS.
61486
61487 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61488
61489         * lib/argz_.h: Sync from Libtool.
61490
61491         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61492                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61493
61494         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61495
61496 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61497
61498         * modules/trim: New file.
61499
61500 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61501
61502         * lib/trim.h: New file.
61503         * lib/trim.c: New file.
61504
61505 2006-09-05  Bruno Haible  <bruno@clisp.org>
61506
61507         * MODULES.html.sh (String handling): Add trim.
61508
61509 2006-09-04  Karl Berry  <karl@gnu.org>
61510
61511         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61512         until next release.
61513
61514 2006-09-03  Bruno Haible  <bruno@clisp.org>
61515
61516         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61517         correctly.
61518
61519 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61520
61521         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61522         not gl_GETLOADAVG.  Omit unneeded semicolons.
61523         Problems reported by Ralf Wildenhues in
61524         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61525         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61526         at the end, which is the usual gnulib style.
61527
61528         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61529         of doing all the work ourselves.
61530         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61531         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61532
61533 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61534
61535         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61536         Problem reported by Ralf Wildenhues in
61537         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61538
61539         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61540         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61541
61542 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61543
61544         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61545         yesterday's patch by changing test -n to test -z.
61546
61547 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61548
61549         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61550         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61551         the former is now obsolescent.
61552
61553         * modules/chdir-long (Depends-on): Add fcntl.
61554
61555 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61556
61557         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61558         obsolescent, and programs should use gnulib instead.
61559         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61560         but with prefixes changed.
61561
61562 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61563
61564         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61565         or stdbool.h, because they might not exist while configuring.
61566
61567         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61568         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61569         does that for us.
61570         (O_DIRECTORY): Remove.
61571
61572 2006-08-31  Eric Blake  <ebb9@byu.net>
61573
61574         * gnulib-tool: Don't let emacs change spaces to TAB.
61575
61576 2006-08-31  Bruno Haible  <bruno@clisp.org>
61577
61578         * gnulib-tool: When calling func_import more than once, do it in a
61579         subshell.
61580         Reported by Eric Blake <ebb9@byu.net>.
61581
61582 2006-08-31  Bruno Haible  <bruno@clisp.org>
61583
61584         * gnulib-tool (nl): Remove variable.
61585         (sed_transform_lib_file): Use more robust test for config-h module.
61586         (func_import): Fix typo in 2006-08-25 patch.
61587
61588 2006-08-31  Bruno Haible  <bruno@clisp.org>
61589
61590         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61591         specified, augment Makefile.am variables instead of assigning them.
61592
61593 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61594
61595         Work around a bug in both the Linux and SunOS 64-bit kernels:
61596         nanosleep mishandles sleeps for longer than 2**31 seconds.
61597         Problem reported by Frank v Waveren in
61598         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61600         Check for nanosleep bug.
61601         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61602
61603 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61604
61605         Work around a bug in both the Linux and SunOS 64-bit kernels:
61606         nanosleep mishandles sleeps for longer than 2**31 seconds.
61607         Problem reported by Frank v Waveren in
61608         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61609         * lib/nanosleep.c (BILLION): New constant.
61610         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61611         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61612         implementation.
61613
61614 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61615
61616         * modules/nanosleep (Depends-on): Add gettime.
61617
61618 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61619         and Simon Josefsson  <jas@extundo.com>
61620         and Oskar Liljeblad  <oskar@osk.mine.nu>
61621
61622         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61623         * gnulib-tool (func_import): New license type 'unmodifiable license
61624         text'.
61625         * modules/fdl: Use it.  Longer description.
61626         * module/gpl, module/lgpl: New files.
61627
61628 2006-08-30  Jim Meyering  <jim@meyering.net>
61629
61630         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61631         shadowing the parameter.
61632
61633 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61634
61635         Sync from Libtool:
61636
61637         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61638
61639         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61640         sharing with gnulib.  Report by Eric Blake.
61641
61642 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61643
61644         * modules/isapipe: New file.
61645         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61646
61647 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61648
61649         * modules/configmake (Makefile.am): Add a comment, and omit
61650         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61651         by Bruno Haible.
61652
61653 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61654
61655         * m4/isapipe.m4: New file.
61656
61657 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61658
61659         * lib/isapipe.c, lib/isapipe.h: New files.
61660
61661 2006-08-29  Jim Meyering  <jim@meyering.net>
61662
61663         * modules/configmake (Makefile.am): Make configmake.h depend on
61664         Makefile.  Otherwise, a stale configmake.h could hang around.
61665
61666 2006-08-29  Eric Blake  <ebb9@byu.net>
61667
61668         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61669         resolution of upstream bug 3044.
61670
61671 2006-08-29  Bruno Haible  <bruno@clisp.org>
61672
61673         * modules/localcharset (Depends-on): Add configmake.
61674         (Makefile.am): Remove setting of LIBDIR through DEFS.
61675
61676 2006-08-29  Bruno Haible  <bruno@clisp.org>
61677
61678         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61679         defined.
61680
61681 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61682
61683         * modules/fcntl: New file.
61684         * modules/chdir-safer (Depends-on): Add fcntl.
61685         * modules/fts: Likewise.
61686         * modules/mkdir-p: Likewise.
61687
61688         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61689         This undoes the most recent change, since we're now addressing the
61690         problem in a different way.
61691
61692         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61693         into output, since the output might be called Makefile.am even
61694         if $makefile_name is something different.
61695         (func_import): Use $makefile_am rather than
61696         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61697         empty.
61698
61699         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61700
61701 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61702
61703         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61704         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61705         recent change to stdint.m4, since we're now addressing the problem in a
61706         different way.
61707
61708 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61709
61710         * m4/fcntl_h.m4: New file.
61711
61712 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * lib/fcntl_.h: New file.
61715         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61716         the fcntl module.
61717         * lib/dirchownmod.c: Likewise.
61718         * lib/fts.c: Likewise.
61719
61720         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61721         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61722         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61723         just before including <inttypes.h>, to avoid circular inclusion.
61724
61725 2006-08-28  Jim Meyering  <jim@meyering.net>
61726
61727         * doc/visibility.texi: Actually read and correct the grammar of the
61728         sentence affected by yesterday's change.
61729
61730 2006-08-28  Eric Blake  <ebb9@byu.net>
61731
61732         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61733         needs wrapper.
61734
61735 2006-08-28  Eric Blake  <ebb9@byu.net>
61736
61737         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61738
61739 2006-08-28  Eric Blake  <ebb9@byu.net>
61740
61741         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61742
61743 2006-08-28  Bruno Haible  <bruno@clisp.org>
61744
61745         * modules/c-strstr: New file, from GNU gettext.
61746         * MODULES.html.sh (String handling): Add c-strstr.
61747
61748 2006-08-28  Bruno Haible  <bruno@clisp.org>
61749
61750         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61751         macros.
61752         Reported by Eric Blake.
61753
61754 2006-08-28  Bruno Haible  <bruno@clisp.org>
61755
61756         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61757         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61758         * lib/vasprintf.c: Include errno.h, limits.h.
61759         (EOVERFLOW): New fallback definition.
61760         (vasprintf): Test here whether the string length is > INT_MAX.
61761         * lib/vsnprintf.c: Include errno.h, limits.h.
61762         (EOVERFLOW): New fallback definition.
61763         (vsnprintf): Fix bug when generated string was too long for the buffer.
61764         Test here whether the string length is > INT_MAX.
61765
61766 2006-08-28  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/inttypes_.h (SCNX*): Remove definitions.
61769         Reported by Eric Blake.
61770
61771 2006-08-28  Bruno Haible  <bruno@clisp.org>
61772
61773         * lib/c-strstr.h: New file, from GNU gettext.
61774         * lib/c-strstr.c: New file, from GNU gettext.
61775
61776 2006-08-28  Bruno Haible  <bruno@clisp.org>
61777
61778         * gnulib-tool: Reorder some statements.
61779
61780 2006-08-28  Bruno Haible  <bruno@clisp.org>
61781
61782         * gnulib-tool: New option --makefile-name.
61783         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61784         $makefile_name.
61785         (func_import): Write $makefile_name to the cache file, and read it from
61786         there unless explicitly specified. Use $makefile_name as file name
61787         instead of Makefile.am. Adjust the recommendations accordingly.
61788
61789 2006-08-28  Bruno Haible  <bruno@clisp.org>
61790
61791         * gnulib-tool (func_verify_module): Check against misapplying patch.
61792
61793 2006-08-28  Bruno Haible  <bruno@clisp.org>
61794
61795         * gnulib-tool (func_relativize, func_relconcat): New functions.
61796         Give an error if --local-dir is given with --update.
61797         Remove trailing slashes from $local_gnulib_dir.
61798         (func_import): Store the relativized $local_gnulib_dir in
61799         gnulib-cache.m4, and read it from there if not specified explicitly.
61800
61801 2006-08-28  Bruno Haible  <bruno@clisp.org>
61802
61803         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61804         is the current directory. Respect also $local_gnulib_dir.
61805
61806 2006-08-28  Bruno Haible  <bruno@clisp.org>
61807             Simon Josefsson  <jas@extundo.com>
61808
61809         BeOS portability.
61810         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61811
61812 2006-08-27  Jim Meyering  <jim@meyering.net>
61813
61814         * doc/visibility.texi: Remove duplicate word: "pointer".
61815
61816 2006-08-26  Bruno Haible  <bruno@clisp.org>
61817
61818         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61819         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61820         (Makefile.am): Create inttypes.h from inttypes_.h.
61821         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61822
61823         * modules/imaxabs: New file.
61824
61825         * modules/imaxdiv: New file.
61826
61827 2006-08-26  Bruno Haible  <bruno@clisp.org>
61828
61829         * m4/inttypes.m4: New file.
61830         * m4/_inttypes_h.m4: Remove file.
61831         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61832         PRI_MACROS_BROKEN.
61833         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61834
61835         * m4/imaxabs.m4: New file.
61836
61837         * m4/imaxdiv.m4: New file.
61838
61839 2006-08-26  Bruno Haible  <bruno@clisp.org>
61840
61841         * lib/inttypes_.h: New file.
61842         * lib/inttypes.h: Remove file.
61843         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61844
61845         * lib/imaxabs.c: New file.
61846
61847         * lib/imaxdiv.c: New file.
61848
61849 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61850
61851         New config-h module, so that "make" output needn't be cluttered
61852         by -DHAVE_CONFIG_H.
61853         * MODULES.html.sh (Support for building libraries and executables):
61854         Add config-h.
61855         * modules/config-h: New file.
61856         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61857         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61858         the config-h module is used.
61859
61860         New configmake module, so that "make" output needn't be cluttered
61861         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61862         * MODULES.html.sh (Support for building libraries and executables):
61863         Add configmake.
61864         * modules/configmake: New file.
61865
61866 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61867
61868         * m4/config-h.m4: New file.
61869
61870 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         * config/srclist.txt: Add elisp-comp.
61873
61874 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         * MODULES.html.sh (Support for building libraries and executables):
61877         Add elisp-comp.
61878         * build-aux/elisp-comp: New file.
61879         * modules/elisp-comp: New file.
61880
61881 2006-08-24  Bruno Haible  <bruno@clisp.org>
61882
61883         * gnulib-tool (func_create_testdir): Use non-default values of
61884         sourcebase and m4base.
61885
61886 2006-08-24  Bruno Haible  <bruno@clisp.org>
61887
61888         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61889         HTML structure.
61890
61891 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61892
61893         * modules/openat (Depends-on): Add lchown.
61894
61895 2006-08-23  Bruno Haible  <bruno@clisp.org>
61896
61897         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61898         of gl_LOCK_EARLY instead of gl_LOCK.
61899
61900 2006-08-23  Bruno Haible  <bruno@clisp.org>
61901
61902         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61903         on OSF/1 to no.
61904         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61905
61906 2006-08-23  Bruno Haible  <bruno@clisp.org>
61907
61908         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61909         as unusable.
61910
61911         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61912         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61913         (gl_LOCK): New macro.
61914
61915 2006-08-22  Simon Josefsson  <jas@extundo.com>
61916
61917         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61918         to md5 module.
61919
61920 2006-08-22  Simon Josefsson  <jas@extundo.com>
61921
61922         * MODULES.html.sh: Add "Support for maintaining and release
61923         projects".
61924
61925         * build-aux/gnupload: New file, from coreutils.
61926
61927 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61928
61929         Avoid the need for AC_LIBSOURCES in m4 macros.
61930         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61931         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61932         * modules/check-version (EXTRA_DIST): Add check-version.h.
61933         * modules/crc (EXTRA_DIST): Add crc.h.
61934         * modules/des (EXTRA_DIST): Add des.h.
61935         * modules/gc (EXTRA_DIST): Add gc.h.
61936         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61937         * modules/getline (EXTRA_DIST): Add getline.h.
61938         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61939         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61940         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61941         * modules/md2 (EXTRA_DIST): Add md2.h.
61942         * modules/md4 (EXTRA_DIST): Add md4.h.
61943         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61944         * modules/read-file (EXTRA_DIST): Add read-file.h.
61945         * modules/readline (EXTRA_DIST): Add readline.h.
61946         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61947         rijndael-api-fst.h.
61948
61949 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61950
61951         * m4/rijndael.m4 (gl_ARCFOUR):
61952         * m4/arctwo.m4 (gl_ARCTWO):
61953         * m4/check-version.m4 (gl_CHECK_VERSION):
61954         * m4/crc.m4 (gl_CRC):
61955         * m4/des.m4 (gl_DES):
61956         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61957         * m4/gc.m4 (gl_GC):
61958         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61959         * m4/getline.m4 (gl_FUNC_GETLINE):
61960         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61961         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61962         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61963         * m4/md2.m4 (gl_MD2):
61964         * m4/md4.m4 (gl_MD4):
61965         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61966         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61967         * m4/readline.m4 (gl_FUNC_READLINE):
61968         * m4/rijndael.m4 (gl_RIJNDAEL):
61969         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61970         to get the necessary .h files and whatnot.
61971
61972 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61973
61974         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61975         gnulib rather than the other way around.
61976         * config/srclistvars.sh (COREUTILS): Remove.
61977
61978 2006-08-22  Jim Meyering  <jim@meyering.net>
61979
61980         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61981
61982         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61983
61984 2006-08-22  Eric Blake  <ebb9@byu.net>
61985
61986         * modules/regexprops-generic: New file.
61987         * MODULES.html.sh (Support for building documentation): List it.
61988
61989 2006-08-22  Eric Blake  <ebb9@byu.net>
61990
61991         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61992         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61993         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61994         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61995
61996 2006-08-22  Bruno Haible  <bruno@clisp.org>
61997
61998         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61999         and lib_LTLIBRARIES like the other lib_* variables.
62000
62001 2006-08-22  Bruno Haible  <bruno@clisp.org>
62002
62003         * build-aux/x-to-1.in: New file, from GNU gettext.
62004
62005 2006-08-22  Bruno Haible  <bruno@clisp.org>
62006
62007         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
62008         <utmpx.h> exists.
62009
62010 2006-08-22  Bruno Haible  <bruno@clisp.org>
62011
62012         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
62013         <utmpx.h> exists.
62014
62015 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62016
62017         BeOS portability.
62018         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
62019         exist.
62020         Problem reported by Bruno Haible.
62021
62022 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62023
62024         Avoid the need for AC_LIBSOURCES in m4 macros.
62025         * modules/acl (EXTRA_DIST): Add acl.h.
62026         * modules/argmatch (Files): Add m4/argmatch.m4.
62027         (configure.ac): Add gl_ARGMATCH.
62028         (EXTRA_DIST): Renamed from lib_SOURCES, for
62029         consistency with the other modules.  Remove argmatch.c.
62030         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
62031         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
62032         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
62033         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
62034         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
62035         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
62036         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
62037         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
62038         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
62039         * modules/closeout (EXTRA_DIST): Add closeout.h.
62040         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
62041         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
62042         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
62043         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
62044         dirname.h; remove basename.c and stripslash.c.
62045         * modules/exclude (EXTRA_DIST): Add exclude.h.
62046         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
62047         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
62048         * modules/file-type (EXTRA_DIST): Add file-type.h.
62049         * modules/filemode (EXTRA_DIST): Add filemode.h.
62050         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
62051         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62052         * modules/fpending (EXTRA_DIST): Add __fpending.h.
62053         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
62054         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
62055         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
62056         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
62057         * modules/getdate (EXTRA_DIST): Add getdate.c.
62058         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
62059         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
62060         * modules/getpass (EXTRA_DIST): Add getpass.h.
62061         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
62062         * modules/group-member (EXTRA_DIST): Add group-member.h.
62063         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
62064         * modules/hash (EXTRA_DIST): Add hash.h.
62065         * modules/human (EXTRA_DIST): Add human.h.
62066         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
62067         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
62068         * modules/lchown (EXTRA_DIST): Add lchown.h.
62069         * modules/long-options (EXTRA_DIST): Add long-options.h.
62070         * modules/lstat (EXTRA_DIST): Add lstat.h.
62071         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
62072         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
62073         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
62074         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
62075         * modules/memxor (EXTRA_DIST): Add memxor.h.
62076         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
62077         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
62078         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
62079         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
62080         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
62081         * modules/physmem (EXTRA_DIST): Add physmem.h.
62082         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
62083         * modules/posixver (EXTRA_DIST): Add posixver.h.
62084         * modules/quote (EXTRA_DIST): Add quote.h.
62085         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
62086         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
62087         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
62088         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
62089         regex_internal.h regexec.c.
62090         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
62091         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
62092         * modules/same (EXTRA_DIST): Add same.h.
62093         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
62094         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
62095         * modules/savedir (EXTRA_DIST): Add savedir.h.
62096         * modules/sha1 (EXTRA_DIST): Add sha1.h.
62097         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
62098         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
62099         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
62100         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
62101         * modules/strdup (EXTRA_DIST): Add strdup.h.
62102         * modules/strftime (EXTRA_DIST): Add strftime.h.
62103         * modules/strndup (EXTRA_DIST): Add strndup.h.
62104         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
62105         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
62106         * modules/time_r (EXTRA_DIST): Add time_r.h.
62107         * modules/timespec (EXTRA_DIST): Add timespec.h.
62108         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62109         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
62110         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
62111         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
62112         * modules/userspec (EXTRA_DIST): Add userspec.h.
62113         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
62114         * modules/utimens (EXTRA_DIST): Add utimens.h.
62115         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
62116         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
62117         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
62118         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
62119         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
62120         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
62121         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
62122         * modules/yesno (EXTRA_DIST): Add yesno.h.
62123
62124 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62125
62126         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
62127
62128         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
62129         * m4/dev-ino.m4, same-inode.m4: Remove.
62130
62131         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
62132         * m4/acl.m4 (AC_FUNC_ACL):
62133         * m4/backupfile.m4 (gl_BACKUPFILE):
62134         * m4/c-strtod.m4 (gl_C99_STRTOLD):
62135         * m4/canon-host.m4 (gl_CANON_HOST):
62136         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62137         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
62138         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
62139         * m4/cloexec.m4 (gl_CLOEXEC):
62140         * m4/close-stream.m4 (gl_CLOSE_STREAM):
62141         * m4/closeout.m4 (gl_CLOSEOUT):
62142         * m4/dirfd.m4 (gl_FUNC_DIRFD):
62143         * m4/dirname.m4 (gl_DIRNAME):
62144         * m4/exclude.m4 (gl_EXCLUDE):
62145         * m4/exitfail.m4 (gl_EXITFAIL):
62146         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
62147         * m4/file-type.m4 (gl_FILE_TYPE):
62148         * m4/filemode.m4 (gl_FILEMODE):
62149         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
62150         * m4/fpending.m4 (gl_FUNC_FPENDING):
62151         * m4/fprintftime.m4 (gl_FPRINTFTIME):
62152         * m4/fts.m4 (gl_FUNC_FTS):
62153         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
62154         * m4/getdate.m4 (gl_GETDATE):
62155         * m4/gethrxtime.m4 (gl_GETHRXTIME):
62156         * m4/getpagesize.m4 (gl_GETPAGESIZE):
62157         * m4/getpass.m4 (gl_FUNC_GETPASS):
62158         * m4/gettime.m4 (gl_GETTIME):
62159         * m4/getugroups.m4 (gl_GETUGROUPS):
62160         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
62161         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
62162         * m4/hard-locale.m4 (gl_HARD_LOCALE):
62163         * m4/hash.m4 (gl_HASH):
62164         * m4/idcache.m4 (gl_IDCACHE):
62165         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
62166         * m4/lchown.m4 (gl_FUNC_LCHOWN):
62167         * m4/long-options.m4 (gl_LONG_OPTIONS):
62168         * m4/lstat.m4 (gl_FUNC_LSTAT):
62169         * m4/md5.m4 (gl_MD5):
62170         * m4/memcasecmp.m4 (gl_MEMCASECMP):
62171         * m4/memcoll.m4 (gl_MEMCOLL):
62172         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
62173         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
62174         * m4/memxor.m4 (gl_MEMXOR):
62175         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
62176         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
62177         * m4/modechange.m4 (gl_MODECHANGE):
62178         * m4/mountlist.m4 (gl_MOUNTLIST):
62179         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62180         * m4/openat.m4 (gl_FUNC_OPENAT):
62181         * m4/pathmax.m4 (gl_PATHMAX):
62182         * m4/physmem.m4 (gl_PHYSMEM):
62183         * m4/posixtm.m4 (gl_POSIXTM):
62184         * m4/posixver.m4 (gl_POSIXVER):
62185         * m4/quote.m4 (gl_QUOTE):
62186         * m4/quotearg.m4 (gl_QUOTEARG):
62187         * m4/readtokens.m4 (gl_READTOKENS):
62188         * m4/readutmp.m4 (gl_READUTMP):
62189         * m4/regex.m4 (gl_REGEX):
62190         * m4/safe-read.m4 (gl_SAFE_READ):
62191         * m4/safe-write.m4 (gl_SAFE_WRITE):
62192         * m4/same.m4 (gl_SAME):
62193         * m4/save-cwd.m4 (gl_SAVE_CWD):
62194         * m4/savedir.m4 (gl_SAVEDIR):
62195         * m4/settime.m4 (gl_SETTIME):
62196         * m4/sha1.m4 (gl_SHA1):
62197         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
62198         * m4/stat-macros.m4 (gl_STAT_MACROS):
62199         * m4/stat-time.m4 (gl_STAT_TIME):
62200         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
62201         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
62202         * m4/strdup.m4 (gl_FUNC_STRDUP):
62203         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
62204         * m4/strndup.m4 (gl_FUNC_STRNDUP):
62205         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
62206         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
62207         * m4/time_r.m4 (gl_TIME_R):
62208         * m4/timespec.m4 (gl_TIMESPEC):
62209         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
62210         * m4/unlinkdir.m4 (gl_UNLINKDIR):
62211         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
62212         * m4/userspec.m4 (gl_USERSPEC):
62213         * m4/utimecmp.m4 (gl_UTIMECMP):
62214         * m4/utimens.m4 (gl_UTIMENS):
62215         * m4/xalloc.m4 (gl_XALLOC):
62216         * m4/xgetcwd.m4 (gl_XGETCWD):
62217         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
62218         * m4/xreadlink.m4 (gl_XREADLINK):
62219         * m4/xstrtod.m4 (gl_XSTRTOD):
62220         * m4/yesno.m4 (gl_YESNO):
62221         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62222         to get the necessary .h files and whatnot.
62223
62224 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
62225             Bruno Haible  <bruno@clisp.org>
62226
62227         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
62228         /bin/sh understanding of '!' conditional negation.
62229
62230 2006-08-21  Jim Meyering  <jim@meyering.net>
62231
62232         * modules/openat (Depends-on): Really alphabetize.
62233
62234         * modules/acl (Depends-on): Add error and quote.
62235
62236         * check-module (find_included_lib_files): Add at-func.c to the
62237         ok-to-include-more-than-once white list.
62238
62239         * modules/openat (Depends-on): Add lstat.  Alphabetize.
62240
62241 2006-08-21  Bruno Haible  <bruno@clisp.org>
62242
62243         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62244         Emit a pkgdata_DATA variable only if some snippets add contents to it.
62245         Reported by Martin Lambers <marlam@marlam.de>.
62246
62247 2006-08-21  Bruno Haible  <bruno@clisp.org>
62248
62249         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
62250         specify an installation location, don't emit a noinst_LIBRARIES or
62251         noinst_LTLIBRARIES assignment.
62252
62253 2006-08-21  Bruno Haible  <bruno@clisp.org>
62254
62255         BeOS portability.
62256         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
62257         BeOS has mbrtowc() but no <wctype.h>.
62258
62259 2006-08-21  Bruno Haible  <bruno@clisp.org>
62260
62261         BeOS portability.
62262         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
62263         exist.
62264
62265 2006-08-21  Bruno Haible  <bruno@clisp.org>
62266
62267         BeOS portability.
62268         * lib/mbchar.h: Include <wctype.h> only if it exists.
62269
62270 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62271
62272         Remove files that are no longer needed by their respective modules.
62273         * m4/obstack.m4: Remove.
62274         * m4/strerror_r.m4: Remove.
62275         * m4/uint32_t.m4: Remove.
62276         * m4/uintptr_t.m4: Remove.
62277         * m4/ullong_max.m4: Remove.
62278         * m4/xstrtoimax.m4: Remove.
62279         * m4/xstrtoumax.m4: Remove.
62280
62281         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
62282         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
62283         dependencies now capture this.
62284
62285         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
62286         Do not use AC_LIBSOURCES, since gnulib modules now do this.
62287         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
62288         * m4/human.m4 (gl_HUMAN): Likewise.
62289         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
62290         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
62291
62292         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
62293
62294         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
62295         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
62296         stdint.
62297         * m4/human.m4 (gl_HUMAN): Likewise.
62298         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
62299         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
62300         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62301         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62302         * m4/xstrtol (gl_XSTRTOL): Likewise.
62303
62304         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
62305         AC_TYPE_LONG_LONG_INT.
62306         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62307         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
62308         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
62309         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62310
62311         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
62312         on stdbool.
62313
62314         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
62315         (gl_PREREQ_XSTRTOUL): Remove.
62316
62317         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
62318
62319         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
62320         mode.
62321
62322 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62323
62324         Add and change modules to make it easier for coreutils to use
62325         gnulib-tool.
62326         * modules/backupfile (Files): Remove m4/d-ino.m4.
62327         (Depends-on): Add d-ino.
62328         * modules/cycle-check (Depends-on): Add stdint.
62329         (lib_SOURCES): Add cycle-check.h.
62330         * modules/d-ino: New module.
62331         * modules/d-type: New module.
62332         * modules/error (Files): Remove m4/strerror_r.m4.
62333         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62334         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62335         m4/inttypes_h.m4, m4/uintmax_t.m4.
62336         (Depends-on): Add stdint.
62337         (lib_SOURCES): Add fsusage.h.
62338         * modules/getcwd (Files): Remove d-ino.m4.
62339         (Depends-on): Add d-ino.
62340         * modules/getndelim2 (Depends-on): Add stdint.
62341         * modules/glob (Files): Remove m4/d-type.m4.
62342         (Depends-on): Add d-type.
62343         * modules/host-os: New module.
62344         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62345         m4/inttypes_h.m4, m4/uintmax_t.m4.
62346         * Depends-on: Add stdint.
62347         (lib_SOURCES): Add human.h.
62348         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62349         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62350         m4/uintmax_t.m4, m4/ulonglong.m4.
62351         (Depends-on): Add stdint.
62352         (EXTRA_DIST): Add inttostr.h.
62353         * modules/lchmod: New module.
62354         * modules/link-follow: New module.
62355         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62356         (Depends-on): Add lchmod.
62357         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62358         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62359         (Depends-on): Add stdint.
62360         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62361         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62362         (Depends-on): Add stdint.
62363         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62364         * modules/perl: New module.
62365         * modules/regex (Depends-on): Add stdint.
62366         * modules/rmdir-errno: New module.
62367         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62368         m4/intmax_t.m4.
62369         (Depends-on): Add stdint.
62370         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62371         m4/uintmax_t.m4.
62372         (Depends-on): Add stdint.
62373         * modules/unlink-busy: New module.
62374         * modules/utimecmp (Depends-on): Add stdint.
62375         * modules/uptime: New module.
62376         * modules/winsz-ioctl: New module.
62377         * modules/winsz-termios: New module.
62378         * modules/xnanosleep (Depends-on): Add nanosleep.
62379         * modules/ullong_max: Remove.
62380         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62381         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62382         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62383         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62384         (Depends-on): Add inttypes.
62385         (lib_SOURCES): Add xstrtol.h.
62386         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62387         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62388         * MODULES.html.sh: Move 'assert' into the assert section.
62389         Move 'dummy' into the linking section.
62390         Remove ullong_max.
62391         Add section for compatibility checks for POSIX:2001 functions,
62392         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62393         winsz-ioctl, and winsz-termios into it.
62394         Add lchmod.
62395         Add top-level Misc section and put host-os, perl, and uptime
62396         into it.
62397
62398 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62399
62400         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62401         now assume the stdint module.  Do not include inttypes.h.
62402         * lib/fsusage.h: Likewise.
62403         * lib/getndelim2.c: Likewise.
62404         * lib/human.h: Likewise.
62405         * lib/inttostr.h: Likewise.
62406         * lib/obstack.c: Likewise.
62407         * lib/regex_internal.h: Likewise.
62408         * lib/tempname.c: Likewise.
62409         * lib/utimecmp.c: Likewise.
62410         * lib/xstrtol.h: Likewise.
62411
62412         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62413
62414         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62415         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62416         * lib/xtime.h: Likewise.
62417
62418 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62419
62420         * modules/openat (Files): Add lib/fchmodat.c.
62421         Fixes problem reported by Jay Youngman.
62422
62423 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62424
62425         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62426         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62427
62428 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62429             Bruno Haible  <bruno@clisp.org>
62430
62431         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62432         and is a script that invokes bison. Tighten the code. Add comments.
62433
62434 2006-08-18  Jim Meyering  <jim@meyering.net>
62435
62436         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62437         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62438         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62439         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62440
62441 2006-08-18  Bruno Haible  <bruno@clisp.org>
62442
62443         * modules/bison-i18n: New file.
62444         * MODULES.html.sh (Internationalization functions): Add it.
62445
62446 2006-08-18  Bruno Haible  <bruno@clisp.org>
62447
62448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62449         sys/statvfs.h. When getmntinfo was found, check its declaration and
62450         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62451
62452 2006-08-18  Bruno Haible  <bruno@clisp.org>
62453
62454         * m4/bison-i18n.m4: New file, from bison.
62455
62456 2006-08-18  Bruno Haible  <bruno@clisp.org>
62457
62458         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62459         (ME_DUMMY): Treat "kernfs" as a dummy.
62460         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62461
62462 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62463
62464         Update from coreutils.
62465
62466         2006-08-15  Jim Meyering  <jim@meyering.net>
62467
62468         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62469
62470         2006-01-17  Jim Meyering  <jim@meyering.net>
62471
62472         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62473
62474         2006-01-11  Jim Meyering  <jim@meyering.net>
62475
62476         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62477         Check for the lchmod function.
62478
62479 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         Update from coreutils.
62482
62483         * lib/__fpending.h: Add copyright notice.
62484         * lib/fprintftime.h: Likewise.
62485         * lib/savedir.c: Use (C) in copyright notice.
62486         * lib/savedir.h: Likewise.
62487
62488         2006-08-15  Jim Meyering  <jim@meyering.net>
62489
62490         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62491         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62492         in support of the EXPECTED_ERRNO macro.
62493         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62494         definitions.  Instead, define the appropriate symbols and include
62495         "at-func.c".
62496         * lib/mkdirat.c (mkdirat): Likewise.
62497         * lib/fchmodat.c (fchmodat): Likewise.
62498         (ENOSYS): Remove definition.
62499         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62500         it.  Don't include "unistd--.h" -- it wasn't ever used.
62501
62502         2006-01-17  Jim Meyering  <jim@meyering.net>
62503
62504         Rewrite fts.c not to change the current working directory,
62505         by using openat, fstatat, fdopendir, etc..
62506
62507         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62508         (HAVE_OPENAT_SUPPORT): Define.
62509         [_LIBC] (fchdir): Don't undef or define; no longer used.
62510         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62511         Now, this `function' always succeeds, and consumes its file descriptor
62512         parameter -- so callers must not close such FDs.  Update callers.
62513         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62514         (diropen): Add parameter, SP.  Adjust all callers.
62515         Implement using diropen_fd, rather than open.
62516         (fts_open): Initialize new member, fts_cwd_fd.
62517         Remove fts_rft-setting code.
62518         (fts_close): Close fts_cwd_fd, if necessary.
62519         (__opendir2): Define in terms of opendir or opendirat,
62520         depending on whether the FST_NOCHDIR flag is set.
62521         (fts_build): Since fts_safe_changedir consumes its FD, and since
62522         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62523         and close the dup'd file descriptor upon failure.
62524         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62525         (fts_safe_changedir): Tweak semantics to reflect that this function
62526         now calls cwd_advance_fd and hence consumes its FD argument.
62527         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62528         [struct FTS] (fts_rft): Remove now-unused member.
62529         [struct FTS] (fts_cycle.state): Improve comment.
62530
62531         * lib/openat.c (openat_needs_fchdir): New function.
62532         * lib/openat.h (openat_needs_fchdir): Declare it.
62533
62534 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62535
62536         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62537         Problem and fix reported by Pádraig Brady in
62538         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62539
62540 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62541
62542         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62543
62544 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62545
62546         * lib/memcoll.c (memcoll): Optimize for the common case where the
62547         arguments are bytewise equal.
62548
62549 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62550
62551         * doc/regexprops-generic.texi: Add a copyright notice.
62552
62553 2006-08-15  Bruno Haible  <bruno@clisp.org>
62554
62555         * modules/tmpdir (License): Change to LGPL.
62556
62557 2006-08-15  Bruno Haible  <bruno@clisp.org>
62558
62559         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62560         module.
62561
62562 2006-08-14  Simon Josefsson  <jas@extundo.com>
62563
62564         * config/srclist.txt: Add gnupload.
62565
62566 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         Change copyright notice from LGPL 2 to GPL 2, since that's the
62569         standard form used in the gnulib repository.
62570         * tests/test-lock.c: Likewise.
62571         * tests/test-stdint.c: Likewise.
62572         * tests/test-tls.c: Likewise.
62573
62574         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62575         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62576         Add copyright notice.
62577
62578         * check-module: Add copyright notice.  Output a copyright
62579         notice if "--version" is specified.
62580         * modules/COPYING: New file.
62581         * tests/test-getaddrinfo.c: Add copyright notice.
62582         * tests/test-verify.c: Likewise.
62583
62584 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62585
62586         Change copyright notice from LGPL 2 to GPL 2, since that's the
62587         standard form used in the gnulib repository.
62588         * lib/lock.c: LGPL -> GPL.
62589         * lib/lock.h: Likewise.
62590         * lib/strnlen1.c: Likewise.
62591         * lib/strnlen1.h: Likewise.
62592         * lib/tls.c: Likewise.
62593         * lib/tls.h: Likewise.
62594         * lib/tmpdir.c: Likewise.
62595
62596         * lib/TODO: Remove; this belongs only in coreutils.
62597
62598 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62599
62600         Add copyright notices to long-enough files that lack them, since
62601         otherwise the files aren't clearly free.  Use the same notice that
62602         getdate.texi already uses.
62603         * doc/alloca-opt.texi: Add copyright notice.
62604         * doc/alloca.texi: Likewise.
62605         * doc/ctime.texi: Likewise.
62606         * doc/functions.texi: Likewise.
62607         * doc/gcd.texi: Likewise.
62608         * doc/gnulib-tool.texi: Likewise.
62609         * doc/inet_ntoa.texi: Likewise.
62610         * doc/visibility.texi: Likewise.
62611
62612         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62613         * doc/quote.texi: Add copyright notice.
62614
62615         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62616         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62617         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62618         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62619         is now obsolete, and give a pointer to the Sun list.
62620         Add copyright notice.
62621
62622 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62623
62624         * config/srclistvars.sh: Add copyright notice.
62625
62626 2006-08-14  Eric Blake  <ebb9@byu.net>
62627
62628         Import the following change from libc:
62629
62630         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62631
62632         Upstream bug 2997.
62633         * lib/misc/error.c: Add space between program name and message if file
62634         name is missing.
62635
62636 2006-08-12  Karl Berry  <karl@gnu.org>
62637
62638         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62639         remove, these originate in gnulib now.
62640
62641 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62642
62643         * doc/Makefile (standards.info standards.html standards.dvi):
62644         Also depend on make-stds.texi.
62645
62646 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62647
62648         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62649         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62650
62651         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62652         in wchar_t.  Problem reported by Eric Blake.
62653
62654         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62655         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62656         Also, help the compiler to keep LEN in a register.
62657
62658 2006-08-11  Eric Blake  <ebb9@byu.net>
62659
62660         * users.txt: Sort.  Add tar.
62661
62662 2006-08-11  Bruno Haible  <bruno@clisp.org>
62663
62664         * users.txt: New file.
62665
62666 2006-08-11  Bruno Haible  <bruno@clisp.org>
62667
62668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62669         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62670
62671 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62672
62673         * modules/snprintf (Depends-on): Remove minmax.
62674         (Maintainer): Add self and Bruno.
62675
62676 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62677
62678         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62679         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62680         (EOVERFLOW): Define if the system does not.
62681         Do not include "minmax.h"; it wasn't used.
62682         (snprintf): Don't assume size_t promotes to an unsigned type.
62683         Fix bug when generated string was too long for the buffer: the
62684         buffer's contents are supposed to be the initial prefix of the
62685         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62686         exceeds INT_MAX; do the check ourselves.
62687
62688         Import the following changes from libc:
62689
62690         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62691
62692         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62693         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62694         set wc to the byte which couldn't be converted.
62695         (re_string_reconstruct): Don't clear valid_raw_len before calling
62696         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62697         tip_context using re_string_context_at.
62698
62699         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62700
62701         * lib/posix/regex.h: g++ still cannot handled [restrict].
62702
62703         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62704
62705         * lib/posix/regex.h: Remove special handling for VMS.
62706
62707 2006-08-10  Jim Meyering  <jim@meyering.net>
62708
62709         * modules/same-inode: New module.
62710         * modules/dev-ino: New module.
62711         * modules/cycle-check: Depend on these modules, rather than simply
62712         including their .h files.
62713         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62714         required via m4/cycle-check.m4.
62715         * modules/same: Depend on new same-inode module, rather than
62716         including same-inode.h.
62717         * modules/chdir-safer: New file.
62718
62719         * modules/chown (Depends-on): Add stat-macros.
62720
62721 2006-08-10  Jim Meyering  <jim@meyering.net>
62722
62723         * m4/cycle-check.m4: New file.
62724         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62725         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62726
62727 2006-08-10  Eric Blake  <ebb9@byu.net>
62728
62729         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62730         in from original proposal.
62731
62732 2006-08-10  Eric Blake  <ebb9@byu.net>
62733         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62734
62735         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62736         namespace.
62737
62738 2006-08-10  Bruno Haible  <bruno@clisp.org>
62739
62740         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62741         as well.
62742
62743 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62744
62745         Sync from coreutils.
62746
62747         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62748
62749         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62750         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62751
62752 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62753
62754         * modules/restrict: Remove; no longer needed now that we assume
62755         Autoconf 2.59 or later.
62756         * MODULES.html.sh: Remove 'restrict'.
62757         * modules/argp (Depends-on): Remove 'restrict'.
62758         * modules/base64 (Depends-on): Likewise.
62759         * modules/gc (Depends-on): Likewise.
62760         * modules/getaddrinfo (Depends-on): Likewise.
62761         * modules/glob (Depends-on): Likewise.
62762         * modules/inet_ntop (Depends-on): Likewise.
62763         * modules/inet_pton (Depends-on): Likewise.
62764         * modules/memxor (Depends-on): Likewise.
62765         * modules/regex (Depends-on): Likewise.
62766         * modules/strtok_r (Depends-on): Likewise.
62767         * modules/time_r (Depends-on): Likewise.
62768
62769 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62770
62771         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62772         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62773         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62774         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62775         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62776         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62777         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62778         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62779
62780         Merge from coreutils.
62781         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62782         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62783         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62784         * m4/time_r.m4 (gl_TIME_R): Likewise.
62785
62786 2006-08-09  Karl Berry  <karl@gnu.org>
62787
62788         * config/srclist.txt: no more gettext-tools, per Bruno.
62789
62790 2006-08-08  Eric Blake  <ebb9@byu.net>
62791
62792         * modules/verror: New module.
62793         * MODULES.html.sh: Document it.
62794
62795 2006-08-08  Eric Blake  <ebb9@byu.net>
62796
62797         * lib/verror.h, lib/verror.c: New files.
62798
62799 2006-08-08  Eric Blake  <ebb9@byu.net>
62800
62801         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62802         verror_at_line output complies with GNU Coding Standards even when
62803         file is NULL.
62804
62805 2006-08-07  Bruno Haible  <bruno@clisp.org>
62806
62807         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62808         versions of AIX.
62809         Reported by Ralf Wildenhues.
62810
62811 2006-08-07  Bruno Haible  <bruno@clisp.org>
62812
62813         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62814         in an AC_DEFUN. Needed so that the autoconf snippets can use
62815         AC_REQUIRE.
62816
62817 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62818
62819         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62820         Initialize pkgdata_DATA.
62821         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62822         overriding it.
62823
62824 2006-08-06  Eric Blake  <ebb9@byu.net>
62825
62826         * lib/error.h: Fold in some upstream changes from glibc.
62827         * lib/error.c: Likewise.
62828
62829 2006-08-04  Bruno Haible  <bruno@clisp.org>
62830
62831         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62832         Make the mostlyclean-local rule depend on mostlyclean-generic.
62833         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62834
62835 2006-07-31  Bruno Haible  <bruno@clisp.org>
62836
62837         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62838         <stdlib.h>, <string.h>.
62839
62840 2006-07-30  Bruno Haible  <bruno@clisp.org>
62841
62842         * modules/readlink (License): Change to LGPL.
62843
62844 2006-07-30  Bruno Haible  <bruno@clisp.org>
62845
62846         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62847         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62848         set PKGDATADIR to point to it.
62849
62850 2006-07-30  Bruno Haible  <bruno@clisp.org>
62851
62852         * modules/csharpexec (configure.ac): Comment out macro invocation.
62853         * modules/javaexec (configure.ac): Likewise.
62854         * modules/javacomp-script (configure.ac): Likewise.
62855
62856         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62857
62858 2006-07-30  Bruno Haible  <bruno@clisp.org>
62859
62860         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62861         linked-list.
62862
62863 2006-07-30  Bruno Haible  <bruno@clisp.org>
62864
62865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62866
62867 2006-07-30  Bruno Haible  <bruno@clisp.org>
62868
62869         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62870         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62871         get removed.
62872
62873 2006-07-29  Bruno Haible  <bruno@clisp.org>
62874
62875         Make it possible for gnulib-tool to work with locally modified or
62876         augmented gnulib repositories.
62877         * gnulib-tool (func_usage): Document --local-dir option.
62878         (local_gnulib_dir): New variable.
62879         Handle --local-dir option.
62880         (func_lookup_file): New function.
62881         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62882         (func_get_description, func_get_filelist, func_get_description,
62883         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62884         func_get_automake_snippet, func_get_include_directive,
62885         func_get_license, func_get_maintainer): Use func_lookup_file.
62886         (func_import, func_create_testdir): Use func_lookup_file.
62887
62888 2006-07-29  Bruno Haible  <bruno@clisp.org>
62889
62890         * modules/setenv (Depends-on): Add unistd.
62891
62892 2006-07-29  Bruno Haible  <bruno@clisp.org>
62893
62894         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62895
62896 2006-07-29  Bruno Haible  <bruno@clisp.org>
62897
62898         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62899
62900 2006-07-29  Bruno Haible  <bruno@clisp.org>
62901
62902         * gnulib-tool (import, update): If there is no Makefile.am, look at
62903         aclocal.m4, instead of bailing out.
62904
62905 2006-07-29  Bruno Haible  <bruno@clisp.org>
62906
62907         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62908         Categorize the options by when they are useful.
62909
62910 2006-07-29  Bruno Haible  <bruno@clisp.org>
62911
62912         * gnulib-tool (func_usage): Document option --no-libtool.
62913         Handle option --no-libtool.
62914         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62915         for changed semantics of $libtool variable.
62916         (func_import): Likewise. If libtool is not used, show this through
62917         an option --no-libtool.
62918         (func_create_testdir): Update.
62919
62920 2006-07-29  Bruno Haible  <bruno@clisp.org>
62921
62922         * gnulib-tool (func_import): Extend error message about missing
62923         --doc-base.
62924
62925 2006-07-29  Bruno Haible  <bruno@clisp.org>
62926
62927         * gnulib-tool (func_import): Don't create the $docbase directory if
62928         there is no file to store there.
62929
62930 2006-07-29  Bruno Haible  <bruno@clisp.org>
62931
62932         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62933         relevant, look for configure.ac there, not in the current directory.
62934         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62935
62936 2006-07-29  Bruno Haible  <bruno@clisp.org>
62937
62938         * gnulib-tool (SORT): New variable.
62939         (func_usage): Undocument --assume-autoconf option.
62940         Remove --assume-autoconf option handling.
62941         (autoconf_minversion): Determine from the contents of configure.ac.
62942         (func_import): Remove autoconf_minversion handling.
62943         Suggested by Eric Blake.
62944
62945 2006-07-29  Bruno Haible  <bruno@clisp.org>
62946
62947         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62948
62949 2006-07-29  Bruno Haible  <bruno@clisp.org>
62950
62951         * config/srclist.txt (*setenv.[ch]): Remove rules.
62952
62953 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62954
62955         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62956
62957 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62958
62959         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62960         arpa/inet.h.
62961
62962 2006-07-28  Simon Josefsson  <jas@extundo.com>
62963
62964         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62965         * modules/inet_pton (Depends-on): Likewise.
62966
62967 2006-07-28  Simon Josefsson  <jas@extundo.com>
62968
62969         * m4/netinet_in_h.m4: New file.
62970
62971 2006-07-28  Simon Josefsson  <jas@extundo.com>
62972
62973         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62974         #include's.
62975
62976 2006-07-28  Simon Josefsson  <jas@extundo.com>
62977
62978         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62979         #include's.
62980
62981 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62982
62983         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62984         setgid on directories only if they set these bits.
62985         * lib/modechange.h: Remove obsolete comment about masks.
62986
62987 2006-07-28  Eric Blake  <ebb9@byu.net>
62988
62989         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62990         macro expansion.
62991
62992 2006-07-28  Bruno Haible  <bruno@clisp.org>
62993
62994         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62995
62996 2006-07-28  Bruno Haible  <bruno@clisp.org>
62997
62998         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62999
63000 2006-07-28  Bruno Haible  <bruno@clisp.org>
63001
63002         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
63003         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
63004         Define fallbacks.
63005         Avoids link error on FreeBSD 4.x.
63006         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63007
63008         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
63009         encoding.
63010         * lib/mbswidth.c (iswcntrl): Likewise.
63011
63012 2006-07-27  Bruno Haible  <bruno@clisp.org>
63013
63014         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
63015         test.
63016
63017 2006-07-27  Bruno Haible  <bruno@clisp.org>
63018
63019         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
63020         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
63021         defined.
63022
63023 2006-07-26  Eric Blake  <ebb9@byu.net>
63024
63025         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
63026
63027 2006-07-26  Eric Blake  <ebb9@byu.net>
63028
63029         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
63030         like mingw that lack mkstemp.
63031         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
63032         avoid compilation warning on mingw.
63033
63034 2006-07-26  Bruno Haible  <bruno@clisp.org>
63035
63036         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
63037         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
63038         INT_FAST*_MIN, INTPTR_MIN.
63039
63040 2006-07-25  Bruno Haible  <bruno@clisp.org>
63041
63042         * modules/version-etc (Depends-on): Add stdarg.
63043
63044 2006-07-25  Bruno Haible  <bruno@clisp.org>
63045
63046         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
63047         complex commands.
63048
63049 2006-07-25  Bruno Haible  <bruno@clisp.org>
63050
63051         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
63052         defined in <stdarg.h> or config.h.
63053
63054 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
63057         (gl_STDIO_SAFER): Remove.
63058
63059 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63060
63061         * MODULES.html.sh (File stream based Input/Output):
63062         Add fopen-safer, tmpfile-safer; remove stdio-safer.
63063         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
63064         * modules/fopen-safer, modules/tmpfile-safer: New files.
63065         * modules/stdio-safer: Remove.
63066
63067 2006-07-24  Bruno Haible  <bruno@clisp.org>
63068
63069         * modules/tmpdir: New file.
63070         * MODULES.html.sh (File system functions): Add it.
63071
63072 2006-07-24  Bruno Haible  <bruno@clisp.org>
63073
63074         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
63075         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
63076
63077 2006-07-24  Bruno Haible  <bruno@clisp.org>
63078
63079         * modules/clean-temp: New file.
63080
63081 2006-07-24  Bruno Haible  <bruno@clisp.org>
63082
63083         * m4/tmpdir.m4: New file, from GNU gettext.
63084
63085 2006-07-24  Bruno Haible  <bruno@clisp.org>
63086
63087         * lib/tmpdir.h: New file, from GNU gettext.
63088         * lib/tmpdir.c: New file, from GNU gettext.
63089
63090 2006-07-24  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/clean-temp.h: New file, from GNU gettext.
63093         * lib/clean-temp.c: New file, from GNU gettext.
63094
63095 2006-07-23  Eric Blake  <ebb9@byu.net>
63096
63097         * modules/stdio-safer (Files): Add tmpfile-safer.c.
63098         (Depends-on): Add binary-io.
63099
63100 2006-07-23  Eric Blake  <ebb9@byu.net>
63101
63102         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
63103
63104 2006-07-23  Eric Blake  <ebb9@byu.net>
63105
63106         * lib/tmpfile-safer.c: New file.
63107         * lib/stdio-safer.h (fopen_safer): Add prototype.
63108         * lib/stdio--.h (tmpfile): Make safer.
63109
63110 2006-07-23  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
63113         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
63114         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
63115         gl_linked_remove_at): Use it.
63116
63117 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63118         and Simon Josefsson <jas@extundo.com>
63119
63120         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
63121
63122         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
63123
63124 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63125
63126         * modules/close-stream: New file.
63127         * modules/closeout (Description): Make it clear that it exits
63128         with a diagnostic on error.
63129         (Depends-on): Add close-stream.  Remove fpending, stdbool.
63130         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
63131
63132 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63133
63134         * m4/close-stream.m4: New file.
63135
63136 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63137
63138         * lib/close-stream.c, lib/close-stream.h: New files.
63139
63140 2006-07-22  Bruno Haible  <bruno@clisp.org>
63141
63142         Merge from GNU gettext 0.15.
63143
63144         2006-05-01  Bruno Haible  <bruno@clisp.org>
63145
63146                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
63147
63148         2006-07-22  Bruno Haible  <bruno@clisp.org>
63149
63150                 * modules/javaversion: New file.
63151                 * MODULES.html.sh (Java): Add javaversion.
63152
63153         2006-03-12  Bruno Haible  <bruno@clisp.org>
63154
63155                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
63156
63157         2005-12-04  Bruno Haible  <bruno@clisp.org>
63158
63159                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
63160                 (untested).
63161
63162         2006-06-21  Bruno Haible  <bruno@clisp.org>
63163
63164                 Avoid warnings from recent versions of mcs.
63165                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
63166                 -o, -L, -r any more. Use options documented since mcs-1.0
63167                 instead. Similarly for -g.
63168
63169         2005-12-04  Bruno Haible  <bruno@clisp.org>
63170
63171                 * build-aux/csharpcomp.sh.in: Suffix for resources is
63172                 .resources, not .resource.
63173
63174         2005-07-09  Bruno Haible  <bruno@clisp.org>
63175
63176                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
63177                 add a .dll suffix.
63178                 Reported by Mark Junker <mjscod@gmx.de>.
63179
63180         2006-07-22  Bruno Haible  <bruno@clisp.org>
63181
63182                 * modules/gettext: Upgrade to gettext-0.15.
63183                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
63184                 m4/visibility.m4.
63185                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
63186
63187 2006-07-22  Bruno Haible  <bruno@clisp.org>
63188
63189         Merge from GNU gettext 0.15.
63190
63191         2006-03-25  Bruno Haible  <bruno@clisp.org>
63192
63193                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
63194
63195         2006-07-21  Bruno Haible  <bruno@clisp.org>
63196
63197                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
63198                 "1.1".
63199
63200         2006-05-09  Bruno Haible  <bruno@clisp.org>
63201
63202                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
63203                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
63204                 for the conftestver execution.
63205
63206         2006-05-01  Bruno Haible  <bruno@clisp.org>
63207
63208                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
63209                 optional target-version argument. Verify that the compiler
63210                 groks source of the specified source-version, or add -source
63211                 option as necessary. Verify that the compiler produces
63212                 bytecode in the specified target-version, or add -target and
63213                 -source options as necessary. Make the result of the test
63214                 available as variable CONF_JAVAC. Also log error output in
63215                 config.log.
63216
63217         2006-03-11  Bruno Haible  <bruno@clisp.org>
63218
63219                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
63220
63221         2006-05-09  Bruno Haible  <bruno@clisp.org>
63222
63223                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
63224                 CLASSPATH_SEPARATOR to a semicolon.
63225
63226         2006-03-12  Bruno Haible  <bruno@clisp.org>
63227
63228                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
63229                 available as variable CONF_JAVA, for subsequent autoconf
63230                 tests. Also log error output in config.log.
63231
63232         2006-07-19  Bruno Haible  <bruno@clisp.org>
63233
63234                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
63235                 that getline works on glibc2 systems. Needed to avoid trouble
63236                 in relocatable.c.
63237                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
63238
63239         2005-12-04  Bruno Haible  <bruno@clisp.org>
63240
63241                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
63242                 launcher (untested).
63243
63244         2005-12-04  Bruno Haible  <bruno@clisp.org>
63245
63246                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
63247
63248         2006-07-22  Bruno Haible  <bruno@clisp.org>
63249
63250                 * gettext.m4: Update from GNU gettext-0.15.
63251                 * nls.m4: Likewise.
63252                 * po.m4: Likewise.
63253                 * inttypes-pri.m4: Likewise.
63254                 * inttypes-h.m4: Renamed from inttypes.m4.
63255                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
63256
63257 2006-07-22  Bruno Haible  <bruno@clisp.org>
63258
63259         Merge from GNU gettext 0.15.
63260
63261         2005-07-05  Bruno Haible  <bruno@clisp.org>
63262
63263                 * printf-args.c (printf_fetchargs): Work around broken
63264                 definition of wint_t on mingw.
63265
63266         2005-02-12  Bruno Haible  <bruno@clisp.org>
63267
63268                 * xallocsa.h: Add extern "C" for C++.
63269
63270         2006-05-17  Bruno Haible  <bruno@clisp.org>
63271
63272                 Cygwin portability.
63273                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
63274
63275         2006-04-30  Bruno Haible  <bruno@clisp.org>
63276
63277                 * progreloc.c: Include <mach-o/dyld.h> if available.
63278                 (find_executable): Use _NSGetExecutablePath when possible.
63279
63280         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63281
63282                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
63283                 function.
63284
63285         2005-12-29  Bruno Haible  <bruno@clisp.org>
63286
63287                 * progreloc.c (set_program_name_and_installdir): Fix
63288                 compilation error.
63289
63290         2005-12-04  Bruno Haible  <bruno@clisp.org>
63291
63292                 Cygwin portability.
63293                 * progreloc.c: Include <windows.h> also on Cygwin.
63294                 (find_executable): Add support for Cygwin.
63295                 (set_program_name_and_installdir): Handle also platforms with
63296                 nonempty EXEEXT.
63297
63298         2006-07-11  Bruno Haible  <bruno@clisp.org>
63299
63300                 * javacomp.c: Fix a comment.
63301                 Reported by Jim Meyering.
63302
63303         2006-04-30  Bruno Haible  <bruno@clisp.org>
63304
63305                 * javacomp.h (compile_java_class): Add source_version,
63306                 target_version arguments.
63307                 * javacomp.c: Rewritten to choose only a compiler that
63308                 respects the specified source_version and target_version.
63309
63310         2006-06-27  Bruno Haible  <bruno@clisp.org>
63311
63312                 Assume correct S_ISDIR macro.
63313                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
63314
63315         2006-07-22  Bruno Haible  <bruno@clisp.org>
63316
63317                 * javaversion.h: New file, from GNU gettext.
63318                 * javaversion.c: New file, from GNU gettext.
63319                 * javaversion.java: New file, from GNU gettext.
63320                 * javaversion.class: New file, from GNU gettext.
63321
63322         2006-05-17  Bruno Haible  <bruno@clisp.org>
63323
63324                 Cygwin portability.
63325                 * javaexec.c (execute_java_class): Test for jview program
63326                 also on Cygwin.
63327
63328         2006-04-09  Bruno Haible  <bruno@clisp.org>
63329
63330                 * fatal-signal.c: Don't include string.h.
63331                 (at_fatal_signal): Use a copying loop instead of memcpy.
63332
63333         2005-12-04  Bruno Haible  <bruno@clisp.org>
63334
63335                 * csharpexec.c: Add support for 'clix' launcher (untested).
63336                 (execute_csharp_using_sscli): New function.
63337                 (execute_csharp_program): Call it.
63338
63339         2006-06-21  Bruno Haible  <bruno@clisp.org>
63340
63341                 Avoid warnings from recent versions of mcs.
63342                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63343                 -o, -L, -r any more. Use options documented since mcs-1.0
63344                 instead. Similarly for -g.
63345
63346         2005-07-09  Bruno Haible  <bruno@clisp.org>
63347
63348                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63349                 add a .dll suffix.
63350                 Reported by Mark Junker <mjscod@gmx.de>.
63351
63352         2006-06-17  Bruno Haible  <bruno@clisp.org>
63353
63354                 * config.charset: Update for NetBSD 3.0.
63355
63356         2006-05-17  Bruno Haible  <bruno@clisp.org>
63357
63358                 Cygwin portability.
63359                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63360
63361         2006-05-16  Bruno Haible  <bruno@clisp.org>
63362
63363                 * localcharset.c [CYGWIN]: Include <windows.h>.
63364                 (get_charset_aliases): For Cygwin, return the same CPxxx
63365                 aliases list as under WIN32.
63366                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63367                 the environment variables. Fall back to GetACP().
63368
63369         2006-04-05  Bruno Haible  <bruno@clisp.org>
63370
63371                 * config.charset: Update Juan Manuel Guerrero's address.
63372
63373         2005-02-12  Bruno Haible  <bruno@clisp.org>
63374
63375                 * allocsa.h: Add extern "C" for C++.
63376
63377         2005-02-10  Bruno Haible  <bruno@clisp.org>
63378
63379                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63380                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63381
63382         2006-07-22  Bruno Haible  <bruno@clisp.org>
63383
63384                 * gettext.h: Update to GNU gettext-0.15.
63385
63386 2006-07-22  Bruno Haible  <bruno@clisp.org>
63387
63388         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63389         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63390         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63391
63392 2006-07-21  Eric Blake  <ebb9@byu.net>
63393
63394         * modules/stdlib-safer: New file.
63395         * MODULES.html.sh (File stream based Input/Output): Add
63396         stdlib-safer.
63397
63398 2006-07-21  Eric Blake  <ebb9@byu.net>
63399
63400         * lib/stdlib-safer.h: New file from coreutils, required by
63401         stdlib--.h.
63402
63403 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63404
63405         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63406
63407 2006-07-20  Bruno Haible  <bruno@clisp.org>
63408
63409         * gnulib-tool: Recognize new option --assume-autoconf.
63410         (autoconf_minversion): New variable.
63411         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63412
63413 2006-07-20  Bruno Haible  <bruno@clisp.org>
63414
63415         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63416
63417 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63418
63419         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63420         Reindent and repaginate.
63421
63422 2006-07-19  Derek Price  <derek@ximbiot.com>
63423
63424         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63425         Correct grammar.
63426
63427 2006-07-17  Bruno Haible  <bruno@clisp.org>
63428
63429         * modules/list: New file.
63430         * modules/array-list: New file.
63431         * modules/carray-list, modules/carray-list-tests: New files.
63432         * modules/linked-list, modules/linked-list-tests: New files.
63433         * modules/avltree-list, modules/avltree-list-tests: New files.
63434         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63435         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63436         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63437         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63438         * modules/oset: New file.
63439         * modules/array-oset: New file.
63440         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63441         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63442         * tests/test-carray_list.c: New file.
63443         * tests/test-linked_list.c: New file.
63444         * tests/test-avltree_list.c: New file.
63445         * tests/test-rbtree_list.c: New file.
63446         * tests/test-linkedhash_list.c: New file.
63447         * tests/test-avltreehash_list.c: New file.
63448         * tests/test-rbtreehash_list.c: New file.
63449         * tests/test-avltree_oset.c: New file.
63450         * tests/test-rbtree_oset.c: New file.
63451         * MODULES.html.sh (Container data structures): New section.
63452
63453 2006-07-17  Bruno Haible  <bruno@clisp.org>
63454
63455         * m4/gl_list.m4: New file.
63456
63457 2006-07-17  Bruno Haible  <bruno@clisp.org>
63458
63459         * lib/gl_list.h: New file.
63460         * lib/gl_list.c: New file.
63461         * lib/gl_array_list.h: New file.
63462         * lib/gl_array_list.c: New file.
63463         * lib/gl_carray_list.h: New file.
63464         * lib/gl_carray_list.c: New file.
63465         * lib/gl_linked_list.h: New file.
63466         * lib/gl_linked_list.c: New file.
63467         * lib/gl_anylinked_list1.h: New file.
63468         * lib/gl_anylinked_list2.h: New file.
63469         * lib/gl_avltree_list.h: New file.
63470         * lib/gl_avltree_list.c: New file.
63471         * lib/gl_anyavltree_list1.h: New file.
63472         * lib/gl_anyavltree_list2.h: New file.
63473         * lib/gl_rbtree_list.h: New file.
63474         * lib/gl_rbtree_list.c: New file.
63475         * lib/gl_anyrbtree_list1.h: New file.
63476         * lib/gl_anyrbtree_list2.h: New file.
63477         * lib/gl_anytree_list1.h: New file.
63478         * lib/gl_anytree_list2.h: New file.
63479         * lib/gl_linkedhash_list.h: New file.
63480         * lib/gl_linkedhash_list.c: New file.
63481         * lib/gl_anyhash_list1.h: New file.
63482         * lib/gl_anyhash_list2.h: New file.
63483         * lib/gl_avltreehash_list.h: New file.
63484         * lib/gl_avltreehash_list.c: New file.
63485         * lib/gl_rbtreehash_list.h: New file.
63486         * lib/gl_rbtreehash_list.c: New file.
63487         * lib/gl_anytreehash_list1.h: New file.
63488         * lib/gl_anytreehash_list2.h: New file.
63489
63490         * lib/gl_oset.h: New file.
63491         * lib/gl_oset.c: New file.
63492         * lib/gl_array_oset.h: New file.
63493         * lib/gl_array_oset.c: New file.
63494         * lib/gl_avltree_oset.h: New file.
63495         * lib/gl_avltree_oset.c: New file.
63496         * lib/gl_rbtree_oset.h: New file.
63497         * lib/gl_rbtree_oset.c: New file.
63498         * lib/gl_anytree_oset.h: New file.
63499
63500 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63501
63502         * m4/mkancesdirs.m4: New file.
63503         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63504         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63505         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63506         it.
63507
63508 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63509
63510         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63511         * lib/mkancesdirs.h: New files.
63512         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63513         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63514         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63515         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63516         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63517         callers changed.  Revamp internals significantly, by not
63518         attempting to create directories that are temporarily more
63519         permissive than the final results.  Do not attempt to use
63520         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63521         This removes some race conditions, fixes some bugs, and simplifies
63522         things.  Use new dirchownmod function to do owner and mode changes.
63523         * lib/mkdir-p.h: Likewise.
63524         * lib/modechange.c (octal_to_mode): New function.
63525         (struct mode_change): New member mentioned.
63526         (make_node_op_equals): New arg mentioned.  All callers changed.
63527         (mode_compile): Keep track of which mode bits the user has explicitly
63528         mentioned.
63529         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63530         New arg PMODE_BITS, to keep track of which mode bits the user
63531         mentioned; it treats S_ISUID and S_ISGID speciall.
63532         All callers changed.
63533         * lib/modechange.h: Likewise.
63534
63535 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63536
63537         * MODULES.html.sh: Add mkancestors.
63538         * modules/mkancesdirs: New module.
63539         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63540         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63541         The chdir-safer and afs files are now orphans; I'll remove them
63542         unless someone speaks up.
63543         Add lib/dirchownmod.c, lib/dirchownmod.h.
63544         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63545         Add lchown, mkancesdirs.
63546         (Maintainer): Add self.
63547
63548 2006-07-15  Karl Berry  <karl@gnu.org>
63549
63550         * gnulib-tool: help message wording/arrangement.
63551
63552 2006-07-14  Simon Josefsson  <jas@extundo.com>
63553
63554         * doc/gnulib.texi (Libtool and Windows): New section.
63555
63556 2006-07-12  Simon Josefsson  <jas@extundo.com>
63557
63558         * modules/gendocs (License): Fix license, approved by Karl.
63559
63560 2006-07-12  Eric Blake  <ebb9@byu.net>
63561
63562         * MODULES.html.sh: Add gendocs.
63563
63564 2006-07-11  Eric Blake  <ebb9@byu.net>
63565
63566         * modules/fdl: New module, to install doc/fdl.texi.
63567         * MODULES.html.sh: Add new section for documentation modules.
63568         * gnulib-tool: Avoid space-tab.
63569         (--doc-base): New option, to manage files from doc.
63570
63571 2006-07-11  Eric Blake  <ebb9@byu.net>
63572
63573         * m4/absolute-header.m4: Fix comments to match recent change.
63574
63575 2006-07-11  Eric Blake  <ebb9@byu.net>
63576
63577         * gnulib-tool: List --doc-base before --tests-base.
63578
63579 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63580
63581         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63582
63583 2006-07-11  Bruno Haible  <bruno@clisp.org>
63584
63585         * README: Mention where to put documentation.
63586
63587 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63588
63589         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63590
63591 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63592
63593         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63594         to stdint.m4.
63595
63596 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63597
63598         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63599         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63600         "no/such/file/stdint.h" when there is no such file, so that
63601         the resulting C code can be parsed by dodgy compilers.
63602         Problems reported by Bob Proulx.
63603
63604 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63605
63606         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63607         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63608         macros into the GNU _D_EXACT_NAMLEN.
63609         * lib/savedir.c:  Likewise.
63610         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63611
63612 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63613         and Paul Eggert  <eggert@cs.ucla.edu>
63614
63615         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63616         * m4/savedir.m4:
63617         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63618         macros into the GNU _D_EXACT_NAMLEN.
63619
63620 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63623         around the absolute name, to work around a problem with the HP-UX
63624         11.23 native C compiler, reported by Bob Proulx.
63625
63626 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63627
63628         * doc/maintain.texi, make-stds.texi: Sync from
63629         <http://savannah.gnu.org/projects/gnustandards>.
63630
63631 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63632
63633         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63634
63635 2006-07-09  Jim Meyering  <jim@meyering.net>
63636
63637         * m4/glob.m4: Remove a doubled word in a comment.
63638
63639 2006-07-09  Jim Meyering  <jim@meyering.net>
63640
63641         * lib/argp-pv.c: Remove a doubled word in a comment.
63642         * lib/check-version.c (check_version): Likewise.
63643         * lib/javacomp.c (compile_java_class): Likewise.
63644
63645 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63646
63647         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63648         for the benefit of people using Autoconf 2.60.  If you want to
63649         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63650         (or m4/onceonly.m4, if pre-2.57) manually.
63651
63652 2006-07-08  Jim Meyering  <jim@meyering.net>
63653
63654         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63655         comment.
63656         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63657         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63658         comment.
63659
63660 2006-07-08  Jim Meyering  <jim@meyering.net>
63661
63662         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63663
63664 2006-07-07  Simon Josefsson  <jas@extundo.com>
63665
63666         * tests/test-crc.c: Change expected crc value, the test vector
63667         were probably computed using the old broken crc.c?
63668
63669 2006-07-06  Simon Josefsson  <jas@extundo.com>
63670
63671         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63672         now the canonical place for the M4 file).
63673
63674         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63675         from the sys_socket dependency now.
63676
63677         * modules/inet_pton (Files): Ditto.
63678
63679         * modules/inet_ntop (Files): Ditto.
63680
63681 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63682
63683         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63684         not gl_PREREQ_GETUSERSHELL.
63685
63686 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63687
63688         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63689         with only one argument, for Autoconf 2.60.
63690         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63691         expand to nothing, so add a shell command to avoid syntax error.
63692         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63693
63694 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63695
63696         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63697
63698 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63699
63700         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63701         no longer needed.  Check for isblank decl.
63702         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63703         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63704         of existence.
63705
63706 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         * lib/getloadavg.c: Use __VMS, not VMS.
63709         * lib/getopt.c: Likewise.
63710         * lib/getpagesize.h: Likewise.
63711         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63712         and probably does not work.
63713
63714 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63715
63716         * lib/.cppi-disable: Add wcwidth.
63717         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63718         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63719         (ISGRAPH): Remove.  All uses changed to isgraph.
63720         (FOLD) [!defined _LIBC]: Remove special case.
63721         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63722         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63723         HAVE_ISBLANK.
63724         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63725         case.
63726
63727 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63728
63729         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63730         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63731         brackets.  Other minor changes to suppress some compiler
63732         warnings.
63733
63734 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63735         and Paul Eggert  <eggert@cs.ucla.edu>
63736
63737         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63738         of invoking obsolescent AC_HEADER_DIRENT macro.
63739         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63740         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63741         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63742         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63743         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63744         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63745         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63746         * m4/readdir.m4: Remove; no longer needed.
63747
63748 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63749         and Paul Eggert  <eggert@cs.ucla.edu>
63750
63751         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63752         Don't worry about this obsolete case any more.
63753         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63754         directories.
63755         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63756         worry about this obsolete case any more.
63757         * lib/fts.c: Likewise.
63758         * lib/getcwd.c: Likewise.
63759         * lib/glob.h: Likewise.
63760         * lib/savedir.c: Likewise.
63761
63762 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63763
63764         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63765         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63766         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63767         needed.
63768         All uses removed.
63769         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63770         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63771         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63772         needed.
63773         * m4/getdate.m4 (gl_GETDATE): Likewise.
63774         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63775         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63776         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63777         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63778         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63779         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63780         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63781         needed.
63782
63783 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         * lib/memcasecmp.c: Include <limits.h>.
63786         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63787         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63788         Don't assume isdigit succeeds only on '0' through '9'.
63789
63790 2006-07-05  Eric Blake  <ebb9@byu.net>
63791
63792         * modules/getaddrinfo (Depends-on): Add snprintf.
63793
63794 2006-07-05  Eric Blake  <ebb9@byu.net>
63795
63796         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63797         to avoid 'header present but could not be compiled' on cygwin.
63798
63799 2006-07-05  Eric Blake  <ebb9@byu.net>
63800
63801         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63802         missing from netdb.h.
63803         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63804
63805 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63806
63807         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63808         no longer needed.
63809         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63810         * m4/getdate.m4 (gl_GETDATE): Likewise.
63811         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63812         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63813         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63814         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63816
63817 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63818
63819         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63820         All uses of is_space replaced by isspace.
63821         * lib/exit.h: Don't talk about STDC_HEADERS.
63822         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63823         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63824         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63825         replaced by isprint etc.
63826         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63827         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63828         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63829         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63830         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63831         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63832
63833 2006-07-05  Bruno Haible  <bruno@clisp.org>
63834
63835         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63836         the function exists, before testing against AIX.
63837         Reported by Martin Lambers <marlam@marlam.de>.
63838
63839 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63840
63841         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63842         From Mark D. Baushke.
63843
63844 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63845
63846         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63847         to the absolute name, not just one, to bypass Sun C 5.8's
63848         "warning: #include of /usr/include/... may be non-portable".
63849
63850 2006-07-04  Eric Blake  <ebb9@byu.net>
63851
63852         * modules/dirname-tests: New test module.
63853         * tests/test-dirname.c: New file, replacing dirname.c
63854         TEST_DIRNAME section that was recently deleted.
63855
63856 2006-07-04  Bruno Haible  <bruno@clisp.org>
63857
63858         Assume ANSI C header files and <ctype.h> functions.
63859         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63860         (mbsnwidth): Use isprint, iscntrl instead.
63861
63862 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63863
63864         Merge from coreutils.
63865         * MODULES.html.sh: Add xstrtold.
63866         * modules/xstrtold: New file.
63867         * modules/cycle-check (Files): Add lib/same-inode.h.
63868         * modules/dirname (Files): Add m4/double-slash-root.m4.
63869         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63870         * modules/mkdir-p (Files): Add lib/same-inode.h.
63871         * modules/same (Files): Add lib/same-inode.h.
63872
63873 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63874
63875         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63876         This is to keep the terminology clean; POSIX talks about
63877         "absolute pathnames", not "full pathnames", but the GNU
63878         Coding Standards say to use "path" for something else;
63879         so use "absolute" to keep both sides happy.
63880         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63881         Set gl_absolute_header, not gl_full_header_path.
63882         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63883         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63884         All uses changed.
63885
63886         Merge from coreutils.
63887
63888         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63889
63890         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63891         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63892         want to require the building of c-strtod.o.
63893         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63894         needs -lm directly.
63895         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63896
63897         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63898
63899         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63900         --as-needed option if available.  Problem reported by Albert Chin in
63901         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63902         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63903         cc merely issues a bunch of annoying warnings for --as-needed
63904         (this problem was reported by Bob Proulx).  Also, try linking with
63905         -lm to detect a bug in binutils 2.16 (this problem was reported
63906         by Ralf Wildenhues).
63907
63908         2006-06-18  Jim Meyering  <jim@meyering.net>
63909
63910         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63911         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63912         macro.
63913         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63914         also check for glibc-2.4's abort-inducing bug.
63915
63916         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63917         Low-probability clean-up should be to use rmdir to get rid of
63918         the just-created directory, not unlink.
63919
63920         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63921         configure fail, and request a bug report to inform us about it.
63922         Add a comment that, barring reports to the contrary, in 2007 we'll
63923         assume ftruncate is universally available.
63924
63925         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63926
63927         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63928
63929         2006-03-12  Jim Meyering  <jim@meyering.net>
63930
63931         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63932         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63933         * m4/same.m4 (gl_SAME): Likewise.
63934         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63935
63936         2006-03-11  Eric Blake  <ebb9@byu.net>
63937
63938         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63939         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63940         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63941         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63942
63943 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63944
63945         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63946         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63947         reported by Mark D. Baushke, one in
63948         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63949
63950         Merge from coreutils.
63951
63952         * lib/.cppi-disable: Add stdint_.h.
63953         * lib/.cvsignore: Add stdint.h.
63954
63955         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63958         both double and long double versions.
63959         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63960         * lib/xstrtold.c: New file.
63961         * lib/xstrtod.h (xstrtold): New decl.
63962
63963         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63964
63965         * lib/filemode.c (setst): Remove.
63966         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63967         (arguably) clearer, and the generated code is a bit smaller on my
63968         Debian GNU/Linux stable x86 host.
63969
63970         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63971
63972         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63973         Assume that filemode.h includes sys/types.h and sys/stat.h.
63974         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63975         (ftypelet): Reorder to put common cases first, for efficiency.
63976         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63977         to do 'M'.
63978         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63979         of 10, for compatibility with FreeBSD.  All callers changed.
63980         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63981         types that can't be deduced solely from st_mode.  First arg is now a
63982         const pointer.
63983         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63984         (strmode): Renamed from mode_string.
63985         (filemodestring): New decl.
63986         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63987         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63988         needed.
63989         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63990
63991         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63992
63993         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63994         fsusage.h now does that.  Include fsusage.h first, to test interface.
63995         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63996         at most one method (the old code could have generated decls that
63997         didn't conform to C89, not that this was ever exercised).
63998         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63999
64000         2006-03-19  Jim Meyering  <jim@meyering.net>
64001
64002         Work even in a chroot where d_ino values for entries in "/"
64003         don't match the stat.st_ino values for the same names.
64004         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
64005         number, iterate through all entries again, using lstat instead.
64006         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
64007         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
64008
64009         * lib/getcwd.c (__getcwd): Clarify a comment.
64010         Use memcpy in place of a call to strcpy.
64011
64012         2006-03-12  Jim Meyering  <jim@meyering.net>
64013
64014         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
64015         matches that of the current directory (which we're about to chdir ".."
64016         out of), then save the dev-ino of the parent, instead.
64017
64018         * lib/same-inode.h (SAME_INODE): New file/macro.
64019         * lib/chdir-safer.c (SAME_INODE): Remove definition.
64020         Include "same-inode.h", instead.
64021         * lib/same.c: Likewise.
64022         * lib/cycle-check.h: Include "same-inode.h".
64023         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
64024         * lib/cycle-check.c (SAME_INODE): Remove definition.
64025         * lib/root-dev-ino.h: Include "same-inode.h".
64026
64027         2006-03-11  Eric Blake  <ebb9@byu.net>
64028
64029         * lib/same.c (same_name): s/base_name/last_component/
64030         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
64031         * lib/filenamecat.c (file_name_concat): Likewise.
64032
64033         2006-03-11  Eric Blake  <ebb9@byu.net>,
64034                     Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
64037         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
64038         drive prefix.
64039         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
64040         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
64041         (last_component): New method.
64042         * lib/dirname.c (dir_len): Determine when drive letters need a
64043         subsequent slash.  Preserve // when it is special.
64044         (dir_name): Don't append dot when drive letter is absolute.
64045         [TEST_DIRNAME]: Move into a full-blown gnulib test.
64046         * lib/basename.c (base_name): New semantics - malloc the result.
64047         Preserve // when it is special.  Preserve relative files that look
64048         like drive letters.
64049         (base_len): Preserve // when it is special.
64050         (last_component): New method, similar to old base_name semantics.
64051         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
64052         base_name.  Strip redundant slashes from ///.
64053
64054 2006-07-03  Jim Meyering  <jim@meyering.net>
64055
64056         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
64057         macro is used before the first cycle_check call.
64058
64059 2006-07-03  Eric Blake  <ebb9@byu.net>
64060
64061         * modules/dirname (Depends-on): Add xstrndup.
64062
64063 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64064
64065         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
64066         test cases, so that config.log is a bit easier to follow.
64067
64068 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64069
64070         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
64071         both are 64 bits, since this seems to be the tradition, and this
64072         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
64073         we ever run into a host that prefers long long to long in this
64074         case, we'll need another configure-time test.  Problem reported by
64075         Jim Meyering.
64076
64077 2006-07-02  Eric Blake  <ebb9@byu.net>
64078
64079         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
64080
64081 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         * modules/inttypes (Depends-on): No longer depends on stdint.
64084         * modules/stdint (Description): Say more about assumptions.
64085         Say that the fast types might differ.  Say macros are used.
64086         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
64087         (Makefile.am): Revise list of substituted symbols to match
64088         new stdint.m4.
64089         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
64090         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
64091         * tests/test-stdint.c (verify_same_types)
64092         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
64093         the code conforms to C99/C89.
64094         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
64095         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
64096
64097 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64098
64099         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
64100         but fix a bug, by requiring at least 64 bits.
64101         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64102         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
64103         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
64104         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64105
64106         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
64107         changes.  Make 2.59 a prerequisite.  Check and substitute for
64108         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
64109         inttypes.h.  Do not use special include files; just use the
64110         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
64111         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
64112         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
64113         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
64114         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
64115         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
64116         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
64117         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
64118         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
64119         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
64120         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
64121         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
64122         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
64123         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
64124         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
64125         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
64126         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
64127         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
64128         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
64129         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
64130         WINT_MAX.  Check for C99 conformance more strictly, by detecting
64131         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
64132         not check for things that C99 does not require, e.g., int8_t.  If
64133         a test isn't needed unless <stdint.h> isn't working, and is
64134         unlikely to be needed for any other reason, then don't do it
64135         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
64136         size_t, since we assume C89 freestanding at least.  Do not check
64137         for sig_atomic_t, wchar_t, or wint_t, since the code now does
64138         the right thing even if the types are not defined.  Instead use:
64139         (gl_STDINT_TYPE_PROPERTIES): New macro.
64140         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
64141         testing whether <sys/types.h> clashes, as Autoconf does this for
64142         us now.  All uses removed.
64143         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
64144         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
64145         (gl_CHECK_TYPE_SAME):
64146         Remove; no longer needed.
64147         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
64148         exists, since we'll return 0 anyway in that case.
64149         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
64150
64151 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64152
64153         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
64154         possible collision with system files.
64155         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
64156         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
64157         WCHAR_MIN and WCHAR_MAX in this case.
64158         (<stddef.h>): Do not include; no longer needed.
64159         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
64160         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
64161         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
64162         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
64163         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
64164         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
64165         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
64166         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
64167         !defined(__c99))]: Include in this case too, since it's harmless
64168         now.
64169         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
64170         dangerous to do so.
64171         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
64172         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
64173         (_STDINT_MIN, _STDINT_MAX): New macros.
64174         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
64175         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
64176         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
64177         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
64178         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
64179         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
64180         macros, not typedefs; this simplifies things quite a bit.
64181         Use long int for all types narrower than int64_t.
64182         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
64183         Define in terms of long long int or int64_t or long int,
64184         not int64_t or int32_t.  This saves some compile-time testing.
64185         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
64186         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
64187         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
64188         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
64189         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
64190         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
64191         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
64192         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
64193         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
64194         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
64195         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64196         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64197         undef any previous version and define our own version, for
64198         simplicity and consistency with the new macros for types.
64199         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64200         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64201         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
64202         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
64203         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
64204         @WINT_T_SUFFIX@ to keep things simple here.
64205         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
64206         Simplify by assuming typical 8/16/32/64 host, since we're
64207         already doing that elsewhere anyway.
64208         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
64209         and assume long long int is 64 bits if available.  This
64210         speeds up 'configure'.
64211
64212 2006-07-01  Eric Blake  <ebb9@byu.net>
64213
64214         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
64215         Reported by Andreas Buening.
64216
64217 2006-07-01  Eric Blake  <ebb9@byu.net>
64218
64219         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
64220
64221 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64222
64223         * lib/getaddrinfo.c: fixed typo
64224
64225 2006-06-29  Jim Meyering  <jim@meyering.net>
64226
64227         * modules/strftime (Maintainer): Add my name, since with the
64228         FPRINTFTIME changes strftime.c has forked from glibc.
64229
64230 2006-06-29  Eric Blake  <ebb9@byu.net>
64231
64232         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
64233
64234 2006-06-29  Eric Blake  <ebb9@byu.net>
64235
64236         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
64237
64238 2006-06-29  Eric Blake  <ebb9@byu.net>
64239
64240         * lib/stat_.h: New file.
64241
64242 2006-06-29  Eric Blake  <ebb9@byu.net>
64243
64244         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
64245         unused static function.
64246
64247 2006-06-29  Eric Blake  <ebb9@byu.net>
64248
64249         * doc/functions.texi (Function Portability): Document missing lstat
64250         on mingw.
64251
64252 2006-06-29  Eric Blake  <ebb9@byu.net>
64253
64254         * MODULES.html.sh: Add sys_stat.
64255         * modules/sys_stat: New module.
64256         * modules/mkstemp (Depends-on): Add sys_stat.
64257
64258 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64259
64260         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
64261
64262 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64263
64264         * m4/c-bs-a.m4: Removed.
64265
64266 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64267
64268         * lib/strftime.c: Assume strftime() exists.
64269
64270 2006-06-29  Derek Price  <derek@ximbiot.com>
64271
64272         * modules/c-bs-a: Removed - \a is C89.
64273         * MODULES.html.sh: Remove c-bs-a.
64274
64275 2006-06-29  Bruno Haible  <bruno@clisp.org>
64276
64277         * modules/wcwidth (License): Change to LGPL.
64278
64279 2006-06-28  Simon Josefsson  <jas@extundo.com>
64280
64281         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
64282         on _WIN32.
64283
64284         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
64285         getnameinfo.
64286
64287 2006-06-28  Simon Josefsson  <jas@extundo.com>
64288
64289         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
64290
64291 2006-06-28  Simon Josefsson  <jas@extundo.com>
64292
64293         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
64294         functions there.  It will succeed on Windows XP, but on Windows
64295         2000 and (presumably) earlier, it will fail, and use the internal
64296         re-implementation.
64297         (use_win32_p): New function.
64298         (getaddrinfo): Use strtoul on servname, to support numeric ports.
64299         Support AI_NUMERICSERV to disable getservbyname.
64300         (getnameinfo): New function, only supports
64301         NI_NUMERICHOST|NI_NUMERICSERV for now.
64302
64303         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
64304         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
64305         getnameinfo.
64306
64307 2006-06-28  Eric Blake  <ebb9@byu.net>
64308
64309         * modules/wcwidth: New file.
64310         * modules/mbchar (Depends-on): Add wcwidth.
64311         * modules/mbswidth (Depends-on): Add wcwidth.
64312         * MODULES.html.sh: Add wcwidth.
64313
64314 2006-06-28  Eric Blake  <ebb9@byu.net>
64315
64316         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
64317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
64318
64319 2006-06-28  Eric Blake  <ebb9@byu.net>
64320
64321         * lib/xvasprintf.h: Fix comments.
64322
64323 2006-06-28  Eric Blake  <ebb9@byu.net>
64324
64325         * lib/mbchar.h (wcwidth): Include wcwidth.h.
64326         * lib/mbswidth.c (wcwidth): Move from here...
64327         * lib/wcwidth.h: ...to this new file.
64328
64329 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64330
64331         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64332
64333         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64334         it's obsolete.
64335         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64336
64337 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64338
64339         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64340         Autoconf 2.60 says this stuff was obsolete.
64341
64342 2006-06-28  Bruno Haible  <bruno@clisp.org>
64343
64344         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64345
64346 2006-06-28  Bruno Haible  <bruno@clisp.org>
64347
64348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64349         gt_TYPE_WCHAR_T.
64350
64351 2006-06-28  Bruno Haible  <bruno@clisp.org>
64352
64353         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64354         declaration for wcwidth.
64355         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64356
64357 2006-06-28  Bruno Haible  <bruno@clisp.org>
64358
64359         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64360         (mkdir): Define using _mkdir.
64361
64362 2006-06-28  Bruno Haible  <bruno@clisp.org>
64363
64364         * lib/getaddrinfo.h: Fix POSIX URL.
64365         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64366         _WIN32.
64367         (use_win32_p): Make static.
64368         (getaddrinfo): Reject service name if it is empty or does not consist
64369         solely of decimal digits, or if its value is > 65535.
64370         (getnameinfo): Remove useless casts.
64371
64372 2006-06-27  Simon Josefsson  <jas@extundo.com>
64373
64374         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64375         Eggert and Martin Lambers.
64376
64377 2006-06-27  Simon Josefsson  <jas@extundo.com>
64378
64379         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64380         Eggert and Martin Lambers.
64381
64382 2006-06-27  Bruno Haible  <bruno@clisp.org>
64383
64384         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64385         result to 0, not to empty.
64386         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64387
64388 2006-06-27  Bruno Haible  <bruno@clisp.org>
64389
64390         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64391
64392 2006-06-26  Simon Josefsson  <jas@extundo.com>
64393
64394         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64395         present.
64396
64397 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64398
64399         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64400         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64402
64403 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64404
64405         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64406
64407 2006-06-26  Bruno Haible  <bruno@clisp.org>
64408
64409         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64410
64411 2006-06-26  Bruno Haible  <bruno@clisp.org>
64412
64413         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64414
64415 2006-06-26  Bruno Haible  <bruno@clisp.org>
64416
64417         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64418         SGI C compiler in pre-C99 mode.
64419         Suggested by Mark D. Baushke and Larry Jones.
64420
64421 2006-06-26  Bruno Haible  <bruno@clisp.org>
64422
64423         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64424         WCHAR_MAX.
64425         Reported by Mark D. Baushke and Larry Jones.
64426
64427 2006-06-26  Bruno Haible  <bruno@clisp.org>
64428
64429         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64430         in pre-C99 mode.
64431         Suggested by Mark D. Baushke and Larry Jones.
64432
64433 2006-06-23  Simon Josefsson  <jas@extundo.com>
64434             Bruno Haible  <bruno@clisp.org>
64435
64436         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64437         Emit mostlyclean-local rule.
64438         (func_emit_tests_Makefile_am): Likewise.
64439         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64440
64441 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64442
64443         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64444
64445 2006-06-23  Bruno Haible  <bruno@clisp.org>
64446
64447         * tests/test-stdint.c: Update to match ISO C 99 Technical
64448         Corrigendum 1.
64449
64450 2006-06-23  Bruno Haible  <bruno@clisp.org>
64451
64452         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64453
64454 2006-06-23  Bruno Haible  <bruno@clisp.org>
64455
64456         * lib/stdint_.h: Treat IRIX like OpenBSD.
64457
64458 2006-06-23  Bruno Haible  <bruno@clisp.org>
64459
64460         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64461         ISO C 99 Technical Corrigendum 1.
64462
64463 2006-06-22  Simon Josefsson  <jas@extundo.com>
64464
64465         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64466         MinGW.
64467
64468 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64469
64470         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64471         needed.  Some compiler complained about some of them.  Problem reported
64472         by Larry Jones in
64473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64474
64475 2006-06-21  Simon Josefsson  <jas@extundo.com>
64476
64477         * tests/test-getaddrinfo.c: New file.
64478
64479         * modules/getaddrinfo-tests: New file.
64480
64481         * MODULES.html.sh: Add inet_pton.
64482
64483         * modules/inet_pton: New file.
64484
64485 2006-06-21  Simon Josefsson  <jas@extundo.com>
64486
64487         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64488         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64489         of using the (limited) gnulib implementation on Windows XP.
64490
64491         * m4/inet_pton.m4: New file.
64492
64493 2006-06-21  Simon Josefsson  <jas@extundo.com>
64494
64495         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64496         variable.
64497
64498         * lib/socket_.h: Don't define WINVER.
64499
64500         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64501         slightly modified to work in gnulib.
64502
64503 2006-06-21  Simon Josefsson  <jas@extundo.com>
64504
64505         * doc/gnulib.texi (Windows sockets): Add.
64506
64507 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64508
64509         * lib/read-file.c (fread_file): Start with buffer allocation of
64510         0 bytes rather than 1 byte; this simplifies the code.
64511         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64512         code to free buffer and save/restore errno.
64513         (internal_read_file): Remove unused local.
64514
64515 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64516
64517         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64518         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64519         Problem reported by Denis Excoffier in
64520         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64521
64522 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64523
64524         * modules/sys_socket, modules/socklen: Include sys/types since
64525         FreeBSD 4.x's sys/socket.h needs it.
64526
64527 2006-06-19  Simon Josefsson  <jas@extundo.com>
64528
64529         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64530
64531 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64534
64535 2006-06-19  Bruno Haible  <bruno@clisp.org>
64536
64537         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64538         and FULL_PATH_INTTYPES_H in angle brackets.
64539         Reported by Mark D. Baushke <mdb@gnu.org>.
64540
64541 2006-06-17  Eric Blake  <ebb9@byu.net>
64542
64543         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64544         errno.
64545
64546 2006-06-17  Bruno Haible  <bruno@clisp.org>
64547
64548         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64549         <sys/inttypes.h>.
64550
64551 2006-06-17  Bruno Haible  <bruno@clisp.org>
64552
64553         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64554         whether errno is declared. Assume <errno.h> declares errno.
64555
64556 2006-06-17  Bruno Haible  <bruno@clisp.org>
64557
64558         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64559
64560 2006-06-17  Bruno Haible  <bruno@clisp.org>
64561
64562         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64563         problem on Solaris 2.5.1.
64564
64565 2006-06-16  Eric Blake  <ebb9@byu.net>
64566
64567         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64568         * lib/unicodeio.c [!defined errno]: Likewise.
64569         * lib/strtol.c [!defined errno]: Likewise.
64570         * lib/strtod.c [!defined errno]: Likewise.
64571
64572 2006-06-15  Eric Blake  <ebb9@byu.net>
64573
64574         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64575
64576 2006-06-15  Eric Blake  <ebb9@byu.net>
64577
64578         * config/srclist.txt (ssize_t.m4): Lose sync.
64579
64580 2006-06-15  Bruno Haible  <bruno@clisp.org>
64581
64582         * modules/stdint (Files): Include m4/full-header-path.m4,
64583         m4/size_max.m4, m4/wchar_t.m4.
64584         (Makefile.am): Many more substitutions.
64585         * modules/stdint-tests: New file.
64586         * tests/test-stdint.c: New file.
64587
64588 2006-06-15  Bruno Haible  <bruno@clisp.org>
64589
64590         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64591         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64592         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64593         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64594         gl_CHECK_TYPE_SAME): New macros.
64595
64596 2006-06-15  Bruno Haible  <bruno@clisp.org>
64597
64598         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64599
64600 2006-06-15  Bruno Haible  <bruno@clisp.org>
64601
64602         * lib/stdint_.h: Rewritten to be fully auto-configured.
64603         Fixes bug on HP-UX/IA64.
64604
64605 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64606
64607         * lib/getdate.y (__attribute__): Don't define if already defined.
64608         Problem reported by Larry Jones.
64609         * lib/utimens.c (__attribute__): Likewise.
64610
64611 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64612
64613         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64614         reported by Andreas Schwab.
64615
64616 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64617             Bruno Haible  <bruno@clisp.org>
64618
64619         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64620         check for the declaration of strnlen and a run test that exposes the
64621         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64622         rpl_strndup.
64623
64624 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64625             Bruno Haible  <bruno@clisp.org>
64626
64627         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64628
64629 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64630
64631         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64632         compile test, for Tru64 4.0D.
64633
64634 2006-05-28  Karl Berry  <karl@gnu.org>
64635
64636         * config/srclist.txt (printf-args.c): lose sync.
64637
64638 2006-05-26  Martin Lambers  <marlam@marlam.de>
64639
64640         * lib/getpass.c: Updates the test for the native W32 API, and adds
64641         missing includes, thus fixing compilation warnings.
64642
64643 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64644
64645         * lib/exclude.c (exclude_fnmatch): New function.
64646         (excluded_file_name): Call exclude_fnmatch.
64647         * lib/exclude.h (excluded_file_name): New prototype
64648
64649 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64650
64651         * lib/tempname.c (small_open, large_open): New macros.
64652         (__open, __open64) [!_LIBC]: Remove.
64653         (__gen_tempname): Use small_open and large_open instead of __open
64654         and __open64.  This fixes a portability bug on HP-UX 11.11i
64655         reported by Simon Wing-Tang in
64656         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64657
64658 2006-05-24  Bruno Haible  <bruno@clisp.org>
64659
64660         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64661         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64662         Reported by Thorsten Maerz <torte@netztorte.de> via
64663         Aaron Stone <aaron@serendipity.cx>.
64664
64665 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64668         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64669         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64670         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64671         not really conditional on the cache.
64672         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64673
64674 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64675
64676         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64677         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64678         (my_usleep): Don't mishandle maximum value.
64679
64680 2006-05-19  Jim Meyering  <jim@meyering.net>
64681
64682         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64683
64684 2006-05-17  Bruno Haible  <bruno@clisp.org>
64685
64686         Cygwin portability.
64687         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64688
64689 2006-05-17  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/stdint_.h: Fix recognition of Cygwin.
64692
64693 2006-05-15  Bruno Haible  <bruno@clisp.org>
64694
64695         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64696         on libtool patch by Ralf Wildenhues.
64697
64698 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64699
64700         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64701         test for C99 conformance; (bool) 0.5 is an integer constant
64702         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64703         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64704
64705 2006-05-11  Simon Josefsson  <jas@extundo.com>
64706
64707         * m4/xvasprintf.m4: Fix obvious typo.
64708
64709 2006-05-11  Jim Meyering  <jim@meyering.net>
64710
64711         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64712         James Lemley.
64713
64714 2006-05-10  Simon Josefsson  <jas@extundo.com>
64715
64716         * lib/md4.c: Typo fix, update copyright years.
64717         (K1, K2): Don't use L because it turn computations into 64-bit on
64718         64-bit platforms.
64719
64720 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64721
64722         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64723         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64724         unwanted sign propagation, e.g., on hosts with 64-bit int.
64725         There still are some problems with reeelly weird theoretical hosts
64726         (e.g., 33-bit int) but it's not worth worrying about now.
64727         * lib/sha1.c (rol): Likewise.
64728         (K1, K2, K3, K4): Remove unnecessary L suffix.
64729
64730 2006-05-10  Bruno Haible  <bruno@clisp.org>
64731
64732         * lib/des.c: Cast to avoid warnings.
64733
64734 2006-05-09  Bruno Haible  <bruno@clisp.org>
64735
64736         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64737         (Depends-on): Depend also on xsize, stdarg.
64738         (configure.ac): Add gl_XVASPRINTF.
64739
64740 2006-05-09  Bruno Haible  <bruno@clisp.org>
64741
64742         * m4/xvasprintf.m4: New file.
64743
64744 2006-05-09  Bruno Haible  <bruno@clisp.org>
64745
64746         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64747         (EOVERFLOW): Define fallback value.
64748         (xstrcat): New function.
64749         (xvasprintf): Recognize the special case of a string concatenation.
64750
64751 2006-05-08  Eric Blake  <ebb9@byu.net>
64752
64753         * gnulib-tool (func_version): Base copyright year on CVS date.
64754         (func_emit_copyright_notice): New function.
64755         (func_emit_lib_Makefile_am): Use it.
64756         (func_emit_tests_Makefile_am): Likewise.
64757         (func_import): Likewise.
64758
64759 2006-05-08  Bruno Haible  <bruno@clisp.org>
64760
64761         * modules/stdarg: New file.
64762         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64763
64764 2006-05-08  Bruno Haible  <bruno@clisp.org>
64765
64766         * m4/stdarg.m4: New file, from GNU gettext.
64767
64768 2006-05-08  Bruno Haible  <bruno@clisp.org>
64769
64770         * config/srclist.txt (build-aux/config.rpath): different from latest
64771         release.
64772
64773 2006-05-08  Bruno Haible  <bruno@clisp.org>
64774
64775         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64776
64777 2006-05-05  Jim Meyering  <jim@meyering.net>
64778
64779         * m4/warning.m4: New file, derived from bison's file by the same name.
64780
64781 2006-05-03  Bruno Haible  <bruno@clisp.org>
64782
64783         * lib/stdint_.h: Shorter URL.
64784         * lib/inttypes.h: Likewise.
64785
64786 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64787
64788         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64789
64790 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64791
64792         * lib/verify.h: Document the internals better.  Most of this change
64793         was written by Bruno Haible.
64794
64795 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64796
64797         * doc/verify.texi: New file, partly based on a proposal by
64798         Bruno Haible.
64799
64800 2006-05-02  Bruno Haible  <bruno@clisp.org>
64801
64802         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64803         test from here...
64804         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64805
64806 2006-04-29  Bruno Haible  <bruno@clisp.org>
64807
64808         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64809         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64810
64811 2006-04-29  Bruno Haible  <bruno@clisp.org>
64812
64813         * gnulib-tool: Make --update option actually work.
64814
64815 2006-04-29  Bruno Haible  <bruno@clisp.org>
64816
64817         * doc/gcd.texi: New file.
64818         * doc/gnulib.texi: Include it.
64819
64820 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64821
64822         * lib/getdate.y (get_date): When adding relative date, start with the
64823         initial time, not with the result of the first mktime call.
64824
64825 2006-04-25  Bruno Haible  <bruno@clisp.org>
64826
64827         * gnulib-tool (func_import): Output the include directives in three
64828         blocks, sorted separately.
64829         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64830
64831 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64832
64833         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64834         to define main with arguments, for C++.  Reported by Eric Blake.
64835         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64836         Prefer 'int main ()' to 'int main (void)', for C++.
64837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64838         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64839         for 'main', for C99 and C++.
64840
64841 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64842
64843         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64844         Don't assume that exit status -1 is valid.
64845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64846         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64847         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64848         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64849         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64850         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64851         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64852         functions can be used without declaring them, or that you can
64853         exit with status -1.
64854         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64855
64856 2006-04-24  Karl Berry  <karl@gnu.org>
64857
64858         * config/srclist.txt (longdouble.m4): sync lost.
64859
64860 2006-04-24  Eric Blake  <ebb9@byu.net>
64861
64862         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64863
64864 2006-04-24  Bruno Haible  <bruno@clisp.org>
64865
64866         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64867         poll() implementation in AIX.
64868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64869
64870 2006-04-24  Bruno Haible  <bruno@clisp.org>
64871
64872         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64873         assigned exactly once.
64874
64875 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64876             Bruno Haible  <bruno@clisp.org>
64877
64878         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64879         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64880         for AM_CPPFLAGS.
64881
64882 2006-04-23  Bruno Haible  <bruno@clisp.org>
64883
64884         * modules/copy-file: Depend on unistd.
64885         * modules/execute: Likewise.
64886         * modules/fatal-signal: Likewise.
64887         * modules/findprog: Likewise.
64888         * modules/mkdtemp : Likewise.
64889         * modules/pipe: Likewise.
64890         * modules/wait-process: Likewise.
64891
64892 2006-04-23  Bruno Haible  <bruno@clisp.org>
64893
64894         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64895         condition was already detected.
64896         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64897
64898 2006-04-23  Bruno Haible  <bruno@clisp.org>
64899
64900         * lib/copy-file.c: Include <unistd.h> unconditionally.
64901         * lib/execute.c: Likewise.
64902         * lib/fatal-signal.c: Likewise.
64903         * lib/findprog.c: Likewise.
64904         * lib/mkdtemp.c: Likewise.
64905         * lib/pipe.h: Likewise.
64906         * lib/pipe.c: Likewise.
64907         * lib/wait-process.h: Likewise.
64908
64909 2006-04-23  Bruno Haible  <bruno@clisp.org>
64910
64911         * gnulib-tool (func_usage): Fix --import description. Document
64912         --update.
64913         (func_import): Create temporary file in a temporary directory, if
64914         --dry-run is specified. Silence errors from 'grep' when there are no
64915         m4 files in $m4dir.
64916         (func_create_testdir): Silence errors from 'grep' when there are no
64917         m4 files in $m4dir.
64918         Reported by Karl Berry <karl@freefriends.org>.
64919
64920 2006-04-20  Bruno Haible  <bruno@clisp.org>
64921
64922         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64923         one argument, so that the code will be portable to Autoconf 2.60.
64924         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64925         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64926         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64927
64928 2006-04-19  Derek Price  <derek@ximbiot.com>
64929             Eric Blake  <ebb9@byu.net>
64930
64931         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64932         rather than "/full/path.h".  Update comment to match.  Shorten &
64933         generalize m4_translit call via AS_TR_CPP.
64934
64935 2006-04-19  Derek Price  <derek@ximbiot.com>
64936             Eric Blake  <ebb9@byu.net>
64937
64938         * lib/inttypes.h: Correct grammar in comment.
64939
64940 2006-04-18  Derek Price  <derek@ximbiot.com>
64941             Paul Eggert  <eggert@cs.ucla.edu>
64942
64943         * modules/inttypes: New file.
64944         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64945
64946 2006-04-18  Derek Price  <derek@ximbiot.com>
64947             Paul Eggert  <eggert@cs.ucla.edu>
64948
64949         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64950         New files.
64951
64952 2006-04-18  Derek Price  <derek@ximbiot.com>
64953             Paul Eggert  <eggert@cs.ucla.edu>
64954
64955         * lib/inttypes.h: New file.
64956         * lib/strtoimax.c: Assume <inttypes.h>.
64957
64958 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64961         isn't mounted.  Problem reported by Kir Kolyshkin.
64962
64963 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64966         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64967         Derek R. Price.
64968         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64969         implementation.
64970
64971 2006-04-12  Eric Blake  <ebb9@byu.net>
64972
64973         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64974         is now done automatically by the corresponding Autoconf macro.
64975
64976 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64977
64978         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64979         time_r.h.
64980
64981 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64982
64983         Merge regex changes from libc, removing some of our
64984         POSIX-conformance changes that were rejected and redoing them in a
64985         less-intrusive way.
64986
64987         * lib/regcomp.c (re_compile_internal, init_dfa):
64988         Length arg is now size_t, not Idx.  All uses changed.
64989         (peek_token): Forward decl now says internal_function.
64990         (__re_error_msgid, __re_error_msgid_idx):
64991         Now static rather than extern with attribute_hidden.
64992         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64993         For some reason libc prefers K&R style defns for external functions.
64994         (regerror) [!defined _LIBC]: Likewise.
64995         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64996         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64997         (build_range_exp, build_collating_symbol):
64998         Use K&R-style defn.
64999         (re_compile_fastmap): Use '\0' to memset, not 0.
65000         (utf8_sb_map): Make the calculations more obvious.
65001         (init_dfa, parse_bracket_exp, build_charclass_op):
65002         Call calloc and cast result, as glibc does.
65003         (init_word_char, fetch_token, peek_token, peek_token_bracket):
65004         (build_range_exp, build_collating_symbol):
65005         Now internal functions.
65006
65007         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
65008
65009         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
65010         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
65011         Don't depend on VMS; depend on __VMS instead, for POSIX
65012         namespace cleanness.
65013         (regoff_t): Define to ssize_t, not long int.
65014
65015         Remove the REG_ macros named below.  Instead, make the old names
65016         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
65017         __USE_GNU_REGEX.
65018         (REG_BACKSLASH_ESCAPE_IN_LISTS):
65019         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
65020         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
65021         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
65022         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
65023         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
65024         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
65025         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
65026         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
65027         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
65028         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
65029         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
65030         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
65031         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
65032         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
65033         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
65034         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
65035         (REG_NREGS):
65036         Remove.  All uses replaced by the old RE_* names.
65037         (RE_BACKSLASH_ESCAPE_IN_LISTS):
65038         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
65039         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
65040         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
65041         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
65042         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
65043         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
65044         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
65045         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
65046         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
65047         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
65048         Don't bother having these macros be independent of each others'
65049         values, since they no longer exist in the POSIX name space.
65050
65051         Rename the following member names back to their old names,
65052         unless !__USE_GNU_REGEX.  All uses changed back.
65053         (buffer): Renamed from re_buffer.
65054         (allocated): Renamed from re_allocated.
65055         (used): Renamed from re_used.
65056         (syntax): Renamed from re_syntax.
65057         (fastmap): Renamed from re_fastmap.
65058         (translate): Renamed from re_translate.
65059         (can_be_null): Renamed from re_can_be_null.
65060         (regs_allocated): Renamed from re_regs_allocated.
65061         (fastmap_accurate): Renamed from re_fastmap_accurate.
65062         (no_sub): Renamed from re_no_sub.
65063         (not_bol): Renamed from re_not_bol.
65064         (not_eol): Renamed from re_not_eol.
65065         (newline_anchor): Renamed from re_newline_anchor.
65066         (num_regs): Renamed from rm_num_regs.
65067         (start): Renamed from rm_start.
65068         (end): Renamed from rm_end.
65069
65070         (free_state): Move up a bit.
65071
65072         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
65073         #define to be empty.
65074         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
65075         when that is what is intended.
65076         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
65077         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
65078         (MAX): New macro.
65079         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
65080         All uses changed back to re_malloc, etc.  It's now the caller's
65081         responsibility to check for overflow; all callers changed.
65082         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
65083         (re_x2nrealloc): Remove.
65084         (free_state): Remove decl.
65085
65086         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
65087         (re_set_registers, re_exec):
65088         Use K&R-style defn.
65089
65090         2006-01-31  Roland McGrath  <roland@redhat.com>
65091
65092         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
65093         Reported by Mike Frysinger <vapier@gentoo.org>.
65094
65095         2006-01-15  Andreas Jaeger  <aj@suse.de>
65096
65097         [BZ #1950]
65098         * lib/regex_internal.c (re_string_reconstruct): Adjust for
65099         build_wcs_upper_buffer change.
65100         (build_wcs_upper_buffer): Change return type.
65101
65102         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
65103
65104         * lib/regex_internal.h: Include <stdint.h> if available.
65105
65106         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
65107
65108         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
65109
65110         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65111
65112         * lib/regcomp.c: Adjust for changed secondary hash function.
65113
65114         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
65115
65116         * lib/regex.h: Pretty printing.
65117         Clean up namespace a bit.
65118
65119         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
65120
65121         * lib/regexec.c (update_cur_sifted_state, check_arrival,
65122         check_arrival_add_next_nodes): Avoid using uninitialized variable.
65123
65124         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65125                     Ulrich Drepper  <drepper@redhat.com>
65126
65127         [BZ #1302]
65128         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
65129         changed.
65130         (bitset_word_t): Renamed from bitset_word.  All uses changed.
65131
65132         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
65133
65134         [BZ #281]
65135         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
65136         * lib/regcomp.c: Remove unnecessary uses of
65137         unsigned RE_TRANSLATE_TYPE.
65138         * lib/regex_internal.h: Likewise.
65139         * lib/regex_internal.c: Likewise.
65140         * lib/regexec.c: Likewise.
65141         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
65142
65143         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
65144
65145         * lib/regexec.c (find_recover_state): Remove unnecessary
65146         initialization.
65147         (transit_state_bkref): Make DFA a const pointer.
65148         (get_subexp): Likewise.
65149         (check_arrival): Likewise.
65150         (update_cur_sifted_state): Likewise.
65151         (re_search_internal): Likewise.
65152         (prune_impossible_nodes): Likewise.
65153         (acquire_init_state_context): Likewise.
65154         (proceed_next_node): Likewise.
65155         (set_regs): Likewise.
65156         (free_fail_stack_return): Likewise.
65157         (check_arrival_expand_ecl): Mark DFA parameter as const.
65158         (check_arrival_expand_ecl_sub): Likewise.
65159         (check_subexp_limits): Likewise.
65160         (sub_epsilon_src_nodes):  Likewise.
65161         (add_epsilon_src_nodes):  Likewise.
65162         (merge_state_array): Likewise.
65163         (update_regs): Likewise.
65164         (build_trtable): Likewise.
65165         (sift_states_backward): Mark MCTX parameter as const.
65166         (build_sifted_states): Likewise.
65167         (update_cur_sifted_state): Likewise.
65168         (sift_states_mkref): Likewise.
65169         (check_arrival_expand_ecl): Mark eclosure as const.
65170         (check_dst_limits_calc_pos_1): Likewise.
65171         * lib/regex_internal.h (re_match_context_t): Make dfa a const
65172         pointer.
65173
65174         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
65175
65176         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
65177         (transit_state_sb): Likewise.
65178         (transit_state_mb): Likewise.
65179         (sift_states_iter_mb): Likewise.
65180         (check_arrival_add_next_nodes): Likewise.
65181         (check_node_accept_bytes): Change first parameter to pointer-to-const.
65182         [_LIBC] (re_search_2_stub): Use mempcpy.
65183
65184         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
65185         mbrtowc for very simple UTF-8 case.
65186
65187         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
65188         a pointer-to-const.
65189         (re_acquire_state_context): Likewise.
65190         * lib/regex_internal.h: Adjust prototypes.
65191
65192         * lib/regex.c: Prevent using C++ compilers.
65193
65194         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
65195         (re_acquire_state_context): Likewise.
65196
65197 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65198
65199         * modules/regex (Depends-on): Add ssize_t.
65200
65201 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
65204         translation table.
65205
65206 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65207
65208         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
65209
65210 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
65211             Bruno Haible  <bruno@clisp.org>
65212
65213         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
65214         <sys/types.h> and <inttypes.h>.
65215
65216 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65217
65218         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
65219         `__error_t_defined', so argp.h will not typedef the former.
65220
65221 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65222
65223         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
65224         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
65225         glibc names.  Even if glibc is changed to conform to POSIX, the
65226         traditional names will be available anyway, since regex depends on
65227         the extensions module.  Also, fix a longstanding typo in the
65228         implementation of Spencer ERE test #75 from grep 2.3.  Problems
65229         reported by Emanuele Giaquinta.  Also, change sense of cached
65230         variable, so that the message makes sense.
65231
65232 2006-03-24  Simon Josefsson  <jas@extundo.com>
65233
65234         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
65235         including some doc fixes.
65236         (base64_encode_alloc): Fix +1 bug on allocation failures.
65237
65238 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65239
65240         * lib/base64.c (base64_encode): Do not read past end of array with
65241         unsanitized input on systems with CHAR_BIT > 8.
65242
65243 2006-03-24  Eric Blake  <ebb9@byu.net>
65244
65245         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
65246
65247 2006-03-22  Karl Berry  <karl@gnu.org>
65248
65249         * config/srclist.txt (*setenv.[ch]): get from coreutils.
65250         * config/srclistvars.sh (COREUTILS): new var.
65251
65252 2006-03-17  Jim Meyering  <jim@meyering.net>
65253
65254         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
65255         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
65256
65257 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65258
65259         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
65260         no longer needs it.  Instead, check that regoff_t is as least
65261         as wide as ptrdiff_t.
65262
65263         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
65264         so that our regex.h stays compatible with the installed regex.
65265         This is helpful for installers who configure --without-included-regex.
65266         Problem reported by Emanuele Giaquinta.
65267
65268 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65269
65270         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
65271         Typedef to long int, not to off_, as POSIX will likely change
65272         in that direction.
65273
65274 2006-03-15  Eric Blake  <ebb9@byu.net>
65275
65276         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
65277
65278 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65279
65280         * lib/argp-help.c (validate_uparams): Fix typo
65281         * lib/argp-parse.c (argp_default_options): Consistently begin help
65282         messages with a lowercase letter.
65283
65284 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
65285
65286         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
65287         overrun buffers and shouldn't be used (much as gets shouldn't be
65288         used).
65289         * lib/time_r.c (asctime_r, ctime_r): Likewise.
65290
65291 2006-03-08  Simon Josefsson  <jas@extundo.com>
65292
65293         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
65294         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65295
65296 2006-03-08  Simon Josefsson  <jas@extundo.com>
65297
65298         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
65299         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65300
65301 2006-03-08  Simon Josefsson  <jas@extundo.com>
65302
65303         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
65304         signal that configure disabled the device.
65305
65306 2006-03-08  Simon Josefsson  <jas@extundo.com>
65307
65308         * build-aux/maint.mk: Fix refresh-po, to handle no translated
65309         languages.
65310
65311 2006-03-07  Simon Josefsson  <jas@extundo.com>
65312
65313         * modules/getopt (Depends-on): Add unistd.
65314
65315         * modules/unistd: New file.
65316
65317 2006-03-07  Simon Josefsson  <jas@extundo.com>
65318
65319         * modules/gc-random: New file.
65320
65321 2006-03-07  Simon Josefsson  <jas@extundo.com>
65322
65323         * m4/unistd_h.m4: New file.
65324
65325 2006-03-07  Simon Josefsson  <jas@extundo.com>
65326
65327         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
65328         test to be side-effect free by storing the result in the cache
65329         variable gl_cv_lib_readline, and moving the assignment of
65330         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65331         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65332
65333 2006-03-07  Simon Josefsson  <jas@extundo.com>
65334
65335         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65336         error on missing devices (the functions will return an error).
65337
65338         * m4/gc.m4: Move random stuff to gc-random.m4
65339
65340 2006-03-07  Simon Josefsson  <jas@extundo.com>
65341
65342         * lib/unistd_.h: New file.
65343
65344 2006-03-07  Simon Josefsson  <jas@extundo.com>
65345
65346         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65347
65348 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65349
65350         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65351         Problem reported by Juan Manuel Guerrero.
65352
65353 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65354
65355         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65356         the unistd module.
65357         * lib/getlogin_r.c: Likewise.
65358         * lib/getlogin_r.h: Likewise.
65359         * lib/glob.c: Likewise.
65360         * lib/pagealign_alloc.c: Likewise.
65361         * lib/unistd_.h: Remove; no longer needed.
65362
65363 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65366         Add unistd.
65367         * modules/c-stack (Depends-on): Add unistd.
65368         * modules/getlogin_r: Likewise.
65369         * modules/glob: Likewise.
65370         * modules/pagealign_alloc: Likewise.
65371         * modules/unistd (Files): Remove lib/unistd_.h.
65372         (EXTRA_DIST): Remove.
65373         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65374         need unistd_.h.
65375         (MOSTLYCLEANFILES): Remove unistd.h-t.
65376
65377 2006-03-03  Simon Josefsson  <jas@extundo.com>
65378
65379         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65380
65381 2006-03-03  Simon Josefsson  <jas@extundo.com>
65382
65383         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65384         libidn and bison.
65385
65386 2006-03-03  Simon Josefsson  <jas@extundo.com>
65387
65388         * build-aux/maint.mk: Add indent target.
65389
65390 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65391
65392         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65393         our replacement poll.h in any case, to avoid a differing
65394         declaration from a system header.  Seen on AIX.
65395
65396 2006-03-01  Simon Josefsson  <jas@extundo.com>
65397
65398         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65399         <kasal@ucw.cz>.
65400
65401 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65402
65403         * modules/gettime (Depends-on): Add extensions module.
65404         * modules/nanosleep (Depends-on): Likewise.
65405         * modules/settime (Depends-on): Likewise.
65406
65407 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65408
65409         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65410         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65411         pedantically.
65412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65413         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65414
65415         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65416         not "==".  Reported by Ralf Wildenhues.
65417
65418 2006-03-01  Karl Berry  <karl@gnu.org>
65419
65420         * doc/Copyright/request-*: new files, synced from gnuorg.
65421
65422 2006-03-01  Karl Berry  <karl@gnu.org>
65423
65424         * config/srclist.txt (Copyright/*): new entries.
65425
65426 2006-02-28  Simon Josefsson  <jas@extundo.com>
65427
65428         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65429
65430 2006-02-27  Simon Josefsson  <jas@extundo.com>
65431
65432         * lib/base64.h: Indent #define's.  From Jim Meyering
65433         <jim@meyering.net>.
65434
65435 2006-02-27  Jim Meyering  <jim@meyering.net>
65436
65437         Revert the change of 2006-02-24, so these files can continue
65438         to be sync'd from gettext.
65439         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65440         of `config.h'.
65441
65442 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65443
65444         * modules/intprops: New file.
65445         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65446         Add intprops.
65447         * modules/getloadavg (Files): Remove lib/intprops.h.
65448         (Depends-on): Add intprops.
65449         * modules/human: Likewise.
65450         * modules/inttostr: Likewise.
65451         * modules/openat: Likewise.
65452         * modules/sig2str: Likewise.
65453         * modules/userspec: Likewise.
65454         * modules/utimecmp: Likewise.
65455         * modules/xnanosleep: Likewise.
65456         * modules/xstrtol: Likewise.
65457
65458 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65459
65460         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65461         * modules/lock-tests (TESTS): Use $(EXEEXT).
65462         * modules/tls-tests: Likewise.
65463         * modules/argp-tests: Likewise.
65464         (check_PROGRAMS): New var, replacing...
65465         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65466
65467 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65468
65469         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65470         `config.h'.
65471
65472 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65473
65474         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65475
65476 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65477
65478         Sync from coreutils.
65479         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65480         gl_CHDIR_SAFER.
65481
65482 2006-02-22  Jim Meyering  <jim@meyering.net>
65483
65484         Sync from coreutils.
65485         * m4/chdir-safer.m4: New file.
65486
65487 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65490         AT_FDCWD exceeds INT_MAX.
65491         * lib/openat.h (AT_FDCWD): Likewise.
65492
65493 2006-02-17  Eric Blake  <address@hidden>
65494
65495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65496
65497 2006-02-16  Simon Josefsson  <jas@extundo.com>
65498
65499         * modules/getaddrinfo (Depends-on): Add sys_socket.
65500
65501 2006-02-15  Simon Josefsson  <jas@extundo.com>
65502
65503         * build-aux/maint.mk: Add dsyntax-check rule.
65504
65505 2006-02-15  Eric Blake  <ebb9@byu.net>
65506
65507         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65508         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65509         'present but cannot compile' warnings on cygwin.
65510         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65511         use ws2tcpip.h if sys/socket.h works.
65512         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65513         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65514
65515 2006-02-14  Simon Josefsson  <jas@extundo.com>
65516
65517         * modules/maintainer-makefile (Files): Rename.
65518
65519         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65520         and (the local) Makefile.cfg to maint-cfg.mk.
65521
65522         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65523         to the latter.
65524
65525         * modules/maintainer-makefile: New module.
65526
65527         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65528         severaly stripped to make it possible to build it up from scratch
65529         with reliable tests.
65530
65531         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65532         fixes to permit overriding the default actions when configure and
65533         makefile are not available.
65534
65535 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         Sync from coreutils.
65538         * modules/lstat (Depends-on): Don't depend on xalloc.
65539         (License): Change from GPL to LGPL, since this is now simply a
65540         replacement for a libc function.
65541
65542 2006-02-14  Jim Meyering  <jim@meyering.net>
65543
65544         Sync from coreutils.
65545
65546         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65547         failure on deficient systems, and simplify gnulib lgpl dependencies.
65548         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65549         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65550
65551         * lib/xalloc-die.c: Remove unused definition of N_.
65552
65553 2006-02-14  Jim Meyering  <jim@meyering.net>
65554
65555         Sync from coreutils.
65556         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65557         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65558         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65559         double-quote uses of that variable, to accommodate the rare case in
65560         which getmntent is available in none of the libraries checked.  This
65561         happens at least on FreeBSD 5.0.
65562
65563 2006-02-13  Simon Josefsson  <jas@extundo.com>
65564
65565         * gnulib-tool (Usage): Fix --import, from
65566         karl@freefriends.org (Karl Berry).
65567
65568 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65569
65570         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65571
65572 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65573
65574         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65575         "autoupdate" on 2005-12-12.
65576
65577 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         * modules/closeout (Depends-on): Remove atexit.
65580
65581 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65582
65583         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65584         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65585
65586 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65587
65588         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65589         __EXTENSIONS__ if this causes compilation to fail.  Problem
65590         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65591         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65592
65593 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65596         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65597         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65598         All uses changed.
65599
65600 2006-01-26  Simon Josefsson  <jas@extundo.com>
65601
65602         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65603         prototype is visible on mingw32.
65604
65605         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65606         for mingw32.
65607
65608         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65609         mingw32).
65610
65611 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65612
65613         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65614         attempt to open for write; this always fails, at least on POSIX
65615         hosts.  This reinstates the 2006-01-09 change, which was
65616         inadvertently removed.
65617
65618 2006-01-26  Bruno Haible  <bruno@clisp.org>
65619
65620         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65621         Reported by Paul Eggert.
65622
65623 2006-01-26  Bruno Haible  <bruno@clisp.org>
65624             Paul Eggert  <eggert@cs.ucla.edu>
65625
65626         * lib/stdbool_.h (_Bool)
65627         [(! (defined __cplusplus || defined __BEOS__)
65628           && !defined __GNUC__
65629           && !(defined __HP_cc || defined __xlc__
65630                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65631                || defined __sgi))]:
65632         #define to signed char in these cases too; this simplifies
65633         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65634         etc., separately) and makes it more conservative.
65635
65636 2006-01-25  Simon Josefsson  <jas@extundo.com>
65637
65638         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65639         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65640         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65641
65642 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65643
65644         * lib/argp-namefrob.h: Bugfix. Remove stray #
65645
65646 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65647
65648         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65649         so that we test the test.
65650         Check for yet another HP-UX cc bug involving *bool |= bool.
65651
65652 2006-01-25  Karl Berry  <karl@gnu.org>
65653
65654         * config/srclist.txt (vasnprintf.c): sync lost.
65655
65656 2006-01-25  Jim Meyering  <jim@meyering.net>
65657
65658         Sync from the stable (b5) branch of coreutils:
65659
65660         * lib/fts.c (fts_children): Don't let close() clobber errno from
65661         failed fchdir().
65662
65663         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65664         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65665         a dangling symlink.  That can also happen at least for ELOOP.
65666         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65667         FYI, this bug predates the inclusion of fts.c in coreutils.
65668
65669         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65670         in their own block, so pre-c99 compilers don't object.
65671
65672         Avoid the double-free (first in fts_read, second in fts_close) that
65673         would occur when an `active' directory is made inaccessible (e.g.,
65674         via chmod a-x) during a traversal.
65675         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65676         before returning.  Reproduce this failure by
65677         mkdir -p a/b; cd a; chmod a-x . b
65678         Reported by Stavros Passas.
65679
65680 2006-01-25  Jim Meyering  <jim@meyering.net>
65681
65682         * lib/fileblocks.c: Remove more useless parentheses.
65683         * lib/readutmp.h: Likewise.
65684
65685 2006-01-25  Bruno Haible  <bruno@clisp.org>
65686
65687         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65688         warnings.
65689         Reported by Paul Eggert.
65690
65691 2006-01-25  Bruno Haible  <bruno@clisp.org>
65692
65693         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65694         rid of a trap command. For Solaris sh.
65695         Reported by Mark D. Baushke <mdb@gnu.org>.
65696
65697 2006-01-24  Simon Josefsson  <jas@extundo.com>
65698
65699         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65700         Bruno.
65701
65702 2006-01-24  Karl Berry  <karl@gnu.org>
65703
65704         * config/srclist.txt (argp-namefrob.h): sync lost.
65705
65706 2006-01-24  Jim Meyering  <jim@meyering.net>
65707
65708         * modules/openat (Files): Add lib/intprops.h.
65709         From Mark D. Baushke.
65710
65711 2006-01-24  Jim Meyering  <jim@meyering.net>
65712
65713         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65714         Reported by Mark D. Baushke.
65715
65716 2006-01-24  Jim Meyering  <jim@meyering.net>
65717
65718         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65719
65720 2006-01-24  Bruno Haible  <bruno@clisp.org>
65721
65722         * modules/strnlen (Maintainer): Change from glibc to all.
65723
65724 2006-01-24  Bruno Haible  <bruno@clisp.org>
65725
65726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65727         Patch by Paul Eggert.
65728
65729 2006-01-24  Bruno Haible  <bruno@clisp.org>
65730
65731         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65732         already has it.
65733         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65734         2005-11-26.
65735
65736         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65737         'signed char' to avoid problems with the built-in _Bool type.
65738         Reported by Paul Eggert on 2005-11-26.
65739
65740 2006-01-24  Bruno Haible  <bruno@clisp.org>
65741
65742         * gnulib-tool (func_import): Avoid constructing complicated sed
65743         expressions inside backquote.
65744         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65745
65746 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65747
65748         These changes imported from libc.
65749         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65750         test and two separate function calls.
65751         * lib/strndup.c (__strndup): Add libc_hidden_def.
65752
65753 2006-01-23  Simon Josefsson  <jas@extundo.com>
65754
65755         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65756         Remove the test_*_SOURCES variable: automake infers it by default.
65757         * modules/tls-tests: Likewise.
65758
65759 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65760
65761         Work around porting bugs reported by Dieter in
65762         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65763         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65764         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65765         Include "getopt.h" first, to check interface.
65766         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65767         !HAVE_DECL_GETENV.
65768         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65769         (__strndup): Revert to K&R-style function dfns, the glibc style.
65770         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65771         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65772         Include strnlen.h first, to get prototype properly.
65773         (strnlen): Renamed from __strnlen.
65774         Remove weak alias.
65775
65776 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65779
65780 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65781
65782         * config/srclist.txt: Adjust to reflect glibc reorganization.
65783         This affects only comments.
65784
65785 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65786
65787          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65788          Reported by Bruce Korb <bkorb@gnu.org>.
65789
65790 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65791
65792         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65793         to pacify gcc -Wswitch-default.
65794
65795 2006-01-22  Bruno Haible  <bruno@clisp.org>
65796
65797         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65798         temporary buffer for sprintf, take into account the precision also
65799         for 'd', 'i', 'u', 'o', 'x', 'X'.
65800
65801 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65802
65803         * modules/argp-tests: New module
65804         * tests/test-argp.c: New file
65805         * tests/test-argp-2.sh: New file
65806
65807 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65808
65809         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65810         (__argp_base_name): Removed
65811         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65812         typo.
65813         (__argp_base_name): Provide macro definition or extern declaration
65814         depending on the configuration
65815
65816 2006-01-20  Simon Josefsson  <jas@extundo.com>
65817
65818         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65819
65820 2006-01-20  Simon Josefsson  <jas@extundo.com>
65821
65822         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65823
65824 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65825
65826         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65827         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65828         Suggested by Bruno Haible.
65829
65830 2006-01-20  Karl Berry  <karl@gnu.org>
65831
65832         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65833         until changes propagate, I guess.
65834
65835 2006-01-19  Simon Josefsson  <jas@extundo.com>
65836
65837         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65838
65839 2006-01-19  Simon Josefsson  <jas@extundo.com>
65840
65841         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65842
65843 2006-01-19  Simon Josefsson  <jas@extundo.com>
65844
65845         * gnulib-tool: Set check_PROGRAMS.
65846
65847         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65848         modules/des-tests, modules/gc-arcfour-tests,
65849         modules/gc-arctwo-tests, modules/gc-des-tests,
65850         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65851         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65852         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65853         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65854         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65855         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65856         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65857         test_*_SOURCES.
65858
65859 2006-01-18  Simon Josefsson  <jas@extundo.com>
65860
65861         * modules/socklen (Depends-on): Depend on sys_socket.
65862
65863 2006-01-18  Simon Josefsson  <jas@extundo.com>
65864
65865         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65866         modules/des-tests, modules/gc-arcfour-tests,
65867         modules/gc-arctwo-tests, modules/gc-des-tests,
65868         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65869         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65870         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65871         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65872         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65873         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65874         $(EXEEXT) to automake TESTS variable, for mingw32.
65875
65876 2006-01-17  Simon Josefsson  <jas@extundo.com>
65877
65878         * modules/socklen (Include): Need sys/socket.h.
65879
65880 2006-01-17  Bruno Haible  <bruno@clisp.org>
65881
65882         * modules/ssize_t (Include): Add <sys/types.h>.
65883
65884 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65887         it's not portable and it doesn't work with cross-compiles.
65888         Problem reported by Bruno Haible.  Fix missing-$ typo in
65889         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65890         -zignore from being used with Sun's C compiler.
65891
65892 2006-01-12  Simon Josefsson  <jas@extundo.com>
65893
65894         * lib/base64.c: Fix warning, reported by Bruno Haible
65895         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65896
65897 2006-01-12  Bruno Haible  <bruno@clisp.org>
65898
65899         * modules/ldd: New file.
65900         * build-aux/ldd.sh.in: New file.
65901         * MODULES.html.sh (Support for building libraries and executables): Add
65902         ldd.
65903
65904 2006-01-12  Bruno Haible  <bruno@clisp.org>
65905
65906         * m4/ldd.m4: New file.
65907
65908 2006-01-12  Bruno Haible  <bruno@clisp.org>
65909
65910         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65911         endless loop while replacing $auxdir with build-aux.
65912
65913 2006-01-11  Simon Josefsson  <jas@extundo.com>
65914
65915         * lib/stdint_.h (SIZE_MAX): Add missing (.
65916
65917 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         Sync from coreutils.
65920         * lib/md5.c: Fix commentary typos.
65921         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65922         * lib/md5.h (__attribute__): Remove; unused.
65923         * lib/sha1.c: Fix commentary to match md5 better.
65924         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65925         so that we don't need to worry about alignment.  All uses changed.
65926         This merges the 2005-10-28 md5 change into sha1.
65927
65928 2006-01-11  Jim Meyering  <jim@meyering.net>
65929
65930         Sync from coreutils.
65931         * lib/md5.c (OP): Fix spacing.
65932
65933 2006-01-11  Bruno Haible  <bruno@clisp.org>
65934
65935         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65936         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65937         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65938
65939 2006-01-11  Bruno Haible  <bruno@clisp.org>
65940
65941         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65942         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65943         the "early" section as well.
65944
65945 2006-01-11  Bruno Haible  <bruno@clisp.org>
65946
65947         Avoid "ar: no archive members specified" error on MacOS X.
65948         * gnulib-tool (func_modules_add_dummy): New function.
65949         (func_import, func_create_testdir): Invoke it.
65950
65951 2006-01-11  Bruno Haible  <bruno@clisp.org>
65952
65953         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65954         with $auxdir in AC_CONFIG_FILES statements.
65955
65956 2006-01-11  Bruno Haible  <bruno@clisp.org>
65957
65958         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65959         Initialize also noinst_HEADERS to empty.
65960
65961 2006-01-11  Bruno Haible  <bruno@clisp.org>
65962
65963         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65964         variables.
65965         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65966         autoreconf.
65967
65968 2006-01-11  Bruno Haible  <bruno@clisp.org>
65969
65970         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65971         overridable by the user.
65972         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65973
65974 2006-01-10  Simon Josefsson  <jas@extundo.com>
65975
65976         * modules/sys_socket: New file.
65977
65978 2006-01-10  Simon Josefsson  <jas@extundo.com>
65979
65980         * m4/sys_socket_h.m4: New file.
65981
65982 2006-01-10  Simon Josefsson  <jas@extundo.com>
65983
65984         * lib/socket_.h: New file.
65985
65986 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65987
65988         * modules/readutmp (Maintainer): Add myself.
65989
65990 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65991
65992         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65993         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65994         People who are still concerned with buggy memcmp implementations
65995         can invoke gl_FUNC_MEMCMP themselves.
65996
65997 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65998
65999         * lib/regex_internal.h (BITSET_WORD_BITS):
66000         Work around a bug in 64-bit PGC (before version 6.1-2), where the
66001         preprocessor mishandles large unsigned values as if they were signed.
66002         Problem reported by Claudio Fontana in
66003         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
66004
66005 2006-01-10  Jim Meyering  <jim@meyering.net>
66006
66007         Avoid the double-free (first in fts_read, second in fts_close) that
66008         would occur when an `active' directory is made inaccessible (e.g.,
66009         via chmod a-x) during a traversal.
66010         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66011         before returning.  Reproduce this failure by
66012         mkdir -p a/b; cd a; chmod a-x . b
66013         Reported by Stavros Passas.
66014
66015         Sync from coreutils.
66016         * lib/sha1.c: Tweak grammar in a comment.
66017
66018 2006-01-10  Jim Meyering  <jim@meyering.net>
66019
66020         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
66021         Patch by Joerg Sonnenberger.
66022
66023 2006-01-10  Bruno Haible  <bruno@clisp.org>
66024
66025         * modules/readutmp: Depend on module free.
66026         * modules/strtok_r: Depend on module restrict.
66027
66028 2006-01-10  Bruno Haible  <bruno@clisp.org>
66029
66030         * modules/gettext (configure.ac): Add an invocation of
66031         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
66032
66033 2006-01-10  Bruno Haible  <bruno@clisp.org>
66034
66035         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
66036         Reported by Werner Lemberg <wl@gnu.org>.
66037
66038 2006-01-10  Bruno Haible  <bruno@clisp.org>
66039
66040         * lib/localcharset.c: Update from GNU gettext.
66041
66042 2006-01-10  Bruno Haible  <bruno@clisp.org>
66043
66044         * lib/argp.h (__const): Remove macro. Use const instead.
66045         * lib/argp-fmtstream.h (__const): Likewise.
66046         * lib/glob_.h (__const): Remove macro.
66047         * lib/glob-libc.h: Use const instead of __const.
66048
66049 2006-01-10  Bruno Haible  <bruno@clisp.org>
66050
66051         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
66052         variable.
66053         Needed to avoid an automake error regarding the 'gettext' module.
66054
66055 2006-01-09  Simon Josefsson  <jas@extundo.com>
66056
66057         * modules/inet_ntop (Depends-on): Add restrict.
66058
66059 2006-01-09  Simon Josefsson  <jas@extundo.com>
66060
66061         * modules/gc-rijndael-tests (License): Put under LGPL.
66062
66063         * modules/gc-des-tests (License): Likewise.
66064
66065         * modules/gc-arcfour-tests (License): Likewise.
66066
66067         * modules/gc-arctwo-tests (License): Likewise.
66068
66069         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
66070
66071         * modules/gc-hmac-sha1-tests (Files): Likewise.
66072
66073         * modules/gc-hmac-md5-tests (License): Likewise.
66074
66075         * modules/gc-sha1-tests (License): Likewise.
66076
66077         * modules/gc-md5-tests (License): Likewise.
66078
66079         * modules/gc-md4-tests (License): Likewise.
66080
66081         * modules/gc-md2-tests (License): Likewise.
66082
66083         * modules/gc-tests (License): Likewise.
66084
66085         * modules/des-tests (License): Likewise.
66086
66087         * modules/md4-tests (License): Likewise.
66088
66089         * modules/md2-tests (License): Likewise.
66090
66091 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66092
66093         Sync from coreutils:
66094
66095         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
66096         * modules/lib-ignore: New file.
66097         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
66098         chdir-safer.m4, lchmod.m4.
66099         * modules/openat: Add mkdirat.c, openat-priv.h.
66100
66101 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66102
66103         Sync from coreutils.
66104         * m4/lib-ignore.m4: New file.
66105         * m4/lchmod.m4: New file.
66106
66107 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66108
66109         Sync from coreutils.
66110         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
66111         for write access: POSIX says that must fail.
66112         * lib/fts.c (diropen): Likewise.
66113         * lib/save-cwd.c (save_cwd): Likewise.
66114         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
66115         well, for minor improvements on hosts that lack O_DIRECTORY.
66116         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
66117         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
66118         Fall back on chown if open failed with EACCES.
66119
66120         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
66121         Report an error at compile-time if only a 1-second nominal clock
66122         resolution is found.
66123
66124         * lib/lchmod.h: New file.
66125         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
66126         (make_dir_parents): Use lchown rather than chown, and
66127         lchmod rather than chmod.
66128
66129         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
66130         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
66131         "proc" reported by n0dalus.
66132
66133         * lib/mountlist.c: Include <limits.h>.
66134         (dev_from_mount_options)
66135         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
66136         New function.  It no longer assumes "dev=" has the System V meaning
66137         on Linux (since it doesn't).  It also parses "dev=" more carefully.
66138         (read_file_system_list)
66139         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
66140         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
66141         dev= in that case.
66142
66143         * lib/posixtm.h (PDS_PRE_2000): New macro.
66144         * lib/posixtm.c (year): Arg is now syntax_bits rather than
66145         allow_century.  All usages changed.  Reject dates outside the range
66146         1969-1999 if PDS_PRE_2000 is used.
66147
66148 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66149
66150         Sync from coreutils.
66151         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
66152         (Time of day items): Mention the possibility of leap seconds.
66153         Problem reported by Dr. David Alan Gilbert.
66154
66155 2006-01-09  Jim Meyering  <jim@meyering.net>
66156
66157         Sync from coreutils.
66158
66159         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
66160
66161         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
66162
66163         * lib/modechange.c (mode_compile): Reject an invalid mode string
66164         that starts with an octal digit.  From Andreas Gruenbacher.
66165
66166         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
66167         and dup to open_safer and dup_safer, respectively.
66168         (openat_permissive): Fix typo in comment.
66169
66170         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
66171         "gettext.h"; either no longer needed or are guaranteed by openat.h.
66172         (_): Remove; no longer needed.
66173         (openat): Renamed from rpl_openat; no need for rpl_openat
66174         since openat.h renames openat for us.
66175         Replace most of the body with a call to openat_permissive,
66176         to avoid duplicate code.
66177         Port to (probably hypothetical) environments were mode_t is
66178         wider than int.
66179         (openat_permissive): Require mode arg, so that we can check
66180         types better.  Put it just after flags.  Change cwd failure
66181         indicator from pointer-to-bool to pointer-to-errno-value.
66182         All callers changed.
66183         Invoke openat_save_fail and/or openat_restore_fail if
66184         cwd_errno is null, so that openat can call us.
66185         (openat_permissive, fdopendir, fstatat, unlinkat):
66186         Simplify errno handling to avoid some duplicate code,
66187         as it's OK to set errno on success.
66188         * lib/openat.h: Revamp code so that function macros depend on
66189         __OPENAT_PREFIX only, not also on AT_FDCWD.
66190         (openat_ro): Remove.  Caller changed to use openat_permissive.
66191         (openat_permissive): Now a macro, if not a function.
66192         (openat_restore_fail, openat_save_fail): Now always functions,
66193         since mkdirat needs them even if __OPENAT_PREFIX is defined.
66194
66195         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
66196         and openat.c.
66197         * lib/mkdirat.c: Include openat-priv.h.
66198         Remove definitions of macros defined therein.
66199         * lib/openat.c: Likewise.
66200
66201         * lib/mkdirat.c (mkdirat): New file and function.
66202         * lib/openat.h (mkdirat): Declare.
66203
66204         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
66205
66206         * lib/openat.h (openat_permissive): Declare.
66207         (openat_ro): Define.
66208
66209         * lib/openat.c (EXPECTED_ERRNO): New macro.
66210         (openat_permissive): New function -- used in remove.c rewrite.
66211         (all functions): Set errno just before returning, only if there
66212         was an actual failure.
66213         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
66214
66215         Emulate openat-family functions using Linux's procfs, if possible.
66216         Idea and some code based on Ulrich Drepper's glibc changes.
66217
66218         * lib/openat.c: (BUILD_PROC_NAME): New macro.
66219         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
66220         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
66221         before falling back on save_cwd and restore_cwd.
66222         (fdopendir, fstatat, unlinkat): Likewise.
66223
66224         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
66225         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
66226
66227         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
66228         as second argument to va_arg.  Otherwise, some versions of gcc
66229         warn that `if this code is reached, the program will abort'.
66230
66231 2006-01-09  Jim Meyering  <jim@meyering.net>
66232
66233         Sync from coreutils.
66234         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
66235         Require openat-priv.h.
66236
66237 2006-01-09  Bruno Haible  <bruno@clisp.org>
66238
66239         * modules/strnlen (Include): Use strnlen.h.
66240
66241 2006-01-09  Bruno Haible  <bruno@clisp.org>
66242
66243         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
66244
66245 2006-01-09  Bruno Haible  <bruno@clisp.org>
66246
66247         * lib/sysexit_.h (EX_OK): New macro.
66248         Suggested by Martin Lambers <marlam@marlam.de>.
66249
66250 2006-01-09  Bruno Haible  <bruno@clisp.org>
66251
66252         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
66253         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
66254
66255 2006-01-09  Bruno Haible  <bruno@clisp.org>
66256
66257         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
66258         numbers.
66259
66260 2006-01-09  Bruno Haible  <bruno@clisp.org>
66261
66262         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
66263         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
66264         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
66265         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
66266
66267 2006-01-09  Bruno Haible  <bruno@clisp.org>
66268
66269         * build-aux/javacomp.sh.in: New file, moved from lib/.
66270         * modules/javacomp-script (Files): Update.
66271         (configure.ac): Add AC_CONFIG_FILES invocation.
66272         (EXTRA_DIST): Remove variable.
66273
66274         * build-aux/javaexec.sh.in: New file, moved from lib/.
66275         * modules/javaexec (Files): Update.
66276         (configure.ac): Add AC_CONFIG_FILES invocation.
66277         (EXTRA_DIST): Remove javaexec.sh.in.
66278
66279         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
66280         * modules/csharpcomp-script (Files): Update.
66281         (configure.ac): Add AC_CONFIG_FILES invocation.
66282         (EXTRA_DIST): Remove variable.
66283
66284         * build-aux/csharpexec.sh.in: New file, moved from lib/.
66285         * modules/csharpexec (Files): Update.
66286         (configure.ac): Add AC_CONFIG_FILES invocation.
66287         (EXTRA_DIST): Remove csharpexec.sh.in.
66288
66289 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66290
66291         Sync from coreutils.
66292
66293         Add POSIX ACL support
66294         * lib/acl.h (copy_acl, set_acl): Add declarations.
66295         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
66296         systems other than Linux.
66297         (chmod_or_fchmod): New function: use fchmod when possible,
66298         and chmod otherwise.
66299         (file_has_acl): Add a POSIX ACL implementation, with a
66300         Linux-specific subcase.
66301         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
66302         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
66303         acls are unsupported.
66304         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
66305         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
66306         are unsupported.
66307
66308 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66309
66310         Sync from coreutils.
66311         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
66312
66313 2006-01-07  Bruno Haible  <bruno@clisp.org>
66314
66315         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
66316         gl_EARLY.
66317
66318 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * lib/strftime.c (tzname): Don't declare if it is already #defined.
66321         Problem reported for Mingw by Mark Junker.
66322
66323 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66324
66325         * README: Gnulib normally doesn't generate a tarball.
66326
66327 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
66328
66329         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66330         long int, not int, for nanosecond counts, so that people who are
66331         used to POSIX struct timespec won't be surprised.  Reported by Jim
66332         Meyering.
66333
66334 2005-12-28  Bruno Haible  <bruno@clisp.org>
66335
66336         * build-aux/config.rpath: Update from GNU gettext.
66337
66338 2005-12-16  Jim Meyering  <jim@meyering.net>
66339
66340         * modules/fprintftime: New module.
66341         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66342
66343 2005-12-16  Jim Meyering  <jim@meyering.net>
66344
66345         * m4/fprintftime.m4: New file.
66346
66347 2005-12-16  Jim Meyering  <jim@meyering.net>
66348
66349         * lib/fprintftime.c, lib/fprintftime.h: New files.
66350
66351 2005-12-15  Simon Josefsson  <jas@extundo.com>
66352
66353         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66354         new m4/socklen.m4.
66355
66356 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66357
66358         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66359         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66360
66361 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66362
66363         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66364         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66365         struct uparams is valid. Fall back to the default values if it is
66366         not.
66367
66368 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66369
66370         * modules/argp (Files): Add argp-pin.c
66371         (Depends-on): dirname
66372         (lib_SOURCES): Add argp-pin.c
66373
66374 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66375
66376         * m4/argp.m4:  Check if program_invocation_name and
66377         program_invocation_short_name are declared and define appropriate
66378         macros if they are not.
66379
66380 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66381
66382         * lib/argp-help.c (__argp_base_name): New function
66383         (__argp_short_program_name): Rewrite using __argp_base_name
66384         * lib/argp-namefrob.h: Define program_invocation_name and
66385         program_invocation_short_name if requested
66386         (__argp_base_name): Add prototype
66387         * lib/argp-parse.c (argp_def): Use gettext wrappers
66388         (argp_default_parser): Use __argp_base_name
66389         * lib/argp-pin.c: New file. Defines program_invocation_name and
66390         program_invocation_short_name on systems that lack them.
66391
66392 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66393
66394         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66395         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66396         porting problem reported by Georg Schwarz in
66397         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66398
66399 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66400
66401         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66402         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66403         porting problem reported by Georg Schwarz in
66404         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66405
66406 2005-12-05  Bruno Haible  <bruno@clisp.org>
66407
66408         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66409         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66410         Reported by Mark Junker <mjscod@gmx.de>.
66411
66412 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66413
66414         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66415         Use implementation from Albert Chin, with some
66416         comments/corrections by Stepan Kasal and myself.
66417
66418 2005-12-02  Bruno Haible  <bruno@clisp.org>
66419
66420         * gnulib-tool (func_import): Accept GPLed build tool modules when
66421         --lgpl is given.
66422         * modules/csharpcomp-script: New file.
66423         * modules/csharpcomp: Depend on it.
66424         * modules/javacomp-script: New file.
66425         * modules/javacomp: Depend on it.
66426         Suggested by Simon Josefsson.
66427
66428 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66429
66430         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66431         statement, to work around an HP-UX 10.20 compiler bug reported by
66432         Peter O'Gorman.
66433
66434 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         * modules/savedir (Depends-on): Add openat.
66437
66438 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66439
66440         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66441         (uintmax_t) [defined uintmax_t]: Do not declare.
66442         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66443         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66444         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66445         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66446         sake of portability to weird hosts that C allows (though we don't
66447         know of any practical examples).
66448
66449         * lib/savedir.h (fdsavedir): New decl.
66450         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66451         contains most of the former guts of savedir.
66452         (savedir): Use savedirstream.
66453         Include "openat.h".
66454
66455 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66456
66457         * modules/obstack (Files): Add m4/ulonglong.m4.
66458         Problem reported by Davide Angelocola.
66459
66460 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66461
66462         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66463         coreutils no longer futzes with rounding modes.
66464
66465 2005-11-14  Jim Meyering  <jim@meyering.net>
66466
66467         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66468         replacement of mkstemp.
66469
66470 2005-11-10  Simon Josefsson  <jas@extundo.com>
66471
66472         * lib/readline.c: Remove EOL.
66473
66474 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66475
66476         * modules/gethrxtime (Depends-on): Add gettime.
66477
66478 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66479
66480         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66481         or gettimeofday; no longer needed.
66482
66483 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66484
66485         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66486         time business.
66487         (gethrxtime) [! (HAVE_NANOUPTIME
66488         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66489         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66490         our own approximation.
66491
66492 2005-11-08  Eric Blake  <ebb9@byu.net>
66493
66494         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66495
66496 2005-11-08  Eric Blake  <ebb9@byu.net>
66497
66498         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66499
66500 2005-11-04  Bruno Haible  <bruno@clisp.org>
66501
66502         * gnulib-tool: Implement --update mode.
66503
66504 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         Fix porting problem reported by Theodoros V. Kalamatianos.
66507         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66508         Don't assume that futimes failing means we must fail.
66509
66510 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66511
66512         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66513         variables to suggest the intended function of the PATH_MAX check.
66514
66515 2005-10-30  Kean Johnston  <jkj@sco.com>
66516
66517         Trivial changes to support SCO systems.
66518         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66519         as PATH_MAX.
66520         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66521         where __ptr is null when no I/O is pending.
66522
66523 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66524
66525         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66526         leave errno alone.  Problem reported by Dmitry V. Levin.
66527
66528 2005-10-28  Simon Josefsson  <jas@extundo.com>
66529
66530         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66531         Test more.
66532
66533         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66534
66535         * modules/md2, modules/md2-tests: New files.
66536
66537 2005-10-28  Simon Josefsson  <jas@extundo.com>
66538
66539         * m4/inet_ntop.m4: More tests.
66540
66541         * m4/gc-md2.m4, md2.m4: New file.
66542
66543 2005-10-28  Simon Josefsson  <jas@extundo.com>
66544
66545         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66546         "restrict" keywords, as per POSIX.  Protect the function
66547         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66548         Don't use K&R prototypes.  Check the sprintf return values.
66549         Re-define EAFNOSUPPORT if not present.  Indent.
66550
66551         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66552         suggested by Bruno Haible <bruno@clisp.org>.
66553
66554         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66555
66556         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66557
66558         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66559         libgcrypt).
66560
66561         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66562
66563         * lib/md2.h, lib/md2.c: New files.
66564
66565 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66566
66567         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66568         errno alone.  Problem reported by Frederic Jolliton.
66569
66570 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66571
66572         * modules/verify (License): Change from GPL to LGPL.  This is a
66573         tiny module and there are apparently near-equivalents that are
66574         under the BSD license.
66575
66576 2005-10-24  Simon Josefsson  <jas@extundo.com>
66577
66578         * modules/sha1: Relicense to LGPL.
66579
66580 2005-10-24  Simon Josefsson  <jas@extundo.com>
66581
66582         * lib/md4.h: Shrink buffer size, now that we changed the type.
66583
66584 2005-10-23  Simon Josefsson  <jas@extundo.com>
66585
66586         * gnulib-tool (func_import): Fix --tests-base.
66587
66588 2005-10-22  Simon Josefsson  <jas@extundo.com>
66589
66590         * modules/arcfour (Depends-on): Need stdint.
66591
66592 2005-10-22  Simon Josefsson  <jas@extundo.com>
66593
66594         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66595         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66596
66597 2005-10-22  Simon Josefsson  <jas@extundo.com>
66598
66599         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66600         suggested by Bruno Haible <bruno@clisp.org>.
66601
66602 2005-10-22  Simon Josefsson  <jas@extundo.com>
66603
66604         * lib/crc.h: Include stddef.h, for size_t.
66605
66606 2005-10-22  Simon Josefsson  <jas@extundo.com>
66607
66608         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66609         arcfour_context struct (simplify test vector testing in GNU
66610         Shishi).
66611
66612 2005-10-21  Simon Josefsson  <jas@extundo.com>
66613
66614         * modules/des, modules/des-tests: New files.
66615
66616         * modules/gc-des, modules/gc-des-tests: New files.
66617
66618         * tests/test-des.c, tests/test-gc-des.c: New file.
66619
66620 2005-10-21  Simon Josefsson  <jas@extundo.com>
66621
66622         * modules/arctwo, modules/arctwo-tests: New files.
66623
66624         * tests/test-arctwo.c: New file.
66625
66626         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66627
66628         * tests/test-gc-arctwo.c: New file.
66629
66630 2005-10-21  Simon Josefsson  <jas@extundo.com>
66631
66632         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66633         Bruno Haible <bruno@clisp.org>.
66634
66635         * m4/gc-des.m4: New file.
66636
66637 2005-10-21  Simon Josefsson  <jas@extundo.com>
66638
66639         * m4/arctwo.m4: New file.
66640
66641         * m4/gc-arctwo.m4: New file.
66642
66643 2005-10-21  Simon Josefsson  <jas@extundo.com>
66644
66645         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66646         block.
66647
66648 2005-10-21  Simon Josefsson  <jas@extundo.com>
66649
66650         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66651         <bruno@clisp.org>.
66652
66653         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66654
66655         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66656         Bruno Haible <bruno@clisp.org>.
66657
66658         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66659         <bruno@clisp.org>.
66660
66661 2005-10-21  Simon Josefsson  <jas@extundo.com>
66662
66663         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66664
66665 2005-10-21  Simon Josefsson  <jas@extundo.com>
66666
66667         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66668
66669 2005-10-21  Simon Josefsson  <jas@extundo.com>
66670
66671         * lib/des.h, lib/des.c: New files.
66672
66673         * lib/gc-gnulib.c: Support DES.c
66674
66675 2005-10-21  Simon Josefsson  <jas@extundo.com>
66676
66677         * lib/arctwo.h, lib/arctwo.c: New files.
66678
66679         * lib/gc-gnulib.c: Support ARCTWO.
66680
66681 2005-10-21  Simon Josefsson  <jas@extundo.com>
66682
66683         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66684         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66685
66686 2005-10-21  Simon Josefsson  <jas@extundo.com>
66687
66688         * gnulib-tool (func_import, func_create_testdir): Define automake
66689         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66690         Makefile.am snippet),
66691         suggested by Bruno Haible <bruno@clisp.org>.
66692
66693         * modules/gc (Makefile.am): Use it.
66694
66695 2005-10-21  Bruno Haible  <bruno@clisp.org>
66696
66697         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66698         patch.
66699
66700 2005-10-19  Simon Josefsson  <jas@extundo.com>
66701
66702         * tests/test-gc-rijndael.c: New file.
66703
66704         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66705
66706 2005-10-19  Simon Josefsson  <jas@extundo.com>
66707
66708         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66709         interface too.
66710
66711 2005-10-19  Simon Josefsson  <jas@extundo.com>
66712
66713         * tests/test-gc-arcfour.c: New file.
66714
66715         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66716
66717 2005-10-19  Simon Josefsson  <jas@extundo.com>
66718
66719         * modules/gc-md4, modules/gc-md4-tests: New file.
66720
66721         * tests/test-gc-md4.c: New file.
66722
66723 2005-10-19  Simon Josefsson  <jas@extundo.com>
66724
66725         * m4/gc-md4.m4: New file.
66726
66727 2005-10-19  Simon Josefsson  <jas@extundo.com>
66728
66729         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66730         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66731         <kasal@ucw.cz>.
66732
66733 2005-10-19  Simon Josefsson  <jas@extundo.com>
66734
66735         * m4/gc-arcfour.m4: New file.
66736
66737         * m4/gc-rijndael.m4: New file.
66738
66739 2005-10-19  Simon Josefsson  <jas@extundo.com>
66740
66741         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66742
66743 2005-10-19  Simon Josefsson  <jas@extundo.com>
66744
66745         * lib/gc-gnulib.c: Support ARCFOUR.
66746
66747 2005-10-19  Simon Josefsson  <jas@extundo.com>
66748
66749         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66750         support.
66751
66752         * lib/gc.h: Add ECB enum type.
66753
66754         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66755
66756 2005-10-18  Simon Josefsson  <jas@extundo.com>
66757
66758         * tests/test-md5.c: New file.
66759
66760         * modules/md5-tests: New file.
66761
66762 2005-10-18  Simon Josefsson  <jas@extundo.com>
66763
66764         * tests/test-md4.c: New file.
66765
66766         * modules/md4, modules/md4-tests: New files.
66767
66768 2005-10-18  Simon Josefsson  <jas@extundo.com>
66769
66770         * m4/md4.m4: New file.
66771
66772 2005-10-18  Simon Josefsson  <jas@extundo.com>
66773
66774         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66775
66776 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66777
66778         * gnulib-tool (func_create_testdir): Omit the second check whether
66779         BUILT_SOURCES in nonempty.
66780
66781 2005-10-17  Simon Josefsson  <jas@extundo.com>
66782
66783         * tests/test-rijndael.c: New file.
66784
66785 2005-10-17  Simon Josefsson  <jas@extundo.com>
66786
66787         * modules/sha1: Depend on stdint instead of md5.
66788
66789         * modules/md5: Depend on stdint, remove uint32_t.
66790
66791 2005-10-17  Simon Josefsson  <jas@extundo.com>
66792
66793         * modules/gc-sha1-tests: New file.
66794
66795         * tests/test-gc-sha1.c: New file.
66796
66797 2005-10-17  Simon Josefsson  <jas@extundo.com>
66798
66799         * m4/md5.m4: Remove call to uint32_t.m4.
66800
66801 2005-10-17  Simon Josefsson  <jas@extundo.com>
66802
66803         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66804
66805         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66806         md5.h.
66807
66808         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66809
66810         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66811
66812 2005-10-17  Simon Josefsson  <jas@extundo.com>
66813
66814         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66815
66816 2005-10-17  Simon Josefsson  <jas@extundo.com>
66817
66818         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66819
66820 2005-10-17  Simon Josefsson  <jas@extundo.com>
66821
66822         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66823
66824         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66825
66826 2005-10-17  Bruno Haible  <bruno@clisp.org>
66827
66828         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66829         that it can also be used in a test.
66830
66831 2005-10-16  Bruno Haible  <bruno@clisp.org>
66832
66833         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66834         TESTS_ENVIRONMENT, so that individual tests can augment it.
66835
66836         * gnulib-tool (func_create_testdir): Use an intermediate target for
66837         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66838         macros, like $(ALLOCA_H), which cannot be passed through the command
66839         line.
66840
66841 2005-10-15  Simon Josefsson  <jas@extundo.com>
66842
66843         * modules/rijndael-tests: New file.
66844
66845         * modules/rijndael: New file.
66846
66847 2005-10-15  Simon Josefsson  <jas@extundo.com>
66848
66849         * m4/rijndael.m4: New file.
66850
66851 2005-10-15  Simon Josefsson  <jas@extundo.com>
66852
66853         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66854
66855         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66856
66857 2005-10-14  Simon Josefsson  <jas@extundo.com>
66858
66859         * tests/test-arcfour.c: New file.
66860
66861         * modules/arcfour, modules/arcfour-tests: New files.
66862
66863 2005-10-14  Simon Josefsson  <jas@extundo.com>
66864
66865         * m4/arcfour.m4: New file.
66866
66867 2005-10-14  Simon Josefsson  <jas@extundo.com>
66868
66869         * lib/arcfour.h, lib/arcfour.c: New files.
66870
66871 2005-10-14  Roland McGrath  <roland@redhat.com>
66872
66873         Import from libc.  [BZ #1331]
66874         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66875         macro argument.
66876         Reported by Matej Vela <vela@debian.org>.
66877
66878 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66881         include <wchar.h>; no longer needed.
66882
66883 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66886
66887 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66888         and  Ulrich Drepper  <drepper@redhat.com>
66889
66890         Import from libc.
66891         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66892         instead of inline stream orientation test and two separate
66893         function calls.  Pay no attention to USE_IN_LIBIO.
66894
66895 2005-10-13  Simon Josefsson  <jas@extundo.com>
66896
66897         * modules/gc-hmac-md5-tests: New file.
66898
66899         * tests/test-gc-hmac-sha1.c: New file.
66900
66901         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66902
66903         * modules/gc-hmac-md5-tests: New file.
66904
66905         * tests/test-gc-md5.c: New file.
66906
66907         * modules/gc-md5-tests: New file.
66908
66909 2005-10-13  Simon Josefsson  <jas@extundo.com>
66910
66911         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66912         Move memory allocation outside of loop.
66913
66914 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66915
66916         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66917         intermediate directory is in a read-only file system.  Problem
66918         reported by Eric Blake.
66919
66920 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66921
66922         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66923
66924 2005-10-12  Simon Josefsson  <jas@extundo.com>
66925
66926         * tests/test-hmac-sha1.c: New file.
66927
66928         * modules/hmac-sha1-tests: New file.
66929
66930         * modules/hmac-sha1: New file.
66931
66932 2005-10-12  Simon Josefsson  <jas@extundo.com>
66933
66934         * modules/gc-sha1: New file.
66935
66936 2005-10-12  Simon Josefsson  <jas@extundo.com>
66937
66938         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66939
66940         * tests/test-gc-pbkdf2-sha1.c: New file.
66941
66942 2005-10-12  Simon Josefsson  <jas@extundo.com>
66943
66944         * modules/gc-md5, modules/gc-hmac-md5: New files.
66945
66946         * modules/gc (Files): Remove md5, memxor and hmac files.
66947
66948 2005-10-12  Simon Josefsson  <jas@extundo.com>
66949
66950         * m4/gc-pbkdf2-sha1.m4: New file.
66951
66952         * m4/gc-hmac-sha1.m4: New file.
66953
66954         * m4/gc-sha1: New file.
66955
66956         * m4/hmac-sha1.m4: New file.
66957
66958 2005-10-12  Simon Josefsson  <jas@extundo.com>
66959
66960         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66961
66962         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66963
66964 2005-10-12  Simon Josefsson  <jas@extundo.com>
66965
66966         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66967         suggested by Bruno Haible <bruno@clisp.org>.
66968
66969 2005-10-12  Simon Josefsson  <jas@extundo.com>
66970
66971         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66972
66973 2005-10-12  Simon Josefsson  <jas@extundo.com>
66974
66975         * lib/gc-pbkdf2-sha1.c: New file.
66976
66977         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66978
66979 2005-10-12  Simon Josefsson  <jas@extundo.com>
66980
66981         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66982
66983         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66984
66985 2005-10-12  Simon Josefsson  <jas@extundo.com>
66986
66987         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66988         GC_USE_HMAC_MD5, respectively.
66989
66990         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66991         (gc_md5): Fix typo.
66992
66993         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66994
66995         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66996
66997         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66998
66999 2005-10-12  Bruno Haible  <bruno@clisp.org>
67000
67001         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
67002         Reported by Stepan Kasal <kasal@ucw.cz>.
67003
67004 2005-10-11  Simon Josefsson  <jas@extundo.com>
67005
67006         * tests/test-crc.c: New file.
67007
67008         * modules/crc, modules/crc-tests: New files.
67009
67010 2005-10-11  Simon Josefsson  <jas@extundo.com>
67011
67012         * m4/crc.m4: New file.
67013
67014 2005-10-11  Simon Josefsson  <jas@extundo.com>
67015
67016         * lib/gc.h: Add gc_hash and gc_hash_buffer.
67017
67018         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
67019
67020         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
67021
67022 2005-10-11  Simon Josefsson  <jas@extundo.com>
67023
67024         * lib/crc.h, lib/crc.c: New files.
67025
67026         * lib/gc.h (gc_hash_buffer): Add doc.
67027
67028 2005-10-11  Bruno Haible  <bruno@clisp.org>
67029
67030         * modules/c-strcasestr: New file.
67031         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
67032
67033 2005-10-11  Bruno Haible  <bruno@clisp.org>
67034
67035         * modules/c-strcase: New file.
67036         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
67037
67038 2005-10-11  Bruno Haible  <bruno@clisp.org>
67039
67040         * lib/strcasecmp.c: Include limits.h.
67041         (strcasecmp): Avoid integer overflow on exotic platforms.
67042         * lib/strncasecmp.c: Include limits.h.
67043         (strncasecmp): Avoid integer overflow on exotic platforms.
67044         Reported by Paul Eggert.
67045
67046 2005-10-11  Bruno Haible  <bruno@clisp.org>
67047
67048         * lib/c-strcasestr.h: New file, from GNU gettext.
67049         * lib/c-strcasestr.c: New file, from GNU gettext.
67050
67051 2005-10-11  Bruno Haible  <bruno@clisp.org>
67052
67053         * lib/c-strcase.h: New file, from GNU gettext.
67054         * lib/c-strcasecmp.c: New file, from GNU gettext.
67055         * lib/c-strncasecmp.c: New file, from GNU gettext.
67056
67057 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67058
67059         * modules/mempcpy (License): GPL -> LGPL.
67060         * modules/strchrnul (License): Likewise.
67061         * modules/sysexits (License): Likewise.
67062
67063 2005-10-08  Simon Josefsson  <jas@extundo.com>
67064
67065         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
67066
67067 2005-10-07  Simon Josefsson  <jas@extundo.com>
67068
67069         * m4/memxor.m4: Remove gl_C_RESTRICT call.
67070
67071 2005-10-06  Simon Josefsson  <jas@extundo.com>
67072
67073         * tests/test-hmac-md5.c: New file.
67074
67075         * modules/hmac-md5-tests: New file.
67076
67077         * modules/hmac-md5: New file.
67078
67079 2005-10-06  Simon Josefsson  <jas@extundo.com>
67080
67081         * m4/hmac-md5.m4: New file.
67082
67083         * m4/memxor.m4: Require gl_C_RESTRICT.
67084
67085 2005-10-06  Simon Josefsson  <jas@extundo.com>
67086
67087         * lib/memxor.c (memxor): Avoid casts and warnings.
67088
67089 2005-10-06  Simon Josefsson  <jas@extundo.com>
67090
67091         * lib/hmac-md5.c: New file.
67092
67093         * lib/hmac.h: New file.
67094
67095 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67096
67097         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
67098         promotes to int, not unsigned int, to catch the AIX 5.3
67099         compiler bug.
67100
67101 2005-10-05  Simon Josefsson  <jas@extundo.com>
67102
67103         * modules/memxor: New file.
67104
67105         * modules/iconv (Files): Move config.rpath to havelib, it is used
67106         there.
67107
67108         * modules/havelib (Files): Add config.rpath.
67109
67110 2005-10-05  Simon Josefsson  <jas@extundo.com>
67111
67112         * m4/memxor.m4: New file.
67113
67114 2005-10-05  Simon Josefsson  <jas@extundo.com>
67115
67116         * lib/memxor.c (memxor): Fix compiler error.
67117
67118         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
67119         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
67120
67121         * lib/memxor.h, lib/memxor.c: New files.
67122
67123         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
67124         we assume all systems have it, suggested by Jim Meyering
67125         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
67126         any systems lack sys/socket.h; mingw32 is known to lack it, but we
67127         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
67128         same reasons.
67129
67130 2005-10-05  Simon Josefsson  <jas@extundo.com>
67131
67132         * config/srclist.txt: Add glibc bug 1423 for md5.h.
67133
67134 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67135
67136         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
67137         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
67138         needed, since the source code now assumes these .h files.
67139
67140 2005-10-05  Derek Price  <derek@ximbiot.com>
67141
67142         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
67143
67144 2005-10-05  Bruno Haible  <bruno@clisp.org>
67145
67146         * modules/stdint (License): Change to LGPL.
67147
67148 2005-10-04  Simon Josefsson  <jas@extundo.com>
67149
67150         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
67151         D. Baushke" <mdb@gnu.org>.
67152
67153 2005-10-04  Bruno Haible  <bruno@clisp.org>
67154
67155         * lib/verify.h (verify_true): Provide alternative definition for C++.
67156
67157 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
67158
67159         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
67160         (SSIZE_MAX): New macro, if not already defined.
67161         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
67162         than 2 GiB.
67163
67164 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67165
67166         Sync from coreutils.
67167         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
67168         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
67169         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
67170         ULLONG_MAX doesn't work with 2.7.2.1.
67171
67172 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67173
67174         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
67175         From Ben Pfaff.
67176
67177         * modules/exclude (Depends-on): Depend on verify.
67178         * modules/strtoimax (Depends-on): Likewise.
67179         * modules/utimecmp (Depends-on): Likewise.
67180
67181 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67182
67183         * lib/exclude.c: Include verify.h.
67184         (verify): Remove.  All callers changed to use verify.h's version.
67185         * lib/strtoimax.c: Likewise.
67186         * lib/utimecmp.c: Likewis.e
67187
67188         Sync from coreutils.
67189         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
67190         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
67191         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
67192         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
67193         bother returning ENOSYS if settimeofday or stime fails; just let
67194         them return whatever errno they want to return.
67195         * lib/utimens.c: Include unistd.h, for dup2.
67196         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
67197         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
67198
67199 2005-10-02  Jim Meyering  <jim@meyering.net>
67200
67201         Sync from coreutils.
67202         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
67203         from glibc-2.2.5 that fails for read-only files.
67204
67205 2005-10-02  Jim Meyering  <jim@meyering.net>
67206
67207         Sync from coreutils.
67208         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
67209         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
67210         `#if HAVE_CONFIG_H'.
67211         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
67212         Remove AT_FDCWD test.
67213         Do not consume the fd unless successful.
67214         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
67215         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
67216         block, so that we don't even try to compile it if settimeofday is
67217         available.  This works around a compilation failure on OSF1 V5.1,
67218         due to stime requiring a `long int*' while tv_sec is `int'.
67219
67220 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
67221
67222         Sync from coreutils.
67223         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
67224         against `yes', rather than just testing for nonempty.
67225
67226 2005-10-01  Simon Josefsson  <jas@extundo.com>
67227
67228         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
67229         and Darwin.
67230
67231         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
67232         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
67233         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
67234         freeaddrinfo and gai_strerror are declared by the POSIX headers.
67235         Check if struct addrinfo is declared.
67236
67237 2005-10-01  Simon Josefsson  <jas@extundo.com>
67238
67239         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
67240         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
67241         AI_* and EAI_* definitions.  Protect function declarations.
67242
67243 2005-10-01  Jim Meyering  <jim@meyering.net>
67244
67245         Sync from coreutils.
67246
67247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
67248         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
67249         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
67250         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67251         in the inet and nsl libraries.  Required on Solaris 5.7.
67252
67253 2005-10-01  Jim Meyering  <jim@meyering.net>
67254
67255         Sync from coreutils.
67256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67257         in the inet and nsl libraries.  Required on Solaris 5.7.
67258
67259 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
67260
67261         * lib/getdelim.c (getdelim): Remove unused variables.
67262
67263 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67264
67265         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
67266         so that the code works even with ancient cpp.  Portability problem
67267         with GCC 2.7.2.1 reported by Thomas M.Ott.
67268
67269 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67270
67271         * modules/regex (Depends-on): Add strcase.
67272
67273         * modules/gethostname (Licence): Change from GPL to LGPL, since
67274         gethostname.c is a trivial implementation of a standard library
67275         function.
67276         * modules/poll (License): Change from GPL to LGPL, since it's
67277         derived from LGPL code.
67278
67279 2005-09-27  Jim Meyering  <jim@meyering.net>
67280
67281         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
67282         HAVE_CONFIG_H.
67283
67284         * lib/intprops.h (signed_type_or_expr__): Define.
67285         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
67286         for unsigned types.
67287
67288 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67289
67290         * lib/verify.h (verify_expr): Remove, replacing with:
67291         (verify_true): New macro that returns true instead of void.
67292         (verify_type__): Remove.
67293         (verify): Use verify_true rather than verify_type__.
67294
67295 2005-09-26  Bruno Haible  <bruno@clisp.org>
67296
67297         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
67298         is necessary.
67299         (lib_SOURCES): Remove mbchar.c.
67300         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
67301         (Files): Add m4/mbrtowc.m4.
67302         * modules/mbiter: Likewise.
67303         * modules/mbuiter: Likewise.
67304
67305 2005-09-26  Bruno Haible  <bruno@clisp.org>
67306
67307         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
67308         compile mbchar.c if they are not both present.
67309         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
67310         * m4/mbiter.m4 (gl_MBITER): Likewise.
67311         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
67312         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
67313         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
67314
67315 2005-09-25  Jim Meyering  <jim@meyering.net>
67316
67317         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
67318         also uses socklen_t.
67319
67320 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
67321
67322         * lib/utimens.c (ENOSYS): Define if not already defined.
67323         (futimens): Support having a null PATH if the file descriptor
67324         is nonnegative.
67325
67326         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
67327         Remove.
67328         (__attribute): Define to empty unless GCC 3.1 or later.
67329         This works around a core dump on OpenBSD 3.4, which has GCC
67330         2.95.3, which dumps core when given __attribute__(()).  It also
67331         simplifies other tests, since we really don't want to bother with
67332         worrying about which ancient version of GCC supported what.
67333         Original problem reported by Yoann Vandoorselaere, with part of
67334         the fix suggested by Derek Price.
67335
67336 2005-09-24  Jim Meyering  <jim@meyering.net>
67337
67338         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67339         so we can once again use a positive bitfield width of 1 -- now we
67340         don't have to explain why we were using a bitfield width of 2.
67341
67342 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67343
67344         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67345         and similarly for the other external symbols.  Problem reported
67346         by James Gallager.
67347
67348         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67349         bug reported by Jim Meyering.
67350
67351         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67352         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67353         not needed, since socklen is a prerequisite module.
67354
67355 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67356
67357         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67358         Problem reported by Eric Blake.
67359         (getaddrinfo): Initialize se so that it's not garbage.
67360         Redo internal storage allocation so that it doesn't make unportable
67361         assumptions about alignment.
67362         Fix a memory leak.
67363
67364         * lib/utimens.c (futimens): Use futimesat if available.
67365         Prefer it to futimes since it doesn't have the futimes bug.
67366
67367         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67368         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67369         Instead, declare a function that returns a pointer to an array,
67370         and use verify_type__ to declare the size of the array.
67371         Problem and germ of a solution reported by Bruno Haible.
67372         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67373         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67374
67375 2005-09-23  Jim Meyering  <jim@meyering.net>
67376
67377         Sync from coreutils.
67378         Correct build failure (socklen_t not defined) on at least
67379         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67380         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67381
67382 2005-09-23  Jim Meyering  <jim@meyering.net>
67383
67384         * modules/getaddrinfo (Depends-on): Add socklen.
67385
67386 2005-09-23  Bruno Haible  <bruno@clisp.org>
67387
67388         * tests/test-verify.c: New file.
67389
67390 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67391
67392         Sync from coreutils.
67393
67394         * modules/argmatch (Depends-on): Add verify.
67395         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67396         unistd-safer.
67397         * modules/save-cwd (Depends-on): Likewise.
67398
67399         * modules/openat (Files): Add lib/openat-die.c.
67400         (Depends-on): Remove error, exitfail.
67401         Add dirname.
67402
67403         * modules/verify: New file.
67404         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67405         with "verify" module.
67406
67407 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67408
67409         Sync from coreutils.
67410
67411         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67412         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67413         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67414         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67415         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67416         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67417         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67418         Don't bother checking for string.h, stdlib.h, unistd.h.
67419         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67420         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67421         module's job.
67422         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67423         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67424
67425         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67426         (gl_GETDATE): Use it.
67427
67428         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67429
67430 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67431
67432         Sync from coreutils.
67433
67434         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67435         stat-time.h.
67436         * lib/argmatch.h: Include verify.h
67437         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67438         (ARGMATCH_ASSERT): Remove; unused.
67439         * lib/canonicalize.c: Assume STDC_HEADERS.
67440         * lib/exclude.c: Include "strcase.h".
67441         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67442         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67443         and stdio-safer.h.
67444         (getusershell): Call fopen, not fopen_safer.
67445         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67446         Do not include unistd-safer.h.
67447         (save_cwd): Don't call fd_safer; no longer needed
67448         now that we include fcntl--.h.
67449
67450         * lib/getdate.y (relative_time): New type.
67451         (RELATIVE_TIME_0): New constant.
67452         (parser_control): Use relative_time instead of doing it ourselves.
67453         (%union): Add new relative_time rel member.
67454         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67455         Now typeless.
67456         (relunit, relunit_snumber): Now of type rel.
67457         (zone, rel, relunit, get_date): Adjust to above changes.
67458
67459         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67460         Do not include unistd-safer.h.
67461         (getloadavg): Don't call fd_safer; no longer needed
67462         now that we include fcntl--.h.
67463
67464         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67465         (make_dir_parents): Treat ENOSYS like EEXIST.
67466
67467         Improve quality of diagnostics on restore_cwd failure.
67468         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67469         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67470         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67471         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67472         each time through the loop.  Do not diagnose restore_cwd failure;
67473         that is the caller's job (and perhaps the caller does not care).
67474
67475         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67476         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67477         If the file already exists but is not a directory, don't bother
67478         to try to make its parents.
67479         Close potential file descriptor leak if we can't chdir("/") (!).
67480         Don't always return true if chdir($PWD) fails; return true only
67481         if the requested action was done successfully (except for the
67482         chdir($PWD)).
67483         Don't log final directory unless we actually made it.
67484         Refactor to avoid duplicate code to fix up permissions.
67485         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67486
67487         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67488         to make it a bit faster and (I hope) clearer.
67489         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67490         Fix bug in formats like %2N.
67491
67492         * lib/verify.h: New file.
67493
67494 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67495
67496         Sync from coreutils.
67497         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67498
67499 2005-09-22  Jim Meyering  <jim@meyering.net>
67500
67501         Sync from coreutils.
67502
67503         * m4/lstat.m4 (gl_FUNC_LSTAT):
67504         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67505         Remove obsolete comment.
67506         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67507         * m4/xstrtod.m4: Likewise.
67508
67509         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67510
67511 2005-09-22  Jim Meyering  <jim@meyering.net>
67512
67513         Sync from coreutils.
67514
67515         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67516
67517         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67518         the .tm_year member, since otherwise gcc-4.0 would now warn about
67519         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67520
67521         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67522         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67523
67524         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67525         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67526         when run in a time zone for which daylight savings time is in effect
67527         for the starting date.
67528
67529         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67530         stop us from restricting permissions of just-created absolute-named
67531         directories.
67532         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67533         to restore initial working directory.
67534         * lib/mkdir-p.c (make_dir_parents): New parameter:
67535         different_working_dir, to tell caller if/when we change the working
67536         directory and are unable to return to the initial one.
67537         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67538         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67539         `return false'.  This fixes a bug introduced on 2004-07-30.
67540
67541         * lib/openat.c (fdopendir): Be sure to close the supplied
67542         file descriptor before returning.  This makes our replacement
67543         implementation a little closer to Solaris's, where fdopendir
67544         ties the file descriptor to the returned DIR* pointer.
67545         * lib/openat.c (unlinkat): New function.
67546         * lib/openat.h (unlinkat): Add prototype.
67547         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67548         (openat_restore_fail): Rename from openat_restore_die.
67549         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67550
67551         Provide an alternative to exiting immediately upon save_cwd or
67552         restore_cwd failure.  Now, an application can arrange e.g.,
67553         to perform a longjump in that case.
67554         * lib/openat.c: Include dirname.h.
67555         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67556         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67557         and openat_restore_die rather than calling error directly.
67558         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67559
67560         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67561         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67562         define.
67563
67564         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67565         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67566                             int utc, int nanoseconds);
67567         Background:
67568         date should not have to allocate a megabyte of virtual memory to
67569         handle a format argument like +%1048575T.  When implemented with
67570         strftime, it must allocate such a buffer, use strftime to fill it
67571         in, print it, then free it.
67572         With fprintftime, it simply prints everything and exits.
67573         With no need for memory allocation, that's one fewer way to fail.
67574         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67575         optional field width, not before, so we accept %9:z, not %:9z.
67576         (my_strftime): Be sure to use L_('x') for literals.
67577
67578         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67579         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67580         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67581         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67582         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67583         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67584         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67585         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67586         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67587         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67588         * lib/xgethostname.c, lib/xreadlink.c:
67589         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67590
67591         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67592         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67593         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67594         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67595         and don't include <sys/file.h>).
67596
67597 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67598
67599         Sync from coreutils.
67600
67601         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67602         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67603         [!LDAV_DONE]: Avoid unused variable warning.
67604
67605 2005-09-21  Bruno Haible  <bruno@clisp.org>
67606
67607         * lib/unicodeio.h (unicode_to_mb): New declaration.
67608
67609 2005-09-20  Derek Price  <derek@ximbiot.com>
67610
67611         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67612         getaddrinfo.h.
67613
67614 2005-09-20  Bruno Haible  <bruno@clisp.org>
67615
67616         * gnulib-tool: Remove trailing slashes from the values specified for
67617         --source-base, --m4-base, --tests-base, --aux-dir.
67618         Suggested by Simon Josefsson <jas@extundo.com>.
67619
67620 2005-09-20  Bruno Haible  <bruno@clisp.org>
67621
67622         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67623         func_modules_to_filelist, func_import, func_create_testdir): Make all
67624         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67625         change when gnulib-tool is invoked in a different locale.
67626
67627 2005-09-19  Simon Josefsson  <jas@extundo.com>
67628
67629         * m4/socklen.m4: Fix typo.
67630
67631 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67632
67633         Use a consistent style for including <config.h>.
67634         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67635         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67636         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67637         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67638         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67639         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67640         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67641         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67642         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67643         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67644         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67645         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67646         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67647         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67648         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67649         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67650         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67651         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67652         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67653         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67654         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67655         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67656         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67657         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67658         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67659         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67660         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67661         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67662         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67663         lib/xstrtoumax.c, lib/yesno.c:
67664         Standardize inclusion of config.h.
67665         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67666         lib/inttostr.h:  Removed inclusion of config.h from header files.
67667         * lib/inttostr.c:  Adjusted in-tree users.
67668         * lib/timespec.h: Remove superfluous warning to include config.h.
67669         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67670         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67671         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67672         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67673         config.h with HAVE_CONFIG_H.
67674
67675 2005-09-19  Jim Meyering  <jim@meyering.net>
67676
67677         * modules/pathmax (License): Change to LGPL.
67678
67679 2005-09-19  Derek Price  <derek@ximbiot.com>
67680
67681         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67682
67683 2005-09-19  Bruno Haible  <bruno@clisp.org>
67684
67685         * gnulib-tool (import): Provide default for --tests-base.
67686
67687 2005-09-19  Bruno Haible  <bruno@clisp.org>
67688
67689         * doc/quote.texi: New file, extracted from gnulib.texi.
67690         * doc/ctime.texi: New file, extracted from gnulib.texi.
67691         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67692         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67693         * doc/gnulib.texi: Include them.
67694
67695 2005-09-18  Bruno Haible  <bruno@clisp.org>
67696
67697         Portability fix.
67698         * gnulib-tool (func_readlink): New function.
67699         (func_ln_if_changed): Use it.
67700
67701 2005-09-18  Bruno Haible  <bruno@clisp.org>
67702
67703         * gnulib-tool: Support --with-tests also with --import.
67704         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67705         (func_import): Use variables $testsbase and $inctests. Emit a
67706         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67707         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67708         SUBDIRS += $testsdir.
67709         (func_create_testdir): Update.
67710
67711 2005-09-18  Bruno Haible  <bruno@clisp.org>
67712
67713         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67714         instead of $dry_run.
67715         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67716         (func_ln_if_changed): Don't handle dry-run here.
67717         (func_import): In dry-run mode, detect more precisely which actions
67718         would be performed, and don't use "...ing" verbs.
67719
67720 2005-09-18  Bruno Haible  <bruno@clisp.org>
67721
67722         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67723         (func_import): Use join on two temporary files instead of three nested
67724         loops, in order to determine which files are new or old.
67725
67726 2005-09-18  Bruno Haible  <bruno@clisp.org>
67727
67728         * gnulib-tool (func_import): Comment out code that spits out the
67729         new files with --dry-run.
67730
67731 2005-09-18  Bruno Haible  <bruno@clisp.org>
67732
67733         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67734
67735 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67736
67737         * lib/stat-time.h: New file.
67738         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67739         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67740         in a different way.
67741         (timespec_cmp): New function.
67742         * lib/utimecmp.c: Include stat-time.h.
67743         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67744         members exist, not on the obsolescent ST_MTIM_NSEC.
67745         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67746
67747 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67748
67749         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67750
67751 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67752
67753         * MODULES.html.sh (File system functions): Add stat-time.
67754         * modules/stat-time: New file.
67755         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67756         is now done in a different way, by the stat-time module.
67757         * modules/utimecmp (Depends-on): Add stat-time.
67758
67759 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67760
67761         * m4/st_mtim.m4: Remove.  Superseded by...
67762         * m4/stat-time.m4: New file.
67763         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67764         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67765
67766 2005-09-15  Derek Price  <derek@ximbiot.com>
67767
67768         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67769
67770 2005-09-15  Derek Price  <derek@ximbiot.com>
67771
67772         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67773         * lib/regex_internal.c: Ditto, using this...
67774         (__GNUC_PREREQ): ...new macro.
67775         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67776         using...
67777         (__GNUC_PREREQ): ...this new macro.
67778
67779         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67780
67781 2005-09-15  Derek Price  <derek@ximbiot.com>
67782             Paul Eggert  <eggert@cs.ucla.edu>
67783
67784         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67785         changes, consolidating in...
67786         * lib/regex_internal.h: ...this file.
67787
67788 2005-09-13  Jim Meyering  <jim@meyering.net>
67789
67790         * lib/canon-host.c: Filter through gnu indent and reword comments
67791         slightly.
67792         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67793
67794 2005-09-13  Derek Price  <derek@ximbiot.com>
67795
67796         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67797         failure.
67798         Reported by Jim Meyering  <jim@meyering.net>.
67799
67800 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67801
67802         * lib/base64.c: Typo.
67803         (base64_encode): Put b64str in initialized data section.
67804
67805 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67806
67807         Merge glibc and coreutils changes into gnulib, plus a few
67808         extra fixes.
67809         * lib/md5.c: Use #error rather than a string.
67810         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67811         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67812         (__attribute__): Define to empty for non recent-GCC.
67813         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67814         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67815         Renamed from their non-__ counterparts, with new macros replacing
67816         them if not _LIBC.  Add __THROW attribute.
67817         (rol): Remove.
67818         (struct md5_ctx): Align buffer if using GCC.
67819         * lib/sha1.h (struct sha1_ctx): Likewise.
67820         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67821         The old name was backwards.
67822         (NOTSWAP): Remove; not used.
67823         (rol): New macro, moved here from md5.h.
67824         (sha1_process_block): Remove a FIXME that doesn't make sense.
67825
67826 2005-09-12  Derek Price  <derek@ximbiot.com>
67827
67828         Return usable errors from canon-host.
67829         * lib/canon-host.h: New file.
67830         * lib/canon-host.c (canon_host): Wrap...
67831         (canon_host_r): ...this new function, which now relies exclusively on
67832         getaddrinfo.
67833         (ch_strerror): New function.
67834         (last_cherror): New global.
67835         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67836         interface.
67837         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67838         void *.
67839         (freeaddrinfo): Free ai->ai_canonname when set.
67840
67841 2005-09-12  Derek Price  <derek@ximbiot.com>
67842
67843         Make canon-host require getaddrinfo.
67844         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67845         AC_LIBSOURCE canon-host.h.  Call...
67846         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67847         gl_GETADDRINFO.
67848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67849
67850 2005-09-12  Derek Price  <derek@ximbiot.com>
67851
67852         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67853         LGPL.
67854         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67855
67856 2005-09-12  Derek Price  <derek@ximbiot.com>
67857
67858         * lib/gai_strerror.c: Include config.h when available.  Include
67859         getaddrinfo.h before other headers to test interface.
67860         Reported by Larry Jones <lawrence.jones@ugs.com>.
67861
67862 2005-09-12  Derek Price  <derek@ximbiot.com>
67863             Paul Eggert  <eggert@cs.ucla.edu>
67864
67865         * modules/glob (Files): Add glob-libc.h.
67866
67867 2005-09-12  Derek Price  <derek@ximbiot.com>
67868             Paul Eggert  <eggert@cs.ucla.edu>
67869
67870         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67871         glob_.h, glob-libc.h.
67872         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67873
67874 2005-09-12  Derek Price  <derek@ximbiot.com>
67875             Paul Eggert  <eggert@cs.ucla.edu>
67876
67877         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67878         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67879         protecting things that should be done only in gnulib contexts.
67880         * lib/glob_.h: New file, containing only the glob things needed for
67881         gnulib.
67882         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67883         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67884         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67885         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67886         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67887         and to respect the namespace rules better.
67888
67889 2005-09-08  Simon Josefsson  <jas@extundo.com>
67890
67891         * modules/socklen: New file.
67892
67893 2005-09-08  Simon Josefsson  <jas@extundo.com>
67894
67895         * m4/socklen.m4: New file.
67896
67897 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67898
67899         * modules/utimens (Files): Add m4/utimbuf.m4, since
67900         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67901         Reported by Sergey Poznyakoff.
67902
67903 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67906         definitions, since that's the preferred style in glibc.
67907         Fix a minor spacing issue, and update copyright notice to match
67908         glibc's.
67909
67910 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67911
67912         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67913
67914 2005-09-06  Simon Josefsson  <jas@extundo.com>
67915
67916         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67917         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67918
67919 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67920
67921         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67922         warning.
67923
67924 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67925
67926         * config/srclist.txt: Add glibc bug 1302.
67927
67928 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67929
67930         Change bitset word type from unsigned int to unsigned long int,
67931         as this has better performance on typical 64-bit hosts.
67932         Port bitset code to hosts with unusual word sizes.
67933         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67934         (build_collating_symbol):
67935         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67936         argument is a bitset.  This is merely a style issue, but it makes
67937         it clearer that an entire array is expected.
67938         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67939         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67940         Port to the case where bitset_word is not the same as unsigned int.
67941         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67942         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67943         Likewise.
67944         * lib/regexec.c (check_dst_limits_calc_pos_1,
67945         check_subexp_matching_top):
67946         (build_trtable, group_nodes_into_DFAstates):
67947         Likewise.
67948         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67949         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67950         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67951         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67952         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67953         * lib/regcomp.c (optimize_subexps, lower_subexp):
67954         Work even if bitset_word has holes in its bitwise representation.
67955         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67956         * lib/regexec.c (check_dst_limits_calc_pos_1,
67957         check_subexp_matching_top):
67958         Likewise.
67959         * lib/regex_internal.c (re_string_reconstruct):
67960         Don't assume UCHAR_MAX == 255.
67961         * lib/regex_internal.h (bitset_set_all): Likewise.
67962         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67963         All uses changed.
67964         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67965         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67966         All uses changed.
67967         (BITSET_WORD_MAX): New macro.
67968         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67969         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67970         (bitset_empty, bitset_copy):
67971         Prefer sizeof (bitset) to multiplying it out ourselves.
67972         (bitset_not_merge): Remove; unused.
67973         (bitset_contain): Return bool, not unsigned int with one bit on.
67974         All callers changed.
67975         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67976         alignment than re_node_set; do this by defining a new internal
67977         type struct dests_alloc and using it to allocate memory.
67978
67979 2005-09-05  Bruno Haible  <bruno@clisp.org>
67980
67981         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67982         links.
67983
67984 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67985
67986         * modules/size_max (Makefile.am): Add size_max.h
67987
67988 2005-09-04  Derek Price  <derek@ximbiot.com>
67989
67990         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67991
67992 2005-09-03  Simon Josefsson  <jas@extundo.com>
67993
67994         * gnulib-tool: Fix typo.
67995
67996 2005-09-03  Simon Josefsson  <jas@extundo.com>
67997
67998         * config/srclist.txt: Add glibc bug 1293.
67999
68000 2005-09-03  Derek Price  <derek@ximbiot.com>
68001
68002         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
68003         From Larry Jones <lawrence.jones@ugs.com>.
68004
68005 2005-09-02  Simon Josefsson  <jas@extundo.com>
68006
68007         * modules/socklen: New file.
68008
68009 2005-09-02  Simon Josefsson  <jas@extundo.com>
68010
68011         * modules/havelib: New module.
68012
68013         * modules/gettext, modules/iconv, modules/lock, modules/readline:
68014         Use havelib.
68015
68016 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68017
68018         Check for arithmetic overflow when calculating sizes, to prevent
68019         some buffer-overflow issues.  These patches are conservative, in the
68020         sense that when I couldn't determine whether an overflow was possible,
68021         I inserted a run-time check.
68022         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
68023         macros.
68024         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
68025         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
68026         (re_xnrealloc, re_x2nrealloc): New inline functions.
68027         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
68028         parse_bracket_exp):
68029         (build_equiv_class, build_charclass): Check for arithmetic overflow
68030         in size expression calculations.
68031         * lib/regex_internal.c (re_string_realloc_buffers):
68032         (build_wcs_upper_buffer, re_node_set_add_intersect):
68033         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
68034         (re_dfa_add_node, register_state): Likewise.
68035         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
68036         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
68037         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
68038         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
68039
68040 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68041
68042         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68043         m4/ulonglong.m4.  Problem reported by Martin Lambers.
68044
68045 2005-09-02  Bruno Haible  <bruno@clisp.org>
68046
68047         Support for lib vs. lib64 distinction on biarch platforms.
68048         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
68049         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
68050         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
68051
68052 2005-09-02  Bruno Haible  <bruno@clisp.org>
68053
68054         * gnulib-tool (import): In the other first-use case, provide defaults
68055         as well.
68056
68057 2005-09-02  Bruno Haible  <bruno@clisp.org>
68058
68059         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
68060         patches not yet found in the latest gettext release.
68061
68062 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68063
68064         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
68065         to avoid a collision with bits/local_lim.h in glibc.
68066         All uses changed.  Problem reported by Dmitry V. Levin in
68067         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
68068
68069         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
68070         bugs in int versus size_t comparisons.
68071         (re_string_context_at): Fix bug where the code assumed that
68072         Idx is signed.
68073
68074         Use bool where appropriate.
68075         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
68076         All callers changed.
68077         (calc_eclosure_iter): Likewise, for ROOT arg.
68078         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
68079         (build_charclass_op): Likewise, for NON_MATCH arg.
68080         * lib/regex_internal.c (re_string_allocate, re_string_construct):
68081         (re_string_construct_common): Likewise, for ICASE arg.
68082         * lib/regexec.c (re_search_2_stub, re_search_stub):
68083         Likewise, for RET_LEN arg.
68084         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
68085         (set_regs): Likewise, for FL_BACKTRACK arg.
68086         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
68087         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
68088         (calc_eclosure_iter, parse_bracket_exp):
68089         Use bool for internal variables that are booleans.
68090         * lib/regexec.c (re_search_internal, check_matching,
68091         proceed_next_node):
68092         (set_regs, build_sifted_states, sift_states_bkref):
68093         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
68094         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68095         (find_collation_sequence_value):
68096         Likewise.
68097         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
68098         (re_node_set_compare):
68099         Return bool, not int. All callers changed.
68100         * lib/regexec.c (check_halt_node_context, check_dst_limits):
68101         (build_trtable, check_node_accept): Likewise.
68102         * lib/regex_internal.h: Include stdbool.h.
68103
68104         Fix bugs uncovered when converting to bool.
68105         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
68106         failure instead of charging ahead blindly.
68107         * lib/regex_internal.c (register_state): Likewise.
68108         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
68109         for freeing internal storage.
68110         (group_nodes_into_DFA_states): Use unsigned int, not int, for
68111         bitset pieces used as boolean, to avoid undefined behavior
68112         on hosts that do int overflow checking.
68113
68114 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68115
68116         * config/srclist.txt: Add glibc bugs 1285-1287.
68117
68118 2005-09-01  Jim Meyering  <jim@meyering.net>
68119
68120         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
68121         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
68122         Require gl_STAT_MACROS, too.
68123
68124 2005-09-01  Bruno Haible  <bruno@clisp.org>
68125
68126         * gnulib-tool (import): In the first-use case, provide defaults.
68127
68128 2005-09-01  Bruno Haible  <bruno@clisp.org>
68129
68130         * gnulib-tool (func_import): Remove the .tmp files.
68131
68132 2005-09-01  Bruno Haible  <bruno@clisp.org>
68133
68134         * gnulib-tool (func_import): Fix handling of symbolic links.
68135
68136 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68137
68138         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
68139         old glibc regex code mishandles strings longer than 2**31 bytes.
68140         This patch fixes this when the regex code is used in gnulib
68141         (i.e., outside glibc).
68142
68143         This patch should not affect the use of the regex code inside
68144         glibc.  No doubt this problem also needs to be handled for glibc
68145         as well, but the result will be an incompatible change to the
68146         glibc ABI, and the old ABI will have to be supported too.  That
68147         can be the the subject for another patch.
68148
68149         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
68150         governing whether the rest of this patch is active.  By default,
68151         the macro is disabled and the patch has no effect.
68152         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
68153         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
68154         (struct re_pattern_buffer, re_search, re_search_2, re_match):
68155         (re_match_2, re_set_registers): Use the new types.
68156         * lib/regex_internal.h (Idx, re_hashval_t): New types.
68157         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
68158         New macros.
68159         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
68160         (re_string_context_at, bin_tree_t, re_dfastate_t):
68161         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
68162         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
68163         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
68164         (re_string_char_size_at, re_string_wchar_at):
68165         (re_string_elem_size_at):
68166         Use the new types and macros to port to 64-bit hosts.
68167         Use unsigned types for internal values, so that the code
68168         mostly works even for arrays larger than SSIZE_MAX.
68169         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
68170         (search_duplicated_node, calc_eclosure_iter, fetch_number):
68171         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
68172         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
68173         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
68174         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
68175         (calc_inveclosure, parse_dup_op, build_range_exp):
68176         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
68177         (fetch_number, create_token_tree, mark_opt_subexp):
68178         Likewise.
68179         * lib/regex_internal.c (re_string_construct_common,
68180         create_ci_newstate):
68181         (create_cd_newstate, re_string_allocate, re_string_construct):
68182         (re_string_realloc_buffers, build_wcs_upper_buffer):
68183         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68184         (re_string_reconstruct, re_string_peek_byte_case):
68185         (re_string_fetch_byte_case, re_string_context_at):
68186         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68187         (re_node_set_init_copy, re_node_set_add_intersect):
68188         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68189         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68190         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68191         (re_acquire_state, re_acquire_state_context, register_state):
68192         Likewise.
68193         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
68194         search_cur_bkref_entry):
68195         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
68196         (re_search_internal, re_search_2_stub, re_search_stub)
68197         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
68198         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
68199         (update_cur_sifted_state, check_dst_limits):
68200         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68201         (check_subexp_limits, sift_states_bkref, merge_state_array):
68202         (check_subexp_matching_top, get_subexp, get_subexp_sub):
68203         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
68204         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68205         (expand_bkref_cache, check_node_accept_bytes):
68206         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
68207         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
68208         (acquire_init_state_context, check_halt_node_context):
68209         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
68210         (sift_states_backward, clean_state_log_if_needed):
68211         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
68212         (find_recover_state, transit_state_sb, transit_state_mb):
68213         (transit_state_bkref, build_trtable, match_ctx_clean):
68214         Likewise.
68215         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
68216         to work around an assumption that REG_MISSING is negative.
68217
68218         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
68219         (seek_collating_symbol_entry) [defined _LIBC]:
68220         (lookup_collation_sequence_value) [defined _LIBC]:
68221         (build_range_exp, build_collating_symbol) [defined _LIBC]:
68222         Use prototypes rather than old-style function definitions.
68223         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
68224         (transit_state_sb) [0]:
68225         (find_collation_sequence_value) [defined _LIBC]: Likewise.
68226
68227         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
68228         rm_eo.
68229
68230         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
68231         (optimize_subexps, lower_subexp):
68232         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
68233         since the signed shift might overflow.  Use 1u<<31 instead.
68234         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68235         Likewise.
68236         * lib/regexec.c (check_dst_limits_calc_pos_1,
68237         check_subexp_matching_top): Likewise.
68238
68239         * lib/regcomp.c (optimize_subexps, lower_subexp):
68240         Use CHAR_BIT rather than 8, for clarity.
68241         * lib/regexec.c (check_dst_limits_calc_pos_1):
68242         (check_subexp_matching_top): Likewise.
68243         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
68244         have to worry about portability issues when shifting it left.
68245         Remove no-longer-needed test for table_size > 0.
68246         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
68247         in a word, as the resulting behavior is undefined.
68248         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
68249         in one case, a <= should have been an <, and in another case the
68250         whole test was missing.
68251         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
68252         the standard name CHAR_BIT.
68253         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
68254         this is not true on one's complement and signed-magnitude hosts.
68255
68256         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
68257         next_last_offset.
68258         (struct re_dfa_t): Remove unused member states_alloc.
68259         * lib/regcomp.c (init_dfa): Don't initialize unused members.
68260
68261 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68262
68263         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
68264         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
68265         and large-file glibc and in 32-bit large-file Solaris.
68266
68267 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68268
68269         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
68270         lengths fit in regoff_t; this isn't true if regoff_t is the same
68271         width as size_t.
68272         * lib/regex.c (re_search_internal): 5th arg is LAST_START
68273         (= START + RANGE) instead of RANGE.  This avoids overflow
68274         problems when regoff_t is the same width as size_t.
68275         All callers changed.
68276         (re_search_2_stub): Check for overflow when adding the
68277         sizes of the two strings.
68278         (re_search_stub): Check for overflow when adding START
68279         to RANGE; if it occurs, substitute the extreme value.
68280
68281 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68282
68283         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
68284
68285 2005-08-31  Jim Meyering  <jim@meyering.net>
68286
68287         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
68288         a pointer-to-const.
68289         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
68290         (register_state): Likewise.
68291         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
68292         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68293         (group_nodes_into_DFAstates): Likewise.
68294
68295 2005-08-31  Jim Meyering  <jim@meyering.net>
68296
68297         * check-module: Add a FIXME comment.
68298
68299 2005-08-31  Eric Blake  <ebb9@byu.net>
68300
68301         * modules/unistd-safer (Files): Add unistd--.h.
68302         * modules/stdio-safer (Files): Add stdio--.h.
68303
68304 2005-08-31  Derek Price  <derek@ximbiot.com>
68305
68306         * lib/getdelim.c (getdelim): Return EOF on EOF.
68307         Reported by Larry Jones <lawrence.jones@ugs.com>.
68308
68309 2005-08-31  Bruno Haible  <bruno@clisp.org>
68310
68311         Avoid unnecessary diffs in the generated lib/Makefile.am.
68312         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
68313         the generated files.
68314         (func_import): Don't set cmd.
68315
68316 2005-08-31  Bruno Haible  <bruno@clisp.org>
68317
68318         * lib/strstr.c: Include <stddef.h>, for NULL.
68319         * lib/strcasestr.c: Likewise.
68320         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68321
68322 2005-08-31  Bruno Haible  <bruno@clisp.org>
68323
68324         * gnulib-tool: New option --macro-prefix.
68325         (func_import): Use macro_prefix.
68326         (import): Handle option --macro-prefix.
68327
68328 2005-08-31  Bruno Haible  <bruno@clisp.org>
68329
68330         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68331         Also use new variables cached_lgpl, cached_libtool.
68332
68333 2005-08-31  Bruno Haible  <bruno@clisp.org>
68334
68335         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68336         always instantiating them.
68337
68338 2005-08-31  Bruno Haible  <bruno@clisp.org>
68339
68340         * gnulib-tool (func_import): Read the previous cached settings
68341         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68342         earlier added by gnulib but are now dropped. Warn when a gnulib file
68343         overwrites a non-gnulib file.
68344
68345 2005-08-31  Bruno Haible  <bruno@clisp.org>
68346
68347         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68348         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68349         projects that don't keep autogenerated files in CVS. Put into
68350         actioncmd only the specified modules, not the transitive closure.
68351
68352 2005-08-31  Bruno Haible  <bruno@clisp.org>
68353
68354         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68355         Create directories that shall be filled.
68356         (import): Don't look for gl_* macros in configure.ac. Recurse across
68357         all directories containing a gnulib-cache.m4 files, if meaningful.
68358
68359 2005-08-31  Bruno Haible  <bruno@clisp.org>
68360
68361         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68362         (import): Set seen_libtool when we see gl_LIBTOOL.
68363
68364 2005-08-31  Bruno Haible  <bruno@clisp.org>
68365
68366         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68367         declaration macro definitions from generated gnulib.m4.
68368
68369 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68370
68371         * lib/iconvme.h: Add prototype for iconv_alloc.
68372
68373 2005-08-29  Simon Josefsson  <jas@extundo.com>
68374
68375         * lib/iconvme.c: Fix errno.
68376
68377 2005-08-29  Bruno Haible  <bruno@clisp.org>
68378
68379         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68380         that it works when the directory contains spaces.
68381
68382 2005-08-29  Bruno Haible  <bruno@clisp.org>
68383
68384         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68385
68386 2005-08-29  Bruno Haible  <bruno@clisp.org>
68387
68388         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68389         Emit more advice.
68390
68391 2005-08-29  Bruno Haible  <bruno@clisp.org>
68392         and Stepan Kasal  <kasal@ucw.cz>
68393
68394         * check-module: If more parameters are given, check each of them
68395         separately; add more exceptions, as noted by Jim Meyering.
68396         (check_module): New procedure.
68397         (%exempt_header): Now contains all exceptions.
68398
68399 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68400
68401         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68402
68403 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68404
68405         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68406
68407 2005-08-28  Bruno Haible  <bruno@clisp.org>
68408
68409         * m4/gnulib-tool.m4: New file.
68410
68411 2005-08-27  Jim Meyering  <jim@meyering.net>
68412
68413         * modules/unistd-safer (Files): Add pipe-safer.c.
68414         * modules/fcntl-safer (Files): Add creat-safer.c.
68415
68416 2005-08-27  Jim Meyering  <jim@meyering.net>
68417
68418         * m4/stdlib-safer.m4: New file.  From coreutils.
68419         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68420         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68421         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68422         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68423         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68424
68425 2005-08-27  Jim Meyering  <jim@meyering.net>
68426
68427         * lib/fopen-safer.c: Merge minor changes from coreutils.
68428         * lib/dup-safer.c: Likewise.
68429         * lib/fd-safer.c: Likewise.
68430
68431         Merge from coreutils.
68432         * lib/stdio--.h: New file.
68433         * lib/stdlib--.h: New file.
68434         * lib/mkstemp-safer.c: New file.
68435
68436         GNU tar needs these.
68437         * lib/pipe-safer.c: New file.
68438         * lib/creat-safer.c: New file.
68439         * lib/fcntl--.h (creat): Define to creat_safer.
68440         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68441         * lib/unistd--.h (pipe): Define to pipe_safer.
68442         * lib/unistd-safer.h: Declare pipe_safer.
68443
68444 2005-08-26  Simon Josefsson  <jas@extundo.com>
68445
68446         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68447         Haible <bruno@clisp.org>.
68448
68449 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68450
68451         * lib/regex_internal.h: Remove all references to
68452         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68453         or better.
68454         (bitset_not, bitset_merge, bitset_not_merge):
68455         (bitset_mask, re_string_allocate, re_string_construct):
68456         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68457         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68458         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68459         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68460         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68461         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68462         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68463         (re_acquire_state_context):
68464         Remove unnecessary forward decls.
68465         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68466         Put __attribute at function definition,
68467         now that the function decl has been removed.
68468         * lib/regex_internal.c (re_string_peek_byte_case):
68469         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68470         Likewise.
68471
68472 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68473
68474         * m4/regex.m4: Add AC_PREREQ(2.50).
68475         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68476
68477 2005-08-25  Simon Josefsson  <jas@extundo.com>
68478
68479         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68480         __fsetlocking.
68481
68482 2005-08-25  Simon Josefsson  <jas@extundo.com>
68483
68484         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68485         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68486         GLIBC specific code.
68487
68488 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68489
68490         Make regex safe for g++.  This fixes one real bug (an "err"
68491         that should have been "*err").  g++ problem reported by
68492         Sam Steingold.
68493         * lib/regex_internal.h (re_calloc): New macro, consistent with
68494         re_malloc etc.  All callers of calloc changed to use re_calloc.
68495         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68496         not int.  All callers changed.
68497         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68498         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68499         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68500         (find_recover_state): Change "err" to "*err"; this fixes what
68501         appears to be a real bug.
68502         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68503         versus int.
68504
68505 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68506
68507         * modules/regex (Depends-on): Add malloc, since the code
68508         assumes that !malloc(0) means failure.
68509
68510 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68511
68512         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68513
68514         alloca modernization/simplification for regex.
68515         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68516         needs to be at the start of the file, and can be moved into
68517         regex_internal.h and simplified.
68518         * lib/regex_internal.h: Include <alloca.h>.
68519         (__libc_use_alloca) [!defined _LIBC]: New macro.
68520         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68521         now works outside glibc.
68522
68523 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68524
68525         * config/srclist.txt: Add glibc bugs 1241, 1245.
68526
68527 2005-08-25  Jim Meyering  <jim@meyering.net>
68528
68529         * lib/open-safer.c: Include <config.h>.
68530         Otherwise, we'd lose LARGEFILE support in any file using
68531         e.g. "fcntl--.h"
68532
68533 2005-08-25  Bruno Haible  <bruno@clisp.org>
68534
68535         * m4/minmax.m4: Require autoconf 2.52.
68536         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68537         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68538         alternatives of translit over the alphabet.
68539         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68540
68541 2005-08-24  Simon Josefsson  <jas@extundo.com>
68542
68543         * tests/test-getpass.c: New file.
68544
68545 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68546
68547         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68548         for GNU regex features.
68549
68550 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68551
68552         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68553         * lib/regex.h (regerror): Likewise.
68554
68555         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68556         requires this.  (The code never needed it.)
68557
68558         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68559         All uses of recently-renamed identifiers changed to use the new,
68560         POSIX-compliant names.  The code will build and run just fine
68561         without these changes, but it's better to eat our own dog food
68562         and use the standard-conforming names.
68563
68564         * lib/regex.h: Fix a multitude of POSIX name space violations.
68565         These changes have an effect only for programs that define
68566         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68567         do not change anything for programs compiled in the normal way.
68568         Also, there is no effect on the ABI.
68569
68570         (_REGEX_SOURCE): New macro.
68571         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68572         defined and _GNU_SOURCE is not; this fixes a name space violation.
68573
68574         Rename the following macros to obey POSIX requirements.
68575         The old names are still visible as macros if _REGEX_SOURCE is defined.
68576         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68577         RE_BACKSLASH_ESCAPE_IN_LISTS.
68578         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68579         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68580         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68581         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68582         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68583         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68584         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68585         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68586         (REG_INTERVALS): renamed from RE_INTERVALS.
68587         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68588         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68589         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68590         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68591         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68592         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68593         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68594         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68595         RE_UNMATCHED_RIGHT_PAREN_ORD.
68596         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68597         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68598         (REG_DEBUG): renamed from RE_DEBUG.
68599         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68600         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68601         unusual, since we can't clash with the POSIX REG_ICASE.
68602         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68603         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68604         (REG_NO_SUB): renamed from RE_NO_SUB.
68605         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68606         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68607         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68608         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68609         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68610         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68611         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68612         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68613         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68614         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68615         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68616         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68617         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68618         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68619         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68620         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68621         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68622         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68623         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68624         (REG_FIXED): Renamed from REGS_FIXED.
68625         (REG_NREGS): Renamed from RE_NREGS.
68626
68627         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68628         of other REG_* macros, since POSIX says the user is allowed to
68629         #undef these macros selectively.
68630
68631         (reg_errcode_t): Update comment stating what other tables need
68632         to be consistent.
68633
68634         Rename the following enum values to obey POSIX requirements.
68635         The old names are still visible as macros.
68636         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68637         is not defined, since GNU is supposed to be a superset of POSIX as
68638         much as possible, and since we want reg_errcode_t to be a signed
68639         type for implementation consistency.
68640         (_REG_NOERROR): Renamed from REG_NOERROR.
68641         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68642         (_REG_BADPAT): Renamed from REG_BADPAT.
68643         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68644         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68645         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68646         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68647         (_REG_EBRACK): Renamed from REG_EBRACK.
68648         (_REG_EPAREN): Renamed from REG_EPAREN.
68649         (_REG_EBRACE): Renamed from REG_EBRACE.
68650         (_REG_BADBR): Renamed from REG_BADBR.
68651         (_REG_ERANGE): Renamed from REG_ERANGE.
68652         (_REG_ESPACE): Renamed from REG_ESPACE.
68653         (_REG_BADRPT): Renamed from REG_BADRPT.
68654         (_REG_EEND): Renamed from REG_EEND.
68655         (_REG_ESIZE): Renamed from REG_ESIZE.
68656         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68657         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68658         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68659         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68660         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68661
68662         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68663         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68664         changed.  But support the old name if the new one is not defined
68665         and if _REGEX_SOURCE.
68666
68667         Change the following member names in struct re_pattern_buffer.
68668         The old names are still supported if !_REGEX_SOURCE.
68669         The new names are always supported, regardless of _REGEX_SOURCE.
68670         (re_buffer): Renamed from buffer.
68671         (re_allocated): Renamed from allocated.
68672         (re_used): Renamed from used.
68673         (re_syntax): Renamed from syntax.
68674         (re_fastmap): Renamed from fastmap.
68675         (re_translate): Renamed from translate.
68676         (re_can_be_null): Renamed from can_be_null.
68677         (re_regs_allocated): Renamed from regs_allocated.
68678         (re_fastmap_accurate): Renamed from fastmap_accurate.
68679         (re_no_sub): Renamed from no_sub.
68680         (re_not_bol): Renamed from not_bol.
68681         (re_not_eol): Renamed from not_eol.
68682         (re_newline_anchor): Renamed from newline_anchor.
68683
68684         Change the following member names in struct re_registers.
68685         The old names are still supported if !_REGEX_SOURCE.
68686         The new names are always supported, regardless of _REGEX_SOURCE.
68687         (rm_num_regs): Renamed from num_regs.
68688         (rm_start): Renamed from start.
68689         (rm_end): Renamed from end.
68690
68691         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68692         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68693         Prepend __ to parameter names.
68694
68695         Undo yesterday's changes.
68696
68697 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68700         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68701         lib/regex.c.
68702
68703 2005-08-24  Jim Meyering  <jim@meyering.net>
68704
68705         Sync from coreutils.
68706         * m4/fcntl-safer.m4: New file.
68707
68708         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68709         and object files for this module.
68710
68711 2005-08-24  Jim Meyering  <jim@meyering.net>
68712
68713         Sync from coreutils.
68714         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68715
68716 2005-08-24  Jim Meyering  <jim@meyering.net>
68717
68718         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68719         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68720
68721 2005-08-24  Jim Meyering  <jim@meyering.net>
68722
68723         * modules/fcntl-safer: New module.
68724         * modules/fts (Depends-on): Add fcntl-safer.
68725         * MODULES.html.sh (File descriptor based Input/Output):
68726         Add fcntl-safer.
68727
68728 2005-08-24  Bruno Haible  <bruno@clisp.org>
68729
68730         Support for unit test modules.
68731         * modules/README: Mention tests modules.
68732         * modules/TEMPLATE-TESTS: New file.
68733         * gnulib-tool: New options --extract-tests-module, --with-tests and
68734         --tests-base (unused for the moment).
68735         (testsbase, inctests): New variables.
68736         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68737         (func_verify_module): Exclude TEMPLATE-TESTS.
68738         (func_verify_nontests_module, func_verify_tests_module): New functions.
68739         (func_get_dependencies): Add implicit dependency for tests modules.
68740         (func_get_tests_module): New function.
68741         (func_modules_transitive_closure): When --with-tests was specified,
68742         include the unit tests as well, unless explicitly avoided.
68743         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68744         (func_emit_tests_Makefile_am): New function.
68745         (func_create_testdir): When --with-tests was specified, emit a
68746         tests/ directory.
68747         * MODULES.html.sh (Future developments): Update.
68748
68749 2005-08-24  Bruno Haible  <bruno@clisp.org>
68750
68751         * modules/tls-tests: New file.
68752         * tests/test-tls.c: New file, from GNU gettext.
68753
68754 2005-08-24  Bruno Haible  <bruno@clisp.org>
68755
68756         * modules/lock-tests: New file.
68757         * tests/test-lock.c: New file, from GNU gettext.
68758
68759 2005-08-24  Bruno Haible  <bruno@clisp.org>
68760
68761         * lib/lock.h: Add multiple inclusion guard.
68762         * lib/tls.h: Add multiple inclusion guard.
68763
68764 2005-08-24  Bruno Haible  <bruno@clisp.org>
68765
68766         * gnulib-tool: Add support for the --aux-dir option to
68767         --create-testdir, --create-megatestdir, --test, --megatest.
68768         (func_create_testdir, func_create_megatestdir): Optionally emit a
68769         AC_CONFIG_AUX_DIR directive.
68770         (create-testdir, create-megatestdir, test, megatest): Provide a
68771         default value for $auxdir.
68772
68773 2005-08-24  Bruno Haible  <bruno@clisp.org>
68774
68775         * gnulib-tool (import): Use compound statement instead of subshell
68776         where possible.
68777
68778 2005-08-24  Bruno Haible  <bruno@clisp.org>
68779
68780         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68781
68782 2005-08-24  Bruno Haible  <bruno@clisp.org>
68783
68784         * gnulib-tool (func_version): Update.
68785
68786 2005-08-24  Bruno Haible  <bruno@clisp.org>
68787
68788         * gnulib-tool (func_import, func_create_testdir,
68789         func_create_megatestdir): Quote all autoconf macro arguments.
68790
68791 2005-08-24  Bruno Haible  <bruno@clisp.org>
68792
68793         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68794         option --force, because --force causes the aclocal.m4 of each
68795         subdirectory to be newer than the corresponding config.h.in.
68796
68797 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68798
68799         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68800         All contents moved to gl_REGEX.
68801         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68802         assume that it does.
68803
68804 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * lib/regex.h (REG_NOSYS)
68807         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68808         Define, since POSIX requires it as of 2001.
68809         (_REG_ENOSYS)
68810         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68811         New private symbol, used to keep the enum signed in all cases.
68812         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68813         Youngman in
68814         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68815
68816         * lib/regex_internal.c (re_string_skip_chars, register_state):
68817         (calc_state_hash):
68818         Remove forward decls; no longer needed now that we use prototypes.
68819         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68820         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68821         (clean_state_log_if_needed): Likewise.
68822
68823 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68824
68825         * config/srclist.txt: Add glibc bugs 1231-1233.
68826
68827 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68828
68829         Fix problems reported by Sam Steingold in
68830         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68831         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68832         assumed that reg_errcode_t is a signed type, which is not
68833         necessarily true if _XOPEN_SOURCE is not defined.
68834         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68835         since some compilers warn about it otherwise.
68836
68837 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68840         (init_word_char, create_initial_state, duplicate_node_closure):
68841         (fetch_token, peek_token_bracket, build_range_exp):
68842         (build_collating_symbol): Remove forward decls; no longer needed
68843         now that we use prototypes.
68844
68845         * lib/regcomp.c:
68846         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68847         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68848         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68849         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68850         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68851         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68852         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68853         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68854         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68855         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68856         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68857         (build_charclass, build_charclass_op, fetch_number, create_tree):
68858         (create_token_tree, mark_opt_subexp, duplicate_tree):
68859         Use prototypes rather than old-style definitions.
68860
68861         * lib/regex_internal.c:
68862         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68863         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68864         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68865         (re_string_reconstruct, re_string_peek_byte_case):
68866         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68867         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68868         (re_node_set_init_copy, re_node_set_add_intersect):
68869         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68870         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68871         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68872         (re_acquire_state, re_acquire_state_context, register_state):
68873         (create_ci_newstate, create_cd_newstate, free_state):
68874         Likewise.
68875         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68876         re_search_2):
68877         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68878         (re_search_internal, prune_impossible_nodes):
68879         (acquire_init_state_context, check_matching, static):
68880         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68881         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68882         (update_regs, sift_states_backward, build_sifted_states):
68883         (clean_state_log_if_needed, merge_state_array):
68884         (update_cur_sifted_state, add_epsilon_src_nodes):
68885         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68886         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68887         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68888         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68889         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68890         (check_arrival, check_arrival_add_next_nodes):
68891         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68892         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68893         (check_node_accept_bytes, check_node_accept, extend_buffers):
68894         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68895         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68896         (sift_ctx_init):
68897         Likewise.
68898
68899         * lib/regex_internal.h:
68900         (re_string_allocate, re_string_construct, re_string_reconstruct):
68901         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68902         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68903         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68904         (re_string_context_at, re_string_peek_byte_case):
68905         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68906         is defined, since we now use prototypes always.
68907
68908         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68909         C89 or better.  All uses removed.
68910
68911 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68912
68913         * config/srclist.txt: Add glibc bugs 1220-1227.
68914
68915 2005-08-20  Jim Meyering  <jim@meyering.net>
68916
68917         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68918         of unused local, dfa.
68919
68920 2005-08-20  Bruno Haible  <bruno@clisp.org>
68921
68922         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68923
68924 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68925
68926         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68927         (re_node_set_insert_last, re_dfa_add_node):
68928         Rename local variables to avoid GCC shadowing warnings.
68929
68930 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68931
68932         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68933         [defined lint]: Suppress bogus uninitialized-variable warnings.
68934
68935         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68936         and let the caller return REG_ESPACE if out of space.  This
68937         removes an uninitialied-variable warning with GCC 4.0.1, and also
68938         avoids taking the address of a local variable.  All callers
68939         changed.
68940
68941 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68944         $LIBCSRC/posix/regexec.c.
68945         Add glibc bug 1217 for regcomp.c.
68946
68947 2005-08-19  Jim Meyering  <jim@meyering.net>
68948
68949         * lib/regexec.c (proceed_next_node): Redo local variables to
68950         avoid GCC shadowing warnings.
68951
68952 2005-08-18  Bruno Haible  <bruno@clisp.org>
68953
68954         * lib/strstr.c (strstr): Fix return value in multibyte case.
68955         * lib/strcasestr.c (strcasestr): Likewise.
68956
68957 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68958
68959         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68960
68961 2005-08-17  Jim Meyering  <jim@meyering.net>
68962
68963         Make the %s format (seconds since the epoch) work for a negative
68964         number and when used with a zero-padded field width, e.g. %015s.
68965
68966         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68967         label so that it precedes the code to set `digits'.  Otherwise,
68968         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68969         print `00-22'.  Now, it prints `-0022', as it should.
68970
68971 2005-08-17  Bruno Haible  <bruno@clisp.org>
68972
68973         * modules/strstr (Files): Add m4/mbrtowc.m4.
68974         (Depends-on): Add mbuiter.
68975
68976 2005-08-17  Bruno Haible  <bruno@clisp.org>
68977
68978         * modules/strcasestr: New file.
68979         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68980         strcasestr.
68981
68982 2005-08-17  Bruno Haible  <bruno@clisp.org>
68983
68984         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68985
68986 2005-08-17  Bruno Haible  <bruno@clisp.org>
68987
68988         * modules/mbuiter: New file.
68989         * MODULES.html.sh (Extended multibyte and wide character utilities):
68990         Add mbuiter.
68991
68992 2005-08-17  Bruno Haible  <bruno@clisp.org>
68993
68994         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68995         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68996
68997 2005-08-17  Bruno Haible  <bruno@clisp.org>
68998
68999         * m4/strcasestr.m4: New file.
69000
69001 2005-08-17  Bruno Haible  <bruno@clisp.org>
69002
69003         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
69004         * lib/strstr.c: Completely rewritten, with multibyte locale support.
69005
69006 2005-08-17  Bruno Haible  <bruno@clisp.org>
69007
69008         * lib/strcasestr.h: New file.
69009         * lib/strcasestr.c: New file.
69010
69011 2005-08-17  Bruno Haible  <bruno@clisp.org>
69012
69013         * lib/strcasecmp.c: Use mbuiter.h.
69014
69015 2005-08-17  Bruno Haible  <bruno@clisp.org>
69016
69017         * lib/mbuiter.h: New file.
69018
69019 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69020
69021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
69022         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
69023         and gl_GETOPT are both invoked via different paths (as happens
69024         with GNU tar CVS because it uses both argp and getopt), the former
69025         wins.
69026
69027 2005-08-16  Bruno Haible  <bruno@clisp.org>
69028
69029         * modules/tls: New file.
69030         * MODULES.html.sh (Multithreading): Add tls.
69031
69032 2005-08-16  Bruno Haible  <bruno@clisp.org>
69033
69034         * modules/strnlen1: New file.
69035         * MODULES.html.sh (String handling): Add strnlen1.
69036
69037 2005-08-16  Bruno Haible  <bruno@clisp.org>
69038
69039         * modules/strcase (Files): Add m4/mbrtowc.m4.
69040         (Depends-on): Add strnlen1, mbchar.
69041
69042 2005-08-16  Bruno Haible  <bruno@clisp.org>
69043
69044         * modules/mbiter: New file.
69045         * MODULES.html.sh (Extended multibyte and wide character utilities):
69046         Add mbiter.
69047
69048 2005-08-16  Bruno Haible  <bruno@clisp.org>
69049
69050         * modules/mbfile: New file.
69051         * MODULES.html.sh (Extended multibyte and wide character utilities):
69052         Add mbfile.
69053
69054 2005-08-16  Bruno Haible  <bruno@clisp.org>
69055
69056         * modules/mbchar: New file.
69057         * MODULES.html.sh (Extended multibyte and wide character utilities):
69058         New section.
69059
69060 2005-08-16  Bruno Haible  <bruno@clisp.org>
69061
69062         * m4/tls.m4: New file, from GNU gettext.
69063
69064 2005-08-16  Bruno Haible  <bruno@clisp.org>
69065
69066         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
69067         always.
69068         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
69069
69070 2005-08-16  Bruno Haible  <bruno@clisp.org>
69071
69072         * m4/mbiter.m4: New file.
69073
69074 2005-08-16  Bruno Haible  <bruno@clisp.org>
69075
69076         * m4/mbfile.m4: New file.
69077
69078 2005-08-16  Bruno Haible  <bruno@clisp.org>
69079
69080         * m4/mbchar.m4: New file.
69081
69082 2005-08-16  Bruno Haible  <bruno@clisp.org>
69083
69084         * lib/tls.h: New file, from GNU gettext.
69085         * lib/tls.c: New file, from GNU gettext.
69086
69087 2005-08-16  Bruno Haible  <bruno@clisp.org>
69088
69089         * lib/strnlen1.h: New file.
69090         * lib/strnlen1.c: New file.
69091
69092 2005-08-16  Bruno Haible  <bruno@clisp.org>
69093
69094         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
69095         (mbi_init): Update.
69096         (mbi_avail, mbi_advance): Let the iteration end before the terminating
69097         NUL byte, not after it.
69098
69099 2005-08-16  Bruno Haible  <bruno@clisp.org>
69100
69101         * lib/strcase.h (strcasecmp): Add note in comments.
69102         * lib/strncasecmp.c: Use code from strcasecmp.c.
69103         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
69104         (strcasecmp): Work correctly in multibyte locales.
69105
69106 2005-08-16  Bruno Haible  <bruno@clisp.org>
69107
69108         * lib/mbiter.h: New file.
69109
69110 2005-08-16  Bruno Haible  <bruno@clisp.org>
69111
69112         * lib/mbfile.h: New file.
69113
69114 2005-08-16  Bruno Haible  <bruno@clisp.org>
69115
69116         * lib/mbchar.h: New file.
69117         * lib/mbchar.c: New file.
69118
69119 2005-08-16  Bruno Haible  <bruno@clisp.org>
69120
69121         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
69122         the valid ones. Makes the comparison operations transitive:
69123         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
69124         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
69125
69126 2005-08-15  Simon Josefsson  <jas@extundo.com>
69127
69128         * modules/ssize_t (License): Change to 'unlimited'.
69129
69130         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
69131
69132 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
69135         Add comments for each pending glibc patch.
69136
69137 2005-08-15  Bruno Haible  <bruno@clisp.org>
69138
69139         * lib/regex.h (__restrict_arr): Don't define to __restrict if
69140         __cplusplus is defined.
69141
69142 2005-08-14  Jim Meyering  <jim@meyering.net>
69143
69144         Sync from coreutils.
69145
69146         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
69147         Use the hash-table-based cycle-detection code not just when
69148         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
69149         Reported by James Youngman in
69150         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
69151         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
69152         FTS_TIGHT_CYCLE_CHECK.
69153         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
69154         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
69155         once again.
69156         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
69157         * lib/fts.c (fd_safer): Remove decl.
69158         Include fcntl--.h rather than unistd-safer.h
69159         (fts_safe_changedir): Don't call fd_safer; no longer needed
69160         now that we include fcntl--.h.
69161
69162 2005-08-12  Simon Josefsson  <jas@extundo.com>
69163
69164         * modules/getndelim2: Use ssize_t module.
69165         * modules/getnline: Likewise.
69166         * modules/safe-read: Likewise.
69167         * modules/xreadlink: Likewise.
69168
69169         * modules/ssize_t: New file.
69170
69171 2005-08-12  Simon Josefsson  <jas@extundo.com>
69172
69173         * m4/readline.m4: Look for termcap, curses or ncurses if required.
69174
69175 2005-08-12  Simon Josefsson  <jas@extundo.com>
69176
69177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69178         ssize_t.
69179
69180 2005-08-12  Simon Josefsson  <jas@extundo.com>
69181
69182         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
69183         readline, getdelim and check_version.
69184         (Support for systems lacking ISO C 99: Sizes of integer types):
69185         Add size_max.
69186
69187 2005-08-12  Bruno Haible  <bruno@clisp.org>
69188
69189         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
69190
69191 2005-08-11  Simon Josefsson  <jas@extundo.com>
69192
69193         * modules/readline: New file.
69194
69195         * modules/strnlen (Files): Add strnlen.h.
69196
69197 2005-08-11  Simon Josefsson  <jas@extundo.com>
69198
69199         * m4/readline.m4: New file.
69200
69201 2005-08-11  Simon Josefsson  <jas@extundo.com>
69202
69203         * lib/readline.h, readline.c: New file.
69204
69205 2005-08-11  Simon Josefsson  <jas@extundo.com>
69206
69207         * doc/gnulib.texi (Initial import, Finishing touches): Mention
69208         gl_AVOID.
69209
69210 2005-08-11  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/strnlen.h (strnlen): Change parameter name to match comment.
69213
69214 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
69215
69216         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
69217
69218 2005-08-10  Simon Josefsson  <jas@extundo.com>
69219
69220         * tests/test-iconvme.c: New file.
69221
69222 2005-08-10  Simon Josefsson  <jas@extundo.com>
69223
69224         * m4/strnlen.m4: New file.
69225
69226         * m4/strndup.m4: Don't check for strnlen declaration, done in
69227         strnlen.m4.
69228
69229 2005-08-10  Simon Josefsson  <jas@extundo.com>
69230
69231         * lib/strndup.c: Use strnlen.h.
69232
69233         * lib/strnlen.h: New file.
69234
69235 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69236
69237         * README: Typos.
69238
69239 2005-08-02  Simon Josefsson  <jas@extundo.com>
69240
69241         * modules/readline: New file.
69242
69243 2005-08-02  Simon Josefsson  <jas@extundo.com>
69244
69245         * modules/getdelim: New file.
69246
69247         * modules/getline: Rewrite, don't use getndelim2.
69248
69249 2005-08-02  Simon Josefsson  <jas@extundo.com>
69250
69251         * m4/getline.m4: Separate out getdelim stuff into separate module.
69252
69253         * m4/getdelim.m4: New file.
69254
69255 2005-08-02  Simon Josefsson  <jas@extundo.com>
69256
69257         * lib/getline.h, getline.c: Rewrite.
69258
69259         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
69260
69261 2005-07-31  Bruno Haible  <bruno@clisp.org>
69262
69263         * lib/lock.h (gl_lock_initializer): New macro.
69264         (gl_lock_define_initialized): Use it.
69265         (gl_rwlock_initializer): New macro.
69266         (gl_rwlock_define_initialized): Use it.
69267         (gl_recursive_lock_initializer): New macro.
69268         (gl_recursive_lock_define_initialized): Use it.
69269
69270 2005-07-30  Karl Berry  <karl@gnu.org>
69271
69272         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
69273         Report from Ben Pfaff, regarding getopt.
69274
69275 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
69276
69277         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
69278         normal way.
69279         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
69280         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
69281         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
69282         (gl_GETOPT): Use the new macros.  Most of the implementation
69283         is moved to the new macros.  This is for programs like Emacs
69284         that don't want all the functionality of gl_GETOPT.
69285
69286 2005-07-26  Bruno Haible  <bruno@clisp.org>
69287
69288         * m4/lock.m4: Update from GNU gettext.
69289
69290 2005-07-26  Bruno Haible  <bruno@clisp.org>
69291
69292         * lib/lock.h: Update from GNU gettext.
69293         * lib/lock.c: Update from GNU gettext.
69294
69295 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
69298         obsolescent AC_TRY_RUN.  Include the default includes files, for
69299         'exit'.
69300
69301 2005-07-24  Bruno Haible  <bruno@clisp.org>
69302
69303         * modules/visibility: New file.
69304         * MODULES.html.sh (Misc): Add visibility.
69305
69306 2005-07-24  Bruno Haible  <bruno@clisp.org>
69307
69308         * m4/visibility.m4: New file.
69309
69310 2005-07-24  Bruno Haible  <bruno@clisp.org>
69311
69312         * doc/visibility.texi: New file.
69313
69314 2005-07-22  Bruno Haible  <bruno@clisp.org>
69315
69316         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
69317         $(ALLOCA_H), redundant through BUILT_SOURCES.
69318         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
69319         redundant through BUILT_SOURCES.
69320         * modules/byteswap (Makefile.am): Remove explicit dependency on
69321         $(BYTESWAP_H), redundant through BUILT_SOURCES.
69322         * modules/fnmatch (Makefile.am): Remove explicit dependency on
69323         $(FNMATCH_H), redundant through BUILT_SOURCES.
69324         * modules/getopt (Makefile.am): Remove explicit dependency on
69325         $(GETOPT_H), redundant through BUILT_SOURCES.
69326         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
69327         redundant through BUILT_SOURCES.
69328         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69329         redundant through BUILT_SOURCES.
69330         * modules/stdbool (Makefile.am): Remove explicit dependency on
69331         $(STDBOOL_H), redundant through BUILT_SOURCES.
69332         * modules/stdint (Makefile.am): Remove explicit dependency on
69333         $(STDINT_H), redundant through BUILT_SOURCES.
69334         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69335         Remove explicit dependency on $(SYSEXITS_H).
69336         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69337
69338 2005-07-18  Simon Josefsson  <jas@extundo.com>
69339
69340         * lib/check-version.c (check_version): Accept identical versions too.
69341
69342 2005-07-18  Bruno Haible  <bruno@clisp.org>
69343
69344         * modules/lock: New file.
69345         * MODULES.html.sh (Multithreading): New section.
69346
69347 2005-07-18  Bruno Haible  <bruno@clisp.org>
69348
69349         * m4/lock.m4: New file, from GNU gettext.
69350
69351 2005-07-18  Bruno Haible  <bruno@clisp.org>
69352
69353         * lib/lock.h: New file, from GNU gettext.
69354         * lib/lock.c: New file, from GNU gettext.
69355
69356 2005-07-18  Bruno Haible  <bruno@clisp.org>
69357
69358         * lib/lock.h (gl_once_t): New type.
69359         (gl_once_define, gl_once): New macros.
69360         * lib/lock.c (fresh_once): New variable.
69361         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69362         functions.
69363
69364 2005-07-16  Simon Josefsson  <jas@extundo.com>
69365
69366         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69367         workaround, suggested by Bruno.
69368
69369 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69370
69371         * modules/xalloc (Depends-on): Add xalloc-die.
69372         * modules/xvasprintf (Depends-on): Add xalloc-die.
69373
69374 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69375
69376         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69377         with a minor change.
69378
69379 2005-07-15  Bruno Haible  <bruno@clisp.org>
69380
69381         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69382         When using lib/poll.c, define poll as rpl_poll.
69383
69384 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69385
69386         * modules/argp (Depends-on): Remove unlocked-io.
69387
69388 2005-07-14  Derek Price  <derek@ximbiot.com>
69389
69390         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69391         for glob symlink bug.
69392
69393 2005-07-14  Bruno Haible  <bruno@clisp.org>
69394
69395         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69396         Instead, test for *_unlocked function declarations directly.
69397
69398 2005-07-11  Simon Josefsson  <jas@extundo.com>
69399
69400         * modules/size_max: New file.
69401
69402         * modules/xsize: Depend on size_max module for size_max.m4.
69403
69404 2005-07-11  Simon Josefsson  <jas@extundo.com>
69405
69406         * lib/size_max.h: New file.
69407
69408 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69409
69410         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69411         copyright symbol and the year.
69412         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69413         (version_etc_va): Use parameterized copyright notice.
69414         Reword to conform to the current GNU coding standards.
69415
69416 2005-07-11  Karl Berry  <karl@gnu.org>
69417
69418         * doc/gnulib.texi (Quoting): new node.
69419         (Initial import): more info, from Patrice.
69420
69421 2005-07-11  Bruno Haible  <bruno@clisp.org>
69422
69423         * gnulib-tool (func_usage): Document option --avoid.
69424         (Command line options): Handle --avoid.
69425         (func_acceptable): New function.
69426         (func_modules_transitive_closure): Use it.
69427
69428 2005-07-11  Bruno Haible  <bruno@clisp.org>
69429
69430         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69431         Reported by Jim Meyering.
69432
69433 2005-07-10  Bruno Haible  <bruno@clisp.org>
69434
69435         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69436         Needed when size_t is smaller than 'unsigned int'.
69437         Reported by Paul Eggert.
69438
69439 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69440
69441         * modules/argp (Depends-on): Add unlocked-io
69442
69443 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69444
69445         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69446         block of defines.
69447
69448 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69451         fix now.
69452
69453 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69454         and Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69457         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69458
69459 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69460
69461         * modules/regex (Files): Add lib/regex_internal.c,
69462         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69463         (Depends-on): Add extensions.
69464         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69465
69466 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69467
69468         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69469         pathconf.
69470         * m4/same.m4 (gl_SAME): Likewise.
69471         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69472
69473         * m4/regex.m4: Adjust to new libc regex implementation.
69474         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69475         all the .c and .h parts of (the new) regex.
69476         Quote the m4 stuff better.
69477         Check for RE_ICASE bug of old gnulib.
69478         Check for REG_STARTEND of recent libc.
69479         Rename local variables from jm_* to gl_*.
69480         Quote operand of "test -f".
69481         Say "recent enough" version of libc, not "version 2".
69482         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69483         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69484         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69485         Remove check for btowc, isascii.
69486         Require AM_LANGINFO_CODESET.
69487
69488 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         * lib/regex.c, regex.h: Sync from libc.
69491         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69492         * lib/regexec.c:
69493         New files, synced from libc, except that regex_internal.h
69494         currently has a small porting fix.
69495
69496 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69497
69498         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69499         regex_internal.c, regexec.c.
69500         Add regex_internal.h too, but as a comment, since the libc version
69501         is currently broken in gnulib mode.
69502
69503 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69504
69505         Support programs like Emacs that use gnulib but not gettext.
69506         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69507         * modules/gettext-h: New file.
69508         * modules/gettext (Files): Remove lib/gettext.h.
69509         (Depends-on): Add gettext-h.
69510         (Makefile.am): Remove lib_SOURCES.
69511         * modules/argmatch, modules/c-stack, modules/closeout:
69512         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69513         * modules/execute, modules/file-type, modules/getaddrinfo:
69514         * modules/getopt, modules/human, modules/javacomp:
69515         * modules/javaexec, modules/mkdir-p, modules/obstack:
69516         * modules/openat, modules/pagealign_alloc, modules/pipe:
69517         * modules/quotearg, modules/regex, modules/rpmatch:
69518         * modules/unicodeio, modules/userspec, modules/version-etc:
69519         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69520         * modules/xsetenv:
69521         Depend on gettext-h, not gettext.
69522
69523 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69524
69525         * gnulib-tool (func_import): Add support for 'public domain' license.
69526         * modules/alloca, modules/atexit, modules/memmove:
69527         Now public domain, not GPL.
69528         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69529         * modules/realloc, modules/strerror, modules/strtod:
69530         Now LGPL, not GPL.
69531
69532 2005-07-05  Bruno Haible  <bruno@clisp.org>
69533
69534         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69535         autoconf CVS. Needed for mingw.
69536
69537 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         Remove the dependency of the strftime module on the tzset module.
69540         * modules/strftime (Depends-on): Remove dependency on tzset.
69541
69542 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         Remove the dependency of the strftime module on the tzset module.
69545         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69546         gl_FUNC_TZSET_CLOBBER.
69547
69548 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         Remove the dependency of the strftime module on the tzset module.
69551         * lib/strftime.c (my_strftime)
69552         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69553         Copy the input structure, to work around some of the bug with
69554         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69555         Solaris releases, you should also use the tzset module, but we won't
69556         require it as a dependency any more since we don't want LGPLed code
69557         to depend on GPLed code.
69558
69559 2005-07-02  Jim Meyering  <jim@meyering.net>
69560
69561         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69562         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69563         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69564         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69565
69566 2005-07-02  Jim Meyering  <jim@meyering.net>
69567
69568         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69569
69570 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69571
69572         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69573         declares only 'struct timespec;' (!).
69574
69575 2005-07-01  Jim Meyering  <jim@meyering.net>
69576
69577         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69578         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69579         * lib/save-cwd.c, tempname.c:
69580         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69581         and don't include <sys/file.h>).
69582
69583 2005-06-29  Jim Meyering  <jim@meyering.net>
69584
69585         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69586         type name.  Use the variable name instead.
69587         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69588         Likewise.
69589
69590 2005-06-28  Simon Josefsson  <jas@extundo.com>
69591
69592         * modules/check-version (Files): Add check-version.m4.
69593
69594 2005-06-28  Simon Josefsson  <jas@extundo.com>
69595
69596         * m4/check-version.m4: New file, suggested by Jim Meyering
69597         <jim@meyering.net>.
69598
69599 2005-06-28  Simon Josefsson  <jas@extundo.com>
69600
69601         * lib/check-version.h, lib/check-version.c: New files.
69602
69603 2005-06-28  Simon Josefsson  <jas@extundo.com>
69604
69605         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69606         collision with global variable.  Better indentation.  Don't
69607         increment buffer pointer beyond buffer end.  Based on comments
69608         from Paul Eggert <eggert@cs.ucla.edu>.
69609
69610         * lib/base64.h: Indent.
69611
69612 2005-06-28  Simon Josefsson  <jas@extundo.com>
69613
69614         * doc/gnulib.texi (Library version handling): New section.
69615
69616 2005-06-28  Jim Meyering  <jim@meyering.net>
69617
69618         * check-module (find_included_lib_files): Hard-code another
69619         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69620         but modules/fts-lgpl (correctly) does not list those files.
69621
69622         * modules/canonicalize (Files): Add lib/pathmax.h.
69623
69624 2005-06-25  Simon Josefsson  <jas@extundo.com>
69625
69626         * modules/check-version: New file.
69627
69628 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69629
69630         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69631         initializer of struct addrinfo, as an indication that we don't
69632         care how many members the structure has.
69633
69634 2005-06-24  Derek Price  <derek@ximbiot.com>
69635         and Bruno Haible  <bruno@clisp.org>
69636
69637         Remove stat module & update lstat.
69638         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69639         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69640         * m4/stat.m4: Remove this file.
69641
69642 2005-06-24  Derek Price  <derek@ximbiot.com>
69643         and Bruno Haible  <bruno@clisp.org>
69644
69645         Remove stat module & update lstat.
69646         * lib/stat.c: Remove this file...
69647         (slash_aware_lstat): ...moving this content and its support...
69648         * lib/lstat.c (rpl_lstat): ...into here.
69649         * lib/lstat.h: New file.
69650
69651 2005-06-24  Derek Price  <derek@ximbiot.com>
69652         and Bruno Haible  <bruno@clisp.org>
69653
69654         Remove stat module & update lstat.
69655         * config/srclist.txt (libc sources): Remove stat.
69656
69657 2005-06-24  Derek Price  <derek@ximbiot.com>
69658         and Bruno Haible  <bruno@clisp.org>
69659
69660         Remove stat module & update lstat.
69661         * MODULES.html.sh (stat): Remove.
69662         * MODULES.html: Regenerated.
69663         * modules/lstat (Description): Correct function name.
69664         (Files): Add "lstat.h".
69665         (Depends-on): Remove stat, add xalloc, stat-macros.
69666         * modules/stat: Remove this file.
69667         (Include): Add "lstat.h", remove <sys/stat.h>.
69668
69669 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69670
69671         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69672         (ranged_convert): Don't save conversion in a temporary struct.
69673         This causes a warning with GCC 4.0.0, and anyway in the typical
69674         case it's not worth the extra 100 bytes or so of code.
69675         (ranged_convert, __mktime_internal): When calling a function via a
69676         pointer P, use P () rather than (*P) (), as we now assume C89 or
69677         better.
69678
69679 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69680
69681         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69682         "who -r" failed to give output.  Problem reported by Tim Waugh.
69683
69684         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69685         (xcalloc): Use it to avoid needless tests.
69686         Problem reported by Jim Meyering.
69687
69688 2005-06-20  Derek Price  <derek@ximbiot.com>
69689
69690         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69691         unnecessary for Autoconfs > 2.59c.
69692
69693 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69694
69695         * lib/argp.h (__option_is_short): Check upper limit of
69696         __key. Isprint() requires its argument to have the value
69697         of an unsigned char or EOF.
69698
69699 2005-06-16  Jim Meyering  <jim@meyering.net>
69700
69701         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69702         when either N or S is zero.
69703
69704 2005-06-16  Derek Price  <derek@ximbiot.com>
69705
69706         * m4/bison.m4: Declare YACC & YFLAGS precious.
69707
69708 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69709
69710         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69711         multibyte string or pattern, fall back on unibyte matching.
69712         Problem reported by James Youngman.
69713
69714 2005-06-08  Bruno Haible  <bruno@clisp.org>
69715
69716         * modules/csharpcomp: New file.
69717         * MODULES.html.sh (C#): Add csharpcomp.
69718
69719 2005-06-08  Bruno Haible  <bruno@clisp.org>
69720
69721         * m4/csharpcomp.m4: New file, from GNU gettext.
69722
69723 2005-06-08  Bruno Haible  <bruno@clisp.org>
69724
69725         * lib/csharpcomp.h: New file, from GNU gettext.
69726         * lib/csharpcomp.c: New file, from GNU gettext.
69727         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69728
69729 2005-06-08  Bruno Haible  <bruno@clisp.org>
69730
69731         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69732         warning on mingw.
69733
69734 2005-06-07  Derek Price  <derek@ximbiot.com>
69735
69736         Sync from CVS.
69737         * lib/glob_.h: Indent nested #ifdef.
69738
69739 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         Sync from coreutils.
69742         Use "file name" when talking about file names, instead of "filename"
69743         or "path", as per the GNU coding standards.
69744         * lib/mkdir-p.c: Renamed from makepath.c.
69745         (make_dir_parents): Renamed from make_path.  All callers changed.
69746         * lib/mkdir-p.h: Likewise.  All includers changed.
69747         * lib/filenamecat.c: Renamed from path-concat.c.
69748         (file_name_concat): Renamed from path_concat.  All callers changed.
69749         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69750         * lib/filenamecat.h: Likewise.  All includers changed.
69751         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69752         in comments or local variable names.
69753         * lib/basename.c: Likewise.
69754         * lib/canonicalize.c, canonicalize.h: Likewise.
69755         * lib/dirname.c, dirname.h: Likewise.
69756         * lib/euidaccess.c: Likewise.
69757         * lib/exclude.c: Likewise
69758         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69759         * lib/fsusage.c, fsuage.h: Likewise.
69760         * lib/fts.c, fts_.h: Likewise.
69761         * lib/getcwd.c: Likewise.
69762         * lib/getloadavg.c: Likewise.
69763         * lib/mkstemp.c: Likewise.
69764         * lib/mountlist.c, mountlist.h: Likewise.
69765         * lib/openat.c, openat.h: Likewise.
69766         * lib/readlink-stub.c: Likewise.
69767         * lib/readutmp.c, readutmp.h: Likewise.
69768         * lib/rename.c: Likewise.
69769         * lib/rmdir.c: Likewise.
69770         * lib/same.c: Likewise.
69771         * lib/savedir.c: Likewise.
69772         * lib/stripslash.c: Likewise.
69773         * lib/tempname.c: Likewise.
69774         * lib/xreadlink.c: Likewise.
69775         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69776         All uses changed.
69777         * lib/exclude.h: Likewise.
69778
69779         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69780         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69781         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69782         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69783         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69784         files have been getting away with it for years (MORE/BSD 4.3
69785         is extinct now).
69786         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69787         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69788
69789         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69790         Define to 256, not 255, as per modern POSIX.
69791
69792 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         Sync from coreutils.
69795         Use "file name" when talking about file names, instead of "filename"
69796         or "path", as per the GNU coding standards.
69797         * MODULES.html.sh: mkdir-p renamed from makepath.
69798         filenamecat renamed from path-concat.
69799         * modules/filenamecat: Renamed from modules/path-concat.
69800         (Files): filenamecat.h and filenamecat.c renamed from
69801         path-concat.h and path-concat.c.
69802         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69803         (Include): filenamecat.h, not path-concat.h.
69804         * modules/mkdir-p: Renamed from modules/makepath.
69805         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69806         makepath.c.
69807         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69808         (Include): mkdir-p.h, not makepath.h.
69809
69810 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69811
69812         Sync from coreutils.
69813         * m4/mkdir-p.m4: Renamed from makepath.m4.
69814         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69815         Rename files from makepath.c to mkdir-p.c, and from
69816         makepath.h to mkdir-p.h.
69817         * m4/filenamecat.m4: Renamed from path-concat.m4.
69818         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69819         Rename files from path-concat.c to filenamecat.c,
69820         and from path-concat.h to filenamecat.h.
69821         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69822         "file name" in local variables or comments.
69823         * m4/rename.m4: Likewise.
69824
69825 2005-06-01  Bruno Haible  <bruno@clisp.org>
69826
69827         * modules/csharpexec: New file.
69828         * MODULES.html.sh (C#): New section.
69829
69830 2005-06-01  Bruno Haible  <bruno@clisp.org>
69831
69832         * m4/csharp.m4: New file, from GNU gettext.
69833         * m4/csharpexec.m4: New file, from GNU gettext.
69834
69835 2005-06-01  Bruno Haible  <bruno@clisp.org>
69836
69837         * lib/csharpexec.h: New file, from GNU gettext.
69838         * lib/csharpexec.c: New file, from GNU gettext.
69839         * lib/csharpexec.sh.in: New file, from GNU gettext.
69840
69841 2005-05-31  Derek Price  <derek@ximbiot.com>
69842             Paul Eggert  <eggert@cs.ucla.edu>
69843
69844         Sync from cvs.
69845         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69846
69847 2005-05-31  Derek Price  <derek@ximbiot.com>
69848             Paul Eggert  <eggert@cs.ucla.edu>
69849
69850         Sync from cvs.
69851         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69852
69853 2005-05-29  Derek Price  <derek@ximbiot.com>
69854
69855         * config/srclist.txt (glob_.h, glob.c): Add these files.
69856
69857 2005-05-29  Derek Price  <derek@ximbiot.com>
69858
69859         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69860         * modules/glob: New file.
69861         * modules/getlogin_r: Add link to POSIX spec in description.
69862
69863 2005-05-29  Derek Price  <derek@ximbiot.com>
69864             Paul Eggert  <eggert@cs.ucla.edu>
69865
69866         * m4/glob.m4: New file.
69867
69868 2005-05-29  Derek Price  <derek@ximbiot.com>
69869             Paul Eggert  <eggert@cs.ucla.edu>
69870
69871         * lib/glob_.h, lib/glob.c: New files.
69872
69873 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69874
69875         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69876         * modules/fts-lgpl (Depends-on): Remove gettext.
69877
69878 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69881         and don't require gt_INTTYPES_PRI.
69882
69883 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69886
69887         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69888         the configuration hassle isn't worth it.
69889         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69890         (LONGEST_MODIFIER, PRIuMAX): Remove.
69891
69892 2005-05-27  Bruno Haible  <bruno@clisp.org>
69893
69894         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69895
69896 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69897
69898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69899         _POSIX_PTHREAD_SEMANTICS for Solaris.
69900
69901 2005-05-25  Derek Price  <derek@ximbiot.com>
69902
69903         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69904
69905 2005-05-25  Derek Price  <derek@ximbiot.com>
69906             Paul Eggert  <eggert@cs.ucla.edu>
69907
69908         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69909         * lib/getlogin_r.c, getlogin_r.h: New files.
69910
69911 2005-05-25  Bruno Haible  <bruno@clisp.org>
69912             Derek Price  <derek@ximbiot.com>
69913
69914         * lib/getlogin_r.h: Simplify API documentation.
69915
69916 2005-05-23  Derek Price  <derek@ximbiot.com>
69917
69918         * modules/minmax (Files): Add m4/minmax.m4.
69919         (configure.ac): Add gl_MINMAX.
69920
69921 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69924         so that unistd-safer.h (GPL'ed code) need not be included.
69925
69926 2005-05-22  Bruno Haible  <bruno@clisp.org>
69927
69928         * m4/minmax.m4: New file.
69929         Based on a patch by Derek Price <derek@ximbiot.com>.
69930
69931 2005-05-22  Bruno Haible  <bruno@clisp.org>
69932
69933         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69934         (INT64_MIN): Fix definition.
69935         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69936
69937         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69938         NEED_SIGNED_INT_TYPES.
69939
69940         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69941         HAVE_SYSTEM_INTTYPES.
69942
69943 2005-05-22  Bruno Haible  <bruno@clisp.org>
69944
69945         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69946         Also include <sys/param.h> if it defines MIN, MAX.
69947         Based on a patch by Derek Price <derek@ximbiot.com>.
69948
69949 2005-05-21  Jim Meyering  <jim@meyering.net>
69950
69951         * modules/fts (Files): Add m4/inttypes-pri.m4.
69952         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69953
69954 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69955
69956         New fts module.
69957         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69958         (setup_dir, free_dir): New functions.
69959         (enter_dir, leave_dir): Define trivial
69960         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69961         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69962         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69963         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69964         Move to fts-cycle.c.
69965         (fts_open): Use setup_dir.
69966         (fts_close): Use free_dir.
69967         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69968         This adds a label and some gotos, but the alternatives were messier.
69969         Check for memory allocation failure when entering a dir.
69970         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69971         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69972         (FTS): New member fts_cycle, that is a union that contains the
69973         old active_dir_ht and cycle_state.  All uses changed to mention
69974         fts_cycle.ht and fts_cycle.state.
69975         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69976         fts.c, with the following changes:
69977         (setup_dir, free_dir): New functions.
69978         (enter_dir): Now returns bool.  Return true if successful, false
69979         if memory exhausted.  All callers changed.
69980         Do not bother partly cleaning up on
69981         memory allocation failure; that is free_dir's job.
69982         However, free ad if hash_insert fails, to avoid memory leak.
69983         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69984         fts->fts_options to see which union member to use.
69985
69986 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69989         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69990
69991 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69994
69995 2005-05-20  Jim Meyering  <jim@meyering.net>
69996
69997         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69998         Now a macro, to pacify GCC.
69999
70000 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70001
70002         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
70003         of -1.
70004
70005 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70006
70007         * lib/chown.c (rpl_chown): Return -1 on failure.
70008
70009 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70010
70011         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
70012         Don't check for stddef.h.
70013         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
70014         don't use its results.
70015         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
70016         since we include them unconditionally.  Don't require
70017         AM_STDBOOL_H, since stdbool is a prerequisite.
70018         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
70019         since we assume C89 or better.
70020         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
70021         as we don't use their results.
70022         Don't check for fchdir, memmove, memset, strrchr, as we use
70023         them unconditionally.
70024         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
70025         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
70026
70027 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
70030         Include <stddef.h> unconditionally, since we assume C89 now.
70031         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
70032         * lib/fts.c: Include fts_.h first, to check interface.
70033         Do not include intprops.h; no longer needed.
70034         Include cycle-check.h and hash.h, since fts_.h no longer does.
70035         Remove unnecessary casts of closedir to void.
70036         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
70037         decide whether to decrement nlinks.
70038         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
70039         (FTS): Use struct hash_table * instead of Hash_table, so that
70040         we no longer need to include hash.h here.
70041
70042 2005-05-18  Jim Meyering  <jim@meyering.net>
70043
70044         * modules/dirfd (License): Change to LGPL.  Most of the code
70045         is already in the public domain.
70046
70047 2005-05-18  Jim Meyering  <jim@meyering.net>
70048
70049         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
70050         Reported by Yoann Vandoorselaere.
70051
70052 2005-05-17  Jim Meyering  <jim@meyering.net>
70053
70054         * m4/fts.m4: New file, from coreutils.
70055
70056 2005-05-17  Jim Meyering  <jim@meyering.net>
70057
70058         * lib/fts.c, lib/fts_.h: New files, from coreutils.
70059
70060 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70061
70062         Sync from coreutils.
70063         * m4/unlinkdir.m4: New file.
70064
70065 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70066
70067         Sync from coreutils.
70068         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
70069         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
70070         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
70071         White space changes only.
70072         * lib/makepath.c (make_path): Port to hosts where leading "//" is
70073         special.
70074         * lib/yesno.c: Include getline.h, not ctype.h.
70075         (yesno): Don't remove leading white space; POSIX doesn't allow it.
70076         Use getline to remove arbitrary restriction on response length.
70077
70078 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70079
70080         * config/srclist-update: Spell out "Street" in FSF postal
70081         mail address; this is the style the FSF seems to prefer.
70082
70083         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
70084         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
70085         this updates FSF postal mail address.
70086
70087         Sync from coreutils.
70088         * modules/unlinkdir: New file.
70089         * modules/yesno (Depends-on): Add getline.
70090         * MODULES.html.sh (File system functions): Add unlinkdir.
70091
70092 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70093
70094         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
70095         lib/strsep.h:
70096         Change the initial comment to refer to GPL, not LGPL.
70097         gnulib-tool will change it to LGPL as needed.
70098
70099         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
70100         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
70101         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
70102         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
70103         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
70104         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
70105         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
70106         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
70107         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
70108         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
70109         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
70110         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
70111         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
70112         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
70113         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
70114         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
70115         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
70116         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
70117         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
70118         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
70119         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
70120         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
70121         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
70122         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
70123         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
70124         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
70125         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
70126         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
70127         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
70128         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
70129         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
70130         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
70131         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
70132         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
70133         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
70134         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
70135         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
70136         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
70137         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
70138         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
70139         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
70140         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
70141         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
70142         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
70143         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
70144         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
70145         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
70146         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
70147         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
70148         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
70149         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70150         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
70151         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
70152         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
70153         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
70154         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
70155         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
70156         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
70157         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
70158         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
70159         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
70160         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
70161         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
70162         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
70163         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
70164         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
70165         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
70166         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
70167         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
70168         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
70169         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
70170         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
70171         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
70172         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
70173         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
70174         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
70175         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
70176         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
70177         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
70178         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
70179         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
70180         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
70181         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
70182         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
70183         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
70184         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
70185         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
70186         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
70187         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
70188         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
70189         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
70190         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
70191         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
70192         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
70193         lib/yesno.c, lib/yesno.h:
70194         Update FSF postal mail address.
70195
70196 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70197
70198         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
70199         tests/test-memmem.c, tests/test-stpncpy.c:
70200         Update FSF postal mail address.
70201
70202 2005-05-13  Bruno Haible  <bruno@clisp.org>
70203
70204         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
70205         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
70206         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
70207         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
70208         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
70209         Add support for 64-bit integers in the MSVC compiler.
70210
70211 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70212
70213         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
70214
70215 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
70216
70217         * gnulib-tool (func_import): Sort and uniquify recommended includes.
70218
70219 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
70220
70221         * doc/getdate.texi (General date syntax): Don't say that date
70222         date --iso-8601=ns generates acceptable dates; it doesn't yet.
70223         Problem reported by Nic Ferrier.
70224
70225 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70226
70227         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
70228         specified in ai_socktype. Fix invalid ai_protocol
70229         check. ai_protocol is usually set to 0 or depending on
70230         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
70231         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
70232         ai_socktype / ai_protocol in the returned addrinfo structure.
70233
70234 2005-05-10  Simon Josefsson  <jas@extundo.com>
70235
70236         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
70237         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70238
70239 2005-05-10  Karl Berry  <karl@gnu.org>
70240
70241         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
70242         (from http://www.gnu.org/licenses).
70243         * doc/COPYING.LIB: also rename to COPYING.LESSER.
70244         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
70245         fdl.texi suffices.
70246
70247 2005-05-10  Karl Berry  <karl@gnu.org>
70248
70249         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
70250         (COPYING.DOC): remove.
70251
70252         * config/srclist-update: new FSF address.
70253
70254 2005-05-10  Derek Price  <derek@ximbiot.com>
70255
70256         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
70257         possible.
70258
70259 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70260             Bruno Haible  <bruno@clisp.org>
70261
70262         * modules/inet_ntop: New file.
70263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70264         inet_ntop.
70265
70266 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70267             Bruno Haible  <bruno@clisp.org>
70268
70269         * m4/inet_ntop.m4: New file.
70270
70271 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70272             Bruno Haible  <bruno@clisp.org>
70273
70274         * lib/inet_ntop.h: New file.
70275         * lib/inet_ntop.c: New file, from glibc with modifications.
70276
70277 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
70278
70279         * modules/time_r (License): Change to LGPL.
70280         * modules/extensions (License): Change to LGPL.  Actually,
70281         the license is more permissive than that, but currently gnulib-tool
70282         doesn't know how to handle more-permissive licenses.
70283
70284         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
70285         Problem reported by Dave Love.
70286
70287 2005-05-08  Jim Meyering  <jim@meyering.net>
70288
70289         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
70290         blank.
70291
70292 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70293
70294         * modules/argmatch (Depends-on): Add stdbool.
70295         * modules/backupfile (Depends-on): Likewise.
70296         * modules/chdir-long (Depends-on): Likewise.
70297         * modules/closeout (Depends-on): Likewise.
70298         * modules/cycle-check (Depends-on): Likewise.
70299         * modules/dirname (Depends-on): Likewise.
70300         * modules/fnmatch (Depends-on): Likewise.
70301         * modules/fsusage (Depends-on): Likewise.
70302         * modules/fwriteerror (Depends-on): Likewise.
70303         * modules/getcwd (Depends-on): Likewise.
70304         * modules/getloadavg (Depends-on): Likewise.
70305         * modules/hard-locale (Depends-on): Likewise.
70306         * modules/makepath (Depends-on): Likewise.
70307         * modules/mountlist (Depends-on): Likewise.
70308         * modules/nanosleep (Depends-on): Likewise.
70309         * modules/posixtm (Depends-on): Likewise.
70310         * modules/quotearg (Depends-on): Likewise.
70311         * modules/readtokens (Depends-on): Likewise.
70312         * modules/readtokens0 (Depends-on): Likewise.
70313         * modules/readutmp (Depends-on): Likewise.
70314         * modules/save-cwd (Depends-on): Likewise.
70315         * modules/strftime (Depends-on): Likewise.
70316         * modules/userspec (Depends-on): Likewise.
70317         * modules/utimecmp (Depends-on): Likewise.
70318         * modules/xgetcwd (Depends-on): Likewise.
70319         * modules/xnanosleep (Depends-on): Likewise.
70320         * modules/xstrtod (Depends-on): Likewise.
70321         * modules/yesno (Depends-on): Likewise.
70322
70323 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
70324
70325         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
70326         needless checks.
70327
70328 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70329
70330         Merge from coreutils.  Among other things,
70331         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70332         * lib/fd-safer.c: New file.
70333         * lib/fcntl-safer.h, open-safer.c: Remove.
70334         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70335         * lib/dup-safer.c: Include unistd-safer.h first.
70336         Don't include errno.h.
70337         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70338         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70339         * lib/file-type.c: Rely on file-type.h change.
70340         * lib/getloadavg.c: Include unistd-safer.h.
70341         (getloadavg): Use safer open.
70342         * lib/getusershell.c: Include "stdio-safer.h".
70343         (getusershell): Use safer fopen.
70344         * lib/long-options.c (long_options): Use NULL rather than 0.
70345         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70346         'free'.
70347         * lib/modechange.c: Likewise.
70348         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70349         (MODE_DONE): New constant.
70350         (struct mode_change): Remove 'next' member.
70351         (make_node_op_equals): New function; like the old one of the
70352         same name, except it allocates an array.
70353         (mode_compile, mode_create_from_ref): Use it.
70354         (mode_compile): Allocate result as an array, not a linked list.
70355         Parse octal string ourself, so that we catch mistakes like "+0".
70356         (mode_adjust): Arg is an array, not a linked list.
70357         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70358         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70359         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70360         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70361         Remove.  This is now stat-macros.h's job.
70362         (talloc): Remove.  All callers replaced by xalloc, so that
70363         our invokers don't have to worry about reporting memory failures.
70364         (make_node_op_equals): Remove.
70365         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70366         New constants.
70367         (struct mode_change): Moved here from modechange.h.
70368         (mode_append_entry): Remove.
70369         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70370         apps to have incorrect behavior.  Use simpler algorithm for head
70371         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70372         Detect more invalid usages rather than having somewhat-random behavior.
70373         Don't insert an "a=" action, as that leads to incorrect behavior.
70374         (mode_compile, mode_create_from_ref): Return NULL on error instead
70375         of an enum, since now there's only one way to have an error.  All
70376         callers changed.
70377         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70378         at the correct time.  Simplify calculation of "+u" and its ilk.
70379         Don't mishandle "+X".
70380         (mode_free): Remove "register" and localize decls.
70381         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70382         (struct mode_change): Move to modechange.c; callers don't
70383         need to see this stuff.
70384         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70385         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70386         (mode_change, mode_adjust): Reflect the new signatures noted above.
70387         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70388         that might redefine system include files.
70389         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70390         (my_usleep): Use NULL rather than (void *) 0.
70391         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70392         Use siginterrupt to specify that system calls should be interrupted.
70393         (rpl_nanosleep): Move initialization of suspended closer to call of
70394         my_usleep.
70395         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70396         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70397         (desirable_utmp_entry): New function.
70398         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70399         using x2nrealloc, to simplify logic.
70400         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70401         size calculation.  Do not assume utmp file is a regular file.
70402         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70403         (READ_UTMP_CHECK_PIDS): New constant.
70404         * lib/save-cwd.c: Include unistd-safer.h.
70405         (save_cwd): Use fd_safer.
70406         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70407         [!_LIBC] Include "stat-macros.h" instead.
70408         * lib/unistd-safer.h (fd_safer): New decl.
70409
70410 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         * modules/getloadavg (Depends-on): Add unistd-safer.
70413         * modules/getusershell (Depends-on): Add stdio-safer.
70414         * modules/lstat (Depends-on): Remove xalloc.
70415         * modules/mkstemp (Depends-on): Add stat-macros.
70416         * modules/modechange (Depends-on): Remove xstrtol.
70417         Add stat-macros, xalloc.
70418         * modules/save-cwd (Depends-on): Add unistd-safer.
70419         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70420         * modules/unistd-safer (Files): Add lib/fd-safer.c
70421         (Makefile.am): Remove lib_SOURCES.
70422
70423         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70424         Remove fcntl-safer; unistd-safer supersedes it.
70425
70426 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70429         AC_HEADER_STAT.
70430         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70431         (gl_PREREQ_CHOWN): Remove.
70432         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70433         it.  Don't require AC_HEADER_STAT.
70434         (gl_PREREQ_LSTAT): Remove.
70435         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70436         Don't require AC_HEADER_STAT.
70437         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70438         (gl_PREREQ_RMDIR): Remove.
70439         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70440         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70441         the stat-macros module a prerequisite.
70442         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70443         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70444         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70445         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70446         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70447         variable names.
70448         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70449         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70450         variable prefixes.
70451         * m4/fcntl-safer.m4: Remove.
70452         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70453         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70454         Invoke gl_PREREQ_FD_SAFER.
70455         (gl_PREREQ_FD_SAFER): New macro.
70456         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70457         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70458         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70459         Remove duplicate call to AC_LIBOBJ(readutmp).
70460         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70461
70462         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70463         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70464
70465 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         * MODULES.html.sh (Misc): Add byteswap.
70468
70469 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70470
70471         * modules/getcwd (Depends-on): Add extensions.
70472         * modules/openat (Depends-on): Likewise.
70473
70474 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70475
70476         * modules/byteswap: New file.
70477
70478 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70479
70480         * m4/byteswap.m4: New file.
70481
70482 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70483
70484         * lib/byteswap_.h: New file.
70485
70486 2005-04-25  Karl Berry  <karl@gnu.org>
70487
70488         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70489
70490 2005-04-25  Albert Chin  <china@thewrittenword.com>
70491
70492         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70493         Toolkit C bug.
70494
70495 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70496
70497         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70498         (func_ln_if_changed): Remove forcibly for no error message
70499         in case file does not exist.
70500
70501 2005-04-19  Simon Josefsson  <jas@extundo.com>
70502
70503         * gnulib-tool (Options): Make --symlink mean --symbolic.
70504
70505 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70506
70507         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70508
70509 2005-04-16  Simon Josefsson  <jas@extundo.com>
70510
70511         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70512
70513 2005-04-15  Simon Josefsson  <jas@extundo.com>
70514
70515         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70516
70517 2005-04-15  Simon Josefsson  <jas@extundo.com>
70518
70519         * gnulib-tool: Rename --symlink to --symbolic.
70520
70521 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70522
70523         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70524         symbolic links to files instead of copying/moving.  Add --aux-dir,
70525         specifying directory relative --dir where auxiliary build tools
70526         are placed.
70527
70528 2005-04-14  Bruno Haible  <bruno@clisp.org>
70529
70530         * modules/allocsa (License): Change to LGPL.
70531         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70532
70533 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70534
70535         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70536         that "UTC +1 second" continues to work.  Problem reported
70537         by Dmitry V. Levin.
70538         (relunit_snumber): New rule.
70539         (relunit): Use it.
70540
70541 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70542
70543         * lib/getdate.y (universal_time_zone_table): New constant.
70544         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70545         universal_time_zone_table.
70546         (lookup_zone): Prefer universal_time_zone_table to
70547         local_time_zone_table, so that "GMT" time stamps are allowed in
70548         London during the summer.  Problem reported by Ian Abbott.
70549
70550 2005-04-12  Jim Meyering  <jim@meyering.net>
70551
70552         * lib/human.c (humblock): Set *options even when returning due to
70553         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70554         warning from gcc-4.
70555
70556 2005-04-09  Jim Meyering  <jim@meyering.net>
70557
70558         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70559         -Wuninitialized: initialize tm0.tm_year.
70560
70561 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70562
70563         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70564         count, since there's no maximum.  All uses changed.
70565         Add member dsts_seen.
70566         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70567         not being INT_MAX.
70568         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70569         Use pc_rels_seen to decide whther a date is absolute.
70570
70571         * lib/getdate.y (number): Don't overwrite year.
70572         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70573         check.
70574
70575 2005-04-02  Simon Josefsson  <jas@extundo.com>
70576
70577         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70578         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70579
70580 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70581
70582         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70583         where no absolute path name can be longer than PATH_MAX.
70584
70585 2005-03-27  Jim Meyering  <jim@meyering.net>
70586
70587         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70588
70589 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70590
70591         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70592         "one's complement" -> "ones' complement" in comment, as per Knuth.
70593         "value of type" -> "type or expression" in comment.
70594         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70595
70596 2005-03-26  Jim Meyering  <jim@meyering.net>
70597
70598         Comment nits.
70599         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70600         Correct typos: s/or/of/.
70601
70602 2005-03-26  Jim Meyering  <jim@meyering.net>
70603
70604         * modules/check-include-files: Move to ../ and rename to...
70605         * check-module: ...this.
70606
70607 2005-03-25  Jim Meyering  <jim@meyering.net>
70608
70609         * modules/xvasprintf (Files): Add xalloc.h.
70610
70611 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70612
70613         * modules/gettext (Files): config/config.rpath ->
70614         build-aux/config.rpath
70615         * modules/iconv (Files): Likewise.
70616         Problem reported by Oskar Liljeblad.
70617
70618 2005-03-23  Jim Meyering  <jim@meyering.net>
70619
70620         * modules/check-include-files: New script to check for
70621         missing dependencies, multiple includes, etc.
70622
70623         * modules/c-strtold (Depends-on): Add xalloc.
70624         * modules/c-strtod (Depends-on): Add xalloc.
70625         * modules/hash (Depends-on): Add xalloc.
70626         (Files): Remove lib/xalloc.h.
70627
70628         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70629         * modules/userspec (Files): Add lib/inttostr.h.
70630
70631 2005-03-23  Jim Meyering  <jim@meyering.net>
70632
70633         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70634
70635 2005-03-22  Jim Meyering  <jim@meyering.net>
70636
70637         * modules/stat-macros: New module.
70638         * modules/canonicalize, modules/euidaccess, modules/file-type,
70639         * modules/filemode, modules/lchown, modules/makepath,
70640         * modules/rmdir, modules/stat: Depend on new stat-macros module
70641         rather than listing lib/stat-macros.h manually.
70642         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70643
70644 2005-03-22  Jim Meyering  <jim@meyering.net>
70645
70646         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70647
70648 2005-03-22  Bruno Haible  <bruno@clisp.org>
70649
70650         * config/srclist.txt: Replace target directory 'config' with
70651         'build-aux'.
70652         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70653         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70654         ../build-aux/.
70655
70656 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70657
70658         * modules/chdir-long (Depends-on): Add mempcpy.
70659
70660         * modules/acl, modules/backupfile, modules/c-strtod,
70661         modules/c-strtold, modules/canon-host, modules/canonicalize,
70662         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70663         modules/exclude, modules/exitfail, modules/file-type,
70664         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70665         modules/getdate, modules/getline, modules/getpagesize,
70666         modules/getpass, modules/getugroups, modules/group-member,
70667         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70668         modules/inttostr, modules/long-options, modules/makepath,
70669         modules/md5, modules/memcasecmp, modules/memcoll,
70670         modules/modechange, modules/mountlist, modules/path-concat,
70671         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70672         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70673         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70674         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70675         modules/strftime, modules/strndup, modules/strverscmp,
70676         modules/timespec, modules/unlocked-io, modules/userspec,
70677         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70678         modules/yesno:
70679         Remove lib_SOURCES line from Makefile.am section, as this is now
70680         done automatically by the corresponding Autoconf macro.
70681
70682 2005-03-21  Jim Meyering  <jim@meyering.net>
70683
70684         Changes imported from coreutils.
70685
70686         * lib/cycle-check.c: Don't include xalloc.h.
70687
70688         * lib/path-concat.c: Don't include assert.h.
70689         (path_concat): Remove assertion that would have triggered
70690         for ABASE starting with more than one slash.
70691         Reported by Andreas Schwab.
70692
70693         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70694         properly when ABASE is an absolute file name.
70695         Correct the description of this function.
70696         Include <assert.h>.
70697         Add an assertion and a test driver.
70698         This fixes a bug introduced on 2004-07-02.
70699         Andreas Schwab reported the resulting failure of cp --parents:
70700         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70701
70702 2005-03-21  Jim Meyering  <jim@meyering.net>
70703
70704         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70705         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70706
70707 2005-03-21  Jim Meyering  <jim@meyering.net>
70708         and  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70711         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70712         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70713         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70714         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70715         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70716         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70717         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70718         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70719         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70720         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70721         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70722         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70723         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70724         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70725         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70726         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70727         for these modules.
70728
70729 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70732         (which shouldn't happen), generate nothing instead of returning 0
70733         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70734
70735 2005-03-16  Bruno Haible  <bruno@clisp.org>
70736
70737         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70738         HAVE_LONGLONG_64BIT.
70739
70740 2005-03-16  Bruno Haible  <bruno@clisp.org>
70741
70742         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70743         HAVE_LONGLONG_64BIT.
70744
70745 2005-03-16  Bruno Haible  <bruno@clisp.org>
70746
70747         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70748         HAVE_LONGLONG_64BIT.
70749
70750 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70753         reliably distinguish strftime failure from empty output on POSIX
70754         hosts.
70755
70756 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70757
70758         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70759         (iconv_string): Don't guess a size-zero buffer, as that might cause
70760         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70761         result would be 'too large', where 'too large' is (heuristically)
70762         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70763         overflow concerns.  This will prevent some unwanted malloc failures
70764         when the inputs are very large.
70765
70766 2005-03-15  Karl Berry  <karl@gnu.org>
70767
70768         * config/srclist.txt (config.rpath): from gettext.
70769         * config/config.rpath: update.
70770
70771 2005-03-15  Bruno Haible  <bruno@clisp.org>
70772
70773         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70774         to 'negate'.
70775
70776         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70777         variable.
70778
70779         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70780         results.
70781
70782 2005-03-14  Simon Josefsson  <jas@extundo.com>
70783
70784         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70785         <fx@gnu.org>.
70786
70787 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70788
70789         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70790         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70791         intprops.h.
70792         * lib/strtol.c: Likewise.
70793
70794 2005-03-14  Jim Meyering  <jim@meyering.net>
70795
70796         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70797         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70798         to be nonzero so that we (and caller) can detect the difference
70799         between a valid zero-length expansion and an error return, even
70800         when the underlying strftime fails before writing anything into
70801         that location.
70802
70803 2005-03-14  Bruno Haible  <bruno@clisp.org>
70804
70805         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70806         Update from GNU gettext 0.14.3.
70807
70808 2005-03-10  Jim Meyering  <jim@meyering.net>
70809
70810         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70811
70812 2005-03-10  Jim Meyering  <jim@meyering.net>
70813
70814         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70815         so that this module works on systems without fchdir.
70816
70817 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         Factor int-properties macros into a single file, except for
70820         glibc-related files.
70821         * lib/intprops.h: New file.
70822         * lib/getloadavg.c: Include it instead of limits.h.
70823         (INT_STRLEN_BOUND): Remove.
70824         * lib/human.c: Include intprops.h.
70825         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70826         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70827         302/1000.
70828         * lib/inttostr.h: Include intprops.h instead of limits.h.
70829         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70830         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70831         for consistency with intprops.h.
70832         (time_t_is_integer, twos_complement_arithmetic): Use them.
70833         * lib/sig2str.h: Include <signal.h>, intprops.h.
70834         (INT_STRLEN_BOUND): Remove.
70835         * lib/strftime.c (TYPE_SIGNED): Remove.
70836         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70837         * lib/strtol.c: Adjust comments to match intprops.h.
70838         * lib/userspec.c: Include intprops.h.
70839         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70840         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70841         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70842         instead of rolling our own expressions.
70843         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70844
70845         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70846         instead of int.
70847         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70848         the right thing even if adding 1900 would overflow.  Similarly
70849         for tm_mon + 1 and tm_yday + 1.
70850         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70851         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70852         (DO_SIGNED_NUMBER): New macro.
70853         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70854
70855 2005-03-07  Bruno Haible  <bruno@clisp.org>
70856
70857         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70858
70859 2005-03-07  Bruno Haible  <bruno@clisp.org>
70860
70861         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70862
70863 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70864
70865         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70866         (func_import): Only replace files via --import when they have actually
70867         changed.
70868
70869 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70870
70871         * m4/mmap-anon.m4: New file.
70872         * m4/pagealign_alloc.m4: New file.
70873
70874 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70875             Bruno Haible  <bruno@clisp.org>
70876
70877         * modules/pagealign_alloc: New file.
70878         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70879
70880 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70881             Bruno Haible  <bruno@clisp.org>
70882
70883         * lib/pagealign_alloc.h: New file.
70884         * lib/pagealign_alloc.c: New file.
70885
70886 2005-03-03  Bruno Haible  <bruno@clisp.org>
70887
70888         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70889         Use an all-permissive copyright notice, recommended by RMS.
70890
70891 2005-03-02  Bruno Haible  <bruno@clisp.org>
70892
70893         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70894         of AIX, the replacement has to be done only after <string.h> is
70895         included, therefore not in config.h. stpncpy.h does the replacement,
70896         and stpncpy.c uses it.
70897
70898 2005-03-02  Bruno Haible  <bruno@clisp.org>
70899
70900         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70901         stpncpy.c uses it.
70902
70903 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70906         The workaround isn't strictly needed for POSIX conformance, and
70907         it's too much of a pain to configure and maintain.  We'll ask
70908         people to fix their kernels instead.
70909         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70910         (NANOSLEEP_BUG_WORKAROUND): Remove.
70911         (xnanosleep): Remove the workaround.
70912
70913 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70916         Reported by Derek Price.
70917         (Include): Add "timespec.h".
70918
70919         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70920
70921 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70922
70923         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70924         to detect nanosleep bug.
70925
70926 2005-03-01  Bruno Haible  <bruno@clisp.org>
70927
70928         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70929
70930 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * modules/gethrxtime: New file.
70933         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70934         (Depends-on): Add gethrxtime.
70935         (configure.ac): Add gl_XNANOSLEEP.
70936         (Makefile.am): Remove lib_SOURCES line.
70937
70938 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70941         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70942
70943 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70946         * lib/timespec.h (gettime): Return void, since it always
70947         succeeds now.  All uses changed.
70948         * lib/gettime.c (gettime): Likewise.
70949         [HAVE_NANOTIME]: Prefer nanotime.
70950         Assume gettimeofday succeeds, as POSIX requires.
70951         Assime time () succeeds, since other code already does.
70952         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70953         (timespec_subtract): Remove.
70954         (NANOSLEEP_BUG_WORKAROUND): New constant.
70955         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70956         things considerably.  Use it only on GNU/Linux hosts, since the
70957         workaround shouldn't be needed elsewhere.
70958
70959 2005-02-24  Bruno Haible  <bruno@clisp.org>
70960
70961         * modules/gettext (Files): Add m4/glibc2.m4.
70962
70963 2005-02-24  Bruno Haible  <bruno@clisp.org>
70964
70965         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70966         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70967         * m4/progtest.m4:
70968         Update from GNU gettext 0.14.2.
70969         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70970
70971 2005-02-24  Bruno Haible  <bruno@clisp.org>
70972
70973         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70974         * lib/config.charset: Update from GNU gettext 0.14.2.
70975
70976 2005-02-24  Bruno Haible  <bruno@clisp.org>
70977
70978         * lib/gettext.h: Update from GNU gettext 0.14.2.
70979
70980 2005-02-23  Simon Josefsson  <jas@extundo.com>
70981
70982         * m4/iconvme.m4: New file.
70983
70984 2005-02-23  Jim Meyering  <jim@meyering.net>
70985
70986         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70987         change.
70988         Thanks to Bruno Haible for catching it.
70989
70990 2005-02-22  Simon Josefsson  <jas@extundo.com>
70991
70992         * modules/iconvme: New file.
70993
70994         * MODULES.html.sh: Add iconvme.
70995
70996 2005-02-22  Simon Josefsson  <jas@extundo.com>
70997
70998         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70999
71000 2005-02-22  Simon Josefsson  <jas@extundo.com>
71001
71002         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
71003
71004 2005-02-22  Jim Meyering  <jim@meyering.net>
71005
71006         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
71007         s/ifndef/ifdef/.
71008
71009 2005-02-20  Neil Conway  <neilc@samurai.com>
71010
71011         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
71012         returned by OSX/Darwin if the specified buffer is not large
71013         enough for the hostname.
71014
71015 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71016
71017         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
71018         pass it to _help, otherwise the latter coredumps trying to
71019         dereference state.root_argp.
71020
71021 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71022
71023         * modules/chdir-long (Depends-on): Add memrchr.
71024         * modules/memrchr (Files): Add lib/memrchr.h.
71025         (Include): "memrchr.h".
71026
71027 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71028
71029         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
71030
71031 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71032
71033         * lib/memrchr.h: New file.
71034         * lib/chdir-long.c: Include it.
71035         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
71036         Don't bother including stddef.h.
71037
71038 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71039
71040         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
71041         inclusion.
71042         Include <sys/types.h>, for dev_t.
71043         (ME_DUMMY, ME_REMOTE): Move from here....
71044         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
71045         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
71046         Dmitry V. Levin.
71047         Include mountlist.h first, to test the interface.
71048
71049 2005-01-29  Bruno Haible  <bruno@clisp.org>
71050
71051         * lib/progname.c (program_name): Initialize.
71052         Needed when linking statically on MacOS X.
71053
71054 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71055
71056         Sync from coreutils.
71057         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
71058         (Depends-on): Add c-strtod.
71059         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
71060
71061 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         Sync from coreutils.
71064         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
71065
71066         Remove files that are specific to coreutils.
71067         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
71068
71069 2005-01-28  Bruno Haible  <bruno@clisp.org>
71070
71071         * modules/javacomp: New file.
71072         * MODULES.html.sh (Java): Add javacomp.
71073
71074 2005-01-28  Bruno Haible  <bruno@clisp.org>
71075
71076         * m4/javacomp.m4: New file, from GNU gettext.
71077
71078 2005-01-28  Bruno Haible  <bruno@clisp.org>
71079
71080         * lib/javacomp.sh.in: New file, from GNU gettext.
71081         * lib/javacomp.h: New file, from GNU gettext.
71082         * lib/javacomp.c: New file, from GNU gettext.
71083
71084 2005-01-26  Simon Josefsson  <jas@extundo.com>
71085
71086         * lib/gai_strerror.c: Use GPL in header.
71087
71088 2005-01-26  Bruno Haible  <bruno@clisp.org>
71089
71090         * modules/javaexec: New file.
71091         * MODULES.html.sh (Java): Add javaexec.
71092
71093 2005-01-26  Bruno Haible  <bruno@clisp.org>
71094
71095         * m4/javaexec.m4: New file, from GNU gettext.
71096
71097 2005-01-26  Bruno Haible  <bruno@clisp.org>
71098
71099         * lib/javaexec.sh.in: New file, from GNU gettext.
71100         * lib/javaexec.h: New file, from GNU gettext.
71101         * lib/javaexec.c: New file, from GNU gettext.
71102
71103 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71104
71105         * modules/lchown (Depends-on): Remove lchown.h
71106
71107 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71108
71109         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
71110         must be defined if the header file was not found, in order
71111         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
71112
71113 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71114
71115         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
71116         initializers for struct pentry_state.
71117         (__argp_error): Check return value of __asprintf
71118         (__argp_failure): Translate error message
71119
71120         * lib/argp-parse.c: Removed braces around the expansion of N_()
71121
71122 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71123
71124         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
71125         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
71126         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
71127         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
71128         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
71129         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
71130         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
71131         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
71132         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
71133         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
71134         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
71135         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
71136         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
71137         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
71138         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
71139         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
71140         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
71141         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
71142         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
71143         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
71144         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
71145         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
71146         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
71147         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
71148         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
71149         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
71150         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
71151         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
71152         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
71153         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
71154         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
71155         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
71156         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
71157         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
71158         xstrtol.m4, xstrtoumax.m4, yesno.m4:
71159         Use an all-permissive copyright notice, recommended by RMS.
71160
71161 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * modules/chdir-long (Depends-on): Remove mempcpy.
71164
71165 2005-01-21  Jim Meyering  <jim@meyering.net>
71166
71167         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
71168         same value as for Solaris 9.
71169
71170         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
71171         component length.  This included changing the parameter to be
71172         of type `char *' rather than `char const *'.
71173         * lib/chdir-long.h (chdir_long): Update prototype.
71174
71175         * lib/openat.c (fdopendir, fstatat): New functions.
71176         * lib/openat.h: Include headers required for use of DIR and struct
71177         stat.
71178         [AT_SYMLINK_NOFOLLOW]: Define.
71179         (fdopendir, fstatat): Add prototypes.
71180
71181 2005-01-21  Bruno Haible  <bruno@clisp.org>
71182
71183         * modules/classpath: New file.
71184         * MODULES.html.sh (Java): Add classpath.
71185
71186 2005-01-21  Bruno Haible  <bruno@clisp.org>
71187
71188         * lib/classpath.h: New file, from GNU gettext.
71189         * lib/classpath.c: New file, from GNU gettext.
71190
71191 2005-01-20  Simon Josefsson  <jas@extundo.com>
71192
71193         * modules/version-etc-fsf: New file.
71194
71195 2005-01-20  Simon Josefsson  <jas@extundo.com>
71196
71197         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
71198         * lib/version-etc.c: Remove version_etc_copyright.
71199         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
71200         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
71201
71202 2005-01-20  Simon Josefsson  <jas@extundo.com>
71203
71204         * lib/base64.h (isbase64): Add.
71205
71206         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
71207         using a unsigned prototype, don't inline.
71208         (base64_decode): Use it.
71209
71210 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71211
71212         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
71213         it.
71214
71215 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         * lib/save-cwd.c (save_cwd): Remove code to support the case
71218         where fchdir is missing or flaky.
71219
71220 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
71223
71224 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71225
71226         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
71227         AC_LIBSOURCES now does this.
71228         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
71229         with new ullong_max module.
71230
71231 2005-01-19  Bruno Haible  <bruno@clisp.org>
71232
71233         * modules/sh-quote: New file.
71234         * MODULES.html.sh (Executing programs): Add sh-quote.
71235
71236 2005-01-19  Bruno Haible  <bruno@clisp.org>
71237
71238         * lib/sh-quote.h: New file, from GNU gettext.
71239         * lib/sh-quote.c: New file, from GNU gettext.
71240
71241 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71242
71243         Merge from coreutils.
71244         * m4/ullong_max.m4: New file.
71245         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
71246         (gl_MACROS): Assume localeconv exists.
71247
71248 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71249
71250         Merge changes from coreutils, as described below in several
71251         changelogs dated today.
71252
71253         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
71254         (O_DIRECTORY): Remove; not needed here, since "." must be
71255         a directory.  All uses removed.
71256         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
71257         universal on Suns, and we also need to test for IRIX.
71258         Revamp code to use 'if' rather than '#if'.
71259         Avoid unnecessary comparison of cwd->desc to 0.
71260
71261         * lib/utimens.c (futimens): Robustify the previous patch, by checking
71262         for known valid error numbers rather than observed invalid ones.
71263
71264 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * modules/ullong_max: New file.
71267
71268         * modules/chdir-long, modules/openat: New files.
71269         * modules/save-cwd (Depends-on): Depend on chdir-long.
71270         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
71271
71272 2005-01-18  Jim Meyering  <jim@meyering.net>
71273
71274         Merge from coreutils.
71275         * m4/chdir-long.m4, m4/openat.m4: New files.
71276         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
71277         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
71278         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
71279         is sane and DOES follow symlinks.  Besides, testing 20 different
71280         systems found no broken chown implementations.
71281         Prompted by a change in rsync's copy of this macro.
71282         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
71283
71284         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
71285
71286         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
71287         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
71288         NULL-means-set-to-current-time semantics.
71289         Remove temporary file immediately, rather than waiting
71290         for configure's at-exit trap code to do it.
71291
71292 2005-01-18  Jim Meyering  <jim@meyering.net>
71293
71294         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71295
71296         * lib/utimens.c (futimens): Account for the fact that futimes
71297         can also fail with errno == ENOSYS or errno == ENOENT.
71298         Patch from Dmitry V. Levin.
71299
71300         Change the name of the robust chdir function from chdir to chdir_long.
71301         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
71302         (restore_cwd): Use chdir_long, not chdir.
71303         * lib/chdir-long.c: Renamed from chdir.c.
71304         * lib/chdir-long.h: Renamed from chdir.h.
71305         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
71306         Hurd.
71307
71308 2005-01-18  Bruno Haible  <bruno@clisp.org>
71309
71310         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
71311         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
71312         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
71313         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
71314         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
71315         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
71316         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
71317         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
71318         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
71319         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
71320         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
71321         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
71322         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
71323         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
71324         Use an all-permissive copyright notice, recommended by RMS.
71325
71326 2005-01-18  Bob Proulx  <bob@proulx.com>
71327
71328         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71329         simplify offsetof() macro construct to avoid compile failure with
71330         native HP-UX 11.0 ANSI C compiler.
71331
71332 2005-01-17  Bruno Haible  <bruno@clisp.org>
71333
71334         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71335         redundant because stpncpy.m4 takes care of it.
71336
71337 2005-01-17  Bruno Haible  <bruno@clisp.org>
71338
71339         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71340
71341 2005-01-17  Bruno Haible  <bruno@clisp.org>
71342
71343         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71344         used.
71345
71346 2005-01-17  Bruno Haible  <bruno@clisp.org>
71347
71348         * lib/fwriteerror.h (fwriteerror): Change specification to include
71349         fclose.
71350         * lib/fwriteerror.c: Include <stdbool.h>.
71351         (fwriteerror): At the end, close the file stream. Record whether
71352         stdout was already closed.
71353
71354 2005-01-17  Bruno Haible  <bruno@clisp.org>
71355
71356         * lib/execute.c (environ): Declare if needed.
71357         * lib/pipe.c (environ): Likewise.
71358         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71359
71360 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71361
71362         * modules/argp: Depend on vsnprintf
71363
71364 2005-01-10  Jim Meyering  <jim@meyering.net>
71365
71366         * modules/closeout (Depends-on): Add atexit.
71367
71368 2005-01-06  Bruno Haible  <bruno@clisp.org>
71369
71370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71371
71372 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71373
71374         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71375         definitions to be after all include files, to avoid collisions.
71376         Problem reported by Bob Proulx.
71377
71378 2005-01-04  Jim Meyering  <jim@meyering.net>
71379
71380         Changes imported from coreutils.
71381         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71382         as the mkstemp template, use a temporary directory and an
71383         8.3-friendly template to avoid trouble on systems like DJGPP.
71384         Reported by Juan M. Guerrero via Stepan Kasal.
71385         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71386         close. Remove the temporary directory right away, rather than waiting
71387         for configure's at-exit trap code to do it.
71388         Suggestion from Stepan Kasal.
71389
71390 2005-01-01  Simon Josefsson  <jas@extundo.com>
71391
71392         * gnulib-tool: Print #include directives when --import'ing.
71393
71394 2004-12-28  Simon Josefsson  <jas@extundo.com>
71395
71396         * tests/test-base64.c: Include required header files.  Remove
71397         unused variables.
71398
71399 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71400
71401         * modules/error (Depends-on): Remove gettext.
71402
71403 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71404
71405         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71406         not needed.  This removes a dependency on the gettext module.
71407         [defined _LIBC]: Do not include <libintl.h>; not needed.
71408
71409 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71410
71411         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71412         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71413
71414 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71417         HAVE_DECL_STRTOLD.
71418
71419 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * modules/getdate (Depends-on): Remove alloca-opt.
71422
71423 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71424
71425         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71426
71427 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71428
71429         * lib/argp-parse.c: Include <stddef.h>.
71430         (alignof, alignto): New macros.
71431         (parser_init): Don't assume that void * is aligned sufficiently
71432         for struct option.
71433
71434         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71435         need to extend the stack.
71436         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71437         large.
71438
71439 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71440
71441         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71442
71443 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71444
71445         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71446         (2004-10-24) change.  Apparently this was a false alarm.
71447
71448         * modules/getdate: Depend on alloca-opt, not alloca.
71449
71450 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71451
71452         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71453         Remove now-obsolete comment about AIX.
71454         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71455         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71456         (YYMAXDEPTH): New macro.
71457
71458 2004-12-18  Simon Josefsson  <jas@extundo.com>
71459
71460         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71461
71462 2004-12-18  Bruno Haible  <bruno@clisp.org>
71463
71464         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71465
71466 2004-12-18  Bruno Haible  <bruno@clisp.org>
71467
71468         * lib/fatal-signal.c (fatal_signals): Make non-const.
71469         (init_fatal_signals): New function.
71470         (uninstall_handlers, install_handlers): Ignore signals that were set to
71471         SIG_IGN.
71472         (at_fatal_signal): Call init_fatal_signals.
71473         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71474         SIG_IGN.
71475         Reported by Paul Eggert.
71476
71477 2004-12-18  Bruno Haible  <bruno@clisp.org>
71478
71479         * doc/alloca.texi: New file.
71480         * doc/alloca-opt.texi: New file.
71481
71482 2004-12-17  Jim Meyering  <jim@meyering.net>
71483
71484         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71485         Otherwise, install-sh could exit with improper exit status when
71486         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71487
71488 2004-12-16  Simon Josefsson  <jas@extundo.com>
71489
71490         * tests/test-base64.c: Add license.
71491
71492 2004-12-15  Stepan Kasal  <address@hidden>
71493
71494         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71495
71496 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         * modules/getcwd (Files): Add m4/d-ino.m4.
71499         Suggested by Mark D. Baushke.
71500
71501 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         * lib/getdate.y (textint): New member "negative".
71504         (time_zone_hhmm): New function.
71505         Expect 14 shift-reduce conflicts, not 13.
71506         (o_colon_minutes): New rule.
71507         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71508         (yylex): Set the "negative" member of signed numbers.
71509
71510 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71511
71512         * doc/getdate.texi (Time of day items, Time zone items):
71513         Describe new formats +00:00, UTC+00:00.
71514
71515 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71516
71517         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71518         spurious "-l"s.  Problem reported by Stepan Kasal.
71519
71520 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71523         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71524
71525 2004-12-04  Simon Josefsson  <jas@extundo.com>
71526
71527         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71528         Vandoorselaere <yoann@prelude-ids.org>.
71529
71530 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         Changes imported from coreutils.
71533         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71534         exist.
71535         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71536
71537 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71538
71539         Changes imported from coreutils.
71540         * lib/hard-locale.c: Assume <locale.h> exists.
71541         Include "strdup.h".
71542         (GLIBC_VERSION): New macro.
71543         (hard_locale): Assume setlocale exists.
71544         Rewrite to avoid #ifdef.
71545         Use strdup rather than malloc + strcpy.
71546         * lib/human.c: Assume <locale.h> exists.
71547         (human_readable): Assume localeconv exists.
71548
71549 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71550
71551         * modules/hard-locale (Depends-on): Add strdup.
71552
71553 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71554
71555         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71556         convert T2, not T.  (Imported from libc.)
71557
71558 2004-11-30  Simon Josefsson  <jas@extundo.com>
71559
71560         * modules/restrict (License): Change to LGPL.
71561
71562 2004-11-30  Simon Josefsson  <jas@extundo.com>
71563
71564         * m4/restrict.m4: Add copyright and copying conditions.
71565
71566 2004-11-30  Simon Josefsson  <jas@extundo.com>
71567
71568         * m4/base64.m4: New file.
71569
71570 2004-11-30  Simon Josefsson  <jas@extundo.com>
71571
71572         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71573         base64.
71574
71575         * tests/test-base64.c: New file.
71576
71577         * modules/base64: New file.
71578
71579 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71582         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71583
71584         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71585
71586 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71587
71588         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71589         (__getcwd.c): Don't restore errno; glibc doesn't.
71590         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71591         first, falling back to our code only if its results look suspicious.
71592         Ensure that the resulting buffer is only as large as necessary.
71593
71594         * lib/readutmp.c: Include readutmp.h first.
71595         Include <errno.h>, since readutmp.h no longer does that.
71596         * lib/readutmp.h: Don't include <errno.h>,
71597         <sys/param.h>, <time.h>; not needed to establish interface.
71598         (errno): Remove decl.
71599         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71600         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71601         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71602
71603 2004-11-28  Simon Josefsson  <jas@extundo.com>
71604
71605         * lib/base64.h, base64.c: New file.
71606
71607 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71608
71609         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71610
71611 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71614         (Depends-on): Remove pathmax, same.  Add mempcpy.
71615         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71616         (Makefile.am): Append getcwd.h to lib_SOURCES.
71617         (Include): Add getcwd.h.
71618         (Maintainer): Change from Jim Meyering to "all, glibc",
71619         since getdate now uses intended-for-glibc code.
71620         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71621         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71622
71623 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71624
71625         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71626         HP's ANSI C compiler.
71627         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71628         Declaring int functions causes warnings on some modern systems and
71629         shouldn't be needed to compile on ancient ones.
71630         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71631         defined.
71632
71633         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71634         with the following changes.
71635         (__set_errno): Parenthesize properly.
71636         Include <stdbool.h>.
71637         (MIN, MAX, MATCHING_INO): New macros.
71638         (__getcwd): Define with prototype, not K&R form.
71639         Use heuristics to allocate default buffer on stack if possible.
71640         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71641         behavior, and to avoid the PATH_MAX limit when computing
71642         ../../../../...
71643         Use MATCHING_INO to compare inode number to file.
71644         Check for arithmetic overflow in size calculations.
71645         Fix bug in reallocation of dot array that caused getcwd to fail
71646         on directories nested deeper than 75.
71647         Be more careful about saving errno on error.
71648         Do not use realloc; use only free+malloc, as this is a bit
71649         more flexible and avoids a needless copy operation.
71650         Do not inspect st_dev and st_ino for symbolic links; POSIX
71651         doesn't specify the latter.
71652         Check for closedir errors.
71653         Avoid needless casts.
71654         Use "#ifdef weak_alias" around weak_alias, to be like other
71655         glibc code.
71656         The following changes to getcwd.c have effect only when used in
71657         gnulib; they have no effect inside glibc proper.
71658         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71659         as alloca isn't used.
71660         (alloca, __alloca): Likewise.
71661         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71662         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71663         unconditionally, as gnulib assumes C89 or better.
71664         Do not include <sys/param.h>.
71665         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71666         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71667         better.
71668         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71669         Include <dirent.h> in a way that is compatible with modern Autoconf.
71670         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71671         New macros, if not already defined.
71672         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71673         Use "_LIBC", not "defined _LIBC", for consistency.
71674         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71675         a mempcpy module.
71676         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71677         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71678         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71679         credit only to Jim Meyering and adjust the copyright dates.
71680         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71681         <stdlib.h>, <unistd.h>, "pathmax.h".
71682         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71683         (INITIAL_BUFFER_SIZE): Remove.
71684         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71685
71686 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71687
71688         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71689         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71690         Use the _ONCE methods, for efficiency.
71691         Check for fcntl.h.  In test program, include <errno.h>
71692         and <fcntl.h> if available.  Remove old K&R cruft from
71693         test program.  Check for common errors in GNU/Linux,
71694         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71695         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71696         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71697         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71698         name accordingly.
71699         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71700         accommodate new getcwd.c.
71701         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71702         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71703         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71704         that's all we need now.
71705
71706 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71707
71708         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71709         argp-parse.c depends on getopt internals, that means we should
71710         always use our getopt, to be on the safe side.
71711         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71712         order not to spoil the result of an eventual previous invocation
71713         of gl_GETOPT_SUBSTITUTE.
71714
71715 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71716
71717         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71718         redefinition warnings. To avoid them, include the defines
71719         in `#if !defined __need_getopt ... #endif'. The only place
71720         where __getopt_argv_const is used is in definitions
71721         of getopt_long and getopt_long_only below, which are as well
71722         protected by `#ifndef __need_getopt'.
71723         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71724         __need_getopt after including <stdio.h> and <unistd.h> These
71725         headers might have defined it.
71726
71727 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71728
71729         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71730
71731 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71732
71733         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71734         (futimens): New function, which uses futimes if available.
71735         (futimens, utimens): Support timespec==NULL, with same semantics
71736         as utime and utimens.
71737         * lib/utimens.h (futimens): New decl.
71738
71739 2004-11-23  Jim Meyering  <jim@meyering.net>
71740
71741         * lib/getopt_.h: Remove trailing blanks.
71742
71743 2004-11-23  Jim Meyering  <jim@meyering.net>
71744
71745         * lib/__fpending.c: Add comment.
71746
71747 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71748
71749         * modules/canonicalize (Depends-on): Add xreadlink.
71750         Problem reported by James Youngman.
71751
71752 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71755         New macros.
71756         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71757         optopt): Use them instead of invoking ## directly; otherwise, the
71758         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71759
71760 2004-11-19  Bruno Haible  <bruno@clisp.org>
71761
71762         * lib/strtok_r.c: Move comments from here...
71763         * lib/strtok_r.h: ... to here.
71764
71765 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71768         implementations that mishandle size_t overflow.
71769
71770 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71771
71772         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71773         might fail.  Problem reported by Yoann Vandoorselaere.
71774         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71775         implementations that mishandle size_t overflow.
71776
71777 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71778
71779         * modules/canon-host (Depends-on): Add strdup.
71780
71781 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71782
71783         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71784
71785 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71786
71787         * lib/canon-host.c: Include "strdup.h".
71788         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71789         Use strdup instead of malloc/strcpy to duplicate strings.
71790
71791         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71792         (human_space_before_unit): New constant.
71793         * lib/human.c (human_readable): Support it.
71794
71795         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71796         (xgetcwd): Set errno correctly when failing.
71797         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71798         the failure is actually due to a PATH_MAX problem.
71799
71800         Further getopt changes to make it more likely that glibc will
71801         buy the changes back.
71802         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71803         (getopt): Use it, so to preserve glibc semantic
71804         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71805         when compiling for libc.
71806         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71807         (getopt_long, getopt_long_only): Use it.
71808
71809         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71810         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71811         (getopt): Argv is now char * const *, as per standard.
71812         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71813         not char *__getopt_argv_const *.
71814         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71815         _getopt_long_only_r): Likewise.
71816         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71817         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71818         _getopt_long_r, _getopt_long_only_r): Likewise.
71819         * lib/getopt_.h (__getopt_argv_const): Remove.
71820         (getopt): Argv is now char * const *, as per standard.
71821
71822         * lib/getdate.y (tORDINAL): New token.
71823         (day, relunit): Allow it for relative times.
71824         (relative_time_table): Use tORDINAL for ordinals.
71825
71826 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71827
71828         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71829         Document that "second" isn't allowed as an ordinal number.
71830
71831 2004-11-16  Jim Meyering  <jim@meyering.net>
71832
71833         * modules/closeout (Depends-on): Add fpending.
71834
71835 2004-11-15  Jim Meyering  <jim@meyering.net>
71836
71837         * lib/closeout.c: Include "__fpending.h" once again.
71838         Include <stdbool.h>.
71839         (close_stdout): Don't fail just because stdout was closed initially,
71840         since some programs don't write to stdout in the normal course of
71841         operation (other than --version and --help), and we don't want this
71842         function to make e.g. `touch file >&-' fail.
71843         But do fail if it was closed and someone has tried to write to it.
71844         E.g., `printf foo >&-' must fail.
71845
71846 2004-11-13  Jim Meyering  <jim@meyering.net>
71847
71848         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71849
71850 2004-11-12  Simon Josefsson  <jas@extundo.com>
71851
71852         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71853         small doc fix is still pending.
71854
71855 2004-11-11  Simon Josefsson  <jas@extundo.com>
71856
71857         * modules/strtok_r: New file.
71858
71859         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71860         strtok_r.
71861
71862 2004-11-11  Simon Josefsson  <jas@extundo.com>
71863
71864         * m4/strtok_r.m4: New file.
71865
71866         * m4/getopt.m4: Replace opterr.
71867
71868 2004-11-11  Simon Josefsson  <jas@extundo.com>
71869
71870         * lib/strtok_r.h, strtok_r.c: New file.
71871
71872 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71873
71874         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71875         of replacing opterr, getopt, etc.  This should handle the
71876         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71877
71878 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71879
71880         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71881         we can stop lying to compilers about the constness of argv when we
71882         are compiled outside glibc.
71883         (getopt, getopt_long, getopt_long_only): Use it.
71884         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71885         _getopt_internal, getopt): Likewise.
71886         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71887         _getopt_long_only_r): Likewise.
71888         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71889         _getopt_long_r, _getopt_long_only_r): Likewise.
71890
71891         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71892         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71893         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71894         the other external symbols.
71895         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71896         declaration, since the above renaming now works around collisions.
71897
71898 2004-11-11  Jim Meyering  <jim@meyering.net>
71899
71900         * lib/linebreak.c: Remove trailing blanks.
71901         * lib/alloca_.h: Likewise.
71902         * lib/acosl.c: Likewise.
71903         * lib/euidaccess.c: Likewise.
71904         * lib/allocsa.h: Likewise.
71905
71906 2004-11-10  Simon Josefsson  <jas@extundo.com>
71907
71908         * m4/getaddrinfo.m4: New file.
71909
71910 2004-11-10  Simon Josefsson  <jas@extundo.com>
71911
71912         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71913
71914 2004-11-10  Simon Josefsson  <jas@extundo.com>
71915
71916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71917         getaddrinfo.
71918
71919         * modules/getaddrinfo: New file.
71920
71921 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71922
71923         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71924
71925 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * lib/mktime.c (SHR): New macro, which is a portable
71928         substitute for >> that should work even on Crays.
71929         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71930         Problem reported by Mark D. Baushke in
71931         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71932         * lib/getdate.y (SHR): Likewise.
71933         (tm_diff): Use it.
71934         * lib/strftime.c (SHR): Likewise.
71935         (tm_diff): Use it.
71936         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71937         quote_these_too, so that right shifts are well defined.  All uses
71938         changed.
71939
71940 2004-11-10  Jim Meyering  <jim@meyering.net>
71941
71942         Ensure that no close failure goes unreported.
71943         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71944         return early when it seems there's nothing to flush.
71945         Don't include __fpending.h.
71946
71947 2004-11-10  Jim Meyering  <jim@meyering.net>
71948
71949         * modules/closeout (Depends-on): Remove fpending.
71950
71951 2004-11-10  Jim Meyering  <jim@meyering.net>
71952
71953         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71954
71955 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71956
71957         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71958         gl_FUNC_STRFTIME.
71959         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71960         and AC_REQUIRE when possible, to avoid duplicate checks.
71961         Check for <wchar.h>.
71962
71963 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71964
71965         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71966
71967 2004-11-09  Bruno Haible  <bruno@clisp.org>
71968
71969         * m4/sockpfaf.m4: New file.
71970
71971 2004-11-05  Bruno Haible  <bruno@clisp.org>
71972
71973         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71974         Reported by Mark D. Baushke <mdb@cvshome.org>.
71975
71976 2004-11-04  Bruno Haible  <bruno@clisp.org>
71977
71978         2004-09-11  Bruno Haible  <bruno@clisp.org>
71979                 * allocsa.valgrind: New file.
71980         2004-02-06  Bruno Haible  <bruno@clisp.org>
71981                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71982                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71983                 Reported by Christopher Seip <chris.seip@hp.com>.
71984
71985 2004-11-04  Bruno Haible  <bruno@clisp.org>
71986
71987         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71988         (Makefile.am): Distribute it.
71989
71990 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71991
71992         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71993         with errno == ERANGE if the buffer is too small.
71994         Problem reported by Mark D. Baushke.
71995
71996 2004-11-03  Albert Chin  <china@thewrittenword.com>
71997             Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
72000         equivalent, substitute $ac_type for equivalent type rather than
72001         blindly using uint32_t *always* which won't work if uint32_t is not
72002         available.  Define _UINT32_T to work around typedef of uint32_t if
72003         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
72004         2.5.1.
72005
72006 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         * m4/jm-macros.m4: Sync from coreutils.
72009         (gl_MACROS): Check for mbrlen, for pathchk.
72010         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
72011
72012 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72013
72014         * lib/xreadlink.c (MAXSIZE): New macro.
72015         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
72016         size does not exceed MAXSIZE.  Avoid cast.
72017         As suggested by Mark D. Baushke in
72018         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
72019         if readlink fails with buffer size just under MAXSIZE, try again
72020         with MAXSIZE.
72021
72022 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72023
72024         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
72025
72026 2004-11-02  Derek R. Price  <derek@ximbiot.com>
72027         and  Paul Eggert  <eggert@cs.ucla.edu>
72028
72029         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
72030         (get_date): Overparenthesize to avoid GCC warning.
72031
72032 2004-11-02  Bruno Haible  <bruno@clisp.org>
72033
72034         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
72035         returns void.
72036
72037 2004-11-02  Bruno Haible  <bruno@clisp.org>
72038
72039         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
72040         function returns void.
72041
72042 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72043
72044         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
72045         fflush_unlocked, flockfile, funlockfile, funlockfile,
72046         fputs_unlocked, putc_unlocked.
72047
72048 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72049
72050         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72051         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
72052         already declared.
72053
72054 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         * modules/getdate (Files): Add doc/getdate.texi.
72057         (Depends-on): Add setenv, xalloc.
72058
72059 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72060
72061         * lib/getdate.y: Add support for TZ="foo" within a date string.
72062         Fix some bugs near time_t boundaries.  Reject dates with
72063         out-of-range components, e.g., "Sept 31".
72064         Include <stdlib.h>, "setenv.h", "xalloc.h".
72065         (ISDIGIT_LOCALE): Remove; unused.
72066         Note that the TZ and time functions used here are not reentrant.
72067         (mktime_ok, get_tz): New functions.
72068         (TZBUFSIZE): New constant.
72069         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
72070         This requires that we sometimes generate our own TZ="XXX..." setting.
72071
72072 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72073
72074         * doc/getdate.texi: New file, from coreutils with modifications for
72075         the new TZ parsing.
72076
72077 2004-10-27  Derek R. Price  <derek@ximbiot.com>
72078
72079         * lib/mktime.c (not_equal_tm): Remove redundant check.
72080
72081 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72082
72083         * modules/regex (lib_SOURCES): Add regex.c.
72084         Reported by James Youngman in
72085         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
72086
72087 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72088
72089         * lib/getdate.y: Use Bison 1.875 features, and some minor
72090         code cleanups.  This change does not affect semantics.
72091         Don't include <stdlib.h>; no longer needed.
72092         Don't include unlocked-io.h; only the "#if TEST" code uses
72093         stdio, and performance isn't crucial there.
72094         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
72095         Bison 1.875 features as described below.
72096         All uses of "PC." replaced by "pc->".
72097         (YYSTYPE): Add a forward declaration.
72098         (yylex, yyerror): Use full prototypes in forward decls.
72099         Use "%pure-parser" rather than obsolescent "%pure_parser".
72100         Use %parse-param and %lex-param instead of obsolescent
72101         YYPARSE_PARAM and YYLEX_PARAM.
72102         (meridian_table, month_and_day_table, time_units_table,
72103         relative_time_table, time_zone_table, military_table,
72104         lookup_zone, lookup_word, get_date):
72105         Use NULL instead of 0 where appropriate.
72106         (to_hour): Avoid abort (), to avoid a dependency on
72107         stdlib.h.
72108         (yyerror, yylex): Now accepts parser_control * arg.
72109         (main) [TEST]: Use '\0' rather than 0 for char.
72110
72111 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
72114
72115 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
72118         It's now the caller's responsibility to handle the case where
72119         !HAVE_GETPAGESIZE && !defined getpagesize.
72120
72121         * lib/mktime.c (leapyear): Arg is long int, not int.
72122
72123 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
72124
72125         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
72126
72127 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72128
72129         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
72130         missing.  Problem reported by James Youngman.
72131
72132 2004-10-16  Simon Josefsson  <jas@extundo.com>
72133
72134         * gnulib-tool: Fix comments.  Fix parse problem.
72135         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
72136
72137 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
72140         implementation of getopt_long.  Problem reported by Alexander Taler in:
72141         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
72142
72143 2004-10-15  Bruno Haible  <bruno@clisp.org>
72144
72145         * gnulib-tool: Untabify. Initialize supplied_libname.
72146         (func_usage): More homogenous output.
72147         (func_modules_transitive_closure, func_modules_to_filelist,
72148         func_emit_lib_Makefile_am): New functions.
72149         (func_import): New function, extracted from big case statement. Use
72150         func_get_license, func_modules_transitive_closure,
72151         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
72152         opt_lgpl. Don't use test -a, as it's not portable.
72153         (func_create_testdir): Use func_modules_transitive_closure,
72154         func_modules_to_filelist, func_emit_lib_Makefile_am.
72155
72156 2004-10-15  Bruno Haible  <bruno@clisp.org>
72157
72158         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
72159
72160 2004-10-15  Bruno Haible  <bruno@clisp.org>
72161
72162         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
72163         the portions belonging to each module.
72164         Suggested by Derek Robert Price <derek@ximbiot.com>.
72165
72166 2004-10-12  Simon Josefsson  <jas@extundo.com>
72167
72168         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72169         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
72170         to real functions.
72171
72172 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72173
72174         * modules/vsnprintf: New file.
72175
72176 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72177
72178         * m4/vsnprintf.m4: New file.
72179
72180 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72181
72182         * lib/vsnprintf.h: New file.
72183         * lib/vsnprintf.c: New file.
72184
72185 2004-10-11  Bruno Haible  <bruno@clisp.org>
72186
72187         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
72188         vsnprintf.
72189
72190 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72191
72192         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
72193
72194 2004-10-07  Bruno Haible  <bruno@clisp.org>
72195
72196         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
72197         fits into the provided buffer.
72198
72199 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * lib/diacrit.c, diacrit.h: Add GPL notice.
72202
72203         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
72204         notice.
72205         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
72206         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
72207         This avoids a potential constant-folding bug.
72208
72209 2004-10-05  Bruno Haible  <bruno@clisp.org>
72210
72211         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
72212         for the declaration of strsep.
72213
72214 2004-10-05  Bruno Haible  <bruno@clisp.org>
72215
72216         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
72217
72218 2004-10-04  Simon Josefsson  <jas@extundo.com>
72219
72220         * modules/memmem: New file.
72221         * tests/test-memmem.c: New file.
72222         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
72223
72224 2004-10-04  Simon Josefsson  <jas@extundo.com>
72225
72226         * m4/memmem.m4: New file.
72227
72228 2004-10-04  Simon Josefsson  <jas@extundo.com>
72229
72230         * lib/memmem.h: New file.
72231         * lib/memmem.c: New file, taken from glibc.
72232
72233 2004-10-04  Simon Josefsson  <jas@extundo.com>
72234
72235         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
72236         '#ifdef USE_UNLOCKED_IO'.
72237
72238 2004-10-04  Simon Josefsson  <jas@extundo.com>
72239
72240         * config/srclist.txt: Add memmem from glibc.
72241
72242 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72243
72244         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
72245
72246         * modules/argmatch, modules/argp, modules/closeout, modules/error,
72247         modules/exclude, modules/getdate, modules/getline,
72248         modules/getndelim2, modules/getpass, modules/getpass-gnu,
72249         modules/getusershell, modules/linebuffer, modules/md5,
72250         modules/mountlist, modules/posixtm, modules/readtokens,
72251         modules/readutmp, modules/regex, modules/sha1,
72252         modules/version-etc, modules/yesno:
72253         Remove dependency on unlocked-io.
72254
72255 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72256
72257         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
72258
72259         * m4/unlocked-io.m4: Add copyright notice.
72260         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
72261
72262 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
72265         * lib/xmalloc.c (xmemdup): Likewise.
72266         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
72267         XFREE): Remove these long-obsolescent macros.
72268         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
72269         * lib/xstrdup.c: Remove.
72270
72271         * lib/regex.c (re_comp): Cast gettext return value to char *,
72272         Problem reported by Martin Neitzel via Mark D. Baushke.
72273
72274 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72275
72276         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
72277         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
72278         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
72279         regex.c, sha1.c, version-etc.c, yesno.c:
72280         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
72281         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
72282         the includer's responsibility.
72283
72284         Sync from coreutils.
72285
72286         * lib/modechange.c (mode_compile): Don't decrement a pointer that
72287         points to the start of a string, as the C Standard says the
72288         resulting behavior is undefined.
72289
72290         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
72291         simple -> simple_backups, numbered_existing ->
72292         numbered_existing_backups, numbered -> numbered_backups
72293         to avoid shadowing problems.  All uses changed.
72294         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
72295         * lib/backupfile.c (check_extension, numbered_backup):
72296         Rename locals to avoid shadowing 'basename'.
72297         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
72298         once.
72299
72300         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
72301         * lib/.cvsignore: Add getopt.h.
72302
72303 2004-10-04  Bruno Haible  <bruno@clisp.org>
72304
72305         * modules/README: New file.
72306         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
72307         not a module.
72308
72309 2004-10-02  Jim Meyering  <jim@meyering.net>
72310
72311         * lib/dirfd.h, getpagesize.h: Add copyright notice.
72312
72313 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72314
72315         * modules/strsep: New file.
72316
72317 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72318
72319         * m4/strsep.m4: New file.
72320
72321 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72322
72323         * lib/strsep.h: New file.
72324         * lib/strsep.c: New file.
72325
72326 2004-10-01  Simon Josefsson  <jas@extundo.com>
72327
72328         * lib/snprintf.c (snprintf): Handle size==0.
72329
72330 2004-10-01  Simon Josefsson  <jas@extundo.com>
72331             Bruno Haible  <bruno@clisp.org>
72332
72333         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72334         (snprintf): Declare 'args'.
72335
72336 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72337
72338         * lib/snprintf.c: Remove comments as to why each header is needed.
72339
72340 2004-10-01  Bruno Haible  <bruno@clisp.org>
72341
72342         * MODULES.html.sh: Add strsep.
72343
72344 2004-09-30  Simon Josefsson  <jas@extundo.com>
72345
72346         * modules/snprintf: New file.
72347
72348 2004-09-30  Simon Josefsson  <jas@extundo.com>
72349
72350         * m4/snprintf.m4: New file.
72351
72352 2004-09-30  Simon Josefsson  <jas@extundo.com>
72353
72354         * lib/snprintf.h, lib/snprintf.c: New files.
72355
72356 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72357
72358         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72359         (hol_entry_help): Never translate an empty string.
72360         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72361         * lib/argp.h (OPTION_NO_TRANS): New option.
72362
72363 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72364
72365         * modules/argp (Maintainer): Replace Simon Josefsson
72366         by Sergey Poznyakoff.
72367
72368 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72369
72370         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72371         changes merged back into glibc.
72372
72373 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72374
72375         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72376
72377 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72378
72379         * lib/xvasprintf.c: Include xalloc.h.
72380         (xvasprintf): Use xalloc_die, not xmalloc_die.
72381
72382 2004-09-29  Bruno Haible  <bruno@clisp.org>
72383
72384         * modules/alloca-opt: New file, derived from modules/alloca.
72385         * modules/allocsa: Depend on alloca-opt instead of alloca.
72386         * modules/setenv: Likewise.
72387         * modules/vasnprintf: Likewise.
72388         * MODULES.html.sh: Add alloca-opt.
72389
72390 2004-09-28  Simon Josefsson  <jas@extundo.com>
72391
72392         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72393         LGPL, and to replace license template from GPL to LGPL.
72394
72395 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72396
72397         * modules/dummy: Change license to LGPL.
72398
72399 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72400
72401         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72402
72403 2004-09-24  Simon Josefsson  <jas@extundo.com>
72404
72405         * modules/minmax (License): Change from GPL to LGPL.
72406
72407 2004-09-23  Simon Josefsson  <jas@extundo.com>
72408
72409         * gnulib-tool (--import): Typo.
72410
72411 2004-09-23  Simon Josefsson  <jas@extundo.com>
72412
72413         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72414
72415 2004-09-22  Bruno Haible  <bruno@clisp.org>
72416
72417         * modules/*: Add 'License' field.
72418         * gnulib-tool: Accept --extract-license option.
72419         (func_get_license): New function.
72420
72421 2004-09-21  Bruno Haible  <bruno@clisp.org>
72422
72423         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72424         Reported by Simon Josefsson.
72425
72426 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72429         gl_AC_TYPE_LONG_LONG.
72430
72431 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72432
72433         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72434
72435 2004-09-18  Simon Josefsson  <jas@extundo.com>
72436         and  Paul Eggert  <eggert@cs.ucla.edu>
72437
72438         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72439         calls with autoreconf.  Define GL_LIB.
72440
72441 2004-09-14  Karl Berry  <karl@gnu.org>
72442
72443         * config/srclist.txt: unsync setenv.c, sigh.
72444
72445 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72446
72447         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72448         Problem reported by Bruno Haible in:
72449         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72450
72451 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72452
72453         * config/srclist.txt: Comment out argp-pvh.c.
72454
72455 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72456
72457         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72458         in case some system header has #define'd it.  Problem reported by
72459         Soeren D. Schulze in
72460         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72461
72462 2004-09-09  Karl Berry  <karl@gnu.org>
72463
72464         * regex.[ch]: delete from the root.  These were supposed to be
72465                 synced with emacs cvs, but this has not happened for about
72466                 a year, and anyway nothing else uses emacs regex.[ch].
72467                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72468                 lib/regex[.ch] is untouched.
72469
72470 2004-09-09  Bruno Haible  <bruno@clisp.org>
72471
72472         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72473
72474 2004-09-09  Bruno Haible  <bruno@clisp.org>
72475
72476         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72477         modifications.
72478         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72479
72480 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72481
72482         * modules/xvasprintf: New file.
72483         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72484
72485 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72486
72487         * lib/xvasprintf.h: New file.
72488         * lib/xvasprintf.c: New file.
72489         * lib/xasprintf.c: New file.
72490
72491 2004-09-08  Bruno Haible  <bruno@clisp.org>
72492
72493         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72494
72495 2004-09-08  Bruno Haible  <bruno@clisp.org>
72496
72497         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72498         length is > INT_MAX.
72499         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72500         more.
72501
72502 2004-09-08  Bruno Haible  <bruno@clisp.org>
72503
72504         * lib/stdint_.h: New file, taken from GNU clisp.
72505
72506 2004-09-08  Bruno Haible  <bruno@clisp.org>
72507             Oskar Liljeblad  <oskar@osk.mine.nu>
72508
72509         * modules/stdint: New file.
72510         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72511
72512 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72513
72514         Import from coreutils.
72515         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72516         strings on unbounded length.  alloca's performance benefits aren't
72517         that important here.
72518         (V_STRDUP): Remove.
72519         (parse_with_separator): New function, with most of the internals
72520         of the old parse_user_spec.  Allow user to omit both user and group,
72521         for compatibility with FreeBSD.
72522         Clone only the user name, not the entire spec.
72523         Do not set *uid, *gid unless entirely successful.
72524         Avoid memory leak in some failing cases.
72525         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72526         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72527         (parse_user_spec): Rewrite to use parse_with_separator.
72528
72529 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72530
72531         * modules/userspec: Don't depend on alloca.
72532
72533 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72534
72535         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72536
72537 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72538
72539         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72540         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72541         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72542
72543 2004-08-16  Simon Josefsson  <jas@extundo.com>
72544
72545         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72546         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72547         Add --dry-run for --import.
72548         Let user provided command line parameters override configure.ac
72549         settings.
72550
72551 2004-08-12  Simon Josefsson  <jas@extundo.com>
72552
72553         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72554         as discussed with Paul Eggert in threads rooted at
72555         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72556         and
72557         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72558         Before, the test was empty, and relied on ELIDE_CODE in source
72559         code.)
72560         (gl_PREREQ_GETOPT): New macro.
72561         (gl_GETOPT): Use them.
72562
72563 2004-08-12  Simon Josefsson  <jas@extundo.com>
72564
72565         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72566         * lib/getopt_.h: Renamed from getopt.h.
72567
72568 2004-08-12  Simon Josefsson  <jas@extundo.com>
72569
72570         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72571         Change default library name from libfoo to libgnu.
72572         Now, if you have a configure.ac that says:
72573                 gl_SOURCE_BASE(gl)
72574                 gl_M4_BASE(gl/m4)
72575                 gl_MODULES(error getopt etcetera)
72576                 gl_INIT
72577         you can import all you need by running:
72578                 ../gnulib/gnulib-tool --import
72579
72580         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72581         (Makefile.am): Rewrite, use logic from argz.
72582         (Include): Use <getopt.h> instead of "getopt.h".
72583
72584 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * modules/argp (Files): Add m4/unlocked-io.m4.
72587         (Depends-on): Add extensions.
72588
72589 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72592         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72593         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72594         Check for program_invocation_name, program_invocation_short_name,
72595         flockfile, funlockfile, features.h, _getopt_long_only_r.
72596
72597 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72598
72599         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72600         its complicated substitute.
72601         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72602         and program_invocation_name.
72603         (__argp_basename) [!_LIBC]: Remove; the only use was
72604         replaced by its body.
72605         (__argp_short_program_name): Change condition from
72606         !defined __argp_short_program_name to
72607         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72608         to match argp-namefrob.h.
72609         (__argp_failure): Don't assume strerror_r returns char *.
72610         * lib/argp-parse.c (N_): Define unconditionally.
72611         (argp_default_options): Fill out initializers with 0 to avoid
72612         gcc warnings.
72613
72614 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72615
72616         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72617         getopt1.c.
72618
72619 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72620
72621         Merge from coreutils.
72622
72623         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72624
72625         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72626         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72627
72628 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72629
72630         Merge from coreutils.
72631
72632         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72633         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72634         for Reliant Unix 5.43.
72635
72636         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72637         (union fooround): Use uintmax_t, not long int.
72638         The rest is a merge from libc:
72639         [defined _LIBC]: Include <shlib-compat.h>.
72640         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72641
72642         * lib/settime.c (settime): Recode to avoid warning with
72643         Sun Forte C 6U2.
72644
72645         * lib/strverscmp.c: Convert to UTF-8.
72646
72647 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72648
72649         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72650         m4/uintmax_t.m4.
72651
72652 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         * modules/xalloc-die: New file.
72655         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72656
72657         * modules/md5 (Files): Add m4/uint32_t.m4.
72658         * modules/sha1: Renamed from modules/sha.
72659         (Files):
72660         Rename lib/sha.h to lib/sha1.h.
72661         Rename lib/sha.c to lib/sha1.c.
72662         Rename m4/sha.m4 to m4/sha1.m4.
72663         (lib_SOURCES): Likewise.
72664         (configure.ac): Rename gl_SHA to gl_SHA1.
72665         (Include): sha.h -> sha1.h.
72666
72667 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72670         * m4/sha1.m4: Renamed from sha.m4.
72671         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72672
72673 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72674
72675         * lib/obstack.h (obstack_empty_p):
72676         Don't assume that chunk->contents is suitably aligned.
72677         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72678         Likewise. Problem reported by Benno in
72679         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72680
72681         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72682         readable.  This could be improved further but it'd take some work.
72683
72684 2004-08-08  Simon Josefsson  <jas@extundo.com>
72685
72686         * modules/xgethostname (Depends-on): Remove exit and error (not
72687         used).
72688
72689         * modules/getpass-gnu: Add getpass.h.
72690         (Depends-on): Add stdbool.
72691         * modules/getpass: Add getpass.h.
72692
72693 2004-08-08  Simon Josefsson  <jas@extundo.com>
72694
72695         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72696         Check getpass declaration.
72697
72698 2004-08-08  Simon Josefsson  <jas@extundo.com>
72699
72700         * lib/xgethostname.c: Don't include error.h (not used).
72701
72702         * lib/getpass.h: Add.
72703         * lib/getpass.c: Include getpass.h first.
72704
72705 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72706
72707         * lib/xalloc-die.c: New file.
72708         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72709         All uses removed.
72710         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72711         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72712         xalloc-die.c.
72713         (_, N_, xalloc_die): Move to xalloc-die.c.
72714         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72715         so that we needn't mess with xalloc_msg_memory_exhausted.
72716
72717         * lib/sha1.h: Renamed from sha.h.
72718         (SHA1_H): Renamed from _SHA_H.
72719         (sha1_ctx): Renamed from sha_ctx.
72720         (sha1_init_ctx): Renamed from sha_init_ctx.
72721         (sha1_process_block): Renamed from sha_process_block.
72722         (sha1_process_bytes): Renamed from sha_process_bytes.
72723         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72724         (sha1_read_ctx): Renamed from sha_read_ctx.
72725         (sha1_stream): Renamed from sha_stream.
72726         (sha1_buffer): Renamed from sha_buffer.
72727         * lib/sha1.c: Likewise; renamed from sha.c.
72728         Do not include <sys/types.h>.
72729         Include <stddef.h> rather than <stdlib.h>.
72730
72731 2004-08-08  Bruno Haible  <bruno@clisp.org>
72732
72733         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72734         FILESYSTEM_PREFIX_LEN.
72735         * lib/progreloc.c: Likewise.
72736         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72737
72738 2004-08-06  Simon Josefsson  <jas@extundo.com>
72739
72740         * modules/progname (Depends-on): Don't depend on stdbool.
72741
72742 2004-08-06  Simon Josefsson  <jas@extundo.com>
72743
72744         * modules/getsubopt: New file.
72745         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72746         getsubopt.
72747
72748 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         More merge from coreutils.
72751
72752         * m4/utimens.m4, m4/utimecmp.m4: New files.
72753         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72754         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72755         prereq.m4, sha.m4: Import changes from coreutils.
72756
72757 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72758
72759         More merge from coreutils.
72760         * modules/raise, modules/readtokens0, modules/utimens:
72761         * modules/utimecmp, module/xnanosleep: New files.
72762         * modules/strftime: Add lib/strftime.h.
72763         Change include from <time.h> to "strftime.h".
72764         * modules/yesno: Add lib/yesno.h.
72765         * modules/backupfile: Remove lib/addext.c.
72766         * modules/euidaccess: Add stat-macros.h.
72767         * modules/canonicalize, modules/euidaccess,
72768         modules/filemode, modules/lchown, modules/makepath,
72769         modules/rmdir, modules/stat: Likewise.
72770
72771 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72772
72773         Merge from tar.
72774         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72775         SIZE_MAX is a valid preprocessor constant.
72776         (__argp_basename): Change from "#ifndef _LIBC"
72777         to "#ifndef __argp_short_program_name", so that
72778         we don't compile these functions for tar.
72779
72780         More merges from coreutils.
72781         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72782         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72783         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72784         * lib/addext.c: Remove; no longer needed.
72785         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72786         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72787         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72788         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72789         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72790         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72791         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72792         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72793         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72794         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72795         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72796         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72797         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72798         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72799         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72800         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72801         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72802         Import changes from coreutils.
72803
72804 2004-08-05  Simon Josefsson  <jas@extundo.com>
72805
72806         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72807
72808 2004-08-05  Simon Josefsson  <jas@extundo.com>
72809
72810         * m4/getsubopt.m4: New file.
72811
72812 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72813
72814         Merge from coreutils.
72815
72816         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72817         * m4/getcwd-path-max.m4: New files.
72818
72819         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72820         FILESYSTEM_PREFIX_LEN ->
72821         FILE_SYSTEM_PREFIX_LEN.
72822         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72823         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72824         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72825         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72826
72827         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72828         prerequisite modules now handle the DOS stuff.
72829         Don't check for unistd.h.
72830
72831 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         Merge from coreutils.
72834
72835         * lib/.gdb-history: Remove; this doesn't belong here.
72836
72837         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72838         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72839         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72840         * lib/getcwd.c: New files.
72841
72842         * lib/dirname.h: Include <stdbool.h>.
72843         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72844         for consistency with POSIX terminology.  All uses changed.
72845         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72846         (strip_trailing_slashes): Use bool for booleans.
72847         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72848
72849         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72850         sometimes returns a positive errno value even when it succeeds.
72851         (print_errno_message) [!LIBC]: Fall back on strerror if
72852         __strerror_r fails.
72853
72854         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72855         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72856         (longest_relative_suffix): New function.
72857         (path_concat): Use it.  Assume first argument is not NULL.
72858         Port to DOS.  Omit redundant separators.
72859         Report an error instead of returning NULL.
72860         Use mempcpy instead of memcpy.
72861         (xpath_concat): Remove: not declared or used.
72862
72863         * lib/same.h: Include <stdbool.h>
72864         (same_name): Return bool, not int.
72865         * lib/same.c (same_name): Likewise.
72866         (errno): Don't declare; we assume C89 or better now.
72867
72868         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72869         if not already defined.
72870
72871         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72872         * lib/dup-safer.c (errno): Likewise.
72873
72874 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72875
72876         Merge from coreutils.
72877         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72878         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72879         * modules/path-concat: Don't depend on strdup.
72880
72881 2004-08-03  Simon Josefsson  <jas@extundo.com>
72882
72883         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72884         * lib/progname.h: Don't include stdbool.h.
72885
72886 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72887
72888         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72889         * MODULES.html.sh (func_all_modules): Remove fatal.
72890
72891 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72894
72895 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72896
72897         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72898         working.
72899
72900 2004-08-02  Simon Josefsson  <jas@extundo.com>
72901
72902         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72903         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72904         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72905
72906 2004-08-01  Simon Josefsson  <jas@extundo.com>
72907
72908         * lib/xgetdomainname.c: Include stdlib.h, for free().
72909
72910 2004-07-19  Bruno Haible  <bruno@clisp.org>
72911
72912         * MODULES.html.sh (func_all_modules): Add dummy.
72913
72914 2004-07-16  Simon Josefsson  <jas@extundo.com>
72915
72916         * modules/dummy: New file.
72917
72918 2004-07-16  Simon Josefsson  <jas@extundo.com>
72919
72920         * lib/dummy.c: New file.
72921
72922 2004-07-16  Bruno Haible  <bruno@clisp.org>
72923
72924         * lib/backupfile.h: Add extern "C" for C++.
72925         * lib/closeout.h: Likewise.
72926         * lib/copy-file.h: Likewise.
72927         * lib/findprog.h: Likewise.
72928         * lib/full-write.h: Likewise.
72929         * lib/pathname.h: Likewise.
72930         * lib/progname.h: Likewise.
72931         * lib/stpcpy.h: Likewise.
72932         * lib/stpncpy.h: Likewise.
72933         * lib/strcase.h: Likewise.
72934         * lib/strstr.h: Likewise.
72935         * lib/xalloc.h: Likewise.
72936
72937         * lib/mbswidth.h: Add extern "C" for C++.
72938         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72939
72940 2004-07-13  Robert Millan  <robertmh@gnu.org>
72941
72942         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72943
72944 2004-07-09  Simon Josefsson  <jas@extundo.com>
72945
72946         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72947         failed without this.)
72948
72949 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72950
72951         * modules/chown (Files): Add lib/fchown-stub.c, since
72952         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72953
72954 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72955
72956         * lib/fchown-stub.c: New file.
72957
72958 2004-06-24  Jim Meyering  <jim@meyering.net>
72959
72960         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72961
72962 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72963
72964         * modules/argz: Omit "#include".
72965
72966         * MODULES.html.sh (func_all_modules): Add calloc, to match
72967         2004-06-01 addition of calloc module.
72968
72969 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72970
72971         * m4/argz.m4: New file, which is autoupdated from libtool.
72972
72973 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72974
72975         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72976         libtool.
72977
72978 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72979
72980         * config/srclist-update: Don't insist on "USA." before the
72981         close-comment, as libtool omits the period and puts the */ on a
72982         separate line.
72983         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72984         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72985
72986 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72987
72988         * modules/argz: New file.
72989         * MODULES.html.sh (func_all_modules): Add argz.
72990
72991 2004-06-12  Jim Meyering  <jim@meyering.net>
72992         and  Paul Eggert  <eggert@cs.ucla.edu>
72993
72994         * modules/hash (Files): Add lib/xalloc.h.
72995         * modules/pipe (Depends-on): Add wait-process.
72996         * modules/stat (Depends-on): Add xalloc.
72997         * modules/userspec (Files): Add lib/userspec.h.
72998         * modules/xstrto
72999
73000         Upgrade from gettext-0.13.
73001         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
73002         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
73003         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
73004
73005 2004-06-10  Jim Meyering  <jim@meyering.net>
73006
73007         * lib/calloc.c: New file.
73008
73009 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
73010
73011         * lib/getdate.y (yylex): Allow space between sign and number.
73012         Problem reported by Dan Jacobson.
73013
73014 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73015
73016         Merge from coreutils CVS.
73017
73018         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
73019         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
73020         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
73021         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
73022         xstrtol.m4: Fix copyright date and/or serial number.
73023
73024         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
73025         See if we need an fchown replacement.
73026         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
73027         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
73028         and use the replacement function if we detect either defect.
73029
73030         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
73031         gl_UTIMECMP.
73032
73033 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73034         and  Jim Meyering  <jim@meyering.net>
73035
73036         Merge from coreutils CVS.
73037
73038         * lib/stat-macros.h: New file, with contents from file-type.h
73039         and coreutils' system.h.
73040         * lib/file-type.c: Include "stat-macros.h".
73041         * lib/file-type.h (file_type): Move all macro definitions to new file,
73042         stat-macros.h.
73043
73044         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
73045         Wrap old code with this conditional.
73046         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
73047         function that does not dereference symlinks.
73048         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
73049
73050         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
73051         dependency problems.
73052         (xreadlink): Accept new arg SIZE, for efficiency.
73053         All decls and uses changed.
73054         * lib/xreadlink.h: Include <stddef.h>, for size_t.
73055
73056         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
73057         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
73058
73059         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
73060         sysexits.h.
73061
73062 2004-06-01  Jim Meyering  <jim@meyering.net>
73063
73064         * m4/calloc.m4: New file.
73065
73066 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
73069         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
73070         Also, fix a typo in a diagnostic.
73071
73072 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73073
73074         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
73075         or AC_FUNC_REALLOC.
73076
73077 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73078
73079         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
73080         macros to be defined.
73081         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
73082         the allocator returns NULL because the requested size is zero.
73083
73084 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
73087         var.  Add comment explaining why libc still defines it.  This
73088         merges the following patch from glibc:
73089         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
73090
73091 2004-05-20  Andreas Schwab  <schwab@suse.de>
73092
73093         * m4/free.m4: Replace free if it not known to work, not the other
73094         way round.
73095
73096 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
73099         present in glibc since revision 1.1 of this file.
73100         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
73101         obstack_alignment_mask, obstack_alloc, obstack_base,
73102         obstack_blank, obstack_blank_fast, obstack_chunk_size,
73103         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
73104         obstack_grow0, obstack_init, obstack_int_grow,
73105         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
73106         obstack_next_free, obstack_object_size, obstack_ptr_grow,
73107         obstack_ptr_grow_fast, obstack_room): Remove declarations of
73108         nonexistent functions.
73109
73110 2004-05-18  Karl Berry  <karl@gnu.org>
73111
73112         * config/srclist.txt: break link for vasnprintf.c.
73113
73114 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73115
73116         Port obstack to the AS/400, where pointers are 16 bytes wide and
73117         you cannot cast an integer to a valid pointer.  This patch is
73118         currently waiting to be integrated into glibc; see
73119         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
73120
73121         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
73122         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
73123         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
73124         (struct obstack): temp member is now a union of a pointer and
73125         an integer, instead of an integer.  All integer uses changed.
73126         This does not affect the physical layout of struct obstack,
73127         except on hosts (like the AS/400) where the size or alignment of
73128         void * is greater than that of ptrdiff_t.
73129         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
73130         __STDC__)]: Store temporary in pointer member of union, not
73131         integer member.
73132         * lib/obstack.c: Include <stddef.h>, for offsetof.
73133         (struct fooalign): Remove; it doesn't need a name.
73134         (union fooround): Change double to long double, and add void *.
73135         (DEFAULT_ALIGNMENT): Use offsetof to compute.
73136         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
73137         not a macro.  Hence the values are always int; so remove all
73138         casts-to-int in uses.
73139
73140 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73141
73142         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
73143         we can get this patch merged into glibc.
73144
73145 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73146             Paul Eggert  <eggert@cs.ucla.edu>
73147
73148         * m4/argp: Depend on alloca.
73149
73150 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73151             Paul Eggert  <eggert@cs.ucla.edu>
73152
73153         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
73154         freecoding.
73155
73156 2004-05-17  Bruno Haible  <bruno@clisp.org>
73157
73158         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
73159         precision that consists of a '.' followed by an empty digit string.
73160         Patch by Tor Lillqvist <tml@iki.fi>.
73161
73162 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73163
73164         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
73165         for backward compatibility with older code.  We need our own
73166         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
73167         it under some other name, and our alloca.h will define it.
73168
73169 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73170             Derek Price  <derek@ximbiot.com>
73171
73172         * lib/alloca.c: Include <alloca.h>, to get our interface.
73173         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
73174         include <alloca.h> first.  Use C89 prototype for alloca; this
73175         requires including <stddef.h> for size_t.  Use extern "C" if C++.
73176         Use #elif for simplicity, since we can assume C89 now.
73177         Don't try to source the system alloca.h since it will not be found
73178         and to prevent recursively including its replacement.
73179         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
73180         * lib/regex.c: Likewise.
73181
73182 2004-05-16  Derek Price  <derek@ximbiot.com>
73183             Paul Eggert  <eggert@cs.ucla.edu>
73184
73185         getline cleanup.  This changes the getndelim2 API: both order of
73186         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
73187         no delimiter).
73188
73189         * lib/getline.c: Don't include stddef.h or stdio.h, since our
73190         interface does that.
73191         (getline): Always use getdelim, so that we don't have two
73192         copies of this code.
73193         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
73194         if available.
73195         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
73196         (GETNDELIM2_MAXIMUM): New macro.
73197         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
73198         instead of the old practice of delim2==0.  All callers changed.
73199         Return -1 on overflow, instead of returning junk.
73200         Do not set *linesize unless allocation succeeds.
73201         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
73202         that we include sys/types.h.
73203         * lib/getnline.h: Likewise.
73204         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
73205         (getndelim2): Reorder arguments.
73206         * lib/getnline.c (getnline, getndelim):
73207         Don't discard the NMAX argument.
73208         (getnline): Invoke getndelim, to avoid code duplication.
73209         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
73210         of (size_t) -1 by callers of the getnline family.
73211
73212 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73213
73214         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
73215         Check for gettimeofday.
73216         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
73217         Check for settimeofday, stime.
73218
73219 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73220
73221         * lib/nanosleep.c (suspended): Change its type from int to
73222         sig_atomic_t volatile.
73223         (first_call): Make it private to rpl_nanosleep, and have it
73224         be zero initially as that's a bit faster.
73225         (my_usleep): Round up fractional times instead of truncating them,
73226         as this is the usual meaning for 'sleep'.
73227
73228         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
73229         doesn't work.
73230         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
73231         (ENOSYS): Define if not defined.
73232         (settime): Fall back on stime if it exists and settimeofday fails.
73233         But don't bother with fallbacks if a method fails with errno == EPERM.
73234
73235 2004-05-11  Jim Meyering  <jim@meyering.net>
73236
73237         Prior to this change, the save_cwd caller required read access to the
73238         current directory on most systems (ones with the fchdir function).
73239
73240         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
73241         fails, try write-only, and finally, resort to using xgetcwd.
73242
73243 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73244
73245         * lib/obstack.c, obstack.h: Import changes from libc.
73246
73247 2004-04-28  Bruno Haible  <bruno@clisp.org>
73248
73249         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
73250         also implicitly appends .exe to executables.
73251         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
73252         accepts Windows pathnames.
73253         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73254         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73255         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73256         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73257         Reported by Derek Robert Price <derek@ximbiot.com>.
73258
73259 2004-04-21  Karl Berry  <karl@gnu.org>
73260
73261         * config/srclist.txt (localcharset.c): break sync.
73262
73263 2004-04-20  Paul Eggert  <eggert@twinsun.com>
73264
73265         * m4/host-os.m4: Add a copyright notice.
73266
73267 2004-04-20  Jim Meyering  <jim@meyering.net>
73268
73269         Change UTILS_ to gl_ in AC_DEFINE'd names.
73270         Change utils_- and jm_-prefixed variables, too.
73271         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
73272         UTILS_FUNC_MKDIR_TRAILING_SLASH.
73273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
73274
73275         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
73276         Don't emit trailing blanks.
73277         Also rename jm_-prefixed variables to have gl_ prefix.
73278
73279         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
73280         Also rename jm_-prefixed variables to have gl_ prefix.
73281
73282         * m4/jm-macros.m4: Reflect the renamings.
73283         * m4/prereq.m4: Likewise.
73284
73285 2004-04-20  Jim Meyering  <jim@meyering.net>
73286
73287         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
73288         memory.
73289
73290 2004-04-20  Jim Meyering  <jim@meyering.net>
73291             Bruno Haible  <bruno@clisp.org>
73292
73293         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
73294         memory when realloc fails.
73295
73296 2004-04-19  Jim Meyering  <jim@meyering.net>
73297
73298         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
73299         now that readutmp.c may call `free (0)'.
73300
73301 2004-04-19  Bruno Haible  <bruno@clisp.org>
73302
73303         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
73304         * m4/inttypes_h.m4: Likewise.
73305         * m4/stdint_h.m4: Likewise.
73306         * m4/intmax_t.m4: Likewise.
73307         * m4/uintmax_t.m4: Likewise.
73308
73309 2004-04-18  Jim Meyering  <jim@meyering.net>
73310
73311         * m4/prereq.m4: Don't forbid jm_ prefix.
73312
73313         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
73314         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
73315         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
73316         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
73317         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
73318         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
73319         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
73320         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
73321         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
73322         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
73323         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
73324         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
73325         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
73326         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
73327         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
73328         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73329         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73330         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73331         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73332
73333 2004-04-18  Jim Meyering  <jim@meyering.net>
73334
73335         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73336         failure, don't leak memory and do call END_UTMP_ENT.
73337
73338 2004-04-16  Jim Meyering  <jim@meyering.net>
73339
73340         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73341         coreutils' stat program.
73342         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73343
73344 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73345
73346         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73347         C89.
73348         (CHAR_BIT): Remove, since we assume C89.
73349         Include <stdint.h> if available, as per current Autoconf CVS advice.
73350
73351 2004-03-31  Jim Meyering  <jim@meyering.net>
73352
73353         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73354         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73355         * m4/xalloc.m4: Likewise.
73356
73357 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73358
73359         Merge from coreutils.
73360
73361         * m4/inttostr.m4: New file.
73362         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73363         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73364         Require gl_CLOCK_TIME.
73365         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73366
73367 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73368
73369         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73370         not bool, to be more consistent with Unix conventions.
73371         Suggested by Bruno Haible.
73372
73373         Merge from coreutils.
73374
73375         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73376         * lib/umaxtostr.c: New files.
73377
73378         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73379         the usual <time.h> dance.
73380         (get_date): Change signature to support fractional time stamps.
73381         All callers changed.
73382         * lib/getdate.y: Include "getdate.h" first, as we can now
73383         assume C89 and don't need to worry about 'const'.
73384         Similarly, include "unlocked-io.h" near start, not in middle.
73385         Include <limits.h>.
73386         (textint.value): Use long int rather than int.
73387         (textint.digits): Use size_t rather than int.
73388         (BILLION, LOG10_BILLION): New constants.
73389         (parser_control): New member rel_ns.  Members day_ordinal,
73390         time_zone, month, day, hour, minutes, rel_year, rel_month,
73391         rel_day, rel_hour, rel_minutes, rel_seconds
73392         are now long int, not int.  Member seconds is now struct timespec,
73393         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73394         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73395         not int.
73396         (%union.intval): Now long int, not int.
73397         New member timespec.
73398         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73399         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73400         (spec): Now is a timespec or an item list.
73401         (timespec, items): New nonterminals.
73402         (time, rel, relunit, number, get_date):
73403         Add support for fractional seconds.
73404         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73405         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73406         (to_hour): First arg is now long int, not int.
73407         (to_year): Returns long int, not int.
73408         Don't treat year -70 like 70.
73409         (tm_diff): Returns long int, not int.
73410         (lookup_word): Use bool instead of int when appropriate.
73411         (yylex): Use size_t for count, not int.
73412         Detect overflow when parsing large integer constants.
73413         Add support for fractions.
73414         (get_date): Make pointers 'const' if possible.
73415         Use more-portable code to detect integer overflow.
73416         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73417         Don't use ctime; it's not reliable if the year has >4 digits.
73418
73419         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73420         This is for compatibility with BSD.
73421
73422         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73423         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73424         From coreutils' system.h.
73425
73426         * lib/userspec.c: Don't include "posixver.h".
73427         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73428         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73429         compatible extension.  Simplify code by removing a boolean int
73430         that was always nonzero if a string was nonnull.
73431
73432 2004-03-30  Jim Meyering  <jim@meyering.net>
73433
73434         Merge from coreutils.
73435
73436         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73437         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73438         on some systems one must include <grp.h> before it.
73439         Reported by Christian Krackowizer.
73440
73441 2004-03-30  Jim Meyering  <jim@meyering.net>
73442
73443         Merge from coreutils.
73444
73445         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73446
73447         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73448         an empty input stream.
73449
73450         * lib/readtokens.c: Include <stdbool.h>.
73451         (readtoken): Use `size_t' rather than int/long.
73452         All callers adjusted.
73453         Use `bool' rather than `int' where appropriate.
73454         Use memset rather than an explicit loop.
73455         Use x2nrealloc rather than xrealloc.
73456         Allow the use of `\0' as a delimiter.
73457         (readtokens): Likewise.
73458         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73459
73460 2004-03-30  Jim Meyering  <jim@meyering.net>
73461
73462         * m4/realloc.m4: Remove file, since now it does no more than
73463         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73464         the `configure.ac' section of module/realloc.
73465         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73466
73467 2004-03-30  Bruno Haible  <bruno@clisp.org>
73468
73469         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73470         nonnull.
73471
73472 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73473
73474         Merge changes to getloadavg.c from coreutils and Emacs.
73475
73476         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73477         Define to an expression, not to the empty string.
73478         Include cloexec.h and xalloc.h.
73479         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73480         Use set_cloexec_flag rather than rolling our own.
73481         * lib/cloexec.c, lib/cloexec.h: New files.
73482
73483 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73484
73485         * m4/cloexec.m4: New file.
73486
73487 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73488
73489         * lib/getopt.h: Sync with libc CVS.
73490
73491 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73492             Bruno Haible  <bruno@clisp.org>
73493
73494         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73495         mbswidth.
73496
73497 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73498             Bruno Haible  <bruno@clisp.org>
73499
73500         * lib/mbswidth.h: Include <wchar.h> only if
73501         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73502         <wchar.h>.
73503         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73504
73505 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73506
73507         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73508         Sync with libc CVS.
73509         * lib/getopt_int.h: New file, also synced from libc.
73510
73511 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73512
73513         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73514         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73515         Bring back getopt.c, getopt.h, getopt1.c.
73516
73517 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73518
73519         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73520         All uses changed.  Check for sa_sigaction member; this fixes
73521         a bug first reported by Jason Andrade in
73522         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73523
73524 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73525
73526         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73527         '#if' expressions.  Unlike the code it replaces, it does not
73528         depend on (defined _SC_PAGESIZE).  However, it does depend on
73529         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73530         first reported by Jason Andrade in
73531         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73532
73533 2004-02-25  Simon Josefsson  <jas@extundo.com>
73534
73535         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73536
73537 2004-02-25  Simon Josefsson  <jas@extundo.com>
73538
73539         * lib/strdup.h: New file.
73540         * lib/strdup.c: Include it.
73541         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73542         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73543
73544 2004-02-23  Karl Berry  <karl@gnu.org>
73545
73546         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73547         (from fencepost.gnu.org:/gd/gnuorg).
73548
73549 2004-02-23  Karl Berry  <karl@gnu.org>
73550
73551         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73552         * config/srclist.txt: add maintain/standards documents.
73553
73554 2004-02-18  Bruno Haible  <bruno@clisp.org>
73555
73556         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73557         Reported by Derek Robert Price <derek@ximbiot.com>.
73558
73559 2004-02-16  Karl Berry  <karl@gnu.org>
73560
73561         * config/mkinstalldirs, install-sh: update from automake.
73562
73563 2004-02-06  Karl Berry  <karl@gnu.org>
73564
73565         * m4/po.m4: update from gettext 0.14.1.
73566
73567 2004-02-06  Karl Berry  <karl@gnu.org>
73568
73569         * lib/config.charset: update from gettext 0.14.1.
73570
73571 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73572
73573         Add comments and code, prompted by suggestions from Bruno Haible
73574         for sh-quote.
73575         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73576         describing the enum quoting_style values.
73577         * lib/quotearg.c (quotearg_alloc): New function.
73578         (quotearg_buffer_restyled): Treat lone { and } as special.
73579         Treat = as special.  Work around bug with older shells
73580         that "see" a '\' that is really the 2nd byte of a multibyte char.
73581         Quote empty string with shell_quoting_style.
73582
73583 2004-02-03  Bruno Haible  <bruno@clisp.org>
73584
73585         * m4/pipe.m4: New file, from GNU gettext.
73586
73587 2004-02-03  Bruno Haible  <bruno@clisp.org>
73588
73589         * lib/pipe.h: New file, from GNU gettext.
73590         * lib/pipe.c: New file, from GNU gettext.
73591
73592 2004-01-27  Bruno Haible  <bruno@clisp.org>
73593
73594         * m4/execute.m4: New file, from GNU gettext.
73595
73596 2004-01-27  Bruno Haible  <bruno@clisp.org>
73597
73598         * lib/execute.h: New file, from GNU gettext.
73599         * lib/execute.c: New file, from GNU gettext.
73600         * lib/w32spawn.h: New file, from GNU gettext.
73601
73602 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73603
73604         Merge from diffutils.
73605
73606         * lib/file-type.c (file_type): Add typed memory objects.
73607         * lib/file-type.h (S_TYPEISTMO): New macro.
73608
73609         * lib/c-stack.h (c_stack_action): Remove argv argument.
73610         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73611         (die): Don't calculate message unless segv_action returns.
73612         (get_stack_location, min_address_from_argv, max_address_from_argv,
73613         volatile stack_base, volatile_stack_size): Remove.
73614         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73615         that every segmentation violation is a stack overflow.  (Ouch!)
73616         See Debian bug 136249 (still outstanding) for more info about why
73617         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73618
73619 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73620
73621         Exit-status fix from coreutils.
73622
73623         Use exit_failure consistently in place of EXIT_FAILURE,
73624         so that program exit statuses are consistent on failure.
73625
73626         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73627         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73628         * lib/argmatch.h: Comment fix to match the above.
73629         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73630         Now a macro referring to exit_failure, instead of a separate
73631         variable.  Include "exitfail.h" to get it.
73632         * lib/xstrtol.h: Include "exitfail.h".
73633         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73634
73635         * lib/long-options.c (parse_long_options): Use prototype
73636         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73637         for clarity.
73638
73639 2004-01-21  Jim Meyering  <jim@meyering.net>
73640
73641         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73642         so as not to conflict with a different-sized __mktime_internal
73643         function in GNU libc.
73644         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73645         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73646
73647 2004-01-20  Karl Berry  <karl@gnu.org>
73648
73649         * config/config.guess: update from config.
73650
73651         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73652
73653 2004-01-20  Bruno Haible  <bruno@clisp.org>
73654
73655         Safer stack allocation.
73656         * lib/setenv.c: Include allocsa.h.
73657         (alloca): Remove fallback definition.
73658         (freea): Remove macro.
73659         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73660         instead of freea.
73661
73662 2004-01-20  Bruno Haible  <bruno@clisp.org>
73663
73664         * m4/eealloc.m4: New file, from GNU gettext.
73665
73666 2004-01-20  Bruno Haible  <bruno@clisp.org>
73667
73668         * m4/allocsa.m4: New file, from GNU gettext.
73669
73670 2004-01-20  Bruno Haible  <bruno@clisp.org>
73671
73672         * lib/xallocsa.h: New file, from GNU gettext.
73673         * lib/xallocsa.c: New file, from GNU gettext.
73674
73675 2004-01-20  Bruno Haible  <bruno@clisp.org>
73676
73677         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73678
73679 2004-01-20  Bruno Haible  <bruno@clisp.org>
73680
73681         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73682         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73683         specially.
73684
73685 2004-01-20  Bruno Haible  <bruno@clisp.org>
73686
73687         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73688         patch.
73689
73690 2004-01-20  Bruno Haible  <bruno@clisp.org>
73691
73692         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73693
73694 2004-01-20  Bruno Haible  <bruno@clisp.org>
73695
73696         * lib/eealloc.h: New file.
73697
73698 2004-01-20  Bruno Haible  <bruno@clisp.org>
73699
73700         * lib/binary-io.h: Avoid warnings on Cygwin.
73701
73702 2004-01-20  Bruno Haible  <bruno@clisp.org>
73703
73704         * lib/allocsa.h: New file, from GNU gettext.
73705         * lib/allocsa.c: New file, from GNU gettext.
73706
73707 2004-01-18  Karl Berry  <karl@gnu.org>
73708
73709         * doc/gpl.texi, doc/lgpl.texi: new files.
73710
73711 2004-01-18  Karl Berry  <karl@gnu.org>
73712
73713         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73714         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73715
73716 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73717
73718         Merge from coreutils.
73719
73720         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73721         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73722         (gl_DEFAULT_POSIX2_VERSION): Move
73723         the documentation from 'configure' into 'config.hin',
73724         so that 'configure --help' isn't burdened by it and
73725         we don't have to worry about its formatting there.
73726         Reword the documentation so that it's more succinct
73727         and can be run together into a single paragraph.
73728         * m4/same.m4 (gl_SAME): Check for pathconf.
73729
73730 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73731
73732         Merge from coreutils.
73733
73734         * lib/posixver.c: Include posixver.h.
73735
73736         * lib/same.c: Include <stdbool.h>, <limits.h>.
73737         (_POSIX_NAME_MAX): Define if not defined.
73738         (MIN): New macro.
73739         (same_name): If file names are silently truncated, report
73740         that the file names are the same if they are the same after
73741         the silent truncation.
73742
73743         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73744         conversion function.
73745         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73746         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73747         longer needed.
73748
73749 2004-01-15  Jim Meyering  <jim@meyering.net>
73750
73751         Merge from coreutils.
73752
73753         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73754         if no library is required.
73755         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73756         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73757         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73758         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73759         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73760         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73761         value, $ac_cv_search_crypt, if it's "none required".
73762         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73763         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73764         not gl_FUNC_GETLOADAVG.
73765         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73766         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73767
73768 2004-01-15  Jim Meyering  <jim@meyering.net>
73769
73770         Merge from coreutils.
73771
73772         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73773         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73774         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73775
73776         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73777         optional configure-time default.
73778
73779         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73780
73781         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73782
73783 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73784
73785         Merge from coreutils.
73786
73787         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73788         value, $ac_cv_search_nanosleep, if it's "none required".
73789
73790 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73791
73792         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73793         with like-named macro in fnmatch.c.
73794         (EXT): Use an internal constant instead.
73795
73796         Merge fnmatch patches from glibc.
73797         * lib/fnmatch.c (mbsinit): Remove define.
73798         Add libc_hidden_ver (__fnmatch, fnmatch).
73799         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73800         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73801
73802 2004-01-14  Karl Berry  <karl@gnu.org>
73803
73804         * config/install-sh: update from automake.
73805
73806 2004-01-13  Karl Berry  <karl@gnu.org>
73807
73808         * config/install-sh: update from automake.
73809
73810 2004-01-09  Karl Berry  <karl@gnu.org>
73811
73812         * config/install-sh: update from automake.
73813
73814 2004-01-05  Karl Berry  <karl@gnu.org>
73815
73816         * config/config.{sub,guess}: update from config.
73817
73818 2003-12-31  Karl Berry  <karl@gnu.org>
73819
73820         * config/depcomp: update from automake.
73821
73822 2003-12-14  Karl Berry  <karl@gnu.org>
73823
73824         * lib/config.charset: update from gettext-runtime.
73825
73826 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73827
73828         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73829         Bug reported by Alfred M. Szmidt.
73830
73831 2003-12-03  Bruno Haible  <bruno@clisp.org>
73832
73833         * m4/gettext.m4: Upgrade from gettext-0.13.
73834         * m4/po.m4: Upgrade from gettext-0.13.
73835         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73836         * m4/intmax.m4: New file, from gettext-0.13.
73837         * m4/printf-posix.m4: New file, from gettext-0.13.
73838
73839 2003-11-29  Karl Berry  <karl@gnu.org>
73840
73841         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73842
73843 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73844             Bruno Haible  <bruno@clisp.org>
73845
73846         * lib/printf-parse.h: Don't include sys/types.h.
73847         (ARG_NONE): New macro.
73848         (char_directive): Change type of *arg_index fields to size_t.
73849         * lib/printf-parse.c: Don't include sys/types.h.
73850         (SSIZE_MAX): Remove macro.
73851         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73852         Remove unnecessary overflow check.
73853         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73854         fields.
73855
73856 2003-11-25  Bruno Haible  <bruno@clisp.org>
73857
73858         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73859
73860 2003-11-25  Bruno Haible  <bruno@clisp.org>
73861
73862         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73863         gt_TYPE_SSIZE_T.
73864
73865 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73866
73867         * modules/alloca: Remove dependency on xalloc.
73868
73869 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73870
73871         * lib/alloca.c: Remove dependency on xalloc module.
73872         (xalloc_die): Remove.
73873         (memory_full) [!defined emacs]: New macro.
73874         [!defined emacs]: Don't include xalloc.h.
73875         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73876         address arithmetic overflows.  Change datatypes a bit to avoid
73877         unnecessary casts.
73878
73879 2003-11-22  Jim Meyering  <jim@meyering.net>
73880
73881         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73882         s/size/size_t/.
73883
73884 2003-11-21  Karl Berry  <karl@gnu.org>
73885
73886         * config/config.{sub,guess}: update from config.
73887
73888 2003-11-18  Karl Berry  <karl@gnu.org>
73889
73890         * config/config.{sub,guess}: update from config.
73891
73892         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73893
73894 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73895
73896         * README: Mention that S+T cannot overflow if S is the size of
73897         an existing object and T is sufficiently small.
73898
73899 2003-11-17  Jim Meyering  <jim@meyering.net>
73900
73901         On systems without utime and without a utimes function capable of
73902         dealing with a NULL struct utimbuf* argument, this utime replacement
73903         could -- in unusual circumstances -- leak a file descriptor.
73904         * lib/utime.c: Include <unistd.h> and <errno.h>.
73905         (utime_null): Be sure to close `fd' and to preserve errno.
73906         Reported by Geoff Collyer via Arnold Robbins.
73907
73908 2003-11-17  Bruno Haible  <bruno@clisp.org>
73909
73910         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73911         (Depends-on): Add xsize.
73912
73913 2003-11-17  Bruno Haible  <bruno@clisp.org>
73914
73915         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73916
73917 2003-11-17  Bruno Haible  <bruno@clisp.org>
73918
73919         * lib/vasnprintf.c (alloca): Remove fallback definition.
73920         (freea): Remove definition.
73921         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73922         Reported by Paul Eggert.
73923
73924 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73925             Bruno Haible  <bruno@clisp.org>
73926
73927         Protect against address arithmetic overflow.
73928         * lib/printf-args.h: Include stddef.h.
73929         (arguments): Change type of field 'count' to size_t.
73930         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73931         'unsigned int' where appropriate.
73932         * lib/printf-parse.h: Include sys/types.h.
73933         (char_directive): Change type of *arg_index fields to ssize_t.
73934         (char_directives): Change type of fields 'count', max_*_length to
73935         size_t.
73936         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73937         (SSIZE_MAX): Define fallback value.
73938         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73939         instead of 'int' where appropriate. Check a_allocated, d_allocated
73940         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73941         * lib/vasnprintf.c: Include xsize.h.
73942         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73943         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73944         overflow. Avoid wraparound when converting a width or precision from
73945         decimal to binary.
73946
73947 2003-11-16  Bruno Haible  <bruno@clisp.org>
73948
73949         Update from GNU gettext.
73950         * lib/printf-parse.c: Generalize to it can be compiled for wide
73951         strings.
73952         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73953         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73954         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73955         SNPRINTF): New macros.
73956         Don't include <alloca.h> if the file is used inside libintl.
73957         (local_wcslen): New function, for Solaris 2.5.1.
73958         (VASNPRINTF): Use it instead of wcslen.
73959
73960 2003-11-16  Bruno Haible  <bruno@clisp.org>
73961
73962         * lib/xsize.h (xmax): New function.
73963         (xsum, xsum3, xsum4): Declare as "pure" functions.
73964
73965 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73966
73967         * modules/xalloc (Files): Undo latest change, since xalloc.h
73968         no longer needs SIZE_MAX or PTRDIFF_MAX.
73969
73970 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73971
73972         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73973         gl_PTRDIFF_MAX.
73974
73975 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73976
73977         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73978         "return", to pacify some unknown compiler.  Problem reported
73979         by Joerg Schilling.
73980
73981 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73982
73983         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73984         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73985         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73986         heuristic is just as accurate as far as we know, and it removes a
73987         dependency on size_max.m4 and ptrdiff_max.m4.
73988
73989 2003-11-11  Bruno Haible  <bruno@clisp.org>
73990
73991         * modules/xsize (Files): Add m4/size_max.m4.
73992         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73993
73994 2003-11-11  Bruno Haible  <bruno@clisp.org>
73995
73996         * m4/size_max.m4: New file.
73997         * m4/ptrdiff_max.m4: New file.
73998         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73999         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
74000         (gl_XALLOC): Invoke it.
74001
74002 2003-11-11  Bruno Haible  <bruno@clisp.org>
74003
74004         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
74005         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
74006         defined.
74007
74008 2003-11-10  Paul Eggert  <eggert@twinsun.com>
74009
74010         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
74011         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
74012         rejected some allocations of exactly SIZE_MAX - 2 bytes.
74013         From Bruno Haible.
74014         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
74015         not (size_t) -1, since it's defined here.
74016
74017 2003-11-09  Karl Berry  <karl@gnu.org>
74018
74019         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
74020
74021 2003-11-06  Paul Eggert  <eggert@twinsun.com>
74022
74023         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
74024         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
74025         Reject sizes of exactly SIZE_MAX bytes.
74026         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
74027         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
74028
74029 2003-11-05  Bruno Haible  <bruno@clisp.org>
74030
74031         * lib/xsize.h: Include limits.h, to avoid a possible collision with
74032         SIZE_MAX defined in <limits.h> on Solaris.
74033
74034 2003-11-04  Jim Meyering  <jim@meyering.net>
74035
74036         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
74037         variable names, rather than @VAR@.
74038         * modules/poll: Likewise.
74039
74040 2003-11-04  Bruno Haible  <bruno@clisp.org>
74041
74042         * modules/xsize: New file.
74043         * modules/linebreak: Depend on xsize.
74044         * MODULES.html.sh (func_all_modules): Add xsize.
74045
74046 2003-11-04  Bruno Haible  <bruno@clisp.org>
74047
74048         * m4/xsize.m4: New file.
74049
74050 2003-11-04  Bruno Haible  <bruno@clisp.org>
74051
74052         * lib/xsize.h: New file.
74053         * lib/linebreak.c: Include xsize.h.
74054         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
74055         argument for overflow.
74056         Suggested by Paul Eggert.
74057
74058 2003-11-03  Karl Berry  <karl@gnu.org>
74059
74060         * config/config.{guess,sub}: update from config.
74061
74062 2003-11-03  Jim Meyering  <jim@meyering.net>
74063
74064         * modules/userspec (lib_SOURCES): Add userspec.h.
74065         (Include): Add "userspec.h".
74066         Improve description.
74067
74068 2003-11-03  Jim Meyering  <jim@meyering.net>
74069
74070         * lib/userspec.c: Include "userspec.h".
74071         * lib/userspec.h: New file.
74072
74073 2003-11-03  Bruno Haible  <bruno@clisp.org>
74074
74075         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
74076
74077 2003-11-03  Bruno Haible  <bruno@clisp.org>
74078
74079         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
74080         available, to avoid (extremely rare) race condition.
74081         Suggested by Paul Eggert.
74082
74083 2003-11-02  Karl Berry  <karl@gnu.org>
74084
74085         * config/srclist.txt (vasprintf.c): sync broken, sigh.
74086
74087 2003-10-31  Paul Eggert  <eggert@twinsun.com>
74088
74089         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
74090         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
74091         (read_filesystem_list): Set and use me_type_malloced.
74092         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
74093         whatever the type happens to be), for brevity and consistency.
74094         Check for size calculation overflow on Alphas running OSF/1.
74095
74096 2003-10-31  Jim Meyering  <jim@meyering.net>
74097
74098         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
74099
74100         * lib/linebuffer.c: Include <string.h> for declaration of memset.
74101
74102 2003-10-30  Paul Eggert  <eggert@twinsun.com>
74103             Bruno Haible  <bruno@clisp.org>
74104
74105         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
74106         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
74107
74108 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74109
74110         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
74111         netbsd*-gnu*.  Suggested by Robert Millan.
74112
74113 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74114
74115         * modules/group-member: Depend on stdbool.
74116
74117 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74118
74119         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
74120
74121 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74122
74123         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
74124         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
74125         after the 'gnu' in these cases.  This fixes some bugs in the
74126         previous change, and is based on suggestions by Robert Millan.
74127
74128 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74129
74130         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
74131         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
74132         no longer needed.
74133         * lib/quotearg.c (quotearg_n_options): Use it.
74134         * lib/group-member.c: Include <stdbool.h>.
74135         (free_group_info): Arg is now const *; don't free arg.
74136         (get_group_info): Now returns bool and accepts struct group_info *,
74137         rather than returning a malloc'ed struct group_info *.
74138         All uses changed.  Check for overflow in internal size calculation.
74139
74140         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
74141         rather than xmalloc/xrealloc.
74142         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
74143         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
74144         conformance bug: the old code used a pointer after freeing the
74145         storage that it addressed.
74146         * lib/hash.c (hash_initialize): Simplify the code by using
74147         xalloc_oversized rather than doing it by hand.
74148         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
74149         the buffer preserved.  Use free and xmalloc instead.
74150         * lib/quotearg.c (quotearg_n_options): Likewise.
74151         Use a simpler test for size overflow.  Don't use xalloc_oversized
74152         because unsigned int might be wider than size_t (!); this suggests
74153         that we should switch from unsigned int to size_t for slot numbers.
74154
74155 2003-10-28  Paul Eggert  <eggert@twinsun.com>
74156
74157         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
74158         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
74159         NetBSD kernels.  Requested by Richard Stallman.
74160
74161 2003-10-27  Paul Eggert  <eggert@twinsun.com>
74162
74163         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
74164         to allocate the returned structure.  Do not allocate a subarray,
74165         as x2nrealloc will do that.
74166         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
74167         instead of xnrealloc.
74168         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
74169
74170 2003-10-27  Bruno Haible  <bruno@clisp.org>
74171
74172         * lib/stdbool_.h: Better support for BeOS.
74173
74174 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74175
74176         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
74177         now uses inline.
74178
74179 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74180
74181         * lib/xalloc.h (xalloc_oversized): New static inline function, for
74182         callers that want to do their own size-overflow checking.  Include
74183         <stdbool.h>, since xalloc_oversized returns bool.
74184         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
74185         to use xalloc_oversized.
74186
74187         Add two functions x2realloc, x2nrealloc, for programs that grow
74188         arrays dynamically by doubling their sizes.
74189         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
74190         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
74191         New functions.
74192
74193         Port to C99 semantics for 'inline' of external functions.
74194         Bug reported by Bruno Haible.
74195         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
74196         with the old contents of xnmalloc.
74197         (xnmalloc, xmalloc): Use it.
74198         (xnrealloc_inline): New static inline function,
74199         with the old contents of xnrealloc.
74200         (xnrealloc, xrealloc): Use it.
74201
74202         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
74203         that.
74204
74205 2003-10-26  Karl Berry  <karl@gnu.org>
74206
74207         * config/srclist.txt (COPYING.DOC): no longer available from
74208         /gd/gnuorg; don't know where the ultimate source is.
74209
74210 2003-10-25  Paul Eggert  <eggert@twinsun.com>
74211
74212         Fix several address-calculation bugs in the hash modules,
74213         plus some minor code cleanup.
74214
74215         * lib/hash.h: Include <stdbool.h>, for bool.
74216         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
74217         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
74218         hash_get_n_entries, hash_get_max_bucket_length,
74219         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
74220         hash_rehash): Use size_t rather than unsigned.
74221         * lib/hash.c (struct hash_table, hash_get_n_buckets,
74222         hash_get_n_buckets_used, hash_get_n_entries,
74223         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
74224         hash_get_entries, hash_do_for_each, hash_string, is_prime,
74225         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
74226         Likewise.
74227         (SIZE_MAX): Define if not defined.
74228         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
74229         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
74230         hash_print):
74231         Use const * when possible.
74232         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
74233         (check_tuning): Fix bug: if tuning parameters were very close to
74234         0 or 1, rounding errors could have caused subscript violations.
74235         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
74236         (hash_initialize): Add 'fail:' label
74237         to free table and return NULL, and use it to simplify code.
74238         Use calloc rather than clearing the storage ourself.
74239         (hash_initialize, hash_rehash): Check for arithmetic overflow in
74240         buffer size calculations.
74241         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
74242         Include <stddef.h>, for size_t.
74243         * lib/hash-pjw.c (hash_pjw): Likewise.
74244         Switch to method described by Bruno Haible.
74245         Include <limits.h>, for CHAR_BIT.
74246         (SIZE_BITS): New macro.
74247
74248 2003-10-23  Paul Eggert  <eggert@twinsun.com>
74249
74250         * m4/getline.m4 (AM_FUNC_GETLINE):
74251         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
74252         hosts.  Problem reported by Derek Robert Price in
74253         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
74254         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
74255         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
74256
74257 2003-10-21  Paul Eggert  <eggert@twinsun.com>
74258
74259         * lib/getndelim2.c (getndelim2): When size calculation overflows,
74260         ceiling the allocation at NMAX bytes rather than silently
74261         discarding input bytes before NMAX is reached.  This makes
74262         a difference only if NMAX exceeds SIZE_MAX / 2.
74263
74264         * lib/obstack.c: Merge from glibc.
74265         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
74266         Add libc_hidden_def (_obstack_newchunk).
74267         (_obstack_free) [! defined _LIBC]: Remove.
74268         [defined _LIBC]: Make a strong alias from obstack_free, rather than
74269         a clone of the function body.
74270         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
74271         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
74272
74273         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
74274         glibc.
74275         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
74276         arg to memcpy.
74277
74278         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
74279         (obstack_ptr_grow_fast, obstack_int_grow_fast):
74280         Don't use lvalue casts, as GCC plans to remove support for them
74281         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
74282         was also present in the non-GCC version, indicating that this
74283         code had always been buggy and had never been widely used.
74284         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
74285         Use the fast variant of each macro, rather than copying the
74286         definiens of the fast variant; that way, we'll be more likely to
74287         catch future bugs in the fast variants.
74288
74289 2003-10-20  Bruno Haible  <bruno@clisp.org>
74290
74291         * modules/wait-process: New file.
74292         * MODULES.html.sh (func_all_modules): Add wait-process.
74293
74294 2003-10-20  Bruno Haible  <bruno@clisp.org>
74295
74296         * m4/wait-process.m4: New file.
74297
74298 2003-10-20  Bruno Haible  <bruno@clisp.org>
74299
74300         * lib/wait-process.h: New file, from GNU gettext.
74301         * lib/wait-process.c: New file, from GNU gettext.
74302
74303 2003-10-19  Jim Meyering  <jim@meyering.net>
74304
74305         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
74306         HPUX 10.20.
74307
74308 2003-10-18  Karl Berry  <karl@gnu.org>
74309
74310         * config/config.guess: update from config.
74311
74312 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74313
74314         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
74315         (getgroups): First arg is int, not size_t.
74316         Don't let 'free' mangle errno.
74317
74318 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74319
74320         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
74321
74322 2003-10-16  Karl Berry  <karl@gnu.org>
74323
74324         * config/config.{guess,sub}: update from config.
74325
74326 2003-10-16  Jim Meyering  <jim@meyering.net>
74327
74328         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74329         memcpy.
74330
74331 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74332
74333         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74334         (SIZE_MAX): Remove.
74335         (new_exclude, add_exclude_file): Initial size no longer needs to
74336         be a power of 2.
74337         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74338         our own address arithmetic overflow checking.
74339
74340         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74341         (fnmatch): Do not alloca more than 2000 wide characters;
74342         instead, use malloc for large buffers.
74343         Check for address arithmetic overflow, and return -1
74344         with errno set to ENOMEM in that case.
74345         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74346         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74347         instead, return -1.  Check for address arithmetic overflow.
74348
74349 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74350
74351         Handle invalid suffixes and overflow independently, so that
74352         callers can treat them independently as needed.  Fix some bugs in
74353         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74354         suffix for a human-readable blocksize.  The major caller-visible
74355         change is the addition of a new
74356         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74357         that both overflow and suffix chars were found.
74358
74359         * lib/human.c (humblock): Don't check separately for invalid suffix
74360         char; that is xstrtoumax's job (now that its bug is fixed).
74361         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74362         INTMAX_MAX]: New macros.
74363         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74364         TYPE_MAXIMUM): New macros.
74365         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74366         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74367         if overflow occurs, as it's what __strtol does and it's more useful
74368         in practice.
74369         (__xstrtol): If __strtol reports some error other than ERANGE,
74370         reflect it to the caller as LONGINT_INVALID.  If it reports
74371         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74372         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74373         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74374         value.
74375         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74376         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74377         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74378         [defined UINTMAX_MAX]: New macros.
74379
74380 2003-10-14  Bruno Haible  <bruno@clisp.org>
74381
74382         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74383
74384 2003-10-14  Bruno Haible  <bruno@clisp.org>
74385
74386         * m4/sig_atomic_t: New file, from GNU gettext.
74387         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74388
74389 2003-10-14  Bruno Haible  <bruno@clisp.org>
74390
74391         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74392         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74393         Also use volatile where needed.
74394
74395 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74396
74397         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74398         Change maintainer from Bruno Haible to 'all'.
74399
74400 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74401
74402         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74403
74404 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74405
74406         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74407         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74408         and define in terms of the other primitives.
74409         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74410         (SIZE_MAX): Define if not already defined.
74411         (array_size_overflow): New function.
74412         (xalloc_die): Abort instead of exiting if 'error' returns.
74413         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74414         (xmalloc, xrealloc): Use them.
74415         (xcalloc): Check for address arithmetic overflow.
74416         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74417         a bit faster than strcpy.
74418
74419 2003-10-10  Simon Josefsson  <jas@extundo.com>
74420
74421         * modules/argp (Depends-on): Add restrict and strcase.
74422
74423 2003-10-10  Simon Josefsson  <jas@extundo.com>
74424
74425         * m4/argp.m4: Add AC_C_INLINE.
74426
74427 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74428
74429         Merge getpass from libc, plus a few fixes.
74430
74431         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74432         Include <stdbool.h>.
74433         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74434         __fsetlocking to empty.
74435         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74436         do include <bits/libc-lock.h>.
74437         Do not include <fcntl.h>; not needed.
74438         [_LIBC]: Include <wchar.h>.
74439         (NOTCANCEL_MODE): New macro.
74440         (flockfile, funlockfile) [_LIBC]: New macros.
74441         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74442         [!_LIBC]: New macros.
74443         (call_fclose): New function.
74444         (getpass): Use it.  Save tty stream separately; this simplifies the
74445         code and makes it more reliable if stdin happens to equal stdout.
74446         Invoke __fsetlocking on tty.
74447         Handle thread cancellation if needed.
74448         Namespace cleanup (use __tcgetattr, __getline).
74449         Use bool for Booleans.
74450         [USE_IN_LIBIO]: Handle wide streams.
74451         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74452         stream might go where.
74453
74454         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74455         doesn't have to include <stdio.h> before us.
74456         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74457         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74458         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74459         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74460         if not declared, so that we can use getpass.c code from libc without
74461         rewriting it.
74462         (flockfile, ftrylockfile, funlockfile): New macros.
74463
74464 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74465
74466         * modules/getpass: Depend on stdbool.
74467
74468 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74469
74470         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74471
74472 2003-10-07  Karl Berry  <karl@gnu.org>
74473
74474         * config/config.{guess,sub}: update from config.
74475
74476 2003-10-06  Jim Meyering  <jim@meyering.net>
74477             Bruno Haible  <bruno@clisp.org>
74478
74479         This lets translators provide better translations for the
74480         "Written by ..." part of --version output.
74481         * lib/version-etc.h: Include stdarg.h.
74482         (version_etc_copyright): Declare as readonly.
74483         (version_etc): Make this function variadic with a NULL-terminated list
74484         of author name strings.
74485         (version_etc_va): New declaration.
74486         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74487         (version_etc_copyright): Declare as readonly.
74488         (version_etc_va): New function. Provide a different translatable string
74489         for each possible number of authors < 10. Abbreviate when there are 10
74490         authors or more.
74491         (version_etc): Make this function variadic. Call version_etc_va.
74492         Suggestion from Gary V. Vaughan.
74493
74494         * lib/long-options.h (parse_long_options): Change prototype: the
74495         authors string is moved to the end and becomes variadic.
74496         * lib/long-options.c: Include stdarg.h.
74497         (parse_long_options): Make this function variadic, too.
74498         Call version_etc_va, not version_etc.
74499
74500 2003-10-06  Bruno Haible  <bruno@clisp.org>
74501
74502         * modules/version-etc-2: Remove file.
74503         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74504
74505 2003-10-06  Bruno Haible  <bruno@clisp.org>
74506
74507         * modules/fatal-signal: New file.
74508         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74509
74510 2003-10-06  Bruno Haible  <bruno@clisp.org>
74511
74512         * m4/fatal-signal.m4: New file.
74513         * m4/signalblocking.m4: New file, from GNU gettext.
74514
74515 2003-10-06  Bruno Haible  <bruno@clisp.org>
74516
74517         * lib/version-etc-2.h: Remove file.
74518         * lib/version-etc-2.c: Remove file.
74519
74520 2003-10-06  Bruno Haible  <bruno@clisp.org>
74521
74522         * lib/fatal-signal.h: New file, from GNU gettext.
74523         * lib/fatal-signal.c: New file, from GNU gettext.
74524
74525 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74526
74527         * README: Rework advice for preventing empty .o files.
74528         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74529         not <sys/types.h>.
74530
74531 2003-10-04  Karl Berry  <karl@gnu.org>
74532
74533         * lib/argp*: update from libc.
74534
74535 2003-10-04  Karl Berry  <karl@gnu.org>
74536
74537         * config/config.{guess,sub}: update from config.
74538
74539 2003-10-02  Bruno Haible  <bruno@clisp.org>
74540
74541         * modules/lchown (Include): Add lchown.h.
74542         * modules/time_r (Include): Use "..." syntax.
74543         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74544
74545 2003-10-01  Simon Josefsson  <jas@extundo.com>
74546
74547         * MODULES.html.sh (func_all_modules): Move gethostname from section
74548         'based on' to section 'lacking' POSIX:2001.
74549
74550 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74551
74552         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74553         to output mode on the same stream.
74554
74555 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74556
74557         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74558         Fix arg typo in previous patch.
74559
74560 2003-09-28  Jim Meyering  <jim@meyering.net>
74561
74562         * lib/error.c: Correct cpp indentation.
74563
74564 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74565
74566         * modules/free: New file.
74567
74568 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74569
74570         * m4/free.m4: New file.
74571
74572 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74573
74574         * lib/minmax.h (MIN, MAX)
74575         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74576         Omit the special code that used __typeof__, since we worry that
74577         it could be more trouble than it's worth.  See:
74578         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74579         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74580
74581         * lib/free.c: New file.
74582
74583 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74584
74585         Trivial fixes to Makefile.am parts of module listings.
74586         * modules/strstr: Append strstr.h to lib_SOURCES.
74587         * modules/strcase: Likewise, for strcase.h.
74588
74589 2003-09-27  Karl Berry  <karl@gnu.org>
74590
74591         * config/mkinstalldirs: update from automake.
74592
74593 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74594
74595         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74596         (error_tail): Do not loop, reallocating temporary buffer, since
74597         the output cannot contain more wide characters than the input
74598         contains bytes, the size must be big enough already.  This avoids
74599         one potential size overflow calculation.  Check for size overflow
74600         when calculating temporary buffer size.  Free temporary buffer
74601         when done, if it was allocated with malloc; this plugs a memory
74602         leak.  Remove casts from void * to pointers, that are no longer
74603         needed now that we're assuming C89 or better.
74604
74605         Merge error changes from glibc.
74606
74607         * lib/error.c, error.h: Update copyright notice header to match glibc.
74608         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74609         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74610         Disable cancellation while printing error.
74611         * lib/error.h: Prepend __ to parameter names.
74612
74613 2003-09-26  Jim Meyering  <jim@meyering.net>
74614
74615         * lib/error.c (error_tail): Move some declarations
74616         into inner scope where the local variables are used.
74617
74618 2003-09-26  Bruno Haible  <bruno@clisp.org>
74619
74620         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74621         stpncpy().
74622         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74623
74624 2003-09-26  Bruno Haible  <bruno@clisp.org>
74625
74626         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74627         (stpncpy): Define as alias for gnu_stpncpy.
74628         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74629
74630 2003-09-25  Simon Josefsson  <jas@extundo.com>
74631
74632         * lib/xgetdomainname.h: New file.
74633         * lib/xgetdomainname.c: New file.
74634
74635 2003-09-25  Simon Josefsson  <jas@extundo.com>
74636             Bruno Haible  <bruno@clisp.org>
74637
74638         * modules/getdomainname: New file.
74639         * modules/xgetdomainname: New file.
74640         * MODULES.html.sh (func_all_modules): Add getdomainname,
74641         xgetdomainname.
74642
74643 2003-09-25  Simon Josefsson  <jas@extundo.com>
74644             Bruno Haible  <bruno@clisp.org>
74645
74646         * m4/getdomainname.m4: New file.
74647
74648 2003-09-25  Simon Josefsson  <jas@extundo.com>
74649             Bruno Haible  <bruno@clisp.org>
74650
74651         * lib/getdomainname.h: New file.
74652         * lib/getdomainname.c: New file.
74653
74654 2003-09-25  Karl Berry  <karl@gnu.org>
74655
74656         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74657
74658 2003-09-25  Karl Berry  <karl@gnu.org>
74659
74660         * config/install-sh: update from automake.
74661
74662 2003-09-25  Bruno Haible  <bruno@clisp.org>
74663
74664         * modules/version-etc-2: New file, from modules/version-etc with
74665         modifications.
74666         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74667
74668 2003-09-25  Bruno Haible  <bruno@clisp.org>
74669
74670         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74671         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74672
74673 2003-09-24  Simon Josefsson  <jas@extundo.com>
74674
74675         * modules/xgethostname: Add xgethostname.h.
74676
74677 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74678
74679         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74680         the buffer associated with the argument.  Bug reported by
74681         Simon Josefsson.
74682
74683 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74684
74685         * README: Document assumptions that 'int' is at least 32 bits
74686         wide, that integer arithmetic is 2's complement without overflow,
74687         that there are no holes in integer values, that adding sizes of
74688         two nonoverlapping objects can't overflow, and that all-bits-zero
74689         yields scalar zero.  Fix spelling and capitalization typos.
74690
74691 2003-09-19  Karl Berry  <karl@gnu.org>
74692
74693         * lib/argp.h: update from libc.
74694
74695 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74696
74697         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74698         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74699         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74700
74701 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74702
74703         * gnulib-tool: Use "test -h", not "test -L", for portability
74704         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74705         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74706         (sed_extract_prog): Issue s commands one-by-one, rather than
74707         using \| in one s command.
74708
74709 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74710
74711         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74712         input error, instead of returning NULL the next time we are called
74713         (and therefore losing track of errno).
74714
74715 2003-09-16  Bruno Haible  <bruno@clisp.org>
74716
74717         * gnulib-tool (func_create_testdir): Warn about duplicated
74718         dependencies.
74719
74720 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74721
74722         * modules/argmatch, modules/fatal, modules/obstack,
74723         modules/xalloc, modules/xgethostname: Sort dependencies by
74724         importance, not alphabetically.
74725
74726 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74727
74728         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74729         fails, so that the caller gets the proper errno.
74730
74731         * lib/readutmp.c (read_utmp): Likewise.
74732         Check for fstat error.  Close stream and free storage
74733         when failing.
74734
74735 2003-09-14  Karl Berry  <karl@gnu.org>
74736
74737         * config/srclist.txt (strdup.c): disable for c89 changes.
74738
74739 2003-09-14  Jim Meyering  <jim@meyering.net>
74740
74741         * lib/getloadavg.c: Correct cpp indentation.
74742         * lib/strdup.c: Likewise.
74743         * lib/vasnprintf.c: Likewise.
74744
74745 2003-09-14  Bruno Haible  <bruno@clisp.org>
74746
74747         * modules/fwriteerror: New file.
74748         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74749
74750 2003-09-14  Bruno Haible  <bruno@clisp.org>
74751
74752         * lib/fwriteerror.h: New file.
74753         * lib/fwriteerror.c: New file.
74754
74755 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74756
74757         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74758         modules/xgethostname, modules/xalloc: Depend on exit.
74759
74760 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74761
74762         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74763
74764         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74765         and AC_MINIX, too, so that their extensions are available.
74766
74767         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74768         This macro has been superseded by gl_BACKUPFILE.
74769
74770         More patches to assume C89 or better.
74771
74772         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74773
74774         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74775         unconditionally.
74776         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74777         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74778         Include <string.h>, <stdlib.h> unconditionally.
74779         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74780         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74781         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74782         headers or for string.h.
74783         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74784         or strtoul.
74785
74786         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74787         headers.
74788         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74789         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74790         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74791         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74792         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74793         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74794         memcpy, memset.
74795         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74796         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74797         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74798         strtol.
74799         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74800         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74801         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74802         strtoul.
74803
74804 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74805
74806         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74807         * lib/obstack.c [!defined _LIBC]: Likewise.
74808         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74809         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74810         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74811
74812         More changes to assume C89 or better.
74813
74814         * lib/error.c (error_tail): Assume vprintf.
74815
74816         * lib/argmatch.c (getenv): Remove decl.
74817         * lib/progreloc.c (get_full_program_name): Define via prototype.
74818         * lib/setenv.c (clearenv): Likewise.
74819         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74820         needed.
74821         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74822         (malloc, memcpy): Remove decls.
74823         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74824         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74825         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74826         (memcpy): Remove macro.
74827         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74828         (__P): Remove.  All uses removed.
74829         (PTR): Remove.  All uses changed to void *.
74830         (CHAR_BIT, NULL): Remove.
74831         (spaces, zeros, memset_space, memset_zero)
74832         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74833         Remove.
74834         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74835         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74836         Define with prototype.
74837         Remove now-unnecessary prototype decl.
74838         (extra_args_spec): Assume ANSI C.  All uses changed.
74839         (extra_args_spec_iso): Remove.
74840         (my_strftime, emacs_strftimeu): Define via prototype.
74841         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74842         unconditionally.
74843         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74844         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74845         (strtoul, strtol): Remove decls.
74846         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74847         LONG_MAX): Remove.
74848         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74849         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74850         (LOCALE_PARAM_PROTO): New macro.
74851         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74852         (INTERNAL (strtol), strtol): Define with a prototype.
74853         (PARAMS): Remove.  All uses removed.
74854         * lib/tempname.c: Include <string.h> unconditionally.
74855         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74856         * lib/xgethostname.c (main): Define with a prototype.
74857         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74858         Include <stdlib.h> unconditionally.
74859         (calloc, malloc, realloc, free): Remove decls.
74860         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74861         Include <stdlib.h> unconditionally.  Sort include file names.
74862         (strtod): Remove.
74863         (xstrtod): Define with a prototype.
74864         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74865         (strtol, strtoul): Remove decls.
74866
74867 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74868
74869         More patches to assume C89 or better.
74870         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74871         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74872         string.h, memchr, STDC_HEADERS.
74873
74874 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74875
74876         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74877         Include <stdlib.h>, <string.h> unconditionally.
74878         Remove now-unnecessary cast to char *.
74879         * lib/strnlen.c: Include <string.h> unconditionally.
74880         * lib/yesno.c (yesno): Define with a prototype.
74881
74882 2003-09-11  Bruno Haible  <bruno@clisp.org>
74883
74884         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74885
74886 2003-09-10  Jim Meyering  <jim@meyering.net>
74887
74888         * lib/error.c: Correct indentation of cpp directives.
74889
74890 2003-09-10  Bruno Haible  <bruno@clisp.org>
74891
74892         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74893         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74894         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74895         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74896         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74897         <stdlib.h> and <string.h> checks.
74898         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74899         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74900
74901 2003-09-10  Bruno Haible  <bruno@clisp.org>
74902
74903         * lib/strcspn.c: Include <string.h> unconditionally.
74904         * lib/strpbrk.c: Include <string.h> unconditionally.
74905         * lib/strstr.c: Include <string.h> unconditionally.
74906         * lib/unicodeio.c: Include <string.h> unconditionally.
74907         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74908         * lib/unsetenv.c: Likewise.
74909         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74910         * lib/yesno.c: Include <stdlib.h> unconditionally.
74911         (rpmatch): Add prototype.
74912
74913 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74914
74915         More patches to assume C89 or better.
74916         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74917         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74918         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74919         or for string.h.
74920         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74921         stdlib.h.
74922         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74923         C headers.
74924         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74925         string.h.
74926         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74927         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74928         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74929         or for string.h.
74930         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74931         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74932         C headers.
74933         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74934         memcpy.
74935         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74936         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74937         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74938         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74939         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74940         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74941         string.h, free.
74942         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74943         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74944         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74945         C headers, or for string.h.
74946         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74947         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74948         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74949         headers, memory.h, stdlib.h, string.h, strings.h.
74950         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74951         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74952         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74953         strchr.
74954         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74955         headers, memory.h, string.h.
74956         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74957         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74958         free.
74959         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74960         headers.
74961         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74962         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74963         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74964         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74965         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74966
74967 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74968
74969         More K&R removal.
74970
74971         * lib/acosl.c (main): Use a prototype.
74972         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74973         tanl.c: Likewise.
74974
74975         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74976
74977         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74978         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74979         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74980         with a prototype.
74981         * lib/getopt.c (const): Remove macro.
74982         Include <string.h> unconditionally.
74983         (my_index): Remove; all uses changed to strchr.
74984         (strlen): Remove decl.
74985         (exchange): Remove forward decl; no longer needed.
74986         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74987         Define with prototype.
74988         * lib/getopt1.c (const): Remove macro.
74989         (getopt_long, getopt_long_only, main): Define with prototype.
74990
74991         * lib/getugroups.c: Include <string.h> unconditionally.
74992
74993         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74994         (getusershell, setusershell, endusershell, readname, main):
74995         Define with prototypes.
74996
74997         * lib/group-member.c: Include group-member.h first.
74998         Include <stdlib.h> unconditionally.
74999
75000         * lib/hard-locale.c: Include hard-locale.h first.
75001         Include <stdlib.h>, <string.h> unconditionally.
75002
75003         * lib/hash.c (free, malloc): Remove decls.
75004         Include <stdlib.h> unconditionally.
75005
75006         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
75007         (getenv): Do not declare.
75008
75009         * lib/idcache.c: Include <string.h> unconditionally.
75010
75011         * lib/long-options.c: Include long-options.h first, to test interface.
75012         Include <stdlib.h> unconditionally.
75013
75014         * lib/makepath.c: Include makepath.h first, to test interface.
75015         Include <stdlib.h> and <string.h> unconditionally.
75016
75017         * lib/linebuffer.c: Include <stdlib.h>.
75018         (free): Remove decl.
75019
75020         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
75021         stddef.h. rpl_malloc returns void *, not char *.
75022         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
75023         prototype.
75024
75025         * lib/md5.h: Include <limits.h> unconditionally.
75026         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
75027         (__P): Remove; all uses removed.
75028         * lib/md5.c: Include "md5.h" first.
75029         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
75030         md5_buffer, md5_process_bytes, md5_process_block):
75031         Define with prototypes.
75032         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
75033         * lib/sha.c: Include "sha.h" first.
75034         Include <stdlib.h>, <string.h> unconditionally.
75035
75036         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
75037         * lib/memcmp.c (__ptr_t): Likewise.
75038         * lib/memrchr.c (__ptr_t): Likewise.
75039         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
75040         Include <string.h> unconditionally.
75041         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
75042         * lib/memchr.c: Include <stdlib.h> unconditionally.
75043         * lib/memchr.c (LONG_MAX): Remove.
75044         * lib/memrchr.c (LONG_MAX): Likewise.
75045         * lib/memchr.c (__memchr): Define via a prototype.
75046         * lib/memrchr.c (__memrchr): Likewise.
75047         * lib/memcmp.c (__P): Remove, and remove all uses.
75048         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
75049         Remove forward decls; no longer needed.
75050         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
75051         Use types required by C89 in prototype.
75052
75053         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
75054         * lib/savedir.c: Likewise.
75055         * lib/mkdir.c (free): Remove decl.
75056         * lib/rmdir.c (rmdir): Define with a prototype.
75057         * lib/savedir.c: Include savedir.h first, to test interface.
75058
75059         * lib/mktime.c (STDC_HEADERS): Remove.
75060         Include <stdlib.h>, <string.h> unconditionally.
75061
75062         * lib/modechange.c: Include <stdlib.h> unconditionally.
75063         (malloc): Remove decl.
75064
75065         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
75066         (free): Remove decl.
75067
75068         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
75069         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
75070         (This type really should be intptr_t, but that's a C99ism.)
75071         (_obstack_memcpy): Remove: all uses changed to memcpy.
75072         Include <string.h> unconditionally.
75073         (struct obstack): Assume __STDC__ for types of members
75074         chunkfun, freefun, extra_arg.
75075         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
75076         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
75077         obstack_begin, obstack_specify_allocation,
75078         obstack_specify_allocation_with_arg, obstack_chunkfun,
75079         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
75080         Remove unprototyped decls and the macros that use them.
75081         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
75082         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
75083         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
75084         (defined __STDC__ && __STDC__)]:
75085         Remove nonprototyped code.
75086         Include <stdlib.h> unconditionally.
75087         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
75088         _obstack_allocated_p, _obstack_free, obstack_free,
75089         _obstack_memory_used, print_and_abort):
75090         Define using prototypes.
75091         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
75092         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
75093         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
75094         obstack_next_free, obstack_object_size, obstack_room) [0]:
75095         Remove unused, unprototyped code.
75096
75097         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
75098
75099         * lib/physmem.c (physmem_total, physmem_available, main): Define
75100         with prototypes.
75101
75102         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
75103         (main): Define with a prototype.
75104
75105         * lib/posixver.c (getenv): Remove decl.
75106
75107         * lib/putenv.c (malloc): Returns void *, not char *.
75108         Include <string.h> unconditionally.
75109         (strchr, memcpy, NULL): Do not define.
75110
75111         * lib/readtokens.c: Include readtokens.h first, to test interface.
75112         Include <stdlib.h>, <string.h> unconditionally.
75113         (init_tokenbuffer): Define with a prototype.
75114
75115         * lib/regex.c (PARAMS): Remove.  All uses removed.
75116         All uses of _RE_ARGS removed, too.
75117         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75118         unconditionally.
75119         (bzero): Assume memset exists.
75120         (memcmp, memcpy, NULL): Remove.
75121         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
75122         char, or assignments to local vars of type signed char.
75123         (init_syntax_once, PREFIX(extract_number_and_incr),
75124         PREFIX(print_partial_compiled_pattern),
75125         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
75126         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
75127         PREFIX(regex_grow_registers), PREFIX(regex_compile),
75128         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
75129         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
75130         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
75131         wcs_compile_range, byte_compile_range, truncate_wchar,
75132         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
75133         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
75134         count_mbs_length, wcs_re_match_2_internal,
75135         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
75136         PREFIX(alt_match_null_string_p),
75137         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
75138         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
75139         regfree, PREFIX(extract_number)): Define with prototype.  Remove
75140         now-unnecessary declaration, if any.
75141         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
75142         regcomp, regexec):
75143         Remove now-unnecessary casts among pointer types.
75144         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
75145
75146         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
75147         (free): Remove decl.
75148
75149         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
75150
75151         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
75152         (free): Remove decl.
75153
75154         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
75155         * lib/xgetcwd.c: Likewise.
75156
75157         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
75158         (free): Remove decl.
75159
75160         * lib/strchrnul.c (strchrnul): Define with a prototype.
75161         Fix bug: c_in was not converted to char before searching.
75162
75163         The following changes are not K&R related:
75164
75165         * lib/group-member.h: Include <sys/types.h>, so that this file is
75166         self-contained.
75167         * lib/makepath.h: Likewise.
75168
75169         * lib/getusershell.c (readname, default_index, line_size, readname):
75170         Use size_t, not int, for sizes.
75171         (readname): If the size overflows, report an error instead of
75172         looping forever.
75173
75174 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75175
75176         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
75177         libc.
75178
75179 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75180
75181         * README: New section: portability guidelines.
75182
75183 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75184
75185         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
75186         C89 spec.
75187
75188 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75189
75190         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
75191
75192 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75193
75194         Assume C89 or better; remove K&R cruft.
75195         A few of these changes were first proposed by Derek Robert Price
75196         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
75197
75198         * lib/addext.c: Include <string.h> unconditionally.
75199         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
75200         Don't declare getenv or malloc.
75201
75202         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
75203         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
75204         (NULL): Remove.
75205         (find_stack_direction, alloca): Use prototypes.
75206
75207         * lib/atexit.c (atexit): Define using a prototype.
75208
75209         * lib/basename.c, dirname.c, stripslash.c:
75210         Include <string.h> unconditionally.
75211
75212         * lib/bcopy.c: Include <stddef.h>.
75213         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
75214
75215         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
75216
75217         * lib/error.h (error, error_at_line, error_print_progname)
75218         [! (defined (__STDC__) && __STDC__)]: Remove decls.
75219         * lib/error.c: Include error.h first, to check interface.
75220         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75221         (VA_START): Remove; all uses changeed to va_start.
75222         (exit, strerror): Remove decls.
75223         (error_print_progname): Prototype uncondionally.
75224         Don't include <errno.h>; no longer needed.
75225         (private_strerror): Remove.
75226         (error_tail): Always define.
75227         (error, error_at_line): Assume C89 or better; always use prototypes.
75228         * lib/fatal.c: Include "fatal.h" first, to test interface.
75229         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75230         (VA_START): Remove; all uses changed to va_start.
75231         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
75232         this case.
75233         (exit): Remove decl.
75234         (fatal): Prototype unconditionally.  Assume va_start works.
75235         Abort at end, to pacify gcc.
75236
75237         * lib/euidaccess.c (main): Define with a prototype.
75238
75239         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
75240
75241         * lib/exitfail.c: Include <stdlib.h> unconditionally.
75242
75243         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
75244         prototypes.
75245         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
75246         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
75247         (getenv): Remove decl.
75248         (fnmatch): Define using a prototype.
75249         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
75250         (FCT): Define using a prototype.
75251
75252         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
75253
75254         * lib/gethostname.c: Include <stddef.h>.
75255         (gethostname): Define with prototype.  Length is size_t, not int.
75256
75257 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75258
75259         Assume C89 or better; remove K&R cruft.
75260         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
75261         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
75262         string.h, getenv, malloc.
75263         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
75264         headers.
75265         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
75266         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
75267         do not check for strerror.
75268         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
75269         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
75270         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
75271         do not check for doprnt or vprintf.
75272         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
75273         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
75274
75275 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75276
75277         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
75278         getversion.c should have been removed then, but was accidentally
75279         preserved.
75280
75281         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
75282         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
75283
75284 2003-09-08  Karl Berry  <karl@gnu.org>
75285
75286         * config/config.sub, config.guess, srclistvars.sh: update from savannah
75287                 config, forget about prep.
75288
75289         * config/depcomp, missing: update from automake.
75290
75291 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75292
75293         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
75294         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75295
75296 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75297
75298         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
75299         copy_tm_result.  Bug reported by Simon Josefsson in
75300         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75301
75302 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75303
75304         * m4/time_r.m4: New file.
75305         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
75306         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
75307         is. Check for timegm declaration.
75308         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
75309         Do not check for gmtime_r.
75310         Replace mktime if __mktime_internal does not exist and if mktime
75311         hasn't been replaced already.
75312
75313 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75314
75315         * lib/time_r.c, lib/time_r.h: New files.
75316
75317         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
75318         __localtime_r.
75319         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
75320         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
75321
75322         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
75323         __gmtime_r.
75324         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
75325         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
75326         Include <time_r.h>.
75327
75328         * lib/timegm.c: Switch to glibc implementation, with the following
75329         changes:
75330         [defined HAVE_CONFIG_H]: Include <config.h>.
75331         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75332         (__mktime_internal) [!defined _LIBC]: New decl.
75333         (__gmtime_r) [!defined _LIBC]: New macro and function.
75334         (timegm): Use a prototype, since gnulib assumes C89.
75335         Do not bother declaring tmp to be const, as it's not really usefu.
75336         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75337         (timegm): Declare only if HAVE_DECL_TIMEGM.
75338
75339 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75340
75341         * MODULES.html.sh (func_all_modules): Add time_r.
75342         * modules/time_r: New file.
75343         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75344         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75345
75346 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75347
75348         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75349         Bug reported by Lute Kamstra in
75350         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75351
75352         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75353         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75354         course with correspondingly smaller numbers for tomorrow and
75355         yesterday.  From Tadayoshi Funaba.  Originally installed into
75356         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75357         coreutils merge?).
75358
75359 2003-08-31  Simon Josefsson  <jas@extundo.com>
75360
75361         * modules/timegm: New file.
75362         * MODULES.html.sh (func_all_modules): Add timegm.
75363
75364 2003-08-31  Simon Josefsson  <jas@extundo.com>
75365
75366         * m4/timegm.m4: New file.
75367
75368 2003-08-31  Simon Josefsson  <jas@extundo.com>
75369
75370         * lib/timegm.h: New file.
75371         * lib/timegm.c: New file.  Based on
75372         wget-1.8.2/src/http.c:mktime_from_utc.
75373
75374 2003-08-31  Karl Berry  <karl@gnu.org>
75375
75376         * lib/argp.h: update from libc.
75377
75378 2003-08-28  Bruno Haible  <bruno@clisp.org>
75379
75380         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75381         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75382         followed by '#define fnmatch fnmatch_posix' gives an error.
75383
75384 2003-08-28  Bruno Haible  <bruno@clisp.org>
75385
75386         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75387         warning on QNX, which defines O_BINARY to 000000.
75388
75389 2003-08-27  Jim Meyering  <jim@meyering.net>
75390
75391         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75392         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75393         would fail after 32.  Reported by Danny Levinson.  Details here:
75394         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75395
75396 2003-08-24  Bruno Haible  <bruno@clisp.org>
75397
75398         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75399         MSVC7 <stdio.h> is included later.
75400
75401 2003-08-22  Simon Josefsson  <jas@extundo.com>
75402
75403         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75404
75405 2003-08-20  Karl Berry  <karl@gnu.org>
75406
75407         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75408
75409 2003-08-20  Bruno Haible  <bruno@clisp.org>
75410
75411         * modules/progname: New file.
75412         * MODULES.html.sh (func_all_modules): Add progname.
75413
75414 2003-08-20  Bruno Haible  <bruno@clisp.org>
75415
75416         * lib/progname.h: New file, from GNU gettext.
75417         * lib/progname.c: New file, from GNU gettext.
75418         * lib/progreloc.c: New file, from GNU gettext.
75419
75420 2003-08-19  Jim Meyering  <jim@meyering.net>
75421
75422         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75423         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75424
75425 2003-08-19  Bruno Haible  <bruno@clisp.org>
75426
75427         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75428         more.
75429
75430 2003-08-19  Bruno Haible  <bruno@clisp.org>
75431
75432         * lib/xstrdup.c: Assume <string.h> exists.
75433
75434 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75435
75436         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75437         in makefile rules.
75438
75439 2003-08-18  Jim Meyering  <jim@meyering.net>
75440
75441         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75442         * m4/lib-ld.m4: Likewise.
75443
75444 2003-08-18  Jim Meyering  <jim@meyering.net>
75445
75446         * lib/setenv.h: Indent nested cpp directive.
75447         * lib/vasnprintf.c: Remove trailing blanks.
75448
75449 2003-08-17  Simon Josefsson  <jas@extundo.com>
75450
75451         * modules/xstrndup: New file.
75452         * MODULES.html.sh (func_all_modules): Add xstrndup.
75453
75454 2003-08-17  Simon Josefsson  <jas@extundo.com>
75455
75456         * modules/argp: Fix autoconf macro name. Add more dependencies.
75457
75458 2003-08-17  Simon Josefsson  <jas@extundo.com>
75459
75460         * m4/xstrndup.m4: New file.
75461
75462 2003-08-17  Simon Josefsson  <jas@extundo.com>
75463
75464         * m4/argp.m4: New file.
75465
75466 2003-08-17  Simon Josefsson  <jas@extundo.com>
75467             Bruno Haible  <bruno@clisp.org>
75468
75469         * lib/xstrndup.h: New file.
75470         * lib/xstrndup.c: New file.
75471
75472 2003-08-17  Bruno Haible  <bruno@clisp.org>
75473
75474         * modules/strndup (Files, Include): Add lib/strndup.h.
75475
75476 2003-08-17  Bruno Haible  <bruno@clisp.org>
75477
75478         * modules/euidaccess (Files): Add lib/euidaccess.h.
75479
75480 2003-08-17  Bruno Haible  <bruno@clisp.org>
75481
75482         * lib/strndup.h: New file.
75483
75484 2003-08-17  Bruno Haible  <bruno@clisp.org>
75485
75486         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75487         like AC_GNU_SOURCE.
75488         * modules/extensions (configure.ac): Comment out the invocation of
75489         gl_USE_SYSTEM_EXTENSIONS.
75490
75491 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75492
75493         Merges from coreutils, etc.
75494         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75495         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75496         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75497         fixing a typo.
75498         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75499         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75500
75501 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75502
75503         Document merge from coreutils.
75504         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75505         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75506         * modules/utime: Add m4/utimes-null.m4.
75507
75508 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75509
75510         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75511         space, undoing this 2003-08-12 change:
75512         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75513
75514 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75515
75516         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75517         strtoul.c from libc, undoing this 2003-08-12 change:
75518         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75519
75520 2003-08-16  Jim Meyering  <jim@meyering.net>
75521
75522         Merges from coreutils.
75523         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75524         prefix.  Adjust cache variables similarly.  Create 500 rather than
75525         just 300 files, to exercise bug on Darwin6.5, too.
75526         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75527         $missing_dir.
75528         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75529         AM_SYS_POSIX_TERMIOS.
75530         Reported by mkc@mathdogs.com.
75531         Also change use of $am_cv_sys_posix_termios
75532         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75533         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75534         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75535         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75536         in /proc/mounts until it finds one with matching device number.  This
75537         is unnecessary when the FILE argument *is* a mount point.  No stat call
75538         is necessary in that case.  So, disable the statvfs-testing code on
75539         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75540         as RedHat bug# 84846.
75541         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75542         to 1MB, so as not to render systems with no stack size limit (e.g.,
75543         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75544         Include <unistd.h>.  On some systems,
75545         it is required for the definition of _SC_PAGESIZE.
75546
75547 2003-08-16  Jim Meyering  <jim@meyering.net>
75548
75549         Merge from coreutils.
75550         * lib/xstrtoimax.c: #else #if -> #elif.
75551         * lib/xstrtoumax.c: Likewise.
75552
75553 2003-08-16  Jim Meyering  <jim@meyering.net>
75554
75555         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75556         * m4/utimes.m4: Removed.
75557         * m4/utimes-null.m4: Renamed from utimes.m4.
75558
75559         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75560         to 1MB, so as not to render systems with no stack size limit (e.g.,
75561         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75562         Include <unistd.h>.  On some systems,
75563         it is required for the definition of _SC_PAGESIZE.
75564
75565 2003-08-16  Jim Meyering  <jim@meyering.net>
75566         and Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         Merges from coreutils, etc.
75569
75570         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75571         using the latest version from cvs.  This avoids problems with #line
75572         directives using a vendor (Sun) compiler.
75573         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75574         Don't set GETGROUPS_LIB here; now it's
75575         done via getgroups.m4's wrapper function.
75576         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75577         rather than just in sh-util/configure.in, so that the
75578         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75579         same.
75580         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75581         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75582         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75583         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75584         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75585         Remove code that is now done by the newly-required macros.
75586         Append $(EXEEXT) to DF_PROG.
75587         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75588         Do not invoke or require the following here,
75589         since prereq.m4 or some gnulib .m4 now does this for us:
75590         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75591         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75592         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75593         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75594         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75595         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75596         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75597         AC_FUNC_OBSTACK.
75598         Do not replace the following functions, as this is now the job
75599         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75600         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75601         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75602         atexit getpass, strdup, getpagesize.
75603         Replace 'raise'.
75604         Do not check for the following functions, as this is now the job
75605         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75606         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75607         setregid.
75608         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75609         Check for sys/sysctl.h.
75610         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75611         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75612         of checking for ssize_t ourselves.
75613
75614         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75615         Require every macro that gnulib/modules/* suggests for us.
75616         (jm_PREREQ_ADDEXT): New macro.
75617         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75618         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75619
75620         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75621         (gl_PHYSMEM): Use it.
75622         Also check for `table' function.
75623         Check for new headers and functions.
75624         Add check for sys/sysmp.h.
75625         With suggestions from Kaveh Ghazi.
75626         Ignore headers that are present but cannot be compiled.  This
75627         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75628         C 5.4.
75629
75630 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75631
75632         Document merge from coreutils.
75633         * modules/userspec: Depend on posixver.
75634         * modules/strftime: Depend on tzset.
75635
75636 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75637
75638         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75639         rather than tab, after '#' in shell-script copyright notices.
75640         Suggested by Bruno Haible.
75641
75642 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75643
75644         * config/srclist-update: Use three spaces, rather than tab, after '#'
75645         in shell-script copyright notices.  Suggested by Bruno Haible.
75646         Remove unnecessary parenthesization in regular expression.
75647
75648 2003-08-15  Jim Meyering  <jim@meyering.net>
75649
75650         Merge from coreutils.
75651         * lib/xgethostname.c: Include <stdlib.h>.
75652         (xghostname): Don't exit for anything other than memory-related
75653         failure; just return NULL.
75654         * lib/userspec.c: Include "posixver.h".
75655         (parse_user_spec): Accept `.' as a separator only
75656         in pre-POSIX-200112 mode.
75657         * lib/strtoimax.c: Use #elif rather than #else #if.
75658         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75659         Remove function, now that we can rely on a working tzset function.
75660         [!_LIBC]: Ensure that the required autoconf test has been run.
75661         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75662         Use underlying_strftime for %r.
75663         * lib/sha.c: Merge in some clean-up and optimization changes from
75664         glibc.
75665         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75666         Ensure that it is a multiple of 64.
75667         Rearrange loop exit tests so as to avoid performing an
75668         additional fread after encountering an error or EOF.
75669         * lib/realloc.c: Update copyright date.
75670
75671 2003-08-15  Jim Meyering  <jim@meyering.net>
75672         and Paul Eggert  <eggert@twinsun.com>
75673
75674         Merge from coreutils.
75675         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75676         member but strut utmpx does not.  Needed for AIX 4.3.3.
75677         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75678
75679 2003-08-15  Jim Meyering  <jim@meyering.net>
75680         and Paul Eggert  <eggert@cs.ucla.edu>
75681
75682         Merges from coreutils, etc.
75683         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75684         Require gl_FUNC_TZSET_CLOBBER.
75685         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75686         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75687         members.
75688
75689 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75690
75691         Help the merge from coreutils.
75692         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75693         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75694         * m4/tzset.m4: Use it too.
75695
75696 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75697
75698         * modules/tzset: New file.
75699
75700 2003-08-14  Jim Meyering  <jim@meyering.net>
75701
75702         Merges from coreutils.
75703         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75704         variable names, rather than @FNMATCH_H@.
75705         * modules/alloca: Likewise for $(ALLOCA_H).
75706
75707         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75708         the three copies of the literal target, `fnmatch.h'.
75709         * modules/alloca (alloca.h): Likewise.
75710
75711 2003-08-14  Jim Meyering  <jim@meyering.net>
75712
75713         Merge from coreutils.
75714         * m4/tzset.m4: New file.
75715         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75716         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75717         otherwise, AIX 5.1 systems would end up using the latter.
75718         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75719         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75720         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75721         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75722
75723 2003-08-14  Jim Meyering  <jim@meyering.net>
75724
75725         Merge from coreutils.
75726         * lib/obstack.h: Whitespace changes.
75727         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75728         and xcalloc return values.
75729         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75730         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75731         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75732         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75733         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75734         error from mntctl.
75735         Use mntctl's return value to drive the entry-processing loop, since
75736         we can't rely on the value of the vmt_length member in the last
75737         entry.  On some systems doing so could result in exhausting
75738         virtual memory.  Based in part on a patch from Mike Jetzer.
75739
75740 2003-08-14  Jim Meyering  <jim@meyering.net>
75741         and Paul Eggert  <eggert@twinsun.com>
75742
75743         Merges from coreutils, plus other fixes.
75744         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75745         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75746         for credits and details.  Thanks to Kaveh Ghazi for helping
75747         to keep these files in sync.
75748         (ARRAY_SIZE): Define it.
75749         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75750         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75751         (memcasecmp): Don't assume size_t fits in unsigned int.
75752         Remove casts and duplicate code.
75753         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75754         (memcpy): Remove definition.
75755         Merge in some clean-up and optimization changes from glibc.
75756         [BLOCKSIZE]: Move definition to top of file.
75757         Ensure that it is a multiple of 64.
75758         Rearrange loop exit tests so as to avoid performing an
75759         additional fread after encountering an error or EOF.
75760         * lib/md5.h (md5_uintptr): Define.
75761         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75762         return to the initial working directory.  Preserve errno
75763         for caller.
75764         * lib/idcache.c: Include "xalloc.h".
75765         (xmalloc, xrealloc): Remove decls.
75766         (getuser): Remove casts no longer required in C89.
75767         * lib/human.c: Include stdio.h, for sprintf.
75768         * lib/group-member.c: Include "xalloc.h".
75769         (xmalloc, xrealloc): Remove decls.
75770         (get_group_info): Remove casts no longer required in C89.
75771         * lib/getusershell.c (readname): Remove casts no longer required in
75772         C89.
75773         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75774         * lib/getline.c: Whitespace fix, from coreutils.
75775
75776 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75777
75778         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75779         Check for isascii.
75780
75781         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75782         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75783         Undo previous (whitespace-only) change.
75784
75785 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75786
75787         * lib/exclude.c: Include <ctype.h>
75788         (IN_CTYPE_DOMAIN): New macro.
75789         (is_space): New fn.
75790         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75791         and empty lines.
75792
75793         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75794         Undo previous (whitespace-only) change.
75795
75796 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75797
75798         * config/srclist-update: Change update back to the old behavior,
75799         leaving whitespace alone.  Use one 'sed' command rather than a
75800         pipeline.
75801         (fixlicense): Now a variable, not a function.
75802         (remove_trailing_blanks): Remove.
75803         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75804         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75805         Undo previous (whitespace-only) change.
75806
75807 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75808
75809         Merge from coreutils.
75810         * modules/euidaccess: Add lib_SOURCES, include for new
75811         file euidaccess.h
75812
75813 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75814
75815         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75816         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75817         Normalize leading white space and remove trailing white space.
75818
75819         Merge from coreutils
75820         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75821
75822         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75823         0.12.1.  These files are now being upgraded automatically by
75824         ../config/srclist-update.
75825
75826 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75827
75828         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75829         Normalize leading white space and remove trailing white space.
75830         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75831         notice, as per ../config/srclist-update.
75832
75833         Merge from coreutils.
75834         * lib/euidaccess.h: New file.
75835         * lib/euidaccess.c: Include it.
75836         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75837         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75838         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75839
75840 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75841
75842         * config/srclist-update: Add copyright notice.
75843         (remove_id_lines, remove_trailing_blanks): New constants.
75844         (fixfile): Use them to normalize spacing a bit in copied files.
75845         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75846         Normalize leading white space and remove trailing white space.
75847
75848         * config/texinfo.tex: Sync with texinfo.
75849
75850         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75851         strtoul.c from libc, to merge coreutils whitespace changes.
75852
75853         * config/srclist.txt: Get the following m4 files from gettext:
75854         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75855         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75856         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75857         wint_t.m4.
75858
75859 2003-08-12  Karl Berry  <karl@gnu.org>
75860
75861         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75862         been made.
75863
75864 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75865
75866         * modules/gnu-source, m4/gnu-source.m4:
75867         Remove; we're assuming Autoconf 2.54 or later now.
75868         Suggested by Bruno Haible.
75869         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75870
75871 2003-08-11  Bruno Haible  <bruno@clisp.org>
75872
75873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75874
75875 2003-08-11  Bruno Haible  <bruno@clisp.org>
75876
75877         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75878         (vasnprintf): Use it instead of wcslen.
75879
75880 2003-08-11  Bruno Haible  <bruno@clisp.org>
75881
75882         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75883         value to ensure that _Bool promotes to int. Use #define for _Bool when
75884         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75885
75886 2003-08-10  Karl Berry  <karl@gnu.org>
75887
75888         * lib/regex.h: update from libc (whitespace fix).
75889
75890 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75891
75892         Merge some files from coreutils.  These changes were
75893         originally made by Jim Meyering.
75894         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75895         many older Unixes require this.
75896         * lib/alloca.c (alloca): Remove cast to argument of free;
75897         no longer needed in C89.
75898         * lib/alloca_.h, regex.h: Fix white space to match
75899         what GNU indent does.
75900
75901 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75902
75903         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75904         apparently Emacs's Unicode mode got confused before my 2003-08-05
75905         checkin.
75906
75907 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75908
75909         * m4/extensions.m4: New file.
75910         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75911         Require gl_USE_SYSTEM_EXTENSIONS.
75912         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75913         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75914
75915 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75916
75917         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75918         * modules/extensions, modules/gnu-source: New files.
75919         * modules/timespec, modules/unlocked-io: Depend on extensions.
75920
75921 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75922
75923         * modules/restrict: New file.
75924         * MODULES.html.sh (func_all_modules): Add restrict.
75925         * modules/regex: Depend on restrict.
75926
75927 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75928
75929         * m4/restrict.m4: New file.
75930         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75931
75932 2003-08-07  Bruno Haible  <bruno@clisp.org>
75933
75934         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75935         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75936
75937 2003-08-07  Bruno Haible  <bruno@clisp.org>
75938
75939         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75940         makes the module 'getndelim2' compatible with the module 'getline'.
75941
75942 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75943
75944         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75945         byte with "\201" to avoid glitches when editing that source file
75946         with multi-gnome-terminal.
75947
75948 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75949
75950         * lib/bumpalloc.h: Remove.
75951
75952 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75953
75954         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75955         * modules/bumpalloc: Remove.
75956
75957 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75958
75959         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75960         GNU coding style.
75961
75962         Merge from coreutils.
75963         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75964         1. From glibc.
75965         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75966         from Karl Berry, implemented by Jim Meyering.
75967         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75968         from Dmitry V. Levin.
75969         Remove anachronistic cast of xrealloc.
75970         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75971         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75972         type. Otherwise, it wouldn't compile with at least /bin/cc on
75973         ymp-cray-unicos9.0.2.X.
75974         Combine two mostly-identical uses of alloca into one.
75975         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75976
75977 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75978
75979         [From Emacs.]
75980
75981         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75982         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75983         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75984         obsolete NLIST_NAME_UNION.
75985         [__GNU__]: Undef BSD and FSCALE.
75986         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75987
75988 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75989
75990         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75991         an enum type, so that it's guaranteed to promote to int.  See:
75992         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75993
75994 2003-08-03  Karl Berry  <karl@gnu.org>
75995
75996         * config/depcomp: update from automake.
75997
75998 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75999
76000         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
76001         (strerror): Don't assume that a printable int fits in 14 bytes.
76002
76003 2003-07-31  Bruno Haible  <bruno@clisp.org>
76004
76005         * modules/getpass-gnu: New file.
76006         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
76007
76008 2003-07-31  Bruno Haible  <bruno@clisp.org>
76009
76010         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
76011
76012 2003-07-24  Karl Berry  <karl@gnu.org>
76013
76014         * config/missing: update from automake.
76015
76016 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
76017             Bruno Haible  <bruno@clisp.org>
76018
76019         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
76020         * lib/getline.c (getline, getdelim): Likewise.
76021         Remove _GNU_SOURCE define; now it's defined in config.h through
76022         m4/getline.m4.
76023
76024 2003-07-23  Karl Berry  <karl@gnu.org>
76025
76026         * config/config.sub: update from prep.
76027
76028 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76029
76030         * modules/xalloc (Depends-on): Add exitfail.
76031         * modules/xmemcoll: Likewise.
76032
76033 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76034
76035         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
76036         over-parenthesization in macros.
76037
76038         Sync with coreutils.
76039
76040         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
76041         required by C99.
76042
76043         Use `exit_failure' for xalloc and xmemcoll instead of their own
76044         private exit-failure variables.
76045         * lib/xalloc.h (xalloc_exit_failure): Remove.
76046         * lib/xmalloc.c: Likewise.  Include exitfail.h.
76047         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
76048         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
76049         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
76050         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
76051
76052 2003-07-20  Jim Meyering  <jim@meyering.net>
76053
76054         * modules/closeout (Depends-on): Add exitfail.
76055         Suggestion from Bruno Haible.
76056
76057 2003-07-19  Karl Berry  <karl@gnu.org>
76058
76059         * config/config.sub: update from prep.
76060
76061 2003-07-18  Paul Eggert  <eggert@twinsun.com>
76062
76063         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
76064         Remove.
76065         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
76066         to test that it can stand by itself.  Include "exitfail.h".
76067         Clients should set exit_failure instead.
76068         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
76069
76070 2003-07-18  Bruno Haible  <bruno@clisp.org>
76071
76072         * modules/getndelim2: New file.
76073         * modules/getline: Share files with module getndelim2.
76074         * modules/getnline: Depend on getndelim2 instead of sharing files with
76075         it. Add getnline.c to lib_SOURCES.
76076         * MODULES.html.sh (func_all_modules): Add getndelim2.
76077
76078 2003-07-18  Bruno Haible  <bruno@clisp.org>
76079
76080         * m4/getndelim2.m4: New file.
76081         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
76082         invoke gl_PREREQ_GETNDELIM2.
76083         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
76084         gl_PREREQ_GETNDELIM2.
76085         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
76086         gl_GETNDELIM2.
76087
76088 2003-07-18  Bruno Haible  <bruno@clisp.org>
76089
76090         * lib/getndelim2.h: New file.
76091         * lib/getndelim2.c: Make into a module of its own. Include config.h,
76092         getndelim2.h.
76093         (getndelim2): Make non-static. Change return type to ssize_t.
76094         * lib/getline.h: Change argument names.
76095         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
76096         * lib/getnline.c: Include getndelim2.h.
76097
76098 2003-07-18  Andreas Schwab  <schwab@suse.de>
76099
76100         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
76101
76102 2003-07-17  Karl Berry  <karl@gnu.org>
76103
76104         * config/config.sub: update from prep.
76105
76106 2003-07-17  Bruno Haible  <bruno@clisp.org>
76107
76108         * modules/getnline: New file.
76109         * modules/getline: Add lib/getndelim2.c to source file list.
76110         * MODULES.html.sh (func_all_modules): Add getnline.
76111
76112 2003-07-17  Bruno Haible  <bruno@clisp.org>
76113
76114         * m4/getnline.m4: New file.
76115
76116 2003-07-17  Bruno Haible  <bruno@clisp.org>
76117
76118         * m4/Makefile.am.in: Remove file.
76119         * m4/Makefile.am: Remove file.
76120         * m4/Makefile.in: Remove file.
76121
76122 2003-07-17  Bruno Haible  <bruno@clisp.org>
76123
76124         * lib/getnline.h: New file.
76125         * lib/getnline.c: New file.
76126         * lib/getndelim2.c: New file, extracted from getline.c.
76127         (getndelim2): Renamed from getdelim2, with added nmax argument.
76128         * lib/getline.c: Include getndelim2.c.
76129         (getdelim2): Moved out to getndelim2.c.
76130         (getline, getdelim): Update.
76131
76132 2003-07-17  Bruno Haible  <bruno@clisp.org>
76133
76134         * lib/Makefile.am: Remove file.
76135         * lib/Makefile.in: Remove file.
76136
76137 2003-07-17  Bruno Haible  <bruno@clisp.org>
76138
76139         * configure.in: Remove file.
76140         * Makefile.in: Remove file.
76141
76142 2003-07-17  Bruno Haible  <bruno@clisp.org>
76143
76144         * MODULES.html.sh: Put the </BODY> right before </HTML>.
76145
76146 2003-07-16  Karl Berry  <karl@gnu.org>
76147
76148         * config/srclist-update: was running fixlicense twice, which caused
76149                 texinfo.tex to be nullified for some reason.  Simplify,
76150                 $gplsrc is no longer needed as far as I can see?
76151
76152 2003-07-16  Jim Meyering  <jim@meyering.net>
76153
76154         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
76155
76156 2003-07-15  Paul Eggert  <eggert@twinsun.com>
76157
76158         * config/srclist.txt: Get the following files from gettext-runtime/intl
76159         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
76160         ref-del.sin.  From Bruno Haible.
76161         * config/srclist-update (fixfile): Change grep pattern again, since the
76162         previous fix didn't work (there was another trailing $).  Use
76163         '[$]' to escape the $s.
76164
76165 2003-07-15  Karl Berry  <karl@gnu.org>
76166
76167         * lib/vasnprintf.c: update from gettext.
76168
76169 2003-07-15  Karl Berry  <karl@gnu.org>
76170
76171         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
76172         gets expanded when surrounded by '$'.
76173
76174 2003-07-15  Jim Meyering  <jim@meyering.net>
76175
76176         * modules/save-cwd: Don't depend on error.  From Derek Price.
76177
76178 2003-07-15  Jim Meyering  <jim@meyering.net>
76179
76180         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
76181
76182 2003-07-14  Simon Josefsson  <jas@extundo.com>
76183
76184         * modules/mempcpy: New file.
76185         * MODULES.html.sh (func_all_modules): Add mempcpy.
76186
76187 2003-07-14  Simon Josefsson  <jas@extundo.com>
76188
76189         * m4/mempcpy.m4: New file.
76190
76191 2003-07-14  Simon Josefsson  <jas@extundo.com>
76192
76193         * lib/mempcpy.h: New file.
76194         * lib/mempcpy.c: New file.
76195
76196 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76197
76198         * modules/getdate, modules/posixtm: Depend on mktime.
76199
76200 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76201
76202         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
76203         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
76204         unicodeio.c, unicodeio.h, unlocked-io.h:
76205         Switch from LGPL to GPL.
76206
76207 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76208
76209         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
76210         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
76211         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
76212         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
76213         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
76214         updated automatically by ../config/srclist-update.  This changes
76215         their license from LPGL to GPL.
76216
76217 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76218
76219         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
76220         assumed to refer to the root of the most recent stable gettext version.
76221         * config/srclistvars.sh: Add defaults for eggert.
76222         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
76223         Match "This program" as well as "The program".  This is needed
76224         for gettext.
76225
76226 2003-07-14  Jim Meyering  <jim@meyering.net>
76227
76228         Don't emit diagnostics.  Let callers do that.
76229         * lib/save-cwd.c: Don't include "error.h".
76230         (save_cwd): Don't call error.  Ensure that errno is valid
76231         when returning nonzero.
76232
76233         * lib/save-cwd.h (restore_cwd): Update prototype.
76234         * lib/save-cwd.c (restore_cwd): Remove two parameters.
76235         Simplify.  Don't call error upon failure.  Let callers do that.
76236         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
76237         when auditing is enabled.  But don't bother updating the #if.
76238
76239 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
76240
76241         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
76242         it breaks C++ compilation.
76243         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
76244
76245 2003-07-10  Simon Josefsson  <jas@extundo.com>
76246
76247         * modules/strchrnul (Makefile.am): Add strchrnul.h.
76248
76249 2003-07-10  Jim Meyering  <jim@meyering.net>
76250
76251         * m4/clock_time.m4: Remove trailing blank.
76252         * m4/intmax_t.m4: Likewise.
76253
76254 2003-07-10  Jim Meyering  <jim@meyering.net>
76255
76256         * lib/vasnprintf.c: Remove trailing blanks.
76257         Make cpp indentation consistent.
76258
76259 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76260
76261         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
76262         posixver.c, strftime.c, strnlen.c, strverscmp.c:
76263         Switch from LGPL to GPL.
76264
76265 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76266
76267         * config/srclist.txt: Sort sublists.  Add
76268         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
76269         that differ from gnulib for one reason or another; we'd like this list
76270         to be smaller but for now let's document what we have.
76271
76272 2003-07-08  Paul Eggert  <eggert@twinsun.com>
76273
76274         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
76275         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
76276         and sweeter "eval x=$x".
76277         * config/srclist.txt: Get lib/argp* from glibc.
76278
76279 2003-07-07  Paul Eggert  <eggert@twinsun.com>
76280
76281         * lib/mktime.c: Fix some boundary cases and remove need for floating
76282         point.
76283
76284         Issue a compile-time diagnostic if time_t is floating point, or if
76285         two's complement arithmetic is not in effect, or if arithmetic
76286         right shift does not propagate the sign.  These assumptions were
76287         all in the original code but they weren't checked.
76288
76289         (TIME_T_MIDPOINT, verify): New macros.
76290         (__isleap): Remove; it has integer overflow problems.
76291         (leapyear): New function, without those problems.
76292         (ydhms_tm_diff): Remove; splitting into two parts.
76293         (ydhms_diff): New function, containing the arithmetic part of
76294         the old ydhms_tm_diff function.  Issue a compile-time
76295         diagnostic if we are not using C99 integer division.
76296         Avoid casts when possible.
76297         (guess_time_tm): New function, containing the checking part of
76298         the old ydhms_tm_diff function.  Return the new value, rather than
76299         the difference between it and the old.  Accept a new argument T
76300         so that *T specifies the old value.  Check for overflow in the result.
76301
76302         (__mktime_internal): Use a time_t offset, not a long int offset.
76303         This undoes the 2003-06-04 change, which is no longer needed now
76304         that we have better overflow checking.
76305         (localtime_offset): Likewise.
76306
76307         (__mktime_internal): Avoid harmful overflow on hosts where time_t
76308         and long are 64-bit but int is only 32-bit.
76309         (ydhms_diff): Use long int to store year1 and yday1.
76310         Issue a compile-time diagnostic if long int is not wide enough.
76311
76312         (__mktime_internal): Use long int to store adjusted year and yday.
76313         Use plain C rather than preprocessor commands, if that doesn't
76314         affect efficiency.
76315         Check for overflow (and try to repair) after each probe
76316         rather than checking only at the very end.  This avoids some bugs
76317         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
76318         does not equal GMT offset at maximum time).
76319         Use integer to check for overflow rather than floating point; this
76320         is more portable to non-IEEE hosts, and is a tad faster.
76321         When we detect that we are oscillating between two values,
76322         don't check whether tm_isdst has the requested value, since
76323         we already know the answer.  When tm_isdst has the wrong value,
76324         use a different heuristic to find the right one, based on the
76325         extreme values actually observed in practice in tz2003a,
76326         rather than the (overly optimistic) "previous 3 calendar quarters".
76327
76328         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76329         "T const" to accommodate glibc style.
76330         (check_result): Use less-confusing report format.  "long" -> "long int.
76331         (main): Likewise.
76332         Don't loop if the iteration overflows time_t.
76333         Allow a negative step in the iteration.
76334
76335 2003-07-06  Karl Berry  <karl@gnu.org>
76336
76337         * config/depcomp: update from automake.
76338         * config/config.sub: update from prep.
76339
76340 2003-07-03  Karl Berry  <karl@gnu.org>
76341
76342         * config/config.guess: update from prep.
76343
76344 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76345
76346         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76347         xreadlink.c now includes it unconditionally.
76348
76349 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76350
76351         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76352         having it depend on HAVE_SYS_TYPES_H.
76353
76354 2003-07-01  Bruno Haible  <bruno@clisp.org>
76355
76356         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76357         <sys/types.h> should be sufficient.
76358         Reported by Paul Eggert.
76359
76360 2003-06-26  Karl Berry  <karl@gnu.org>
76361
76362         * config/depcomp: update from automake.
76363
76364 2003-06-26  Bruno Haible  <bruno@clisp.org>
76365
76366         * modules/human: Depend on module stdbool.
76367
76368 2003-06-25  Bruno Haible  <bruno@clisp.org>
76369
76370         * modules/readlink: New file.
76371         * modules/xreadlink: Depend on it.
76372         * MODULES.html.sh (func_all_modules): Add readlink.
76373
76374 2003-06-25  Bruno Haible  <bruno@clisp.org>
76375
76376         * m4/readlink.m4: New file.
76377
76378 2003-06-25  Bruno Haible  <bruno@clisp.org>
76379
76380         * lib/readlink.c: New file.
76381
76382 2003-06-22  Karl Berry  <karl@gnu.org>
76383
76384         * config/srclist.txt: update mkinstalldirs from automake.
76385         * config/mkinstalldirs: update.
76386
76387 2003-06-22  Bruno Haible  <bruno@clisp.org>
76388
76389         Portability to mingw32.
76390         * m4/ssize_t.m4: New file, from GNU gettext.
76391         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76392         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76393
76394 2003-06-22  Bruno Haible  <bruno@clisp.org>
76395
76396         * modules/safe-read: Add m4/ssize_t.m4.
76397         * modules/xreadlink: Add m4/ssize_t.m4.
76398
76399 2003-06-20  Bruno Haible  <bruno@clisp.org>
76400
76401         Assume C89, so PARAMS isn't needed.
76402         * lib/unicodeio.h (PARAMS): Remove.
76403         * lib/unicodeio.c: Don't use PARAMS.
76404
76405 2003-06-18  Karl Berry  <karl@gnu.org>
76406
76407         * config/config.{guess,sub}: update from prep.
76408
76409 2003-06-18  Jim Meyering  <jim@meyering.net>
76410
76411         Merge changes from coreutils.
76412         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76413         Remove explicit declarations of xmalloc and realloc.
76414         Include xalloc.h.
76415         (read_utmp): Remove anachronistic cast of xmalloc.
76416
76417 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76418
76419         Assume C89, so PARAMS isn't needed.
76420         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76421         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76422         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76423         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76424         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76425         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76426         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76427         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76428         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76429         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76430         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76431         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76432         no longer needed. Anyway, config.h should always be included before any
76433         other file.
76434
76435 2003-06-11  Simon Josefsson  <jas@extundo.com>
76436
76437         * modules/sysexits: New file.
76438         * MODULES.html.sh (func_all_modules): Add sysexits.
76439
76440 2003-06-11  Simon Josefsson  <jas@extundo.com>
76441
76442         * lib/sysexit_.h: New file.
76443
76444 2003-06-11  Derek Price  <derek@ximbiot.com>
76445
76446         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76447         necessary.
76448
76449 2003-06-11  Bruno Haible  <bruno@clisp.org>
76450
76451         * m4/sysexits.m4: New file.
76452
76453 2003-06-10  Simon Josefsson  <jas@extundo.com>
76454
76455         * lib/argp.h: New file, from glibc.
76456         * lib/argp-ba.c: New file, from glibc.
76457         * lib/argp-eexst.c: New file, from glibc.
76458         * lib/argp-fmtstream.c: New file, from glibc.
76459         * lib/argp-fmtstream.h: New file, from glibc.
76460         * lib/argp-fs-xinl.c: New file, from glibc.
76461         * lib/argp-help.c: New file, from glibc.
76462         * lib/argp-namefrob.h: New file, from glibc.
76463         * lib/argp-parse.c: New file, from glibc.
76464         * lib/argp-pv.c: New file, from glibc.
76465         * lib/argp-pvh.c: New file, from glibc.
76466         * lib/argp-xinl.c: New file, from glibc.
76467
76468 2003-06-10  Simon Josefsson  <jas@extundo.com>
76469
76470         * modules/strchrnul: New file.
76471
76472 2003-06-10  Simon Josefsson  <jas@extundo.com>
76473
76474         * modules/argp: New file.
76475
76476 2003-06-10  Simon Josefsson  <jas@extundo.com>
76477
76478         * m4/strchrnul.m4: New file.
76479
76480 2003-06-10  Simon Josefsson  <jas@extundo.com>
76481
76482         * lib/strchrnul.h: New file.
76483         * lib/strchrnul.c: New file.
76484
76485 2003-06-10  Bruno Haible  <bruno@clisp.org>
76486
76487         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76488
76489 2003-06-07  Karl Berry  <karl@gnu.org>
76490
76491         * config/config.{guess,sub}: update from prep.
76492
76493 2003-06-07  Jim Meyering  <jim@meyering.net>
76494
76495         * modules/strtod: Use $(...) notation, not @...@ for
76496         AC_REPLACE'd variables.
76497         * modules/localcharset: Likewise.
76498
76499 2003-06-07  Jim Meyering  <jim@meyering.net>
76500
76501         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76502         in place of my name in the copyright comment.
76503         Remove definition and uses of __P.
76504
76505         From coreutils.
76506         * lib/stat.c: Don't declare xmalloc explicitly.
76507         Instead, include "xalloc.h".
76508         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76509         xrealloc, and xcalloc return values.
76510         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76511         Improve comment.
76512         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76513
76514 2003-06-07  Bruno Haible  <bruno@clisp.org>
76515
76516         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76517         avoid AC_CONFIG_LINKS.
76518         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76519         fnmatch.h, to avoid AC_CONFIG_LINKS.
76520         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76521
76522 2003-06-07  Bruno Haible  <bruno@clisp.org>
76523
76524         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76525         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76526         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76527         directory.
76528         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76529         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76530         directory.
76531
76532 2003-06-06  Jim Meyering  <jim@meyering.net>
76533
76534         Merge from coreutils.
76535         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76536         Consolidate declarations and initializations of *_base* locals.
76537
76538         Merge from coreutils.
76539         This avoids a core dump on systems without GNU putenv,
76540         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76541         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76542         (unsetenv): New static function, from GNU libc.
76543         (rpl_putenv): Use it.
76544
76545         * lib/modechange.c: Remove trailing blanks.
76546
76547         Merge from coreutils.
76548         * lib/fsusage.c: Remove declaration of statfs.
76549         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76550
76551         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76552
76553 2003-06-06  Jim Meyering  <jim@meyering.net>
76554
76555         * lib/stdbool_.h: Renamed from stdbool.h.in.
76556
76557 2003-06-06  Jim Meyering  <jim@meyering.net>
76558             Bruno Haible  <bruno@clisp.org>
76559
76560         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76561         Adjust Makefile.am snippet not to redirect directly to target.
76562         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76563
76564 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76565
76566         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76567         mismatch, look in future quarters as well as past.  This fixes a
76568         bug when processing fall-backwards gaps immediately after a long
76569         period of daylight-saving time.
76570
76571         * lib/mktime.c: Assume freestanding C89 or better.
76572         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76573         (__P): Remove; not used.
76574         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76575         (mktime, not_equal_tm, print_tm, check_result,
76576         main): Use prototypes.  Use const * where appropriate.
76577         (main): Fix typo in testing code that uncovered by above changes.
76578         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76579
76580 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76581
76582         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76583         locale.h, localeconv.  This merges changes from coreutils.
76584
76585         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76586         It can be removed after the next Autoconf is released.
76587         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76588         needed.
76589
76590 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76591
76592         * lib/mktime.c: Fix Debian bug 177940
76593         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76594         (localtime_offset): Now long int, not time_t, because we want it
76595         to be guaranteed to be signed.  All uses changed.
76596         (__mktime_internal): If overflow would occur when adding offset,
76597         don't add it.
76598
76599         Merge 'human' changes from coreutils.  Rewrite to support
76600         locale-specific notations like thousands separators.
76601         * lib/human.c: Simplify authorship notice.
76602         Include human.h immediately after config.h.
76603         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76604         <limits.h>: Do not include, since human.h does.
76605         (SIZE_MAX, UINTMAX_MAX): New macros.
76606         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76607         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76608         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76609         (power_letter): Renamed from suffixes.
76610         (generate_suffix_backwards): Remove.
76611         (adjust_value): Now takes int style (because of human.h changes)
76612         and long double value (for greater precision on some platforms).
76613         (group_number): New function.
76614         (human_readable): Use it.  Use integer options, not enum.
76615         Put the options before the sizes in the arg list.
76616         Support all the new options.
76617         The old human_readable function has been removed;
76618         use inttostr.h instead.
76619         (human_readable, default_block_size, humblock):
76620         Use uintmax_t, not int, for block sizes.
76621         (human_readable_inexact, block_size_types): Remove.
76622         (block_size_opts): New constant.
76623         (human_options): Renamed from human_block_size, with new signature
76624         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76625         * lib/human.h: Add copyright and authorship notice.
76626         Include <limits.h> and <stdbool.h> unconditionally.
76627         (PARAMS): Remove.  All uses removed.
76628         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76629         (enum human_inexact_style): Remove tag; now a nameless enum.
76630         (human_floor, human_ceiling, human_round_to_even): Now have
76631         values 2, 0, 1 rather than -1, 1, 0.
76632         (human_group_digits, human_suppress_point_zero, human_autoscale,
76633         human_base_1024, human_SI, human_B): New constants.
76634         (human_readable_inexact, human_block_size): Remove.
76635         (human_readable): Size args are now uintmax_t, not int.
76636         (human_options): New decl.
76637
76638         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76639         unnecessary now that we assume C89 or better.  This change
76640         imported from coreutils.
76641
76642         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76643         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76644         in the 2003-05-30 sync from glibc.
76645
76646         .h files should stand alone, but we shouldn't include <sys/types.h>
76647         if we can get away with just <stddef.h>.
76648
76649         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76650         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76651         rather than <sys/types.h>, as we merely need size_t.
76652         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76653         to get size_t.
76654         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76655         Include <stdio.h>, to get FILE.
76656         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76657         memcasecmp.h has included <stddef.h> and all we need is size_t.
76658         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76659         our interface, instead of including <sys/types.h>
76660
76661 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76662
76663         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76664         now, as glibc mktime is buggy on non-glibc systems.
76665
76666 2003-06-03  Karl Berry  <karl@gnu.org>
76667
76668         * config/config.sub: update from prep.
76669
76670 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76671
76672         [from coreutils]
76673         Fix some minor time-related bugs with POSIX time arguments.
76674         Some valid time stamps were being rejected (notably -1, and
76675         time stamps before 1900 on 64-bit hosts).  And some invalid
76676         time stamps were being accepted, e.g. September 31.
76677
76678         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76679         that we can return (time_t) -1 successfully.
76680         * lib/posixtm.c: Likewise.
76681         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76682         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76683         (t): Remove static var.
76684         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76685         of static var.  All uses changed.
76686         (year): Do not reject years before 1900; they can occur with
76687         64-bit time_t.
76688         (posix_time_parse): Do not check for out-of-range components;
76689         that is now the caller's responsibility, since our checks were
76690         only approximations.
76691         (posixtime): Use mktime to check for out-of-range components,
76692         since it knows them exactly.
76693         If mktime returns (time_t) -1, check whether an error actually occurred
76694         by invoking localtime on -1.
76695         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76696         posixtime failures better.
76697         Improve the test data (in comments only).
76698
76699 2003-06-02  Karl Berry  <karl@gnu.org>
76700
76701         * config/mkinstalldirs (version): new variable.
76702         (--version): new option.
76703         (usage): improve message.
76704
76705 2003-05-30  Karl Berry  <karl@gnu.org>
76706
76707         * lib/mktime.c: update from libc.
76708
76709 2003-05-30  Bruno Haible  <bruno@clisp.org>
76710
76711         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76712         * config/config.rpath: Upgrade to gettext-0.12.1.
76713
76714 2003-05-30  Bruno Haible  <bruno@clisp.org>
76715
76716         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76717         * m4/nls.m4: New file, from gettext-0.12.1.
76718         * m4/po.m4: New file, from gettext-0.12.1.
76719         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76720
76721 2003-05-30  Bruno Haible  <bruno@clisp.org>
76722
76723         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76724         * lib/localcharset.h: Likewise.
76725         * lib/localcharset.c: Likewise.
76726
76727 2003-05-29  Karl Berry  <karl@gnu.org>
76728
76729         * config/config.rpath: update from gettext.
76730
76731 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76732
76733         Assume the headers required for C89 freestanding compilers.
76734         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76735         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76736         * m4/human.m4 (gl_HUMAN): Likewise.
76737         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76738         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76739         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76740         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76741         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76742         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76743
76744 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76745
76746         Assume the headers required for C89 freestanding compilers.
76747         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76748         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76749         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76750         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76751         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76752         define, since <limits.h> is guaranteed to do that.
76753         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76754         * lib/exclude.c: Include <stdbool.h> unconditionally.
76755         * lib/tempname.c: Include <stddef.h> unconditionally.
76756         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76757         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76758         <stddef.h> does that.
76759         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76760         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76761         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76762         needed.
76763         * lib/xstrtol.c: Likewise.
76764         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76765         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76766
76767         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76768         warnings on some platforms.
76769
76770         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76771         arbitrarily.
76772
76773 2003-05-26  Jim Meyering  <jim@meyering.net>
76774
76775         Merge in a change from coreutils:
76776         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76777         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76778         that condition, rather than `-1' which is slightly misleading.
76779         Change the name of the cache variable to have the gl_ prefix.
76780         Prompted by a patch from Richard Dawe for DJGPP.
76781
76782 2003-05-24  Karl Berry  <karl@gnu.org>
76783
76784         * config/config.guess: update from prep.
76785
76786 2003-05-22  Karl Berry  <karl@gnu.org>
76787
76788         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76789
76790 2003-05-20  Karl Berry  <karl@gnu.org>
76791
76792         * config/config.guess: update from prep.
76793
76794 2003-05-18  Karl Berry  <karl@gnu.org>
76795
76796         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76797         might actually be set by the user.
76798
76799         * config/depcomp, install-sh, mdate-sh: update from automake.
76800
76801 2003-05-17  Bruno Haible  <bruno@clisp.org>
76802
76803         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76804         invalid expansion for AC_EGREP_CPP.
76805         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76806         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76807         Suggested by Akim Demaille <akim@epita.fr> in
76808         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76809
76810 2003-05-12  Jim Meyering  <jim@meyering.net>
76811
76812         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76813         the space-padded-by-default conversion specifiers, %e, %k, %l.
76814
76815 2003-05-12  Bruno Haible  <bruno@clisp.org>
76816
76817         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76818         the string is longer than 4 KB.
76819
76820 2003-05-11  Karl Berry  <karl@gnu.org>
76821
76822         * config/config.{guess,sub}: update from prep.
76823
76824 2003-05-09  Bruno Haible  <bruno@clisp.org>
76825
76826         * modules/error: Add m4/strerror_r.m4 to file list.
76827
76828 2003-05-03  Bruno Haible  <bruno@clisp.org>
76829
76830         Upgrade to Unicode-4.0.
76831         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76832         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76833         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76834         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76835         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76836         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76837         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76838         Change width of U+E0100..U+E01EF from 1 to 0.
76839
76840 2003-04-25  Jim Meyering  <jim@meyering.net>
76841
76842         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76843         of type size_t, not int.
76844
76845 2003-04-25  Bruno Haible  <bruno@clisp.org>
76846
76847         * lib/copy-file.c: Include <stddef.h>, for size_t.
76848
76849 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76850
76851         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76852         code which expansion is under static control.  Patch imported from
76853         Akim Demaille's patch to Bison; see
76854         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76855
76856 2003-04-14  Bruno Haible  <bruno@clisp.org>
76857
76858         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76859
76860 2003-04-11  Jim Meyering  <jim@meyering.net>
76861
76862         Merge changes from Coreutils.
76863
76864         2003-03-22  Jim Meyering  <jim@meyering.net>
76865
76866         * lib/strftime.c (widen): Cast alloca return value to proper type.
76867
76868         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76869
76870         From GNU libc.
76871         * lib/strftime.c (my_strftime): Handle very large width
76872         specifications for numeric values correctly.  Improve checks for
76873         overflow.
76874
76875         2003-01-19  Jim Meyering  <jim@meyering.net>
76876
76877         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76878         definitions.
76879         (nl_get_alt_digit) [! defined my_strftime]: Define.
76880         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76881         _nl_get_alt_digit and _nl_get_walt_digit.
76882
76883         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76884         libc. These changes have no effect outside of _LIBC.
76885
76886 2003-04-10  Bruno Haible  <bruno@clisp.org>
76887
76888         * modules/findprog: New file.
76889         * MODULES.html.sh (func_all_modules): Add it.
76890
76891 2003-04-10  Bruno Haible  <bruno@clisp.org>
76892
76893         * m4/findprog.m4: New file.
76894         * m4/eaccess.m4: New file.
76895
76896 2003-04-10  Bruno Haible  <bruno@clisp.org>
76897
76898         * lib/findprog.h: New file, from GNU gettext.
76899         * lib/findprog.c: New file, from GNU gettext.
76900
76901 2003-04-05  Jim Meyering  <jim@meyering.net>
76902
76903         Merge changes from Coreutils.
76904
76905         * lib/exclude.h (PARAMS): Remove definition and uses.
76906         * lib/exclude.c: Remove uses of `PARAMS'.
76907
76908         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76909         Add test-cases for DOS filenames. Declare program_name.
76910         (main): Set up program_name.  Patch by Rich Dawe.
76911
76912         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76913         error from mntctl.
76914         Use mntctl's return value to drive the entry-processing loop, since
76915         we can't rely on the value of the vmt_length member in the last
76916         entry.  On some systems doing so could result in exhausting
76917         virtual memory.  Based in part on a patch from Mike Jetzer.
76918
76919 2003-04-04  Bruno Haible  <bruno@clisp.org>
76920
76921         * modules/linebreak: New file.
76922         * MODULES.html.sh (func_all_modules): Add it.
76923
76924 2003-04-04  Bruno Haible  <bruno@clisp.org>
76925
76926         * m4/linebreak.m4: New file.
76927
76928 2003-04-04  Bruno Haible  <bruno@clisp.org>
76929
76930         * lib/linebreak.h: New file, from GNU gettext.
76931         * lib/linebreak.c: New file, from GNU gettext with slight
76932         modifications.
76933         * lib/lbrkprop.h: New file, from GNU gettext.
76934
76935 2003-04-03  Bruno Haible  <bruno@clisp.org>
76936
76937         * modules/utf8-ucs4: New file.
76938         * modules/utf16-ucs4: New file.
76939         * modules/ucs4-utf8: New file.
76940         * modules/ucs4-utf16: New file.
76941         * MODULES.html.sh (func_all_modules): Add them.
76942
76943 2003-04-03  Bruno Haible  <bruno@clisp.org>
76944
76945         * m4/utf-ucs4.m4: New file.
76946         * m4/ucs4-utf.m4: New file.
76947
76948 2003-04-03  Bruno Haible  <bruno@clisp.org>
76949
76950         * lib/utf8-ucs4.h: New file, from GNU gettext.
76951         * lib/utf16-ucs4.h: New file, from GNU gettext.
76952         * lib/ucs4-utf8.h: New file, from GNU gettext.
76953         * lib/ucs4-utf16.h: New file, from GNU gettext.
76954
76955 2003-04-02  Bruno Haible  <bruno@clisp.org>
76956
76957         * modules/binary-io: New file.
76958         * MODULES.html.sh (func_all_modules): Add it.
76959
76960 2003-04-02  Bruno Haible  <bruno@clisp.org>
76961
76962         * lib/binary-io.h: New file, from GNU gettext.
76963
76964 2003-04-01  Bruno Haible  <bruno@clisp.org>
76965
76966         * modules/pathname: New file.
76967         * MODULES.html.sh (func_all_modules): Add it.
76968
76969 2003-04-01  Bruno Haible  <bruno@clisp.org>
76970
76971         * lib/pathname.h: New file, from GNU gettext.
76972         * lib/concatpath.c: New file, from GNU gettext.
76973
76974 2003-03-30  Bruno Haible  <bruno@clisp.org>
76975
76976         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76977
76978 2003-03-30  Bruno Haible  <bruno@clisp.org>
76979
76980         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76981         function chown() doesn't exist.
76982
76983 2003-03-28  Bruno Haible  <bruno@clisp.org>
76984
76985         * modules/copy-file: New file.
76986         * MODULES.html.sh (func_all_modules): Add it.
76987
76988 2003-03-28  Bruno Haible  <bruno@clisp.org>
76989
76990         * m4/copy-file.m4: New file.
76991
76992 2003-03-28  Bruno Haible  <bruno@clisp.org>
76993
76994         * lib/copy-file.h: New file, from GNU gettext.
76995         * lib/copy-file.c: New file, from GNU gettext.
76996
76997 2003-03-18  Jim Meyering  <jim@meyering.net>
76998
76999         * lib/quote.c (quote_n): Fix typo in comment.
77000
77001 2003-03-18  Bruno Haible  <bruno@clisp.org>
77002
77003         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
77004         checking.
77005         * m4/onceonly_2_57.m4: Likewise.
77006
77007 2003-03-17  Bruno Haible  <bruno@clisp.org>
77008
77009         * m4/onceonly.m4: Require autoconf 2.54 or newer.
77010         (m4_quote): Remove macro.
77011         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
77012
77013 2003-03-14  Jim Meyering  <jim@meyering.net>
77014
77015         Merge changes from Coreutils.
77016         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
77017         to be const, in order to avoid warnings.
77018         (obstack_room): Likewise.
77019         (obstack_empty_p): Likewise.
77020
77021 2003-03-14  Bruno Haible  <bruno@clisp.org>
77022
77023         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
77024         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
77025
77026 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77027
77028         Merge changes from Bison.
77029         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
77030         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
77031         when compiling Bison 1.875's `bitset bset = obstack_alloc
77032         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
77033         * lib/hash.c: Include <stdbool.h> unconditionally.
77034
77035 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77036
77037         * m4/onceonly.m4 (m4_quote): New macro.
77038         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
77039         Quote AC_FOREACH variable-expansions properly.
77040
77041 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77042
77043         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
77044
77045 2003-03-09  Paul Eggert  <eggert@twinsun.com>
77046
77047         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
77048         Reported by Bruce Becker; see:
77049         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
77050
77051 2003-03-03  Paul Eggert  <eggert@twinsun.com>
77052             Bruno Haible  <bruno@clisp.org>
77053
77054         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
77055         Reported by John Hughes, see
77056         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
77057
77058 2003-02-20  Bruno Haible  <bruno@clisp.org>
77059
77060         * MODULES.html.sh (func_all_modules): Add poll.
77061
77062 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77063
77064         * modules/poll: New file.
77065
77066 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77067
77068         * lib/poll_.h: New file.
77069         * lib/poll.c: New file.
77070
77071 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77072
77073         * m4/poll.m4: New file.
77074
77075 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77076
77077         * modules/mathl: New file.
77078
77079 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77080
77081         * lib/mathl.h: New file.
77082         * lib/acosl.c: New file.
77083         * lib/asinl.c: New file.
77084         * lib/atanl.c: New file.
77085         * lib/ceill.c: New file.
77086         * lib/cosl.c: New file.
77087         * lib/expl.c: New file.
77088         * lib/floorl.c: New file.
77089         * lib/frexpl.c: New file.
77090         * lib/ldexpl.c: New file.
77091         * lib/logl.c: New file.
77092         * lib/sincosl.c: New file.
77093         * lib/sinl.c: New file.
77094         * lib/sqrtl.c: New file.
77095         * lib/tanl.c: New file.
77096         * lib/trigl.c: New file.
77097         * lib/trigl.h: New file.
77098
77099 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77100
77101         * m4/mathl.m4: New file.
77102
77103 2003-02-18  Bruno Haible  <bruno@clisp.org>
77104
77105         * MODULES.html.sh (func_all_modules): Add mathl.
77106
77107 2003-02-17  Bruno Haible  <bruno@clisp.org>
77108
77109         * modules/mkdtemp: New module.
77110         * MODULES.html.sh (func_all_modules): Add it.
77111
77112 2003-02-17  Bruno Haible  <bruno@clisp.org>
77113
77114         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
77115
77116 2003-02-17  Bruno Haible  <bruno@clisp.org>
77117
77118         * lib/mkdtemp.h: New file, from GNU gettext.
77119         * lib/mkdtemp.c: New file, from GNU gettext.
77120
77121 2003-02-02  Jim Meyering  <jim@meyering.net>
77122
77123         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
77124         e.g. glibc-2.2.93.
77125
77126 2003-01-31  Bruno Haible  <bruno@clisp.org>
77127
77128         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
77129         'rpl_rename'.
77130         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
77131         'rpl_strnlen'.
77132         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
77133         'rpl_strtod'.
77134         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
77135         'rpl_utime'.
77136
77137 2003-01-31  Bruno Haible  <bruno@clisp.org>
77138
77139         * lib/rename.c: #undef rename before defining rpl_rename.
77140         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
77141
77142 2003-01-30  Bruno Haible  <bruno@clisp.org>
77143
77144         * modules/vasnprintf, modules/vasprintf: New modules.
77145         * MODULES.html.sh (func_all_modules): Add them.
77146
77147 2003-01-30  Bruno Haible  <bruno@clisp.org>
77148
77149         * m4/signed.m4: New file, from GNU gettext.
77150         * m4/longdouble.m4: New file, from GNU gettext.
77151         * m4/wchar_t.m4: New file, from GNU gettext.
77152         * m4/wint_t.m4: New file, from GNU gettext.
77153         * m4/vasnprintf.m4: New file.
77154         * m4/vasprintf.m4: New file.
77155
77156 2003-01-30  Bruno Haible  <bruno@clisp.org>
77157
77158         * lib/printf-args.h: New file, from GNU gettext.
77159         * lib/printf-args.c: New file, from GNU gettext.
77160         * lib/printf-parse.h: New file, from GNU gettext.
77161         * lib/printf-parse.c: New file, from GNU gettext.
77162         * lib/vasnprintf.h: New file, from GNU gettext.
77163         * lib/vasnprintf.c: New file, from GNU gettext.
77164         * lib/asnprintf.c: New file, from GNU gettext.
77165         * lib/vasprintf.h: New file, from GNU gettext with modifications.
77166         * lib/vasprintf.c: New file, from GNU gettext.
77167         * lib/asprintf.c: New file, from GNU gettext.
77168
77169 2003-01-29  Bruno Haible  <bruno@clisp.org>
77170
77171         * modules/stpncpy: New module.
77172         * MODULES.html.sh (func_all_modules): Add it.
77173
77174 2003-01-29  Bruno Haible  <bruno@clisp.org>
77175
77176         * m4/stpncpy.m4: New file.
77177
77178 2003-01-29  Bruno Haible  <bruno@clisp.org>
77179
77180         * lib/stpncpy.h: New file, from GNU gettext with modifications.
77181         * lib/stpncpy.c: New file, from GNU gettext with modifications.
77182
77183 2003-01-28  Bruno Haible  <bruno@clisp.org>
77184
77185         * modules/c-ctype: New module.
77186         * MODULES.html.sh (func_all_modules): Add it.
77187
77188 2003-01-28  Bruno Haible  <bruno@clisp.org>
77189
77190         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
77191         Paul Eggert.
77192         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
77193         Paul Eggert.
77194
77195 2003-01-27  Bruno Haible  <bruno@clisp.org>
77196
77197         * modules/xsetenv: New module.
77198         * MODULES.html.sh (func_all_modules): Add it.
77199
77200 2003-01-27  Bruno Haible  <bruno@clisp.org>
77201
77202         * lib/xsetenv.h: New file, from GNU gettext.
77203         * lib/xsetenv.c: New file, from GNU gettext.
77204
77205 2003-01-23  Jim Meyering  <jim@meyering.net>
77206
77207         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
77208         from working on systems without dirfd (at least Irix and OSF1/Tru64).
77209
77210 2003-01-23  Bruno Haible  <bruno@clisp.org>
77211
77212         * modules/minmax: New module.
77213         * MODULES.html.sh (func_all_modules): Add it.
77214
77215 2003-01-23  Bruno Haible  <bruno@clisp.org>
77216
77217         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
77218         Eggert.
77219
77220 2003-01-22  Bruno Haible  <bruno@clisp.org>
77221
77222         * modules/exit: New module.
77223         * MODULES.html.sh (func_all_modules): Add it.
77224
77225 2003-01-22  Bruno Haible  <bruno@clisp.org>
77226
77227         * lib/exit.h: New file, from GNU gettext.
77228
77229 2003-01-19  Bruno Haible  <bruno@clisp.org>
77230
77231         * gnulib-tool: Recognize option --extract-maintainer.
77232         (func_get_maintainer): New function.
77233         * modules/*: Add Maintainer entry.
77234
77235 2003-01-16  Jim Meyering  <jim@meyering.net>
77236
77237         * m4/regex.m4: The `regex' struct is both input and output.
77238         Initialize it before each use.  Patch by Tim Waugh.
77239
77240 2003-01-16  Bruno Haible  <bruno@clisp.org>
77241
77242         * MODULES.html.sh: Add a table of contents. Add the module name as
77243         leftmost column. Add hyperlinks.
77244
77245 2003-01-15  Bruno Haible  <bruno@clisp.org>
77246
77247         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
77248
77249 2003-01-15  Bruno Haible  <bruno@clisp.org>
77250
77251         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
77252         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
77253         suffix.
77254
77255 2003-01-15  Bruno Haible  <bruno@clisp.org>
77256
77257         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
77258
77259 2003-01-15  Bruno Haible  <bruno@clisp.org>
77260
77261         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
77262         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
77263
77264 2003-01-14  Jim Meyering  <jim@meyering.net>
77265
77266         * lib/same.c (same_name): Tweak a comment.
77267
77268 2003-01-14  Bruno Haible  <bruno@clisp.org>
77269
77270         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
77271         when a string comparison is sufficient.
77272
77273 2003-01-14  Bruno Haible  <bruno@clisp.org>
77274
77275         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
77276         'unsigned int'.
77277
77278 2003-01-14  Bruno Haible  <bruno@clisp.org>
77279
77280         * lib/hash-pjw.c: Add comment about low quality of this function.
77281
77282 2003-01-13  Bruno Haible  <bruno@clisp.org>
77283
77284         * modules/stpcpy: Distribute lib/stpcpy.h.
77285         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
77286
77287 2003-01-13  Bruno Haible  <bruno@clisp.org>
77288
77289         * modules/*: Add a description.
77290         * modules/strpbrk: Fix Makefile.am snippet.
77291         * modules/strtoimax: Fix dependencies.
77292         * modules/strtoumax: Likewise.
77293
77294 2003-01-13  Bruno Haible  <bruno@clisp.org>
77295
77296         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
77297         * modules/alloca (Makefile.am): All object files depend on alloca.h.
77298         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
77299
77300 2003-01-13  Bruno Haible  <bruno@clisp.org>
77301
77302         * gnulib-tool (func_create_testdir): Store config/* files in the main
77303         directory.
77304         * config.rpath: Move to ...
77305         * config/config.rpath: ... here.
77306         * modules/gettext: Contains config/config.rpath, not config.rpath.
77307         * modules/iconv: Likewise.
77308
77309 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77310
77311         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77312         to avoid collisions with libcurses and libreadline.
77313
77314         * m4/getstr.m4: Remove.
77315         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
77316
77317 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77318
77319         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77320         to avoid collisions with libcurses and libreadline.
77321
77322         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
77323         * lib/getstr.h, getstr.c: Remove.
77324         * lib/getline.c: Include "getline.h", to check interface.
77325         Move body of old getstr.c here: this defines MIN_CHUNK and
77326         declares getdelim2, which is renamed from getstr.
77327         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
77328
77329         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77330         All uses changed.
77331         * lib/linebuffer.h: Likewise.
77332         (readline): Remove backward-compatibility macro.
77333
77334 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77335
77336         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77337         to avoid collisions with libcurses and libreadline.
77338         * getstr: Remove.
77339         * MODULES.html.sh: Remove getstr.
77340         * modules/getline: Depend on unlocked-io, not getstr.
77341
77342 2003-01-12  Jim Meyering  <jim@meyering.net>
77343
77344         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77345
77346 2003-01-10  Bruno Haible  <bruno@clisp.org>
77347
77348         * modules/alloca: Change Makefile.am requirements. Simplify Include
77349         requirements. Add lib/alloca_.h to file list.
77350
77351 2003-01-10  Bruno Haible  <bruno@clisp.org>
77352
77353         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77354
77355 2003-01-10  Bruno Haible  <bruno@clisp.org>
77356
77357         * lib/alloca_.h: New file.
77358         * lib/getdate.y: Unconditionally include alloca.h.
77359         * lib/makepath.c: Likewise.
77360         * lib/setenv.c: Likewise.
77361         * lib/userspec.c: Likewise.
77362
77363 2003-01-09  Karl Berry  <karl@gnu.org>
77364
77365         * MODULES.html.sh: include `dirname $0` in PATH, to find
77366         gnulib-tool.
77367
77368 2003-01-09  Bruno Haible  <bruno@clisp.org>
77369
77370         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77371         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77372
77373 2003-01-09  Bruno Haible  <bruno@clisp.org>
77374
77375         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77376
77377 2003-01-09  Bruno Haible  <bruno@clisp.org>
77378
77379         * lib/stdbool.h.in: New file.
77380
77381 2003-01-09  Bruno Haible  <bruno@clisp.org>
77382
77383         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77384         * MODULES.html.sh: Likewise.
77385
77386 2003-01-08  Jim Meyering  <jim@meyering.net>
77387
77388         * lib/full-write.c: Undefine and define-away `const' after inclusion
77389         of errno.h, not before.  Suggestion from Bruno Haible.
77390
77391 2003-01-08  Bruno Haible  <bruno@clisp.org>
77392
77393         * modules/full-read: Depend on full-write.
77394
77395 2003-01-08  Bruno Haible  <bruno@clisp.org>
77396
77397         * lib/safe-read.c: Include specification header first, to ensure its
77398         selfcontainedness.
77399         * lib/full-write.c: Likewise.
77400
77401 2003-01-07  Jim Meyering  <jim@meyering.net>
77402
77403         * lib/full-write.c: Rework so that it may serve to define full_read,
77404         too.
77405         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77406
77407 2003-01-07  Bruno Haible  <bruno@clisp.org>
77408
77409         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77410         <inttypes.h>.
77411         * lib/xstrtol.h: Likewise.
77412         * lib/xstrtoimax.c: Likewise.
77413         * lib/xstrtoumax.c: Likewise.
77414         * lib/human.h: Likewise.
77415
77416         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77417         on systems that have <inttypes.h> but not <stdint.h>.
77418
77419 2003-01-07  Bruno Haible  <bruno@clisp.org>
77420
77421         * MODULES.html.sh: Add copyright notice.
77422         (missed_files): Omit CVS directory entries.
77423         (func_module): Make it work with sed-3.02.
77424         * MODULES.txt: Remove file.
77425
77426 2003-01-06  Jim Meyering  <jim@meyering.net>
77427
77428         * lib/version-etc.c: Update year in translatable copyright string.
77429
77430 2003-01-03  Karl Berry  <karl@gnu.org>
77431
77432         * config/config.{guess,sub}: update from prep.
77433
77434 2003-01-02  Karl Berry  <karl@gnu.org>
77435
77436         * doc/COPYING.DOC: belatedly updated to 1.2.
77437
77438 2003-01-01  Karl Berry  <karl@gnu.org>
77439
77440         * gnulib-tool (func_verify_module): report module name $module in
77441         error message, not $1.
77442         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77443         be created, only if it doesn't exist.
77444         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77445
77446 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77447
77448         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77449
77450 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77451
77452         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77453         memcmp if strcoll doesn't work.
77454
77455 2002-12-31  Bruno Haible  <bruno@clisp.org>
77456
77457         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77458         nonempty.
77459
77460 2002-12-31  Bruno Haible  <bruno@clisp.org>
77461
77462         * lib/memcoll.c (STRCOLL): New macro.
77463         (memcoll): Use it.
77464
77465 2002-12-31  Bruno Haible  <bruno@clisp.org>
77466
77467         * lib/localcharset.h: New file.
77468         * lib/localcharset.c: Include it.
77469         * lib/unicodeio.c: Likewise.
77470
77471 2002-12-31  Bruno Haible  <bruno@clisp.org>
77472
77473         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77474         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77475
77476 2002-12-31  Bruno Haible  <bruno@clisp.org>
77477
77478         * lib/getline.h: Include <stddef.h>, for size_t.
77479
77480         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77481         * lib/unicodeio.c: Don't include <stddef.h>.
77482
77483 2002-12-31  Bruno Haible  <bruno@clisp.org>
77484
77485         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77486         HAVE_TM_ZONE.
77487
77488 2002-12-24  Karl Berry  <karl@gnu.org>
77489
77490         * config/config.guess: update from prep.
77491
77492 2002-12-24  Bruno Haible  <bruno@clisp.org>
77493
77494         General infrasructure.
77495         * m4/README: Rewritten.
77496         * m4/onceonly.m4: New file.
77497         * m4/onceonly_2_57.m4: New file.
77498
77499         Module atexit.
77500         * m4/atexit.m4: New file.
77501
77502         Module strtod.
77503         * m4/strtod.m4: New file.
77504
77505         Module strtol.
77506         * m4/strtol.m4: New file.
77507
77508         Module strtoul.
77509         * m4/strtoul.m4: New file.
77510
77511         Module memchr.
77512         * m4/memchr.m4: New file.
77513
77514         Module memcmp.
77515         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77516         (jm_FUNC_MEMCMP): Invoke it.
77517
77518         Module memcpy.
77519         * m4/memcpy.m4: New file.
77520
77521         Module memmove.
77522         * m4/memmove.m4: New file.
77523
77524         Module memset.
77525         * m4/memset.m4: New file.
77526
77527         Module strcspn.
77528         * m4/strcspn.m4: New file.
77529
77530         Module strpbrk.
77531         * m4/strpbrk.m4: New file.
77532
77533         Module strstr.
77534         * m4/strstr.m4: New file.
77535
77536         Module strerror.
77537         * m4/strerror.m4: New file.
77538
77539         Module mktime.
77540         * m4/mktime.m4: Renamed from jm-mktime.m4.
77541         (gl_PREREQ_MKTIME): New macro.
77542         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77543
77544         Module malloc.
77545         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77546         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77547         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77548
77549         Module realloc.
77550         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77551         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77552         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77553
77554         Module strftime.
77555         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77556         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77557         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77558         gl_TM_GMTOFF.
77559         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77560
77561         Module xalloc.
77562         * m4/xalloc.m4: New file.
77563
77564         Module alloca.
77565         * m4/alloca.m4: New file.
77566
77567         Module putenv.
77568         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77569         (jm_FUNC_PUTENV): Invoke it.
77570
77571         Module setenv.
77572         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77573         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77574         when invoked twice.
77575         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77576         gt_FUNC_SETENV.
77577
77578         Module memrchr.
77579         * m4/memrchr.m4: New file.
77580
77581         Module stpcpy.
77582         * m4/stpcpy.m4: New file.
77583
77584         Module strcase.
77585         * m4/strcase.m4: New file.
77586
77587         Module strdup.
77588         * m4/strdup.m4: New file.
77589
77590         Module strnlen.
77591         * m4/strnlen.m4: New file.
77592
77593         Module strndup.
77594         * m4/strndup.m4: New file.
77595
77596         Module xstrtod.
77597         * m4/xstrtod.m4: New file.
77598
77599         Module xstrtol.
77600         * m4/xstrtol.m4: New file.
77601
77602         Module getdate.
77603         * m4/getdate.m4: New file.
77604
77605         Module unlocked-io.
77606         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77607         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77608         * m4/jm-glibc-io.m4n: Remove file.
77609
77610         Module long-options.
77611         * m4/long-options.m4: New file.
77612
77613         Module md5.
77614         * m4/md5.m4: New file.
77615
77616         Module sha.
77617         * m4/sha.m4: New file.
77618
77619         Module getstr.
77620         * m4/getstr.m4: New file.
77621
77622         Module getline.
77623         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77624         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77625         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77626         simply getline. Infoke gl_PREREQ_GETLINE.
77627
77628         Module obstack.
77629         * m4/obstack.m4: New file.
77630
77631         Module hash.
77632         * m4/hash.m4: New file.
77633
77634         Module readtokens.
77635         * m4/readtokens.m4: New file.
77636
77637         Module strverscmp.
77638         * m4/strverscmp.m4: New file.
77639
77640         Module stdbool.
77641         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77642         OSF/1.
77643
77644         Module strtoll.
77645         * m4/strtoll.m4: New file.
77646
77647         Module strtoull.
77648         * m4/strtoull.m4: New file.
77649
77650         Module strtoimax.
77651         * m4/strtoimax.m4: New file.
77652
77653         Module strtoumax.
77654         * m4/strtoumax.m4: New file.
77655
77656         Module xstrtoimax.
77657         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77658         jm_AC_PREREQ_XSTRTOIMAX.
77659         Moved the strtol prerequisites to strtol.m4.
77660         Moved the strtoll prerequisites to strtoll.m4.
77661         Moved the strtoimax prerequisites to strtoimax.m4.
77662
77663         Module xstrtoumax.
77664         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77665         jm_AC_PREREQ_XSTRTOUMAX.
77666         Moved the strtoul prerequisites to strtoul.m4.
77667         Moved the strtoull prerequisites to strtoull.m4.
77668         Moved the strtoumax prerequisites to strtoumax.m4.
77669
77670         Module chown.
77671         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77672         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77673
77674         Module dup2.
77675         * m4/dup2.m4: New file.
77676
77677         Module ftruncate.
77678         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77679         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77680
77681         Module getgroups.
77682         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77683         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77684
77685         Module gettimeofday.
77686         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77687         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77688         gl_PREREQ_GETTIMEOFDAY.
77689
77690         Module mkdir.
77691         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77692         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77693
77694         Module mkstemp.
77695         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77696         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77697         jm_AC_TYPE_UINTMAX_T.
77698         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77699
77700         Module stat.
77701         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77702         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77703
77704         Module lstat.
77705         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77706         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77707
77708         Module timespec.
77709         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77710         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77711         * m4/st_mtim.m4: Indentation.
77712
77713         Module nanosleep.
77714         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77715         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77716         gl_PREREQ_NANOSLEEP.
77717
77718         Module regex.
77719         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77720         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77721         (gl_REGEX): New macro.
77722
77723         Module rename.
77724         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77725         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77726
77727         Module rmdir.
77728         * m4/rmdir.m4: New file.
77729
77730         Module utime.
77731         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77732         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77733         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77734
77735         Module dirname.
77736         * m4/dirname.m4: New file.
77737
77738         Module getopt.
77739         * m4/getopt.m4: New file.
77740
77741         Module unistd-safer.
77742         * m4/unistd-safer.m4: New file.
77743
77744         Module fnmatch.
77745         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77746         declaration.
77747         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77748         (gl_FUNC_FNMATCH_POSIX): New macro.
77749         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77750         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77751         simply fnmatch.
77752
77753         Module exclude.
77754         * m4/exclude.m4: New file.
77755
77756         Module human.
77757         * m4/human.m4: New file.
77758
77759         Module acl.
77760         * m4/acl.m4: Nop.
77761
77762         Module backupfile.
77763         * m4/backupfile.m4: New file.
77764         * m4/d-ino.m4: Indentation.
77765
77766         Module fsusage.
77767         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77768         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77769         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77770
77771         Module dirfd.
77772         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77773         requirements.
77774
77775         Module euidaccess.
77776         * m4/euidaccess.m4: New file.
77777
77778         Module file-type.
77779         * m4/file-type.m4: New file.
77780
77781         Module fileblocks.
77782         * m4/fileblocks.m4: New file.
77783
77784         Module filemode.
77785         * m4/filemode.m4: New file.
77786
77787         Module isdir.
77788         * m4/isdir.m4: New file.
77789
77790         Module lchown.
77791         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77792         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77793
77794         Module makepath.
77795         * m4/makepath.m4: New file.
77796
77797         Module modechange.
77798         * m4/modechange.m4: New file.
77799
77800         Module mountlist.
77801         * m4/mountlist.m4: New file.
77802         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77803         Indentation.
77804
77805         Module path-concat.
77806         * m4/path-concat.m4: New file.
77807
77808         Module pathmax.
77809         * m4/pathmax.m4: New file.
77810
77811         Module same.
77812         * m4/same.m4: New file.
77813
77814         Module save-cwd.
77815         * m4/save-cwd.m4: New file.
77816
77817         Module savedir.
77818         * m4/savedir.m4: New file.
77819
77820         Module xgetcwd.
77821         * m4/xgetcwd.m4: New file.
77822         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77823
77824         Module xreadlink.
77825         * m4/xreadlink.m4: New file.
77826
77827         Module safe-read.
77828         * m4/safe-read.m4: New file.
77829
77830         Module safe-write.
77831         * m4/safe-write.m4: New file.
77832
77833         Module closeout.
77834         * m4/closeout.m4: New file.
77835
77836         Module stdio-safer.
77837         * m4/stdio-safer.m4: New file.
77838
77839         Module getpass.
77840         * m4/getpass.m4: New file.
77841
77842         Module getugroups.
77843         * m4/getugroups.m4: New file.
77844
77845         Module group-member.
77846         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77847         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77848
77849         Module idcache.
77850         * m4/idcache.m4: New file.
77851
77852         Module userspec.
77853         * m4/userspec.m4: New file.
77854
77855         Module gettime.
77856         * m4/clock_time.m4: New file.
77857         * m4/gettime.m4: New file.
77858
77859         Module settime.
77860         * m4/settime.m4: New file.
77861
77862         Module posixtm.
77863         * m4/posixtm.m4: New file.
77864
77865         Module gethostname.
77866         * m4/gethostname.m4: New file.
77867
77868         Module canon-host.
77869         * m4/canon-host.m4: New file.
77870
77871         Module gettext.
77872         * m4/codeset.m4: New file, from gettext-0.11.5.
77873         * m4/gettext.m4: New file, from gettext-0.11.5.
77874         * m4/glibc21.m4: New file, from gettext-0.11.5.
77875         * m4/iconv.m4: New file, from gettext-0.11.5.
77876         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77877         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77878         * m4/inttypes.m4: New file, from gettext-0.11.5.
77879         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77880         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77881         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77882         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77883         * m4/lib-link.m4: New file, from gettext-0.11.5.
77884         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77885         * m4/progtest.m4: New file, from gettext-0.11.5.
77886         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77887         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77888         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77889
77890         Module localcharset.
77891         * m4/localcharset.m4: New file.
77892
77893         Module hard-locale.
77894         * m4/hard-locale.m4: New file.
77895
77896         Module mbswidth.
77897         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77898         onceonly macros.
77899         * m4/mbrtowc.m4: Add comment.
77900
77901         Module memcasecmp.
77902         * m4/memcasecmp.m4: New file.
77903
77904         Module memcoll.
77905         * m4/memcoll.m4: New file.
77906
77907         Module unicodeio.
77908         * m4/unicodeio.m4: New file.
77909
77910         Module rpmatch.
77911         * m4/rpmatch.m4: New file.
77912
77913         Module yesno.
77914         * m4/yesno.m4: New file.
77915
77916         Module exitfail.
77917         * m4/exitfail.m4: New file.
77918
77919         Module c-stack.
77920         * m4/c-stack.m4 (gl_C_STACK): New macro.
77921         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77922
77923         Module error.
77924         * m4/error.m4 (gl_ERROR): New macro.
77925         (jm_PREREQ_ERROR): Use onceonly macros.
77926
77927         Module fatal.
77928         * m4/fatal.m4: New file.
77929
77930         Module getloadavg.
77931         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77932         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77933
77934         Module getpagesize.
77935         * m4/getpagesize.m4: New file.
77936
77937         Module getusershell.
77938         * m4/getusershell.m4: New file.
77939
77940         Module physmem.
77941         * m4/physmem.m4: New file.
77942
77943         Module posixver.
77944         * m4/posixver.m4: New file.
77945
77946         Module quotearg.
77947         * m4/quotearg.m4: New file.
77948
77949         Module quote.
77950         * m4/quote.m4: New file.
77951
77952         Module readutmp.
77953         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77954
77955         Module sig2str.
77956         * m4/sig2str.m4: New file.
77957
77958         Other.
77959         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77960         ulonglong.m4.
77961         * m4/intmax_t.m4: New file.
77962         * m4/d-type.m4: Indentation.
77963         * m4/jm-macros.m4: Update.
77964         * m4/prereq.m4 (jm_PREREQ): Update.
77965         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77966         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77967         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77968         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77969         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77970         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77971         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77972         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77973         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77974         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77975         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77976         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77977         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77978         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77979         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77980         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77981         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77982         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77983         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77984
77985 2002-12-24  Bruno Haible  <bruno@clisp.org>
77986
77987         * MODULES.txt: Update according to m4/ changes.
77988
77989         Module gettext.
77990         * config.rpath: New file, from gettext-0.11.5.
77991
77992         * modules/*: New module descriptions.
77993         * gnulib-tool: New file.
77994         * MODULES.html.sh: New file.
77995
77996 2002-12-21  Karl Berry  <karl@gnu.org>
77997
77998         * doc/fdl.texi: update to version 1.2.
77999
78000 2002-12-19  Karl Berry  <karl@gnu.org>
78001
78002         * config/config.guess: update from prep.
78003
78004 2002-12-18  Bruno Haible  <bruno@clisp.org>
78005
78006         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
78007         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
78008
78009 2002-12-17  Bruno Haible  <bruno@clisp.org>
78010
78011         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
78012         stdlib.h, string.h.
78013
78014 2002-12-17  Bruno Haible  <bruno@clisp.org>
78015
78016         * lib/canon-host.c (strdup): Remove unused declaration.
78017
78018         * lib/fsusage.c: Include full_read.h.
78019         (get_fs_usage): Use full_read instead of safe_read.
78020
78021         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
78022
78023 2002-12-12  Karl Berry  <karl@gnu.org>
78024
78025         * config/config.guess: update from prep.
78026
78027 2002-12-11  Bruno Haible  <bruno@clisp.org>
78028
78029         * m4/setenv.m4: New file, from gettext-0.11.5.
78030
78031 2002-12-11  Bruno Haible  <bruno@clisp.org>
78032
78033         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
78034         not unsetenv().
78035         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
78036         modifications:
78037
78038         2002-12-11  Bruno Haible  <bruno@clisp.org>
78039
78040                 * setenv.c (alloca): Fall back to malloc.
78041                 (freea): New macro.
78042                 (setenv): Use freea() to free memory allocated with alloca().
78043
78044         2002-11-13  Bruno Haible  <bruno@clisp.org>
78045
78046                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
78047                 function declarations.
78048                 * unsetenv.c (unsetenv): Likewise.
78049
78050         2002-03-04  Bruno Haible  <bruno@clisp.org>
78051
78052                 Portability to AIX 4.3.3.
78053                 * unsetenv.c: New file, extracted from setenv.c.
78054                 * setenv.c: Move the unsetenv() function to unsetenv.c.
78055
78056         2001-12-20  Bruno Haible  <bruno@clisp.org>
78057
78058                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
78059                 use malloc instead. For SunOS 4.
78060
78061         2001-12-11  Bruno Haible  <bruno@clisp.org>
78062
78063                 * setenv.c: Declare alloca.
78064                 (compar_fn_t): New typedef.
78065                 (KNOWN_VALUE, STORE_VALUE): Use it.
78066
78067         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
78068         setenv.h.
78069
78070 2002-12-10  Paul Eggert  <eggert@twinsun.com>
78071
78072         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
78073         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
78074         Choose values that are less likely to collide with system fnmatch
78075         options.
78076         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
78077         defined (e.g., a pure POSIX system).
78078         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
78079         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
78080
78081 2002-12-06  Paul Eggert  <eggert@twinsun.com>
78082
78083         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
78084         a pain in practice to deal with generated m4 files.  This change
78085         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
78086
78087         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
78088         and jm-glibc-io.m4, as they are no longer a special case.
78089         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
78090         kludge and the auto-generation stuff.  Check only whether the
78091         functions are declared, not whether they exist, since older hosts
78092         that don't declare the functions can't use the optimization anyway.
78093
78094 2002-12-06  Jim Meyering  <jim@meyering.net>
78095
78096         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
78097
78098         Merge in changes from libc's misc/error.c, in preparation
78099         for the merge of gnulib's changes back into libc.
78100
78101         * lib/error.c (_): Define only if not already defined.
78102         Move definition to follow all #include directives.
78103         Include unlocked-io.h only if !_LIBC.
78104         [_LIBC]: Include <libio/libioP.h>.
78105         [USE_IN_LIBIO]: Include <libio/iolibio.h>
78106         (fflush): Tweak definition to use INTUSE.
78107         (putc): Define.
78108
78109 2002-12-05  Paul Eggert  <eggert@twinsun.com>
78110
78111         * lib/alloca.c [defined emacs]: Include "lisp.h".
78112         (xalloc_die) [defined emacs]: New macro.
78113         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
78114         [! defined emacs]: Include <xalloc.h>.
78115         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
78116         (pointer): Typedef to POINTER_TYPE *.
78117         (malloc): Remove decl; we now always use xmalloc.
78118         (alloca): Use old-style definition, since Emacs needs this.
78119         Check for arithmetic overflow when computing combined size.
78120
78121 2002-12-04  Paul Eggert  <eggert@twinsun.com>
78122
78123         Do not generate unlocked-io.h automatically, since it's easier to
78124         maintain it by hand.
78125
78126         * lib/unlocked-io.h: New file, from GNU diffutils,
78127         but with proper copyright notice and attribution.
78128         * lib/gen-uio: Remove.
78129         * lib/Makefile.am: Add copyright notice.
78130         (libfetish_a_SOURCES): Add unlocked-io.h.
78131         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
78132         (DISTCLEANFILES, io_functions): Remove macros.
78133         (EXTRA_DIST): Remove gen_uio.
78134         (unlocked-io.h): Remove rule.
78135
78136 2002-12-04  Jim Meyering  <jim@meyering.net>
78137
78138         Reflect the fact that stat.c and lstat.c are no longer generated.
78139         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
78140         (DISTCLEANFILES): Likewise.
78141         (EXTRA_DIST): Likewise.
78142         (all_local): Don't depend on stat.c or lstat.c.
78143         (stat.c, lstat.c): Remove rules.
78144         (EXTRA_DIST): Remove xstat.in.
78145
78146         * lib/xstat.in: Remove file.  Contents moved into stat.c.
78147         * lib/stat.c: New file.  Contents mostly from xstat.in.
78148         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
78149         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
78150
78151         * lib/safe-read.c: Rework so that it may serve to define safe_write,
78152         too.
78153         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
78154
78155 2002-12-03  Jim Meyering  <jim@meyering.net>
78156
78157         * lib/safe-read.c, safe-write.c: Change variable names and comments,
78158         but not semantics, to minimize the differences between these two files.
78159         (safe_read): Change comment to mention SAFE_READ_ERROR.
78160
78161         * lib/safe-read.c (IS_EINTR): Define.
78162         (safe_read): Use IS_EINTR in place of in-function cpp directives.
78163
78164 2002-12-02  Jim Meyering  <jim@meyering.net>
78165
78166         * lib/safe-read.c (EINTR): Define.
78167         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78168         (INT_MAX): Provide fallback.
78169         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
78170
78171         * lib/safe-read.h (SAFE_READ_ERROR): Define.
78172
78173 2002-12-02  Bruno Haible  <bruno@clisp.org>
78174
78175         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
78176         Define, taken from safe-read.c.
78177         (INT_MAX): Provide fallback.
78178         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
78179         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
78180
78181         * lib/safe-read.c (EINTR): Remove definition.
78182         (safe_read): Don't use EINTR if it is absent.
78183
78184 2002-12-01  Jim Meyering  <jim@meyering.net>
78185
78186         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
78187         zero.
78188         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
78189
78190 2002-11-27  Paul Eggert  <eggert@twinsun.com>
78191
78192         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
78193         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
78194         with `if (! (value < limit)) abort ();', for readability.
78195
78196 2002-11-26  Karl Berry  <karl@gnu.org>
78197
78198         * lib/strdup.c: copy from libc again, with jim's ok.
78199         * lib/.cppi-disable: re-add strdup.c
78200
78201 2002-11-25  Karl Berry  <karl@gnu.org>
78202
78203         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
78204         instead of "strtol.c".
78205
78206 2002-11-25  Karl Berry  <karl@gnu.org>
78207
78208         * config/install-sh: update from automake for variable quoting, $0 in
78209         error msgs, etc.
78210
78211         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
78212         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
78213         entry.
78214
78215 2002-11-25  Jim Meyering  <jim@meyering.net>
78216
78217         * lib/mktime.c: Sync from libc, now that it has the latest fix.
78218
78219 2002-11-24  Karl Berry  <karl@gnu.org>
78220
78221         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
78222         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
78223
78224 2002-11-24  Jim Meyering  <jim@meyering.net>
78225
78226         Update from coreutils:
78227
78228         * lib/mktime.c: Merge in changes from libc.
78229
78230         Avoid a link-time failure on some Linux systems.
78231         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
78232         (otherwise).
78233         (__mon_yday): Declare with the STATIC attribute.
78234         (__mktime_internal): Likewise.
78235         Based on a report from Greg Schafer.
78236
78237 2002-11-23  Jim Meyering  <jim@meyering.net>
78238
78239         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
78240         Use `unsigned', not `int', as type of index.
78241
78242         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
78243
78244         * lib/fsusage.c: Remove unneeded parentheses around operands of
78245         `defined'.
78246
78247 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78248
78249         * lib/quotearg.h: Allow multiple inclusion by surrounding with
78250         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
78251         so that we can be included first.
78252         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
78253         * lib/quotearg.c: Include quotearg.h immediately after config.h.
78254         No need to include stddef.h or sys/types.h any more.
78255         Surround local include files with "", not "<>".
78256         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
78257         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
78258         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
78259         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
78260         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
78261         (ISPRINT): Remove; no longer needed now that we assume C89.
78262
78263         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
78264         Preserve errno.
78265
78266         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
78267         quotearg_char): Use SIZE_MAX rather than
78268         (size_t) -1 when we are talking about "infinity".
78269
78270         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
78271
78272 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78273
78274         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
78275         hint that one should use `if (! x) abort ();' rather than `assert
78276         (x);', and anyway it's one less thing to worry about configuring.
78277         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
78278         hash_rehash, hash_insert): Use abort rather than assert.
78279
78280 2002-11-22  Bruno Haible  <bruno@clisp.org>
78281
78282         * lib/safe-read.h: Assume C89. Add comments.
78283         (safe_read): Change return type to size_t.
78284         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
78285         byte counts > SSIZE_MAX correctly.
78286         * lib/safe-write.h: New file.
78287         * lib/safe-write.c: New file.
78288         * lib/full-read.h: New file.
78289         * lib/full-read.c: New file.
78290         * lib/full-write.h: Assume C89. Add comments.
78291         * lib/full-write.c: Include safe-write.h.
78292         (full_write): Rewritten to use safe_write.
78293         Suggested by Jim Meyering and Paul Eggert.
78294
78295 2002-11-21  Jim Meyering  <jim@meyering.net>
78296
78297         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
78298
78299         Merge in changes from the coreutils.
78300
78301         2002-09-25  Paul Eggert  <eggert@twinsun.com>
78302         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
78303         <stdint.h>.
78304         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
78305         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
78306         int.  Work more efficiently if X is the same width as uintmax_t.
78307         Do not compare X to -1, to avoid bogus compiler warning.
78308         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
78309         Don't assume that f_frsize and f_bsize are the same type.
78310
78311         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
78312         warning on FreeBSD.
78313
78314         * lib/makepath.c (make_path): Restore umask *before* creating the final
78315         component.
78316         (make_path): Minor reformatting.
78317
78318         * lib/xmalloc.c: Adjust to work with new autoconf macros,
78319         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
78320         HAVE_MALLOC/HAVE_REALLOC.
78321
78322         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
78323         dummy ones.  At least on GNU/Linux systems, `auto' means something
78324         else.
78325         From Michael Stone.
78326
78327 2002-11-21  Bruno Haible  <bruno@clisp.org>
78328
78329         Remove case insensitive option matching.
78330         * lib/argmatch.h (argcasematch): Remove declaration.
78331         (ARGCASEMATCH): Remove macro.
78332         (__xargmatch_internal): Remove case_sensitive argument.
78333         (XARGMATCH): Update.
78334         (XARGCASEMATCH): Remove macro.
78335         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78336         case_sensitive argument.
78337         (argcasematch): Remove function.
78338         (__xargmatch_internal): Remove case_sensitive argument.
78339         (main): Use XARGMATCH instead of XARGCASEMATCH.
78340
78341         * lib/xmalloc.c: Change compile-time error message. Add comment about
78342         required autoconf version.
78343
78344 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78345
78346         Merge argmatch cleanups from Bison.  Assume C89.
78347
78348         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78349         Include stdlib.h, for EXIT_FAILURE.
78350         Always include <string.h>, since we assume C89.
78351         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78352         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78353         Include <stddef.h> instead, since it's all we need for size_t.
78354         (PARAMS): Remove.  All uses removed.
78355         (ARRAY_CARDINALITY): Do not bother to #undef.
78356         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78357         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78358         Remove unnecessary parentheses.
78359         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78360         Insert necessary parentheses.
78361         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78362         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78363
78364 2002-11-19  Bruno Haible  <bruno@clisp.org>
78365
78366         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78367         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78368
78369         * lib/mbswidth.h (PARAMS): Remove macro.
78370         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78371         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78372
78373         * lib/gcd.h (PARAMS): Remove macro.
78374         (gcd): Use ANSI C function declarations.
78375         * lib/gcd.c (gcd): Likewise.
78376
78377 2002-11-15  Bruno Haible  <bruno@clisp.org>
78378
78379         * lib/strcspn.c: Include <stddef.h>.
78380         (strcspn): Use ANSI C function declaration. Change return type to
78381         size_t. Use NULL.
78382         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78383         (strpbrk): Use NULL.
78384         * lib/strpbrk.h (PARAMS): Remove macro.
78385         (strpbrk): Use ANSI C function declaration.
78386         * lib/strstr.c: Don't include <sys/types.h>.
78387         * lib/strstr.h (PARAMS): Remove macro.
78388         (strstr): Use ANSI C function declarations.
78389
78390 2002-11-14  Karl Berry  <karl@gnu.org>
78391
78392         * config/mkinstalldirs: `do' on separate line, instead of
78393         `for var; do'.
78394
78395 2002-11-06  Bruno Haible  <bruno@clisp.org>
78396
78397         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78398         * lib/gcd.c (gcd): Likewise.
78399
78400 2002-11-05  Bruno Haible  <bruno@clisp.org>
78401
78402         * lib/gcd.h: New file, from gettext-0.11.5.
78403         * lib/gcd.c: New file, from gettext-0.11.5.
78404
78405 2002-11-05  Bruno Haible  <bruno@clisp.org>
78406
78407         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78408         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78409         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78410         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78411
78412         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78413         <libintl.h>.
78414         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78415         <libintl.h>.
78416
78417         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78418         * lib/human.c: Include gettext.h instead of <libintl.h>.
78419         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78420         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78421         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78422         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78423         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78424         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78425         (textdomain): Remove definition.
78426         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78427
78428         * lib/long-options.c: Remove include of <libintl.h> and definition of
78429         _.
78430         * lib/same.c: Remove include of <libintl.h> and definition of _.
78431
78432 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78433
78434         * lib/config.charset: A few additions for Solaris.
78435
78436 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78437
78438         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78439         * lib/localcharset.c (locale_charset): Declare as extern "C".
78440
78441 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78442
78443         * lib/config.charset: msdos in uk_UA uses CP1125.
78444
78445 2002-11-04  Bruno Haible  <bruno@clisp.org>
78446
78447         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78448         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78449         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78450         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78451         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78452
78453 2002-11-04  Bruno Haible  <bruno@clisp.org>
78454
78455         * lib/localcharset.c (locale_charset): Don't return an empty string.
78456
78457 2002-11-04  Bruno Haible  <bruno@clisp.org>
78458
78459         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78460         aliases.
78461
78462 2002-11-04  Bruno Haible  <bruno@clisp.org>
78463
78464         * lib/config.charset: Update for newest glibc. Add canonical names
78465         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78466
78467 2002-11-04  Bruno Haible  <bruno@clisp.org>
78468
78469         * lib/config.charset: Add support for NetBSD.
78470
78471 2002-11-04  Bruno Haible  <bruno@clisp.org>
78472
78473         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78474
78475 2002-11-01  Bruno Haible  <bruno@clisp.org>
78476
78477         * configure.in: Add AC_CONFIG_AUX_DIR call.
78478         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78479         test/Makefile.
78480         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78481
78482 2002-09-28  Karl Berry  <karl@gnu.org>
78483
78484         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78485         installed automake until the next release, since changes have been
78486         made.
78487
78488 2002-09-25  Karl Berry  <karl@gnu.org>
78489
78490         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78491         * lib/getopt*: copy from libc/posix.
78492         * lib/gettext.h: copy from gettext.
78493         * lib/.cppi-disable: add strdup.c, gettext.h.
78494
78495 2002-09-25  Karl Berry  <karl@gnu.org>
78496
78497         * config/srclist.txt: enable gettext.h check.
78498         * config/config.{guess,sub}: update from prep.
78499         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78500                 from automake 1.6.3.
78501         See srclist*.
78502
78503 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78504
78505         * regex.c (PATFETCH): Remove the translating fetch.
78506         (PATFETCH_RAW): Rename to PATFETCH.
78507         (set_image_of_range): New fun.
78508         (SET_RANGE_TABLE_WORK_AREA): Use it.
78509         (regex_compile): Don't translate the pattern chars so eagerly.
78510         Only do it when inserting an `exactn' bytecode or when handling
78511         a char-range.
78512         (mutually_exclusive_p): Avoid empty statement.
78513
78514 2002-07-06  Jim Meyering  <meyering@lucent.com>
78515
78516         * m4/README: Don't mention Makefile.am.in.
78517         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78518
78519 2002-07-01  Jim Meyering  <meyering@lucent.com>
78520
78521         * lib/c-stack.c: Include sys/time.h.
78522         From Volker Borchert.
78523
78524 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78525
78526         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78527
78528 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78529
78530         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78531         New macro.  Use it uniformly instead of
78532         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78533         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78534         reported by Vin Shelton.
78535
78536 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78537
78538         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78539         Do not assume SA_SIGINFO behavior.
78540         Bug reported by Jim Meyering on NetBSD 1.5.2.
78541
78542 2002-06-22  Jim Meyering  <meyering@lucent.com>
78543
78544         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78545         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78546
78547         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78548         now that configure.ac uses AC_GNU_SOURCE.
78549         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78550         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78551
78552         Update to latest tools.  Suggestions from Paul Eggert.
78553         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78554         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78555         * m4/fnmatch.m4: Likewise.
78556         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78557         to AC_HEADER_STDBOOL
78558
78559 2002-06-22  Jim Meyering  <meyering@lucent.com>
78560
78561         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78562         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78563
78564 2002-06-22  Jim Meyering  <meyering@lucent.com>
78565
78566         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78567
78568         * lib/exitfail.c, exitfail.h: Likewise.
78569         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78570
78571         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78572         of fnmatch.h.
78573         (EXTRA_DIST): Add fnmatch_loop.c.
78574         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78575
78576         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78577         * lib/fnmatch.c: Update from diffutils-2.8.2.
78578         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78579         * lib/fnmatch.h: Remove file.
78580
78581 2002-06-21  Jim Meyering  <meyering@lucent.com>
78582
78583         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78584         * m4/mbrtowc.m4: Likewise.
78585
78586         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78587         * m4/mbswidth.m4: Reflect name change:
78588         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78589         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78590
78591         * m4/lib-link.m4: Update from gettext-0.11.2.
78592         * m4/gettext.m4: Likewise.
78593
78594         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78595         From Alfred M. Szmidt.
78596
78597 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78598
78599         * lib/file-type.h: Report an error if neither S_ISREG nor
78600         S_IFREG is defined, instead of using a test specific to glibc
78601         2.2.  This should be safe, since POSIX requires S_ISREG and
78602         Unix Version 7 had S_IFREG.  We don't need to check for
78603         <sys/types.h> since we don't use any symbols that it defines.
78604
78605 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78606
78607         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78608         $@-t, so that each temporary file name is unique and valid in the first
78609         8 characters, for operation under DOS.
78610
78611 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78612
78613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78614
78615 2002-06-15  Jim Meyering  <meyering@lucent.com>
78616
78617         Work even with DJGPP 2.03, which lacks support for symlinks.
78618         From Richard Dawe.
78619         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78620         is defined.
78621         * lib/lchown.c (S_ISLNK): Likewise.
78622
78623 2002-06-15  Jim Meyering  <meyering@lucent.com>
78624
78625         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78626         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78627         have been included before this file.
78628
78629 2002-06-14  Jim Meyering  <meyering@lucent.com>
78630
78631         * lib/file-type.h: Use the version from diffutils-2.8.2.
78632         * lib/file-type.c: Likewise.
78633
78634 2002-06-07  Jim Meyering  <meyering@lucent.com>
78635
78636         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78637         They're needed at least for NetBSD 1.5.2.
78638         ($statxfs_includes): Include those same headers.
78639         ($statxfs_includes): Include sys/vfs.h if available.
78640         ($statxfs_includes): Likewise for sys/statvfs.h.
78641         Check for the following members in both structs statfs and statvfs:
78642         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78643
78644 2002-06-01  Jim Meyering  <meyering@lucent.com>
78645
78646         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78647         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78648
78649 2002-05-28  Jim Meyering  <meyering@lucent.com>
78650
78651         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78652         Reported by Volker Borchert.
78653
78654 2002-05-27  Jim Meyering  <meyering@lucent.com>
78655
78656         Fix a problem seen only on nonconforming systems whereby ls.c's
78657         use of localtime, and then of gettimeofday would cause trouble:
78658         the localtime call used to initialize rpl_gettimeofday's save
78659         mechanism would clobber ls's current local time information so
78660         that in any long listing the first file would always be listed
78661         with date 1970-01-01.  Analysis by Volker Borchert.
78662
78663         * lib/gettimeofday.c (localtime): Undefine.
78664         (rpl_localtime): New function.
78665
78666 2002-05-27  Jim Meyering  <meyering@lucent.com>
78667
78668         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78669         localtime.
78670
78671         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78672         use the replacement function; it wouldn't resolve at link time.
78673         Reported by Volker Borchert.
78674
78675 2002-05-22  Jim Meyering  <meyering@lucent.com>
78676
78677         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78678         file-type.h.
78679         * lib/file-type.h: New file.
78680         * lib/file-type.c (file_type): New file/function.  Extracted from
78681         diffutils.
78682
78683 2002-04-30  Jim Meyering  <meyering@lucent.com>
78684
78685         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78686
78687 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78688
78689         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78690
78691 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78692
78693         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78694         Do not check for alloca.h (no longer used) or stdbool.h (was never
78695         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78696
78697 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78698
78699         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78700
78701 2002-04-29  Jim Meyering  <meyering@lucent.com>
78702
78703         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78704         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78705         Use AC_FUNC_STRNLEN here instead.
78706
78707         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78708         With autoconf-2.53a, it's part of AC_PROG_CC.
78709
78710 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78711
78712         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78713         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78714
78715 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78716
78717         * lib/sig2str.h, lib/sig2str.c: New files.
78718         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78719
78720 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78721
78722         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78723         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78724         of 127, since 64 is the largest conceivable number for ancient
78725         nonstandard hosts.
78726         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78727
78728 2002-04-28  Jim Meyering  <meyering@lucent.com>
78729
78730         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78731
78732 2002-04-24  Jim Meyering  <meyering@lucent.com>
78733
78734         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78735         (jm_PREREQ): Use it.
78736
78737         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78738         mach/mach.h fcntl.h.
78739         Check for this function: setlocale.
78740
78741 2002-04-24  Jim Meyering  <meyering@lucent.com>
78742
78743         * lib/gettext.h: New file, from Gettext.
78744         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78745         (libfetish_a_SOURCES): Add gettext.h.
78746
78747 2002-04-16  Jim Meyering  <meyering@lucent.com>
78748
78749         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78750         ut_pid, ut_id, ut_exit.
78751
78752 2002-04-16  Jim Meyering  <meyering@lucent.com>
78753
78754         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78755         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78756         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78757
78758 2002-04-12  Jim Meyering  <meyering@lucent.com>
78759
78760         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78761         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78762         existence of the getmntinfo function.  Needed for Darwin 5.3.
78763
78764         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78765         This is necessary at least on Darwin 5.3.
78766
78767         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78768         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78769         strnlen.o in the library, and that makes some versions of ranlib
78770         object.
78771
78772 2002-04-12  Jim Meyering  <meyering@lucent.com>
78773
78774         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78775
78776 2002-04-09  Jim Meyering  <meyering@lucent.com>
78777
78778         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78779         to be more precise.  Rather than saying we're checking whether the
78780         function `works', say what we're testing.
78781         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78782         Reported by Bruno Haible.
78783
78784 2002-03-10  Jim Meyering  <meyering@lucent.com>
78785
78786         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78787         Suggestion from Santiago Vila.
78788
78789 2002-03-08  Jim Meyering  <meyering@lucent.com>
78790
78791         * lib/rename.c: Mention that this wrapper is needed also on
78792         mips-dec-ultrix4.4 systems.
78793
78794 2002-03-02  Jim Meyering  <meyering@lucent.com>
78795
78796         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78797         not HAVE_CLOCK_SETTIME.
78798
78799 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78800
78801         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78802         Check for clock_settime.
78803
78804 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78805
78806         * lib/nanosleep.h: Rename to....
78807         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78808
78809         * lib/gettime.c: New file.
78810         * lib/settime.c: New file.
78811         * lib/stime.c: Remove.
78812
78813         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78814         timespec.h.  Remove nanosleep.h.
78815
78816 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78817
78818         * m4/acl.m4: New file.
78819         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78820         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78821
78822 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78823
78824         * lib/acl.c, lib/acl.h: New files.
78825         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78826
78827 2002-02-24  Jim Meyering  <meyering@lucent.com>
78828
78829         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78830         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78831         cause trouble.  Reported by Nelson Beebe.
78832
78833 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78834
78835         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78836         compilers that don't know that xalloc_die never returns.
78837
78838 2002-02-20  Jim Meyering  <meyering@lucent.com>
78839
78840         * lib/getdate.c: Regenerate using bison-1.33.
78841
78842 2002-02-17  Jim Meyering  <meyering@lucent.com>
78843
78844         * config/config.guess (main): Don't use `head -1'; it's no longer
78845         portable. Use `sed 1q' instead.
78846
78847 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78848
78849         * m4/codeset.m4: Upgrade to gettext-0.11.
78850         * m4/gettext.m4: Upgrade to gettext-0.11.
78851         * m4/glibc21.m4: Upgrade to gettext-0.11.
78852         * m4/iconv.m4: Upgrade to gettext-0.11.
78853         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78854         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78855         * m4/lib-ld.m4: New file, from gettext-0.11.
78856         * m4/lib-link.m4: New file, from gettext-0.11.
78857         * m4/lib-prefix.m4: New file, from gettext-0.11.
78858         * m4/progtest.m4: Upgrade to gettext-0.11.
78859
78860 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78861
78862         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78863         (jm_PREREQ): Use it.
78864
78865 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78866
78867         * lib/posixver.c, lib/posixver.h: New files.
78868         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78869
78870 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78871             Bruno Haible  <bruno@clisp.org>
78872
78873         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78874         (fwrite_success_callback): New declaration.
78875         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78876         print_unicode_char. Call failure callback instead of error.
78877         (fwrite_success_callback): New function.
78878         (exit_failure_callback): New function.
78879         (fallback_failure_callback): New function.
78880         (print_unicode_char): Call unicode_to_mb.
78881
78882 2002-01-26  Jim Meyering  <meyering@lucent.com>
78883
78884         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78885         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78886
78887 2002-01-26  Jim Meyering  <meyering@lucent.com>
78888
78889         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78890
78891 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78892
78893         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78894
78895 2002-01-22  Jim Meyering  <meyering@lucent.com>
78896
78897         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78898         Otherwise, some versions of automake would omit the rule that makes
78899         Makefile from Makefile.in.
78900
78901 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78902
78903         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78904         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78905         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78906         (memcoll): Set errno to zero if there is no error.
78907
78908         * lib/quotearg.c (quotearg_buffer_restyled):
78909         Fix bug with quoting buffers containing NUL when backslashing escapes.
78910         This bug was exposed by the other changes in this patch.
78911         (quotearg_n_options): New arg ARGSIZE.
78912         All callers changed.
78913         (quoting_options_from_style): New function.
78914         (quotearg_n_style): Use it.
78915         (quotearg_n_style_mem): New function.
78916
78917         * lib/quotearg.h (quotearg_n_style_mem): New function.
78918
78919 2002-01-19  Jim Meyering  <meyering@lucent.com>
78920
78921         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78922         Remove useless quotes: DF_PROG="df".
78923         * m4/strnlen.m4: New file.
78924
78925 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78926
78927         * lib/backupfile.c (ISDIGIT): Comment fix.
78928         * lib/getdate.y (ISDIGIT): Likewise.
78929         * lib/posixtm.c (ISDIGIT, year): Likewise.
78930         * lib/strverscmp.c (ISDIGIT): Likewise.
78931         * lib/userspec.c (ISDIGIT): Likewise.
78932
78933 2002-01-16  Jim Meyering  <meyering@lucent.com>
78934
78935         * lib/getdate.y: Add three semicolons, each just before a closing
78936         brace. Bison (as of version 1.31) no longer papers over that mistake.
78937
78938 2002-01-05  Jim Meyering  <meyering@lucent.com>
78939
78940         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78941
78942 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78943
78944         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78945         not silently exit merely because the output buffer happens to
78946         have nothing pending.
78947
78948 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78949
78950         See the big note in ../ChangeLog.
78951         * lib/human.c (suffixes): Prefer K to k for 1024.
78952         (generate_suffix_backwards): New function.
78953         (human_readable_inexact): Use it.
78954         * lib/xstrtol.c (__xstrtol): If there is no number but there
78955         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78956         Accept 'K' as well as 'k'.
78957
78958 2001-12-15  Jim Meyering  <meyering@lucent.com>
78959
78960         * lib/regex.h (__restrict_arr): Update from libc.
78961
78962         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78963         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78964         (STREQ): Define.
78965
78966 2001-12-14  Jim Meyering  <meyering@lucent.com>
78967
78968         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78969         Suggestion from Bruno Haible.
78970
78971 2001-12-10  Jim Meyering  <meyering@lucent.com>
78972
78973         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78974         xrealloc, Instead, include "xalloc.h".
78975         (initbuffer): Don't cast xmalloc return value to char*.
78976         (readline): Reword comment.
78977         Don't cast xrealloc return value to char*
78978         Return NULL, not 0.
78979
78980 2001-12-09  Jim Meyering  <meyering@lucent.com>
78981
78982         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78983         about `signed and unsigned type in conditional expression'.
78984         * lib/posixtm.c (posix_time_parse): Likewise.
78985
78986         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78987
78988         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78989         to avoid a pedantic warning.
78990
78991         * lib/getstr.c: Don't include assert.h.
78992         (getstr): Remove warning-evoking assertions.
78993         Return -1 if offset parameter is out of bounds.
78994         Change the type of a local from int to size_t.
78995
78996         * lib/strftime.c (my_strftime_localtime_r): Include this function
78997         definition in the `#if ! HAVE_TM_GMTOFF' block.
78998
78999         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
79000         Include xalloc.h instead.
79001
79002 2001-12-02  Jim Meyering  <meyering@lucent.com>
79003
79004         * lib/tempname.c: Don't declare getenv, thus reverting the change of
79005         2001-11-18.  It's no longer necessary, now that stdlib.h is always
79006         included.
79007
79008         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
79009         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
79010
79011 2001-11-30  Akim Demaille  <akim@epita.fr>
79012
79013         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
79014         before being defined.
79015
79016 2001-11-27  Paul Eggert  <eggert@twinsun.com>
79017
79018         * lib/quotearg.h (quotearg_n, quotearg_n_style):
79019         First arg is int, not unsigned.
79020         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
79021         (SIZE_MAX, UINT_MAX): New macros.
79022         (quotearg_n_options): Abort if N is negative.
79023         Avoid overflow check on hosts where size_t is 64 bits and int
79024         is 32 bits, as overflow is impossible there.
79025         Fix off-by-one typo that caused unnecessary reallocation.
79026
79027 2001-11-27  Jim Meyering  <meyering@lucent.com>
79028
79029         * lib/tempname.c: Merge with version from libc.
79030         * lib/regex.c: Likewise.
79031
79032         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
79033         systems for which STDC_HEADERS is 0, it was not included, resulting in
79034         a warning about an integer-to-pointer conversion problem with getenv.
79035         Reported by Volker Borchert.
79036
79037 2001-11-26  Jim Meyering  <meyering@lucent.com>
79038
79039         * lib/gtod.h: Remove file.
79040         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
79041         * lib/gettimeofday.c: Don't include gtod.h.
79042         (GTOD_init): Remove function.
79043         (rpl_gettimeofday): Do its job here instead, rather than aborting.
79044         Suggestion from Volker Borchert.
79045
79046 2001-11-23  Jim Meyering  <meyering@lucent.com>
79047
79048         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
79049         it.
79050         * lib/hash.c (struct hash_table): Define it here instead.
79051
79052 2001-11-22  Jim Meyering  <meyering@lucent.com>
79053
79054         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
79055
79056 2001-11-20  Jim Meyering  <meyering@lucent.com>
79057
79058         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
79059         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
79060
79061 2001-11-19  Jim Meyering  <meyering@lucent.com>
79062
79063         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
79064         directory.  Use "conftestXXXXXX" as the template.
79065         Suggestion from Paul Eggert.
79066
79067         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
79068         immediately, so the test doesn't mistakenly hit the max-open-files
79069         limit.
79070
79071 2001-11-18  Paul Eggert  <eggert@twinsun.com>
79072
79073         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
79074         (TEMPORARIES): New macro.
79075         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
79076         removes an artificial limitation (e.g. HP-UX 10.20, where
79077         TMP_MAX is 17576).
79078
79079 2001-11-18  Jim Meyering  <meyering@lucent.com>
79080
79081         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
79082
79083 2001-11-18  Jim Meyering  <meyering@lucent.com>
79084
79085         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
79086         on SunOS 4.
79087
79088         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
79089         files will be created before anything else.
79090
79091 2001-11-17  Paul Eggert  <eggert@twinsun.com>
79092
79093         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
79094         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
79095
79096 2001-11-17  Jim Meyering  <meyering@lucent.com>
79097
79098         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
79099         Prompted by a report from Bob Proulx.
79100
79101         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
79102         Instead, require UTILS_FUNC_MKSTEMP.
79103
79104 2001-11-17  Jim Meyering  <meyering@lucent.com>
79105
79106         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
79107         Now, that's done as part of AC_FUNC_STRTOD.
79108
79109 2001-11-17  Jim Meyering  <meyering@lucent.com>
79110
79111         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
79112         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
79113         rather than group writable.  Patch by Juan F. Codagnone.
79114
79115         * lib/readtokens.c: Remove explicit declarations of xmalloc and
79116         xrealloc, Instead, include "xalloc.h".
79117
79118         * lib/mountlist.c: Include unlocked-io.h after all system headers.
79119         Remove explicit declarations of xmalloc, xrealloc,
79120         and xstrdup.  Instead, include "xalloc.h".
79121
79122         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
79123         unlocked-io.h.
79124         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
79125         Likewise.
79126         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
79127
79128         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
79129         Reported by Padraig Brady.
79130
79131         * lib/mkstemp.c: #undef mkstemp.
79132         Include config.h.
79133         (rpl_mkstemp): Rename from mkstemp.
79134         Protoize.
79135
79136 2001-11-16  Jim Meyering  <meyering@lucent.com>
79137
79138         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
79139         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
79140         determine the amount of total physical memory, use pstat_getstatic.
79141         HPUX-11 doesn't define _SC_PHYS_PAGES.
79142         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
79143         If sysconf couldn't be used to determine the amount of available
79144         physical memory, use both pstat_getstatic and pstat_getdynamic.
79145         Based on a patch from Bob Proulx.
79146
79147 2001-11-10  Jim Meyering  <meyering@lucent.com>
79148
79149         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
79150         (jm_PREREQ): Use it.
79151
79152 2001-11-09  Jim Meyering  <meyering@lucent.com>
79153
79154         * m4/jm-macros.m4: Require autoconf-2.52f.
79155         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
79156         Use these AC_-prefixed names, not the AM_-prefixed ones.
79157
79158         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
79159
79160 2001-11-05  Jim Meyering  <meyering@lucent.com>
79161
79162         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
79163
79164 2001-11-04  Jim Meyering  <meyering@lucent.com>
79165
79166         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
79167         $DEFS.
79168
79169 2001-11-03  Jim Meyering  <meyering@lucent.com>
79170
79171         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
79172         of AC_DEFUN.
79173
79174         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
79175         know the name of the variable in the macro definition.
79176
79177 2001-11-03  Jim Meyering  <meyering@lucent.com>
79178
79179         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
79180         in argmatch_to_argument call.
79181
79182         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
79183         argument.
79184
79185         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
79186         e.g., a fault due to an attempt to free a NULL pointer.
79187
79188 2001-11-01  Jim Meyering  <meyering@lucent.com>
79189
79190         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
79191         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
79192
79193 2001-11-01  Jim Meyering  <meyering@lucent.com>
79194
79195         * lib/dirfd.c, lib/dirfd.h: New files.
79196         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
79197
79198         * lib/hash.c (hash_print) [TESTING]: Clean up.
79199
79200 2001-10-22  Paul Eggert  <eggert@twinsun.com>
79201
79202         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
79203         to avoid a warning if -Wall.
79204
79205 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
79206
79207         * README: New file
79208         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
79209         (per RMS's instructions, this is now the canonical source)
79210         * lgpl/, gpl/: New directories.
79211
79212 2001-10-21  Paul Eggert  <eggert@twinsun.com>
79213
79214         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
79215
79216 2001-10-21  Jim Meyering  <meyering@lucent.com>
79217
79218         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
79219         this code would end up calling gettext even in packages built
79220         with --disable-nls.
79221         * lib/getopt.c (_): Likewise.
79222         * lib/regex.c (_): Likewise.
79223
79224 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79225
79226         * m4/error.m4 (jm_PREREQ_ERROR):
79227         Do not invoke AC_CHECK_FUNCS with strerror_r, as
79228         AC_FUNC_STRERROR_R does that.
79229         Check for strerror declaration.
79230
79231         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
79232         are supposed to have them these days.
79233         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
79234         Merge changes from latest Autoconf CVS.
79235         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
79236         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
79237         POSIX decided to standardize on the int flavor of strerror_r.
79238
79239 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79240
79241         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
79242         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
79243         Use strerror_r that is only a macro, even if it is not a function.
79244         (strerror): Check for HAVE_DECL_STRERROR before declaring.
79245         (private_strerror): Use prototypes, not old-style function definition.
79246         (print_errno_message): New function.
79247         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
79248         char*-flavored one.
79249         (error_tail, error, error_at_line): Use it.
79250
79251 2001-10-11  Jim Meyering  <meyering@lucent.com>
79252
79253         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
79254         and quote_n (1, ... to avoid clobbering a buffer.
79255
79256 2001-10-05  Jim Meyering  <meyering@lucent.com>
79257
79258         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
79259         hash-pjw.h.
79260         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
79261         * lib/hash-pjw.h: New file.
79262
79263 2001-09-30  Jim Meyering  <meyering@lucent.com>
79264
79265         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
79266         `struct fsstat' has the `f_fstypename' member.
79267         Use that to define FS_TYPE, which is now used to make
79268         the getfsstat link test tighter.
79269
79270 2001-09-30  Jim Meyering  <meyering@lucent.com>
79271
79272         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
79273         Include <sys/ucred.h>, for Apple Darwin.
79274         Include sys/mount.h and sys/fs_types.h only if available.
79275         (FS_TYPE): Define.
79276         (read_filesystem_list): Use FS_TYPE.
79277
79278 2001-09-29  Paul Eggert  <eggert@twinsun.com>
79279
79280         * lib/exclude.c (excluded_filename): 0 -> false, since it's
79281         a boolean context.
79282
79283 2001-09-29  Jim Meyering  <meyering@lucent.com>
79284
79285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79286         [one-argument getmntent function]): Include stdio.h before mntent.h.
79287         SunOS 4.1.x needs it for the declaration of `FILE'.
79288         Patch by Volker Borchert.
79289
79290         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79291         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
79292         sys/fs_types.h, and make the link-test for getfsstat guard #include
79293         directives with appropriate #if HAVE_*_H tests so that we can
79294         detect getfsstat on Apple Darwin1.3.7 systems.
79295         Reported by Nelson Beebe.
79296         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
79297
79298 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79299
79300         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79301         #defines strtoimax.  Also treat the other strto* functions
79302         like strtoimax.
79303
79304         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79305         Check for strtoul and strtoumax,
79306         as those declarations are made even in the signed case.
79307         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
79308         Likewise, for strtol and strtoimax.
79309
79310 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79311
79312         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79313         #defines strtoimax.  Also treat the other strto* functions
79314         like strtoimax.
79315
79316         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
79317         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
79318         (strtoimax, strtoumax): Do not declare if already defined as a macro.
79319
79320 2001-09-26  Jim Meyering  <meyering@lucent.com>
79321
79322         Most macros in unlocked-io.h had the wrong number of arguments.
79323         * lib/gen-uio: New script.
79324         (USE_UNLOCKED_IO): Define to 1 if not already defined.
79325         * lib/unlocked-io.hin: Remove file.
79326         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
79327         rather than trying to embed it here.
79328         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79329         Reported by Padraig Brady.
79330
79331 2001-09-25  Volker Borchert  <bt@teknon.de>
79332
79333         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79334         `result'.
79335
79336 2001-09-24  Jim Meyering  <meyering@lucent.com>
79337
79338         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79339
79340 2001-09-23  Jim Meyering  <meyering@lucent.com>
79341
79342         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79343         instead of the mere test for existence of mntent.h.  The latter
79344         would get a false-positive on AIX 3.4 systems.
79345         In the outer getmntent if-block, don't die if neither of the getmntent
79346         tests succeeds.  Instead, just fall through and continue with the
79347         remaining tests.
79348
79349 2001-09-23  Jim Meyering  <meyering@lucent.com>
79350
79351         * lib/mountlist.c: Remove useless parentheses in #if directives.
79352         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79353         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79354
79355 2001-09-22  Jim Meyering  <meyering@lucent.com>
79356
79357         * m4/gettext.m4: New file.  From gettext.
79358         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79359         * m4/progtest.m4: Likewise
79360         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79361         * m4/glibc21.m4: Likewise.
79362
79363         * m4/libintl.m4: Remove.  No longer used.
79364
79365 2001-09-22  Jim Meyering  <meyering@lucent.com>
79366
79367         * lib/localcharset.c: Update from latest gettext.
79368         * lib/config.charset: Likewise.
79369
79370 2001-09-20  Jim Meyering  <meyering@lucent.com>
79371
79372         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79373         strtoimax.
79374         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79375         strtoumax.
79376
79377 2001-09-20  Jim Meyering  <meyering@lucent.com>
79378
79379         * lib/xstrtol.c (strtoimax): Guard declaration with
79380         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79381         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79382         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79383         (strtoumax): Likewise, for completeness (it wasn't necessary).
79384
79385 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79386
79387         * lib/strtoimax.c (HAVE_LONG_LONG):
79388         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79389         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79390         to work around bug in IBM C compiler.
79391
79392 2001-09-17  Jim Meyering  <meyering@lucent.com>
79393
79394         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79395         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79396         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79397         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79398         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79399         whenever the right hand side need not be expanded by the shell.
79400
79401 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79402
79403         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79404         library.  It's not correct, as some older glibcs are buggy.
79405         fnmatch wasn't fixed until glibc 2.2.
79406
79407         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79408         special shell magic here.
79409
79410 2001-09-16  Jim Meyering  <meyering@lucent.com>
79411
79412         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79413         * m4/jm-macros.m4: Require it.
79414
79415 2001-09-16  Jim Meyering  <meyering@lucent.com>
79416
79417         * lib/mkdir.c: New file.
79418
79419 2001-09-15  Jim Meyering  <meyering@lucent.com>
79420
79421         * m4/jm-macros.m4: Check for help2man.
79422
79423 2001-09-11  Jim Meyering  <meyering@lucent.com>
79424
79425         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79426         The body, by Paul Eggert, was moved here from configure.in.
79427         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79428
79429 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79430
79431         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79432         (jm_PREREQ): Use it.
79433
79434 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79435
79436         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79437         Use ssize_t, not int, to store result of readlink.
79438         Check for ssize_t overflow as well as size_t overflow,
79439         as POSIX says the result of readlink is implementation-defined
79440         when ssize_t overflows.
79441         Remove unnecessary cast to char*.
79442         Use free+malloc instead of realloc, as the storage doesn't need
79443         to be preserved and it's clearer and can be more efficient that way.
79444         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79445         * lib/xreadlink.h (xreadlink): Update prototype.
79446
79447 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79448
79449         * lib/xgetcwd.c: Revert some of the previous change; intead,
79450         fix the HAVE_GETCWD_NULL code to behave more like the
79451         !HAVE_GETCWD_NULL code used to.
79452
79453         Include "xalloc.h".
79454         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79455         invoke xalloc_die.
79456
79457 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79458
79459         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79460         sys/param.h, as pathmax.h includes them.
79461
79462 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79463
79464         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79465         (jm_PREREQ_XGETCWD): New macro.
79466
79467         * m4/getcwd.m4: New file.
79468
79469 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79470
79471         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79472         like the HAVE_GETCWD_NULL code.
79473         Include pathmax.h if not HAVE_GETCWD.
79474         Do not include xalloc.h.
79475         (INITIAL_BUFFER_SIZE): New symbol.
79476         Do not use xmalloc / xrealloc, since the caller is responsible for
79477         handling errors.  Preserve errno around `free' during failure.
79478         Do not overrun buffer when using getwd.
79479
79480 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79481
79482         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79483         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79484         getcwd (NULL, 0).
79485
79486 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79487
79488         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79489         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79490         spotted by Jim Meyering.
79491
79492 2001-09-03  Jim Meyering  <meyering@lucent.com>
79493
79494         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79495         failure.
79496
79497 2001-09-02  Jim Meyering  <meyering@lucent.com>
79498
79499         * lib/error.c: Update from GNU libc.
79500
79501 2001-09-01  Jim Meyering  <meyering@lucent.com>
79502
79503         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79504         Used by df.
79505
79506 2001-09-01  Jim Meyering  <meyering@lucent.com>
79507
79508         * lib/xreadlink.c: New file.
79509         * lib/xreadlink.h: New file.
79510         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79511         xreadlink.h.
79512
79513         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79514         doesn't conflict with sparc Solaris 7's definition in
79515         /usr/include/sys/int_types.h.
79516
79517         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79518         files.
79519         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79520         and strncasecmp as r-values.  Unixware didn't have declarations.
79521
79522 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79523
79524         * lib/xstrtol.h: Add copyright notice.
79525         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79526         LONGINT_INVALID_SUFFIX_CHAR.
79527
79528 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79529
79530         * lib/xstrtol.c (strtoimax): New decl.
79531
79532 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79533
79534         * lib/xgetcwd.c: Don't include pathmax.h.
79535         Include stdlib.h and unistd.h if available.
79536         Include xalloc.h.
79537         (xmalloc, xstrdup, free): Remove decls.
79538         (xgetcwd): Don't assume sizes fit in unsigned.
79539         Check for overflow when computing sizes.
79540         Simplify reallocation code.
79541
79542 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79543
79544         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79545         a directory's st_size can have an arbitrary value, so the old
79546         usage could waste an arbitrary amount of memory.  All uses
79547         changed.
79548         * lib/savedir.h: Update prototype.
79549
79550 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79551
79552         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79553
79554         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79555         old strtoimax.c.
79556
79557         Also, make the following further changes to make this file's
79558         configuration more similar to that of strtol.c:
79559         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79560         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79561         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79562         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79563         changed to signed values.
79564
79565         And make the following changes as well:
79566         Fix copyright notice, as 1999 was missing.
79567         (verify): New macro.
79568         (strtoimax): Check sizes at compile-time, not run-time.
79569         Prefer strtol to strtoll if both work.
79570         (main): Remove; it was not that useful and was a pain to maintain.
79571
79572         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79573
79574 2001-08-31  Jim Meyering  <meyering@lucent.com>
79575
79576         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79577         Use an initial, malloc'd, buffer of length 128 rather than
79578         a statically allocated one of length 1024.
79579
79580 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79581
79582         Simplify code, partly by assuming autoconf 2.52 semantics.
79583
79584         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79585
79586         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79587         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79588         All uses removed.
79589         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79590         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79591         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79592         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79593         jm_AC_HEADER_INTTYPES_H.
79594         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79595
79596         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79597
79598         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79599         Quote first arg of AC_DEFUN.
79600         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79601         since they are needed to parse the include file even if we need
79602         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79603         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79604         but with opposite signedness.
79605
79606 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79607
79608         Merge 'exclude' changes from tar 1.13.22.
79609         This fixes one or two unlikely storage allocation overflow bugs,
79610         but doesn't change user-visible behavior otherwise.
79611
79612 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79613
79614         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79615         (jm_PREREQ_EXCLUDE): New macro.
79616
79617 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79618
79619         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79620         tm to be declared.
79621
79622 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79623
79624         * lib/hash.c: Remove '2001' from copyright notice.
79625
79626 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79627
79628         * lib/full-write.h: New file.
79629         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79630         * lib/full-write.c: Correct credits, as cccp.c no longer
79631         exists and anyway it was so heavily changed from the old cccp
79632         code as to be unrecognizable.  Include full-write.h.
79633         (full_write): Return size_t, with short writes meaning failure.
79634         All callers changed.  This fixes a bug with large buffers
79635         on 64-bit hosts.
79636         * lib/utime.c: Include full-write.h.
79637
79638 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79639
79640         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79641         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79642         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79643         Include if available.
79644         (<xalloc.h>): Include
79645         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79646         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79647         collide with FNM macros.
79648         (struct patopts): New struct.
79649         (struct exclude): Use it, as exclude patterns now come with options.
79650         (new_exclude): Support above changes.
79651         (new_exclude, add_exclude_file):
79652         Initial size must now be a power of two to simplify overflow checking.
79653         (free_exclude, fnmatch_no_wildcards): New function.
79654         (excluded_filename): No longer requires options arg, as the options
79655         are determined by add_exclude.  Now returns bool, not int.
79656         (excluded_filename, add_exclude):
79657         Add support for the fancy new exclusion options.
79658         (add_exclude, add_exclude_file): Now takes int options arg.
79659         Check for arithmetic overflow when computing sizes.
79660         (add_exclude_file): xrealloc might modify errno, so don't
79661         realloc until after errno might be used.
79662
79663         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79664         New macros.
79665         (free_exclude): New decl.
79666         (add_exclude, add_exclude_file): Now takes int options arg.
79667         (excluded_filename): No longer requires options arg, as the options
79668         are determined by add_exclude.  Now returns bool, not int.
79669
79670 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79671
79672         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79673
79674 2001-08-27  Jim Meyering  <meyering@lucent.com>
79675
79676         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79677
79678         * lib/version-etc.c (N_): Remove definition.
79679         Revert most of last change.
79680         Instead, simply don't mark the `Copyright...' string for translation.
79681         Based on advice from Paul Eggert.
79682
79683         * lib/strtoxmax.c: Tweak comment.
79684
79685 2001-08-26  Jim Meyering  <meyering@lucent.com>
79686
79687         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79688
79689         * m4/xstrtoimax.m4: New file.
79690         * m4/xstrtoumax.m4: Add comments explaining why we
79691         AC_REPLACE_FUNCS(strtol).
79692
79693 2001-08-26  Jim Meyering  <meyering@lucent.com>
79694
79695         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79696         of copyright with `%s' so translators don't get an untranslated
79697         message in 2002.
79698         (COPYRIGHT_YEAR): Define.
79699         (version_etc): Use fprintf rather than fputs.
79700         Suggestion from Ulrich Drepper.
79701
79702         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79703
79704         * lib/strtoll.c: New file, from GNU libc.
79705         * lib/xstrtoimax.c: New file.
79706
79707         * lib/xstrtol.h: Add xstrtoimax.
79708         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79709         * lib/strtoimax.c: New file.  Likewise, but first define
79710         STRTOUXMAX_SIGNED.
79711
79712         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79713         ...
79714         * lib/strtoxmax.c: ... then renamed to this.
79715
79716 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79717
79718         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79719         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79720         (jm_AC_TYPE_INTMAX_T): New macro.
79721         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79722
79723         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79724
79725         * m4/longlong.m4: Renamed from ulonglong.m4.
79726         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79727         * m4/uintmax_t.m4: Removed.
79728
79729 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79730
79731         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79732         Port to Solaris 8, where 'sed' requires a space after the 'r'
79733         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79734         Redirect output to $tmp just once.
79735
79736 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79737
79738         * lib/addext.c (<errno.h>): Include.
79739         (errno): Declare if not defined.
79740         (addext): Work correctly when pathconf returns -1 and leaves
79741         errno alone because there is no limit.  Also, work even if
79742         pathconf returns a value greater than SIZE_MAX.
79743
79744 2001-08-12  Jim Meyering  <meyering@lucent.com>
79745
79746         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79747         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79748         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79749         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79750         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79751         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79752         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79753         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79754         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79755         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79756         utime.m4, utimes.m4, xstrtoumax.m4:
79757         Quote the first argument in each use of AC_DEFUN.
79758
79759 2001-08-12  Jim Meyering  <meyering@lucent.com>
79760
79761         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79762         Simply `return getcwd (NULL, 0);'.
79763         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79764         Use 1300 as initial value for length, not PATH_MAX.
79765
79766         * lib/pathmax.h: Clean up cpp syntax.
79767
79768 2001-08-12  Jim Meyering  <meyering@lucent.com>
79769
79770         * lib/gettimeofday.c: New file.
79771         * lib/gtod.h: New file.
79772         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79773
79774 2001-08-05  Jim Meyering  <meyering@lucent.com>
79775
79776         * m4/jm-macros.m4: Require autoconf-2.52.
79777
79778 2001-08-04  Jim Meyering  <meyering@lucent.com>
79779
79780         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79781         stmt, to get in sync with glibc.
79782
79783 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79784
79785         The following changes are from gettext 0.10.39 as maintained by
79786         Bruno Haible.
79787
79788         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79789         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79790         with inverted sense.  All uses changed.
79791
79792         * lib/mbswidth.c: Don't include <limits.h>.
79793         Include <stdlib.h> and <string.h> unconditionally.
79794         (iswcntrl, mbsinit, ISCNTRL): New macros.
79795         (mbsnwidth): Use K&R style function declarations.
79796         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79797         can optimize it when MB_CUR_MAX == 1.
79798         The width of control characters is zero, not 1.
79799
79800 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79801
79802         The following changes are from gettext 0.10.39 as maintained by
79803         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79804
79805         * m4/codeset.m4: Upgrade to serial AM1.
79806         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79807         all uses changed.  Quote first arg of AC_DEFUN.
79808         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79809
79810         * m4/iconv.m4: Upgrade to serial AM2.
79811         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79812         Add --with-libconv-prefix.
79813         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79814         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79815         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79816         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79817         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79818
79819         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79820         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79821         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79822         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79823         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79824         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79825         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79826         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79827         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79828
79829         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79830         string.h any more.
79831
79832         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79833         not the default value.
79834
79835         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79836         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79837         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79838         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79839         Also check for iswcntrl, used for wcwidth fallback.
79840         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79841         to Autoconf 2.13.
79842
79843 2001-08-03  Jim Meyering  <meyering@lucent.com>
79844
79845         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79846         as it was in the original.  Reported by Paul Eggert.
79847
79848 2001-07-16  Jim Meyering  <meyering@lucent.com>
79849
79850         * m4/gettimeofday.m4: New file.
79851         Prompted by a report from Bernhard Baehr.
79852
79853 2001-07-15  Jim Meyering  <meyering@lucent.com>
79854
79855         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79856         stuff. Now it's in ../Makefile.cfg.
79857
79858 2001-07-15  Jim Meyering  <meyering@lucent.com>
79859
79860         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79861         (BUILT_SOURCES): Add unlocked-io.h.
79862         (io_functions): Define.
79863         (unlocked-io.h): New rule.
79864         (DISTCLEANFILES): Add unlocked-io.h.
79865         (all-local): Depend on unlocked-io.h, to ensure it is created.
79866
79867         * lib/unlocked-io.hin: New file
79868
79869         * lib/regex.c: Update from glibc.
79870
79871 2001-07-05  Jim Meyering  <meyering@lucent.com>
79872
79873         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79874         recommendation.
79875         (libfetish_a_SOURCES): Put all .h files here instead.
79876         Remove a thus-exposed (better checks in automake) duplicate and
79877         two unnecessary .h files.
79878
79879 2001-07-04  Jim Meyering  <meyering@lucent.com>
79880
79881         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79882         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79883         distcheck failure.
79884
79885 2001-07-02  Jim Meyering  <meyering@lucent.com>
79886
79887         The following changes were prompted by suggestions from Bruno Haible.
79888
79889         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79890         is now generated.
79891         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79892         definition of EXTRA_DIST.
79893         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79894         ensure that the generated file is created/updated whenever the list
79895         of $(unlocked_functions) is changed.
79896         (jm-glibc-io.m4): New rule.
79897         (unlocked-io.h): New rule -- currently unused.
79898
79899 2001-06-24  Jim Meyering  <meyering@lucent.com>
79900
79901         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79902         unmatched right bracket, rather than kludging it with an extra,
79903         falsely-matching quote in a comment.  Patch by Akim Demaille.
79904
79905 2001-06-11  Jim Meyering  <meyering@lucent.com>
79906
79907         * lib/regex.c: Update from GNU libc.
79908
79909 2001-05-27  Jim Meyering  <meyering@lucent.com>
79910
79911         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79912         Check for ut_type in struct utmp.
79913
79914 2001-05-27  Jim Meyering  <meyering@lucent.com>
79915
79916         * lib/readutmp.h (UT_TYPE): Define.
79917
79918 2001-05-24  Jim Meyering  <meyering@lucent.com>
79919
79920         * lib/argmatch.c: Include "quote.h".
79921         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79922         quote function.  Reported by Göran Uddeborg.
79923
79924 2001-05-22  Jim Meyering  <meyering@lucent.com>
79925
79926         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79927         now that we use the package-supplied version unconditionally.
79928         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79929
79930 2001-05-21  Jim Meyering  <meyering@lucent.com>
79931
79932         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79933         shell syntax errors.
79934
79935 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79936
79937         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79938
79939 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79940
79941         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79942         Don't bother to check library strftime, since
79943         we'll be using our own my_strftime function anyway.
79944         Define my_strftime instead of strftime.
79945
79946 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79947
79948         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79949         which is not yet declared.
79950
79951 2001-05-15  Jim Meyering  <meyering@lucent.com>
79952
79953         * m4/regex.m4: Use proper quoting so brackets appear in the test
79954         program.
79955         Reported by, and with help from, Bruno Haible.
79956
79957 2001-05-13  Jim Meyering  <meyering@lucent.com>
79958
79959         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79960         undefined.
79961
79962 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79963
79964         dirname code cleanup.  base_name now behaves more compatibly
79965         with POSIX basename when given file names that have trailing
79966         slashes, and similarly for dir_name.  Add new primitives
79967         base_len and dir_len.  Put the directory-name-related decls
79968         into dirname.h.
79969
79970         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79971         * lib/backupfile.c (base_name): Likewise.
79972         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79973         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79974         * lib/makepath.c (strip_trailing_slashes): Likewise.
79975         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79976         ISSLASH): Likewise.
79977         * lib/rename.c (strip_trailing_slashes): Likewise.
79978         * lib/same.c (base_name): Likewise.
79979         * lib/stripslash.c (ISSLASH): Likewise.
79980
79981         * lib/addext.c: Include <dirname.h> after size_t is defined.
79982         * lib/backupfile.c: Likewise.
79983
79984         * lib/addext.c (addext): Use base_len to trim redundant
79985         trailing slashes instead of doing it ourselves.
79986         But do not trim the last slash if it is not redundant.
79987
79988         * lib/backupfile.c (find_backup_file_name,
79989         max_backup_version): Use base_len instead of rolling it ourselves.
79990         Handle the case of "" and (on DOS) "C:" correctly.
79991
79992         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79993         needed. Include <string.h>, <dirname.h>.
79994         (base_name): Allow file names ending in slashes, other than names
79995         that are all slashes.  In this case, return the basename followed
79996         by the slashes.  This is more general, and can be used in places
79997         where the original base_name purposely had an assertion failure.
79998         (base_len): New function.
79999
80000         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
80001         Do not include <assert.h>; no longer needed.
80002         Include xalloc.h.
80003         (memrchr): Remove decl.
80004         (dir_name_r): Remove.
80005         (dir_len): Renamed from dirlen.  All callers changed.
80006         Rewrite in terms of base_name, for simplicity and consistency.
80007         (dir_name): Never return NULL.  All callers changed.
80008         Do not include <stdlib.h> in test program; no longer needed.
80009         return 0; is fine for test program.
80010
80011         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
80012         New macros.
80013         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
80014
80015         * lib/path-concat.c (path_concat): Use base_len to compute
80016         base length, not strlen; this means we cannot rely on memcpy
80017         to null-terminate.
80018
80019         * lib/same.c (STREQ): Remove.
80020         (same_name): Handle the case where the basename ends in trailing '/'.
80021
80022         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
80023         a slash was stripped.  Do not strip the last slash after a
80024         file system prefix.
80025
80026 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80027
80028         * lib/Makefile.am (libfetish_a_SOURCES):
80029         Add strftime.c, since we now compile it on all hosts.
80030
80031         * lib/strftime.c (my_strftime):
80032         Define to nstrftime if emacs, but only if my_strftime is not defined.
80033         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
80034         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
80035         Add one more extra argument: a nanoseconds value.
80036         All uses changed.
80037         (ns): New macro.
80038         (my_strftime function): Add %N format.
80039         (emacs_strftimeu): Renamed from emacs_strftime,
80040         with extra ut argument.
80041
80042 2001-05-09  Paul Eggert  <eggert@twinsun.com>
80043
80044         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
80045
80046 2001-04-21  Jim Meyering  <meyering@lucent.com>
80047
80048         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
80049         doesn't interfere.
80050
80051 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80052
80053         * m4/ftruncate.m4: Check for chsize.
80054         Link with ftruncate.o unconditionally if ftruncate is missing.
80055         This was required when cross-compiling to i586-mingw32msvc.
80056
80057 2001-04-08  Jim Meyering  <meyering@lucent.com>
80058
80059         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
80060         recomputed; that's necessary when the offset spans a DST transition.
80061         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
80062
80063 2001-04-02  Jim Meyering  <meyering@lucent.com>
80064
80065         * lib/regex.h, regex.c: Update from GNU libc.
80066
80067 2001-03-24  Jim Meyering  <meyering@lucent.com>
80068
80069         * m4/jm-macros.m4: Require autoconf-2.49d.
80070
80071 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
80072
80073         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
80074
80075 2001-03-19  Paul Eggert  <eggert@twinsun.com>
80076
80077         * lib/version-etc.c (version_etc_copyright): Update to 2001.
80078
80079 2001-03-17  Jim Meyering  <meyering@lucent.com>
80080
80081         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
80082         now that the version in autoconf is equivalent.
80083         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
80084
80085         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
80086         Suggestion from Akim Demaille.
80087
80088         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
80089         (jm_PREREQ_TEMPNAME): New function.
80090
80091 2001-03-16  Paul Eggert  <eggert@twinsun.com>
80092
80093         * lib/tempname.c (uint64_t): Define to uintmax_t if
80094         not defined, and if UINT64_MAX is not defined.
80095         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
80096         Reported by John David Anglin.
80097
80098 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
80099
80100         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
80101         resolve alias if codeset is empty.
80102         * lib/config.charset (BeOS): Use wildcard syntax.
80103
80104 2001-03-13  Jim Meyering  <meyering@lucent.com>
80105
80106         * lib/path-concat.c (path_concat)
80107         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
80108         concatenating e.g., `C:' and `foo'.
80109         From Bruno Haible.
80110
80111 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80112
80113         * lib/localcharset.c (locale_charset): Don't use
80114         setlocale(LC_CTYPE,NULL). Don't return NULL.
80115         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
80116
80117 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80118
80119         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
80120         support for DOS/DJGPP.
80121
80122 2001-03-01  Paul Eggert  <eggert@twinsun.com>
80123
80124         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
80125         lacks mkstemp.  Compile our own tempname.c if we compile our own
80126         mkstemp.c, as mkstemp relies on tempname.
80127
80128 2001-03-01  Jim Meyering  <meyering@lucent.com>
80129
80130         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
80131         AH_VERBATIM really does output its argument verbatim.
80132
80133 2001-02-28  Paul Eggert  <eggert@twinsun.com>
80134
80135         * lib/Makefile.am (libfetish_a_SOURCES):
80136         Add dup-safer.c, fopen-safer.c.
80137         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
80138
80139         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
80140         * lib/unistd-safer.h: New files.
80141
80142 2001-02-25  Paul Eggert  <eggert@twinsun.com>
80143
80144         The mkstemp replacement is taken from glibc 2.2.2, with some
80145         portability fixes for use outside glibc, as follows:
80146
80147         * lib/tempname.c (struct_stat64): New macro.
80148         (direxists, __gen_tempname): Use it.
80149         This avoids a portability problem with Solaris 8.
80150
80151         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
80152         (<stddef.h>, <stdint.h>, <string.h>):
80153         Include only if STDC_HEADERS || _LIBC.
80154         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
80155         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
80156         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
80157         (__set_errno): Define this macro if <errno.h> doesn't.
80158         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
80159         Define these macros if <stdio.h> doesn't.
80160         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
80161         Define these macros if <sys/stat.h>
80162         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
80163         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
80164         __xstat64): Define if not _LIBC.
80165         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
80166         (__gen_tempname): Invoke gettimeofday only if
80167         HAVE_GETTIMEOFDAY || _LIBC;
80168         otherwise, fall back on plain "time".
80169         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
80170
80171         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
80172
80173         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
80174
80175 2001-02-18  Paul Eggert  <eggert@twinsun.com>
80176
80177         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
80178
80179 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80180
80181         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
80182         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
80183         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
80184         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80185
80186 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80187
80188         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
80189         Remove workaround macros for hosts that have mbrtowc but not
80190         mbstate_t, as we now insist on proper declarations for both
80191         before using mbrtowc.
80192
80193 2001-02-17  Jim Meyering  <meyering@lucent.com>
80194
80195         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
80196         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
80197         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
80198         UnixWare 7.1.1.
80199
80200         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
80201         rather than AC_CACHE_VAL.
80202
80203 2001-02-17  Jim Meyering  <meyering@lucent.com>
80204
80205         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
80206         around included file name.
80207
80208         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
80209
80210         * lib/strftime.c: Update from GNU libc (the only changes were to
80211         comments).
80212
80213 2001-02-17  Jim Meyering  <meyering@lucent.com>
80214
80215         * lib/regex.c: Update from libc.
80216
80217 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
80218
80219         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
80220         clash.
80221
80222 2001-02-16  Paul Eggert  <eggert@twinsun.com>
80223
80224         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
80225         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
80226         Reported by Mark Hounschell via Paul Eggert.
80227
80228 2001-02-07  Jim Meyering  <meyering@lucent.com>
80229
80230         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
80231
80232 2001-02-05  Jim Meyering  <meyering@lucent.com>
80233
80234         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
80235         it includes the patch required for `large file' support with at least
80236         HP-UX's 10.20 /bin/cc.
80237
80238 2001-02-03  Jim Meyering  <meyering@lucent.com>
80239
80240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
80241         AS_IF, now that it works once again (mysteriously).
80242         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80243
80244 2001-01-30  Jim Meyering  <meyering@lucent.com>
80245
80246         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
80247         * m4/chown.m4: Rename conftestchown to conftest.chown.
80248         * m4/rename.m4: s/conftestdir/conftest.d1/ and
80249         s/conftestdir2/conftest.d2/.
80250         * m4/utimes.m4: s/conftestdata/conftest.data/
80251         Inspired by Pavel Roskin's change in autoconf.
80252
80253 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
80254
80255         * lib/config.charset: Update for FreeBSD 4.2.
80256
80257 2001-01-27  Jim Meyering  <meyering@lucent.com>
80258
80259         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
80260         a use of AS_IF.
80261         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80262
80263 2001-01-26  Jim Meyering  <meyering@lucent.com>
80264
80265         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
80266         quotearg.c includes it.
80267
80268 2001-01-26  Jim Meyering  <meyering@lucent.com>
80269
80270         * lib/quotearg.c: Include stddef.h.
80271         * lib/quote.c: Include stddef.h.
80272         Reported by Axel Kittenberger.
80273
80274         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
80275         line in double quotes so that it evokes a better diagnostic.
80276         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
80277         Reported by Axel Kittenberger.
80278
80279 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
80280
80281         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
80282         as if it was a `charset'.
80283
80284 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80285
80286         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
80287         has const.
80288
80289 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80290
80291         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
80292         to avoid a warning.  Add back 'const' to inptr.
80293
80294 2001-01-20  Jim Meyering  <meyering@lucent.com>
80295
80296         Be sure that headers are checked before used in code compiled
80297         for the type checks.
80298         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
80299         In place of that, invoke jm_CHECK_ALL_TYPES.
80300         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
80301         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
80302         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
80303         The check for ssize_t was mistakenly run before the test for unistd.h.
80304
80305         The configure-time check for stdbool.h was missing.
80306         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
80307         (jm_PREREQ_HASH): New function.
80308
80309 2001-01-17  Jim Meyering  <meyering@lucent.com>
80310
80311         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
80312         for autoconf-2.49c.
80313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
80314
80315 2001-01-16  Jim Meyering  <meyering@lucent.com>
80316
80317         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
80318         From Bruno Haible.
80319
80320 2001-01-14  Jim Meyering  <meyering@lucent.com>
80321
80322         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
80323         foo and bar.  Create conftestdir/ in the script, not in the C code.
80324         Remove directories in the script, not in the C code.
80325         Remove conftestdir{,2} before trying to create the directory.
80326         Make the entire configure script fail if the mkdir fails.
80327
80328 2001-01-14  Jim Meyering  <meyering@lucent.com>
80329
80330         * lib/rename.c: New file.  From Volker Borchert.
80331         Include stdlib.h, string.h or strings.h, and xalloc.h.
80332         Use strip_trailing_slashes rather than open-coding it.
80333
80334 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80335
80336         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80337
80338 2001-01-03  Jim Meyering  <meyering@lucent.com>
80339
80340         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80341         of local `inptr' to avoid warning with some system declarations of
80342         iconv.
80343
80344 2001-01-02  Volker Borchert  <bt@teknon.de>
80345
80346         * m4/rename.m4: New file.
80347         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80348
80349 2001-01-01  Jim Meyering  <meyering@lucent.com>
80350
80351         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80352         even on systems with utmpx.h.  It's necessary for the declaration of
80353         utmp's ut_user member.  Reported by Andreas Jaeger.
80354
80355         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80356         available. They are required for the declarations of getgrgid and
80357         getpwuid resp.
80358         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80359         Reported by Andreas Jaeger.
80360
80361 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80362
80363         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80364         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80365         so `make install' also works in VPATH builds.
80366
80367 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80368
80369         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80370         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80371         can be used in subdirectories.
80372
80373 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80374
80375         * lib/modechange.c: Do not assume that mode_t uses the
80376         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80377         the other-execute bit of FOO even if S_IXOTH != 1.
80378
80379         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80380         WOTH, XOTH, ALLM): New macros.
80381         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80382          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80383         Use them.
80384         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80385         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80386         (mode_compile):
80387         No need to use uintmax_t; unsigned long is long enough.
80388         Don't bother to get suffix since we don't use it.
80389
80390 2000-12-26  Jim Meyering  <meyering@lucent.com>
80391
80392         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80393         better with autoheader.
80394
80395 2000-12-24  Jim Meyering  <meyering@lucent.com>
80396
80397         * lib/hash.c (is_prime): Return explicit boolean values.
80398         (hash_get_first): Return NULL to appease Irix5.6's 89.
80399         Reported by Nelson Beebe.
80400
80401 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80402
80403         * lib/localcharset.c (locale_charset): Add support for Win32.
80404
80405 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80406
80407         * lib/physmem.h, lib/physmem.c: New files.
80408
80409         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80410         (noinst_HEADERS): Add physmem.h.
80411
80412         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80413         't' for compatibility with Solaris 8 sort.
80414
80415 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80416
80417         * lib/config.charset: Add support for BeOS.
80418
80419 2000-12-17  Jim Meyering  <meyering@lucent.com>
80420
80421         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80422         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80423
80424 2000-12-16  Jim Meyering  <meyering@lucent.com>
80425
80426         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80427         N and M) would have treated it like `chown N:N FILE'.
80428
80429         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80430
80431 2000-12-16  Jim Meyering  <meyering@lucent.com>
80432
80433         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80434         SHELLS_FILE to a file name that's useful on djgpp systems.
80435         Include stdlib.h.
80436         (ADDITIONAL_DEFAULT_SHELLS): Define.
80437         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80438         Based mostly on a patch from Prashant TR.
80439
80440 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80441
80442         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80443         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80444         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80445
80446 2000-12-08  Andreas Schwab  <schwab@suse.de>
80447
80448         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80449         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80450
80451 2000-12-07  Jim Meyering  <meyering@lucent.com>
80452
80453         * lib/stripslash.c (ISSLASH): Define.
80454         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80455         `/'.
80456         From Prashant TR.
80457
80458         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80459         (dir_name_r): Declare this function as static.
80460         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80461         manifest itself on a name containing a mix of slashes and
80462         backslashes.
80463         Make this function work with names starting with a DOS-style
80464         drive letter and colon prefix.
80465         (dir_name): Append `.' if necessary.
80466         Based mostly on patches from Prashant TR and Eli Zaretskii.
80467
80468         * lib/dirname.h (dir_name_r): Remove prototype.
80469
80470 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80471
80472         * m4/off_t-format.m4: Remove this file.
80473         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80474
80475 2000-12-06  Jim Meyering  <meyering@lucent.com>
80476
80477         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80478         replacement strtoull, we may well need the replacement strtoul, too.
80479         Check for declarations of strtoul and strtoull.
80480         Check for strtol.  Mainly as a cue to cause automake to include
80481         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80482         Check for limits.h -- strtol.c needs it.
80483
80484 2000-12-05  Jim Meyering  <meyering@lucent.com>
80485
80486         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80487
80488 2000-12-04  Jim Meyering  <meyering@lucent.com>
80489
80490         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80491         Also include memory.h, stdlib.h, unistd.h if appropriate.
80492         Reported by Andreas Jaeger (conflicting declaration of malloc).
80493
80494 2000-12-02  Jim Meyering  <meyering@lucent.com>
80495
80496         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80497         * m4/jm-macros.m4 (jm_MACROS): require it.
80498
80499 2000-12-02  Jim Meyering  <meyering@lucent.com>
80500
80501         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80502
80503 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80504
80505         * lib/memrchr.c: Include <config.h> before any system include file.
80506
80507 2000-11-30  Jim Meyering  <meyering@lucent.com>
80508
80509         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80510
80511 2000-11-30  Jim Meyering  <meyering@lucent.com>
80512
80513         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80514
80515 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80516
80517         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80518
80519 2000-11-26  Jim Meyering  <meyering@lucent.com>
80520
80521         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80522
80523 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80524
80525         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80526         size of (size_t) -1; it's not portable.
80527
80528 2000-11-17  Jim Meyering  <meyering@lucent.com>
80529
80530         * lib/strstr.c: Update from GNU libc.
80531
80532 2000-11-17  Akim Demaille  <akim@epita.fr>
80533
80534         * lib/obstack.h: Formatting changes.
80535         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80536         prevent type checking.
80537         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80538         cast the value to (void *): assigning a `foo *' to a `void *'
80539         variable is valid.
80540         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80541
80542 2000-11-16  Jim Meyering  <meyering@lucent.com>
80543
80544         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80545
80546 2000-11-11  Jim Meyering  <meyering@lucent.com>
80547
80548         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80549
80550 2000-11-10  Jim Meyering  <meyering@lucent.com>
80551
80552         * lib/obstack.h: Update from GNU libc.
80553         * lib/obstack.c: Likewise.
80554
80555 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80556
80557         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80558
80559 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80560
80561         * lib/getusershell.c (setusershell): Use rewind rather than
80562         fseek/fseeko, to avoid configuration hassles with fseeko.
80563         Don't bother opening SHELLS_FILE if shellstream is NULL;
80564         it's not necessary.
80565
80566 2000-11-05  Jim Meyering  <meyering@lucent.com>
80567
80568         * lib/makepath.h (make_dir): Declare.
80569         * lib/makepath.c (make_dir): Remove `static' attribute.
80570         Tweak a comment.
80571
80572 2000-11-04  Jim Meyering  <meyering@lucent.com>
80573
80574         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80575
80576 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80577
80578         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80579         last one in a bucket, advance to the next bucket.
80580
80581 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80582
80583         * lib/fnmatch.c: Do not comment out all the code if we are using
80584         the GNU C library, because in some cases we are replacing buggy
80585         code in the GNU C library itself.
80586
80587 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80588
80589         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80590         (regex_compile): Catch bogus \(\1\).
80591
80592 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80593
80594         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80595         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80596         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80597
80598 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80599
80600         * lib/error.h, getline.h, modechange.h:
80601         Remove "2000" from Copyright line, as the file hasn't been
80602         changed this year other than in the copyright notice.
80603
80604         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80605         was changed this year.
80606
80607 2000-10-29  Jim Meyering  <meyering@lucent.com>
80608
80609         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80610         renaming.
80611         * m4/ls-mntd-fs.m4: Likewise
80612
80613 2000-10-29  Jim Meyering  <meyering@lucent.com>
80614
80615         * lib/xstat.in: Fix grammar in comment.
80616
80617 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80618
80619         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80620         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80621         doesn't define __restrict_arr.
80622
80623 2000-10-28  Jim Meyering  <meyering@lucent.com>
80624
80625         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80626         (jm_PREREQ_MEMCHR): New function.
80627
80628 2000-10-28  Jim Meyering  <meyering@lucent.com>
80629
80630         * lib/memchr.c: Update from libc.
80631         Adjust for portability:
80632         [HAVE_STDLIB_H]: Include stdlib.h.
80633         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80634         Undef __memchr, too.
80635         [!weak_alias]: Define __memchr to memchr.
80636
80637         * lib/regex.c: Update from libc.
80638         * lib/regex.h: Likewise.
80639         * lib/getopt1.c: Likewise.
80640         * lib/memcmp.c: Likewise.
80641
80642         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80643         Avoid using fseek, when possible -- it's broken by design.
80644         Patch by Ulrich Drepper.
80645
80646 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80647
80648         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80649         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80650         Giving in to popular pressure to shut up the compiler with casts.
80651
80652 2000-10-26  Jim Meyering  <meyering@lucent.com>
80653
80654         * lib/strftime.c: Update from libc.
80655
80656 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80657
80658         * regex.c: More `unsigned char' -> `re_char' changes.
80659         Also change several `int' into `re_wchar_t'.
80660         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80661         (PUSH_FAILURE_POINTER): Don't cast any more.
80662         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80663         We want GCC to complain, since this piece of code makes
80664         re_match non-reentrant, which *should* be fixed.
80665         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80666         (EXTEND_BUFFER): Use RETALLOC.
80667         (SET_LIST_BIT): Don't cast.
80668         (re_wchar_t): New type.
80669         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80670         that those two functions will always properly return.
80671         (IMMEDIATE_QUIT_CHECK): Cast to void.
80672         (analyse_first): Use recursion rather than an explicit stack.
80673         (re_compile_fastmap): Can't fail anymore.
80674         (re_search_2): Don't check re_compile_fastmap for failure.
80675         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80676         Now also sets the new value (passed in a new argument).
80677         (re_match_2_internal): Use it.
80678         Also, use a new var `reg' of type size_t when looping through regs
80679         rather than reuse the inappropriate `mcnt'.
80680
80681 2000-10-25  Jim Meyering  <meyering@lucent.com>
80682
80683         * lib/obstack.c: Update from libc.
80684
80685 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80686
80687         * regex.c (regex_compile): Change the way of handling a range from
80688         a char less than 256 to a char not less than 256.
80689
80690 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80691
80692         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80693         NT-Emacs only.
80694         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80695         so that re_search functions only quit when callers expect them to.
80696
80697 2000-10-23  Jim Meyering  <meyering@lucent.com>
80698
80699         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80700         wrong.  That set_locale call must not have any side effects.
80701         From Paul Eggert.
80702
80703 2000-10-22  Jim Meyering  <meyering@lucent.com>
80704
80705         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80706         [CYCLIC]: Remove now-unused definition.
80707
80708         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80709         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80710         Suggestion from Ulrich Drepper.
80711
80712 2000-10-21  Jim Meyering  <meyering@lucent.com>
80713
80714         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80715         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80716         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80717
80718 2000-10-21  Jim Meyering  <meyering@lucent.com>
80719
80720         * lib/dirname.c (memrchr): Declare if necessary.
80721         (dir_name): Remove the restriction that there be no
80722         trailing slashes.  Now, this code skips past them, effectively
80723         ignoring them.
80724         [TEST_DIRNAME] (main): New unit tests.
80725
80726         * lib/memrchr.c: New file from GNU libc.
80727         Undef __memrchr, too.
80728         [!weak_alias]: Define __memrchr to memrchr.
80729         Guard weak_alias use with `#ifdef weak_alias'.
80730
80731 2000-10-21  Jim Meyering  <meyering@lucent.com>
80732
80733         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80734         (dir_name): Use dir_name_r.
80735         * lib/dirname.h (dir_name_r): Declare it.
80736
80737 2000-10-17  Jim Meyering  <meyering@lucent.com>
80738
80739         * lib/quote.h (PARAMS): Define and use.
80740         Reported by Akim Demaille.
80741
80742         * lib/getopt.c: Update from libc.
80743
80744 2000-10-16  Jim Meyering  <meyering@lucent.com>
80745
80746         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80747         setlocale.
80748         From Jan Fedak.
80749
80750 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80751
80752         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80753
80754 2000-09-25  Jim Meyering  <meyering@lucent.com>
80755
80756         * lib/md5.h (rol): Define (from GnuPG).
80757
80758         * lib/sha.c: Give credit (GnuPG) where due.
80759         (M): Use rol rather than open-coding it.
80760         Add a FIXME comment.
80761
80762 2000-09-21  Jim Meyering  <meyering@lucent.com>
80763
80764         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80765         Reported by Michael Stone.
80766
80767 2000-09-20  Jim Meyering  <meyering@lucent.com>
80768
80769         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80770         (noinst_HEADERS): Add sha.h.
80771         Based on code from Scott G. Miller and from GnuPG.
80772
80773 2000-09-18  Jim Meyering  <meyering@lucent.com>
80774
80775         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80776         LIBS. Otherwise, everyone ends up linking with -lelf for some
80777         configurations.
80778         Reported by Mike Stone.
80779
80780 2000-09-15  Jim Meyering  <meyering@lucent.com>
80781
80782         * lib/regex.c: Update from libc.
80783
80784 2000-09-10  Jim Meyering  <meyering@lucent.com>
80785
80786         * lib/getopt.c (_getopt_internal): Update from glibc.
80787
80788 2000-09-09  Jim Meyering  <meyering@lucent.com>
80789
80790         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80791         think it should be used as a general replacement for isascii.
80792         * lib/fnmatch.c: Likewise.
80793         * lib/mbswidth.c: Likewise
80794         * lib/regex.c: Likewise.
80795
80796         Don't use atoi.
80797         * lib/userspec.c: Include sys/param.h and limits.h.
80798         Include xstrtol.h.
80799         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80800         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80801         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80802         UID, GID.  Check range.
80803
80804 2000-09-06  Jim Meyering  <meyering@lucent.com>
80805
80806         * lib/getopt.c (_getopt_internal): Update from glibc.
80807
80808 2000-08-30  Jim Meyering  <meyering@lucent.com>
80809
80810         * lib/strftime.c: Merge in changes from GNU libc.
80811
80812 2000-08-26  Jim Meyering  <meyering@lucent.com>
80813
80814         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80815         * m4/fpending.m4: New file.
80816
80817 2000-08-26  Jim Meyering  <meyering@lucent.com>
80818
80819         * lib/closeout.c: Include "__fpending.h".
80820         (close_stdout_status): Return right away if there's nothing to flush.
80821
80822         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80823         * lib/__fpending.c: New file.
80824         * lib/__fpending.h: New file.
80825
80826 2000-08-20  Jim Meyering  <meyering@lucent.com>
80827
80828         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80829         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80830         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80831
80832 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80833
80834         Improve fileutils installation on systems where running
80835         programs (like install) can't be unlinked.
80836         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80837         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80838
80839 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80840
80841         Standardize on "memory exhausted" instead of "Memory exhausted"
80842         or "virtual memory exhausted".
80843         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80844         "virtual memory exhausted".
80845         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80846         our own message.
80847         * lib/userspec.c (parse_user_spec): Likewise.
80848         * lib/bumpalloc.h: comment fix
80849         * lib/same.c, userspec.c: Include xalloc.h.
80850
80851         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80852         not char *const and pointing to a constant array.
80853         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80854         (xrealloc): Comment fix.
80855
80856         * lib/userspec.c (parse_user_spec):
80857         Don't translate a message until just before returning,
80858         to avoid unnecessary translation.
80859
80860 2000-08-07  Jim Meyering  <meyering@lucent.com>
80861
80862         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80863         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80864         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80865         getgroups.c, gethostname.c, getopt.h, group-member.c,
80866         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80867         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80868         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80869         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80870         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80871         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80872         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80873         yesno.c: Back out Copyright date changes for each file with no change
80874         this year.  This eases coordination with other programs using the same
80875         source code modules.  From Paul Eggert.
80876
80877 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80878
80879         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80880         not char, for compatibility with glibc 2.1.3 strftime.c.
80881
80882 2000-08-03  Greg McGary  <greg@mcgary.org>
80883
80884         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80885         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80886         (EXTEND_BUFFER): Use them.
80887
80888 2000-08-01  Jim Meyering  <meyering@lucent.com>
80889
80890         * lib/dirname.c (ISSLASH): Define.
80891         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80892         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80893         both `\' and `/' may be use as path separators.
80894         Based on a patch from Prashant TR.
80895
80896 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80897
80898         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80899         slot vector a constant, since it might get modified.
80900
80901 2000-07-31  Jim Meyering  <meyering@lucent.com>
80902
80903         * lib/xmalloc.c: Use `virtual memory exhausted', not
80904         `Memory exhausted'.
80905         * lib/obstack.c (print_and_abort): Likewise.
80906
80907 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80908
80909         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80910         buffer, so that the caller can always quote one small
80911         component of a "memory exhausted" message in slot 0.
80912         From a suggestion by Jim Meyering.
80913
80914 2000-07-30  Jim Meyering  <meyering@lucent.com>
80915
80916         * lib/makepath.c (make_path): Quote the other instance, too.
80917
80918         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80919         (STATIC_BUF_SIZE): Define.
80920         (quotearg_n_options): Use only statically allocated storage when
80921         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80922         than STATIC_BUF_SIZE.
80923
80924 2000-07-29  Jim Meyering  <meyering@lucent.com>
80925
80926         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80927         * lib/dirname.c (dir_name): Likewise.
80928
80929         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80930         `/'.
80931
80932         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80933         (dir_name): Assert that there are no trailing slashes.
80934
80935 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80936
80937         * lib/mbswidth.h (mbswidth): Add a flags argument.
80938         (mbswidth): New declaration.
80939         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80940         * lib/mbswidth.c (mbswidth): Add a flags argument.
80941         (mbsnwidth): New function.
80942
80943 2000-07-24  Jim Meyering  <meyering@lucent.com>
80944
80945         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80946
80947 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80948
80949         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80950
80951 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80952
80953         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80954         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80955         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80956         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80957         invoke multibyte primitives.
80958
80959 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80960
80961         * lib/quotearg.c:
80962         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80963         so that mbstate_t is always defined.
80964
80965         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80966         be 1 in at least one GCC installation, and this configuration
80967         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80968         performance on hosts that have mbrtowc but have only unibyte
80969         locales, but I assume these hosts are rare.
80970
80971 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80972
80973         * lib/mbswidth.c (_XOPEN_SOURCE):
80974         Don't define; this causes problems on Solaris 7.
80975         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80976
80977 2000-07-23  Jim Meyering  <meyering@lucent.com>
80978
80979         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80980         too: getgrgid, getpwuid, getuid.
80981
80982 2000-07-23  Jim Meyering  <meyering@lucent.com>
80983
80984         * lib/basename.c (base_name): Add an assertion.
80985
80986 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80987
80988         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80989         shadow its mbsinit function.
80990
80991 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80992
80993         * lib/mbswidth.h: New file.
80994         * lib/mbswidth.c: New file.
80995         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80996         (noinst_HEADERS): Add mbswidth.h.
80997
80998 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80999
81000         * lib/config.charset: Add support for FreeBSD. Improve support for
81001         HP-UX and IRIX 6.
81002
81003 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
81004
81005         * m4/mbswidth.m4: New file.
81006         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
81007
81008 2000-07-15  Jim Meyering  <meyering@lucent.com>
81009
81010         * lib/makepath.c: Include quote.h.
81011         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
81012         corresponding argument in a `quote (...)' call.
81013         Give better diagnostics.
81014
81015         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
81016         (noinst_HEADERS): Add quote.h.
81017
81018         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
81019         from tar's src/misc.c.
81020         * lib/quote.h: New file.  Prototypes for same.
81021
81022 2000-07-14  Paul Eggert  <eggert@twinsun.com>
81023
81024         From a suggestion by Bruno Haible.
81025         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
81026         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
81027         to decide whether to define the BeOS workaround macro;
81028         this adjusts to the change to AC_MBSTATE_T.
81029
81030 2000-07-14  Jim Meyering  <meyering@lucent.com>
81031
81032         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
81033         jm_AC_TYPE_UINTMAX_T.
81034
81035 2000-07-13  Paul Eggert  <eggert@twinsun.com>
81036
81037         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
81038
81039         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
81040         quotearg_buffer_restyled): Add support for
81041         clocale_quoting_style.  Undo previous change to
81042         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
81043         and "{RIGHT QUOTATION MARK}" msgids.
81044
81045 2000-07-10  Paul Eggert  <eggert@twinsun.com>
81046
81047         From a suggestion by Bruno Haible.
81048         * m4/mbstate_t.m4 (AC_MBSTATE_T):
81049         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
81050         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
81051         and mbstate_t, to a single-part test that simply defines mbstate_t.
81052         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
81053         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
81054
81055 2000-07-10  Jim Meyering  <meyering@lucent.com>
81056
81057         * m4/strerror_r.m4: Mirror the correction made in autoconf.
81058
81059         * m4/gnu-source.m4: Output to confdefs.h directly.
81060         Suggestion from Akim Demaille.
81061
81062 2000-07-09  Paul Eggert  <eggert@twinsun.com>
81063
81064         The old behavior of quoting `like this' doesn't look good with
81065         newer, ISO-style fonts.  See:
81066         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
81067
81068         Instead, quote "like this" by default.  Let the translator
81069         tailor the locale-specific quoting behavior by providing
81070         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
81071
81072         * lib/quotearg.c (N_): New macro.
81073         (gettext_default): New function.
81074         (quotearg_buffer_restyled): Use
81075         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
81076         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
81077
81078 2000-07-09  Jim Meyering  <meyering@lucent.com>
81079
81080         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
81081         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
81082
81083         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
81084         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
81085
81086 2000-07-09  Jim Meyering  <meyering@lucent.com>
81087
81088         * lib/Most files: Update copyright dates to include 2000.
81089
81090 2000-07-08  Jim Meyering  <meyering@lucent.com>
81091
81092         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
81093         if not defined.
81094         (xgethostname): Remove now-unnecessary #ifdef.
81095         Move declaration of `err' into loop where it's used.
81096
81097 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81098         and Bruno Haible  <haible@clisp.cons.org>
81099
81100         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
81101         only if the test for an object-type mbstate_t fails.  This
81102         prevents us from mistakenly reporting that mbstate_t is a
81103         system object type after we "#define mbstate_t int" to work
81104         around its lack.
81105
81106 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81107         and Bruno Haible  <haible@clisp.cons.org>
81108
81109         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
81110
81111 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81112
81113         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
81114         to strerror_r.
81115         Include <ctype.h> for use of isalpha.
81116
81117 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81118
81119         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
81120         by allocating a larger buffer. Test the gethostname return value for
81121         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
81122         returns an error and ENAMETOOLONG isn't defined.
81123
81124 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81125
81126         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
81127         dimension.
81128
81129 2000-07-04  Jim Meyering  <meyering@lucent.com>
81130
81131         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
81132         of the deprecated AC_CHECKING.
81133
81134 2000-07-04  Jim Meyering  <meyering@lucent.com>
81135
81136         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
81137         Reported by Bruno Haible.
81138
81139 2000-07-04  Jim Meyering  <meyering@lucent.com>
81140
81141         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
81142         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
81143         lacks mbrtowc.
81144
81145 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81146
81147         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
81148         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
81149
81150 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81151         and Bruno Haible  <haible@clisp.cons.org>
81152
81153         * lib/quotearg.c (mbrtowc):
81154         Assign to *pwc, and return 1 only if result is nonzero.
81155         (iswprint): Use ISPRINT when substituting our own mbrtowc.
81156
81157 2000-07-03  Jim Meyering  <meyering@lucent.com>
81158
81159         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
81160
81161 2000-07-03  Jim Meyering  <meyering@lucent.com>
81162
81163         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
81164         This is necessary to get a definition of e.g., UTMP_FILE on
81165         HP-UX 10.20.
81166         From Bob Proulx.
81167
81168 2000-07-02  Jim Meyering  <meyering@lucent.com>
81169
81170         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
81171
81172         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
81173         AC_LIBOBJ(function_name).
81174         * m4/chown.m4: Likewise.
81175         * m4/fnmatch.m4: Likewise.
81176         * m4/ftruncate.m4: Likewise.
81177         * m4/getgroups.m4: Likewise.
81178         * m4/getline.m4: Likewise.
81179         * m4/group-member.m4: Likewise.
81180         * m4/jm-macros.m4: Likewise.
81181         * m4/lstat.m4: Likewise.
81182         * m4/malloc.m4: Likewise.
81183         * m4/memcmp.m4: Likewise.
81184         * m4/nanosleep.m4: Likewise.
81185         * m4/putenv.m4: Likewise.
81186         * m4/realloc.m4: Likewise.
81187         * m4/regex.m4: Likewise.
81188         * m4/stat.m4: Likewise.
81189         * m4/strftime.m4: Likewise.
81190
81191 2000-07-02  Jim Meyering  <meyering@lucent.com>
81192
81193         * lib/quotearg.c (mbstate_t): Don't define here.
81194
81195 2000-07-02  Jim Meyering  <meyering@lucent.com>
81196
81197         * lib/nanosleep.c (SIGCONT): Define if not already defined.
81198
81199 2000-07-01  Jim Meyering  <meyering@lucent.com>
81200
81201         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
81202
81203 2000-07-01  Jim Meyering  <meyering@lucent.com>
81204
81205         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
81206         problem.
81207
81208 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81209
81210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
81211         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
81212
81213 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81214
81215         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
81216         per change in ../m4/ls-mntd-fs.m4.
81217         (read_filesystem_list): Ignore symbolic links.
81218
81219 2000-06-29  Jim Meyering  <meyering@lucent.com>
81220
81221         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
81222         for declaration of strcmp.
81223
81224         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
81225
81226         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
81227         Avoid warning by casting result to `char *' to remove `const'.
81228
81229 2000-06-28  Jim Meyering  <meyering@lucent.com>
81230
81231         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
81232         included by quotearg.c, for which we perform this test.  From
81233         Bruno Haible.
81234
81235 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81236
81237         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
81238         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
81239         <utmpx.h> exists, put readutmp.o into LIBOBJS.
81240
81241 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81242
81243         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
81244
81245 2000-06-26  Paul Eggert  <eggert@twinsun.com>
81246
81247         savedir now sets errno on failure and invokes xmalloc to get memory.
81248         Fix a couple of other minor bugs while we're at it.
81249
81250         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
81251         (NAMLEN): Remove macro.
81252         (malloc, realloc): Remove decls.
81253         (stpcpy): Likewise.
81254         ("xalloc.h"): Include.
81255         (NAME_SIZE_DEFAULT): New macro.
81256         (savedir): Use xmalloc / xrealloc to allocate memory.
81257         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
81258         Skip "" directory entries.
81259         Use strlen to calculate directory entry length, since the old method
81260         is rarely used these days and isn't worth supporting.
81261         Don't use a pointer after freeing it.
81262         Check for integer overflow when calculating allocation size.
81263         Use memcpy to copy entries, instead of stpcpy.
81264         Set errno properly when returning NULL.
81265         Check for readdir error.
81266
81267 2000-06-26  Jim Meyering  <meyering@lucent.com>
81268
81269         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
81270
81271 2000-06-25  Jim Meyering  <meyering@lucent.com>
81272
81273         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
81274         Linux header bug when _XOPEN_SOURCE is defined to 500.
81275
81276 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81277
81278         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
81279         deficiency.
81280
81281 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81282
81283         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
81284         Include xalloc.h.
81285         Don't include <stdlib.h>.  Don't declare malloc, realloc.
81286
81287 2000-06-24  Jim Meyering  <meyering@lucent.com>
81288
81289         * m4/strerror_r.m4: Revive this file -- to try out an experimental
81290         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
81291         for which strerror does return char*, but which lacks a conveniently
81292         accessible declaration of the function.  If the compile-test says
81293         strerror_r doesn't work, then resort to a `run'-test that works on
81294         BeOS and segfaults on DEC Unix.
81295
81296 2000-06-24  Jim Meyering  <meyering@lucent.com>
81297
81298         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
81299
81300 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81301
81302         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
81303         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
81304
81305 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81306
81307         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
81308         (mbrtowc, mbstate_t): Define substitutes if
81309         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
81310         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
81311         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
81312
81313 2000-06-23  Jim Meyering  <meyering@lucent.com>
81314
81315         * m4/afs.m4: Add missing AC_MSG_RESULT.
81316         Reported by Bruno Haible.
81317
81318         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
81319         Suggestion from Bruno Haible.
81320
81321 2000-06-23  Jim Meyering  <meyering@lucent.com>
81322
81323         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
81324
81325 2000-06-21  Jim Meyering  <meyering@lucent.com>
81326
81327         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
81328
81329 2000-06-21  Jim Meyering  <meyering@lucent.com>
81330
81331         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81332         (noinst_HEADERS): Add getstr.h.
81333
81334         * lib/getline.c (getstr): Move into a separate file.
81335         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81336         the following changes: new parameter, delim2; both delim[12]
81337         parameters have type `int', not `char'.  The latter would lose
81338         with 8-bit delimiters.
81339         * lib/getstr.h: New file.
81340
81341 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81342
81343         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81344         than 1024, return a memory chunk of least possible size, instead
81345         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81346         Use free/xmalloc instead of xrealloc to avoid copying for very long
81347         paths.
81348
81349 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81350
81351         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81352         the empty string.
81353
81354 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81355
81356         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81357         address, not strdup.  Include <stdlib.h> and don't declare free().
81358
81359 2000-06-19  Jim Meyering  <meyering@lucent.com>
81360
81361         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81362
81363 2000-06-18  Jim Meyering  <meyering@lucent.com>
81364
81365         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81366
81367         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81368         `checking whether...' message to be consistent with that of the
81369         lstat test.
81370
81371 2000-06-18  Jim Meyering  <meyering@lucent.com>
81372
81373         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81374         Besides, these days every porting target provides a mkdir function.
81375
81376         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81377         needed. (this snippet comes from src/system.h).
81378
81379 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81380
81381         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81382
81383 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81384
81385         * lib/human.c (adjust_value): New function.
81386         (human_readable_inexact): Apply rounding style even when
81387         printing approximate values.
81388
81389 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81390
81391         * lib/human.c (human_readable_inexact): Allow an input block
81392         size that is not a multiple of the output block size, and vice versa.
81393         Reported by Piergiorgio Sartor.
81394
81395 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81396
81397         * lib/getdate.y (get_date): Apply relative times after time
81398         zone indicator, not before.  Reported by Todd A. Jacobs.
81399
81400 2000-06-13  Jim Meyering  <meyering@lucent.com>
81401
81402         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81403
81404         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81405
81406 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81407
81408         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81409
81410 2000-06-12  Jim Meyering  <meyering@lucent.com>
81411
81412         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81413         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81414         optional argument.
81415         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81416         the optional argument, `lib'.
81417
81418 2000-06-08  Jim Meyering  <meyering@lucent.com>
81419
81420         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81421
81422 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81423
81424         Rewrite largefile configuration so that we don't need to run
81425         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81426         AC_CANONICAL_HOST in configure.in -- jmm]
81427
81428         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81429         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81430         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81431         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81432         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81433         All uses changed.
81434         Instead of inspecting the output of getconf, try to compile the
81435         test program without and with the macro definition.
81436         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81437         for getconf.  Instead, check for the needed flags by compiling
81438         test programs.
81439
81440 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81441
81442         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81443
81444 2000-06-04  Jim Meyering  <meyering@lucent.com>
81445
81446         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81447         SunOS 4.1.4 for which gid_t is an unsigned type.
81448
81449 2000-06-03  Jim Meyering  <meyering@lucent.com>
81450
81451         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81452         now that autoconf requires that.
81453
81454         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81455         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81456         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81457
81458 2000-06-03  Jim Meyering  <meyering@lucent.com>
81459
81460         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81461
81462 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81463
81464         * m4/glibc21.m4: New file.
81465         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81466
81467 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81468
81469         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81470         newer, don't install charset.alias.
81471         * lib/config.charset: Change the Linux/glibc rules so they become empty
81472         on glibc-2.1 or newer.
81473
81474 2000-06-02  Jim Meyering  <meyering@lucent.com>
81475
81476         * lib/mountlist.c: Back out last change.  Instead, do this...
81477         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81478         me_dummy member using the same `ignore'-testing code.
81479         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81480         fs_type strings.
81481         From Mark D. Roth.
81482
81483 2000-05-29  Jim Meyering  <meyering@lucent.com>
81484
81485         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81486         mounts with the `ignore' attribute.  Based on a patch from
81487         Mark D. Roth.
81488
81489 2000-05-28  Jim Meyering  <meyering@lucent.com>
81490
81491         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81492         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81493         * m4/stat.m4: Likewise.
81494         * m4/lstat.m4: Likewise.
81495         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81496
81497         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81498         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81499
81500 2000-05-26  Jim Meyering  <meyering@lucent.com>
81501
81502         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81503
81504 2000-05-24  Jim Meyering  <meyering@lucent.com>
81505
81506         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81507         autoconf requires that.
81508         * m4/lib-check.m4: Likewise.
81509         * m4/jm-macros.m4: Likewise.
81510         * m4/strftime.m4: Likewise.
81511
81512         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81513         AC_CHECK_DECLS, now that autoconf requires that.
81514
81515 2000-05-22  Jim Meyering  <meyering@lucent.com>
81516
81517         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81518         * m4/lstat.m4: Likewise.
81519
81520 2000-05-22  Jim Meyering  <meyering@lucent.com>
81521
81522         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81523
81524 2000-05-20  Jim Meyering  <meyering@lucent.com>
81525
81526         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81527         (jm_PREREQ): Use it.
81528
81529 2000-05-18  Jim Meyering  <meyering@lucent.com>
81530
81531         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81532         back, too, since it may have been modified by allocate_entry.
81533         (hash_delete): Rewrite to use neither the assignment operator
81534         nor the comma operator in an if-expression.
81535
81536 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81537
81538         * lib/closeout.c:
81539         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81540         Remove; no longer needed.
81541         "quotearg.h": Add include.
81542         (file_name): Do not bother to explicitly initialize to NULL; it's less
81543         efficient on some hosts.
81544         (close_stdout_status): Remove test as to whether stdout was already
81545         closed; it breaks for the case "echo x | sort >&-".
81546         Quote file name colons.
81547         Do not assume that _("write error") lacks format strings.
81548
81549 2000-05-15  Jim Meyering  <meyering@lucent.com>
81550
81551         * lib/version-etc.c (version_etc_copyright): Update the copyright
81552         string used in all --version output.
81553
81554 2000-05-14  Jim Meyering  <meyering@lucent.com>
81555
81556         * lib/closeout.c (close_stdout_set_file_name): New function.
81557         (close_stdout_status): Use new file-scoped global.
81558         Return right away if fstat says the stdout file descriptor is invalid.
81559         * lib/closeout.h (close_stdout_set_file_name): Declare.
81560
81561 2000-05-10  Jim Meyering  <meyering@lucent.com>
81562
81563         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81564         (close_stdout_set_status): New function.
81565         * lib/closeout.h (close_stdout_set_status): Declare.
81566
81567 2000-05-09  Jim Meyering  <meyering@lucent.com>
81568
81569         * m4/gettext.m4: Rename this...
81570         * m4/libintl.m4: ...to this.
81571
81572 2000-05-08  Jim Meyering  <meyering@lucent.com>
81573
81574         * lib/long-options.c: Don't include closeout.h.
81575         (parse_long_options): Don't call close_stdout for --version.
81576
81577 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81578
81579         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81580         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81581         2.1.3 bug.  This avoids a clash when files like regex.c define
81582         _GNU_SOURCE.
81583
81584 2000-05-06  Jim Meyering  <meyering@lucent.com>
81585
81586         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81587         (AC_REPLACE_FUNCS): Add strnlen.
81588
81589         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81590         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81591
81592         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81593         AC_SEARCH_LIBS call for nanosleep.
81594         (LIB_NANOSLEEP): Set and AC_SUBST.
81595
81596 2000-05-06  Jim Meyering  <meyering@lucent.com>
81597
81598         * lib/strnlen.c: Undefine __strnlen and strnlen.
81599         [!weak_alias]: Define __strnlen to strnlen.
81600
81601         * lib/atexit.c: New file, from libiberty.
81602
81603 2000-05-06  Jim Meyering  <meyering@lucent.com>
81604
81605         * lib/closeout.c (close_stdout_status): Also check for errors on the
81606         stderr stream.
81607
81608 2000-05-05  Jim Meyering  <meyering@lucent.com>
81609
81610         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81611         AC_SEARCH_LIBS call for clock_gettime.
81612         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81613
81614         * m4/search-libs.m4: Update from autoconf.
81615
81616         su doesn't work on Solaris 2.6.
81617         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81618         <shadow.h>.  Reported by Dragos Harabor.
81619
81620 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81621
81622         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81623         memcpy instead of xmalloc, xrealloc, path_concat.
81624         (locale_charset): Treat empty environment variables as absent.
81625         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81626
81627 2000-05-04  Jim Meyering  <meyering@lucent.com>
81628
81629         * lib/getopt.c: Update from glibc.
81630         * lib/obstack.c: Likewise.
81631         * lib/obstack.h: Likewise.
81632         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81633         file
81634
81635         * lib/regex.h: Likewise.
81636         * lib/strndup.c: Likewise.
81637         * lib/strnlen.c: New file, from glibc.
81638
81639 2000-05-03  Jim Meyering  <meyering@lucent.com>
81640
81641         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81642
81643 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81644
81645         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81646         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81647         compile-time test, rather than inspecting host and OS, to
81648         decide whether to define _LARGEFILE_SOURCE.
81649
81650 2000-05-01  Jim Meyering  <meyering@lucent.com>
81651
81652         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81653
81654         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81655         Based on a patch from Bruno Haible.
81656
81657 2000-05-01  Jim Meyering  <meyering@lucent.com>
81658
81659         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81660
81661 2000-04-29  Jim Meyering  <meyering@lucent.com>
81662
81663         * lib/path-concat.c: Declare strdup only if it's not defined.
81664         * lib/canon-host.c: Likewise.
81665
81666 2000-04-28  Jim Meyering  <meyering@lucent.com>
81667
81668         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81669         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81670         is included first, then limits.h is included by locale.h by libintl.h.
81671         From John David Anglin.
81672
81673 2000-04-25  Jim Meyering  <meyering@lucent.com>
81674
81675         * lib/makepath.c (S_IRWXUGO): Define.
81676         (make_path): Always perform explicit chmod if MODE specifies any
81677         of the `special' permission bits.  Prompted by a bug report against
81678         install from Mate Wierdl and Joost van Baal.
81679
81680 2000-04-18  Jim Meyering  <meyering@lucent.com>
81681
81682         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81683         (jm_PREREQ): Use it.
81684
81685 2000-04-18  Jim Meyering  <meyering@lucent.com>
81686
81687         * lib/README: New file.
81688
81689         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81690         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81691
81692 2000-04-17  Jim Meyering  <meyering@lucent.com>
81693
81694         Get it right :-)
81695         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81696         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81697         Suggestion from Akim Demaille.
81698
81699 2000-04-17  Jim Meyering  <meyering@lucent.com>
81700
81701         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81702         the definition of it to rpl_strftime also defined-away the system's
81703         declaration.
81704
81705 2000-04-15  Jim Meyering  <meyering@lucent.com>
81706
81707         Use `C' to denote so-called `contiguous' files, the same way
81708         that tar does.
81709         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81710         (ftypelet): Use S_ISCTG.
81711         From Michael Deutschmann.
81712
81713 2000-04-14  Jim Meyering  <meyering@lucent.com>
81714
81715         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81716         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81717         clobbered.
81718
81719 2000-04-14  Jim Meyering  <meyering@lucent.com>
81720
81721         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81722
81723 2000-04-13  Jim Meyering  <meyering@lucent.com>
81724
81725         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81726         AH_VERBATIM to insert required #ifndef into config.h.in.
81727         Suggestion from Akim Demaille.
81728
81729 2000-04-12  Jim Meyering  <meyering@lucent.com>
81730
81731         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81732         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81733         Christian Krackowizer.
81734
81735         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81736         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81737         (AC_SYS_LARGEFILE): Require.
81738         (AM_C_PROTOTYPES): Require.
81739
81740 2000-04-08  Jim Meyering  <meyering@lucent.com>
81741
81742         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81743         names don't conflict.  Reported by Eli Zaretskii.
81744
81745 2000-04-07  Jim Meyering  <meyering@lucent.com>
81746
81747         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81748         sys/types.h, to work around system header problems on AIX 3.2.5.
81749         From Bruno Haible.
81750
81751 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81752
81753         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81754         bug.  Deal with the different error behavior of Irix iconv.
81755
81756 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81757
81758         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81759         IRIX if the installer said otherwise.
81760
81761 2000-04-05  Jim Meyering  <meyering@lucent.com>
81762
81763         Portability tweaks required for ultrix4.3.
81764         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81765         (jm_CHECK_DECLS): Add getutent to the list of functions.
81766         (_jm_DECL_HEADERS): Add utmpx.h.
81767         From John David Anglin.
81768
81769         * m4/strftime.m4: Back out the 2000-04-02 change.
81770         Instead of that change, simply undefine putenv in the test program.
81771
81772 2000-04-05  Jim Meyering  <meyering@lucent.com>
81773
81774         Portability tweaks required for ultrix4.3.
81775         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81776         getutent.
81777         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81778         * lib/canon-host.c: Declare strdup.
81779         * lib/path-concat.c: Likewise.
81780         From John David Anglin.
81781
81782 2000-04-04  Jim Meyering  <meyering@lucent.com>
81783
81784         Be more DOS 8.3-friendly.
81785         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81786         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81787         * lib/Makefile.am: Reflect renaming.
81788         Reported by Eli Zaretskii.
81789
81790         Use a temporary file name that won't clash with `charset.alias'
81791         in the DOS 8.3 name space.
81792         * lib/Makefile.am (charset_tmp): Define.
81793         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81794         (uninstall-local): Likewise.
81795         Reported by Eli Zaretskii.
81796
81797 2000-04-03  Jim Meyering  <meyering@lucent.com>
81798
81799         * m4/gettext.m4: Fix typo in comment.
81800
81801         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81802         textutils/configure.in).  Suggestion from Paul Eggert.
81803         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81804
81805 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81806
81807         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81808         variable in the shell rather than using putenv, which isn't
81809         portable.  This avoids the configure-time inter-test dependency
81810         on the potentially-renamed putenv function.
81811
81812 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81813
81814         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81815         before checking struct stat.st_blksize, so that
81816         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81817
81818 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81819
81820         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81821         since strftime.c uses HAVE_STRFTIME to decide whether to use
81822         the underlying strftime.
81823
81824 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81825
81826         * lib/time/strftime.c (my_strftime): Make sure we call the system
81827         strftime, not ourselves, when invoking the underlying strftime.
81828
81829 2000-03-24  Jim Meyering  <meyering@lucent.com>
81830
81831         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81832         (charset_alias): Define.
81833         (install-exec-local): Factor out common code.
81834         (uninstall-local): Split lines longer than 80.
81835         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81836         (SUFFIXES): Define.
81837         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81838         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81839
81840 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81841
81842         * lib/config.charset: Output a line containing "Packages using this
81843         file".
81844         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81845         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81846         ref-del.sed): New rules.
81847
81848 2000-03-17  Jim Meyering  <meyering@lucent.com>
81849
81850         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81851         Otherwise, include <strings.h>
81852
81853 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81854
81855         * lib/unicodeio.c (utf8_wctomb): New function.
81856         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81857         format instead of in UCS-4 with platform dependent endianness.
81858
81859 2000-03-10  Jim Meyering  <meyering@lucent.com>
81860
81861         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81862         From Marco Franzen.
81863
81864 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81865
81866         * lib/savedir.c (savedir): Work even if directory size is
81867         negative; this can happen with some screwy NFS configurations.
81868
81869 2000-03-06  Jim Meyering  <meyering@lucent.com>
81870
81871         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81872         if it's NULL (because we ran out of memory).  From Bruno Haible.
81873
81874 2000-03-05  Jim Meyering  <meyering@lucent.com>
81875
81876         * lib/localcharset.c ("path-concat.h"): Include.
81877         (get_charset_aliases): Use path_concat instead of ANSI string
81878         concatenation.
81879
81880         * lib/unicodeio.h (PARAMS): Define.
81881         Use it to guard prototype.
81882
81883 2000-03-04  Jim Meyering  <meyering@lucent.com>
81884
81885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81886         for lib/localcharset.c.
81887
81888 2000-03-04  Jim Meyering  <meyering@lucent.com>
81889
81890         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81891         installing into it.
81892         (uninstall-local): Uncomment this rule so `make distcheck' works
81893         once again.
81894
81895         * lib/unicodeio.c (<errno.h>): Include it.
81896         (errno): Declare if not defined.
81897
81898         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81899
81900         * lib/config.charset: New version, incorporating remarks from a linux
81901         i18n mailing list.  From Bruno Haible.
81902
81903 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81904
81905         * m4/codeset.m4: New file.
81906         * m4/iconv.m4: New file.
81907         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81908
81909 2000-03-03  Jim Meyering  <meyering@lucent.com>
81910
81911         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81912
81913 2000-03-02  Jim Meyering  <meyering@lucent.com>
81914
81915         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81916         the messages come out on separate lines.
81917
81918         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81919         rather than jm_CHECK_DECLARATIONS.
81920         * m4/decl.m4: Remove now-unused file.
81921
81922         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81923         geteuid.
81924
81925 2000-03-02  Jim Meyering  <meyering@lucent.com>
81926
81927         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81928
81929 2000-03-01  Jim Meyering  <meyering@lucent.com>
81930
81931         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81932         * lib/unicodeio.c: Likewise.
81933
81934 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81935
81936         * lib/config.charset: New file.
81937         * lib/localcharset.c: New file.
81938         * lib/unicodeio.h, lib/unicodeio.c: New files.
81939         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81940         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81941         (noinst_HEADERS): Add unicodeio.h.
81942         (all-local, install-exec-local, charset.alias): New targets.
81943
81944 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81945
81946         * lib/quotearg.c (ALERT_CHAR): New macro.
81947         (quotearg_buffer_restyled): Use it.
81948
81949 2000-02-27  Jim Meyering  <meyering@lucent.com>
81950
81951         * m4/check-decl.m4: Add getenv to the list.
81952
81953 2000-02-27  Jim Meyering  <meyering@lucent.com>
81954
81955         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81956         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81957
81958         * lib/backupfile.c: Guard inclusion of stdlib.h with
81959         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81960         Declare malloc if needed.
81961
81962         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81963         `#ifndef HAVE_DECL..'
81964         now that autoconf always defines the HAVE_DECL_ symbols.
81965         * lib/human.c: Likewise.
81966         * lib/same.c: Likewise.
81967         * lib/strtoumax.c: Likewise.
81968
81969         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81970         declaration check was not run.
81971         * lib/hash.c: Likewise.
81972         * lib/human.c: Likewise.
81973         * lib/same.c: Likewise.
81974         * lib/strtoumax.c: Likewise.
81975
81976         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81977         `.', then first look up the entire `.'-containing string as a login
81978         name.
81979
81980 2000-02-23  Jim Meyering  <meyering@lucent.com>
81981
81982         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81983         in place of my hack.
81984
81985 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81986
81987         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81988         (textint): New typedef.
81989         (parser_control): Member year changed from int to textint.
81990         All uses changed.
81991         (YYSTYPE): Removed; replaced by %union with int and textint members.
81992         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81993         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81994         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81995         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81996         (date, number, to_year): Use width of number in digits, not its value,
81997         to determine whether it's a 2-digit year, or a 2-digit time.
81998         (yylex): Store number of digits of numeric tokens.
81999         Reported by John Kendall.
82000
82001         (parser_control): Changed from struct parser_control to typedef (for
82002         consistency).  All uses changed.
82003
82004         (tID): Removed; not used.
82005         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
82006
82007 2000-02-14  Paul Eggert  <eggert@twinsun.com>
82008
82009         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
82010         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
82011
82012 2000-02-12  Jim Meyering  <meyering@lucent.com>
82013
82014         * lib/userspec.c (ISDIGIT): Define it.
82015         (isdigit): Remove definition.
82016         (is_number): Use ISDIGIT, not isdigit.
82017         <libintl.h>: Include.
82018         (_ and N_): Define.
82019         (parse_user_spec): Mark translatable strings.
82020
82021 2000-02-10  Jim Meyering  <meyering@lucent.com>
82022
82023         With these changes, nanosleep.[ch] are finally enough like the other
82024         lib/* replacement files to compile on a few more losing systems.
82025
82026         * lib/nanosleep.h: Don't include config.h.
82027         Remove prototype from declaration of nanosleep.
82028         (PARAMS): Remove now-unneeded definition.
82029         * lib/nanosleep.c: #undef nanosleep.
82030         (rpl_nanosleep): Rename from nanosleep.
82031
82032 2000-02-10  Jim Meyering  <meyering@lucent.com>
82033
82034         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
82035         gnu_nanosleep to rpl_nanosleep.
82036
82037 2000-02-09  Jim Meyering  <meyering@lucent.com>
82038
82039         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
82040         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
82041
82042 2000-02-08  Akim Demaille  <akim@epita.fr>
82043
82044         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
82045         `[' and `]' and remove uses of `changequote'.
82046         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
82047         (AC_SYS_LARGEFILE): Likewise.
82048         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
82049         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
82050         of changequote.
82051         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
82052         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
82053         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
82054         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
82055
82056 2000-02-05  Jim Meyering  <meyering@lucent.com>
82057
82058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
82059         Remove explicit use of AC_HEADER_TIME.  It is required by
82060         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
82061         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
82062         in autoconf whereby the expansion of the latter ended up preceding
82063         the expansion of its prerequisite, AC_HEADER_TIME.
82064         Reported by Volker Borchert.
82065
82066 2000-02-03  Jim Meyering  <meyering@lucent.com>
82067
82068         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
82069
82070 2000-02-03  Jim Meyering  <meyering@lucent.com>
82071
82072         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
82073         rather than with `#if HAVE_UTMPNAME'.
82074
82075 2000-02-02  Jim Meyering  <meyering@lucent.com>
82076
82077         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
82078         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
82079         Reported by Eli Zaretskii.
82080
82081 2000-02-01  Jim Meyering  <meyering@lucent.com>
82082
82083         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
82084
82085 2000-01-31  Jim Meyering  <meyering@lucent.com>
82086
82087         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
82088         functions.  Add the time.h and sys/time.h headers along with the
82089         AC_REQUIRE'ment of AC_HEADER_TIME.
82090
82091 2000-01-31  Jim Meyering  <meyering@lucent.com>
82092
82093         * lib/nanosleep.h (nanosleep): Guard declaration with
82094         `#if ! HAVE_DECL_NANOSLEEP'.
82095         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
82096         the declaration in that vendor's sys/timers.h.
82097         Reported by Christian Krackowizer.
82098
82099         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
82100         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
82101         (ISPRINT): Likewise.
82102         Reported by Tom Tromey.
82103
82104 2000-01-30  Jim Meyering  <meyering@lucent.com>
82105
82106         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
82107
82108         * m4/prereq.m4 (utmp_includes): Define.
82109         Check for ut_user and ut_name members in both struct utmpx
82110         and struct utmp.
82111
82112 2000-01-30  Jim Meyering  <meyering@lucent.com>
82113
82114         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
82115         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
82116         header files where only utmpx.ut_user is declared.
82117
82118         * lib/readutmp.h (UT_USER): Define.
82119
82120 2000-01-29  Jim Meyering  <meyering@lucent.com>
82121
82122         * m4/lib-check.m4: New file containing library-related checks from
82123         fileutils and sh-utils (textutils had none).
82124
82125 2000-01-28  Jim Meyering  <meyering@lucent.com>
82126
82127         * m4/perl.m4: Change format of warning message to look more like that
82128         from the missing script.  Suggestion from François Pinard.
82129
82130 2000-01-25  Jim Meyering  <meyering@lucent.com>
82131
82132         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
82133         well as time.h in the compile check.
82134         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
82135         Fix typo in cross-compiling case: s/yes/no/.
82136
82137 2000-01-23  Jim Meyering  <meyering@lucent.com>
82138
82139         * m4/jm-macros.m4: Move df-related tests here from
82140         fileutils/configure.in
82141
82142         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
82143         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
82144
82145         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
82146         s/space/ac_fsusage_space/.
82147         (jm_FILE_SYSTEM_USAGE): Take two parameters.
82148
82149         * m4/ftruncate.m4: New file (derived from part of
82150         fileutils/configure.in).
82151         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
82152         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
82153
82154         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
82155         AC_SUBST these here, rather than just in sh-util/configure.in, so
82156         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
82157         all the same.
82158         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
82159         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
82160         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
82161         (AC_SUBST(POW_LIBM)): Likewise.
82162         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
82163
82164 2000-01-23  Jim Meyering  <meyering@lucent.com>
82165
82166         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
82167         obstack.c.
82168
82169 2000-01-22  Jim Meyering  <meyering@lucent.com>
82170
82171         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
82172
82173         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
82174
82175         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
82176         configure.in
82177         (AC_CHECK_HEADERS): Likewise for sh-utils.
82178         (AC_CHECK_HEADERS): Likewise for textutils.
82179         Merge the three lists of headers.
82180
82181         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
82182         from fileutils' configure.in.
82183
82184         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
82185         code. Moved tests into their own function (_jm_DECL_HEADERS) in
82186         check-decl.m4.
82187
82188         * m4/check-decl.m4: Use #if rather than #ifdef.
82189         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
82190         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
82191         (_jm_DECL_HEADERS): Define new function.
82192         (jm_CHECK_DECLARATIONS): Require it.
82193
82194 2000-01-22  Jim Meyering  <meyering@lucent.com>
82195
82196         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
82197         [! HAVE_DECL_STRTOULL]: Declare strtoull.
82198         Required for some AIX systems.  Reported by Christian Krackowizer.
82199         [TESTING] (main): New function.
82200
82201         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
82202         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
82203         letters.
82204
82205         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
82206         iswprint.
82207
82208         * lib/strverscmp.c (ISDIGIT): Define.
82209         (strverscmp): Use ISDIGIT, not isdigit.
82210
82211 2000-01-19  Jim Meyering  <meyering@lucent.com>
82212
82213         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
82214         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
82215         defines `struct timespec' in <sys/time.h>
82216
82217         * m4/c-bs-a.m4: Remove uses of changequote altogether.
82218         Thanks to Akim for explaining.
82219
82220 2000-01-17  Paul Eggert  <eggert@twinsun.com>
82221
82222         * lib/nanosleep.c (nanosleep):
82223         Don't use SA_INTERRUPT to decide whether to call sigaction, as
82224         POSIX.1 doesn't require SA_INTERRUPT and some systems
82225         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
82226         it's been part of POSIX.1 since day 1 (in 1988).
82227
82228 2000-01-17  Jim Meyering  <meyering@lucent.com>
82229
82230         * lib/interlock: Remove unused file.  Reported by François Pinard.
82231
82232 2000-01-16  Paul Eggert  <eggert@twinsun.com>
82233
82234         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
82235         alert, backslash, formfeed, and vertical tab unnecessarily in
82236         shell quoting style.
82237
82238 2000-01-16  Jim Meyering  <meyering@lucent.com>
82239
82240         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
82241         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
82242         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
82243         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
82244
82245 2000-01-16  Jim Meyering  <meyering@lucent.com>
82246
82247         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
82248         because the latter didn't work.
82249
82250 2000-01-15  Jim Meyering  <meyering@lucent.com>
82251
82252         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
82253         (AC_REPLACE_FUNCS): Add memcpy and memset.
82254         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
82255         Add strpbrk.
82256         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
82257
82258 2000-01-12  Jim Meyering  <meyering@lucent.com>
82259
82260         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
82261         (jm_PREREQ): Use it.
82262         (jm_PREREQ_READUTMP): New macro.
82263         (jm_PREREQ): Use it.
82264
82265 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82266
82267         Quote multibyte characters correctly.
82268         * m4/c-bs-a.m4: New file.
82269         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
82270         (jm_PREREQ): Use it.
82271
82272 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82273
82274         * m4/uintmax_t.m4: Port to autoconf 2.13.
82275
82276 2000-01-08  Jim Meyering  <meyering@ascend.com>
82277
82278         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
82279         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
82280
82281 2000-01-04  Jim Meyering  <meyering@ascend.com>
82282
82283         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
82284         jm_STRUCT_DIRENT_D_TYPE.
82285         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
82286         jm_STRUCT_DIRENT_D_INO.
82287         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
82288         jm_STRUCT_UTIMBUF.
82289         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
82290         renamings.
82291         * m4/utime.m4: Likewise.
82292
82293         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
82294         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
82295
82296 2000-01-03  Paul Eggert  <eggert@twinsun.com>
82297
82298         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
82299         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
82300
82301 2000-01-02  Jim Meyering  <meyering@ascend.com>
82302
82303         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
82304         remember if this is necessary.
82305
82306 1999-12-26  Jim Meyering  <meyering@ascend.com>
82307
82308         * m4/jm-macros.m4: Use it here.
82309         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
82310
82311 1999-12-23  Jim Meyering  <meyering@ascend.com>
82312
82313         * m4/jm-macros.m4: Check for clock_gettime (moved from
82314         fileutils/configure.in)
82315         Check for gettimeofday.
82316
82317 1999-12-20  Jim Meyering  <meyering@ascend.com>
82318
82319         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
82320         autoconf-2.14a-1999-12-20.
82321
82322 1999-12-19  Jim Meyering  <meyering@ascend.com>
82323
82324         * m4/lstat-slash.m4: New file.
82325         * m4/jm-macros.m4: Use the new macro:
82326         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82327
82328 1999-12-07  Jim Meyering  <meyering@ascend.com>
82329
82330         * m4/perl.m4: Require that File::Compare be available, too.
82331         Too many systems seem to lack it.
82332
82333         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82334         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82335
82336 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82337
82338         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82339         problem with the QNX 4.25 shell, which doesn't propagate exit
82340         status of failed commands inside shell assignments.
82341
82342 1999-11-17  Jim Meyering  <meyering@ascend.com>
82343
82344         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82345
82346 1999-11-07  Jim Meyering  <meyering@ascend.com>
82347
82348         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82349
82350 1999-11-06  Jim Meyering  <meyering@ascend.com>
82351
82352         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82353         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82354
82355 1999-11-05  Jim Meyering  <meyering@ascend.com>
82356
82357         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82358         configure.in of textutils, fileutils, and sh-utils into this one
82359         (shared between those packages) file.
82360         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82361         AC_STRUCT_ST_BLKSIZE.
82362
82363 1999-11-03  Jim Meyering  <meyering@ascend.com>
82364
82365         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82366         of AC_CHECK_TYPE checks includes unistd.h.
82367         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82368         Suggestion from Akim Demaille.
82369
82370 1999-10-30  Jim Meyering  <meyering@ascend.com>
82371
82372         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82373         m4-quoted string.
82374         * m4/ls-mntd-fs.m4: Likewise.
82375         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82376         * m4/jm-winsz1.m4: Likewise.
82377
82378         * m4/const.m4: Remove file, since the fix made it into the experimental
82379         version of autoconf.
82380         * m4/mktime.m4: Likewise.
82381
82382         * m4/check-type.m4: Remove file, now that the latest version of
82383         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82384
82385         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82386         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82387         AC_CHECK_TYPE.
82388
82389 1999-10-04  Jim Meyering  <meyering@ascend.com>
82390
82391         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82392
82393 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82394
82395         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82396         2.95.1 bug with HP-UX 10.20.
82397
82398 1999-09-17  Jim Meyering  <meyering@ascend.com>
82399
82400         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82401         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82402         due to missing strdup (against sh-utils-2.0).
82403
82404 1999-08-29  Jim Meyering  <meyering@ascend.com>
82405
82406         * m4/jm-macros.m4: Require jm_BISON.
82407         * m4/bison.m4: New file.
82408
82409 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82410
82411         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82412         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82413
82414 1999-08-05  Jim Meyering  <meyering@ascend.com>
82415
82416         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82417         to avoid conflicts with `conftest' on 8+3 filesystems.
82418         Suggestion from Eli Zaretskii.
82419
82420 1999-08-04  Jim Meyering  <meyering@ascend.com>
82421
82422         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82423         fileutils and sh-utils (textutils's getline test was inadequate).
82424         (AM_FUNC_GETLINE): Run this test.
82425         (AC_CHECK_FUNCS): Check for getdelim.
82426         Reported by Bob Proulx.
82427
82428 1999-08-02  Jim Meyering  <meyering@ascend.com>
82429
82430         * m4/jm-macros.m4: Add a comment.
82431
82432 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82433
82434         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82435         <inttypes.h> defines strtoumax as a macro (and not as a
82436         function).
82437
82438 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82439
82440         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82441         that we can shift, multiply and divide unsigned long long
82442         values; Ultrix cc can't do it.
82443
82444 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82445
82446         * m4/mktime.m4: New file, which is a preview of what should appear
82447         in the next public autoconf release.
82448
82449 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82450
82451         * m4/lfs.m4: Remove this file.
82452         * m4/largefile.m4: New file.  It contains the old contents of
82453         lfs.m4, except that all names with prefix AC_LFS have been
82454         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82455         compatible with future autoconf versions.  Also, some minor m4
82456         quoting problems have been fixed.
82457
82458 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82459
82460         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82461         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82462         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82463         and simplify the shell code.
82464
82465 1999-08-01  Jim Meyering  <meyering@ascend.com>
82466
82467         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82468         m4.
82469
82470 1999-07-20  Jim Meyering  <meyering@ascend.com>
82471
82472         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82473
82474 1999-07-15  Jim Meyering  <meyering@ascend.com>
82475
82476         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82477
82478 1999-05-22  Jim Meyering  <meyering@ascend.com>
82479
82480         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82481
82482 1999-05-20  Jim Meyering  <meyering@ascend.com>
82483
82484         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82485         Add a colon after each `then' in case $4 is empty.
82486
82487 1999-05-16  Jim Meyering  <meyering@ascend.com>
82488
82489         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82490
82491 1999-05-10  Jim Meyering  <meyering@ascend.com>
82492
82493         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82494
82495         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82496         AC_FUNC_MKTIME.
82497
82498 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82499
82500         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82501
82502 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82503
82504         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82505         not CPPFLAGS, so that linking works correctly in IRIX.
82506
82507 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82508
82509         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82510
82511 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82512
82513         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82514         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82515         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82516         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82517         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82518
82519         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82520
82521 1999-04-20  Jim Meyering  <meyering@ascend.com>
82522
82523         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82524         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82525         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82526
82527 1999-04-18  Jim Meyering  <meyering@ascend.com>
82528
82529         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82530         * m4/jm-macros.m4: Use it.
82531
82532 1999-04-06  Jim Meyering  <meyering@ascend.com>
82533
82534         * m4/strftime.m4: Remove test for %f.
82535
82536 1999-03-29  Jim Meyering  <meyering@ascend.com>
82537
82538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82539         superset of the AC_TYPE_* checks in the textutils, fileutils,
82540         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82541         AC_TYPE_PID_T.
82542
82543 1999-03-28  Jim Meyering  <meyering@ascend.com>
82544
82545         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82546         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82547         replaced e.g., in the *.sh files of the sh-utils.
82548
82549 1999-03-20  Jim Meyering  <meyering@ascend.com>
82550
82551         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82552         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82553         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82554
82555 1999-03-19  Jim Meyering  <meyering@ascend.com>
82556
82557         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82558
82559 1999-03-12  Jim Meyering  <meyering@ascend.com>
82560
82561         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82562
82563 1999-03-07  Jim Meyering  <meyering@ascend.com>
82564
82565         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82566         declared.
82567
82568 1999-02-17  Jim Meyering  <meyering@ascend.com>
82569
82570         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82571         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82572
82573 1999-02-07  Jim Meyering  <meyering@ascend.com>
82574
82575         * m4/group-member.m4: New file -- extracted from sh-utils'
82576         configure.in.
82577
82578         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82579         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82580
82581 1999-02-06  Jim Meyering  <meyering@ascend.com>
82582
82583         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82584         * m4/fnmatch.m4: Likewise.
82585         * m4/getgroups.m4: Likewise.
82586         * m4/lstat.m4: Likewise.
82587         * m4/malloc.m4: Likewise.
82588         * m4/putenv.m4: Likewise.
82589         * m4/realloc.m4: Likewise.
82590         * m4/regex.m4: Likewise.
82591         * m4/stat.m4: Likewise.
82592         * m4/strftime.m4: Likewise.
82593         Suggestion from Alain Magloire.
82594
82595         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82596         * m4/fnmatch.m4: Likewise.
82597         * m4/getgroups.m4: Likewise.
82598         * m4/getline.m4: Likewise.
82599         * m4/lstat.m4: Likewise.
82600         * m4/malloc.m4: Likewise.
82601         * m4/memcmp.m4: Likewise.
82602         * m4/putenv.m4: Likewise.
82603         * m4/realloc.m4: Likewise.
82604         * m4/regex.m4: Likewise.
82605         * m4/stat.m4: Likewise.
82606         * m4/strftime.m4: Likewise.
82607         Suggestion from Alain Magloire.
82608
82609         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82610         an argument.
82611
82612         * m4/regex.m4: Add a run-time Test for proper operation of
82613         re_compile_pattern.
82614
82615 1999-01-31  Jim Meyering  <meyering@ascend.com>
82616
82617         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82618
82619 1999-01-30  Jim Meyering  <meyering@ascend.com>
82620
82621         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82622
82623         * m4/jm-mktime.m4: Make this a wrapper around the official
82624         AM_FUNC_MKTIME rather than my private copy, now that the official one
82625         is up to date.
82626         * m4/mktime.m4: Remove file.
82627
82628         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82629         * m4/uptime.m4: Likewise.
82630         * m4/uintmax_t.m4: Likewise.
82631
82632 1999-01-28  Jim Meyering  <meyering@ascend.com>
82633
82634         * m4/jm-macros.m4: Use jm_AFS.
82635         * m4/afs.m4: New file (from fileutils' configure.in).
82636
82637         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82638         * m4/chown.m4: Likewise.
82639         * m4/d-ino.m4: Likewise.
82640         * m4/d-type.m4: Likewise.
82641         * m4/fnmatch.m4: Likewise.
82642         * m4/getgroups.m4: Likewise.
82643         * m4/gettext.m4: Likewise.
82644         * m4/jm-mktime.m4: Likewise.
82645         * m4/jm-winsz2.m4: Likewise.
82646         * m4/lcmessage.m4: Likewise.
82647         * m4/ls-mntd-fs.m4: Likewise.
82648         * m4/malloc.m4: Likewise.
82649         * m4/memcmp.m4: Likewise.
82650         * m4/putenv.m4: Likewise.
82651         * m4/realloc.m4: Likewise.
82652         * m4/st_mtim.m4: Likewise.
82653         * m4/strftime.m4: Likewise.
82654
82655 1999-01-16  Jim Meyering  <meyering@ascend.com>
82656
82657         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82658         (ARGMATCH_DIE_DECL): Define.
82659
82660 1999-01-12  Jim Meyering  <meyering@ascend.com>
82661
82662         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82663         Reported by Lars Hecking.
82664
82665 1999-01-10  Jim Meyering  <meyering@ascend.com>
82666
82667         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82668         gross kludge.
82669         * m4/inttypes_h.m4: Likewise.
82670         * m4/lstat.m4: Likewise.
82671         * m4/malloc.m4: Likewise.
82672         * m4/readdir.m4: Likewise.
82673         * m4/realloc.m4: Likewise.
82674         * m4/st_dm_mode.m4: Likewise.
82675         * m4/stat.m4: Likewise.
82676         * m4/utimbuf.m4: Likewise.
82677         * m4/utimes.m4: Likewise.
82678
82679         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82680         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82681         comments in config.h.in are meaningful.
82682
82683         * m4/jm-macros.m4: Require autoconf-2.13 here.
82684
82685         * m4/regex.m4: By default, don't use the included regex.c on systems
82686         with glibc 2.  Suggestion from Uli Drepper.
82687
82688 1999-01-02  Jim Meyering  <meyering@ascend.com>
82689
82690         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82691
82692 1998-12-18  Jim Meyering  <meyering@ascend.com>
82693
82694         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82695         Based on a suggestion from Lars Hecking.
82696
82697 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82698
82699         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82700
82701 1998-11-16  Jim Meyering  <meyering@ascend.com>
82702
82703         * m4/lfs.m4: Double-quote the `uname...` expression.
82704
82705 1998-11-14  Jim Meyering  <meyering@ascend.com>
82706
82707         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82708         * m4/stat.m4: Likewise.
82709
82710 1998-11-03  Jim Meyering  <meyering@ascend.com>
82711
82712         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82713         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82714
82715 1998-10-18  Jim Meyering  <meyering@ascend.com>
82716
82717         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82718
82719 1998-10-17  Jim Meyering  <meyering@ascend.com>
82720
82721         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82722         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82723         calls for those previously hard-coded headers.  Instead, take a new
82724         parameter.
82725         (jm_CHECK_DECLARATIONS): Reflect interface change.
82726         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82727         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82728
82729         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82730
82731 1998-10-14  Jim Meyering  <meyering@ascend.com>
82732
82733         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82734         instead of "TZ=America/Vancouver".  From Paul Eggert.
82735
82736 1998-10-11  Jim Meyering  <meyering@ascend.com>
82737
82738         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82739         This adds a test for a recently added compatibility fix for mktime.c.
82740         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82741
82742 1998-09-27  Jim Meyering  <meyering@ascend.com>
82743
82744         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82745
82746         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82747         ../configure.in, including a change from Gordon Matzigkeit to allow
82748         cross-compiling for the Hurd.
82749
82750         * m4/glibc.m4: New file/macro to test for the GNU C Library
82751         versions 1 and 2.  From Gordon Matzigkeit.
82752         Indent.
82753
82754 1998-09-21  Jim Meyering  <meyering@ascend.com>
82755
82756         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82757
82758 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82759
82760         Port nanosecond-resolution times to UnixWare 2.1.2 and
82761         pedantic Solaris 2.6.
82762
82763         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82764         AC_STRUCT_ST_MTIM.
82765         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82766         Generate name of ns member, instead of just 1 or undef.
82767         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82768
82769 1998-08-15  Jim Meyering  <meyering@ascend.com>
82770
82771         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82772         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82773         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82774         instead of jm_TYPE_SSIZE_T.
82775
82776 1998-08-12  Jim Meyering  <meyering@ascend.com>
82777
82778         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82779
82780 1998-08-02  Jim Meyering  <meyering@ascend.com>
82781
82782         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82783         in acconfig.h manually.
82784
82785 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82786
82787         * m4/st_mtim.m4: New file.
82788
82789 1998-07-28  Jim Meyering  <meyering@ascend.com>
82790
82791         * m4/utimes.m4: Undef stat.
82792
82793 1998-07-25  Jim Meyering  <meyering@ascend.com>
82794
82795         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82796         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82797
82798 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82799
82800         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82801         uid and gid actually remain unchanged.
82802
82803 1998-07-07  Jim Meyering  <meyering@ascend.com>
82804
82805         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82806
82807 1998-07-04  Jim Meyering  <meyering@ascend.com>
82808
82809         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82810         to prove that this macro can be used in packages without regex.c.
82811
82812 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82813
82814         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82815         is to be used.
82816
82817 1998-07-03  Jim Meyering  <meyering@ascend.com>
82818
82819         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82820
82821         * m4/gettext.m4: New file -- from gettext-0.10.35.
82822         * m4/lcmessage.m4: Likewise.
82823         * m4/progtest.m4: Likewise.
82824
82825         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82826         * m4/jm-macros.m4: Require the new macro.
82827
82828 1998-06-29  Jim Meyering  <meyering@ascend.com>
82829
82830         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82831         for the definition of NGROUPS (used in a system header included
82832         by sys/mount.h).
82833
82834 1998-06-28  Jim Meyering  <meyering@ascend.com>
82835
82836         * m4/ls-mntd-fs.m4: New file.
82837         * m4/fstypename.m4: New file.
82838
82839         * m4/jm-macros.m4: Require the new macro.
82840         * m4/jm-glibc-io.m4: New file.
82841
82842 1998-05-19  Jim Meyering  <meyering@ascend.com>
82843
82844         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82845         * m4/lchown.m4: New file.
82846
82847         * m4/Makefile.am.in: New file.
82848         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82849
82850 1998-05-14  Jim Meyering  <meyering@ascend.com>
82851
82852         * m4/Makefile.am (EXTRA_DIST): Add them.
82853         * m4/jm-macros.m4: New file.
82854         * m4/utimbuf.m4: New file.
82855
82856 1998-05-12  Jim Meyering  <meyering@ascend.com>
82857
82858         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82859
82860 1998-05-11  Jim Meyering  <meyering@ascend.com>
82861
82862         * m4/isc-posix.m4: New file.
82863
82864 1998-05-10  Jim Meyering  <meyering@ascend.com>
82865
82866         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82867
82868 1998-05-09  Jim Meyering  <meyering@ascend.com>
82869
82870         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82871         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82872         with automake.
82873
82874         * m4/ssize_t.m4: New file.
82875         * m4/mktime.m4: Remove file -- the new automake has this now.
82876
82877 1998-04-26  Jim Meyering  <meyering@ascend.com>
82878
82879         * m4/assert.m4: New file.
82880         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82881
82882 1998-04-05  Jim Meyering  <meyering@ascend.com>
82883
82884         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82885         (jm_PREREQ): Use it here.
82886
82887 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82888
82889         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82890         in acconfig.h.
82891
82892 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82893
82894         * m4/prereq.m4: New file.
82895         * m4/error.m4: New file.
82896         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82897
82898 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82899
82900         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82901         cache-check for the same variable -- that defeated the purpose of
82902         the test; the test program was never run.  This was a problem only
82903         on systems with losing getline functions -- HP-UX 10.20 is one.
82904         Reported by Bjorn Helgaas.
82905
82906 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82907
82908         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82909
82910 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82911
82912         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82913
82914         * m4/const.m4: New file.  Use an initializer in this declaration
82915         typedef int charset[2]; const charset x;
82916         Reported by Bob Glickstein.
82917
82918 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82919
82920         * m4/chown.m4: Fix reversed types on -1 args to chown.
82921         From Kaveh Ghazi.
82922
82923 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82924
82925         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82926         Add lseek and memchr.
82927
82928         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82929         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82930         have a 20-character limit on names.
82931
82932 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82933
82934         * m4/inttypes_h.m4: New file.
82935         * m4/uintmax_t.m4: New file.
82936         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82937
82938
82939         -----
82940
82941         Local Variables:
82942         coding: utf-8
82943         End:
82944
82945         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82946
82947         Copying and distribution of this file, with or without
82948         modification, are permitted provided the copyright notice
82949         and this notice are preserved.